Skip to content

Commit 71260d3

Browse files
committed
genereated
1 parent 69dace5 commit 71260d3

39 files changed

+2964
-5531
lines changed

gen/api-ts/eigenlayer/sidecar/v1/sidecar/rpc.pb.ts

+3
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,7 @@ export class Rpc {
1616
static About(req: EigenlayerSidecarV1SidecarSidecar.AboutRequest, initReq?: fm.InitReq): Promise<EigenlayerSidecarV1SidecarSidecar.AboutResponse> {
1717
return fm.fetchReq<EigenlayerSidecarV1SidecarSidecar.AboutRequest, EigenlayerSidecarV1SidecarSidecar.AboutResponse>(`/rpc/v1/about?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
1818
}
19+
static LoadContract(req: EigenlayerSidecarV1SidecarSidecar.LoadContractRequest, initReq?: fm.InitReq): Promise<EigenlayerSidecarV1SidecarSidecar.LoadContractResponse> {
20+
return fm.fetchReq<EigenlayerSidecarV1SidecarSidecar.LoadContractRequest, EigenlayerSidecarV1SidecarSidecar.LoadContractResponse>(`/rpc/v1/load-contract`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
21+
}
1922
}

gen/api-ts/eigenlayer/sidecar/v1/sidecar/sidecar.pb.ts

+17
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,21 @@ export type AboutResponse = {
2929
version?: string
3030
commit?: string
3131
chain?: string
32+
}
33+
34+
export type LoadContractRequest = {
35+
address?: string
36+
abi?: string
37+
bytecodeHash?: string
38+
blockNumber?: string
39+
associateToProxy?: string
40+
batch?: boolean
41+
fromFile?: string
42+
}
43+
44+
export type LoadContractResponse = {
45+
address?: string
46+
success?: boolean
47+
error?: string
48+
contractsLoaded?: number
3249
}

gen/openapi/api.public.swagger.json

+45
Original file line numberDiff line numberDiff line change
@@ -1395,6 +1395,51 @@
13951395
}
13961396
}
13971397
},
1398+
"LoadContractRequest": {
1399+
"type": "object",
1400+
"properties": {
1401+
"abi": {
1402+
"type": "string"
1403+
},
1404+
"address": {
1405+
"type": "string"
1406+
},
1407+
"associateToProxy": {
1408+
"type": "string"
1409+
},
1410+
"batch": {
1411+
"type": "boolean"
1412+
},
1413+
"blockNumber": {
1414+
"type": "integer",
1415+
"format": "uint64"
1416+
},
1417+
"bytecodeHash": {
1418+
"type": "string"
1419+
},
1420+
"fromFile": {
1421+
"type": "string"
1422+
}
1423+
}
1424+
},
1425+
"LoadContractResponse": {
1426+
"type": "object",
1427+
"properties": {
1428+
"address": {
1429+
"type": "string"
1430+
},
1431+
"contractsLoaded": {
1432+
"type": "integer",
1433+
"format": "uint32"
1434+
},
1435+
"error": {
1436+
"type": "string"
1437+
},
1438+
"success": {
1439+
"type": "boolean"
1440+
}
1441+
}
1442+
},
13981443
"Operator": {
13991444
"type": "object",
14001445
"properties": {

gen/openapi/api.swagger.json

+115
Original file line numberDiff line numberDiff line change
@@ -1574,6 +1574,76 @@
15741574
]
15751575
}
15761576
},
1577+
"/rpc/v1/load-contract": {
1578+
"post": {
1579+
"summary": "LoadContract",
1580+
"operationId": "Rpc_LoadContract",
1581+
"requestBody": {
1582+
"required": true,
1583+
"content": {
1584+
"application/json": {
1585+
"schema": {
1586+
"type": "object",
1587+
"properties": {
1588+
"abi": {
1589+
"type": "string"
1590+
},
1591+
"address": {
1592+
"type": "string"
1593+
},
1594+
"associateToProxy": {
1595+
"type": "string"
1596+
},
1597+
"batch": {
1598+
"type": "boolean"
1599+
},
1600+
"blockNumber": {
1601+
"type": "integer",
1602+
"format": "uint64"
1603+
},
1604+
"bytecodeHash": {
1605+
"type": "string"
1606+
},
1607+
"fromFile": {
1608+
"type": "string"
1609+
}
1610+
}
1611+
}
1612+
}
1613+
}
1614+
},
1615+
"responses": {
1616+
"200": {
1617+
"description": "Successful response",
1618+
"content": {
1619+
"application/json": {
1620+
"schema": {
1621+
"type": "object",
1622+
"properties": {
1623+
"address": {
1624+
"type": "string"
1625+
},
1626+
"contractsLoaded": {
1627+
"type": "integer",
1628+
"format": "uint32"
1629+
},
1630+
"error": {
1631+
"type": "string"
1632+
},
1633+
"success": {
1634+
"type": "boolean"
1635+
}
1636+
}
1637+
}
1638+
}
1639+
}
1640+
}
1641+
},
1642+
"tags": [
1643+
"sidecar"
1644+
]
1645+
}
1646+
},
15771647
"/rpc/v1/state-roots/{blockNumber}": {
15781648
"get": {
15791649
"summary": "GetStateRoot",
@@ -3166,6 +3236,51 @@
31663236
}
31673237
}
31683238
},
3239+
"LoadContractRequest": {
3240+
"type": "object",
3241+
"properties": {
3242+
"abi": {
3243+
"type": "string"
3244+
},
3245+
"address": {
3246+
"type": "string"
3247+
},
3248+
"associateToProxy": {
3249+
"type": "string"
3250+
},
3251+
"batch": {
3252+
"type": "boolean"
3253+
},
3254+
"blockNumber": {
3255+
"type": "integer",
3256+
"format": "uint64"
3257+
},
3258+
"bytecodeHash": {
3259+
"type": "string"
3260+
},
3261+
"fromFile": {
3262+
"type": "string"
3263+
}
3264+
}
3265+
},
3266+
"LoadContractResponse": {
3267+
"type": "object",
3268+
"properties": {
3269+
"address": {
3270+
"type": "string"
3271+
},
3272+
"contractsLoaded": {
3273+
"type": "integer",
3274+
"format": "uint32"
3275+
},
3276+
"error": {
3277+
"type": "string"
3278+
},
3279+
"success": {
3280+
"type": "boolean"
3281+
}
3282+
}
3283+
},
31693284
"Operator": {
31703285
"type": "object",
31713286
"properties": {

gen/openapiv2/apidocs.swagger.json

+87
Original file line numberDiff line numberDiff line change
@@ -1457,6 +1457,38 @@
14571457
]
14581458
}
14591459
},
1460+
"/rpc/v1/load-contract": {
1461+
"post": {
1462+
"operationId": "Rpc_LoadContract",
1463+
"responses": {
1464+
"200": {
1465+
"description": "A successful response.",
1466+
"schema": {
1467+
"$ref": "#/definitions/sidecarLoadContractResponse"
1468+
}
1469+
},
1470+
"default": {
1471+
"description": "An unexpected error response.",
1472+
"schema": {
1473+
"$ref": "#/definitions/rpcStatus"
1474+
}
1475+
}
1476+
},
1477+
"parameters": [
1478+
{
1479+
"name": "body",
1480+
"in": "body",
1481+
"required": true,
1482+
"schema": {
1483+
"$ref": "#/definitions/sidecarLoadContractRequest"
1484+
}
1485+
}
1486+
],
1487+
"tags": [
1488+
"Rpc"
1489+
]
1490+
}
1491+
},
14601492
"/rpc/v1/state-roots/{blockNumber}": {
14611493
"get": {
14621494
"operationId": "Rpc_GetStateRoot",
@@ -3148,6 +3180,61 @@
31483180
}
31493181
}
31503182
},
3183+
"sidecarLoadContractRequest": {
3184+
"type": "object",
3185+
"properties": {
3186+
"address": {
3187+
"type": "string"
3188+
},
3189+
"abi": {
3190+
"type": "string",
3191+
"title": "ABI of the contract in JSON format"
3192+
},
3193+
"bytecodeHash": {
3194+
"type": "string",
3195+
"title": "Bytecode hash of the contract (optional, will be fetched if not provided)"
3196+
},
3197+
"blockNumber": {
3198+
"type": "string",
3199+
"format": "uint64",
3200+
"title": "Block number for proxy association (required if associate_to_proxy is set)"
3201+
},
3202+
"associateToProxy": {
3203+
"type": "string",
3204+
"title": "Address of the proxy contract to associate with (optional)"
3205+
},
3206+
"batch": {
3207+
"type": "boolean",
3208+
"title": "Whether to load from a batch file (mutually exclusive with other fields)"
3209+
},
3210+
"fromFile": {
3211+
"type": "string",
3212+
"title": "Path to the batch file (required if batch is true)"
3213+
}
3214+
}
3215+
},
3216+
"sidecarLoadContractResponse": {
3217+
"type": "object",
3218+
"properties": {
3219+
"address": {
3220+
"type": "string",
3221+
"title": "Address of the loaded contract"
3222+
},
3223+
"success": {
3224+
"type": "boolean",
3225+
"title": "Whether the operation was successful"
3226+
},
3227+
"error": {
3228+
"type": "string",
3229+
"title": "Error message if the operation failed"
3230+
},
3231+
"contractsLoaded": {
3232+
"type": "integer",
3233+
"format": "int64",
3234+
"title": "Number of contracts loaded if batch mode was used"
3235+
}
3236+
}
3237+
},
31513238
"slashingListAvsOperatorSetSlashingHistoryResponse": {
31523239
"type": "object",
31533240
"properties": {

0 commit comments

Comments
 (0)