Skip to content

Commit 3f1bd12

Browse files
committed
Added legacy SSV-related fields to DAO values query
1 parent 242d898 commit 3f1bd12

1 file changed

Lines changed: 31 additions & 13 deletions

File tree

docs/developers/tools/ssv-subgraph/subgraph-examples.md

Lines changed: 31 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,12 @@ query daoValues {
190190
accEthPerShare
191191
latestMerkleRoot
192192
totalEffectiveBalance
193+
networkFeeSSV
194+
networkFeeIndexSSV
195+
operatorMaximumFeeSSV
196+
liquidationThresholdSSV
197+
networkFeeIndexBlockNumberSSV
198+
minimumLiquidationCollateralSSV
193199
}
194200
}
195201
```
@@ -215,6 +221,12 @@ query daoValues {
215221
accEthPerShare
216222
latestMerkleRoot
217223
totalEffectiveBalance
224+
networkFeeSSV
225+
networkFeeIndexSSV
226+
operatorMaximumFeeSSV
227+
liquidationThresholdSSV
228+
networkFeeIndexBlockNumberSSV
229+
minimumLiquidationCollateralSSV
218230
}
219231
}`;
220232

@@ -237,7 +249,7 @@ console.log(responseData);
237249
curl -X POST "https://api.studio.thegraph.com/query/71118/ssv-network-hoodi/version/latest" \
238250
-H "Content-Type: application/json" \
239251
-d '{
240-
"query": "query daoValues { daovalues(id: \"0x58410Bef803ECd7E63B23664C586A6DB72DAf59c\") { declareOperatorFeePeriod executeOperatorFeePeriod liquidationThreshold minimumLiquidationCollateral networkFee networkFeeIndex networkFeeIndexBlockNumber operatorFeeIncreaseLimit operatorMaximumFee quorum accEthPerShare latestMerkleRoot totalEffectiveBalance }}"
252+
"query": "query daoValues { daovalues(id: \"0x58410Bef803ECd7E63B23664C586A6DB72DAf59c\") { declareOperatorFeePeriod executeOperatorFeePeriod liquidationThreshold minimumLiquidationCollateral networkFee networkFeeIndex networkFeeIndexBlockNumber operatorFeeIncreaseLimit operatorMaximumFee quorum accEthPerShare latestMerkleRoot totalEffectiveBalance networkFeeSSV networkFeeIndexSSV operatorMaximumFeeSSV liquidationThresholdSSV networkFeeIndexBlockNumberSSV minimumLiquidationCollateralSSV }}"
241253
}'
242254
```
243255

@@ -249,19 +261,25 @@ Output
249261
{
250262
"data": {
251263
"daovalues": {
252-
"declareOperatorFeePeriod": "604800",
253-
"executeOperatorFeePeriod": "60480",
254-
"liquidationThreshold": "214800",
255-
"minimumLiquidationCollateral": "1000000000000000000",
256-
"networkFee": "382640000000",
257-
"networkFeeIndex": "215784140000000",
258-
"networkFeeIndexBlockNumber": "131572",
264+
"declareOperatorFeePeriod": "180",
265+
"executeOperatorFeePeriod": "180",
266+
"liquidationThreshold": "50190",
267+
"minimumLiquidationCollateral": "940000000000000",
268+
"networkFee": "3550000000",
269+
"networkFeeIndex": "704794182000000000",
270+
"networkFeeIndexBlockNumber": "2122845",
259271
"operatorFeeIncreaseLimit": "1000",
260-
"operatorMaximumFee": "76528650000000",
261-
"quorum": "7500",
262-
"accEthPerShare": "74267140000000",
263-
"latestMerkleRoot": "0xad75cf901",
264-
"totalEffectiveBalance": "75631987215784140000000",
272+
"operatorMaximumFee": "13900000000",
273+
"quorum": 7500,
274+
"accEthPerShare": "8640821385400000",
275+
"latestMerkleRoot": "0x00000000",
276+
"totalEffectiveBalance": "1685694",
277+
"networkFeeSSV": "0",
278+
"networkFeeIndexSSV": "0",
279+
"operatorMaximumFeeSSV": "0",
280+
"liquidationThresholdSSV": "214800",
281+
"networkFeeIndexBlockNumberSSV": "0",
282+
"minimumLiquidationCollateralSSV": "1000000000000000000"
265283
}
266284
}
267285
}

0 commit comments

Comments
 (0)