Skip to content

Commit 9109818

Browse files
committed
codify the structure
1 parent 75e82c8 commit 9109818

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": {
@@ -1425,8 +1439,11 @@
14251439
"LoadContractsRequest": {
14261440
"type": "object",
14271441
"properties": {
1428-
"contractsJson": {
1429-
"type": "string"
1442+
"coreContracts": {
1443+
"$ref": "#/components/schemas/CoreContract"
1444+
},
1445+
"proxyContracts": {
1446+
"$ref": "#/components/schemas/ProxyContract"
14301447
}
14311448
}
14321449
},
@@ -1567,6 +1584,21 @@
15671584
"earner_leaf"
15681585
]
15691586
},
1587+
"ProxyContract": {
1588+
"type": "object",
1589+
"properties": {
1590+
"blockNumber": {
1591+
"type": "integer",
1592+
"format": "uint64"
1593+
},
1594+
"contractAddress": {
1595+
"type": "string"
1596+
},
1597+
"proxyContractAddress": {
1598+
"type": "string"
1599+
}
1600+
}
1601+
},
15701602
"QueueStakerStrategyWithdrawal": {
15711603
"type": "object",
15721604
"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": {
@@ -3299,8 +3316,11 @@
32993316
"LoadContractsRequest": {
33003317
"type": "object",
33013318
"properties": {
3302-
"contractsJson": {
3303-
"type": "string"
3319+
"coreContracts": {
3320+
"$ref": "#/components/schemas/CoreContract"
3321+
},
3322+
"proxyContracts": {
3323+
"$ref": "#/components/schemas/ProxyContract"
33043324
}
33053325
}
33063326
},
@@ -3441,6 +3461,21 @@
34413461
"earner_leaf"
34423462
]
34433463
},
3464+
"ProxyContract": {
3465+
"type": "object",
3466+
"properties": {
3467+
"blockNumber": {
3468+
"type": "integer",
3469+
"format": "uint64"
3470+
},
3471+
"contractAddress": {
3472+
"type": "string"
3473+
},
3474+
"proxyContractAddress": {
3475+
"type": "string"
3476+
}
3477+
}
3478+
},
34443479
"QueueStakerStrategyWithdrawal": {
34453480
"type": "object",
34463481
"properties": {

gen/openapiv2/apidocs.swagger.json

+42-2
Original file line numberDiff line numberDiff line change
@@ -3179,6 +3179,20 @@
31793179
}
31803180
}
31813181
},
3182+
"sidecarCoreContract": {
3183+
"type": "object",
3184+
"properties": {
3185+
"contractAddress": {
3186+
"type": "string"
3187+
},
3188+
"contractAbi": {
3189+
"type": "string"
3190+
},
3191+
"bytecodeHash": {
3192+
"type": "string"
3193+
}
3194+
}
3195+
},
31823196
"sidecarGetBlockHeightResponse": {
31833197
"type": "object",
31843198
"properties": {
@@ -3242,8 +3256,19 @@
32423256
"sidecarLoadContractsRequest": {
32433257
"type": "object",
32443258
"properties": {
3245-
"contractsJson": {
3246-
"type": "string"
3259+
"coreContracts": {
3260+
"type": "array",
3261+
"items": {
3262+
"type": "object",
3263+
"$ref": "#/definitions/sidecarCoreContract"
3264+
}
3265+
},
3266+
"proxyContracts": {
3267+
"type": "array",
3268+
"items": {
3269+
"type": "object",
3270+
"$ref": "#/definitions/sidecarProxyContract"
3271+
}
32473272
}
32483273
}
32493274
},
@@ -3262,6 +3287,21 @@
32623287
}
32633288
}
32643289
},
3290+
"sidecarProxyContract": {
3291+
"type": "object",
3292+
"properties": {
3293+
"contractAddress": {
3294+
"type": "string"
3295+
},
3296+
"proxyContractAddress": {
3297+
"type": "string"
3298+
},
3299+
"blockNumber": {
3300+
"type": "string",
3301+
"format": "uint64"
3302+
}
3303+
}
3304+
},
32653305
"slashingListAvsOperatorSetSlashingHistoryResponse": {
32663306
"type": "object",
32673307
"properties": {

0 commit comments

Comments
 (0)