@xyo-network/xl1-rpc 1.16.22 → 1.16.24

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