@@ -38,6 +38,7 @@ contract WavsListOperators is Script {
3838 address [] operators;
3939 bytes32 [] operatorIds;
4040 BN254.G1Point[] pubkeys;
41+ BN254.G2Point[] pubkeyG2s;
4142 string [] sockets;
4243 uint96 [] stakes;
4344 IStakeRegistry.StrategyParams[] strategies;
@@ -136,6 +137,7 @@ contract WavsListOperators is Script {
136137
137138 bytes32 [] memory operatorIds = new bytes32 [](operatorCount);
138139 BN254.G1Point[] memory pubkeys = new BN254.G1Point [](operatorCount);
140+ BN254.G2Point[] memory pubkeyG2s = new BN254.G2Point [](operatorCount);
139141 string [] memory sockets = new string [](operatorCount);
140142 uint96 [] memory stakes = new uint96 [](operatorCount);
141143
@@ -144,6 +146,7 @@ contract WavsListOperators is Script {
144146 blsApkRegistry.getRegisteredPubkey (operators[i]);
145147 operatorIds[i] = operatorId;
146148 pubkeys[i] = pubkey;
149+ pubkeyG2s[i] = blsApkRegistry.getOperatorPubkeyG2 (operators[i]);
147150 sockets[i] = socketRegistry.getOperatorSocket (operatorIds[i]);
148151 stakes[i] = stakeRegistry.getCurrentStake (operatorIds[i], _quorumNumber);
149152 }
@@ -162,6 +165,7 @@ contract WavsListOperators is Script {
162165 operators: operators,
163166 operatorIds: operatorIds,
164167 pubkeys: pubkeys,
168+ pubkeyG2s: pubkeyG2s,
165169 sockets: sockets,
166170 stakes: stakes,
167171 strategies: strategies
@@ -216,6 +220,19 @@ contract WavsListOperators is Script {
216220 json = string .concat (json, "\" , \" y \" : \" " );
217221 json = string .concat (json, Strings.toHexString (uint256 (opInfo.pubkeys[i].Y), 32 ));
218222 json = string .concat (json, "\" }, " );
223+ json = string .concat (json, "\" pubkeyG2 \" :{ " );
224+ json = string .concat (json, "\" x \" :[ \" " );
225+ json = string .concat (json, Strings.toHexString (uint256 (opInfo.pubkeyG2s[i].X[0 ]), 32 ));
226+ json = string .concat (
227+ json, "\" , \" " , Strings.toHexString (uint256 (opInfo.pubkeyG2s[i].X[1 ]), 32 )
228+ );
229+ json = string .concat (json, "\" ], " );
230+ json = string .concat (json, "\" y \" :[ \" " );
231+ json = string .concat (json, Strings.toHexString (uint256 (opInfo.pubkeyG2s[i].Y[0 ]), 32 ));
232+ json = string .concat (
233+ json, "\" , \" " , Strings.toHexString (uint256 (opInfo.pubkeyG2s[i].Y[1 ]), 32 )
234+ );
235+ json = string .concat (json, "\" ]}, " );
219236 json = string .concat (json, "\" socket \" : \" " );
220237 json = string .concat (json, opInfo.sockets[i]);
221238 json = string .concat (json, "\" , \" stake \" : \" " );
0 commit comments