Skip to content

Commit aa1388b

Browse files
committed
codify the structure
1 parent 4b60873 commit aa1388b

File tree

6 files changed

+328
-37
lines changed

6 files changed

+328
-37
lines changed

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

+14-1
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,21 @@ export type LoadContractResponse = {
4444
address?: string
4545
}
4646

47+
export type CoreContract = {
48+
contractAddress?: string
49+
contractAbi?: string
50+
bytecodeHash?: string
51+
}
52+
53+
export type ProxyContract = {
54+
contractAddress?: string
55+
proxyContractAddress?: string
56+
blockNumber?: string
57+
}
58+
4759
export type LoadContractsRequest = {
48-
contractsJson?: string
60+
coreContracts?: CoreContract[]
61+
proxyContracts?: ProxyContract[]
4962
}
5063

5164
export type LoadContractsResponse = {

gen/openapi/api.public.swagger.json

+34-2
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,20 @@
330330
}
331331
}
332332
},
333+
"CoreContract": {
334+
"type": "object",
335+
"properties": {
336+
"bytecodeHash": {
337+
"type": "string"
338+
},
339+
"contractAbi": {
340+
"type": "string"
341+
},
342+
"contractAddress": {
343+
"type": "string"
344+
}
345+
}
346+
},
333347
"DisabledDistributionRoot": {
334348
"type": "object",
335349
"properties": {
@@ -1431,8 +1445,11 @@
14311445
"LoadContractsRequest": {
14321446
"type": "object",
14331447
"properties": {
1434-
"contractsJson": {
1435-
"type": "string"
1448+
"coreContracts": {
1449+
"$ref": "#/components/schemas/CoreContract"
1450+
},
1451+
"proxyContracts": {
1452+
"$ref": "#/components/schemas/ProxyContract"
14361453
}
14371454
}
14381455
},
@@ -1573,6 +1590,21 @@
15731590
"earner_leaf"
15741591
]
15751592
},
1593+
"ProxyContract": {
1594+
"type": "object",
1595+
"properties": {
1596+
"blockNumber": {
1597+
"type": "integer",
1598+
"format": "uint64"
1599+
},
1600+
"contractAddress": {
1601+
"type": "string"
1602+
},
1603+
"proxyContractAddress": {
1604+
"type": "string"
1605+
}
1606+
}
1607+
},
15761608
"QueueStakerStrategyWithdrawal": {
15771609
"type": "object",
15781610
"properties": {

gen/openapi/api.swagger.json

+39-4
Original file line numberDiff line numberDiff line change
@@ -1643,8 +1643,11 @@
16431643
"schema": {
16441644
"type": "object",
16451645
"properties": {
1646-
"contractsJson": {
1647-
"type": "string"
1646+
"coreContracts": {
1647+
"$ref": "#/components/schemas/CoreContract"
1648+
},
1649+
"proxyContracts": {
1650+
"$ref": "#/components/schemas/ProxyContract"
16481651
}
16491652
}
16501653
}
@@ -2204,6 +2207,20 @@
22042207
}
22052208
}
22062209
},
2210+
"CoreContract": {
2211+
"type": "object",
2212+
"properties": {
2213+
"bytecodeHash": {
2214+
"type": "string"
2215+
},
2216+
"contractAbi": {
2217+
"type": "string"
2218+
},
2219+
"contractAddress": {
2220+
"type": "string"
2221+
}
2222+
}
2223+
},
22072224
"DisabledDistributionRoot": {
22082225
"type": "object",
22092226
"properties": {
@@ -3305,8 +3322,11 @@
33053322
"LoadContractsRequest": {
33063323
"type": "object",
33073324
"properties": {
3308-
"contractsJson": {
3309-
"type": "string"
3325+
"coreContracts": {
3326+
"$ref": "#/components/schemas/CoreContract"
3327+
},
3328+
"proxyContracts": {
3329+
"$ref": "#/components/schemas/ProxyContract"
33103330
}
33113331
}
33123332
},
@@ -3447,6 +3467,21 @@
34473467
"earner_leaf"
34483468
]
34493469
},
3470+
"ProxyContract": {
3471+
"type": "object",
3472+
"properties": {
3473+
"blockNumber": {
3474+
"type": "integer",
3475+
"format": "uint64"
3476+
},
3477+
"contractAddress": {
3478+
"type": "string"
3479+
},
3480+
"proxyContractAddress": {
3481+
"type": "string"
3482+
}
3483+
}
3484+
},
34503485
"QueueStakerStrategyWithdrawal": {
34513486
"type": "object",
34523487
"properties": {

gen/openapiv2/apidocs.swagger.json

+42-2
Original file line numberDiff line numberDiff line change
@@ -3185,6 +3185,20 @@
31853185
}
31863186
}
31873187
},
3188+
"sidecarCoreContract": {
3189+
"type": "object",
3190+
"properties": {
3191+
"contractAddress": {
3192+
"type": "string"
3193+
},
3194+
"contractAbi": {
3195+
"type": "string"
3196+
},
3197+
"bytecodeHash": {
3198+
"type": "string"
3199+
}
3200+
}
3201+
},
31883202
"sidecarGetBlockHeightResponse": {
31893203
"type": "object",
31903204
"properties": {
@@ -3248,8 +3262,19 @@
32483262
"sidecarLoadContractsRequest": {
32493263
"type": "object",
32503264
"properties": {
3251-
"contractsJson": {
3252-
"type": "string"
3265+
"coreContracts": {
3266+
"type": "array",
3267+
"items": {
3268+
"type": "object",
3269+
"$ref": "#/definitions/sidecarCoreContract"
3270+
}
3271+
},
3272+
"proxyContracts": {
3273+
"type": "array",
3274+
"items": {
3275+
"type": "object",
3276+
"$ref": "#/definitions/sidecarProxyContract"
3277+
}
32533278
}
32543279
}
32553280
},
@@ -3268,6 +3293,21 @@
32683293
}
32693294
}
32703295
},
3296+
"sidecarProxyContract": {
3297+
"type": "object",
3298+
"properties": {
3299+
"contractAddress": {
3300+
"type": "string"
3301+
},
3302+
"proxyContractAddress": {
3303+
"type": "string"
3304+
},
3305+
"blockNumber": {
3306+
"type": "string",
3307+
"format": "uint64"
3308+
}
3309+
}
3310+
},
32713311
"slashingListAvsOperatorSetSlashingHistoryResponse": {
32723312
"type": "object",
32733313
"properties": {

0 commit comments

Comments
 (0)