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