@xyo-network/xl1-rpc 1.16.21 → 1.16.23

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.
Files changed (137) hide show
  1. package/dist/neutral/engine/rpcMethodHandlersFromViewer.d.ts.map +1 -1
  2. package/dist/neutral/index.mjs +616 -920
  3. package/dist/neutral/index.mjs.map +1 -1
  4. package/dist/neutral/provider/viewer/JsonRpcXyoViewer.d.ts +9 -1
  5. package/dist/neutral/provider/viewer/JsonRpcXyoViewer.d.ts.map +1 -1
  6. package/dist/neutral/types/schema/AllRpcSchemas.d.ts +136 -8
  7. package/dist/neutral/types/schema/AllRpcSchemas.d.ts.map +1 -1
  8. package/dist/neutral/types/schema/DataLakeViewerRpcSchema.d.ts.map +1 -1
  9. package/dist/neutral/types/schema/RewardsByPositionViewerRpcSchemas.d.ts.map +1 -1
  10. package/dist/neutral/types/schema/RewardsByStakerViewerRpcSchemas.d.ts.map +1 -1
  11. package/dist/neutral/types/schema/RewardsByStepViewerRpcSchemas.d.ts.map +1 -1
  12. package/dist/neutral/types/schema/RewardsTotalViewerRpcSchemas.d.ts.map +1 -1
  13. package/dist/neutral/types/schema/StepViewerRpcSchemas.d.ts.map +1 -1
  14. package/dist/neutral/types/schema/TimeSyncViewerRpcSchema.d.ts.map +1 -1
  15. package/dist/neutral/types/schema/XyoPermissionsRpcSchemas.d.ts.map +1 -1
  16. package/dist/neutral/types/schema/XyoRunnerRpcSchemas.d.ts.map +1 -1
  17. package/dist/neutral/types/schema/XyoSignerRpcSchemas.d.ts.map +1 -1
  18. package/dist/neutral/types/schema/XyoViewerRpcSchemas.d.ts +136 -8
  19. package/dist/neutral/types/schema/XyoViewerRpcSchemas.d.ts.map +1 -1
  20. package/dist/neutral/types/schema/index.d.ts +0 -1
  21. package/dist/neutral/types/schema/index.d.ts.map +1 -1
  22. package/dist/node/engine/rpcMethodHandlersFromViewer.d.ts.map +1 -1
  23. package/dist/node/index-node.mjs +616 -920
  24. package/dist/node/index-node.mjs.map +1 -1
  25. package/dist/node/provider/viewer/JsonRpcXyoViewer.d.ts +9 -1
  26. package/dist/node/provider/viewer/JsonRpcXyoViewer.d.ts.map +1 -1
  27. package/dist/node/types/schema/AllRpcSchemas.d.ts +136 -8
  28. package/dist/node/types/schema/AllRpcSchemas.d.ts.map +1 -1
  29. package/dist/node/types/schema/DataLakeViewerRpcSchema.d.ts.map +1 -1
  30. package/dist/node/types/schema/RewardsByPositionViewerRpcSchemas.d.ts.map +1 -1
  31. package/dist/node/types/schema/RewardsByStakerViewerRpcSchemas.d.ts.map +1 -1
  32. package/dist/node/types/schema/RewardsByStepViewerRpcSchemas.d.ts.map +1 -1
  33. package/dist/node/types/schema/RewardsTotalViewerRpcSchemas.d.ts.map +1 -1
  34. package/dist/node/types/schema/StepViewerRpcSchemas.d.ts.map +1 -1
  35. package/dist/node/types/schema/TimeSyncViewerRpcSchema.d.ts.map +1 -1
  36. package/dist/node/types/schema/XyoPermissionsRpcSchemas.d.ts.map +1 -1
  37. package/dist/node/types/schema/XyoRunnerRpcSchemas.d.ts.map +1 -1
  38. package/dist/node/types/schema/XyoSignerRpcSchemas.d.ts.map +1 -1
  39. package/dist/node/types/schema/XyoViewerRpcSchemas.d.ts +136 -8
  40. package/dist/node/types/schema/XyoViewerRpcSchemas.d.ts.map +1 -1
  41. package/dist/node/types/schema/index.d.ts +0 -1
  42. package/dist/node/types/schema/index.d.ts.map +1 -1
  43. package/package.json +8 -8
  44. package/src/engine/rpcMethodHandlersFromViewer.ts +2 -0
  45. package/src/provider/viewer/JsonRpcXyoViewer.ts +27 -6
  46. package/src/types/schema/DataLakeViewerRpcSchema.ts +1 -1
  47. package/src/types/schema/RewardsByPositionViewerRpcSchemas.ts +1 -1
  48. package/src/types/schema/RewardsByStakerViewerRpcSchemas.ts +1 -1
  49. package/src/types/schema/RewardsByStepViewerRpcSchemas.ts +1 -1
  50. package/src/types/schema/RewardsTotalViewerRpcSchemas.ts +1 -1
  51. package/src/types/schema/StepViewerRpcSchemas.ts +1 -1
  52. package/src/types/schema/TimeSyncViewerRpcSchema.ts +1 -1
  53. package/src/types/schema/XyoPermissionsRpcSchemas.ts +3 -3
  54. package/src/types/schema/XyoRunnerRpcSchemas.ts +1 -1
  55. package/src/types/schema/XyoSignerRpcSchemas.ts +1 -4
  56. package/src/types/schema/XyoViewerRpcSchemas.ts +32 -19
  57. package/src/types/schema/index.ts +0 -1
  58. package/dist/neutral/types/schema/common/ArrayBuffer.d.ts +0 -4
  59. package/dist/neutral/types/schema/common/ArrayBuffer.d.ts.map +0 -1
  60. package/dist/neutral/types/schema/common/BlockBoundWitness.d.ts +0 -44
  61. package/dist/neutral/types/schema/common/BlockBoundWitness.d.ts.map +0 -1
  62. package/dist/neutral/types/schema/common/BoundWitness.d.ts +0 -123
  63. package/dist/neutral/types/schema/common/BoundWitness.d.ts.map +0 -1
  64. package/dist/neutral/types/schema/common/Chain.d.ts +0 -4
  65. package/dist/neutral/types/schema/common/Chain.d.ts.map +0 -1
  66. package/dist/neutral/types/schema/common/HydratedBlock.d.ts +0 -133
  67. package/dist/neutral/types/schema/common/HydratedBlock.d.ts.map +0 -1
  68. package/dist/neutral/types/schema/common/HydratedTransaction.d.ts +0 -210
  69. package/dist/neutral/types/schema/common/HydratedTransaction.d.ts.map +0 -1
  70. package/dist/neutral/types/schema/common/Json.d.ts +0 -7
  71. package/dist/neutral/types/schema/common/Json.d.ts.map +0 -1
  72. package/dist/neutral/types/schema/common/Permission.d.ts +0 -53
  73. package/dist/neutral/types/schema/common/Permission.d.ts.map +0 -1
  74. package/dist/neutral/types/schema/common/RewardsRangeOptions.d.ts +0 -11
  75. package/dist/neutral/types/schema/common/RewardsRangeOptions.d.ts.map +0 -1
  76. package/dist/neutral/types/schema/common/Sequence.d.ts +0 -9
  77. package/dist/neutral/types/schema/common/Sequence.d.ts.map +0 -1
  78. package/dist/neutral/types/schema/common/Stake.d.ts +0 -62
  79. package/dist/neutral/types/schema/common/Stake.d.ts.map +0 -1
  80. package/dist/neutral/types/schema/common/TimeDomain.d.ts +0 -3
  81. package/dist/neutral/types/schema/common/TimeDomain.d.ts.map +0 -1
  82. package/dist/neutral/types/schema/common/TransactionBoundWitness.d.ts +0 -75
  83. package/dist/neutral/types/schema/common/TransactionBoundWitness.d.ts.map +0 -1
  84. package/dist/neutral/types/schema/common/TransactionFees.d.ts +0 -53
  85. package/dist/neutral/types/schema/common/TransactionFees.d.ts.map +0 -1
  86. package/dist/neutral/types/schema/common/TransferPair.d.ts +0 -3
  87. package/dist/neutral/types/schema/common/TransferPair.d.ts.map +0 -1
  88. package/dist/neutral/types/schema/common/index.d.ts +0 -16
  89. package/dist/neutral/types/schema/common/index.d.ts.map +0 -1
  90. package/dist/node/types/schema/common/ArrayBuffer.d.ts +0 -4
  91. package/dist/node/types/schema/common/ArrayBuffer.d.ts.map +0 -1
  92. package/dist/node/types/schema/common/BlockBoundWitness.d.ts +0 -44
  93. package/dist/node/types/schema/common/BlockBoundWitness.d.ts.map +0 -1
  94. package/dist/node/types/schema/common/BoundWitness.d.ts +0 -123
  95. package/dist/node/types/schema/common/BoundWitness.d.ts.map +0 -1
  96. package/dist/node/types/schema/common/Chain.d.ts +0 -4
  97. package/dist/node/types/schema/common/Chain.d.ts.map +0 -1
  98. package/dist/node/types/schema/common/HydratedBlock.d.ts +0 -133
  99. package/dist/node/types/schema/common/HydratedBlock.d.ts.map +0 -1
  100. package/dist/node/types/schema/common/HydratedTransaction.d.ts +0 -210
  101. package/dist/node/types/schema/common/HydratedTransaction.d.ts.map +0 -1
  102. package/dist/node/types/schema/common/Json.d.ts +0 -7
  103. package/dist/node/types/schema/common/Json.d.ts.map +0 -1
  104. package/dist/node/types/schema/common/Permission.d.ts +0 -53
  105. package/dist/node/types/schema/common/Permission.d.ts.map +0 -1
  106. package/dist/node/types/schema/common/RewardsRangeOptions.d.ts +0 -11
  107. package/dist/node/types/schema/common/RewardsRangeOptions.d.ts.map +0 -1
  108. package/dist/node/types/schema/common/Sequence.d.ts +0 -9
  109. package/dist/node/types/schema/common/Sequence.d.ts.map +0 -1
  110. package/dist/node/types/schema/common/Stake.d.ts +0 -62
  111. package/dist/node/types/schema/common/Stake.d.ts.map +0 -1
  112. package/dist/node/types/schema/common/TimeDomain.d.ts +0 -3
  113. package/dist/node/types/schema/common/TimeDomain.d.ts.map +0 -1
  114. package/dist/node/types/schema/common/TransactionBoundWitness.d.ts +0 -75
  115. package/dist/node/types/schema/common/TransactionBoundWitness.d.ts.map +0 -1
  116. package/dist/node/types/schema/common/TransactionFees.d.ts +0 -53
  117. package/dist/node/types/schema/common/TransactionFees.d.ts.map +0 -1
  118. package/dist/node/types/schema/common/TransferPair.d.ts +0 -3
  119. package/dist/node/types/schema/common/TransferPair.d.ts.map +0 -1
  120. package/dist/node/types/schema/common/index.d.ts +0 -16
  121. package/dist/node/types/schema/common/index.d.ts.map +0 -1
  122. package/src/types/schema/common/ArrayBuffer.ts +0 -42
  123. package/src/types/schema/common/BlockBoundWitness.ts +0 -36
  124. package/src/types/schema/common/BoundWitness.ts +0 -56
  125. package/src/types/schema/common/Chain.ts +0 -5
  126. package/src/types/schema/common/HydratedBlock.ts +0 -32
  127. package/src/types/schema/common/HydratedTransaction.ts +0 -37
  128. package/src/types/schema/common/Json.ts +0 -19
  129. package/src/types/schema/common/Permission.ts +0 -23
  130. package/src/types/schema/common/RewardsRangeOptions.ts +0 -10
  131. package/src/types/schema/common/Sequence.ts +0 -15
  132. package/src/types/schema/common/Stake.ts +0 -43
  133. package/src/types/schema/common/TimeDomain.ts +0 -7
  134. package/src/types/schema/common/TransactionBoundWitness.ts +0 -42
  135. package/src/types/schema/common/TransactionFees.ts +0 -45
  136. package/src/types/schema/common/TransferPair.ts +0 -6
  137. package/src/types/schema/common/index.ts +0 -15
