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