@xyo-network/xl1-rpc 1.16.23 → 1.16.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/neutral/index.mjs +619 -489
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewer.d.ts +12 -0
- package/dist/neutral/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewer.d.ts.map +1 -0
- package/dist/neutral/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewerMethods.d.ts +12 -0
- package/dist/neutral/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewerMethods.d.ts.map +1 -0
- package/dist/neutral/provider/viewer/JsonRpcAccountBalanceViewer/index.d.ts +3 -0
- package/dist/neutral/provider/viewer/JsonRpcAccountBalanceViewer/index.d.ts.map +1 -0
- package/dist/neutral/provider/viewer/index.d.ts +1 -0
- package/dist/neutral/provider/viewer/index.d.ts.map +1 -1
- package/dist/neutral/types/AccountBalanceViewerRpc.d.ts +10 -0
- package/dist/neutral/types/AccountBalanceViewerRpc.d.ts.map +1 -0
- package/dist/neutral/types/index.d.ts +1 -0
- package/dist/neutral/types/index.d.ts.map +1 -1
- package/dist/neutral/types/schema/AccountBalanceViewerRpcSchemas.d.ts +132 -0
- package/dist/neutral/types/schema/AccountBalanceViewerRpcSchemas.d.ts.map +1 -0
- package/dist/neutral/types/schema/AllRpcSchemas.d.ts +128 -0
- package/dist/neutral/types/schema/AllRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/index.d.ts +1 -0
- package/dist/neutral/types/schema/index.d.ts.map +1 -1
- package/dist/node/index-node.mjs +619 -489
- package/dist/node/index-node.mjs.map +1 -1
- package/dist/node/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewer.d.ts +12 -0
- package/dist/node/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewer.d.ts.map +1 -0
- package/dist/node/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewerMethods.d.ts +12 -0
- package/dist/node/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewerMethods.d.ts.map +1 -0
- package/dist/node/provider/viewer/JsonRpcAccountBalanceViewer/index.d.ts +3 -0
- package/dist/node/provider/viewer/JsonRpcAccountBalanceViewer/index.d.ts.map +1 -0
- package/dist/node/provider/viewer/index.d.ts +1 -0
- package/dist/node/provider/viewer/index.d.ts.map +1 -1
- package/dist/node/types/AccountBalanceViewerRpc.d.ts +10 -0
- package/dist/node/types/AccountBalanceViewerRpc.d.ts.map +1 -0
- package/dist/node/types/index.d.ts +1 -0
- package/dist/node/types/index.d.ts.map +1 -1
- package/dist/node/types/schema/AccountBalanceViewerRpcSchemas.d.ts +132 -0
- package/dist/node/types/schema/AccountBalanceViewerRpcSchemas.d.ts.map +1 -0
- package/dist/node/types/schema/AllRpcSchemas.d.ts +128 -0
- package/dist/node/types/schema/AllRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/index.d.ts +1 -0
- package/dist/node/types/schema/index.d.ts.map +1 -1
- package/package.json +3 -4
- package/src/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewer.ts +23 -0
- package/src/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewerMethods.ts +31 -0
- package/src/provider/viewer/JsonRpcAccountBalanceViewer/index.ts +2 -0
- package/src/provider/viewer/index.ts +1 -0
- package/src/types/AccountBalanceViewerRpc.ts +16 -0
- package/src/types/index.ts +1 -0
- package/src/types/schema/AccountBalanceViewerRpcSchemas.ts +33 -0
- package/src/types/schema/AllRpcSchemas.ts +2 -0
- package/src/types/schema/index.ts +1 -0
package/dist/node/index-node.mjs
CHANGED
|
@@ -118,6 +118,9 @@ var rpcMethodHandlersFromSigner = /* @__PURE__ */ __name((signer) => {
|
|
|
118
118
|
// src/engine-node/rpcEngineFromConnection.ts
|
|
119
119
|
import { createAsyncMiddleware, JsonRpcEngine } from "@metamask/json-rpc-engine";
|
|
120
120
|
|
|
121
|
+
// src/types/AccountBalanceViewerRpc.ts
|
|
122
|
+
var AccountBalanceViewerRpcNamespace = "accountBalanceViewer";
|
|
123
|
+
|
|
121
124
|
// src/types/DataLakeViewerRpc.ts
|
|
122
125
|
var DataLakeViewerRpcNamespace = "dataLakeViewer";
|
|
123
126
|
|
|
@@ -166,28 +169,100 @@ var NetworkStakingStepRewardsTotalViewerRpcNamespace = "networkStakingStepReward
|
|
|
166
169
|
// src/types/NetworkStakingStepRewardsViewerRpc.ts
|
|
167
170
|
var NetworkStakingStepRewardsViewerRpcNamespace = "networkStakingStepRewardsViewer";
|
|
168
171
|
|
|
172
|
+
// src/types/schema/AccountBalanceViewerRpcSchemas.ts
|
|
173
|
+
import { AddressZod, BigIntToJsonZod, HashZod, JsonToBigIntZod } from "@xylabs/sdk-js";
|
|
174
|
+
import { XL1BlockRangeZod } from "@xyo-network/xl1-protocol";
|
|
175
|
+
import { AccountBalanceHistoryItemZod } from "@xyo-network/xl1-protocol-sdk";
|
|
176
|
+
import * as z from "zod";
|
|
177
|
+
var AccountBalanceViewerRpcSchemas = {
|
|
178
|
+
accountBalanceViewer_accountsBalances: {
|
|
179
|
+
params: {
|
|
180
|
+
to: z.union([
|
|
181
|
+
z.tuple([
|
|
182
|
+
z.array(AddressZod)
|
|
183
|
+
]),
|
|
184
|
+
z.tuple([
|
|
185
|
+
z.array(AddressZod),
|
|
186
|
+
z.union([
|
|
187
|
+
XL1BlockRangeZod,
|
|
188
|
+
HashZod
|
|
189
|
+
])
|
|
190
|
+
])
|
|
191
|
+
]),
|
|
192
|
+
from: z.union([
|
|
193
|
+
z.tuple([
|
|
194
|
+
z.array(AddressZod)
|
|
195
|
+
]),
|
|
196
|
+
z.tuple([
|
|
197
|
+
z.array(AddressZod),
|
|
198
|
+
z.union([
|
|
199
|
+
XL1BlockRangeZod,
|
|
200
|
+
HashZod
|
|
201
|
+
])
|
|
202
|
+
])
|
|
203
|
+
])
|
|
204
|
+
},
|
|
205
|
+
result: {
|
|
206
|
+
to: z.record(AddressZod, BigIntToJsonZod),
|
|
207
|
+
from: z.record(AddressZod, JsonToBigIntZod)
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
accountBalanceViewer_accountsBalancesHistory: {
|
|
211
|
+
params: {
|
|
212
|
+
to: z.union([
|
|
213
|
+
z.tuple([
|
|
214
|
+
z.array(AddressZod)
|
|
215
|
+
]),
|
|
216
|
+
z.tuple([
|
|
217
|
+
z.array(AddressZod),
|
|
218
|
+
z.union([
|
|
219
|
+
XL1BlockRangeZod,
|
|
220
|
+
HashZod
|
|
221
|
+
])
|
|
222
|
+
])
|
|
223
|
+
]),
|
|
224
|
+
from: z.union([
|
|
225
|
+
z.tuple([
|
|
226
|
+
z.array(AddressZod)
|
|
227
|
+
]),
|
|
228
|
+
z.tuple([
|
|
229
|
+
z.array(AddressZod),
|
|
230
|
+
z.union([
|
|
231
|
+
XL1BlockRangeZod,
|
|
232
|
+
HashZod
|
|
233
|
+
])
|
|
234
|
+
])
|
|
235
|
+
])
|
|
236
|
+
},
|
|
237
|
+
result: {
|
|
238
|
+
to: z.record(AddressZod, z.array(AccountBalanceHistoryItemZod)),
|
|
239
|
+
from: z.record(AddressZod, z.array(AccountBalanceHistoryItemZod))
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
|
|
169
244
|
// src/types/schema/NetworkStakeViewerRpcSchemas.ts
|
|
170
|
-
import { BigIntToJsonZod, JsonToBigIntZod } from "@xylabs/sdk-js";
|
|
245
|
+
import { BigIntToJsonZod as BigIntToJsonZod2, JsonToBigIntZod as JsonToBigIntZod2 } from "@xylabs/sdk-js";
|
|
171
246
|
import { BlockNumberZod } from "@xyo-network/xl1-protocol";
|
|
172
|
-
import * as
|
|
247
|
+
import * as z2 from "zod";
|
|
173
248
|
var NetworkStakeViewerRpcSchemas = {
|
|
174
249
|
networkStakeViewer_active: {
|
|
175
250
|
params: {
|
|
176
|
-
from:
|
|
251
|
+
from: z2.tuple([
|
|
177
252
|
BlockNumberZod.optional()
|
|
178
253
|
]),
|
|
179
|
-
to:
|
|
254
|
+
to: z2.tuple([
|
|
180
255
|
BlockNumberZod.optional()
|
|
181
256
|
])
|
|
182
257
|
},
|
|
183
258
|
result: {
|
|
184
|
-
from:
|
|
185
|
-
|
|
186
|
-
|
|
259
|
+
from: z2.tuple([
|
|
260
|
+
JsonToBigIntZod2,
|
|
261
|
+
z2.number()
|
|
187
262
|
]),
|
|
188
|
-
to:
|
|
189
|
-
|
|
190
|
-
|
|
263
|
+
to: z2.tuple([
|
|
264
|
+
BigIntToJsonZod2,
|
|
265
|
+
z2.number()
|
|
191
266
|
])
|
|
192
267
|
}
|
|
193
268
|
}
|
|
@@ -195,44 +270,44 @@ var NetworkStakeViewerRpcSchemas = {
|
|
|
195
270
|
|
|
196
271
|
// src/types/schema/XyoPermissionsRpcSchemas.ts
|
|
197
272
|
import { InvokerPermissionZod, PermissionRequestZod, RequestedPermissionZod } from "@xyo-network/xl1-protocol-sdk";
|
|
198
|
-
import * as
|
|
273
|
+
import * as z3 from "zod";
|
|
199
274
|
var XyoPermissionsRpcSchemas = {
|
|
200
275
|
xyoPermissions_getPermissions: {
|
|
201
276
|
params: {
|
|
202
|
-
to:
|
|
203
|
-
from:
|
|
277
|
+
to: z3.array(z3.any()).length(0),
|
|
278
|
+
from: z3.array(z3.any()).length(0)
|
|
204
279
|
},
|
|
205
280
|
result: {
|
|
206
|
-
to:
|
|
207
|
-
from:
|
|
281
|
+
to: z3.array(InvokerPermissionZod),
|
|
282
|
+
from: z3.array(InvokerPermissionZod)
|
|
208
283
|
}
|
|
209
284
|
},
|
|
210
285
|
xyoPermissions_requestPermissions: {
|
|
211
286
|
params: {
|
|
212
|
-
to:
|
|
213
|
-
|
|
287
|
+
to: z3.tuple([
|
|
288
|
+
z3.array(PermissionRequestZod)
|
|
214
289
|
]),
|
|
215
|
-
from:
|
|
216
|
-
|
|
290
|
+
from: z3.tuple([
|
|
291
|
+
z3.array(PermissionRequestZod)
|
|
217
292
|
])
|
|
218
293
|
},
|
|
219
294
|
result: {
|
|
220
|
-
to:
|
|
221
|
-
from:
|
|
295
|
+
to: z3.array(RequestedPermissionZod),
|
|
296
|
+
from: z3.array(RequestedPermissionZod)
|
|
222
297
|
}
|
|
223
298
|
},
|
|
224
299
|
xyoPermissions_revokePermissions: {
|
|
225
300
|
params: {
|
|
226
|
-
to:
|
|
227
|
-
|
|
301
|
+
to: z3.tuple([
|
|
302
|
+
z3.array(PermissionRequestZod)
|
|
228
303
|
]),
|
|
229
|
-
from:
|
|
230
|
-
|
|
304
|
+
from: z3.tuple([
|
|
305
|
+
z3.array(PermissionRequestZod)
|
|
231
306
|
])
|
|
232
307
|
},
|
|
233
308
|
result: {
|
|
234
|
-
to:
|
|
235
|
-
from:
|
|
309
|
+
to: z3.array(RequestedPermissionZod),
|
|
310
|
+
from: z3.array(RequestedPermissionZod)
|
|
236
311
|
}
|
|
237
312
|
}
|
|
238
313
|
};
|
|
@@ -240,14 +315,14 @@ var XyoPermissionsRpcSchemas = {
|
|
|
240
315
|
// src/types/schema/XyoRunnerRpcSchemas.ts
|
|
241
316
|
import { HashToJsonZod, JsonToHashZod } from "@xylabs/sdk-js";
|
|
242
317
|
import { SignedHydratedTransactionZod } from "@xyo-network/xl1-protocol-sdk";
|
|
243
|
-
import * as
|
|
318
|
+
import * as z4 from "zod";
|
|
244
319
|
var XyoRunnerRpcSchemas = {
|
|
245
320
|
xyoRunner_broadcastTransaction: {
|
|
246
321
|
params: {
|
|
247
|
-
to:
|
|
322
|
+
to: z4.tuple([
|
|
248
323
|
SignedHydratedTransactionZod
|
|
249
324
|
]),
|
|
250
|
-
from:
|
|
325
|
+
from: z4.tuple([
|
|
251
326
|
SignedHydratedTransactionZod
|
|
252
327
|
])
|
|
253
328
|
},
|
|
@@ -259,27 +334,27 @@ var XyoRunnerRpcSchemas = {
|
|
|
259
334
|
};
|
|
260
335
|
|
|
261
336
|
// src/types/schema/XyoSignerRpcSchemas.ts
|
|
262
|
-
import { AddressZod } from "@xylabs/sdk-js";
|
|
337
|
+
import { AddressZod as AddressZod2 } from "@xylabs/sdk-js";
|
|
263
338
|
import { asHydratedTransactionWithStorageMeta } from "@xyo-network/xl1-protocol";
|
|
264
339
|
import { SignedHydratedTransactionZod as SignedHydratedTransactionZod2, UnsignedHydratedTransactionZod } from "@xyo-network/xl1-protocol-sdk";
|
|
265
|
-
import { z as
|
|
340
|
+
import { z as z5 } from "zod";
|
|
266
341
|
var XyoSignerRpcSchemas = {
|
|
267
342
|
xyoSigner_address: {
|
|
268
343
|
params: {
|
|
269
|
-
to:
|
|
270
|
-
from:
|
|
344
|
+
to: z5.array(z5.any()).length(0).optional(),
|
|
345
|
+
from: z5.array(z5.any()).length(0).optional()
|
|
271
346
|
},
|
|
272
347
|
result: {
|
|
273
|
-
to:
|
|
274
|
-
from:
|
|
348
|
+
to: AddressZod2,
|
|
349
|
+
from: AddressZod2
|
|
275
350
|
}
|
|
276
351
|
},
|
|
277
352
|
xyoSigner_signTransaction: {
|
|
278
353
|
params: {
|
|
279
|
-
to:
|
|
354
|
+
to: z5.tuple([
|
|
280
355
|
UnsignedHydratedTransactionZod
|
|
281
356
|
]),
|
|
282
|
-
from:
|
|
357
|
+
from: z5.tuple([
|
|
283
358
|
UnsignedHydratedTransactionZod
|
|
284
359
|
])
|
|
285
360
|
},
|
|
@@ -293,521 +368,521 @@ var XyoSignerRpcSchemas = {
|
|
|
293
368
|
};
|
|
294
369
|
|
|
295
370
|
// src/types/schema/XyoViewerRpcSchemas.ts
|
|
296
|
-
import { AddressZod as
|
|
297
|
-
import { BlockNumberZod as BlockNumberZod2, BlockRangeZod, StepIdentityZod, XL1BlockNumberZod, XL1BlockRangeZod } from "@xyo-network/xl1-protocol";
|
|
298
|
-
import { AccountBalanceHistoryItemZod, JsonToStakeZod, SignedHydratedBlockZod, SignedHydratedTransactionZod as SignedHydratedTransactionZod3, StakeToJsonZod, TransferPairZod } from "@xyo-network/xl1-protocol-sdk";
|
|
299
|
-
import * as
|
|
371
|
+
import { AddressZod as AddressZod3, BigIntToJsonZod as BigIntToJsonZod3, HashToJsonZod as HashToJsonZod2, HashZod as HashZod2, JsonToBigIntZod as JsonToBigIntZod3, JsonToHashZod as JsonToHashZod2 } from "@xylabs/sdk-js";
|
|
372
|
+
import { BlockNumberZod as BlockNumberZod2, BlockRangeZod, StepIdentityZod, XL1BlockNumberZod, XL1BlockRangeZod as XL1BlockRangeZod2 } from "@xyo-network/xl1-protocol";
|
|
373
|
+
import { AccountBalanceHistoryItemZod as AccountBalanceHistoryItemZod2, JsonToStakeZod, SignedHydratedBlockZod, SignedHydratedTransactionZod as SignedHydratedTransactionZod3, StakeToJsonZod, TransferPairZod } from "@xyo-network/xl1-protocol-sdk";
|
|
374
|
+
import * as z6 from "zod";
|
|
300
375
|
var XyoViewerRpcSchemas = {
|
|
301
376
|
xyoViewer_networkStakeStepRewardClaimedByAddress: {
|
|
302
377
|
params: {
|
|
303
|
-
to:
|
|
304
|
-
|
|
378
|
+
to: z6.tuple([
|
|
379
|
+
AddressZod3
|
|
305
380
|
]),
|
|
306
|
-
from:
|
|
307
|
-
|
|
381
|
+
from: z6.tuple([
|
|
382
|
+
AddressZod3
|
|
308
383
|
])
|
|
309
384
|
},
|
|
310
385
|
result: {
|
|
311
|
-
to:
|
|
312
|
-
from:
|
|
386
|
+
to: BigIntToJsonZod3,
|
|
387
|
+
from: JsonToBigIntZod3
|
|
313
388
|
}
|
|
314
389
|
},
|
|
315
390
|
xyoViewer_networkStakeStepRewardAddressReward: {
|
|
316
391
|
params: {
|
|
317
|
-
to:
|
|
392
|
+
to: z6.tuple([
|
|
318
393
|
StepIdentityZod,
|
|
319
|
-
|
|
394
|
+
AddressZod3
|
|
320
395
|
]),
|
|
321
|
-
from:
|
|
396
|
+
from: z6.tuple([
|
|
322
397
|
StepIdentityZod,
|
|
323
|
-
|
|
398
|
+
AddressZod3
|
|
324
399
|
])
|
|
325
400
|
},
|
|
326
401
|
result: {
|
|
327
|
-
to:
|
|
328
|
-
from:
|
|
402
|
+
to: z6.record(AddressZod3, BigIntToJsonZod3),
|
|
403
|
+
from: z6.record(AddressZod3, JsonToBigIntZod3)
|
|
329
404
|
}
|
|
330
405
|
},
|
|
331
406
|
xyoViewer_networkStakeStepRewardAddressHistory: {
|
|
332
407
|
params: {
|
|
333
|
-
to:
|
|
334
|
-
|
|
408
|
+
to: z6.tuple([
|
|
409
|
+
AddressZod3
|
|
335
410
|
]),
|
|
336
|
-
from:
|
|
337
|
-
|
|
411
|
+
from: z6.tuple([
|
|
412
|
+
AddressZod3
|
|
338
413
|
])
|
|
339
414
|
},
|
|
340
415
|
result: {
|
|
341
|
-
to:
|
|
342
|
-
from:
|
|
416
|
+
to: z6.record(AddressZod3, BigIntToJsonZod3),
|
|
417
|
+
from: z6.record(AddressZod3, JsonToBigIntZod3)
|
|
343
418
|
}
|
|
344
419
|
},
|
|
345
420
|
xyoViewer_networkStakeStepRewardAddressShare: {
|
|
346
421
|
params: {
|
|
347
|
-
to:
|
|
422
|
+
to: z6.tuple([
|
|
348
423
|
StepIdentityZod,
|
|
349
|
-
|
|
424
|
+
AddressZod3
|
|
350
425
|
]),
|
|
351
|
-
from:
|
|
426
|
+
from: z6.tuple([
|
|
352
427
|
StepIdentityZod,
|
|
353
|
-
|
|
428
|
+
AddressZod3
|
|
354
429
|
])
|
|
355
430
|
},
|
|
356
431
|
result: {
|
|
357
|
-
to:
|
|
358
|
-
|
|
359
|
-
|
|
432
|
+
to: z6.tuple([
|
|
433
|
+
BigIntToJsonZod3,
|
|
434
|
+
BigIntToJsonZod3
|
|
360
435
|
]),
|
|
361
|
-
from:
|
|
362
|
-
|
|
363
|
-
|
|
436
|
+
from: z6.tuple([
|
|
437
|
+
JsonToBigIntZod3,
|
|
438
|
+
JsonToBigIntZod3
|
|
364
439
|
])
|
|
365
440
|
}
|
|
366
441
|
},
|
|
367
442
|
xyoViewer_networkStakeStepRewardWeightForAddress: {
|
|
368
443
|
params: {
|
|
369
|
-
to:
|
|
444
|
+
to: z6.tuple([
|
|
370
445
|
StepIdentityZod,
|
|
371
|
-
|
|
446
|
+
AddressZod3
|
|
372
447
|
]),
|
|
373
|
-
from:
|
|
448
|
+
from: z6.tuple([
|
|
374
449
|
StepIdentityZod,
|
|
375
|
-
|
|
450
|
+
AddressZod3
|
|
376
451
|
])
|
|
377
452
|
},
|
|
378
453
|
result: {
|
|
379
|
-
to:
|
|
380
|
-
from:
|
|
454
|
+
to: BigIntToJsonZod3,
|
|
455
|
+
from: JsonToBigIntZod3
|
|
381
456
|
}
|
|
382
457
|
},
|
|
383
458
|
xyoViewer_networkStakeStepRewardUnclaimedByAddress: {
|
|
384
459
|
params: {
|
|
385
|
-
to:
|
|
386
|
-
|
|
460
|
+
to: z6.tuple([
|
|
461
|
+
AddressZod3
|
|
387
462
|
]),
|
|
388
|
-
from:
|
|
389
|
-
|
|
463
|
+
from: z6.tuple([
|
|
464
|
+
AddressZod3
|
|
390
465
|
])
|
|
391
466
|
},
|
|
392
467
|
result: {
|
|
393
|
-
to:
|
|
394
|
-
from:
|
|
468
|
+
to: BigIntToJsonZod3,
|
|
469
|
+
from: JsonToBigIntZod3
|
|
395
470
|
}
|
|
396
471
|
},
|
|
397
472
|
xyoViewer_networkStakeStepRewardPoolRewards: {
|
|
398
473
|
params: {
|
|
399
|
-
to:
|
|
474
|
+
to: z6.tuple([
|
|
400
475
|
StepIdentityZod
|
|
401
476
|
]),
|
|
402
|
-
from:
|
|
477
|
+
from: z6.tuple([
|
|
403
478
|
StepIdentityZod
|
|
404
479
|
])
|
|
405
480
|
},
|
|
406
481
|
result: {
|
|
407
|
-
to:
|
|
408
|
-
from:
|
|
482
|
+
to: z6.record(AddressZod3, BigIntToJsonZod3),
|
|
483
|
+
from: z6.record(AddressZod3, JsonToBigIntZod3)
|
|
409
484
|
}
|
|
410
485
|
},
|
|
411
486
|
xyoViewer_networkStakeStepRewardPositionWeight: {
|
|
412
487
|
params: {
|
|
413
|
-
to:
|
|
488
|
+
to: z6.tuple([
|
|
414
489
|
StepIdentityZod,
|
|
415
|
-
|
|
490
|
+
z6.number()
|
|
416
491
|
]),
|
|
417
|
-
from:
|
|
492
|
+
from: z6.tuple([
|
|
418
493
|
StepIdentityZod,
|
|
419
|
-
|
|
494
|
+
z6.number()
|
|
420
495
|
])
|
|
421
496
|
},
|
|
422
497
|
result: {
|
|
423
|
-
to:
|
|
424
|
-
from:
|
|
498
|
+
to: BigIntToJsonZod3,
|
|
499
|
+
from: JsonToBigIntZod3
|
|
425
500
|
}
|
|
426
501
|
},
|
|
427
502
|
xyoViewer_networkStakeStepRewardPotentialPositionLoss: {
|
|
428
503
|
params: {
|
|
429
|
-
to:
|
|
504
|
+
to: z6.tuple([
|
|
430
505
|
StepIdentityZod,
|
|
431
|
-
|
|
506
|
+
z6.number()
|
|
432
507
|
]),
|
|
433
|
-
from:
|
|
508
|
+
from: z6.tuple([
|
|
434
509
|
StepIdentityZod,
|
|
435
|
-
|
|
510
|
+
z6.number()
|
|
436
511
|
])
|
|
437
512
|
},
|
|
438
513
|
result: {
|
|
439
|
-
to:
|
|
440
|
-
from:
|
|
514
|
+
to: BigIntToJsonZod3,
|
|
515
|
+
from: JsonToBigIntZod3
|
|
441
516
|
}
|
|
442
517
|
},
|
|
443
518
|
xyoViewer_networkStakeStepRewardForStep: {
|
|
444
519
|
params: {
|
|
445
|
-
to:
|
|
520
|
+
to: z6.tuple([
|
|
446
521
|
StepIdentityZod
|
|
447
522
|
]),
|
|
448
|
-
from:
|
|
523
|
+
from: z6.tuple([
|
|
449
524
|
StepIdentityZod
|
|
450
525
|
])
|
|
451
526
|
},
|
|
452
527
|
result: {
|
|
453
|
-
to:
|
|
454
|
-
from:
|
|
528
|
+
to: BigIntToJsonZod3,
|
|
529
|
+
from: JsonToBigIntZod3
|
|
455
530
|
}
|
|
456
531
|
},
|
|
457
532
|
xyoViewer_networkStakeStepRewardRandomizer: {
|
|
458
533
|
params: {
|
|
459
|
-
to:
|
|
534
|
+
to: z6.tuple([
|
|
460
535
|
StepIdentityZod
|
|
461
536
|
]),
|
|
462
|
-
from:
|
|
537
|
+
from: z6.tuple([
|
|
463
538
|
StepIdentityZod
|
|
464
539
|
])
|
|
465
540
|
},
|
|
466
541
|
result: {
|
|
467
|
-
to:
|
|
468
|
-
from:
|
|
542
|
+
to: BigIntToJsonZod3,
|
|
543
|
+
from: JsonToBigIntZod3
|
|
469
544
|
}
|
|
470
545
|
},
|
|
471
546
|
xyoViewer_networkStakeStepRewardStakerCount: {
|
|
472
547
|
params: {
|
|
473
|
-
to:
|
|
548
|
+
to: z6.tuple([
|
|
474
549
|
StepIdentityZod
|
|
475
550
|
]),
|
|
476
|
-
from:
|
|
551
|
+
from: z6.tuple([
|
|
477
552
|
StepIdentityZod
|
|
478
553
|
])
|
|
479
554
|
},
|
|
480
555
|
result: {
|
|
481
|
-
to:
|
|
482
|
-
from:
|
|
556
|
+
to: z6.number(),
|
|
557
|
+
from: z6.number()
|
|
483
558
|
}
|
|
484
559
|
},
|
|
485
560
|
xyoViewer_networkStakeStepRewardPoolShares: {
|
|
486
561
|
params: {
|
|
487
|
-
to:
|
|
562
|
+
to: z6.tuple([
|
|
488
563
|
StepIdentityZod
|
|
489
564
|
]),
|
|
490
|
-
from:
|
|
565
|
+
from: z6.tuple([
|
|
491
566
|
StepIdentityZod
|
|
492
567
|
])
|
|
493
568
|
},
|
|
494
569
|
result: {
|
|
495
|
-
to:
|
|
496
|
-
from:
|
|
570
|
+
to: z6.record(AddressZod3, BigIntToJsonZod3),
|
|
571
|
+
from: z6.record(AddressZod3, JsonToBigIntZod3)
|
|
497
572
|
}
|
|
498
573
|
},
|
|
499
574
|
xyoViewer_networkStakeStepRewardForStepForPosition: {
|
|
500
575
|
params: {
|
|
501
|
-
to:
|
|
576
|
+
to: z6.tuple([
|
|
502
577
|
StepIdentityZod,
|
|
503
|
-
|
|
578
|
+
z6.number()
|
|
504
579
|
]),
|
|
505
|
-
from:
|
|
580
|
+
from: z6.tuple([
|
|
506
581
|
StepIdentityZod,
|
|
507
|
-
|
|
582
|
+
z6.number()
|
|
508
583
|
])
|
|
509
584
|
},
|
|
510
585
|
result: {
|
|
511
|
-
to:
|
|
512
|
-
|
|
513
|
-
|
|
586
|
+
to: z6.tuple([
|
|
587
|
+
BigIntToJsonZod3,
|
|
588
|
+
BigIntToJsonZod3
|
|
514
589
|
]),
|
|
515
|
-
from:
|
|
516
|
-
|
|
517
|
-
|
|
590
|
+
from: z6.tuple([
|
|
591
|
+
JsonToBigIntZod3,
|
|
592
|
+
JsonToBigIntZod3
|
|
518
593
|
])
|
|
519
594
|
}
|
|
520
595
|
},
|
|
521
596
|
xyoViewer_networkStakeStepRewardForPosition: {
|
|
522
597
|
params: {
|
|
523
|
-
to:
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
598
|
+
to: z6.tuple([
|
|
599
|
+
z6.number(),
|
|
600
|
+
z6.tuple([
|
|
601
|
+
z6.number(),
|
|
602
|
+
z6.number()
|
|
528
603
|
])
|
|
529
604
|
]),
|
|
530
|
-
from:
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
605
|
+
from: z6.tuple([
|
|
606
|
+
z6.number(),
|
|
607
|
+
z6.tuple([
|
|
608
|
+
z6.number(),
|
|
609
|
+
z6.number()
|
|
535
610
|
])
|
|
536
611
|
])
|
|
537
612
|
},
|
|
538
613
|
result: {
|
|
539
|
-
to:
|
|
540
|
-
|
|
541
|
-
|
|
614
|
+
to: z6.tuple([
|
|
615
|
+
BigIntToJsonZod3,
|
|
616
|
+
BigIntToJsonZod3
|
|
542
617
|
]),
|
|
543
|
-
from:
|
|
544
|
-
|
|
545
|
-
|
|
618
|
+
from: z6.tuple([
|
|
619
|
+
JsonToBigIntZod3,
|
|
620
|
+
JsonToBigIntZod3
|
|
546
621
|
])
|
|
547
622
|
}
|
|
548
623
|
},
|
|
549
624
|
xyoViewer_networkStakeStepRewardsForRange: {
|
|
550
625
|
params: {
|
|
551
|
-
to:
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
626
|
+
to: z6.tuple([
|
|
627
|
+
z6.tuple([
|
|
628
|
+
z6.number(),
|
|
629
|
+
z6.number()
|
|
555
630
|
])
|
|
556
631
|
]),
|
|
557
|
-
from:
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
632
|
+
from: z6.tuple([
|
|
633
|
+
z6.tuple([
|
|
634
|
+
z6.number(),
|
|
635
|
+
z6.number()
|
|
561
636
|
])
|
|
562
637
|
])
|
|
563
638
|
},
|
|
564
639
|
result: {
|
|
565
|
-
to:
|
|
566
|
-
from:
|
|
640
|
+
to: BigIntToJsonZod3,
|
|
641
|
+
from: JsonToBigIntZod3
|
|
567
642
|
}
|
|
568
643
|
},
|
|
569
644
|
xyoViewer_networkStakeStepRewardsForStepLevel: {
|
|
570
645
|
params: {
|
|
571
|
-
to:
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
646
|
+
to: z6.tuple([
|
|
647
|
+
z6.number(),
|
|
648
|
+
z6.tuple([
|
|
649
|
+
z6.number(),
|
|
650
|
+
z6.number()
|
|
576
651
|
])
|
|
577
652
|
]),
|
|
578
|
-
from:
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
653
|
+
from: z6.tuple([
|
|
654
|
+
z6.number(),
|
|
655
|
+
z6.tuple([
|
|
656
|
+
z6.number(),
|
|
657
|
+
z6.number()
|
|
583
658
|
])
|
|
584
659
|
])
|
|
585
660
|
},
|
|
586
661
|
result: {
|
|
587
|
-
to:
|
|
588
|
-
from:
|
|
662
|
+
to: BigIntToJsonZod3,
|
|
663
|
+
from: JsonToBigIntZod3
|
|
589
664
|
}
|
|
590
665
|
},
|
|
591
666
|
xyoViewer_networkStakeStepRewardsForPosition: {
|
|
592
667
|
params: {
|
|
593
|
-
to:
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
668
|
+
to: z6.tuple([
|
|
669
|
+
z6.number(),
|
|
670
|
+
z6.tuple([
|
|
671
|
+
z6.number(),
|
|
672
|
+
z6.number()
|
|
598
673
|
])
|
|
599
674
|
]),
|
|
600
|
-
from:
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
675
|
+
from: z6.tuple([
|
|
676
|
+
z6.number(),
|
|
677
|
+
z6.tuple([
|
|
678
|
+
z6.number(),
|
|
679
|
+
z6.number()
|
|
605
680
|
])
|
|
606
681
|
])
|
|
607
682
|
},
|
|
608
683
|
result: {
|
|
609
|
-
to:
|
|
610
|
-
|
|
611
|
-
|
|
684
|
+
to: z6.record(z6.string(), z6.tuple([
|
|
685
|
+
BigIntToJsonZod3,
|
|
686
|
+
BigIntToJsonZod3
|
|
612
687
|
])),
|
|
613
|
-
from:
|
|
614
|
-
|
|
615
|
-
|
|
688
|
+
from: z6.record(z6.string(), z6.tuple([
|
|
689
|
+
JsonToBigIntZod3,
|
|
690
|
+
JsonToBigIntZod3
|
|
616
691
|
]))
|
|
617
692
|
}
|
|
618
693
|
},
|
|
619
694
|
xyoViewer_accountBalance: {
|
|
620
695
|
params: {
|
|
621
|
-
to:
|
|
622
|
-
|
|
623
|
-
|
|
696
|
+
to: z6.union([
|
|
697
|
+
z6.tuple([
|
|
698
|
+
AddressZod3
|
|
624
699
|
]),
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
700
|
+
z6.tuple([
|
|
701
|
+
AddressZod3,
|
|
702
|
+
z6.union([
|
|
703
|
+
XL1BlockRangeZod2,
|
|
704
|
+
HashZod2
|
|
630
705
|
])
|
|
631
706
|
])
|
|
632
707
|
]),
|
|
633
|
-
from:
|
|
634
|
-
|
|
635
|
-
|
|
708
|
+
from: z6.union([
|
|
709
|
+
z6.tuple([
|
|
710
|
+
AddressZod3
|
|
636
711
|
]),
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
712
|
+
z6.tuple([
|
|
713
|
+
AddressZod3,
|
|
714
|
+
z6.union([
|
|
715
|
+
XL1BlockRangeZod2,
|
|
716
|
+
HashZod2
|
|
642
717
|
])
|
|
643
718
|
])
|
|
644
719
|
])
|
|
645
720
|
},
|
|
646
721
|
result: {
|
|
647
|
-
to:
|
|
648
|
-
from:
|
|
722
|
+
to: BigIntToJsonZod3,
|
|
723
|
+
from: JsonToBigIntZod3
|
|
649
724
|
}
|
|
650
725
|
},
|
|
651
726
|
xyoViewer_accountBalanceHistory: {
|
|
652
727
|
params: {
|
|
653
|
-
to:
|
|
654
|
-
|
|
655
|
-
|
|
728
|
+
to: z6.union([
|
|
729
|
+
z6.tuple([
|
|
730
|
+
AddressZod3
|
|
656
731
|
]),
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
732
|
+
z6.tuple([
|
|
733
|
+
AddressZod3,
|
|
734
|
+
z6.union([
|
|
735
|
+
XL1BlockRangeZod2,
|
|
736
|
+
HashZod2
|
|
662
737
|
])
|
|
663
738
|
])
|
|
664
739
|
]),
|
|
665
|
-
from:
|
|
666
|
-
|
|
667
|
-
|
|
740
|
+
from: z6.union([
|
|
741
|
+
z6.tuple([
|
|
742
|
+
AddressZod3
|
|
668
743
|
]),
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
744
|
+
z6.tuple([
|
|
745
|
+
AddressZod3,
|
|
746
|
+
z6.union([
|
|
747
|
+
XL1BlockRangeZod2,
|
|
748
|
+
HashZod2
|
|
674
749
|
])
|
|
675
750
|
])
|
|
676
751
|
])
|
|
677
752
|
},
|
|
678
753
|
result: {
|
|
679
|
-
to:
|
|
680
|
-
from:
|
|
754
|
+
to: z6.array(AccountBalanceHistoryItemZod2),
|
|
755
|
+
from: z6.array(AccountBalanceHistoryItemZod2)
|
|
681
756
|
}
|
|
682
757
|
},
|
|
683
758
|
xyoViewer_accountsBalances: {
|
|
684
759
|
params: {
|
|
685
|
-
to:
|
|
686
|
-
|
|
687
|
-
|
|
760
|
+
to: z6.union([
|
|
761
|
+
z6.tuple([
|
|
762
|
+
z6.array(AddressZod3)
|
|
688
763
|
]),
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
764
|
+
z6.tuple([
|
|
765
|
+
z6.array(AddressZod3),
|
|
766
|
+
z6.union([
|
|
767
|
+
XL1BlockRangeZod2,
|
|
768
|
+
HashZod2
|
|
694
769
|
])
|
|
695
770
|
])
|
|
696
771
|
]),
|
|
697
|
-
from:
|
|
698
|
-
|
|
699
|
-
|
|
772
|
+
from: z6.union([
|
|
773
|
+
z6.tuple([
|
|
774
|
+
z6.array(AddressZod3)
|
|
700
775
|
]),
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
776
|
+
z6.tuple([
|
|
777
|
+
z6.array(AddressZod3),
|
|
778
|
+
z6.union([
|
|
779
|
+
XL1BlockRangeZod2,
|
|
780
|
+
HashZod2
|
|
706
781
|
])
|
|
707
782
|
])
|
|
708
783
|
])
|
|
709
784
|
},
|
|
710
785
|
result: {
|
|
711
|
-
to:
|
|
712
|
-
from:
|
|
786
|
+
to: z6.record(AddressZod3, BigIntToJsonZod3),
|
|
787
|
+
from: z6.record(AddressZod3, JsonToBigIntZod3)
|
|
713
788
|
}
|
|
714
789
|
},
|
|
715
790
|
xyoViewer_accountsBalancesHistory: {
|
|
716
791
|
params: {
|
|
717
|
-
to:
|
|
718
|
-
|
|
719
|
-
|
|
792
|
+
to: z6.union([
|
|
793
|
+
z6.tuple([
|
|
794
|
+
z6.array(AddressZod3)
|
|
720
795
|
]),
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
796
|
+
z6.tuple([
|
|
797
|
+
z6.array(AddressZod3),
|
|
798
|
+
z6.union([
|
|
799
|
+
XL1BlockRangeZod2,
|
|
800
|
+
HashZod2
|
|
726
801
|
])
|
|
727
802
|
])
|
|
728
803
|
]),
|
|
729
|
-
from:
|
|
730
|
-
|
|
731
|
-
|
|
804
|
+
from: z6.union([
|
|
805
|
+
z6.tuple([
|
|
806
|
+
z6.array(AddressZod3)
|
|
732
807
|
]),
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
808
|
+
z6.tuple([
|
|
809
|
+
z6.array(AddressZod3),
|
|
810
|
+
z6.union([
|
|
811
|
+
XL1BlockRangeZod2,
|
|
812
|
+
HashZod2
|
|
738
813
|
])
|
|
739
814
|
])
|
|
740
815
|
])
|
|
741
816
|
},
|
|
742
817
|
result: {
|
|
743
|
-
to:
|
|
744
|
-
from:
|
|
818
|
+
to: z6.record(AddressZod3, AccountBalanceHistoryItemZod2),
|
|
819
|
+
from: z6.record(AddressZod3, AccountBalanceHistoryItemZod2)
|
|
745
820
|
}
|
|
746
821
|
},
|
|
747
822
|
xyoViewer_transferPairBalance: {
|
|
748
823
|
params: {
|
|
749
|
-
to:
|
|
824
|
+
to: z6.tuple([
|
|
750
825
|
TransferPairZod
|
|
751
826
|
]),
|
|
752
|
-
from:
|
|
827
|
+
from: z6.tuple([
|
|
753
828
|
TransferPairZod
|
|
754
829
|
])
|
|
755
830
|
},
|
|
756
831
|
result: {
|
|
757
|
-
to:
|
|
758
|
-
from:
|
|
832
|
+
to: BigIntToJsonZod3,
|
|
833
|
+
from: JsonToBigIntZod3
|
|
759
834
|
}
|
|
760
835
|
},
|
|
761
836
|
xyoViewer_transferPairBalanceHistory: {
|
|
762
837
|
params: {
|
|
763
|
-
to:
|
|
838
|
+
to: z6.tuple([
|
|
764
839
|
TransferPairZod
|
|
765
840
|
]),
|
|
766
|
-
from:
|
|
841
|
+
from: z6.tuple([
|
|
767
842
|
TransferPairZod
|
|
768
843
|
])
|
|
769
844
|
},
|
|
770
845
|
result: {
|
|
771
|
-
to:
|
|
772
|
-
from:
|
|
846
|
+
to: z6.array(AccountBalanceHistoryItemZod2),
|
|
847
|
+
from: z6.array(AccountBalanceHistoryItemZod2)
|
|
773
848
|
}
|
|
774
849
|
},
|
|
775
850
|
xyoViewer_transferBalance: {
|
|
776
851
|
params: {
|
|
777
|
-
to:
|
|
778
|
-
|
|
852
|
+
to: z6.tuple([
|
|
853
|
+
AddressZod3
|
|
779
854
|
]),
|
|
780
|
-
from:
|
|
781
|
-
|
|
855
|
+
from: z6.tuple([
|
|
856
|
+
AddressZod3
|
|
782
857
|
])
|
|
783
858
|
},
|
|
784
859
|
result: {
|
|
785
|
-
to:
|
|
786
|
-
from:
|
|
860
|
+
to: BigIntToJsonZod3,
|
|
861
|
+
from: JsonToBigIntZod3
|
|
787
862
|
}
|
|
788
863
|
},
|
|
789
864
|
xyoViewer_transferBalanceHistory: {
|
|
790
865
|
params: {
|
|
791
|
-
to:
|
|
792
|
-
|
|
866
|
+
to: z6.tuple([
|
|
867
|
+
AddressZod3,
|
|
793
868
|
BlockRangeZod.optional()
|
|
794
869
|
]),
|
|
795
|
-
from:
|
|
796
|
-
|
|
870
|
+
from: z6.tuple([
|
|
871
|
+
AddressZod3,
|
|
797
872
|
BlockRangeZod.optional()
|
|
798
873
|
])
|
|
799
874
|
},
|
|
800
875
|
result: {
|
|
801
|
-
to:
|
|
802
|
-
from:
|
|
876
|
+
to: z6.array(AccountBalanceHistoryItemZod2),
|
|
877
|
+
from: z6.array(AccountBalanceHistoryItemZod2)
|
|
803
878
|
}
|
|
804
879
|
},
|
|
805
880
|
xyoViewer_blockByHash: {
|
|
806
881
|
params: {
|
|
807
|
-
to:
|
|
882
|
+
to: z6.tuple([
|
|
808
883
|
HashToJsonZod2
|
|
809
884
|
]),
|
|
810
|
-
from:
|
|
885
|
+
from: z6.tuple([
|
|
811
886
|
JsonToHashZod2
|
|
812
887
|
])
|
|
813
888
|
},
|
|
@@ -818,11 +893,11 @@ var XyoViewerRpcSchemas = {
|
|
|
818
893
|
},
|
|
819
894
|
xyoViewer_blockByNumber: {
|
|
820
895
|
params: {
|
|
821
|
-
to:
|
|
822
|
-
|
|
896
|
+
to: z6.tuple([
|
|
897
|
+
z6.number()
|
|
823
898
|
]),
|
|
824
|
-
from:
|
|
825
|
-
|
|
899
|
+
from: z6.tuple([
|
|
900
|
+
z6.number()
|
|
826
901
|
])
|
|
827
902
|
},
|
|
828
903
|
result: {
|
|
@@ -832,48 +907,48 @@ var XyoViewerRpcSchemas = {
|
|
|
832
907
|
},
|
|
833
908
|
xyoViewer_blocksByHash: {
|
|
834
909
|
params: {
|
|
835
|
-
to:
|
|
836
|
-
|
|
837
|
-
|
|
910
|
+
to: z6.tuple([
|
|
911
|
+
HashZod2,
|
|
912
|
+
z6.number().optional()
|
|
838
913
|
]),
|
|
839
|
-
from:
|
|
840
|
-
|
|
841
|
-
|
|
914
|
+
from: z6.tuple([
|
|
915
|
+
HashZod2,
|
|
916
|
+
z6.number().optional()
|
|
842
917
|
])
|
|
843
918
|
},
|
|
844
919
|
result: {
|
|
845
|
-
to:
|
|
846
|
-
from:
|
|
920
|
+
to: z6.array(SignedHydratedBlockZod),
|
|
921
|
+
from: z6.array(SignedHydratedBlockZod)
|
|
847
922
|
}
|
|
848
923
|
},
|
|
849
924
|
xyoViewer_chainId: {
|
|
850
925
|
params: {
|
|
851
|
-
to:
|
|
852
|
-
from:
|
|
926
|
+
to: z6.array(z6.any()).length(0).optional(),
|
|
927
|
+
from: z6.array(z6.any()).length(0).optional()
|
|
853
928
|
},
|
|
854
929
|
result: {
|
|
855
|
-
to:
|
|
856
|
-
from:
|
|
930
|
+
to: AddressZod3,
|
|
931
|
+
from: AddressZod3
|
|
857
932
|
}
|
|
858
933
|
},
|
|
859
934
|
xyoViewer_chainIdAtBlock: {
|
|
860
935
|
params: {
|
|
861
|
-
to:
|
|
936
|
+
to: z6.tuple([
|
|
862
937
|
BlockNumberZod2
|
|
863
938
|
]),
|
|
864
|
-
from:
|
|
939
|
+
from: z6.tuple([
|
|
865
940
|
BlockNumberZod2
|
|
866
941
|
])
|
|
867
942
|
},
|
|
868
943
|
result: {
|
|
869
|
-
to:
|
|
870
|
-
from:
|
|
944
|
+
to: AddressZod3,
|
|
945
|
+
from: AddressZod3
|
|
871
946
|
}
|
|
872
947
|
},
|
|
873
948
|
xyoViewer_currentBlock: {
|
|
874
949
|
params: {
|
|
875
|
-
to:
|
|
876
|
-
from:
|
|
950
|
+
to: z6.array(z6.any()).length(0).optional(),
|
|
951
|
+
from: z6.array(z6.any()).length(0).optional()
|
|
877
952
|
},
|
|
878
953
|
result: {
|
|
879
954
|
to: SignedHydratedBlockZod,
|
|
@@ -882,18 +957,18 @@ var XyoViewerRpcSchemas = {
|
|
|
882
957
|
},
|
|
883
958
|
xyoViewer_currentBlockHash: {
|
|
884
959
|
params: {
|
|
885
|
-
to:
|
|
886
|
-
from:
|
|
960
|
+
to: z6.array(z6.any()).length(0).optional(),
|
|
961
|
+
from: z6.array(z6.any()).length(0).optional()
|
|
887
962
|
},
|
|
888
963
|
result: {
|
|
889
|
-
to:
|
|
890
|
-
from:
|
|
964
|
+
to: HashZod2,
|
|
965
|
+
from: HashZod2
|
|
891
966
|
}
|
|
892
967
|
},
|
|
893
968
|
xyoViewer_currentBlockNumber: {
|
|
894
969
|
params: {
|
|
895
|
-
to:
|
|
896
|
-
from:
|
|
970
|
+
to: z6.array(z6.any()).length(0).optional(),
|
|
971
|
+
from: z6.array(z6.any()).length(0).optional()
|
|
897
972
|
},
|
|
898
973
|
result: {
|
|
899
974
|
to: XL1BlockNumberZod,
|
|
@@ -902,23 +977,23 @@ var XyoViewerRpcSchemas = {
|
|
|
902
977
|
},
|
|
903
978
|
xyoViewer_forkHistory: {
|
|
904
979
|
params: {
|
|
905
|
-
to:
|
|
906
|
-
from:
|
|
980
|
+
to: z6.array(z6.any()).length(0).optional(),
|
|
981
|
+
from: z6.array(z6.any()).length(0).optional()
|
|
907
982
|
},
|
|
908
983
|
result: {
|
|
909
|
-
to:
|
|
910
|
-
from:
|
|
984
|
+
to: z6.record(z6.number(), AddressZod3),
|
|
985
|
+
from: z6.record(z6.number(), AddressZod3)
|
|
911
986
|
}
|
|
912
987
|
},
|
|
913
988
|
xyoViewer_stakeByStaker: {
|
|
914
989
|
params: {
|
|
915
|
-
to:
|
|
916
|
-
|
|
917
|
-
|
|
990
|
+
to: z6.tuple([
|
|
991
|
+
AddressZod3,
|
|
992
|
+
z6.number()
|
|
918
993
|
]),
|
|
919
|
-
from:
|
|
920
|
-
|
|
921
|
-
|
|
994
|
+
from: z6.tuple([
|
|
995
|
+
AddressZod3,
|
|
996
|
+
z6.number()
|
|
922
997
|
])
|
|
923
998
|
},
|
|
924
999
|
result: {
|
|
@@ -928,11 +1003,11 @@ var XyoViewerRpcSchemas = {
|
|
|
928
1003
|
},
|
|
929
1004
|
xyoViewer_stakeById: {
|
|
930
1005
|
params: {
|
|
931
|
-
to:
|
|
932
|
-
|
|
1006
|
+
to: z6.tuple([
|
|
1007
|
+
z6.number()
|
|
933
1008
|
]),
|
|
934
|
-
from:
|
|
935
|
-
|
|
1009
|
+
from: z6.tuple([
|
|
1010
|
+
z6.number()
|
|
936
1011
|
])
|
|
937
1012
|
},
|
|
938
1013
|
result: {
|
|
@@ -942,41 +1017,41 @@ var XyoViewerRpcSchemas = {
|
|
|
942
1017
|
},
|
|
943
1018
|
xyoViewer_stakesByStaker: {
|
|
944
1019
|
params: {
|
|
945
|
-
to:
|
|
946
|
-
|
|
1020
|
+
to: z6.tuple([
|
|
1021
|
+
AddressZod3
|
|
947
1022
|
]),
|
|
948
|
-
from:
|
|
949
|
-
|
|
1023
|
+
from: z6.tuple([
|
|
1024
|
+
AddressZod3
|
|
950
1025
|
])
|
|
951
1026
|
},
|
|
952
1027
|
result: {
|
|
953
|
-
to:
|
|
954
|
-
from:
|
|
1028
|
+
to: z6.array(StakeToJsonZod),
|
|
1029
|
+
from: z6.array(JsonToStakeZod)
|
|
955
1030
|
}
|
|
956
1031
|
},
|
|
957
1032
|
xyoViewer_stakesByStaked: {
|
|
958
1033
|
params: {
|
|
959
|
-
to:
|
|
960
|
-
|
|
1034
|
+
to: z6.tuple([
|
|
1035
|
+
AddressZod3
|
|
961
1036
|
]),
|
|
962
|
-
from:
|
|
963
|
-
|
|
1037
|
+
from: z6.tuple([
|
|
1038
|
+
AddressZod3
|
|
964
1039
|
])
|
|
965
1040
|
},
|
|
966
1041
|
result: {
|
|
967
|
-
to:
|
|
968
|
-
from:
|
|
1042
|
+
to: z6.array(StakeToJsonZod),
|
|
1043
|
+
from: z6.array(JsonToStakeZod)
|
|
969
1044
|
}
|
|
970
1045
|
},
|
|
971
1046
|
xyoViewer_transactionByBlockHashAndIndex: {
|
|
972
1047
|
params: {
|
|
973
|
-
to:
|
|
974
|
-
|
|
975
|
-
|
|
1048
|
+
to: z6.tuple([
|
|
1049
|
+
HashZod2,
|
|
1050
|
+
z6.number()
|
|
976
1051
|
]),
|
|
977
|
-
from:
|
|
978
|
-
|
|
979
|
-
|
|
1052
|
+
from: z6.tuple([
|
|
1053
|
+
HashZod2,
|
|
1054
|
+
z6.number()
|
|
980
1055
|
])
|
|
981
1056
|
},
|
|
982
1057
|
result: {
|
|
@@ -986,13 +1061,13 @@ var XyoViewerRpcSchemas = {
|
|
|
986
1061
|
},
|
|
987
1062
|
xyoViewer_transactionByBlockNumberAndIndex: {
|
|
988
1063
|
params: {
|
|
989
|
-
to:
|
|
990
|
-
|
|
991
|
-
|
|
1064
|
+
to: z6.tuple([
|
|
1065
|
+
z6.number(),
|
|
1066
|
+
z6.number()
|
|
992
1067
|
]),
|
|
993
|
-
from:
|
|
994
|
-
|
|
995
|
-
|
|
1068
|
+
from: z6.tuple([
|
|
1069
|
+
z6.number(),
|
|
1070
|
+
z6.number()
|
|
996
1071
|
])
|
|
997
1072
|
},
|
|
998
1073
|
result: {
|
|
@@ -1002,11 +1077,11 @@ var XyoViewerRpcSchemas = {
|
|
|
1002
1077
|
},
|
|
1003
1078
|
xyoViewer_transactionByHash: {
|
|
1004
1079
|
params: {
|
|
1005
|
-
to:
|
|
1006
|
-
|
|
1080
|
+
to: z6.tuple([
|
|
1081
|
+
HashZod2
|
|
1007
1082
|
]),
|
|
1008
|
-
from:
|
|
1009
|
-
|
|
1083
|
+
from: z6.tuple([
|
|
1084
|
+
HashZod2
|
|
1010
1085
|
])
|
|
1011
1086
|
},
|
|
1012
1087
|
result: {
|
|
@@ -1018,6 +1093,7 @@ var XyoViewerRpcSchemas = {
|
|
|
1018
1093
|
|
|
1019
1094
|
// src/types/schema/AllRpcSchemas.ts
|
|
1020
1095
|
var AllRpcSchemas = {
|
|
1096
|
+
...AccountBalanceViewerRpcSchemas,
|
|
1021
1097
|
...XyoRunnerRpcSchemas,
|
|
1022
1098
|
...XyoSignerRpcSchemas,
|
|
1023
1099
|
...XyoViewerRpcSchemas,
|
|
@@ -1026,49 +1102,49 @@ var AllRpcSchemas = {
|
|
|
1026
1102
|
};
|
|
1027
1103
|
|
|
1028
1104
|
// src/types/schema/createRequestSchema.ts
|
|
1029
|
-
import * as z6 from "zod";
|
|
1030
|
-
var createRequestSchema = /* @__PURE__ */ __name((methodName, paramsSchema = z6.undefined()) => z6.object({
|
|
1031
|
-
id: z6.union([
|
|
1032
|
-
z6.string(),
|
|
1033
|
-
z6.number()
|
|
1034
|
-
]),
|
|
1035
|
-
jsonrpc: z6.literal(jsonrpc),
|
|
1036
|
-
method: z6.literal(methodName),
|
|
1037
|
-
params: paramsSchema
|
|
1038
|
-
}), "createRequestSchema");
|
|
1039
|
-
|
|
1040
|
-
// src/types/schema/createResponseSchema.ts
|
|
1041
1105
|
import * as z7 from "zod";
|
|
1042
|
-
var
|
|
1106
|
+
var createRequestSchema = /* @__PURE__ */ __name((methodName, paramsSchema = z7.undefined()) => z7.object({
|
|
1043
1107
|
id: z7.union([
|
|
1044
1108
|
z7.string(),
|
|
1045
1109
|
z7.number()
|
|
1046
1110
|
]),
|
|
1047
1111
|
jsonrpc: z7.literal(jsonrpc),
|
|
1112
|
+
method: z7.literal(methodName),
|
|
1113
|
+
params: paramsSchema
|
|
1114
|
+
}), "createRequestSchema");
|
|
1115
|
+
|
|
1116
|
+
// src/types/schema/createResponseSchema.ts
|
|
1117
|
+
import * as z8 from "zod";
|
|
1118
|
+
var createResponseSchema = /* @__PURE__ */ __name((resultSchema = z8.undefined()) => z8.object({
|
|
1119
|
+
id: z8.union([
|
|
1120
|
+
z8.string(),
|
|
1121
|
+
z8.number()
|
|
1122
|
+
]),
|
|
1123
|
+
jsonrpc: z8.literal(jsonrpc),
|
|
1048
1124
|
result: resultSchema
|
|
1049
1125
|
}), "createResponseSchema");
|
|
1050
1126
|
|
|
1051
1127
|
// src/types/schema/DataLakeViewerRpcSchema.ts
|
|
1052
|
-
import { HashZod as
|
|
1128
|
+
import { HashZod as HashZod3 } from "@xylabs/sdk-js";
|
|
1053
1129
|
import { PayloadZod } from "@xyo-network/payload-model";
|
|
1054
1130
|
import { ArrayBufferToJsonZod, JsonToArrayBufferZod } from "@xyo-network/xl1-protocol-sdk";
|
|
1055
|
-
import * as
|
|
1131
|
+
import * as z9 from "zod";
|
|
1056
1132
|
var DataLakeViewerRpcSchemas = {
|
|
1057
1133
|
dataLakeViewer_get: {
|
|
1058
1134
|
params: {
|
|
1059
|
-
to:
|
|
1060
|
-
|
|
1135
|
+
to: z9.tuple([
|
|
1136
|
+
HashZod3
|
|
1061
1137
|
]),
|
|
1062
|
-
from:
|
|
1063
|
-
|
|
1138
|
+
from: z9.tuple([
|
|
1139
|
+
HashZod3
|
|
1064
1140
|
])
|
|
1065
1141
|
},
|
|
1066
1142
|
result: {
|
|
1067
|
-
to:
|
|
1143
|
+
to: z9.union([
|
|
1068
1144
|
PayloadZod,
|
|
1069
1145
|
ArrayBufferToJsonZod
|
|
1070
1146
|
]).optional(),
|
|
1071
|
-
from:
|
|
1147
|
+
from: z9.union([
|
|
1072
1148
|
PayloadZod,
|
|
1073
1149
|
JsonToArrayBufferZod
|
|
1074
1150
|
]).optional()
|
|
@@ -1076,19 +1152,19 @@ var DataLakeViewerRpcSchemas = {
|
|
|
1076
1152
|
},
|
|
1077
1153
|
dataLakeViewer_getMany: {
|
|
1078
1154
|
params: {
|
|
1079
|
-
to:
|
|
1080
|
-
|
|
1155
|
+
to: z9.tuple([
|
|
1156
|
+
z9.array(HashZod3)
|
|
1081
1157
|
]),
|
|
1082
|
-
from:
|
|
1083
|
-
|
|
1158
|
+
from: z9.tuple([
|
|
1159
|
+
z9.array(HashZod3)
|
|
1084
1160
|
])
|
|
1085
1161
|
},
|
|
1086
1162
|
result: {
|
|
1087
|
-
to:
|
|
1163
|
+
to: z9.array(z9.union([
|
|
1088
1164
|
PayloadZod,
|
|
1089
1165
|
ArrayBufferToJsonZod
|
|
1090
1166
|
])),
|
|
1091
|
-
from:
|
|
1167
|
+
from: z9.array(z9.union([
|
|
1092
1168
|
PayloadZod,
|
|
1093
1169
|
JsonToArrayBufferZod
|
|
1094
1170
|
]))
|
|
@@ -1096,326 +1172,326 @@ var DataLakeViewerRpcSchemas = {
|
|
|
1096
1172
|
},
|
|
1097
1173
|
dataLakeViewer_has: {
|
|
1098
1174
|
params: {
|
|
1099
|
-
to:
|
|
1100
|
-
|
|
1175
|
+
to: z9.tuple([
|
|
1176
|
+
HashZod3
|
|
1101
1177
|
]),
|
|
1102
|
-
from:
|
|
1103
|
-
|
|
1178
|
+
from: z9.tuple([
|
|
1179
|
+
HashZod3
|
|
1104
1180
|
])
|
|
1105
1181
|
},
|
|
1106
1182
|
result: {
|
|
1107
|
-
to:
|
|
1108
|
-
from:
|
|
1183
|
+
to: z9.boolean(),
|
|
1184
|
+
from: z9.boolean()
|
|
1109
1185
|
}
|
|
1110
1186
|
}
|
|
1111
1187
|
};
|
|
1112
1188
|
|
|
1113
1189
|
// src/types/schema/RewardsByPositionViewerRpcSchemas.ts
|
|
1114
|
-
import { BigIntToJsonZod as
|
|
1190
|
+
import { BigIntToJsonZod as BigIntToJsonZod4, JsonToBigIntZod as JsonToBigIntZod4 } from "@xylabs/sdk-js";
|
|
1115
1191
|
import { asAttoXL1 } from "@xyo-network/xl1-protocol";
|
|
1116
1192
|
import { RewardsRangeOptionsZod } from "@xyo-network/xl1-protocol-sdk";
|
|
1117
|
-
import
|
|
1193
|
+
import z10 from "zod";
|
|
1118
1194
|
var NetworkStakingStepRewardsByPositionViewerRpcSchemas = {
|
|
1119
1195
|
networkStakingStepRewardsByPositionViewer_bonus: {
|
|
1120
1196
|
params: {
|
|
1121
|
-
from:
|
|
1197
|
+
from: z10.tuple([
|
|
1122
1198
|
RewardsRangeOptionsZod.optional()
|
|
1123
1199
|
]),
|
|
1124
|
-
to:
|
|
1200
|
+
to: z10.tuple([
|
|
1125
1201
|
RewardsRangeOptionsZod.optional()
|
|
1126
1202
|
])
|
|
1127
1203
|
},
|
|
1128
1204
|
result: {
|
|
1129
|
-
from:
|
|
1130
|
-
to:
|
|
1205
|
+
from: z10.record(z10.number(), JsonToBigIntZod4.transform((val) => asAttoXL1(val))),
|
|
1206
|
+
to: z10.record(z10.number(), BigIntToJsonZod4)
|
|
1131
1207
|
}
|
|
1132
1208
|
},
|
|
1133
1209
|
networkStakingStepRewardsByPositionViewer_claimed: {
|
|
1134
1210
|
params: {
|
|
1135
|
-
from:
|
|
1211
|
+
from: z10.tuple([
|
|
1136
1212
|
RewardsRangeOptionsZod.optional()
|
|
1137
1213
|
]),
|
|
1138
|
-
to:
|
|
1214
|
+
to: z10.tuple([
|
|
1139
1215
|
RewardsRangeOptionsZod.optional()
|
|
1140
1216
|
])
|
|
1141
1217
|
},
|
|
1142
1218
|
result: {
|
|
1143
|
-
from:
|
|
1144
|
-
to:
|
|
1219
|
+
from: z10.record(z10.number(), BigIntToJsonZod4.transform((val) => asAttoXL1(val))),
|
|
1220
|
+
to: z10.record(z10.number(), JsonToBigIntZod4)
|
|
1145
1221
|
}
|
|
1146
1222
|
},
|
|
1147
1223
|
networkStakingStepRewardsByPositionViewer_earned: {
|
|
1148
1224
|
params: {
|
|
1149
|
-
from:
|
|
1225
|
+
from: z10.tuple([
|
|
1150
1226
|
RewardsRangeOptionsZod.optional()
|
|
1151
1227
|
]),
|
|
1152
|
-
to:
|
|
1228
|
+
to: z10.tuple([
|
|
1153
1229
|
RewardsRangeOptionsZod.optional()
|
|
1154
1230
|
])
|
|
1155
1231
|
},
|
|
1156
1232
|
result: {
|
|
1157
|
-
from:
|
|
1158
|
-
to:
|
|
1233
|
+
from: z10.record(z10.number(), BigIntToJsonZod4.transform((val) => asAttoXL1(val))),
|
|
1234
|
+
to: z10.record(z10.number(), JsonToBigIntZod4)
|
|
1159
1235
|
}
|
|
1160
1236
|
},
|
|
1161
1237
|
networkStakingStepRewardsByPositionViewer_total: {
|
|
1162
1238
|
params: {
|
|
1163
|
-
from:
|
|
1239
|
+
from: z10.tuple([
|
|
1164
1240
|
RewardsRangeOptionsZod.optional()
|
|
1165
1241
|
]),
|
|
1166
|
-
to:
|
|
1242
|
+
to: z10.tuple([
|
|
1167
1243
|
RewardsRangeOptionsZod.optional()
|
|
1168
1244
|
])
|
|
1169
1245
|
},
|
|
1170
1246
|
result: {
|
|
1171
|
-
from:
|
|
1172
|
-
to:
|
|
1247
|
+
from: z10.record(z10.number(), BigIntToJsonZod4.transform((val) => asAttoXL1(val))),
|
|
1248
|
+
to: z10.record(z10.number(), JsonToBigIntZod4)
|
|
1173
1249
|
}
|
|
1174
1250
|
},
|
|
1175
1251
|
networkStakingStepRewardsByPositionViewer_unclaimed: {
|
|
1176
1252
|
params: {
|
|
1177
|
-
from:
|
|
1253
|
+
from: z10.tuple([
|
|
1178
1254
|
RewardsRangeOptionsZod.optional()
|
|
1179
1255
|
]),
|
|
1180
|
-
to:
|
|
1256
|
+
to: z10.tuple([
|
|
1181
1257
|
RewardsRangeOptionsZod.optional()
|
|
1182
1258
|
])
|
|
1183
1259
|
},
|
|
1184
1260
|
result: {
|
|
1185
|
-
from:
|
|
1186
|
-
to:
|
|
1261
|
+
from: z10.record(z10.number(), BigIntToJsonZod4.transform((val) => asAttoXL1(val))),
|
|
1262
|
+
to: z10.record(z10.number(), JsonToBigIntZod4)
|
|
1187
1263
|
}
|
|
1188
1264
|
}
|
|
1189
1265
|
};
|
|
1190
1266
|
|
|
1191
1267
|
// src/types/schema/RewardsByStakerViewerRpcSchemas.ts
|
|
1192
|
-
import { AddressZod as
|
|
1268
|
+
import { AddressZod as AddressZod4, BigIntToJsonZod as BigIntToJsonZod5, JsonToBigIntZod as JsonToBigIntZod5 } from "@xylabs/sdk-js";
|
|
1193
1269
|
import { RewardsRangeOptionsZod as RewardsRangeOptionsZod2 } from "@xyo-network/xl1-protocol-sdk";
|
|
1194
|
-
import
|
|
1270
|
+
import z11 from "zod";
|
|
1195
1271
|
var NetworkStakingStepRewardsByStakerViewerRpcSchemas = {
|
|
1196
1272
|
networkStakingStepRewardsByStakerViewer_bonus: {
|
|
1197
1273
|
params: {
|
|
1198
|
-
from:
|
|
1274
|
+
from: z11.tuple([
|
|
1199
1275
|
RewardsRangeOptionsZod2.optional()
|
|
1200
1276
|
]),
|
|
1201
|
-
to:
|
|
1277
|
+
to: z11.tuple([
|
|
1202
1278
|
RewardsRangeOptionsZod2.optional()
|
|
1203
1279
|
])
|
|
1204
1280
|
},
|
|
1205
1281
|
result: {
|
|
1206
|
-
from:
|
|
1207
|
-
to:
|
|
1282
|
+
from: z11.record(AddressZod4, BigIntToJsonZod5),
|
|
1283
|
+
to: z11.record(AddressZod4, JsonToBigIntZod5)
|
|
1208
1284
|
}
|
|
1209
1285
|
},
|
|
1210
1286
|
networkStakingStepRewardsByStakerViewer_claimed: {
|
|
1211
1287
|
params: {
|
|
1212
|
-
from:
|
|
1288
|
+
from: z11.tuple([
|
|
1213
1289
|
RewardsRangeOptionsZod2.optional()
|
|
1214
1290
|
]),
|
|
1215
|
-
to:
|
|
1291
|
+
to: z11.tuple([
|
|
1216
1292
|
RewardsRangeOptionsZod2.optional()
|
|
1217
1293
|
])
|
|
1218
1294
|
},
|
|
1219
1295
|
result: {
|
|
1220
|
-
from:
|
|
1221
|
-
to:
|
|
1296
|
+
from: z11.record(AddressZod4, BigIntToJsonZod5),
|
|
1297
|
+
to: z11.record(AddressZod4, JsonToBigIntZod5)
|
|
1222
1298
|
}
|
|
1223
1299
|
},
|
|
1224
1300
|
networkStakingStepRewardsByStakerViewer_earned: {
|
|
1225
1301
|
params: {
|
|
1226
|
-
from:
|
|
1302
|
+
from: z11.tuple([
|
|
1227
1303
|
RewardsRangeOptionsZod2.optional()
|
|
1228
1304
|
]),
|
|
1229
|
-
to:
|
|
1305
|
+
to: z11.tuple([
|
|
1230
1306
|
RewardsRangeOptionsZod2.optional()
|
|
1231
1307
|
])
|
|
1232
1308
|
},
|
|
1233
1309
|
result: {
|
|
1234
|
-
from:
|
|
1235
|
-
to:
|
|
1310
|
+
from: z11.record(AddressZod4, BigIntToJsonZod5),
|
|
1311
|
+
to: z11.record(AddressZod4, JsonToBigIntZod5)
|
|
1236
1312
|
}
|
|
1237
1313
|
},
|
|
1238
1314
|
networkStakingStepRewardsByStakerViewer_total: {
|
|
1239
1315
|
params: {
|
|
1240
|
-
from:
|
|
1316
|
+
from: z11.tuple([
|
|
1241
1317
|
RewardsRangeOptionsZod2.optional()
|
|
1242
1318
|
]),
|
|
1243
|
-
to:
|
|
1319
|
+
to: z11.tuple([
|
|
1244
1320
|
RewardsRangeOptionsZod2.optional()
|
|
1245
1321
|
])
|
|
1246
1322
|
},
|
|
1247
1323
|
result: {
|
|
1248
|
-
from:
|
|
1249
|
-
to:
|
|
1324
|
+
from: z11.record(AddressZod4, BigIntToJsonZod5),
|
|
1325
|
+
to: z11.record(AddressZod4, JsonToBigIntZod5)
|
|
1250
1326
|
}
|
|
1251
1327
|
},
|
|
1252
1328
|
networkStakingStepRewardsByStakerViewer_unclaimed: {
|
|
1253
1329
|
params: {
|
|
1254
|
-
from:
|
|
1330
|
+
from: z11.tuple([
|
|
1255
1331
|
RewardsRangeOptionsZod2.optional()
|
|
1256
1332
|
]),
|
|
1257
|
-
to:
|
|
1333
|
+
to: z11.tuple([
|
|
1258
1334
|
RewardsRangeOptionsZod2.optional()
|
|
1259
1335
|
])
|
|
1260
1336
|
},
|
|
1261
1337
|
result: {
|
|
1262
|
-
from:
|
|
1263
|
-
to:
|
|
1338
|
+
from: z11.record(AddressZod4, BigIntToJsonZod5),
|
|
1339
|
+
to: z11.record(AddressZod4, JsonToBigIntZod5)
|
|
1264
1340
|
}
|
|
1265
1341
|
}
|
|
1266
1342
|
};
|
|
1267
1343
|
|
|
1268
1344
|
// src/types/schema/RewardsByStepViewerRpcSchemas.ts
|
|
1269
|
-
import { AddressZod as
|
|
1345
|
+
import { AddressZod as AddressZod5, BigIntToJsonZod as BigIntToJsonZod6, JsonToBigIntZod as JsonToBigIntZod6 } from "@xylabs/sdk-js";
|
|
1270
1346
|
import { RewardsRangeOptionsZod as RewardsRangeOptionsZod3 } from "@xyo-network/xl1-protocol-sdk";
|
|
1271
|
-
import
|
|
1347
|
+
import z12 from "zod";
|
|
1272
1348
|
var NetworkStakingStepRewardsByStepViewerRpcSchemas = {
|
|
1273
1349
|
networkStakingStepRewardsByStepViewer_bonus: {
|
|
1274
1350
|
params: {
|
|
1275
|
-
from:
|
|
1351
|
+
from: z12.tuple([
|
|
1276
1352
|
RewardsRangeOptionsZod3.optional()
|
|
1277
1353
|
]),
|
|
1278
|
-
to:
|
|
1354
|
+
to: z12.tuple([
|
|
1279
1355
|
RewardsRangeOptionsZod3.optional()
|
|
1280
1356
|
])
|
|
1281
1357
|
},
|
|
1282
1358
|
result: {
|
|
1283
|
-
from:
|
|
1284
|
-
to:
|
|
1359
|
+
from: z12.record(AddressZod5, BigIntToJsonZod6),
|
|
1360
|
+
to: z12.record(AddressZod5, JsonToBigIntZod6)
|
|
1285
1361
|
}
|
|
1286
1362
|
},
|
|
1287
1363
|
networkStakingStepRewardsByStepViewer_claimed: {
|
|
1288
1364
|
params: {
|
|
1289
|
-
from:
|
|
1365
|
+
from: z12.tuple([
|
|
1290
1366
|
RewardsRangeOptionsZod3.optional()
|
|
1291
1367
|
]),
|
|
1292
|
-
to:
|
|
1368
|
+
to: z12.tuple([
|
|
1293
1369
|
RewardsRangeOptionsZod3.optional()
|
|
1294
1370
|
])
|
|
1295
1371
|
},
|
|
1296
1372
|
result: {
|
|
1297
|
-
from:
|
|
1298
|
-
to:
|
|
1373
|
+
from: z12.record(AddressZod5, BigIntToJsonZod6),
|
|
1374
|
+
to: z12.record(AddressZod5, JsonToBigIntZod6)
|
|
1299
1375
|
}
|
|
1300
1376
|
},
|
|
1301
1377
|
networkStakingStepRewardsByStepViewer_earned: {
|
|
1302
1378
|
params: {
|
|
1303
|
-
from:
|
|
1379
|
+
from: z12.tuple([
|
|
1304
1380
|
RewardsRangeOptionsZod3.optional()
|
|
1305
1381
|
]),
|
|
1306
|
-
to:
|
|
1382
|
+
to: z12.tuple([
|
|
1307
1383
|
RewardsRangeOptionsZod3.optional()
|
|
1308
1384
|
])
|
|
1309
1385
|
},
|
|
1310
1386
|
result: {
|
|
1311
|
-
from:
|
|
1312
|
-
to:
|
|
1387
|
+
from: z12.record(AddressZod5, BigIntToJsonZod6),
|
|
1388
|
+
to: z12.record(AddressZod5, JsonToBigIntZod6)
|
|
1313
1389
|
}
|
|
1314
1390
|
},
|
|
1315
1391
|
networkStakingStepRewardsByStepViewer_total: {
|
|
1316
1392
|
params: {
|
|
1317
|
-
from:
|
|
1393
|
+
from: z12.tuple([
|
|
1318
1394
|
RewardsRangeOptionsZod3.optional()
|
|
1319
1395
|
]),
|
|
1320
|
-
to:
|
|
1396
|
+
to: z12.tuple([
|
|
1321
1397
|
RewardsRangeOptionsZod3.optional()
|
|
1322
1398
|
])
|
|
1323
1399
|
},
|
|
1324
1400
|
result: {
|
|
1325
|
-
from:
|
|
1326
|
-
to:
|
|
1401
|
+
from: z12.record(AddressZod5, BigIntToJsonZod6),
|
|
1402
|
+
to: z12.record(AddressZod5, JsonToBigIntZod6)
|
|
1327
1403
|
}
|
|
1328
1404
|
},
|
|
1329
1405
|
networkStakingStepRewardsByStepViewer_unclaimed: {
|
|
1330
1406
|
params: {
|
|
1331
|
-
from:
|
|
1407
|
+
from: z12.tuple([
|
|
1332
1408
|
RewardsRangeOptionsZod3.optional()
|
|
1333
1409
|
]),
|
|
1334
|
-
to:
|
|
1410
|
+
to: z12.tuple([
|
|
1335
1411
|
RewardsRangeOptionsZod3.optional()
|
|
1336
1412
|
])
|
|
1337
1413
|
},
|
|
1338
1414
|
result: {
|
|
1339
|
-
from:
|
|
1340
|
-
to:
|
|
1415
|
+
from: z12.record(AddressZod5, BigIntToJsonZod6),
|
|
1416
|
+
to: z12.record(AddressZod5, JsonToBigIntZod6)
|
|
1341
1417
|
}
|
|
1342
1418
|
}
|
|
1343
1419
|
};
|
|
1344
1420
|
|
|
1345
1421
|
// src/types/schema/RewardsTotalViewerRpcSchemas.ts
|
|
1346
|
-
import { BigIntToJsonZod as
|
|
1422
|
+
import { BigIntToJsonZod as BigIntToJsonZod7, JsonToBigIntZod as JsonToBigIntZod7 } from "@xylabs/sdk-js";
|
|
1347
1423
|
import { asAttoXL1 as asAttoXL12 } from "@xyo-network/xl1-protocol";
|
|
1348
1424
|
import { RewardsRangeOptionsZod as RewardsRangeOptionsZod4 } from "@xyo-network/xl1-protocol-sdk";
|
|
1349
|
-
import * as
|
|
1425
|
+
import * as z13 from "zod";
|
|
1350
1426
|
var NetworkStakingStepRewardsTotalViewerRpcSchemas = {
|
|
1351
1427
|
networkStakingStepRewardsTotalViewer_bonus: {
|
|
1352
1428
|
params: {
|
|
1353
|
-
from:
|
|
1429
|
+
from: z13.tuple([
|
|
1354
1430
|
RewardsRangeOptionsZod4.optional()
|
|
1355
1431
|
]),
|
|
1356
|
-
to:
|
|
1432
|
+
to: z13.tuple([
|
|
1357
1433
|
RewardsRangeOptionsZod4.optional()
|
|
1358
1434
|
])
|
|
1359
1435
|
},
|
|
1360
1436
|
result: {
|
|
1361
|
-
from:
|
|
1362
|
-
to:
|
|
1437
|
+
from: JsonToBigIntZod7.transform((val) => asAttoXL12(val)),
|
|
1438
|
+
to: BigIntToJsonZod7
|
|
1363
1439
|
}
|
|
1364
1440
|
},
|
|
1365
1441
|
networkStakingStepRewardsTotalViewer_claimed: {
|
|
1366
1442
|
params: {
|
|
1367
|
-
from:
|
|
1443
|
+
from: z13.tuple([
|
|
1368
1444
|
RewardsRangeOptionsZod4.optional()
|
|
1369
1445
|
]),
|
|
1370
|
-
to:
|
|
1446
|
+
to: z13.tuple([
|
|
1371
1447
|
RewardsRangeOptionsZod4.optional()
|
|
1372
1448
|
])
|
|
1373
1449
|
},
|
|
1374
1450
|
result: {
|
|
1375
|
-
from:
|
|
1376
|
-
to:
|
|
1451
|
+
from: JsonToBigIntZod7.transform((val) => asAttoXL12(val)),
|
|
1452
|
+
to: BigIntToJsonZod7
|
|
1377
1453
|
}
|
|
1378
1454
|
},
|
|
1379
1455
|
networkStakingStepRewardsTotalViewer_earned: {
|
|
1380
1456
|
params: {
|
|
1381
|
-
from:
|
|
1457
|
+
from: z13.tuple([
|
|
1382
1458
|
RewardsRangeOptionsZod4.optional()
|
|
1383
1459
|
]),
|
|
1384
|
-
to:
|
|
1460
|
+
to: z13.tuple([
|
|
1385
1461
|
RewardsRangeOptionsZod4.optional()
|
|
1386
1462
|
])
|
|
1387
1463
|
},
|
|
1388
1464
|
result: {
|
|
1389
|
-
from:
|
|
1390
|
-
to:
|
|
1465
|
+
from: JsonToBigIntZod7.transform((val) => asAttoXL12(val)),
|
|
1466
|
+
to: BigIntToJsonZod7
|
|
1391
1467
|
}
|
|
1392
1468
|
},
|
|
1393
1469
|
networkStakingStepRewardsTotalViewer_total: {
|
|
1394
1470
|
params: {
|
|
1395
|
-
from:
|
|
1471
|
+
from: z13.tuple([
|
|
1396
1472
|
RewardsRangeOptionsZod4.optional()
|
|
1397
1473
|
]),
|
|
1398
|
-
to:
|
|
1474
|
+
to: z13.tuple([
|
|
1399
1475
|
RewardsRangeOptionsZod4.optional()
|
|
1400
1476
|
])
|
|
1401
1477
|
},
|
|
1402
1478
|
result: {
|
|
1403
|
-
from:
|
|
1404
|
-
to:
|
|
1479
|
+
from: JsonToBigIntZod7.transform((val) => asAttoXL12(val)),
|
|
1480
|
+
to: BigIntToJsonZod7
|
|
1405
1481
|
}
|
|
1406
1482
|
},
|
|
1407
1483
|
networkStakingStepRewardsTotalViewer_unclaimed: {
|
|
1408
1484
|
params: {
|
|
1409
|
-
from:
|
|
1485
|
+
from: z13.tuple([
|
|
1410
1486
|
RewardsRangeOptionsZod4.optional()
|
|
1411
1487
|
]),
|
|
1412
|
-
to:
|
|
1488
|
+
to: z13.tuple([
|
|
1413
1489
|
RewardsRangeOptionsZod4.optional()
|
|
1414
1490
|
])
|
|
1415
1491
|
},
|
|
1416
1492
|
result: {
|
|
1417
|
-
from:
|
|
1418
|
-
to:
|
|
1493
|
+
from: JsonToBigIntZod7.transform((val) => asAttoXL12(val)),
|
|
1494
|
+
to: BigIntToJsonZod7
|
|
1419
1495
|
}
|
|
1420
1496
|
}
|
|
1421
1497
|
};
|
|
@@ -1426,70 +1502,70 @@ var NetworkStakingStepRewardsViewerRpcSchemas = {};
|
|
|
1426
1502
|
// src/types/schema/TimeSyncViewerRpcSchema.ts
|
|
1427
1503
|
import { TimePayloadZod } from "@xyo-network/xl1-protocol";
|
|
1428
1504
|
import { TimeDomainZod } from "@xyo-network/xl1-protocol-sdk";
|
|
1429
|
-
import * as
|
|
1505
|
+
import * as z14 from "zod";
|
|
1430
1506
|
var TimeSyncViewerRpcSchemas = {
|
|
1431
1507
|
timeSyncViewer_convertTime: {
|
|
1432
1508
|
params: {
|
|
1433
|
-
from:
|
|
1509
|
+
from: z14.tuple([
|
|
1434
1510
|
TimeDomainZod,
|
|
1435
1511
|
TimeDomainZod,
|
|
1436
|
-
|
|
1512
|
+
z14.number()
|
|
1437
1513
|
]),
|
|
1438
|
-
to:
|
|
1514
|
+
to: z14.tuple([
|
|
1439
1515
|
TimeDomainZod,
|
|
1440
1516
|
TimeDomainZod,
|
|
1441
|
-
|
|
1517
|
+
z14.number()
|
|
1442
1518
|
])
|
|
1443
1519
|
},
|
|
1444
1520
|
result: {
|
|
1445
|
-
from:
|
|
1446
|
-
to:
|
|
1521
|
+
from: z14.number(),
|
|
1522
|
+
to: z14.number()
|
|
1447
1523
|
}
|
|
1448
1524
|
},
|
|
1449
1525
|
timeSyncViewer_currentTime: {
|
|
1450
1526
|
params: {
|
|
1451
|
-
from:
|
|
1527
|
+
from: z14.tuple([
|
|
1452
1528
|
TimeDomainZod
|
|
1453
1529
|
]),
|
|
1454
|
-
to:
|
|
1530
|
+
to: z14.tuple([
|
|
1455
1531
|
TimeDomainZod
|
|
1456
1532
|
])
|
|
1457
1533
|
},
|
|
1458
1534
|
result: {
|
|
1459
|
-
from:
|
|
1535
|
+
from: z14.tuple([
|
|
1460
1536
|
TimeDomainZod,
|
|
1461
|
-
|
|
1537
|
+
z14.number()
|
|
1462
1538
|
]),
|
|
1463
|
-
to:
|
|
1539
|
+
to: z14.tuple([
|
|
1464
1540
|
TimeDomainZod,
|
|
1465
|
-
|
|
1541
|
+
z14.number()
|
|
1466
1542
|
])
|
|
1467
1543
|
}
|
|
1468
1544
|
},
|
|
1469
1545
|
timeSyncViewer_currentTimeAndHash: {
|
|
1470
1546
|
params: {
|
|
1471
|
-
from:
|
|
1547
|
+
from: z14.tuple([
|
|
1472
1548
|
TimeDomainZod
|
|
1473
1549
|
]),
|
|
1474
|
-
to:
|
|
1550
|
+
to: z14.tuple([
|
|
1475
1551
|
TimeDomainZod
|
|
1476
1552
|
])
|
|
1477
1553
|
},
|
|
1478
1554
|
result: {
|
|
1479
|
-
from:
|
|
1480
|
-
|
|
1481
|
-
|
|
1555
|
+
from: z14.tuple([
|
|
1556
|
+
z14.number(),
|
|
1557
|
+
z14.nullable(z14.string())
|
|
1482
1558
|
]),
|
|
1483
|
-
to:
|
|
1484
|
-
|
|
1485
|
-
|
|
1559
|
+
to: z14.tuple([
|
|
1560
|
+
z14.number(),
|
|
1561
|
+
z14.nullable(z14.string())
|
|
1486
1562
|
])
|
|
1487
1563
|
}
|
|
1488
1564
|
},
|
|
1489
1565
|
timeSyncViewer_currentTimePayload: {
|
|
1490
1566
|
params: {
|
|
1491
|
-
from:
|
|
1492
|
-
to:
|
|
1567
|
+
from: z14.tuple([]),
|
|
1568
|
+
to: z14.tuple([])
|
|
1493
1569
|
},
|
|
1494
1570
|
result: {
|
|
1495
1571
|
from: TimePayloadZod,
|
|
@@ -1684,6 +1760,56 @@ var NodeXyoRunner = class {
|
|
|
1684
1760
|
}, "getPendingArchivist");
|
|
1685
1761
|
};
|
|
1686
1762
|
|
|
1763
|
+
// src/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewer.ts
|
|
1764
|
+
import { asAttoXL1 as asAttoXL13 } from "@xyo-network/xl1-protocol";
|
|
1765
|
+
|
|
1766
|
+
// src/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewerMethods.ts
|
|
1767
|
+
var JsonRpcAccountBalanceViewerMethods = class {
|
|
1768
|
+
static {
|
|
1769
|
+
__name(this, "JsonRpcAccountBalanceViewerMethods");
|
|
1770
|
+
}
|
|
1771
|
+
transport;
|
|
1772
|
+
constructor(transport) {
|
|
1773
|
+
this.transport = transport;
|
|
1774
|
+
}
|
|
1775
|
+
async accountsBalances(address, headOrRange) {
|
|
1776
|
+
return await this.transport.sendRequest("accountBalanceViewer_accountsBalances", headOrRange ? [
|
|
1777
|
+
address,
|
|
1778
|
+
headOrRange
|
|
1779
|
+
] : [
|
|
1780
|
+
address
|
|
1781
|
+
]);
|
|
1782
|
+
}
|
|
1783
|
+
async accountsBalancesHistory(address, headOrRange) {
|
|
1784
|
+
return await this.transport.sendRequest("accountBalanceViewer_accountsBalancesHistory", headOrRange ? [
|
|
1785
|
+
address,
|
|
1786
|
+
headOrRange
|
|
1787
|
+
] : [
|
|
1788
|
+
address
|
|
1789
|
+
]);
|
|
1790
|
+
}
|
|
1791
|
+
};
|
|
1792
|
+
|
|
1793
|
+
// src/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewer.ts
|
|
1794
|
+
var JsonRpcAccountBalanceViewer = class extends JsonRpcAccountBalanceViewerMethods {
|
|
1795
|
+
static {
|
|
1796
|
+
__name(this, "JsonRpcAccountBalanceViewer");
|
|
1797
|
+
}
|
|
1798
|
+
constructor(transport) {
|
|
1799
|
+
super(transport);
|
|
1800
|
+
}
|
|
1801
|
+
async accountBalance(address, headOrRange) {
|
|
1802
|
+
return (await this.accountsBalances([
|
|
1803
|
+
address
|
|
1804
|
+
], headOrRange))[address] ?? asAttoXL13(0);
|
|
1805
|
+
}
|
|
1806
|
+
async accountBalanceHistory(address, headOrRange) {
|
|
1807
|
+
return (await this.accountsBalancesHistory([
|
|
1808
|
+
address
|
|
1809
|
+
], headOrRange))[address] ?? [];
|
|
1810
|
+
}
|
|
1811
|
+
};
|
|
1812
|
+
|
|
1687
1813
|
// src/provider/viewer/JsonRpcViewer.ts
|
|
1688
1814
|
var JsonRpcViewer = class {
|
|
1689
1815
|
static {
|
|
@@ -1796,7 +1922,7 @@ var JsonRpcTimeSyncViewer = class extends JsonRpcTimeSyncViewerMethods {
|
|
|
1796
1922
|
|
|
1797
1923
|
// src/provider/viewer/JsonRpcXyoViewer.ts
|
|
1798
1924
|
import { isDefined, isHash } from "@xylabs/sdk-js";
|
|
1799
|
-
import { asAttoXL1 as
|
|
1925
|
+
import { asAttoXL1 as asAttoXL14, asHydratedBlock } from "@xyo-network/xl1-protocol";
|
|
1800
1926
|
var JsonRpcXyoViewer = class {
|
|
1801
1927
|
static {
|
|
1802
1928
|
__name(this, "JsonRpcXyoViewer");
|
|
@@ -2028,7 +2154,7 @@ var JsonRpcXyoViewer = class {
|
|
|
2028
2154
|
]);
|
|
2029
2155
|
}
|
|
2030
2156
|
async transferBalance(address) {
|
|
2031
|
-
return
|
|
2157
|
+
return asAttoXL14(await this.transport.sendRequest("xyoViewer_transferBalance", [
|
|
2032
2158
|
address
|
|
2033
2159
|
]));
|
|
2034
2160
|
}
|
|
@@ -2036,7 +2162,7 @@ var JsonRpcXyoViewer = class {
|
|
|
2036
2162
|
throw new Error("Method not implemented.");
|
|
2037
2163
|
}
|
|
2038
2164
|
async transferPairBalance(pair) {
|
|
2039
|
-
return
|
|
2165
|
+
return asAttoXL14(await this.transport.sendRequest("xyoViewer_transferPairBalance", [
|
|
2040
2166
|
pair
|
|
2041
2167
|
]));
|
|
2042
2168
|
}
|
|
@@ -2169,11 +2295,15 @@ var RpcXyoSigner = class {
|
|
|
2169
2295
|
}
|
|
2170
2296
|
};
|
|
2171
2297
|
export {
|
|
2298
|
+
AccountBalanceViewerRpcNamespace,
|
|
2299
|
+
AccountBalanceViewerRpcSchemas,
|
|
2172
2300
|
AllRpcSchemas,
|
|
2173
2301
|
DataLakeViewerRpcNamespace,
|
|
2174
2302
|
DataLakeViewerRpcSchemas,
|
|
2175
2303
|
HttpRpcTransport,
|
|
2176
2304
|
HttpRpcXyoConnection,
|
|
2305
|
+
JsonRpcAccountBalanceViewer,
|
|
2306
|
+
JsonRpcAccountBalanceViewerMethods,
|
|
2177
2307
|
JsonRpcDataLakeViewer,
|
|
2178
2308
|
JsonRpcDataLakeViewerMethods,
|
|
2179
2309
|
JsonRpcErrorCodes,
|