@@ -45,6 +45,8 @@ var rpcMethodHandlersFromViewer = /* @__PURE__ */ __name((viewer) => {
45
45
  xyoViewer_networkStakeStepRewardsForStepLevel: /* @__PURE__ */ __name((params) => viewer.networkStakeStepRewardsForStepLevel?.(...params ?? []), "xyoViewer_networkStakeStepRewardsForStepLevel"),
46
46
  xyoViewer_accountBalance: /* @__PURE__ */ __name((params) => viewer.accountBalance(...params ?? []), "xyoViewer_accountBalance"),
47
47
  xyoViewer_accountBalanceHistory: /* @__PURE__ */ __name((params) => viewer.accountBalanceHistory(...params ?? []), "xyoViewer_accountBalanceHistory"),
48
+ xyoViewer_accountsBalances: /* @__PURE__ */ __name((params) => viewer.accountsBalances(...params ?? []), "xyoViewer_accountsBalances"),
49
+ xyoViewer_accountsBalancesHistory: /* @__PURE__ */ __name((params) => viewer.accountsBalancesHistory(...params ?? []), "xyoViewer_accountsBalancesHistory"),
48
50
  xyoViewer_blockByHash: /* @__PURE__ */ __name((params) => viewer.blockByHash(...params ?? []), "xyoViewer_blockByHash"),
49
51
  xyoViewer_blockByNumber: /* @__PURE__ */ __name((params) => viewer.blockByNumber(...params ?? []), "xyoViewer_blockByNumber"),
50
52
  xyoViewer_blocksByHash: /* @__PURE__ */ __name((params) => viewer.blocksByHash(...params ?? []), "xyoViewer_blocksByHash"),
@@ -195,391 +197,60 @@ var NetworkStakeViewerRpcSchemas = {
195
197
  };
196
198
 
197
199
  // src/types/schema/XyoPermissionsRpcSchemas.ts
198
- import * as z17 from "zod";
199
-
200
- // src/types/schema/common/ArrayBuffer.ts
200
+ import { InvokerPermissionZod, PermissionRequestZod, RequestedPermissionZod } from "@xyo-network/xl1-protocol-sdk";
201
201
  import * as z2 from "zod";
202
- function base64Encode(u8) {
203
- if (typeof Buffer !== "undefined" && typeof Buffer.from === "function") {
204
- return Buffer.from(u8).toString("base64");
205
- }
206
- let binary = "";
207
- const chunk = 32768;
208
- for (let i = 0; i < u8.length; i += chunk) {
209
- binary += String.fromCharCode(...u8.subarray(i, i + chunk));
210
- }
211
- return btoa(binary);
212
- }
213
- __name(base64Encode, "base64Encode");
214
- function base64Decode(b64) {
215
- if (typeof Buffer !== "undefined" && typeof Buffer.from === "function") {
216
- return new Uint8Array(Buffer.from(b64, "base64"));
217
- }
218
- const binary = atob(b64);
219
- const u8 = new Uint8Array(binary.length);
220
- for (let i = 0; i < binary.length; i++) u8[i] = binary.charCodeAt(i);
221
- return u8;
222
- }
223
- __name(base64Decode, "base64Decode");
224
- var ArrayBufferToJsonZod = z2.instanceof(ArrayBuffer).transform((x) => {
225
- const u8 = new Uint8Array(x);
226
- return base64Encode(u8);
227
- });
228
- var JsonToArrayBufferZod = z2.string().transform((x) => {
229
- const u8 = base64Decode(x);
230
- return u8.buffer;
231
- });
232
-
233
- // src/types/schema/common/BlockBoundWitness.ts
234
- import { HashZod as HashZod2 } from "@xylabs/sdk-js";
235
- import { StorageMetaZod as StorageMetaZod2 } from "@xyo-network/payload-model";
236
- import { XL1BlockNumberZod } from "@xyo-network/xl1-protocol";
237
- import * as z5 from "zod";
238
-
239
- // src/types/schema/common/BoundWitness.ts
240
- import { AddressZod, HashZod, HexZod } from "@xylabs/sdk-js";
241
- import { BoundWitnessSchema } from "@xyo-network/boundwitness-model";
242
- import { PayloadZod, SchemaZod, StorageMetaZod } from "@xyo-network/payload-model";
243
- import * as z3 from "zod";
244
- var BoundWitnessRequiredFieldsZod = z3.object({
245
- addresses: z3.array(AddressZod),
246
- payload_hashes: z3.array(HashZod),
247
- payload_schemas: z3.array(SchemaZod),
248
- previous_hashes: z3.array(HashZod.nullable())
249
- });
250
- var BoundWitnessMetaZod = z3.object({
251
- $destination: AddressZod.optional(),
252
- $sourceQuery: HashZod.optional(),
253
- $signatures: z3.array(z3.union([
254
- HexZod,
255
- z3.null()
256
- ]))
257
- });
258
- var BoundWitnessZod = PayloadZod.extend({
259
- schema: z3.literal(BoundWitnessSchema)
260
- }).extend(BoundWitnessRequiredFieldsZod.shape).extend(BoundWitnessMetaZod.shape).refine((data) => data.$signatures.length === data.addresses.length, {
261
- message: "$signatures length must equal addresses length"
262
- });
263
- var AnyBoundWitnessZod = BoundWitnessZod.catchall(z3.any());
264
- var UnsignedBoundWitnessZod = BoundWitnessZod.refine((data) => data.$signatures.includes(null), {
265
- message: "all $signatures must be null"
266
- });
267
- var AnyUnsignedBoundWitnessZod = UnsignedBoundWitnessZod.catchall(z3.any());
268
- var UnsignedBoundWitnessWithStorageMetaZod = UnsignedBoundWitnessZod.safeExtend(BoundWitnessRequiredFieldsZod.shape).safeExtend(BoundWitnessMetaZod.shape).safeExtend(StorageMetaZod.shape);
269
- var SignedBoundWitnessZod = BoundWitnessZod.refine((data) => !data.$signatures.includes(null), {
270
- message: "all $signatures must not be null"
271
- });
272
- var SignedBoundWitnessWithStorageMetaZod = UnsignedBoundWitnessWithStorageMetaZod;
273
- var AnySignedBoundWitnessZod = UnsignedBoundWitnessZod.catchall(z3.any());
274
- var AnySignedBoundWitnessWithStorageMetaZod = UnsignedBoundWitnessWithStorageMetaZod.catchall(z3.any());
275
-
276
- // src/types/schema/common/Chain.ts
277
- import { AddressRegEx, toAddress } from "@xylabs/sdk-js";
278
- import * as z4 from "zod";
279
- var ChainZod = z4.string().toLowerCase().regex(AddressRegEx).transform((v) => toAddress(v));
280
-
281
- // src/types/schema/common/BlockBoundWitness.ts
282
- var BlockBoundWitnessFieldsZod = z5.object({
283
- block: XL1BlockNumberZod,
284
- chain: ChainZod,
285
- previous: HashZod2.nullable(),
286
- protocol: z5.number(),
287
- step_hashes: z5.array(HashZod2).optional()
288
- });
289
- var BlockBoundWitnessMetaZod = z5.object({
290
- $epoch: z5.number()
291
- });
292
- var BlockBoundWitnessZod = UnsignedBoundWitnessZod.merge(StorageMetaZod2.partial()).merge(BlockBoundWitnessFieldsZod).merge(BlockBoundWitnessMetaZod);
293
- var SignedBlockBoundWitnessZod = SignedBoundWitnessZod.merge(StorageMetaZod2.partial()).merge(BlockBoundWitnessFieldsZod).merge(BlockBoundWitnessMetaZod);
294
-
295
- // src/types/schema/common/HydratedBlock.ts
296
- import { PayloadZodLoose, WithStorageMetaZod } from "@xyo-network/payload-model";
297
- import * as z6 from "zod";
298
- var HydratedBlockZod = z6.tuple([
299
- BlockBoundWitnessZod,
300
- z6.array(PayloadZodLoose)
301
- ]);
302
- var HydratedBlockWithStorageMetaZod = z6.tuple([
303
- WithStorageMetaZod(BlockBoundWitnessZod),
304
- z6.array(WithStorageMetaZod(PayloadZodLoose))
305
- ]);
306
- var SignedHydratedBlockZod = z6.tuple([
307
- SignedBlockBoundWitnessZod,
308
- z6.array(PayloadZodLoose)
309
- ]);
310
- var SignedHydratedBlockToJsonZod = z6.tuple([
311
- SignedBlockBoundWitnessZod,
312
- z6.array(PayloadZodLoose)
313
- ]);
314
- var SignedHydratedBlockWithStorageMetaZod = z6.tuple([
315
- WithStorageMetaZod(SignedBlockBoundWitnessZod),
316
- z6.array(WithStorageMetaZod(PayloadZodLoose))
317
- ]);
318
-
319
- // src/types/schema/common/HydratedTransaction.ts
320
- import { asAnyPayload, PayloadZodLoose as PayloadZodLoose2 } from "@xyo-network/payload-model";
321
- import { asSignedHydratedTransaction } from "@xyo-network/xl1-protocol";
322
- import * as z9 from "zod";
323
-
324
- // src/types/schema/common/TransactionBoundWitness.ts
325
- import { StorageMetaZod as StorageMetaZod3 } from "@xyo-network/payload-model";
326
- import { BlockNumberZod as BlockNumberZod2 } from "@xyo-network/xl1-protocol";
327
- import * as z8 from "zod";
328
-
329
- // src/types/schema/common/TransactionFees.ts
330
- import { BigIntToJsonZod as BigIntToJsonZod2, HexZod as HexZod2, JsonToBigIntZod as JsonToBigIntZod2 } from "@xylabs/sdk-js";
331
- import { asAttoXL1 } from "@xyo-network/xl1-protocol";
332
- import * as z7 from "zod";
333
- var AttoZod = z7.bigint();
334
- var JsonToAttoZod = JsonToBigIntZod2.transform((v) => asAttoXL1(v));
335
- var AttoToJsonZod = BigIntToJsonZod2;
336
- var TransactionFeesHexZod = z7.object({
337
- base: HexZod2,
338
- gasLimit: HexZod2,
339
- gasPrice: HexZod2,
340
- priority: HexZod2
341
- });
342
- var TransactionFeesBigIntZod = z7.object({
343
- base: AttoZod,
344
- gasLimit: AttoZod,
345
- gasPrice: AttoZod,
346
- priority: AttoZod
347
- });
348
- var TransactionFeesJsonToBigIntZod = TransactionFeesHexZod.transform((val) => ({
349
- base: JsonToBigIntZod2.parse(val.base),
350
- gasLimit: JsonToBigIntZod2.parse(val.gasLimit),
351
- gasPrice: JsonToBigIntZod2.parse(val.gasPrice),
352
- priority: JsonToBigIntZod2.parse(val.priority)
353
- }));
354
- var TransactionFeesBigIntToJsonZod = TransactionFeesBigIntZod.transform((val) => ({
355
- base: BigIntToJsonZod2.parse(val.base),
356
- gasLimit: BigIntToJsonZod2.parse(val.gasLimit),
357
- gasPrice: BigIntToJsonZod2.parse(val.gasPrice),
358
- priority: BigIntToJsonZod2.parse(val.priority)
359
- }));
360
-
361
- // src/types/schema/common/TransactionBoundWitness.ts
362
- var BlockStartZod = z8.object({
363
- nbf: BlockNumberZod2
364
- });
365
- var BlockEndZod = z8.object({
366
- exp: BlockNumberZod2
367
- });
368
- var BlockDurationZod = z8.object({
369
- nbf: BlockNumberZod2,
370
- exp: BlockNumberZod2
371
- });
372
- var BlockScriptsZod = z8.object({
373
- script: z8.array(z8.string()).optional()
374
- });
375
- var WithTransactionFeesZod = z8.object({
376
- fees: TransactionFeesHexZod
377
- });
378
- var TransactionBoundWitnessFields = z8.object({
379
- chain: ChainZod,
380
- from: ChainZod
381
- });
382
- var TransactionBoundWitnessZod = UnsignedBoundWitnessZod.merge(StorageMetaZod3.partial()).merge(BlockDurationZod).merge(WithTransactionFeesZod).merge(TransactionBoundWitnessFields).merge(BlockScriptsZod);
383
- var SignedTransactionBoundWitnessZod = SignedBoundWitnessZod.merge(StorageMetaZod3.partial()).merge(BlockDurationZod).merge(WithTransactionFeesZod).merge(TransactionBoundWitnessFields).merge(BlockScriptsZod.partial());
384
-
385
- // src/types/schema/common/HydratedTransaction.ts
386
- var HydratedTransactionZod = z9.tuple([
387
- TransactionBoundWitnessZod,
388
- z9.array(PayloadZodLoose2)
389
- ]);
390
- var UnsignedHydratedTransactionZod = z9.tuple([
391
- TransactionBoundWitnessZod,
392
- z9.array(PayloadZodLoose2)
393
- ]);
394
- var SignedHydratedTransactionZod = z9.tuple([
395
- SignedTransactionBoundWitnessZod,
396
- z9.array(PayloadZodLoose2)
397
- ]);
398
- var SignedHydratedTransactionToJsonZod = SignedHydratedTransactionZod.transform(([tx, payloads]) => asSignedHydratedTransaction([
399
- tx,
400
- payloads.map((payload) => payload)
401
- ]));
402
- var JsonToSignedHydratedTransactionZod = SignedHydratedTransactionZod.transform(([tx, payloads]) => [
403
- asSignedHydratedTransaction(tx),
404
- payloads.map((p) => asAnyPayload(p))
405
- ]);
406
-
407
- // src/types/schema/common/Json.ts
408
- import * as z10 from "zod";
409
- var JsonValueZod = z10.lazy(() => z10.union([
410
- z10.string(),
411
- z10.number(),
412
- z10.boolean(),
413
- z10.null(),
414
- z10.array(JsonValueZod),
415
- z10.record(z10.string(), JsonValueZod)
416
- ]));
417
- var JsonObjectZod = z10.record(z10.string(), JsonValueZod);
418
-
419
- // src/types/schema/common/Permission.ts
420
- import { z as z11 } from "zod";
421
- var CaveatTypesZod = z11.enum([
422
- "chain",
423
- "expiration",
424
- "filteredResponse",
425
- "rateLimit",
426
- "restrictReturnedAccounts"
427
- ]);
428
- var CaveatsZod = z11.object({
429
- type: CaveatTypesZod,
430
- value: z11.json()
431
- });
432
- var PermissionZod = z11.object({
433
- parentCapability: z11.string(),
434
- caveats: CaveatsZod.array().optional(),
435
- invoker: z11.string()
436
- });
437
- var InvokerPermissionZod = PermissionZod.extend({
438
- date: z11.number().optional()
439
- });
440
- var PermissionRequestZod = z11.record(z11.string(), z11.record(z11.string(), z11.any()));
441
- var RequestedPermissionZod = z11.object({
442
- parentCapability: z11.string(),
443
- date: z11.number().optional()
444
- });
445
-
446
- // src/types/schema/common/RewardsRangeOptions.ts
447
- import { AddressZod as AddressZod2 } from "@xylabs/sdk-js";
448
- import { BlockRangeZod, StepIdentityZod } from "@xyo-network/xl1-protocol";
449
- import { z as z12 } from "zod";
450
- var RewardsRangeOptionsZod = z12.object({
451
- positions: z12.array(z12.number()).optional(),
452
- range: BlockRangeZod.optional(),
453
- steps: z12.array(StepIdentityZod).optional(),
454
- stakers: z12.array(AddressZod2).optional()
455
- });
456
-
457
- // src/types/schema/common/Sequence.ts
458
- import { HexRegExMinMax, toHex } from "@xylabs/sdk-js";
459
- import { SequenceConstants } from "@xyo-network/payload-model";
460
- import * as z13 from "zod";
461
- var LocalSequenceRegex = new RegExp(HexRegExMinMax(SequenceConstants.localSequenceBytes, SequenceConstants.localSequenceBytes));
462
- var LocalSequenceToStringZod = z13.string().regex(LocalSequenceRegex);
463
- var LocalSequenceFromStringZod = z13.string().regex(LocalSequenceRegex).transform((v) => toHex(v));
464
- var QualifiedSequenceRegex = new RegExp(HexRegExMinMax(SequenceConstants.qualifiedSequenceBytes, SequenceConstants.qualifiedSequenceBytes));
465
- var QualifiedSequenceToStringZod = z13.string().regex(QualifiedSequenceRegex);
466
- var QualifiedSequenceFromStringZod = z13.string().regex(QualifiedSequenceRegex).transform((v) => toHex(v));
467
- var SequenceToStringZod = z13.union([
468
- LocalSequenceToStringZod,
469
- QualifiedSequenceToStringZod
470
- ]);
471
- var SequenceFromStringZod = z13.union([
472
- LocalSequenceFromStringZod,
473
- QualifiedSequenceFromStringZod
474
- ]);
475
-
476
- // src/types/schema/common/Stake.ts
477
- import { AddressZod as AddressZod3, HexZod as HexZod3 } from "@xylabs/sdk-js";
478
- import * as z14 from "zod";
479
- var StakeZod = z14.object({
480
- amount: AttoZod,
481
- // the block number when the stake was added
482
- addBlock: z14.number(),
483
- // the unique id for the stake item
484
- id: z14.number(),
485
- // the block number when the stake was removed (set to 0 if not removed)
486
- removeBlock: z14.number(),
487
- // the address that is being staked
488
- staked: AddressZod3,
489
- // the address that owns the stake
490
- staker: AddressZod3,
491
- // the block number when the stake was withdrawn (set to 0 if not withdrawn)
492
- withdrawBlock: z14.number()
493
- });
494
- var StakeToJsonZod = StakeZod.transform((val) => ({
495
- addBlock: val.addBlock,
496
- amount: AttoToJsonZod.parse(val.amount),
497
- id: val.id,
498
- removeBlock: val.removeBlock,
499
- staked: AddressZod3.parse(val.staked),
500
- staker: AddressZod3.parse(val.staker),
501
- withdrawBlock: val.withdrawBlock
502
- }));
503
- var JsonToStakeZod = StakeZod.extend({
504
- amount: HexZod3
505
- }).transform((val) => ({
506
- addBlock: val.addBlock,
507
- amount: JsonToAttoZod.parse(val.amount),
508
- id: val.id,
509
- removeBlock: val.removeBlock,
510
- staked: val.staked,
511
- staker: val.staker,
512
- withdrawBlock: val.withdrawBlock
513
- }));
514
-
515
- // src/types/schema/common/TimeDomain.ts
516
- import * as z15 from "zod";
517
- var TimeDomainZod = z15.union([
518
- z15.literal("xl1"),
519
- z15.literal("epoch"),
520
- z15.literal("ethereum")
521
- ]);
522
-
523
- // src/types/schema/common/TransferPair.ts
524
- import { AddressZod as AddressZod4 } from "@xylabs/sdk-js";
525
- import z16 from "zod";
526
- var TransferPairZod = z16.tuple([
527
- AddressZod4,
528
- AddressZod4
529
- ]);
530
-
531
- // src/types/schema/XyoPermissionsRpcSchemas.ts
532
202
  var XyoPermissionsRpcSchemas = {
533
203
  xyoPermissions_getPermissions: {
534
204
  params: {
535
- to: z17.array(z17.any()).length(0),
536
- from: z17.array(z17.any()).length(0)
205
+ to: z2.array(z2.any()).length(0),
206
+ from: z2.array(z2.any()).length(0)
537
207
  },
538
208
  result: {
539
- to: z17.array(InvokerPermissionZod),
540
- from: z17.array(InvokerPermissionZod)
209
+ to: z2.array(InvokerPermissionZod),
210
+ from: z2.array(InvokerPermissionZod)
541
211
  }
542
212
  },
543
213
  xyoPermissions_requestPermissions: {
544
214
  params: {
545
- to: z17.tuple([
546
- z17.array(PermissionRequestZod)
215
+ to: z2.tuple([
216
+ z2.array(PermissionRequestZod)
547
217
  ]),
548
- from: z17.tuple([
549
- z17.array(PermissionRequestZod)
218
+ from: z2.tuple([
219
+ z2.array(PermissionRequestZod)
550
220
  ])
551
221
  },
552
222
  result: {
553
- to: z17.array(RequestedPermissionZod),
554
- from: z17.array(RequestedPermissionZod)
223
+ to: z2.array(RequestedPermissionZod),
224
+ from: z2.array(RequestedPermissionZod)
555
225
  }
556
226
  },
557
227
  xyoPermissions_revokePermissions: {
558
228
  params: {
559
- to: z17.tuple([
560
- z17.array(PermissionRequestZod)
229
+ to: z2.tuple([
230
+ z2.array(PermissionRequestZod)
561
231
  ]),
562
- from: z17.tuple([
563
- z17.array(PermissionRequestZod)
232
+ from: z2.tuple([
233
+ z2.array(PermissionRequestZod)
564
234
  ])
565
235
  },
566
236
  result: {
567
- to: z17.array(RequestedPermissionZod),
568
- from: z17.array(RequestedPermissionZod)
237
+ to: z2.array(RequestedPermissionZod),
238
+ from: z2.array(RequestedPermissionZod)
569
239
  }
570
240
  }
571
241
  };
572
242
 
573
243
  // src/types/schema/XyoRunnerRpcSchemas.ts
574
244
  import { HashToJsonZod, JsonToHashZod } from "@xylabs/sdk-js";
575
- import * as z18 from "zod";
245
+ import { SignedHydratedTransactionZod } from "@xyo-network/xl1-protocol-sdk";
246
+ import * as z3 from "zod";
576
247
  var XyoRunnerRpcSchemas = {
577
248
  xyoRunner_broadcastTransaction: {
578
249
  params: {
579
- to: z18.tuple([
250
+ to: z3.tuple([
580
251
  SignedHydratedTransactionZod
581
252
  ]),
582
- from: z18.tuple([
253
+ from: z3.tuple([
583
254
  SignedHydratedTransactionZod
584
255
  ])
585
256
  },
@@ -591,32 +262,33 @@ var XyoRunnerRpcSchemas = {
591
262
  };
592
263
 
593
264
  // src/types/schema/XyoSignerRpcSchemas.ts
594
- import { AddressZod as AddressZod5 } from "@xylabs/sdk-js";
265
+ import { AddressZod } from "@xylabs/sdk-js";
595
266
  import { asHydratedTransactionWithStorageMeta } from "@xyo-network/xl1-protocol";
596
- import { z as z19 } from "zod";
267
+ import { SignedHydratedTransactionZod as SignedHydratedTransactionZod2, UnsignedHydratedTransactionZod } from "@xyo-network/xl1-protocol-sdk";
268
+ import { z as z4 } from "zod";
597
269
  var XyoSignerRpcSchemas = {
598
270
  xyoSigner_address: {
599
271
  params: {
600
- to: z19.array(z19.any()).length(0).optional(),
601
- from: z19.array(z19.any()).length(0).optional()
272
+ to: z4.array(z4.any()).length(0).optional(),
273
+ from: z4.array(z4.any()).length(0).optional()
602
274
  },
603
275
  result: {
604
- to: AddressZod5,
605
- from: AddressZod5
276
+ to: AddressZod,
277
+ from: AddressZod
606
278
  }
607
279
  },
608
280
  xyoSigner_signTransaction: {
609
281
  params: {
610
- to: z19.tuple([
282
+ to: z4.tuple([
611
283
  UnsignedHydratedTransactionZod
612
284
  ]),
613
- from: z19.tuple([
285
+ from: z4.tuple([
614
286
  UnsignedHydratedTransactionZod
615
287
  ])
616
288
  },
617
289
  result: {
618
- to: SignedHydratedTransactionZod,
619
- from: SignedHydratedTransactionZod.transform((data) => asHydratedTransactionWithStorageMeta(data, {
290
+ to: SignedHydratedTransactionZod2,
291
+ from: SignedHydratedTransactionZod2.transform((data) => asHydratedTransactionWithStorageMeta(data, {
620
292
  required: true
621
293
  }))
622
294
  }
@@ -624,463 +296,521 @@ var XyoSignerRpcSchemas = {
624
296
  };
625
297
 
626
298
  // src/types/schema/XyoViewerRpcSchemas.ts
627
- import { AddressZod as AddressZod6, BigIntToJsonZod as BigIntToJsonZod3, HashToJsonZod as HashToJsonZod2, HashZod as HashZod3, JsonToBigIntZod as JsonToBigIntZod3, JsonToHashZod as JsonToHashZod2 } from "@xylabs/sdk-js";
628
- import { WithHashMetaZod } from "@xyo-network/payload-model";
629
- import { BlockNumberZod as BlockNumberZod3, BlockRangeZod as BlockRangeZod2, StepIdentityZod as StepIdentityZod2, TransferZod, XL1BlockNumberZod as XL1BlockNumberZod2, XL1BlockRangeZod } from "@xyo-network/xl1-protocol";
630
- import * as z20 from "zod";
299
+ import { AddressZod as AddressZod2, BigIntToJsonZod as BigIntToJsonZod2, HashToJsonZod as HashToJsonZod2, HashZod, JsonToBigIntZod as JsonToBigIntZod2, JsonToHashZod as JsonToHashZod2 } from "@xylabs/sdk-js";
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 z5 from "zod";
631
303
  var XyoViewerRpcSchemas = {
632
304
  xyoViewer_networkStakeStepRewardClaimedByAddress: {
633
305
  params: {
634
- to: z20.tuple([
635
- AddressZod6
306
+ to: z5.tuple([
307
+ AddressZod2
636
308
  ]),
637
- from: z20.tuple([
638
- AddressZod6
309
+ from: z5.tuple([
310
+ AddressZod2
639
311
  ])
640
312
  },
641
313
  result: {
642
- to: BigIntToJsonZod3,
643
- from: JsonToBigIntZod3
314
+ to: BigIntToJsonZod2,
315
+ from: JsonToBigIntZod2
644
316
  }
645
317
  },
646
318
  xyoViewer_networkStakeStepRewardAddressReward: {
647
319
  params: {
648
- to: z20.tuple([
649
- StepIdentityZod2,
650
- AddressZod6
320
+ to: z5.tuple([
321
+ StepIdentityZod,
322
+ AddressZod2
651
323
  ]),
652
- from: z20.tuple([
653
- StepIdentityZod2,
654
- AddressZod6
324
+ from: z5.tuple([
325
+ StepIdentityZod,
326
+ AddressZod2
655
327
  ])
656
328
  },
657
329
  result: {
658
- to: z20.record(AddressZod6, BigIntToJsonZod3),
659
- from: z20.record(AddressZod6, JsonToBigIntZod3)
330
+ to: z5.record(AddressZod2, BigIntToJsonZod2),
331
+ from: z5.record(AddressZod2, JsonToBigIntZod2)
660
332
  }
661
333
  },
662
334
  xyoViewer_networkStakeStepRewardAddressHistory: {
663
335
  params: {
664
- to: z20.tuple([
665
- AddressZod6
336
+ to: z5.tuple([
337
+ AddressZod2
666
338
  ]),
667
- from: z20.tuple([
668
- AddressZod6
339
+ from: z5.tuple([
340
+ AddressZod2
669
341
  ])
670
342
  },
671
343
  result: {
672
- to: z20.record(AddressZod6, BigIntToJsonZod3),
673
- from: z20.record(AddressZod6, JsonToBigIntZod3)
344
+ to: z5.record(AddressZod2, BigIntToJsonZod2),
345
+ from: z5.record(AddressZod2, JsonToBigIntZod2)
674
346
  }
675
347
  },
676
348
  xyoViewer_networkStakeStepRewardAddressShare: {
677
349
  params: {
678
- to: z20.tuple([
679
- StepIdentityZod2,
680
- AddressZod6
350
+ to: z5.tuple([
351
+ StepIdentityZod,
352
+ AddressZod2
681
353
  ]),
682
- from: z20.tuple([
683
- StepIdentityZod2,
684
- AddressZod6
354
+ from: z5.tuple([
355
+ StepIdentityZod,
356
+ AddressZod2
685
357
  ])
686
358
  },
687
359
  result: {
688
- to: z20.tuple([
689
- BigIntToJsonZod3,
690
- BigIntToJsonZod3
360
+ to: z5.tuple([
361
+ BigIntToJsonZod2,
362
+ BigIntToJsonZod2
691
363
  ]),
692
- from: z20.tuple([
693
- JsonToBigIntZod3,
694
- JsonToBigIntZod3
364
+ from: z5.tuple([
365
+ JsonToBigIntZod2,
366
+ JsonToBigIntZod2
695
367
  ])
696
368
  }
697
369
  },
698
370
  xyoViewer_networkStakeStepRewardWeightForAddress: {
699
371
  params: {
700
- to: z20.tuple([
701
- StepIdentityZod2,
702
- AddressZod6
372
+ to: z5.tuple([
373
+ StepIdentityZod,
374
+ AddressZod2
703
375
  ]),
704
- from: z20.tuple([
705
- StepIdentityZod2,
706
- AddressZod6
376
+ from: z5.tuple([
377
+ StepIdentityZod,
378
+ AddressZod2
707
379
  ])
708
380
  },
709
381
  result: {
710
- to: BigIntToJsonZod3,
711
- from: JsonToBigIntZod3
382
+ to: BigIntToJsonZod2,
383
+ from: JsonToBigIntZod2
712
384
  }
713
385
  },
714
386
  xyoViewer_networkStakeStepRewardUnclaimedByAddress: {
715
387
  params: {
716
- to: z20.tuple([
717
- AddressZod6
388
+ to: z5.tuple([
389
+ AddressZod2
718
390
  ]),
719
- from: z20.tuple([
720
- AddressZod6
391
+ from: z5.tuple([
392
+ AddressZod2
721
393
  ])
722
394
  },
723
395
  result: {
724
- to: BigIntToJsonZod3,
725
- from: JsonToBigIntZod3
396
+ to: BigIntToJsonZod2,
397
+ from: JsonToBigIntZod2
726
398
  }
727
399
  },
728
400
  xyoViewer_networkStakeStepRewardPoolRewards: {
729
401
  params: {
730
- to: z20.tuple([
731
- StepIdentityZod2
402
+ to: z5.tuple([
403
+ StepIdentityZod
732
404
  ]),
733
- from: z20.tuple([
734
- StepIdentityZod2
405
+ from: z5.tuple([
406
+ StepIdentityZod
735
407
  ])
736
408
  },
737
409
  result: {
738
- to: z20.record(AddressZod6, BigIntToJsonZod3),
739
- from: z20.record(AddressZod6, JsonToBigIntZod3)
410
+ to: z5.record(AddressZod2, BigIntToJsonZod2),
411
+ from: z5.record(AddressZod2, JsonToBigIntZod2)
740
412
  }
741
413
  },
742
414
  xyoViewer_networkStakeStepRewardPositionWeight: {
743
415
  params: {
744
- to: z20.tuple([
745
- StepIdentityZod2,
746
- z20.number()
416
+ to: z5.tuple([
417
+ StepIdentityZod,
418
+ z5.number()
747
419
  ]),
748
- from: z20.tuple([
749
- StepIdentityZod2,
750
- z20.number()
420
+ from: z5.tuple([
421
+ StepIdentityZod,
422
+ z5.number()
751
423
  ])
752
424
  },
753
425
  result: {
754
- to: BigIntToJsonZod3,
755
- from: JsonToBigIntZod3
426
+ to: BigIntToJsonZod2,
427
+ from: JsonToBigIntZod2
756
428
  }
757
429
  },
758
430
  xyoViewer_networkStakeStepRewardPotentialPositionLoss: {
759
431
  params: {
760
- to: z20.tuple([
761
- StepIdentityZod2,
762
- z20.number()
432
+ to: z5.tuple([
433
+ StepIdentityZod,
434
+ z5.number()
763
435
  ]),
764
- from: z20.tuple([
765
- StepIdentityZod2,
766
- z20.number()
436
+ from: z5.tuple([
437
+ StepIdentityZod,
438
+ z5.number()
767
439
  ])
768
440
  },
769
441
  result: {
770
- to: BigIntToJsonZod3,
771
- from: JsonToBigIntZod3
442
+ to: BigIntToJsonZod2,
443
+ from: JsonToBigIntZod2
772
444
  }
773
445
  },
774
446
  xyoViewer_networkStakeStepRewardForStep: {
775
447
  params: {
776
- to: z20.tuple([
777
- StepIdentityZod2
448
+ to: z5.tuple([
449
+ StepIdentityZod
778
450
  ]),
779
- from: z20.tuple([
780
- StepIdentityZod2
451
+ from: z5.tuple([
452
+ StepIdentityZod
781
453
  ])
782
454
  },
783
455
  result: {
784
- to: BigIntToJsonZod3,
785
- from: JsonToBigIntZod3
456
+ to: BigIntToJsonZod2,
457
+ from: JsonToBigIntZod2
786
458
  }
787
459
  },
788
460
  xyoViewer_networkStakeStepRewardRandomizer: {
789
461
  params: {
790
- to: z20.tuple([
791
- StepIdentityZod2
462
+ to: z5.tuple([
463
+ StepIdentityZod
792
464
  ]),
793
- from: z20.tuple([
794
- StepIdentityZod2
465
+ from: z5.tuple([
466
+ StepIdentityZod
795
467
  ])
796
468
  },
797
469
  result: {
798
- to: BigIntToJsonZod3,
799
- from: JsonToBigIntZod3
470
+ to: BigIntToJsonZod2,
471
+ from: JsonToBigIntZod2
800
472
  }
801
473
  },
802
474
  xyoViewer_networkStakeStepRewardStakerCount: {
803
475
  params: {
804
- to: z20.tuple([
805
- StepIdentityZod2
476
+ to: z5.tuple([
477
+ StepIdentityZod
806
478
  ]),
807
- from: z20.tuple([
808
- StepIdentityZod2
479
+ from: z5.tuple([
480
+ StepIdentityZod
809
481
  ])
810
482
  },
811
483
  result: {
812
- to: z20.number(),
813
- from: z20.number()
484
+ to: z5.number(),
485
+ from: z5.number()
814
486
  }
815
487
  },
816
488
  xyoViewer_networkStakeStepRewardPoolShares: {
817
489
  params: {
818
- to: z20.tuple([
819
- StepIdentityZod2
490
+ to: z5.tuple([
491
+ StepIdentityZod
820
492
  ]),
821
- from: z20.tuple([
822
- StepIdentityZod2
493
+ from: z5.tuple([
494
+ StepIdentityZod
823
495
  ])
824
496
  },
825
497
  result: {
826
- to: z20.record(AddressZod6, BigIntToJsonZod3),
827
- from: z20.record(AddressZod6, JsonToBigIntZod3)
498
+ to: z5.record(AddressZod2, BigIntToJsonZod2),
499
+ from: z5.record(AddressZod2, JsonToBigIntZod2)
828
500
  }
829
501
  },
830
502
  xyoViewer_networkStakeStepRewardForStepForPosition: {
831
503
  params: {
832
- to: z20.tuple([
833
- StepIdentityZod2,
834
- z20.number()
504
+ to: z5.tuple([
505
+ StepIdentityZod,
506
+ z5.number()
835
507
  ]),
836
- from: z20.tuple([
837
- StepIdentityZod2,
838
- z20.number()
508
+ from: z5.tuple([
509
+ StepIdentityZod,
510
+ z5.number()
839
511
  ])
840
512
  },
841
513
  result: {
842
- to: z20.tuple([
843
- BigIntToJsonZod3,
844
- BigIntToJsonZod3
514
+ to: z5.tuple([
515
+ BigIntToJsonZod2,
516
+ BigIntToJsonZod2
845
517
  ]),
846
- from: z20.tuple([
847
- JsonToBigIntZod3,
848
- JsonToBigIntZod3
518
+ from: z5.tuple([
519
+ JsonToBigIntZod2,
520
+ JsonToBigIntZod2
849
521
  ])
850
522
  }
851
523
  },
852
524
  xyoViewer_networkStakeStepRewardForPosition: {
853
525
  params: {
854
- to: z20.tuple([
855
- z20.number(),
856
- z20.tuple([
857
- z20.number(),
858
- z20.number()
526
+ to: z5.tuple([
527
+ z5.number(),
528
+ z5.tuple([
529
+ z5.number(),
530
+ z5.number()
859
531
  ])
860
532
  ]),
861
- from: z20.tuple([
862
- z20.number(),
863
- z20.tuple([
864
- z20.number(),
865
- z20.number()
533
+ from: z5.tuple([
534
+ z5.number(),
535
+ z5.tuple([
536
+ z5.number(),
537
+ z5.number()
866
538
  ])
867
539
  ])
868
540
  },
869
541
  result: {
870
- to: z20.tuple([
871
- BigIntToJsonZod3,
872
- BigIntToJsonZod3
542
+ to: z5.tuple([
543
+ BigIntToJsonZod2,
544
+ BigIntToJsonZod2
873
545
  ]),
874
- from: z20.tuple([
875
- JsonToBigIntZod3,
876
- JsonToBigIntZod3
546
+ from: z5.tuple([
547
+ JsonToBigIntZod2,
548
+ JsonToBigIntZod2
877
549
  ])
878
550
  }
879
551
  },
880
552
  xyoViewer_networkStakeStepRewardsForRange: {
881
553
  params: {
882
- to: z20.tuple([
883
- z20.tuple([
884
- z20.number(),
885
- z20.number()
554
+ to: z5.tuple([
555
+ z5.tuple([
556
+ z5.number(),
557
+ z5.number()
886
558
  ])
887
559
  ]),
888
- from: z20.tuple([
889
- z20.tuple([
890
- z20.number(),
891
- z20.number()
560
+ from: z5.tuple([
561
+ z5.tuple([
562
+ z5.number(),
563
+ z5.number()
892
564
  ])
893
565
  ])
894
566
  },
895
567
  result: {
896
- to: BigIntToJsonZod3,
897
- from: JsonToBigIntZod3
568
+ to: BigIntToJsonZod2,
569
+ from: JsonToBigIntZod2
898
570
  }
899
571
  },
900
572
  xyoViewer_networkStakeStepRewardsForStepLevel: {
901
573
  params: {
902
- to: z20.tuple([
903
- z20.number(),
904
- z20.tuple([
905
- z20.number(),
906
- z20.number()
574
+ to: z5.tuple([
575
+ z5.number(),
576
+ z5.tuple([
577
+ z5.number(),
578
+ z5.number()
907
579
  ])
908
580
  ]),
909
- from: z20.tuple([
910
- z20.number(),
911
- z20.tuple([
912
- z20.number(),
913
- z20.number()
581
+ from: z5.tuple([
582
+ z5.number(),
583
+ z5.tuple([
584
+ z5.number(),
585
+ z5.number()
914
586
  ])
915
587
  ])
916
588
  },
917
589
  result: {
918
- to: BigIntToJsonZod3,
919
- from: JsonToBigIntZod3
590
+ to: BigIntToJsonZod2,
591
+ from: JsonToBigIntZod2
920
592
  }
921
593
  },
922
594
  xyoViewer_networkStakeStepRewardsForPosition: {
923
595
  params: {
924
- to: z20.tuple([
925
- z20.number(),
926
- z20.tuple([
927
- z20.number(),
928
- z20.number()
596
+ to: z5.tuple([
597
+ z5.number(),
598
+ z5.tuple([
599
+ z5.number(),
600
+ z5.number()
929
601
  ])
930
602
  ]),
931
- from: z20.tuple([
932
- z20.number(),
933
- z20.tuple([
934
- z20.number(),
935
- z20.number()
603
+ from: z5.tuple([
604
+ z5.number(),
605
+ z5.tuple([
606
+ z5.number(),
607
+ z5.number()
936
608
  ])
937
609
  ])
938
610
  },
939
611
  result: {
940
- to: z20.record(z20.string(), z20.tuple([
941
- BigIntToJsonZod3,
942
- BigIntToJsonZod3
612
+ to: z5.record(z5.string(), z5.tuple([
613
+ BigIntToJsonZod2,
614
+ BigIntToJsonZod2
943
615
  ])),
944
- from: z20.record(z20.string(), z20.tuple([
945
- JsonToBigIntZod3,
946
- JsonToBigIntZod3
616
+ from: z5.record(z5.string(), z5.tuple([
617
+ JsonToBigIntZod2,
618
+ JsonToBigIntZod2
947
619
  ]))
948
620
  }
949
621
  },
950
622
  xyoViewer_accountBalance: {
951
623
  params: {
952
- to: z20.tuple([
953
- AddressZod6
624
+ to: z5.union([
625
+ z5.tuple([
626
+ AddressZod2
627
+ ]),
628
+ z5.tuple([
629
+ AddressZod2,
630
+ z5.union([
631
+ XL1BlockRangeZod,
632
+ HashZod
633
+ ])
634
+ ])
954
635
  ]),
955
- from: z20.tuple([
956
- AddressZod6
636
+ from: z5.union([
637
+ z5.tuple([
638
+ AddressZod2
639
+ ]),
640
+ z5.tuple([
641
+ AddressZod2,
642
+ z5.union([
643
+ XL1BlockRangeZod,
644
+ HashZod
645
+ ])
646
+ ])
957
647
  ])
958
648
  },
959
649
  result: {
960
- to: BigIntToJsonZod3,
961
- from: JsonToBigIntZod3
650
+ to: BigIntToJsonZod2,
651
+ from: JsonToBigIntZod2
962
652
  }
963
653
  },
964
654
  xyoViewer_accountBalanceHistory: {
965
655
  params: {
966
- to: z20.union([
967
- z20.tuple([
968
- AddressZod6
656
+ to: z5.union([
657
+ z5.tuple([
658
+ AddressZod2
969
659
  ]),
970
- z20.tuple([
971
- AddressZod6,
972
- z20.union([
660
+ z5.tuple([
661
+ AddressZod2,
662
+ z5.union([
973
663
  XL1BlockRangeZod,
974
- HashZod3
664
+ HashZod
975
665
  ])
976
666
  ])
977
667
  ]),
978
- from: z20.union([
979
- z20.tuple([
980
- AddressZod6
668
+ from: z5.union([
669
+ z5.tuple([
670
+ AddressZod2
981
671
  ]),
982
- z20.tuple([
983
- AddressZod6,
984
- z20.union([
672
+ z5.tuple([
673
+ AddressZod2,
674
+ z5.union([
985
675
  XL1BlockRangeZod,
986
- HashZod3
676
+ HashZod
987
677
  ])
988
678
  ])
989
679
  ])
990
680
  },
991
681
  result: {
992
- to: z20.array(z20.tuple([
993
- WithHashMetaZod(BlockBoundWitnessZod),
994
- WithHashMetaZod(TransactionBoundWitnessZod).nullable(),
995
- WithHashMetaZod(TransferZod)
996
- ])),
997
- from: z20.array(z20.tuple([
998
- WithHashMetaZod(BlockBoundWitnessZod),
999
- WithHashMetaZod(TransactionBoundWitnessZod).nullable(),
1000
- WithHashMetaZod(TransferZod)
1001
- ]))
682
+ to: z5.array(AccountBalanceHistoryItemZod),
683
+ from: z5.array(AccountBalanceHistoryItemZod)
684
+ }
685
+ },
686
+ xyoViewer_accountsBalances: {
687
+ params: {
688
+ to: z5.union([
689
+ z5.tuple([
690
+ z5.array(AddressZod2)
691
+ ]),
692
+ z5.tuple([
693
+ z5.array(AddressZod2),
694
+ z5.union([
695
+ XL1BlockRangeZod,
696
+ HashZod
697
+ ])
698
+ ])
699
+ ]),
700
+ from: z5.union([
701
+ z5.tuple([
702
+ z5.array(AddressZod2)
703
+ ]),
704
+ z5.tuple([
705
+ z5.array(AddressZod2),
706
+ z5.union([
707
+ XL1BlockRangeZod,
708
+ HashZod
709
+ ])
710
+ ])
711
+ ])
712
+ },
713
+ result: {
714
+ to: z5.record(AddressZod2, BigIntToJsonZod2),
715
+ from: z5.record(AddressZod2, JsonToBigIntZod2)
716
+ }
717
+ },
718
+ xyoViewer_accountsBalancesHistory: {
719
+ params: {
720
+ to: z5.union([
721
+ z5.tuple([
722
+ z5.array(AddressZod2)
723
+ ]),
724
+ z5.tuple([
725
+ z5.array(AddressZod2),
726
+ z5.union([
727
+ XL1BlockRangeZod,
728
+ HashZod
729
+ ])
730
+ ])
731
+ ]),
732
+ from: z5.union([
733
+ z5.tuple([
734
+ z5.array(AddressZod2)
735
+ ]),
736
+ z5.tuple([
737
+ z5.array(AddressZod2),
738
+ z5.union([
739
+ XL1BlockRangeZod,
740
+ HashZod
741
+ ])
742
+ ])
743
+ ])
744
+ },
745
+ result: {
746
+ to: z5.record(AddressZod2, AccountBalanceHistoryItemZod),
747
+ from: z5.record(AddressZod2, AccountBalanceHistoryItemZod)
1002
748
  }
1003
749
  },
1004
750
  xyoViewer_transferPairBalance: {
1005
751
  params: {
1006
- to: z20.tuple([
752
+ to: z5.tuple([
1007
753
  TransferPairZod
1008
754
  ]),
1009
- from: z20.tuple([
755
+ from: z5.tuple([
1010
756
  TransferPairZod
1011
757
  ])
1012
758
  },
1013
759
  result: {
1014
- to: BigIntToJsonZod3,
1015
- from: JsonToBigIntZod3
760
+ to: BigIntToJsonZod2,
761
+ from: JsonToBigIntZod2
1016
762
  }
1017
763
  },
1018
764
  xyoViewer_transferPairBalanceHistory: {
1019
765
  params: {
1020
- to: z20.tuple([
766
+ to: z5.tuple([
1021
767
  TransferPairZod
1022
768
  ]),
1023
- from: z20.tuple([
769
+ from: z5.tuple([
1024
770
  TransferPairZod
1025
771
  ])
1026
772
  },
1027
773
  result: {
1028
- to: z20.array(z20.tuple([
1029
- WithHashMetaZod(BlockBoundWitnessZod),
1030
- WithHashMetaZod(TransactionBoundWitnessZod).nullable(),
1031
- WithHashMetaZod(TransferZod)
1032
- ])),
1033
- from: z20.array(z20.tuple([
1034
- WithHashMetaZod(BlockBoundWitnessZod),
1035
- WithHashMetaZod(TransactionBoundWitnessZod).nullable(),
1036
- WithHashMetaZod(TransferZod)
1037
- ]))
774
+ to: z5.array(AccountBalanceHistoryItemZod),
775
+ from: z5.array(AccountBalanceHistoryItemZod)
1038
776
  }
1039
777
  },
1040
778
  xyoViewer_transferBalance: {
1041
779
  params: {
1042
- to: z20.tuple([
1043
- AddressZod6
780
+ to: z5.tuple([
781
+ AddressZod2
1044
782
  ]),
1045
- from: z20.tuple([
1046
- AddressZod6
783
+ from: z5.tuple([
784
+ AddressZod2
1047
785
  ])
1048
786
  },
1049
787
  result: {
1050
- to: BigIntToJsonZod3,
1051
- from: JsonToBigIntZod3
788
+ to: BigIntToJsonZod2,
789
+ from: JsonToBigIntZod2
1052
790
  }
1053
791
  },
1054
792
  xyoViewer_transferBalanceHistory: {
1055
793
  params: {
1056
- to: z20.tuple([
1057
- AddressZod6,
1058
- BlockRangeZod2.optional()
794
+ to: z5.tuple([
795
+ AddressZod2,
796
+ BlockRangeZod.optional()
1059
797
  ]),
1060
- from: z20.tuple([
1061
- AddressZod6,
1062
- BlockRangeZod2.optional()
798
+ from: z5.tuple([
799
+ AddressZod2,
800
+ BlockRangeZod.optional()
1063
801
  ])
1064
802
  },
1065
803
  result: {
1066
- to: z20.array(z20.tuple([
1067
- WithHashMetaZod(BlockBoundWitnessZod),
1068
- WithHashMetaZod(TransactionBoundWitnessZod).nullable(),
1069
- WithHashMetaZod(TransferZod)
1070
- ])),
1071
- from: z20.array(z20.tuple([
1072
- WithHashMetaZod(BlockBoundWitnessZod),
1073
- WithHashMetaZod(TransactionBoundWitnessZod).nullable(),
1074
- WithHashMetaZod(TransferZod)
1075
- ]))
804
+ to: z5.array(AccountBalanceHistoryItemZod),
805
+ from: z5.array(AccountBalanceHistoryItemZod)
1076
806
  }
1077
807
  },
1078
808
  xyoViewer_blockByHash: {
1079
809
  params: {
1080
- to: z20.tuple([
810
+ to: z5.tuple([
1081
811
  HashToJsonZod2
1082
812
  ]),
1083
- from: z20.tuple([
813
+ from: z5.tuple([
1084
814
  JsonToHashZod2
1085
815
  ])
1086
816
  },
@@ -1091,11 +821,11 @@ var XyoViewerRpcSchemas = {
1091
821
  },
1092
822
  xyoViewer_blockByNumber: {
1093
823
  params: {
1094
- to: z20.tuple([
1095
- z20.number()
824
+ to: z5.tuple([
825
+ z5.number()
1096
826
  ]),
1097
- from: z20.tuple([
1098
- z20.number()
827
+ from: z5.tuple([
828
+ z5.number()
1099
829
  ])
1100
830
  },
1101
831
  result: {
@@ -1105,48 +835,48 @@ var XyoViewerRpcSchemas = {
1105
835
  },
1106
836
  xyoViewer_blocksByHash: {
1107
837
  params: {
1108
- to: z20.tuple([
1109
- HashZod3,
1110
- z20.number().optional()
838
+ to: z5.tuple([
839
+ HashZod,
840
+ z5.number().optional()
1111
841
  ]),
1112
- from: z20.tuple([
1113
- HashZod3,
1114
- z20.number().optional()
842
+ from: z5.tuple([
843
+ HashZod,
844
+ z5.number().optional()
1115
845
  ])
1116
846
  },
1117
847
  result: {
1118
- to: z20.array(SignedHydratedBlockZod),
1119
- from: z20.array(SignedHydratedBlockZod)
848
+ to: z5.array(SignedHydratedBlockZod),
849
+ from: z5.array(SignedHydratedBlockZod)
1120
850
  }
1121
851
  },
1122
852
  xyoViewer_chainId: {
1123
853
  params: {
1124
- to: z20.array(z20.any()).length(0).optional(),
1125
- from: z20.array(z20.any()).length(0).optional()
854
+ to: z5.array(z5.any()).length(0).optional(),
855
+ from: z5.array(z5.any()).length(0).optional()
1126
856
  },
1127
857
  result: {
1128
- to: AddressZod6,
1129
- from: AddressZod6
858
+ to: AddressZod2,
859
+ from: AddressZod2
1130
860
  }
1131
861
  },
1132
862
  xyoViewer_chainIdAtBlock: {
1133
863
  params: {
1134
- to: z20.tuple([
1135
- BlockNumberZod3
864
+ to: z5.tuple([
865
+ BlockNumberZod2
1136
866
  ]),
1137
- from: z20.tuple([
1138
- BlockNumberZod3
867
+ from: z5.tuple([
868
+ BlockNumberZod2
1139
869
  ])
1140
870
  },
1141
871
  result: {
1142
- to: AddressZod6,
1143
- from: AddressZod6
872
+ to: AddressZod2,
873
+ from: AddressZod2
1144
874
  }
1145
875
  },
1146
876
  xyoViewer_currentBlock: {
1147
877
  params: {
1148
- to: z20.array(z20.any()).length(0).optional(),
1149
- from: z20.array(z20.any()).length(0).optional()
878
+ to: z5.array(z5.any()).length(0).optional(),
879
+ from: z5.array(z5.any()).length(0).optional()
1150
880
  },
1151
881
  result: {
1152
882
  to: SignedHydratedBlockZod,
@@ -1155,43 +885,43 @@ var XyoViewerRpcSchemas = {
1155
885
  },
1156
886
  xyoViewer_currentBlockHash: {
1157
887
  params: {
1158
- to: z20.array(z20.any()).length(0).optional(),
1159
- from: z20.array(z20.any()).length(0).optional()
888
+ to: z5.array(z5.any()).length(0).optional(),
889
+ from: z5.array(z5.any()).length(0).optional()
1160
890
  },
1161
891
  result: {
1162
- to: HashZod3,
1163
- from: HashZod3
892
+ to: HashZod,
893
+ from: HashZod
1164
894
  }
1165
895
  },
1166
896
  xyoViewer_currentBlockNumber: {
1167
897
  params: {
1168
- to: z20.array(z20.any()).length(0).optional(),
1169
- from: z20.array(z20.any()).length(0).optional()
898
+ to: z5.array(z5.any()).length(0).optional(),
899
+ from: z5.array(z5.any()).length(0).optional()
1170
900
  },
1171
901
  result: {
1172
- to: XL1BlockNumberZod2,
1173
- from: XL1BlockNumberZod2
902
+ to: XL1BlockNumberZod,
903
+ from: XL1BlockNumberZod
1174
904
  }
1175
905
  },
1176
906
  xyoViewer_forkHistory: {
1177
907
  params: {
1178
- to: z20.array(z20.any()).length(0).optional(),
1179
- from: z20.array(z20.any()).length(0).optional()
908
+ to: z5.array(z5.any()).length(0).optional(),
909
+ from: z5.array(z5.any()).length(0).optional()
1180
910
  },
1181
911
  result: {
1182
- to: z20.record(z20.number(), AddressZod6),
1183
- from: z20.record(z20.number(), AddressZod6)
912
+ to: z5.record(z5.number(), AddressZod2),
913
+ from: z5.record(z5.number(), AddressZod2)
1184
914
  }
1185
915
  },
1186
916
  xyoViewer_stakeByStaker: {
1187
917
  params: {
1188
- to: z20.tuple([
1189
- AddressZod6,
1190
- z20.number()
918
+ to: z5.tuple([
919
+ AddressZod2,
920
+ z5.number()
1191
921
  ]),
1192
- from: z20.tuple([
1193
- AddressZod6,
1194
- z20.number()
922
+ from: z5.tuple([
923
+ AddressZod2,
924
+ z5.number()
1195
925
  ])
1196
926
  },
1197
927
  result: {
@@ -1201,11 +931,11 @@ var XyoViewerRpcSchemas = {
1201
931
  },
1202
932
  xyoViewer_stakeById: {
1203
933
  params: {
1204
- to: z20.tuple([
1205
- z20.number()
934
+ to: z5.tuple([
935
+ z5.number()
1206
936
  ]),
1207
- from: z20.tuple([
1208
- z20.number()
937
+ from: z5.tuple([
938
+ z5.number()
1209
939
  ])
1210
940
  },
1211
941
  result: {
@@ -1215,76 +945,76 @@ var XyoViewerRpcSchemas = {
1215
945
  },
1216
946
  xyoViewer_stakesByStaker: {
1217
947
  params: {
1218
- to: z20.tuple([
1219
- AddressZod6
948
+ to: z5.tuple([
949
+ AddressZod2
1220
950
  ]),
1221
- from: z20.tuple([
1222
- AddressZod6
951
+ from: z5.tuple([
952
+ AddressZod2
1223
953
  ])
1224
954
  },
1225
955
  result: {
1226
- to: z20.array(StakeToJsonZod),
1227
- from: z20.array(JsonToStakeZod)
956
+ to: z5.array(StakeToJsonZod),
957
+ from: z5.array(JsonToStakeZod)
1228
958
  }
1229
959
  },
1230
960
  xyoViewer_stakesByStaked: {
1231
961
  params: {
1232
- to: z20.tuple([
1233
- AddressZod6
962
+ to: z5.tuple([
963
+ AddressZod2
1234
964
  ]),
1235
- from: z20.tuple([
1236
- AddressZod6
965
+ from: z5.tuple([
966
+ AddressZod2
1237
967
  ])
1238
968
  },
1239
969
  result: {
1240
- to: z20.array(StakeToJsonZod),
1241
- from: z20.array(JsonToStakeZod)
970
+ to: z5.array(StakeToJsonZod),
971
+ from: z5.array(JsonToStakeZod)
1242
972
  }
1243
973
  },
1244
974
  xyoViewer_transactionByBlockHashAndIndex: {
1245
975
  params: {
1246
- to: z20.tuple([
1247
- HashZod3,
1248
- z20.number()
976
+ to: z5.tuple([
977
+ HashZod,
978
+ z5.number()
1249
979
  ]),
1250
- from: z20.tuple([
1251
- HashZod3,
1252
- z20.number()
980
+ from: z5.tuple([
981
+ HashZod,
982
+ z5.number()
1253
983
  ])
1254
984
  },
1255
985
  result: {
1256
- to: SignedHydratedTransactionZod.nullable(),
1257
- from: SignedHydratedTransactionZod.nullable()
986
+ to: SignedHydratedTransactionZod3.nullable(),
987
+ from: SignedHydratedTransactionZod3.nullable()
1258
988
  }
1259
989
  },
1260
990
  xyoViewer_transactionByBlockNumberAndIndex: {
1261
991
  params: {
1262
- to: z20.tuple([
1263
- z20.number(),
1264
- z20.number()
992
+ to: z5.tuple([
993
+ z5.number(),
994
+ z5.number()
1265
995
  ]),
1266
- from: z20.tuple([
1267
- z20.number(),
1268
- z20.number()
996
+ from: z5.tuple([
997
+ z5.number(),
998
+ z5.number()
1269
999
  ])
1270
1000
  },
1271
1001
  result: {
1272
- to: SignedHydratedTransactionZod.nullable(),
1273
- from: SignedHydratedTransactionZod.nullable()
1002
+ to: SignedHydratedTransactionZod3.nullable(),
1003
+ from: SignedHydratedTransactionZod3.nullable()
1274
1004
  }
1275
1005
  },
1276
1006
  xyoViewer_transactionByHash: {
1277
1007
  params: {
1278
- to: z20.tuple([
1279
- HashZod3
1008
+ to: z5.tuple([
1009
+ HashZod
1280
1010
  ]),
1281
- from: z20.tuple([
1282
- HashZod3
1011
+ from: z5.tuple([
1012
+ HashZod
1283
1013
  ])
1284
1014
  },
1285
1015
  result: {
1286
- to: SignedHydratedTransactionZod.nullable(),
1287
- from: SignedHydratedTransactionZod.nullable()
1016
+ to: SignedHydratedTransactionZod3.nullable(),
1017
+ from: SignedHydratedTransactionZod3.nullable()
1288
1018
  }
1289
1019
  }
1290
1020
  };
@@ -1299,391 +1029,396 @@ var AllRpcSchemas = {
1299
1029
  };
1300
1030
 
1301
1031
  // src/types/schema/createRequestSchema.ts
1302
- import * as z21 from "zod";
1303
- var createRequestSchema = /* @__PURE__ */ __name((methodName, paramsSchema = z21.undefined()) => z21.object({
1304
- id: z21.union([
1305
- z21.string(),
1306
- z21.number()
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()
1307
1037
  ]),
1308
- jsonrpc: z21.literal(jsonrpc),
1309
- method: z21.literal(methodName),
1038
+ jsonrpc: z6.literal(jsonrpc),
1039
+ method: z6.literal(methodName),
1310
1040
  params: paramsSchema
1311
1041
  }), "createRequestSchema");
1312
1042
 
1313
1043
  // src/types/schema/createResponseSchema.ts
1314
- import * as z22 from "zod";
1315
- var createResponseSchema = /* @__PURE__ */ __name((resultSchema = z22.undefined()) => z22.object({
1316
- id: z22.union([
1317
- z22.string(),
1318
- z22.number()
1044
+ import * as z7 from "zod";
1045
+ var createResponseSchema = /* @__PURE__ */ __name((resultSchema = z7.undefined()) => z7.object({
1046
+ id: z7.union([
1047
+ z7.string(),
1048
+ z7.number()
1319
1049
  ]),
1320
- jsonrpc: z22.literal(jsonrpc),
1050
+ jsonrpc: z7.literal(jsonrpc),
1321
1051
  result: resultSchema
1322
1052
  }), "createResponseSchema");
1323
1053
 
1324
1054
  // src/types/schema/DataLakeViewerRpcSchema.ts
1325
- import { HashZod as HashZod4 } from "@xylabs/sdk-js";
1326
- import { PayloadZod as PayloadZod2 } from "@xyo-network/payload-model";
1327
- import * as z23 from "zod";
1055
+ import { HashZod as HashZod2 } from "@xylabs/sdk-js";
1056
+ import { PayloadZod } from "@xyo-network/payload-model";
1057
+ import { ArrayBufferToJsonZod, JsonToArrayBufferZod } from "@xyo-network/xl1-protocol-sdk";
1058
+ import * as z8 from "zod";
1328
1059
  var DataLakeViewerRpcSchemas = {
1329
1060
  dataLakeViewer_get: {
1330
1061
  params: {
1331
- to: z23.tuple([
1332
- HashZod4
1062
+ to: z8.tuple([
1063
+ HashZod2
1333
1064
  ]),
1334
- from: z23.tuple([
1335
- HashZod4
1065
+ from: z8.tuple([
1066
+ HashZod2
1336
1067
  ])
1337
1068
  },
1338
1069
  result: {
1339
- to: z23.union([
1340
- PayloadZod2,
1070
+ to: z8.union([
1071
+ PayloadZod,
1341
1072
  ArrayBufferToJsonZod
1342
1073
  ]).optional(),
1343
- from: z23.union([
1344
- PayloadZod2,
1074
+ from: z8.union([
1075
+ PayloadZod,
1345
1076
  JsonToArrayBufferZod
1346
1077
  ]).optional()
1347
1078
  }
1348
1079
  },
1349
1080
  dataLakeViewer_getMany: {
1350
1081
  params: {
1351
- to: z23.tuple([
1352
- z23.array(HashZod4)
1082
+ to: z8.tuple([
1083
+ z8.array(HashZod2)
1353
1084
  ]),
1354
- from: z23.tuple([
1355
- z23.array(HashZod4)
1085
+ from: z8.tuple([
1086
+ z8.array(HashZod2)
1356
1087
  ])
1357
1088
  },
1358
1089
  result: {
1359
- to: z23.array(z23.union([
1360
- PayloadZod2,
1090
+ to: z8.array(z8.union([
1091
+ PayloadZod,
1361
1092
  ArrayBufferToJsonZod
1362
1093
  ])),
1363
- from: z23.array(z23.union([
1364
- PayloadZod2,
1094
+ from: z8.array(z8.union([
1095
+ PayloadZod,
1365
1096
  JsonToArrayBufferZod
1366
1097
  ]))
1367
1098
  }
1368
1099
  },
1369
1100
  dataLakeViewer_has: {
1370
1101
  params: {
1371
- to: z23.tuple([
1372
- HashZod4
1102
+ to: z8.tuple([
1103
+ HashZod2
1373
1104
  ]),
1374
- from: z23.tuple([
1375
- HashZod4
1105
+ from: z8.tuple([
1106
+ HashZod2
1376
1107
  ])
1377
1108
  },
1378
1109
  result: {
1379
- to: z23.boolean(),
1380
- from: z23.boolean()
1110
+ to: z8.boolean(),
1111
+ from: z8.boolean()
1381
1112
  }
1382
1113
  }
1383
1114
  };
1384
1115
 
1385
1116
  // src/types/schema/RewardsByPositionViewerRpcSchemas.ts
1386
- import { BigIntToJsonZod as BigIntToJsonZod4, JsonToBigIntZod as JsonToBigIntZod4 } from "@xylabs/sdk-js";
1387
- import { asAttoXL1 as asAttoXL12 } from "@xyo-network/xl1-protocol";
1388
- import z24 from "zod";
1117
+ import { BigIntToJsonZod as BigIntToJsonZod3, JsonToBigIntZod as JsonToBigIntZod3 } from "@xylabs/sdk-js";
1118
+ import { asAttoXL1 } from "@xyo-network/xl1-protocol";
1119
+ import { RewardsRangeOptionsZod } from "@xyo-network/xl1-protocol-sdk";
1120
+ import z9 from "zod";
1389
1121
  var NetworkStakingStepRewardsByPositionViewerRpcSchemas = {
1390
1122
  networkStakingStepRewardsByPositionViewer_bonus: {
1391
1123
  params: {
1392
- from: z24.tuple([
1124
+ from: z9.tuple([
1393
1125
  RewardsRangeOptionsZod.optional()
1394
1126
  ]),
1395
- to: z24.tuple([
1127
+ to: z9.tuple([
1396
1128
  RewardsRangeOptionsZod.optional()
1397
1129
  ])
1398
1130
  },
1399
1131
  result: {
1400
- from: z24.record(z24.number(), JsonToBigIntZod4.transform((val) => asAttoXL12(val))),
1401
- to: z24.record(z24.number(), BigIntToJsonZod4)
1132
+ from: z9.record(z9.number(), JsonToBigIntZod3.transform((val) => asAttoXL1(val))),
1133
+ to: z9.record(z9.number(), BigIntToJsonZod3)
1402
1134
  }
1403
1135
  },
1404
1136
  networkStakingStepRewardsByPositionViewer_claimed: {
1405
1137
  params: {
1406
- from: z24.tuple([
1138
+ from: z9.tuple([
1407
1139
  RewardsRangeOptionsZod.optional()
1408
1140
  ]),
1409
- to: z24.tuple([
1141
+ to: z9.tuple([
1410
1142
  RewardsRangeOptionsZod.optional()
1411
1143
  ])
1412
1144
  },
1413
1145
  result: {
1414
- from: z24.record(z24.number(), BigIntToJsonZod4.transform((val) => asAttoXL12(val))),
1415
- to: z24.record(z24.number(), JsonToBigIntZod4)
1146
+ from: z9.record(z9.number(), BigIntToJsonZod3.transform((val) => asAttoXL1(val))),
1147
+ to: z9.record(z9.number(), JsonToBigIntZod3)
1416
1148
  }
1417
1149
  },
1418
1150
  networkStakingStepRewardsByPositionViewer_earned: {
1419
1151
  params: {
1420
- from: z24.tuple([
1152
+ from: z9.tuple([
1421
1153
  RewardsRangeOptionsZod.optional()
1422
1154
  ]),
1423
- to: z24.tuple([
1155
+ to: z9.tuple([
1424
1156
  RewardsRangeOptionsZod.optional()
1425
1157
  ])
1426
1158
  },
1427
1159
  result: {
1428
- from: z24.record(z24.number(), BigIntToJsonZod4.transform((val) => asAttoXL12(val))),
1429
- to: z24.record(z24.number(), JsonToBigIntZod4)
1160
+ from: z9.record(z9.number(), BigIntToJsonZod3.transform((val) => asAttoXL1(val))),
1161
+ to: z9.record(z9.number(), JsonToBigIntZod3)
1430
1162
  }
1431
1163
  },
1432
1164
  networkStakingStepRewardsByPositionViewer_total: {
1433
1165
  params: {
1434
- from: z24.tuple([
1166
+ from: z9.tuple([
1435
1167
  RewardsRangeOptionsZod.optional()
1436
1168
  ]),
1437
- to: z24.tuple([
1169
+ to: z9.tuple([
1438
1170
  RewardsRangeOptionsZod.optional()
1439
1171
  ])
1440
1172
  },
1441
1173
  result: {
1442
- from: z24.record(z24.number(), BigIntToJsonZod4.transform((val) => asAttoXL12(val))),
1443
- to: z24.record(z24.number(), JsonToBigIntZod4)
1174
+ from: z9.record(z9.number(), BigIntToJsonZod3.transform((val) => asAttoXL1(val))),
1175
+ to: z9.record(z9.number(), JsonToBigIntZod3)
1444
1176
  }
1445
1177
  },
1446
1178
  networkStakingStepRewardsByPositionViewer_unclaimed: {
1447
1179
  params: {
1448
- from: z24.tuple([
1180
+ from: z9.tuple([
1449
1181
  RewardsRangeOptionsZod.optional()
1450
1182
  ]),
1451
- to: z24.tuple([
1183
+ to: z9.tuple([
1452
1184
  RewardsRangeOptionsZod.optional()
1453
1185
  ])
1454
1186
  },
1455
1187
  result: {
1456
- from: z24.record(z24.number(), BigIntToJsonZod4.transform((val) => asAttoXL12(val))),
1457
- to: z24.record(z24.number(), JsonToBigIntZod4)
1188
+ from: z9.record(z9.number(), BigIntToJsonZod3.transform((val) => asAttoXL1(val))),
1189
+ to: z9.record(z9.number(), JsonToBigIntZod3)
1458
1190
  }
1459
1191
  }
1460
1192
  };
1461
1193
 
1462
1194
  // src/types/schema/RewardsByStakerViewerRpcSchemas.ts
1463
- import { AddressZod as AddressZod7, BigIntToJsonZod as BigIntToJsonZod5, JsonToBigIntZod as JsonToBigIntZod5 } from "@xylabs/sdk-js";
1464
- import z25 from "zod";
1195
+ import { AddressZod as AddressZod3, BigIntToJsonZod as BigIntToJsonZod4, JsonToBigIntZod as JsonToBigIntZod4 } from "@xylabs/sdk-js";
1196
+ import { RewardsRangeOptionsZod as RewardsRangeOptionsZod2 } from "@xyo-network/xl1-protocol-sdk";
1197
+ import z10 from "zod";
1465
1198
  var NetworkStakingStepRewardsByStakerViewerRpcSchemas = {
1466
1199
  networkStakingStepRewardsByStakerViewer_bonus: {
1467
1200
  params: {
1468
- from: z25.tuple([
1469
- RewardsRangeOptionsZod.optional()
1201
+ from: z10.tuple([
1202
+ RewardsRangeOptionsZod2.optional()
1470
1203
  ]),
1471
- to: z25.tuple([
1472
- RewardsRangeOptionsZod.optional()
1204
+ to: z10.tuple([
1205
+ RewardsRangeOptionsZod2.optional()
1473
1206
  ])
1474
1207
  },
1475
1208
  result: {
1476
- from: z25.record(AddressZod7, BigIntToJsonZod5),
1477
- to: z25.record(AddressZod7, JsonToBigIntZod5)
1209
+ from: z10.record(AddressZod3, BigIntToJsonZod4),
1210
+ to: z10.record(AddressZod3, JsonToBigIntZod4)
1478
1211
  }
1479
1212
  },
1480
1213
  networkStakingStepRewardsByStakerViewer_claimed: {
1481
1214
  params: {
1482
- from: z25.tuple([
1483
- RewardsRangeOptionsZod.optional()
1215
+ from: z10.tuple([
1216
+ RewardsRangeOptionsZod2.optional()
1484
1217
  ]),
1485
- to: z25.tuple([
1486
- RewardsRangeOptionsZod.optional()
1218
+ to: z10.tuple([
1219
+ RewardsRangeOptionsZod2.optional()
1487
1220
  ])
1488
1221
  },
1489
1222
  result: {
1490
- from: z25.record(AddressZod7, BigIntToJsonZod5),
1491
- to: z25.record(AddressZod7, JsonToBigIntZod5)
1223
+ from: z10.record(AddressZod3, BigIntToJsonZod4),
1224
+ to: z10.record(AddressZod3, JsonToBigIntZod4)
1492
1225
  }
1493
1226
  },
1494
1227
  networkStakingStepRewardsByStakerViewer_earned: {
1495
1228
  params: {
1496
- from: z25.tuple([
1497
- RewardsRangeOptionsZod.optional()
1229
+ from: z10.tuple([
1230
+ RewardsRangeOptionsZod2.optional()
1498
1231
  ]),
1499
- to: z25.tuple([
1500
- RewardsRangeOptionsZod.optional()
1232
+ to: z10.tuple([
1233
+ RewardsRangeOptionsZod2.optional()
1501
1234
  ])
1502
1235
  },
1503
1236
  result: {
1504
- from: z25.record(AddressZod7, BigIntToJsonZod5),
1505
- to: z25.record(AddressZod7, JsonToBigIntZod5)
1237
+ from: z10.record(AddressZod3, BigIntToJsonZod4),
1238
+ to: z10.record(AddressZod3, JsonToBigIntZod4)
1506
1239
  }
1507
1240
  },
1508
1241
  networkStakingStepRewardsByStakerViewer_total: {
1509
1242
  params: {
1510
- from: z25.tuple([
1511
- RewardsRangeOptionsZod.optional()
1243
+ from: z10.tuple([
1244
+ RewardsRangeOptionsZod2.optional()
1512
1245
  ]),
1513
- to: z25.tuple([
1514
- RewardsRangeOptionsZod.optional()
1246
+ to: z10.tuple([
1247
+ RewardsRangeOptionsZod2.optional()
1515
1248
  ])
1516
1249
  },
1517
1250
  result: {
1518
- from: z25.record(AddressZod7, BigIntToJsonZod5),
1519
- to: z25.record(AddressZod7, JsonToBigIntZod5)
1251
+ from: z10.record(AddressZod3, BigIntToJsonZod4),
1252
+ to: z10.record(AddressZod3, JsonToBigIntZod4)
1520
1253
  }
1521
1254
  },
1522
1255
  networkStakingStepRewardsByStakerViewer_unclaimed: {
1523
1256
  params: {
1524
- from: z25.tuple([
1525
- RewardsRangeOptionsZod.optional()
1257
+ from: z10.tuple([
1258
+ RewardsRangeOptionsZod2.optional()
1526
1259
  ]),
1527
- to: z25.tuple([
1528
- RewardsRangeOptionsZod.optional()
1260
+ to: z10.tuple([
1261
+ RewardsRangeOptionsZod2.optional()
1529
1262
  ])
1530
1263
  },
1531
1264
  result: {
1532
- from: z25.record(AddressZod7, BigIntToJsonZod5),
1533
- to: z25.record(AddressZod7, JsonToBigIntZod5)
1265
+ from: z10.record(AddressZod3, BigIntToJsonZod4),
1266
+ to: z10.record(AddressZod3, JsonToBigIntZod4)
1534
1267
  }
1535
1268
  }
1536
1269
  };
1537
1270
 
1538
1271
  // src/types/schema/RewardsByStepViewerRpcSchemas.ts
1539
- import { AddressZod as AddressZod8, BigIntToJsonZod as BigIntToJsonZod6, JsonToBigIntZod as JsonToBigIntZod6 } from "@xylabs/sdk-js";
1540
- import z26 from "zod";
1272
+ import { AddressZod as AddressZod4, BigIntToJsonZod as BigIntToJsonZod5, JsonToBigIntZod as JsonToBigIntZod5 } from "@xylabs/sdk-js";
1273
+ import { RewardsRangeOptionsZod as RewardsRangeOptionsZod3 } from "@xyo-network/xl1-protocol-sdk";
1274
+ import z11 from "zod";
1541
1275
  var NetworkStakingStepRewardsByStepViewerRpcSchemas = {
1542
1276
  networkStakingStepRewardsByStepViewer_bonus: {
1543
1277
  params: {
1544
- from: z26.tuple([
1545
- RewardsRangeOptionsZod.optional()
1278
+ from: z11.tuple([
1279
+ RewardsRangeOptionsZod3.optional()
1546
1280
  ]),
1547
- to: z26.tuple([
1548
- RewardsRangeOptionsZod.optional()
1281
+ to: z11.tuple([
1282
+ RewardsRangeOptionsZod3.optional()
1549
1283
  ])
1550
1284
  },
1551
1285
  result: {
1552
- from: z26.record(AddressZod8, BigIntToJsonZod6),
1553
- to: z26.record(AddressZod8, JsonToBigIntZod6)
1286
+ from: z11.record(AddressZod4, BigIntToJsonZod5),
1287
+ to: z11.record(AddressZod4, JsonToBigIntZod5)
1554
1288
  }
1555
1289
  },
1556
1290
  networkStakingStepRewardsByStepViewer_claimed: {
1557
1291
  params: {
1558
- from: z26.tuple([
1559
- RewardsRangeOptionsZod.optional()
1292
+ from: z11.tuple([
1293
+ RewardsRangeOptionsZod3.optional()
1560
1294
  ]),
1561
- to: z26.tuple([
1562
- RewardsRangeOptionsZod.optional()
1295
+ to: z11.tuple([
1296
+ RewardsRangeOptionsZod3.optional()
1563
1297
  ])
1564
1298
  },
1565
1299
  result: {
1566
- from: z26.record(AddressZod8, BigIntToJsonZod6),
1567
- to: z26.record(AddressZod8, JsonToBigIntZod6)
1300
+ from: z11.record(AddressZod4, BigIntToJsonZod5),
1301
+ to: z11.record(AddressZod4, JsonToBigIntZod5)
1568
1302
  }
1569
1303
  },
1570
1304
  networkStakingStepRewardsByStepViewer_earned: {
1571
1305
  params: {
1572
- from: z26.tuple([
1573
- RewardsRangeOptionsZod.optional()
1306
+ from: z11.tuple([
1307
+ RewardsRangeOptionsZod3.optional()
1574
1308
  ]),
1575
- to: z26.tuple([
1576
- RewardsRangeOptionsZod.optional()
1309
+ to: z11.tuple([
1310
+ RewardsRangeOptionsZod3.optional()
1577
1311
  ])
1578
1312
  },
1579
1313
  result: {
1580
- from: z26.record(AddressZod8, BigIntToJsonZod6),
1581
- to: z26.record(AddressZod8, JsonToBigIntZod6)
1314
+ from: z11.record(AddressZod4, BigIntToJsonZod5),
1315
+ to: z11.record(AddressZod4, JsonToBigIntZod5)
1582
1316
  }
1583
1317
  },
1584
1318
  networkStakingStepRewardsByStepViewer_total: {
1585
1319
  params: {
1586
- from: z26.tuple([
1587
- RewardsRangeOptionsZod.optional()
1320
+ from: z11.tuple([
1321
+ RewardsRangeOptionsZod3.optional()
1588
1322
  ]),
1589
- to: z26.tuple([
1590
- RewardsRangeOptionsZod.optional()
1323
+ to: z11.tuple([
1324
+ RewardsRangeOptionsZod3.optional()
1591
1325
  ])
1592
1326
  },
1593
1327
  result: {
1594
- from: z26.record(AddressZod8, BigIntToJsonZod6),
1595
- to: z26.record(AddressZod8, JsonToBigIntZod6)
1328
+ from: z11.record(AddressZod4, BigIntToJsonZod5),
1329
+ to: z11.record(AddressZod4, JsonToBigIntZod5)
1596
1330
  }
1597
1331
  },
1598
1332
  networkStakingStepRewardsByStepViewer_unclaimed: {
1599
1333
  params: {
1600
- from: z26.tuple([
1601
- RewardsRangeOptionsZod.optional()
1334
+ from: z11.tuple([
1335
+ RewardsRangeOptionsZod3.optional()
1602
1336
  ]),
1603
- to: z26.tuple([
1604
- RewardsRangeOptionsZod.optional()
1337
+ to: z11.tuple([
1338
+ RewardsRangeOptionsZod3.optional()
1605
1339
  ])
1606
1340
  },
1607
1341
  result: {
1608
- from: z26.record(AddressZod8, BigIntToJsonZod6),
1609
- to: z26.record(AddressZod8, JsonToBigIntZod6)
1342
+ from: z11.record(AddressZod4, BigIntToJsonZod5),
1343
+ to: z11.record(AddressZod4, JsonToBigIntZod5)
1610
1344
  }
1611
1345
  }
1612
1346
  };
1613
1347
 
1614
1348
  // src/types/schema/RewardsTotalViewerRpcSchemas.ts
1615
- import { BigIntToJsonZod as BigIntToJsonZod7, JsonToBigIntZod as JsonToBigIntZod7 } from "@xylabs/sdk-js";
1616
- import { asAttoXL1 as asAttoXL13 } from "@xyo-network/xl1-protocol";
1617
- import * as z27 from "zod";
1349
+ import { BigIntToJsonZod as BigIntToJsonZod6, JsonToBigIntZod as JsonToBigIntZod6 } from "@xylabs/sdk-js";
1350
+ import { asAttoXL1 as asAttoXL12 } from "@xyo-network/xl1-protocol";
1351
+ import { RewardsRangeOptionsZod as RewardsRangeOptionsZod4 } from "@xyo-network/xl1-protocol-sdk";
1352
+ import * as z12 from "zod";
1618
1353
  var NetworkStakingStepRewardsTotalViewerRpcSchemas = {
1619
1354
  networkStakingStepRewardsTotalViewer_bonus: {
1620
1355
  params: {
1621
- from: z27.tuple([
1622
- RewardsRangeOptionsZod.optional()
1356
+ from: z12.tuple([
1357
+ RewardsRangeOptionsZod4.optional()
1623
1358
  ]),
1624
- to: z27.tuple([
1625
- RewardsRangeOptionsZod.optional()
1359
+ to: z12.tuple([
1360
+ RewardsRangeOptionsZod4.optional()
1626
1361
  ])
1627
1362
  },
1628
1363
  result: {
1629
- from: JsonToBigIntZod7.transform((val) => asAttoXL13(val)),
1630
- to: BigIntToJsonZod7
1364
+ from: JsonToBigIntZod6.transform((val) => asAttoXL12(val)),
1365
+ to: BigIntToJsonZod6
1631
1366
  }
1632
1367
  },
1633
1368
  networkStakingStepRewardsTotalViewer_claimed: {
1634
1369
  params: {
1635
- from: z27.tuple([
1636
- RewardsRangeOptionsZod.optional()
1370
+ from: z12.tuple([
1371
+ RewardsRangeOptionsZod4.optional()
1637
1372
  ]),
1638
- to: z27.tuple([
1639
- RewardsRangeOptionsZod.optional()
1373
+ to: z12.tuple([
1374
+ RewardsRangeOptionsZod4.optional()
1640
1375
  ])
1641
1376
  },
1642
1377
  result: {
1643
- from: JsonToBigIntZod7.transform((val) => asAttoXL13(val)),
1644
- to: BigIntToJsonZod7
1378
+ from: JsonToBigIntZod6.transform((val) => asAttoXL12(val)),
1379
+ to: BigIntToJsonZod6
1645
1380
  }
1646
1381
  },
1647
1382
  networkStakingStepRewardsTotalViewer_earned: {
1648
1383
  params: {
1649
- from: z27.tuple([
1650
- RewardsRangeOptionsZod.optional()
1384
+ from: z12.tuple([
1385
+ RewardsRangeOptionsZod4.optional()
1651
1386
  ]),
1652
- to: z27.tuple([
1653
- RewardsRangeOptionsZod.optional()
1387
+ to: z12.tuple([
1388
+ RewardsRangeOptionsZod4.optional()
1654
1389
  ])
1655
1390
  },
1656
1391
  result: {
1657
- from: JsonToBigIntZod7.transform((val) => asAttoXL13(val)),
1658
- to: BigIntToJsonZod7
1392
+ from: JsonToBigIntZod6.transform((val) => asAttoXL12(val)),
1393
+ to: BigIntToJsonZod6
1659
1394
  }
1660
1395
  },
1661
1396
  networkStakingStepRewardsTotalViewer_total: {
1662
1397
  params: {
1663
- from: z27.tuple([
1664
- RewardsRangeOptionsZod.optional()
1398
+ from: z12.tuple([
1399
+ RewardsRangeOptionsZod4.optional()
1665
1400
  ]),
1666
- to: z27.tuple([
1667
- RewardsRangeOptionsZod.optional()
1401
+ to: z12.tuple([
1402
+ RewardsRangeOptionsZod4.optional()
1668
1403
  ])
1669
1404
  },
1670
1405
  result: {
1671
- from: JsonToBigIntZod7.transform((val) => asAttoXL13(val)),
1672
- to: BigIntToJsonZod7
1406
+ from: JsonToBigIntZod6.transform((val) => asAttoXL12(val)),
1407
+ to: BigIntToJsonZod6
1673
1408
  }
1674
1409
  },
1675
1410
  networkStakingStepRewardsTotalViewer_unclaimed: {
1676
1411
  params: {
1677
- from: z27.tuple([
1678
- RewardsRangeOptionsZod.optional()
1412
+ from: z12.tuple([
1413
+ RewardsRangeOptionsZod4.optional()
1679
1414
  ]),
1680
- to: z27.tuple([
1681
- RewardsRangeOptionsZod.optional()
1415
+ to: z12.tuple([
1416
+ RewardsRangeOptionsZod4.optional()
1682
1417
  ])
1683
1418
  },
1684
1419
  result: {
1685
- from: JsonToBigIntZod7.transform((val) => asAttoXL13(val)),
1686
- to: BigIntToJsonZod7
1420
+ from: JsonToBigIntZod6.transform((val) => asAttoXL12(val)),
1421
+ to: BigIntToJsonZod6
1687
1422
  }
1688
1423
  }
1689
1424
  };
@@ -1693,70 +1428,71 @@ var NetworkStakingStepRewardsViewerRpcSchemas = {};
1693
1428
 
1694
1429
  // src/types/schema/TimeSyncViewerRpcSchema.ts
1695
1430
  import { TimePayloadZod } from "@xyo-network/xl1-protocol";
1696
- import * as z28 from "zod";
1431
+ import { TimeDomainZod } from "@xyo-network/xl1-protocol-sdk";
1432
+ import * as z13 from "zod";
1697
1433
  var TimeSyncViewerRpcSchemas = {
1698
1434
  timeSyncViewer_convertTime: {
1699
1435
  params: {
1700
- from: z28.tuple([
1436
+ from: z13.tuple([
1701
1437
  TimeDomainZod,
1702
1438
  TimeDomainZod,
1703
- z28.number()
1439
+ z13.number()
1704
1440
  ]),
1705
- to: z28.tuple([
1441
+ to: z13.tuple([
1706
1442
  TimeDomainZod,
1707
1443
  TimeDomainZod,
1708
- z28.number()
1444
+ z13.number()
1709
1445
  ])
1710
1446
  },
1711
1447
  result: {
1712
- from: z28.number(),
1713
- to: z28.number()
1448
+ from: z13.number(),
1449
+ to: z13.number()
1714
1450
  }
1715
1451
  },
1716
1452
  timeSyncViewer_currentTime: {
1717
1453
  params: {
1718
- from: z28.tuple([
1454
+ from: z13.tuple([
1719
1455
  TimeDomainZod
1720
1456
  ]),
1721
- to: z28.tuple([
1457
+ to: z13.tuple([
1722
1458
  TimeDomainZod
1723
1459
  ])
1724
1460
  },
1725
1461
  result: {
1726
- from: z28.tuple([
1462
+ from: z13.tuple([
1727
1463
  TimeDomainZod,
1728
- z28.number()
1464
+ z13.number()
1729
1465
  ]),
1730
- to: z28.tuple([
1466
+ to: z13.tuple([
1731
1467
  TimeDomainZod,
1732
- z28.number()
1468
+ z13.number()
1733
1469
  ])
1734
1470
  }
1735
1471
  },
1736
1472
  timeSyncViewer_currentTimeAndHash: {
1737
1473
  params: {
1738
- from: z28.tuple([
1474
+ from: z13.tuple([
1739
1475
  TimeDomainZod
1740
1476
  ]),
1741
- to: z28.tuple([
1477
+ to: z13.tuple([
1742
1478
  TimeDomainZod
1743
1479
  ])
1744
1480
  },
1745
1481
  result: {
1746
- from: z28.tuple([
1747
- z28.number(),
1748
- z28.nullable(z28.string())
1482
+ from: z13.tuple([
1483
+ z13.number(),
1484
+ z13.nullable(z13.string())
1749
1485
  ]),
1750
- to: z28.tuple([
1751
- z28.number(),
1752
- z28.nullable(z28.string())
1486
+ to: z13.tuple([
1487
+ z13.number(),
1488
+ z13.nullable(z13.string())
1753
1489
  ])
1754
1490
  }
1755
1491
  },
1756
1492
  timeSyncViewer_currentTimePayload: {
1757
1493
  params: {
1758
- from: z28.tuple([]),
1759
- to: z28.tuple([])
1494
+ from: z13.tuple([]),
1495
+ to: z13.tuple([])
1760
1496
  },
1761
1497
  result: {
1762
1498
  from: TimePayloadZod,
@@ -2018,9 +1754,8 @@ var JsonRpcTimeSyncViewer = class extends JsonRpcTimeSyncViewerMethods {
2018
1754
  };
2019
1755
 
2020
1756
  // src/provider/viewer/JsonRpcXyoViewer.ts
2021
- import { isHash } from "@xylabs/sdk-js";
2022
- import { isDefined } from "@xylabs/sdk-js";
2023
- import { asAttoXL1 as asAttoXL14, asHydratedBlock } from "@xyo-network/xl1-protocol";
1757
+ import { isDefined, isHash } from "@xylabs/sdk-js";
1758
+ import { asAttoXL1 as asAttoXL13, asHydratedBlock } from "@xyo-network/xl1-protocol";
2024
1759
  var JsonRpcXyoViewer = class {
2025
1760
  static {
2026
1761
  __name(this, "JsonRpcXyoViewer");
@@ -2034,10 +1769,22 @@ var JsonRpcXyoViewer = class {
2034
1769
  get networkStakeViewer() {
2035
1770
  return this.providers?.networkStakeViewer;
2036
1771
  }
2037
- async accountBalance(address) {
2038
- return asAttoXL14(await this.transport.sendRequest("xyoViewer_accountBalance", [
1772
+ async accountBalance(address, headOrRange) {
1773
+ if (isDefined(headOrRange)) {
1774
+ if (isHash(headOrRange)) {
1775
+ return await this.transport.sendRequest("xyoViewer_accountBalance", [
1776
+ address,
1777
+ headOrRange
1778
+ ]);
1779
+ }
1780
+ return await this.transport.sendRequest("xyoViewer_accountBalance", [
1781
+ address,
1782
+ headOrRange
1783
+ ]);
1784
+ }
1785
+ return await this.transport.sendRequest("xyoViewer_accountBalance", [
2039
1786
  address
2040
- ]));
1787
+ ]);
2041
1788
  }
2042
1789
  async accountBalanceHistory(address, headOrRange) {
2043
1790
  if (isDefined(headOrRange)) {
@@ -2056,6 +1803,12 @@ var JsonRpcXyoViewer = class {
2056
1803
  address
2057
1804
  ]);
2058
1805
  }
1806
+ accountsBalances(address, headOrRange) {
1807
+ throw new Error("Method not implemented.");
1808
+ }
1809
+ accountsBalancesHistory(address, headOrRange) {
1810
+ throw new Error("Method not implemented.");
1811
+ }
2059
1812
  async blockByHash(hash) {
2060
1813
  return asHydratedBlock(await this.transport.sendRequest("xyoViewer_blockByHash", [
2061
1814
  hash
@@ -2234,7 +1987,7 @@ var JsonRpcXyoViewer = class {
2234
1987
  ]);
2235
1988
  }
2236
1989
  async transferBalance(address) {
2237
- return asAttoXL14(await this.transport.sendRequest("xyoViewer_transferBalance", [
1990
+ return asAttoXL13(await this.transport.sendRequest("xyoViewer_transferBalance", [
2238
1991
  address
2239
1992
  ]));
2240
1993
  }
@@ -2242,7 +1995,7 @@ var JsonRpcXyoViewer = class {
2242
1995
  throw new Error("Method not implemented.");
2243
1996
  }
2244
1997
  async transferPairBalance(pair) {
2245
- return asAttoXL14(await this.transport.sendRequest("xyoViewer_transferPairBalance", [
1998
+ return asAttoXL13(await this.transport.sendRequest("xyoViewer_transferPairBalance", [
2246
1999
  pair
2247
2000
  ]));
2248
2001
  }
@@ -2376,31 +2129,10 @@ var RpcXyoSigner = class {
2376
2129
  };
2377
2130
  export {
2378
2131
  AllRpcSchemas,
2379
- AnyBoundWitnessZod,
2380
- AnySignedBoundWitnessWithStorageMetaZod,
2381
- AnySignedBoundWitnessZod,
2382
- AnyUnsignedBoundWitnessZod,
2383
- ArrayBufferToJsonZod,
2384
- AttoToJsonZod,
2385
- AttoZod,
2386
- BlockBoundWitnessZod,
2387
- BlockDurationZod,
2388
- BlockEndZod,
2389
- BlockScriptsZod,
2390
- BlockStartZod,
2391
- BoundWitnessZod,
2392
- CaveatTypesZod,
2393
- CaveatsZod,
2394
- ChainZod,
2395
2132
  DataLakeViewerRpcNamespace,
2396
2133
  DataLakeViewerRpcSchemas,
2397
2134
  HttpRpcTransport,
2398
2135
  HttpRpcXyoConnection,
2399
- HydratedBlockWithStorageMetaZod,
2400
- HydratedBlockZod,
2401
- HydratedTransactionZod,
2402
- InvokerPermissionZod,
2403
- JsonObjectZod,
2404
2136
  JsonRpcDataLakeViewer,
2405
2137
  JsonRpcDataLakeViewerMethods,
2406
2138
  JsonRpcErrorCodes,
@@ -2413,12 +2145,6 @@ export {
2413
2145
  JsonRpcViewer,
2414
2146
  JsonRpcXyoRunner,
2415
2147
  JsonRpcXyoViewer,
2416
- JsonToArrayBufferZod,
2417
- JsonToAttoZod,
2418
- JsonToSignedHydratedTransactionZod,
2419
- JsonToStakeZod,
2420
- LocalSequenceFromStringZod,
2421
- LocalSequenceToStringZod,
2422
2148
  MemoryRpcTransport,
2423
2149
  NetworkStakeViewerRpcNamespace,
2424
2150
  NetworkStakeViewerRpcSchemas,
@@ -2433,40 +2159,10 @@ export {
2433
2159
  NetworkStakingStepRewardsViewerRpcNamespace,
2434
2160
  NetworkStakingStepRewardsViewerRpcSchemas,
2435
2161
  NodeXyoRunner,
2436
- PermissionRequestZod,
2437
- PermissionZod,
2438
- QualifiedSequenceFromStringZod,
2439
- QualifiedSequenceToStringZod,
2440
- RequestedPermissionZod,
2441
- RewardsRangeOptionsZod,
2442
2162
  RpcXyoPermissions,
2443
2163
  RpcXyoSigner,
2444
- SequenceFromStringZod,
2445
- SequenceToStringZod,
2446
- SignedBlockBoundWitnessZod,
2447
- SignedBoundWitnessWithStorageMetaZod,
2448
- SignedBoundWitnessZod,
2449
- SignedHydratedBlockToJsonZod,
2450
- SignedHydratedBlockWithStorageMetaZod,
2451
- SignedHydratedBlockZod,
2452
- SignedHydratedTransactionToJsonZod,
2453
- SignedHydratedTransactionZod,
2454
- SignedTransactionBoundWitnessZod,
2455
- StakeToJsonZod,
2456
- StakeZod,
2457
- TimeDomainZod,
2458
2164
  TimeSyncViewerRpcNamespace,
2459
2165
  TimeSyncViewerRpcSchemas,
2460
- TransactionBoundWitnessZod,
2461
- TransactionFeesBigIntToJsonZod,
2462
- TransactionFeesBigIntZod,
2463
- TransactionFeesHexZod,
2464
- TransactionFeesJsonToBigIntZod,
2465
- TransferPairZod,
2466
- UnsignedBoundWitnessWithStorageMetaZod,
2467
- UnsignedBoundWitnessZod,
2468
- UnsignedHydratedTransactionZod,
2469
- WithTransactionFeesZod,
2470
2166
  XyoBaseConnection,
2471
2167
  XyoPermissionsRpcSchemas,
2472
2168
  XyoRunnerRpcSchemas,