@xyo-network/xl1-rpc 1.16.23 → 1.16.25

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 (136) hide show
  1. package/dist/neutral/engine/rpcMethodHandlersFromAccountBalanceViewer.d.ts +4 -0
  2. package/dist/neutral/engine/rpcMethodHandlersFromAccountBalanceViewer.d.ts.map +1 -0
  3. package/dist/neutral/engine/rpcMethodHandlersFromConnection.d.ts.map +1 -1
  4. package/dist/neutral/engine/rpcMethodHandlersFromNetworkStakeStepRewardsByPositionViewer.d.ts +4 -0
  5. package/dist/neutral/engine/rpcMethodHandlersFromNetworkStakeStepRewardsByPositionViewer.d.ts.map +1 -0
  6. package/dist/neutral/index.mjs +695 -532
  7. package/dist/neutral/index.mjs.map +1 -1
  8. package/dist/neutral/provider/signer/JsonRpcXyoSigner.d.ts.map +1 -1
  9. package/dist/neutral/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewer.d.ts +12 -0
  10. package/dist/neutral/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewer.d.ts.map +1 -0
  11. package/dist/neutral/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewerMethods.d.ts +12 -0
  12. package/dist/neutral/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewerMethods.d.ts.map +1 -0
  13. package/dist/neutral/provider/viewer/JsonRpcAccountBalanceViewer/index.d.ts +3 -0
  14. package/dist/neutral/provider/viewer/JsonRpcAccountBalanceViewer/index.d.ts.map +1 -0
  15. package/dist/neutral/provider/viewer/JsonRpcMempoolViewer/JsonRpcMempoolViewer.d.ts +8 -0
  16. package/dist/neutral/provider/viewer/JsonRpcMempoolViewer/JsonRpcMempoolViewer.d.ts.map +1 -0
  17. package/dist/neutral/provider/viewer/JsonRpcMempoolViewer/JsonRpcMempoolViewerMethods.d.ts +10 -0
  18. package/dist/neutral/provider/viewer/JsonRpcMempoolViewer/JsonRpcMempoolViewerMethods.d.ts.map +1 -0
  19. package/dist/neutral/provider/viewer/JsonRpcMempoolViewer/index.d.ts +3 -0
  20. package/dist/neutral/provider/viewer/JsonRpcMempoolViewer/index.d.ts.map +1 -0
  21. package/dist/neutral/provider/viewer/JsonRpcXyoViewer.d.ts +5 -5
  22. package/dist/neutral/provider/viewer/JsonRpcXyoViewer.d.ts.map +1 -1
  23. package/dist/neutral/provider/viewer/index.d.ts +1 -0
  24. package/dist/neutral/provider/viewer/index.d.ts.map +1 -1
  25. package/dist/neutral/transport/HttpRpcTransport.d.ts +3 -2
  26. package/dist/neutral/transport/HttpRpcTransport.d.ts.map +1 -1
  27. package/dist/neutral/types/AccountBalanceViewerRpc.d.ts +10 -0
  28. package/dist/neutral/types/AccountBalanceViewerRpc.d.ts.map +1 -0
  29. package/dist/neutral/types/MempoolViewerRpc.d.ts +10 -0
  30. package/dist/neutral/types/MempoolViewerRpc.d.ts.map +1 -0
  31. package/dist/neutral/types/index.d.ts +1 -0
  32. package/dist/neutral/types/index.d.ts.map +1 -1
  33. package/dist/neutral/types/schema/AccountBalanceViewerRpcSchemas.d.ts +120 -0
  34. package/dist/neutral/types/schema/AccountBalanceViewerRpcSchemas.d.ts.map +1 -0
  35. package/dist/neutral/types/schema/AllRpcSchemas.d.ts +325 -418
  36. package/dist/neutral/types/schema/AllRpcSchemas.d.ts.map +1 -1
  37. package/dist/neutral/types/schema/DataLakeViewerRpcSchema.d.ts +4 -12
  38. package/dist/neutral/types/schema/DataLakeViewerRpcSchema.d.ts.map +1 -1
  39. package/dist/neutral/types/schema/MempoolViewerRpcSchemas.d.ts +74 -0
  40. package/dist/neutral/types/schema/MempoolViewerRpcSchemas.d.ts.map +1 -0
  41. package/dist/neutral/types/schema/RewardsByPositionViewerRpcSchemas.d.ts.map +1 -1
  42. package/dist/neutral/types/schema/RewardsTotalViewerRpcSchemas.d.ts.map +1 -1
  43. package/dist/neutral/types/schema/StepViewerRpcSchemas.d.ts.map +1 -1
  44. package/dist/neutral/types/schema/TimeSyncViewerRpcSchema.d.ts.map +1 -1
  45. package/dist/neutral/types/schema/XyoRunnerRpcSchemas.d.ts +16 -30
  46. package/dist/neutral/types/schema/XyoRunnerRpcSchemas.d.ts.map +1 -1
  47. package/dist/neutral/types/schema/XyoSignerRpcSchemas.d.ts +41 -90
  48. package/dist/neutral/types/schema/XyoSignerRpcSchemas.d.ts.map +1 -1
  49. package/dist/neutral/types/schema/XyoViewerRpcSchemas.d.ts +152 -298
  50. package/dist/neutral/types/schema/XyoViewerRpcSchemas.d.ts.map +1 -1
  51. package/dist/neutral/types/schema/index.d.ts +2 -0
  52. package/dist/neutral/types/schema/index.d.ts.map +1 -1
  53. package/dist/node/engine/rpcMethodHandlersFromAccountBalanceViewer.d.ts +4 -0
  54. package/dist/node/engine/rpcMethodHandlersFromAccountBalanceViewer.d.ts.map +1 -0
  55. package/dist/node/engine/rpcMethodHandlersFromConnection.d.ts.map +1 -1
  56. package/dist/node/engine/rpcMethodHandlersFromNetworkStakeStepRewardsByPositionViewer.d.ts +4 -0
  57. package/dist/node/engine/rpcMethodHandlersFromNetworkStakeStepRewardsByPositionViewer.d.ts.map +1 -0
  58. package/dist/node/index-node.mjs +695 -532
  59. package/dist/node/index-node.mjs.map +1 -1
  60. package/dist/node/provider/signer/JsonRpcXyoSigner.d.ts.map +1 -1
  61. package/dist/node/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewer.d.ts +12 -0
  62. package/dist/node/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewer.d.ts.map +1 -0
  63. package/dist/node/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewerMethods.d.ts +12 -0
  64. package/dist/node/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewerMethods.d.ts.map +1 -0
  65. package/dist/node/provider/viewer/JsonRpcAccountBalanceViewer/index.d.ts +3 -0
  66. package/dist/node/provider/viewer/JsonRpcAccountBalanceViewer/index.d.ts.map +1 -0
  67. package/dist/node/provider/viewer/JsonRpcMempoolViewer/JsonRpcMempoolViewer.d.ts +8 -0
  68. package/dist/node/provider/viewer/JsonRpcMempoolViewer/JsonRpcMempoolViewer.d.ts.map +1 -0
  69. package/dist/node/provider/viewer/JsonRpcMempoolViewer/JsonRpcMempoolViewerMethods.d.ts +10 -0
  70. package/dist/node/provider/viewer/JsonRpcMempoolViewer/JsonRpcMempoolViewerMethods.d.ts.map +1 -0
  71. package/dist/node/provider/viewer/JsonRpcMempoolViewer/index.d.ts +3 -0
  72. package/dist/node/provider/viewer/JsonRpcMempoolViewer/index.d.ts.map +1 -0
  73. package/dist/node/provider/viewer/JsonRpcXyoViewer.d.ts +5 -5
  74. package/dist/node/provider/viewer/JsonRpcXyoViewer.d.ts.map +1 -1
  75. package/dist/node/provider/viewer/index.d.ts +1 -0
  76. package/dist/node/provider/viewer/index.d.ts.map +1 -1
  77. package/dist/node/transport/HttpRpcTransport.d.ts +3 -2
  78. package/dist/node/transport/HttpRpcTransport.d.ts.map +1 -1
  79. package/dist/node/types/AccountBalanceViewerRpc.d.ts +10 -0
  80. package/dist/node/types/AccountBalanceViewerRpc.d.ts.map +1 -0
  81. package/dist/node/types/MempoolViewerRpc.d.ts +10 -0
  82. package/dist/node/types/MempoolViewerRpc.d.ts.map +1 -0
  83. package/dist/node/types/index.d.ts +1 -0
  84. package/dist/node/types/index.d.ts.map +1 -1
  85. package/dist/node/types/schema/AccountBalanceViewerRpcSchemas.d.ts +120 -0
  86. package/dist/node/types/schema/AccountBalanceViewerRpcSchemas.d.ts.map +1 -0
  87. package/dist/node/types/schema/AllRpcSchemas.d.ts +325 -418
  88. package/dist/node/types/schema/AllRpcSchemas.d.ts.map +1 -1
  89. package/dist/node/types/schema/DataLakeViewerRpcSchema.d.ts +4 -12
  90. package/dist/node/types/schema/DataLakeViewerRpcSchema.d.ts.map +1 -1
  91. package/dist/node/types/schema/MempoolViewerRpcSchemas.d.ts +74 -0
  92. package/dist/node/types/schema/MempoolViewerRpcSchemas.d.ts.map +1 -0
  93. package/dist/node/types/schema/RewardsByPositionViewerRpcSchemas.d.ts.map +1 -1
  94. package/dist/node/types/schema/RewardsTotalViewerRpcSchemas.d.ts.map +1 -1
  95. package/dist/node/types/schema/StepViewerRpcSchemas.d.ts.map +1 -1
  96. package/dist/node/types/schema/TimeSyncViewerRpcSchema.d.ts.map +1 -1
  97. package/dist/node/types/schema/XyoRunnerRpcSchemas.d.ts +16 -30
  98. package/dist/node/types/schema/XyoRunnerRpcSchemas.d.ts.map +1 -1
  99. package/dist/node/types/schema/XyoSignerRpcSchemas.d.ts +41 -90
  100. package/dist/node/types/schema/XyoSignerRpcSchemas.d.ts.map +1 -1
  101. package/dist/node/types/schema/XyoViewerRpcSchemas.d.ts +152 -298
  102. package/dist/node/types/schema/XyoViewerRpcSchemas.d.ts.map +1 -1
  103. package/dist/node/types/schema/index.d.ts +2 -0
  104. package/dist/node/types/schema/index.d.ts.map +1 -1
  105. package/package.json +18 -19
  106. package/src/engine/rpcMethodHandlersFromAccountBalanceViewer.ts +10 -0
  107. package/src/engine/rpcMethodHandlersFromConnection.ts +8 -0
  108. package/src/engine/rpcMethodHandlersFromNetworkStakeStepRewardsByPositionViewer.ts +14 -0
  109. package/src/provider/signer/JsonRpcXyoSigner.ts +1 -2
  110. package/src/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewer.ts +23 -0
  111. package/src/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewerMethods.ts +31 -0
  112. package/src/provider/viewer/JsonRpcAccountBalanceViewer/index.ts +2 -0
  113. package/src/provider/viewer/JsonRpcMempoolViewer/JsonRpcMempoolViewer.ts +11 -0
  114. package/src/provider/viewer/JsonRpcMempoolViewer/JsonRpcMempoolViewerMethods.ts +21 -0
  115. package/src/provider/viewer/JsonRpcMempoolViewer/index.ts +2 -0
  116. package/src/provider/viewer/JsonRpcXyoViewer.ts +10 -10
  117. package/src/provider/viewer/index.ts +1 -0
  118. package/src/transport/HttpRpcTransport.ts +15 -4
  119. package/src/types/AccountBalanceViewerRpc.ts +16 -0
  120. package/src/types/MempoolViewerRpc.ts +16 -0
  121. package/src/types/index.ts +1 -0
  122. package/src/types/schema/AccountBalanceViewerRpcSchemas.ts +33 -0
  123. package/src/types/schema/AllRpcSchemas.ts +2 -0
  124. package/src/types/schema/DataLakeViewerRpcSchema.ts +1 -1
  125. package/src/types/schema/MempoolViewerRpcSchemas.ts +19 -0
  126. package/src/types/schema/RewardsByPositionViewerRpcSchemas.ts +1 -2
  127. package/src/types/schema/RewardsByStakerViewerRpcSchemas.ts +1 -1
  128. package/src/types/schema/RewardsByStepViewerRpcSchemas.ts +1 -1
  129. package/src/types/schema/RewardsTotalViewerRpcSchemas.ts +1 -2
  130. package/src/types/schema/StepViewerRpcSchemas.ts +3 -2
  131. package/src/types/schema/TimeSyncViewerRpcSchema.ts +1 -2
  132. package/src/types/schema/XyoPermissionsRpcSchemas.ts +1 -1
  133. package/src/types/schema/XyoRunnerRpcSchemas.ts +1 -1
  134. package/src/types/schema/XyoSignerRpcSchemas.ts +3 -4
  135. package/src/types/schema/XyoViewerRpcSchemas.ts +3 -4
  136. package/src/types/schema/index.ts +2 -0
@@ -4,6 +4,14 @@ var __name = (target, value) => __defProp(target, "name", { value, configurable:
4
4
  // src/engine/requestSchemas.ts
5
5
  var requestSchemas = {};
6
6
 
7
+ // src/engine/rpcMethodHandlersFromAccountBalanceViewer.ts
8
+ var rpcMethodHandlersFromAccountBalanceViewer = /* @__PURE__ */ __name((viewer) => {
9
+ return {
10
+ accountBalanceViewer_accountsBalances: /* @__PURE__ */ __name((params) => viewer.accountsBalances(params[0], params[1]), "accountBalanceViewer_accountsBalances"),
11
+ accountBalanceViewer_accountsBalancesHistory: /* @__PURE__ */ __name((params) => viewer.accountsBalancesHistory(params[0], params[1]), "accountBalanceViewer_accountsBalancesHistory")
12
+ };
13
+ }, "rpcMethodHandlersFromAccountBalanceViewer");
14
+
7
15
  // src/engine/rpcMethodHandlersFromNetworkStakingStepRewardsByPositionViewer.ts
8
16
  var rpcMethodHandlersFromNetworkStakingStepRewardsByPositionViewer = /* @__PURE__ */ __name((viewer) => {
9
17
  return {
@@ -88,6 +96,13 @@ var rpcMethodHandlersFromConnection = /* @__PURE__ */ __name((connection, networ
88
96
  ...rpcMethodHandlersFromNetworkStakingStepRewardsByPositionViewer(networkStakeViewer.stepRewards.position)
89
97
  };
90
98
  }
99
+ const accountBalanceViewer = viewer?.account?.balance;
100
+ if (accountBalanceViewer) {
101
+ result = {
102
+ ...result,
103
+ ...rpcMethodHandlersFromAccountBalanceViewer(accountBalanceViewer)
104
+ };
105
+ }
91
106
  return result;
92
107
  }, "rpcMethodHandlersFromConnection");
93
108
 
@@ -117,9 +132,13 @@ var rpcMethodHandlersFromSigner = /* @__PURE__ */ __name((signer) => {
117
132
 
118
133
  // src/transport/HttpRpcTransport.ts
119
134
  import { axiosJsonConfig } from "@xylabs/axios";
120
- import { isError, isUndefinedOrNull } from "@xylabs/sdk-js";
135
+ import { isDefined, isError, isUndefinedOrNull } from "@xylabs/sdk-js";
121
136
  import { Axios, isAxiosError } from "axios";
122
137
  import { v4 } from "uuid";
138
+ import * as z16 from "zod";
139
+
140
+ // src/types/AccountBalanceViewerRpc.ts
141
+ var AccountBalanceViewerRpcNamespace = "accountBalanceViewer";
123
142
 
124
143
  // src/types/DataLakeViewerRpc.ts
125
144
  var DataLakeViewerRpcNamespace = "dataLakeViewer";
@@ -169,88 +188,160 @@ var NetworkStakingStepRewardsTotalViewerRpcNamespace = "networkStakingStepReward
169
188
  // src/types/NetworkStakingStepRewardsViewerRpc.ts
170
189
  var NetworkStakingStepRewardsViewerRpcNamespace = "networkStakingStepRewardsViewer";
171
190
 
191
+ // src/types/schema/AccountBalanceViewerRpcSchemas.ts
192
+ import { AddressZod, BigIntToJsonZod, HashZod, JsonToBigIntZod } from "@xylabs/sdk-js";
193
+ import { XL1BlockRangeZod } from "@xyo-network/xl1-protocol";
194
+ import { AccountBalanceHistoryItemZod } from "@xyo-network/xl1-protocol-sdk";
195
+ import * as z from "zod";
196
+ var AccountBalanceViewerRpcSchemas = {
197
+ accountBalanceViewer_accountsBalances: {
198
+ params: {
199
+ to: z.union([
200
+ z.tuple([
201
+ z.array(AddressZod)
202
+ ]),
203
+ z.tuple([
204
+ z.array(AddressZod),
205
+ z.union([
206
+ XL1BlockRangeZod,
207
+ HashZod
208
+ ])
209
+ ])
210
+ ]),
211
+ from: z.union([
212
+ z.tuple([
213
+ z.array(AddressZod)
214
+ ]),
215
+ z.tuple([
216
+ z.array(AddressZod),
217
+ z.union([
218
+ XL1BlockRangeZod,
219
+ HashZod
220
+ ])
221
+ ])
222
+ ])
223
+ },
224
+ result: {
225
+ to: z.record(AddressZod, BigIntToJsonZod),
226
+ from: z.record(AddressZod, JsonToBigIntZod)
227
+ }
228
+ },
229
+ accountBalanceViewer_accountsBalancesHistory: {
230
+ params: {
231
+ to: z.union([
232
+ z.tuple([
233
+ z.array(AddressZod)
234
+ ]),
235
+ z.tuple([
236
+ z.array(AddressZod),
237
+ z.union([
238
+ XL1BlockRangeZod,
239
+ HashZod
240
+ ])
241
+ ])
242
+ ]),
243
+ from: z.union([
244
+ z.tuple([
245
+ z.array(AddressZod)
246
+ ]),
247
+ z.tuple([
248
+ z.array(AddressZod),
249
+ z.union([
250
+ XL1BlockRangeZod,
251
+ HashZod
252
+ ])
253
+ ])
254
+ ])
255
+ },
256
+ result: {
257
+ to: z.record(AddressZod, z.array(AccountBalanceHistoryItemZod)),
258
+ from: z.record(AddressZod, z.array(AccountBalanceHistoryItemZod))
259
+ }
260
+ }
261
+ };
262
+
172
263
  // src/types/schema/NetworkStakeViewerRpcSchemas.ts
173
- import { BigIntToJsonZod, JsonToBigIntZod } from "@xylabs/sdk-js";
264
+ import { BigIntToJsonZod as BigIntToJsonZod2, JsonToBigIntZod as JsonToBigIntZod2 } from "@xylabs/sdk-js";
174
265
  import { BlockNumberZod } from "@xyo-network/xl1-protocol";
175
- import * as z from "zod";
266
+ import * as z2 from "zod";
176
267
  var NetworkStakeViewerRpcSchemas = {
177
268
  networkStakeViewer_active: {
178
269
  params: {
179
- from: z.tuple([
270
+ from: z2.tuple([
180
271
  BlockNumberZod.optional()
181
272
  ]),
182
- to: z.tuple([
273
+ to: z2.tuple([
183
274
  BlockNumberZod.optional()
184
275
  ])
185
276
  },
186
277
  result: {
187
- from: z.tuple([
188
- JsonToBigIntZod,
189
- z.number()
278
+ from: z2.tuple([
279
+ JsonToBigIntZod2,
280
+ z2.number()
190
281
  ]),
191
- to: z.tuple([
192
- BigIntToJsonZod,
193
- z.number()
282
+ to: z2.tuple([
283
+ BigIntToJsonZod2,
284
+ z2.number()
194
285
  ])
195
286
  }
196
287
  }
197
288
  };
198
289
 
199
290
  // src/types/schema/XyoPermissionsRpcSchemas.ts
200
- import { InvokerPermissionZod, PermissionRequestZod, RequestedPermissionZod } from "@xyo-network/xl1-protocol-sdk";
201
- import * as z2 from "zod";
291
+ import { InvokerPermissionZod, PermissionRequestZod, RequestedPermissionZod } from "@xyo-network/xl1-protocol";
292
+ import * as z3 from "zod";
202
293
  var XyoPermissionsRpcSchemas = {
203
294
  xyoPermissions_getPermissions: {
204
295
  params: {
205
- to: z2.array(z2.any()).length(0),
206
- from: z2.array(z2.any()).length(0)
296
+ to: z3.array(z3.any()).length(0),
297
+ from: z3.array(z3.any()).length(0)
207
298
  },
208
299
  result: {
209
- to: z2.array(InvokerPermissionZod),
210
- from: z2.array(InvokerPermissionZod)
300
+ to: z3.array(InvokerPermissionZod),
301
+ from: z3.array(InvokerPermissionZod)
211
302
  }
212
303
  },
213
304
  xyoPermissions_requestPermissions: {
214
305
  params: {
215
- to: z2.tuple([
216
- z2.array(PermissionRequestZod)
306
+ to: z3.tuple([
307
+ z3.array(PermissionRequestZod)
217
308
  ]),
218
- from: z2.tuple([
219
- z2.array(PermissionRequestZod)
309
+ from: z3.tuple([
310
+ z3.array(PermissionRequestZod)
220
311
  ])
221
312
  },
222
313
  result: {
223
- to: z2.array(RequestedPermissionZod),
224
- from: z2.array(RequestedPermissionZod)
314
+ to: z3.array(RequestedPermissionZod),
315
+ from: z3.array(RequestedPermissionZod)
225
316
  }
226
317
  },
227
318
  xyoPermissions_revokePermissions: {
228
319
  params: {
229
- to: z2.tuple([
230
- z2.array(PermissionRequestZod)
320
+ to: z3.tuple([
321
+ z3.array(PermissionRequestZod)
231
322
  ]),
232
- from: z2.tuple([
233
- z2.array(PermissionRequestZod)
323
+ from: z3.tuple([
324
+ z3.array(PermissionRequestZod)
234
325
  ])
235
326
  },
236
327
  result: {
237
- to: z2.array(RequestedPermissionZod),
238
- from: z2.array(RequestedPermissionZod)
328
+ to: z3.array(RequestedPermissionZod),
329
+ from: z3.array(RequestedPermissionZod)
239
330
  }
240
331
  }
241
332
  };
242
333
 
243
334
  // src/types/schema/XyoRunnerRpcSchemas.ts
244
335
  import { HashToJsonZod, JsonToHashZod } from "@xylabs/sdk-js";
245
- import { SignedHydratedTransactionZod } from "@xyo-network/xl1-protocol-sdk";
246
- import * as z3 from "zod";
336
+ import { SignedHydratedTransactionZod } from "@xyo-network/xl1-protocol";
337
+ import * as z4 from "zod";
247
338
  var XyoRunnerRpcSchemas = {
248
339
  xyoRunner_broadcastTransaction: {
249
340
  params: {
250
- to: z3.tuple([
341
+ to: z4.tuple([
251
342
  SignedHydratedTransactionZod
252
343
  ]),
253
- from: z3.tuple([
344
+ from: z4.tuple([
254
345
  SignedHydratedTransactionZod
255
346
  ])
256
347
  },
@@ -262,555 +353,552 @@ var XyoRunnerRpcSchemas = {
262
353
  };
263
354
 
264
355
  // src/types/schema/XyoSignerRpcSchemas.ts
265
- import { AddressZod } from "@xylabs/sdk-js";
266
- import { asHydratedTransactionWithStorageMeta } from "@xyo-network/xl1-protocol";
267
- import { SignedHydratedTransactionZod as SignedHydratedTransactionZod2, UnsignedHydratedTransactionZod } from "@xyo-network/xl1-protocol-sdk";
268
- import { z as z4 } from "zod";
356
+ import { AddressZod as AddressZod2 } from "@xylabs/sdk-js";
357
+ import { SignedHydratedTransactionWithHashMetaZod, UnsignedHydratedTransactionZod } from "@xyo-network/xl1-protocol";
358
+ import { z as z5 } from "zod";
269
359
  var XyoSignerRpcSchemas = {
270
360
  xyoSigner_address: {
271
361
  params: {
272
- to: z4.array(z4.any()).length(0).optional(),
273
- from: z4.array(z4.any()).length(0).optional()
362
+ to: z5.array(z5.any()).length(0).optional(),
363
+ from: z5.array(z5.any()).length(0).optional()
274
364
  },
275
365
  result: {
276
- to: AddressZod,
277
- from: AddressZod
366
+ to: AddressZod2,
367
+ from: AddressZod2
278
368
  }
279
369
  },
280
370
  xyoSigner_signTransaction: {
281
371
  params: {
282
- to: z4.tuple([
372
+ to: z5.tuple([
283
373
  UnsignedHydratedTransactionZod
284
374
  ]),
285
- from: z4.tuple([
375
+ from: z5.tuple([
286
376
  UnsignedHydratedTransactionZod
287
377
  ])
288
378
  },
289
379
  result: {
290
- to: SignedHydratedTransactionZod2,
291
- from: SignedHydratedTransactionZod2.transform((data) => asHydratedTransactionWithStorageMeta(data, {
292
- required: true
293
- }))
380
+ to: SignedHydratedTransactionWithHashMetaZod,
381
+ from: SignedHydratedTransactionWithHashMetaZod
294
382
  }
295
383
  }
296
384
  };
297
385
 
298
386
  // src/types/schema/XyoViewerRpcSchemas.ts
299
- import { AddressZod as AddressZod2, BigIntToJsonZod as BigIntToJsonZod2, HashToJsonZod as HashToJsonZod2, HashZod, JsonToBigIntZod as JsonToBigIntZod2, JsonToHashZod as JsonToHashZod2 } from "@xylabs/sdk-js";
300
- import { BlockNumberZod as BlockNumberZod2, BlockRangeZod, StepIdentityZod, XL1BlockNumberZod, XL1BlockRangeZod } from "@xyo-network/xl1-protocol";
301
- import { AccountBalanceHistoryItemZod, JsonToStakeZod, SignedHydratedBlockZod, SignedHydratedTransactionZod as SignedHydratedTransactionZod3, StakeToJsonZod, TransferPairZod } from "@xyo-network/xl1-protocol-sdk";
302
- import * as z5 from "zod";
387
+ import { AddressZod as AddressZod3, BigIntToJsonZod as BigIntToJsonZod3, HashToJsonZod as HashToJsonZod2, HashZod as HashZod2, JsonToBigIntZod as JsonToBigIntZod3, JsonToHashZod as JsonToHashZod2 } from "@xylabs/sdk-js";
388
+ import { BlockNumberZod as BlockNumberZod2, BlockRangeZod, JsonToStakeZod, SignedHydratedBlockZod, SignedHydratedTransactionZod as SignedHydratedTransactionZod2, StakeToJsonZod, StepIdentityZod, TransferPairZod, XL1BlockNumberZod, XL1BlockRangeZod as XL1BlockRangeZod2 } from "@xyo-network/xl1-protocol";
389
+ import { AccountBalanceHistoryItemZod as AccountBalanceHistoryItemZod2 } from "@xyo-network/xl1-protocol-sdk";
390
+ import * as z6 from "zod";
303
391
  var XyoViewerRpcSchemas = {
304
392
  xyoViewer_networkStakeStepRewardClaimedByAddress: {
305
393
  params: {
306
- to: z5.tuple([
307
- AddressZod2
394
+ to: z6.tuple([
395
+ AddressZod3
308
396
  ]),
309
- from: z5.tuple([
310
- AddressZod2
397
+ from: z6.tuple([
398
+ AddressZod3
311
399
  ])
312
400
  },
313
401
  result: {
314
- to: BigIntToJsonZod2,
315
- from: JsonToBigIntZod2
402
+ to: BigIntToJsonZod3,
403
+ from: JsonToBigIntZod3
316
404
  }
317
405
  },
318
406
  xyoViewer_networkStakeStepRewardAddressReward: {
319
407
  params: {
320
- to: z5.tuple([
408
+ to: z6.tuple([
321
409
  StepIdentityZod,
322
- AddressZod2
410
+ AddressZod3
323
411
  ]),
324
- from: z5.tuple([
412
+ from: z6.tuple([
325
413
  StepIdentityZod,
326
- AddressZod2
414
+ AddressZod3
327
415
  ])
328
416
  },
329
417
  result: {
330
- to: z5.record(AddressZod2, BigIntToJsonZod2),
331
- from: z5.record(AddressZod2, JsonToBigIntZod2)
418
+ to: z6.record(AddressZod3, BigIntToJsonZod3),
419
+ from: z6.record(AddressZod3, JsonToBigIntZod3)
332
420
  }
333
421
  },
334
422
  xyoViewer_networkStakeStepRewardAddressHistory: {
335
423
  params: {
336
- to: z5.tuple([
337
- AddressZod2
424
+ to: z6.tuple([
425
+ AddressZod3
338
426
  ]),
339
- from: z5.tuple([
340
- AddressZod2
427
+ from: z6.tuple([
428
+ AddressZod3
341
429
  ])
342
430
  },
343
431
  result: {
344
- to: z5.record(AddressZod2, BigIntToJsonZod2),
345
- from: z5.record(AddressZod2, JsonToBigIntZod2)
432
+ to: z6.record(AddressZod3, BigIntToJsonZod3),
433
+ from: z6.record(AddressZod3, JsonToBigIntZod3)
346
434
  }
347
435
  },
348
436
  xyoViewer_networkStakeStepRewardAddressShare: {
349
437
  params: {
350
- to: z5.tuple([
438
+ to: z6.tuple([
351
439
  StepIdentityZod,
352
- AddressZod2
440
+ AddressZod3
353
441
  ]),
354
- from: z5.tuple([
442
+ from: z6.tuple([
355
443
  StepIdentityZod,
356
- AddressZod2
444
+ AddressZod3
357
445
  ])
358
446
  },
359
447
  result: {
360
- to: z5.tuple([
361
- BigIntToJsonZod2,
362
- BigIntToJsonZod2
448
+ to: z6.tuple([
449
+ BigIntToJsonZod3,
450
+ BigIntToJsonZod3
363
451
  ]),
364
- from: z5.tuple([
365
- JsonToBigIntZod2,
366
- JsonToBigIntZod2
452
+ from: z6.tuple([
453
+ JsonToBigIntZod3,
454
+ JsonToBigIntZod3
367
455
  ])
368
456
  }
369
457
  },
370
458
  xyoViewer_networkStakeStepRewardWeightForAddress: {
371
459
  params: {
372
- to: z5.tuple([
460
+ to: z6.tuple([
373
461
  StepIdentityZod,
374
- AddressZod2
462
+ AddressZod3
375
463
  ]),
376
- from: z5.tuple([
464
+ from: z6.tuple([
377
465
  StepIdentityZod,
378
- AddressZod2
466
+ AddressZod3
379
467
  ])
380
468
  },
381
469
  result: {
382
- to: BigIntToJsonZod2,
383
- from: JsonToBigIntZod2
470
+ to: BigIntToJsonZod3,
471
+ from: JsonToBigIntZod3
384
472
  }
385
473
  },
386
474
  xyoViewer_networkStakeStepRewardUnclaimedByAddress: {
387
475
  params: {
388
- to: z5.tuple([
389
- AddressZod2
476
+ to: z6.tuple([
477
+ AddressZod3
390
478
  ]),
391
- from: z5.tuple([
392
- AddressZod2
479
+ from: z6.tuple([
480
+ AddressZod3
393
481
  ])
394
482
  },
395
483
  result: {
396
- to: BigIntToJsonZod2,
397
- from: JsonToBigIntZod2
484
+ to: BigIntToJsonZod3,
485
+ from: JsonToBigIntZod3
398
486
  }
399
487
  },
400
488
  xyoViewer_networkStakeStepRewardPoolRewards: {
401
489
  params: {
402
- to: z5.tuple([
490
+ to: z6.tuple([
403
491
  StepIdentityZod
404
492
  ]),
405
- from: z5.tuple([
493
+ from: z6.tuple([
406
494
  StepIdentityZod
407
495
  ])
408
496
  },
409
497
  result: {
410
- to: z5.record(AddressZod2, BigIntToJsonZod2),
411
- from: z5.record(AddressZod2, JsonToBigIntZod2)
498
+ to: z6.record(AddressZod3, BigIntToJsonZod3),
499
+ from: z6.record(AddressZod3, JsonToBigIntZod3)
412
500
  }
413
501
  },
414
502
  xyoViewer_networkStakeStepRewardPositionWeight: {
415
503
  params: {
416
- to: z5.tuple([
504
+ to: z6.tuple([
417
505
  StepIdentityZod,
418
- z5.number()
506
+ z6.number()
419
507
  ]),
420
- from: z5.tuple([
508
+ from: z6.tuple([
421
509
  StepIdentityZod,
422
- z5.number()
510
+ z6.number()
423
511
  ])
424
512
  },
425
513
  result: {
426
- to: BigIntToJsonZod2,
427
- from: JsonToBigIntZod2
514
+ to: BigIntToJsonZod3,
515
+ from: JsonToBigIntZod3
428
516
  }
429
517
  },
430
518
  xyoViewer_networkStakeStepRewardPotentialPositionLoss: {
431
519
  params: {
432
- to: z5.tuple([
520
+ to: z6.tuple([
433
521
  StepIdentityZod,
434
- z5.number()
522
+ z6.number()
435
523
  ]),
436
- from: z5.tuple([
524
+ from: z6.tuple([
437
525
  StepIdentityZod,
438
- z5.number()
526
+ z6.number()
439
527
  ])
440
528
  },
441
529
  result: {
442
- to: BigIntToJsonZod2,
443
- from: JsonToBigIntZod2
530
+ to: BigIntToJsonZod3,
531
+ from: JsonToBigIntZod3
444
532
  }
445
533
  },
446
534
  xyoViewer_networkStakeStepRewardForStep: {
447
535
  params: {
448
- to: z5.tuple([
536
+ to: z6.tuple([
449
537
  StepIdentityZod
450
538
  ]),
451
- from: z5.tuple([
539
+ from: z6.tuple([
452
540
  StepIdentityZod
453
541
  ])
454
542
  },
455
543
  result: {
456
- to: BigIntToJsonZod2,
457
- from: JsonToBigIntZod2
544
+ to: BigIntToJsonZod3,
545
+ from: JsonToBigIntZod3
458
546
  }
459
547
  },
460
548
  xyoViewer_networkStakeStepRewardRandomizer: {
461
549
  params: {
462
- to: z5.tuple([
550
+ to: z6.tuple([
463
551
  StepIdentityZod
464
552
  ]),
465
- from: z5.tuple([
553
+ from: z6.tuple([
466
554
  StepIdentityZod
467
555
  ])
468
556
  },
469
557
  result: {
470
- to: BigIntToJsonZod2,
471
- from: JsonToBigIntZod2
558
+ to: BigIntToJsonZod3,
559
+ from: JsonToBigIntZod3
472
560
  }
473
561
  },
474
562
  xyoViewer_networkStakeStepRewardStakerCount: {
475
563
  params: {
476
- to: z5.tuple([
564
+ to: z6.tuple([
477
565
  StepIdentityZod
478
566
  ]),
479
- from: z5.tuple([
567
+ from: z6.tuple([
480
568
  StepIdentityZod
481
569
  ])
482
570
  },
483
571
  result: {
484
- to: z5.number(),
485
- from: z5.number()
572
+ to: z6.number(),
573
+ from: z6.number()
486
574
  }
487
575
  },
488
576
  xyoViewer_networkStakeStepRewardPoolShares: {
489
577
  params: {
490
- to: z5.tuple([
578
+ to: z6.tuple([
491
579
  StepIdentityZod
492
580
  ]),
493
- from: z5.tuple([
581
+ from: z6.tuple([
494
582
  StepIdentityZod
495
583
  ])
496
584
  },
497
585
  result: {
498
- to: z5.record(AddressZod2, BigIntToJsonZod2),
499
- from: z5.record(AddressZod2, JsonToBigIntZod2)
586
+ to: z6.record(AddressZod3, BigIntToJsonZod3),
587
+ from: z6.record(AddressZod3, JsonToBigIntZod3)
500
588
  }
501
589
  },
502
590
  xyoViewer_networkStakeStepRewardForStepForPosition: {
503
591
  params: {
504
- to: z5.tuple([
592
+ to: z6.tuple([
505
593
  StepIdentityZod,
506
- z5.number()
594
+ z6.number()
507
595
  ]),
508
- from: z5.tuple([
596
+ from: z6.tuple([
509
597
  StepIdentityZod,
510
- z5.number()
598
+ z6.number()
511
599
  ])
512
600
  },
513
601
  result: {
514
- to: z5.tuple([
515
- BigIntToJsonZod2,
516
- BigIntToJsonZod2
602
+ to: z6.tuple([
603
+ BigIntToJsonZod3,
604
+ BigIntToJsonZod3
517
605
  ]),
518
- from: z5.tuple([
519
- JsonToBigIntZod2,
520
- JsonToBigIntZod2
606
+ from: z6.tuple([
607
+ JsonToBigIntZod3,
608
+ JsonToBigIntZod3
521
609
  ])
522
610
  }
523
611
  },
524
612
  xyoViewer_networkStakeStepRewardForPosition: {
525
613
  params: {
526
- to: z5.tuple([
527
- z5.number(),
528
- z5.tuple([
529
- z5.number(),
530
- z5.number()
614
+ to: z6.tuple([
615
+ z6.number(),
616
+ z6.tuple([
617
+ z6.number(),
618
+ z6.number()
531
619
  ])
532
620
  ]),
533
- from: z5.tuple([
534
- z5.number(),
535
- z5.tuple([
536
- z5.number(),
537
- z5.number()
621
+ from: z6.tuple([
622
+ z6.number(),
623
+ z6.tuple([
624
+ z6.number(),
625
+ z6.number()
538
626
  ])
539
627
  ])
540
628
  },
541
629
  result: {
542
- to: z5.tuple([
543
- BigIntToJsonZod2,
544
- BigIntToJsonZod2
630
+ to: z6.tuple([
631
+ BigIntToJsonZod3,
632
+ BigIntToJsonZod3
545
633
  ]),
546
- from: z5.tuple([
547
- JsonToBigIntZod2,
548
- JsonToBigIntZod2
634
+ from: z6.tuple([
635
+ JsonToBigIntZod3,
636
+ JsonToBigIntZod3
549
637
  ])
550
638
  }
551
639
  },
552
640
  xyoViewer_networkStakeStepRewardsForRange: {
553
641
  params: {
554
- to: z5.tuple([
555
- z5.tuple([
556
- z5.number(),
557
- z5.number()
642
+ to: z6.tuple([
643
+ z6.tuple([
644
+ z6.number(),
645
+ z6.number()
558
646
  ])
559
647
  ]),
560
- from: z5.tuple([
561
- z5.tuple([
562
- z5.number(),
563
- z5.number()
648
+ from: z6.tuple([
649
+ z6.tuple([
650
+ z6.number(),
651
+ z6.number()
564
652
  ])
565
653
  ])
566
654
  },
567
655
  result: {
568
- to: BigIntToJsonZod2,
569
- from: JsonToBigIntZod2
656
+ to: BigIntToJsonZod3,
657
+ from: JsonToBigIntZod3
570
658
  }
571
659
  },
572
660
  xyoViewer_networkStakeStepRewardsForStepLevel: {
573
661
  params: {
574
- to: z5.tuple([
575
- z5.number(),
576
- z5.tuple([
577
- z5.number(),
578
- z5.number()
662
+ to: z6.tuple([
663
+ z6.number(),
664
+ z6.tuple([
665
+ z6.number(),
666
+ z6.number()
579
667
  ])
580
668
  ]),
581
- from: z5.tuple([
582
- z5.number(),
583
- z5.tuple([
584
- z5.number(),
585
- z5.number()
669
+ from: z6.tuple([
670
+ z6.number(),
671
+ z6.tuple([
672
+ z6.number(),
673
+ z6.number()
586
674
  ])
587
675
  ])
588
676
  },
589
677
  result: {
590
- to: BigIntToJsonZod2,
591
- from: JsonToBigIntZod2
678
+ to: BigIntToJsonZod3,
679
+ from: JsonToBigIntZod3
592
680
  }
593
681
  },
594
682
  xyoViewer_networkStakeStepRewardsForPosition: {
595
683
  params: {
596
- to: z5.tuple([
597
- z5.number(),
598
- z5.tuple([
599
- z5.number(),
600
- z5.number()
684
+ to: z6.tuple([
685
+ z6.number(),
686
+ z6.tuple([
687
+ z6.number(),
688
+ z6.number()
601
689
  ])
602
690
  ]),
603
- from: z5.tuple([
604
- z5.number(),
605
- z5.tuple([
606
- z5.number(),
607
- z5.number()
691
+ from: z6.tuple([
692
+ z6.number(),
693
+ z6.tuple([
694
+ z6.number(),
695
+ z6.number()
608
696
  ])
609
697
  ])
610
698
  },
611
699
  result: {
612
- to: z5.record(z5.string(), z5.tuple([
613
- BigIntToJsonZod2,
614
- BigIntToJsonZod2
700
+ to: z6.record(z6.string(), z6.tuple([
701
+ BigIntToJsonZod3,
702
+ BigIntToJsonZod3
615
703
  ])),
616
- from: z5.record(z5.string(), z5.tuple([
617
- JsonToBigIntZod2,
618
- JsonToBigIntZod2
704
+ from: z6.record(z6.string(), z6.tuple([
705
+ JsonToBigIntZod3,
706
+ JsonToBigIntZod3
619
707
  ]))
620
708
  }
621
709
  },
622
710
  xyoViewer_accountBalance: {
623
711
  params: {
624
- to: z5.union([
625
- z5.tuple([
626
- AddressZod2
712
+ to: z6.union([
713
+ z6.tuple([
714
+ AddressZod3
627
715
  ]),
628
- z5.tuple([
629
- AddressZod2,
630
- z5.union([
631
- XL1BlockRangeZod,
632
- HashZod
716
+ z6.tuple([
717
+ AddressZod3,
718
+ z6.union([
719
+ XL1BlockRangeZod2,
720
+ HashZod2
633
721
  ])
634
722
  ])
635
723
  ]),
636
- from: z5.union([
637
- z5.tuple([
638
- AddressZod2
724
+ from: z6.union([
725
+ z6.tuple([
726
+ AddressZod3
639
727
  ]),
640
- z5.tuple([
641
- AddressZod2,
642
- z5.union([
643
- XL1BlockRangeZod,
644
- HashZod
728
+ z6.tuple([
729
+ AddressZod3,
730
+ z6.union([
731
+ XL1BlockRangeZod2,
732
+ HashZod2
645
733
  ])
646
734
  ])
647
735
  ])
648
736
  },
649
737
  result: {
650
- to: BigIntToJsonZod2,
651
- from: JsonToBigIntZod2
738
+ to: BigIntToJsonZod3,
739
+ from: JsonToBigIntZod3
652
740
  }
653
741
  },
654
742
  xyoViewer_accountBalanceHistory: {
655
743
  params: {
656
- to: z5.union([
657
- z5.tuple([
658
- AddressZod2
744
+ to: z6.union([
745
+ z6.tuple([
746
+ AddressZod3
659
747
  ]),
660
- z5.tuple([
661
- AddressZod2,
662
- z5.union([
663
- XL1BlockRangeZod,
664
- HashZod
748
+ z6.tuple([
749
+ AddressZod3,
750
+ z6.union([
751
+ XL1BlockRangeZod2,
752
+ HashZod2
665
753
  ])
666
754
  ])
667
755
  ]),
668
- from: z5.union([
669
- z5.tuple([
670
- AddressZod2
756
+ from: z6.union([
757
+ z6.tuple([
758
+ AddressZod3
671
759
  ]),
672
- z5.tuple([
673
- AddressZod2,
674
- z5.union([
675
- XL1BlockRangeZod,
676
- HashZod
760
+ z6.tuple([
761
+ AddressZod3,
762
+ z6.union([
763
+ XL1BlockRangeZod2,
764
+ HashZod2
677
765
  ])
678
766
  ])
679
767
  ])
680
768
  },
681
769
  result: {
682
- to: z5.array(AccountBalanceHistoryItemZod),
683
- from: z5.array(AccountBalanceHistoryItemZod)
770
+ to: z6.array(AccountBalanceHistoryItemZod2),
771
+ from: z6.array(AccountBalanceHistoryItemZod2)
684
772
  }
685
773
  },
686
774
  xyoViewer_accountsBalances: {
687
775
  params: {
688
- to: z5.union([
689
- z5.tuple([
690
- z5.array(AddressZod2)
776
+ to: z6.union([
777
+ z6.tuple([
778
+ z6.array(AddressZod3)
691
779
  ]),
692
- z5.tuple([
693
- z5.array(AddressZod2),
694
- z5.union([
695
- XL1BlockRangeZod,
696
- HashZod
780
+ z6.tuple([
781
+ z6.array(AddressZod3),
782
+ z6.union([
783
+ XL1BlockRangeZod2,
784
+ HashZod2
697
785
  ])
698
786
  ])
699
787
  ]),
700
- from: z5.union([
701
- z5.tuple([
702
- z5.array(AddressZod2)
788
+ from: z6.union([
789
+ z6.tuple([
790
+ z6.array(AddressZod3)
703
791
  ]),
704
- z5.tuple([
705
- z5.array(AddressZod2),
706
- z5.union([
707
- XL1BlockRangeZod,
708
- HashZod
792
+ z6.tuple([
793
+ z6.array(AddressZod3),
794
+ z6.union([
795
+ XL1BlockRangeZod2,
796
+ HashZod2
709
797
  ])
710
798
  ])
711
799
  ])
712
800
  },
713
801
  result: {
714
- to: z5.record(AddressZod2, BigIntToJsonZod2),
715
- from: z5.record(AddressZod2, JsonToBigIntZod2)
802
+ to: z6.record(AddressZod3, BigIntToJsonZod3),
803
+ from: z6.record(AddressZod3, JsonToBigIntZod3)
716
804
  }
717
805
  },
718
806
  xyoViewer_accountsBalancesHistory: {
719
807
  params: {
720
- to: z5.union([
721
- z5.tuple([
722
- z5.array(AddressZod2)
808
+ to: z6.union([
809
+ z6.tuple([
810
+ z6.array(AddressZod3)
723
811
  ]),
724
- z5.tuple([
725
- z5.array(AddressZod2),
726
- z5.union([
727
- XL1BlockRangeZod,
728
- HashZod
812
+ z6.tuple([
813
+ z6.array(AddressZod3),
814
+ z6.union([
815
+ XL1BlockRangeZod2,
816
+ HashZod2
729
817
  ])
730
818
  ])
731
819
  ]),
732
- from: z5.union([
733
- z5.tuple([
734
- z5.array(AddressZod2)
820
+ from: z6.union([
821
+ z6.tuple([
822
+ z6.array(AddressZod3)
735
823
  ]),
736
- z5.tuple([
737
- z5.array(AddressZod2),
738
- z5.union([
739
- XL1BlockRangeZod,
740
- HashZod
824
+ z6.tuple([
825
+ z6.array(AddressZod3),
826
+ z6.union([
827
+ XL1BlockRangeZod2,
828
+ HashZod2
741
829
  ])
742
830
  ])
743
831
  ])
744
832
  },
745
833
  result: {
746
- to: z5.record(AddressZod2, AccountBalanceHistoryItemZod),
747
- from: z5.record(AddressZod2, AccountBalanceHistoryItemZod)
834
+ to: z6.record(AddressZod3, AccountBalanceHistoryItemZod2),
835
+ from: z6.record(AddressZod3, AccountBalanceHistoryItemZod2)
748
836
  }
749
837
  },
750
838
  xyoViewer_transferPairBalance: {
751
839
  params: {
752
- to: z5.tuple([
840
+ to: z6.tuple([
753
841
  TransferPairZod
754
842
  ]),
755
- from: z5.tuple([
843
+ from: z6.tuple([
756
844
  TransferPairZod
757
845
  ])
758
846
  },
759
847
  result: {
760
- to: BigIntToJsonZod2,
761
- from: JsonToBigIntZod2
848
+ to: BigIntToJsonZod3,
849
+ from: JsonToBigIntZod3
762
850
  }
763
851
  },
764
852
  xyoViewer_transferPairBalanceHistory: {
765
853
  params: {
766
- to: z5.tuple([
854
+ to: z6.tuple([
767
855
  TransferPairZod
768
856
  ]),
769
- from: z5.tuple([
857
+ from: z6.tuple([
770
858
  TransferPairZod
771
859
  ])
772
860
  },
773
861
  result: {
774
- to: z5.array(AccountBalanceHistoryItemZod),
775
- from: z5.array(AccountBalanceHistoryItemZod)
862
+ to: z6.array(AccountBalanceHistoryItemZod2),
863
+ from: z6.array(AccountBalanceHistoryItemZod2)
776
864
  }
777
865
  },
778
866
  xyoViewer_transferBalance: {
779
867
  params: {
780
- to: z5.tuple([
781
- AddressZod2
868
+ to: z6.tuple([
869
+ AddressZod3
782
870
  ]),
783
- from: z5.tuple([
784
- AddressZod2
871
+ from: z6.tuple([
872
+ AddressZod3
785
873
  ])
786
874
  },
787
875
  result: {
788
- to: BigIntToJsonZod2,
789
- from: JsonToBigIntZod2
876
+ to: BigIntToJsonZod3,
877
+ from: JsonToBigIntZod3
790
878
  }
791
879
  },
792
880
  xyoViewer_transferBalanceHistory: {
793
881
  params: {
794
- to: z5.tuple([
795
- AddressZod2,
882
+ to: z6.tuple([
883
+ AddressZod3,
796
884
  BlockRangeZod.optional()
797
885
  ]),
798
- from: z5.tuple([
799
- AddressZod2,
886
+ from: z6.tuple([
887
+ AddressZod3,
800
888
  BlockRangeZod.optional()
801
889
  ])
802
890
  },
803
891
  result: {
804
- to: z5.array(AccountBalanceHistoryItemZod),
805
- from: z5.array(AccountBalanceHistoryItemZod)
892
+ to: z6.array(AccountBalanceHistoryItemZod2),
893
+ from: z6.array(AccountBalanceHistoryItemZod2)
806
894
  }
807
895
  },
808
896
  xyoViewer_blockByHash: {
809
897
  params: {
810
- to: z5.tuple([
898
+ to: z6.tuple([
811
899
  HashToJsonZod2
812
900
  ]),
813
- from: z5.tuple([
901
+ from: z6.tuple([
814
902
  JsonToHashZod2
815
903
  ])
816
904
  },
@@ -821,11 +909,11 @@ var XyoViewerRpcSchemas = {
821
909
  },
822
910
  xyoViewer_blockByNumber: {
823
911
  params: {
824
- to: z5.tuple([
825
- z5.number()
912
+ to: z6.tuple([
913
+ z6.number()
826
914
  ]),
827
- from: z5.tuple([
828
- z5.number()
915
+ from: z6.tuple([
916
+ z6.number()
829
917
  ])
830
918
  },
831
919
  result: {
@@ -835,48 +923,48 @@ var XyoViewerRpcSchemas = {
835
923
  },
836
924
  xyoViewer_blocksByHash: {
837
925
  params: {
838
- to: z5.tuple([
839
- HashZod,
840
- z5.number().optional()
926
+ to: z6.tuple([
927
+ HashZod2,
928
+ z6.number().optional()
841
929
  ]),
842
- from: z5.tuple([
843
- HashZod,
844
- z5.number().optional()
930
+ from: z6.tuple([
931
+ HashZod2,
932
+ z6.number().optional()
845
933
  ])
846
934
  },
847
935
  result: {
848
- to: z5.array(SignedHydratedBlockZod),
849
- from: z5.array(SignedHydratedBlockZod)
936
+ to: z6.array(SignedHydratedBlockZod),
937
+ from: z6.array(SignedHydratedBlockZod)
850
938
  }
851
939
  },
852
940
  xyoViewer_chainId: {
853
941
  params: {
854
- to: z5.array(z5.any()).length(0).optional(),
855
- from: z5.array(z5.any()).length(0).optional()
942
+ to: z6.array(z6.any()).length(0).optional(),
943
+ from: z6.array(z6.any()).length(0).optional()
856
944
  },
857
945
  result: {
858
- to: AddressZod2,
859
- from: AddressZod2
946
+ to: AddressZod3,
947
+ from: AddressZod3
860
948
  }
861
949
  },
862
950
  xyoViewer_chainIdAtBlock: {
863
951
  params: {
864
- to: z5.tuple([
952
+ to: z6.tuple([
865
953
  BlockNumberZod2
866
954
  ]),
867
- from: z5.tuple([
955
+ from: z6.tuple([
868
956
  BlockNumberZod2
869
957
  ])
870
958
  },
871
959
  result: {
872
- to: AddressZod2,
873
- from: AddressZod2
960
+ to: AddressZod3,
961
+ from: AddressZod3
874
962
  }
875
963
  },
876
964
  xyoViewer_currentBlock: {
877
965
  params: {
878
- to: z5.array(z5.any()).length(0).optional(),
879
- from: z5.array(z5.any()).length(0).optional()
966
+ to: z6.array(z6.any()).length(0).optional(),
967
+ from: z6.array(z6.any()).length(0).optional()
880
968
  },
881
969
  result: {
882
970
  to: SignedHydratedBlockZod,
@@ -885,18 +973,18 @@ var XyoViewerRpcSchemas = {
885
973
  },
886
974
  xyoViewer_currentBlockHash: {
887
975
  params: {
888
- to: z5.array(z5.any()).length(0).optional(),
889
- from: z5.array(z5.any()).length(0).optional()
976
+ to: z6.array(z6.any()).length(0).optional(),
977
+ from: z6.array(z6.any()).length(0).optional()
890
978
  },
891
979
  result: {
892
- to: HashZod,
893
- from: HashZod
980
+ to: HashZod2,
981
+ from: HashZod2
894
982
  }
895
983
  },
896
984
  xyoViewer_currentBlockNumber: {
897
985
  params: {
898
- to: z5.array(z5.any()).length(0).optional(),
899
- from: z5.array(z5.any()).length(0).optional()
986
+ to: z6.array(z6.any()).length(0).optional(),
987
+ from: z6.array(z6.any()).length(0).optional()
900
988
  },
901
989
  result: {
902
990
  to: XL1BlockNumberZod,
@@ -905,23 +993,23 @@ var XyoViewerRpcSchemas = {
905
993
  },
906
994
  xyoViewer_forkHistory: {
907
995
  params: {
908
- to: z5.array(z5.any()).length(0).optional(),
909
- from: z5.array(z5.any()).length(0).optional()
996
+ to: z6.array(z6.any()).length(0).optional(),
997
+ from: z6.array(z6.any()).length(0).optional()
910
998
  },
911
999
  result: {
912
- to: z5.record(z5.number(), AddressZod2),
913
- from: z5.record(z5.number(), AddressZod2)
1000
+ to: z6.record(z6.number(), AddressZod3),
1001
+ from: z6.record(z6.number(), AddressZod3)
914
1002
  }
915
1003
  },
916
1004
  xyoViewer_stakeByStaker: {
917
1005
  params: {
918
- to: z5.tuple([
919
- AddressZod2,
920
- z5.number()
1006
+ to: z6.tuple([
1007
+ AddressZod3,
1008
+ z6.number()
921
1009
  ]),
922
- from: z5.tuple([
923
- AddressZod2,
924
- z5.number()
1010
+ from: z6.tuple([
1011
+ AddressZod3,
1012
+ z6.number()
925
1013
  ])
926
1014
  },
927
1015
  result: {
@@ -931,11 +1019,11 @@ var XyoViewerRpcSchemas = {
931
1019
  },
932
1020
  xyoViewer_stakeById: {
933
1021
  params: {
934
- to: z5.tuple([
935
- z5.number()
1022
+ to: z6.tuple([
1023
+ z6.number()
936
1024
  ]),
937
- from: z5.tuple([
938
- z5.number()
1025
+ from: z6.tuple([
1026
+ z6.number()
939
1027
  ])
940
1028
  },
941
1029
  result: {
@@ -945,82 +1033,83 @@ var XyoViewerRpcSchemas = {
945
1033
  },
946
1034
  xyoViewer_stakesByStaker: {
947
1035
  params: {
948
- to: z5.tuple([
949
- AddressZod2
1036
+ to: z6.tuple([
1037
+ AddressZod3
950
1038
  ]),
951
- from: z5.tuple([
952
- AddressZod2
1039
+ from: z6.tuple([
1040
+ AddressZod3
953
1041
  ])
954
1042
  },
955
1043
  result: {
956
- to: z5.array(StakeToJsonZod),
957
- from: z5.array(JsonToStakeZod)
1044
+ to: z6.array(StakeToJsonZod),
1045
+ from: z6.array(JsonToStakeZod)
958
1046
  }
959
1047
  },
960
1048
  xyoViewer_stakesByStaked: {
961
1049
  params: {
962
- to: z5.tuple([
963
- AddressZod2
1050
+ to: z6.tuple([
1051
+ AddressZod3
964
1052
  ]),
965
- from: z5.tuple([
966
- AddressZod2
1053
+ from: z6.tuple([
1054
+ AddressZod3
967
1055
  ])
968
1056
  },
969
1057
  result: {
970
- to: z5.array(StakeToJsonZod),
971
- from: z5.array(JsonToStakeZod)
1058
+ to: z6.array(StakeToJsonZod),
1059
+ from: z6.array(JsonToStakeZod)
972
1060
  }
973
1061
  },
974
1062
  xyoViewer_transactionByBlockHashAndIndex: {
975
1063
  params: {
976
- to: z5.tuple([
977
- HashZod,
978
- z5.number()
1064
+ to: z6.tuple([
1065
+ HashZod2,
1066
+ z6.number()
979
1067
  ]),
980
- from: z5.tuple([
981
- HashZod,
982
- z5.number()
1068
+ from: z6.tuple([
1069
+ HashZod2,
1070
+ z6.number()
983
1071
  ])
984
1072
  },
985
1073
  result: {
986
- to: SignedHydratedTransactionZod3.nullable(),
987
- from: SignedHydratedTransactionZod3.nullable()
1074
+ to: SignedHydratedTransactionZod2.nullable(),
1075
+ from: SignedHydratedTransactionZod2.nullable()
988
1076
  }
989
1077
  },
990
1078
  xyoViewer_transactionByBlockNumberAndIndex: {
991
1079
  params: {
992
- to: z5.tuple([
993
- z5.number(),
994
- z5.number()
1080
+ to: z6.tuple([
1081
+ z6.number(),
1082
+ z6.number()
995
1083
  ]),
996
- from: z5.tuple([
997
- z5.number(),
998
- z5.number()
1084
+ from: z6.tuple([
1085
+ z6.number(),
1086
+ z6.number()
999
1087
  ])
1000
1088
  },
1001
1089
  result: {
1002
- to: SignedHydratedTransactionZod3.nullable(),
1003
- from: SignedHydratedTransactionZod3.nullable()
1090
+ to: SignedHydratedTransactionZod2.nullable(),
1091
+ from: SignedHydratedTransactionZod2.nullable()
1004
1092
  }
1005
1093
  },
1006
1094
  xyoViewer_transactionByHash: {
1007
1095
  params: {
1008
- to: z5.tuple([
1009
- HashZod
1096
+ to: z6.tuple([
1097
+ HashZod2
1010
1098
  ]),
1011
- from: z5.tuple([
1012
- HashZod
1099
+ from: z6.tuple([
1100
+ HashZod2
1013
1101
  ])
1014
1102
  },
1015
1103
  result: {
1016
- to: SignedHydratedTransactionZod3.nullable(),
1017
- from: SignedHydratedTransactionZod3.nullable()
1104
+ to: SignedHydratedTransactionZod2.nullable(),
1105
+ from: SignedHydratedTransactionZod2.nullable()
1018
1106
  }
1019
1107
  }
1020
1108
  };
1021
1109
 
1022
1110
  // src/types/schema/AllRpcSchemas.ts
1023
1111
  var AllRpcSchemas = {
1112
+ ...AccountBalanceViewerRpcSchemas,
1024
1113
  ...XyoRunnerRpcSchemas,
1025
1114
  ...XyoSignerRpcSchemas,
1026
1115
  ...XyoViewerRpcSchemas,
@@ -1029,49 +1118,49 @@ var AllRpcSchemas = {
1029
1118
  };
1030
1119
 
1031
1120
  // src/types/schema/createRequestSchema.ts
1032
- import * as z6 from "zod";
1033
- var createRequestSchema = /* @__PURE__ */ __name((methodName, paramsSchema = z6.undefined()) => z6.object({
1034
- id: z6.union([
1035
- z6.string(),
1036
- z6.number()
1037
- ]),
1038
- jsonrpc: z6.literal(jsonrpc),
1039
- method: z6.literal(methodName),
1040
- params: paramsSchema
1041
- }), "createRequestSchema");
1042
-
1043
- // src/types/schema/createResponseSchema.ts
1044
1121
  import * as z7 from "zod";
1045
- var createResponseSchema = /* @__PURE__ */ __name((resultSchema = z7.undefined()) => z7.object({
1122
+ var createRequestSchema = /* @__PURE__ */ __name((methodName, paramsSchema = z7.undefined()) => z7.object({
1046
1123
  id: z7.union([
1047
1124
  z7.string(),
1048
1125
  z7.number()
1049
1126
  ]),
1050
1127
  jsonrpc: z7.literal(jsonrpc),
1128
+ method: z7.literal(methodName),
1129
+ params: paramsSchema
1130
+ }), "createRequestSchema");
1131
+
1132
+ // src/types/schema/createResponseSchema.ts
1133
+ import * as z8 from "zod";
1134
+ var createResponseSchema = /* @__PURE__ */ __name((resultSchema = z8.undefined()) => z8.object({
1135
+ id: z8.union([
1136
+ z8.string(),
1137
+ z8.number()
1138
+ ]),
1139
+ jsonrpc: z8.literal(jsonrpc),
1051
1140
  result: resultSchema
1052
1141
  }), "createResponseSchema");
1053
1142
 
1054
1143
  // src/types/schema/DataLakeViewerRpcSchema.ts
1055
- import { HashZod as HashZod2 } from "@xylabs/sdk-js";
1144
+ import { HashZod as HashZod3 } from "@xylabs/sdk-js";
1056
1145
  import { PayloadZod } from "@xyo-network/payload-model";
1057
- import { ArrayBufferToJsonZod, JsonToArrayBufferZod } from "@xyo-network/xl1-protocol-sdk";
1058
- import * as z8 from "zod";
1146
+ import { ArrayBufferToJsonZod, JsonToArrayBufferZod } from "@xyo-network/xl1-protocol";
1147
+ import * as z9 from "zod";
1059
1148
  var DataLakeViewerRpcSchemas = {
1060
1149
  dataLakeViewer_get: {
1061
1150
  params: {
1062
- to: z8.tuple([
1063
- HashZod2
1151
+ to: z9.tuple([
1152
+ HashZod3
1064
1153
  ]),
1065
- from: z8.tuple([
1066
- HashZod2
1154
+ from: z9.tuple([
1155
+ HashZod3
1067
1156
  ])
1068
1157
  },
1069
1158
  result: {
1070
- to: z8.union([
1159
+ to: z9.union([
1071
1160
  PayloadZod,
1072
1161
  ArrayBufferToJsonZod
1073
1162
  ]).optional(),
1074
- from: z8.union([
1163
+ from: z9.union([
1075
1164
  PayloadZod,
1076
1165
  JsonToArrayBufferZod
1077
1166
  ]).optional()
@@ -1079,19 +1168,19 @@ var DataLakeViewerRpcSchemas = {
1079
1168
  },
1080
1169
  dataLakeViewer_getMany: {
1081
1170
  params: {
1082
- to: z8.tuple([
1083
- z8.array(HashZod2)
1171
+ to: z9.tuple([
1172
+ z9.array(HashZod3)
1084
1173
  ]),
1085
- from: z8.tuple([
1086
- z8.array(HashZod2)
1174
+ from: z9.tuple([
1175
+ z9.array(HashZod3)
1087
1176
  ])
1088
1177
  },
1089
1178
  result: {
1090
- to: z8.array(z8.union([
1179
+ to: z9.array(z9.union([
1091
1180
  PayloadZod,
1092
1181
  ArrayBufferToJsonZod
1093
1182
  ])),
1094
- from: z8.array(z8.union([
1183
+ from: z9.array(z9.union([
1095
1184
  PayloadZod,
1096
1185
  JsonToArrayBufferZod
1097
1186
  ]))
@@ -1099,326 +1188,345 @@ var DataLakeViewerRpcSchemas = {
1099
1188
  },
1100
1189
  dataLakeViewer_has: {
1101
1190
  params: {
1102
- to: z8.tuple([
1103
- HashZod2
1191
+ to: z9.tuple([
1192
+ HashZod3
1104
1193
  ]),
1105
- from: z8.tuple([
1106
- HashZod2
1194
+ from: z9.tuple([
1195
+ HashZod3
1107
1196
  ])
1108
1197
  },
1109
1198
  result: {
1110
- to: z8.boolean(),
1111
- from: z8.boolean()
1199
+ to: z9.boolean(),
1200
+ from: z9.boolean()
1201
+ }
1202
+ }
1203
+ };
1204
+
1205
+ // src/types/schema/MempoolViewerRpcSchemas.ts
1206
+ import { SignedHydratedTransactionWithHashMetaZod as SignedHydratedTransactionWithHashMetaZod2 } from "@xyo-network/xl1-protocol";
1207
+ import { PendingTransactionsOptionsZod } from "@xyo-network/xl1-protocol-sdk";
1208
+ import * as z10 from "zod";
1209
+ var MempoolViewerRpcSchemas = {
1210
+ mempoolViewer_pendingTransactions: {
1211
+ params: {
1212
+ to: z10.tuple([
1213
+ PendingTransactionsOptionsZod.optional()
1214
+ ]),
1215
+ from: z10.tuple([
1216
+ PendingTransactionsOptionsZod.optional()
1217
+ ])
1218
+ },
1219
+ result: {
1220
+ to: z10.array(SignedHydratedTransactionWithHashMetaZod2),
1221
+ from: z10.array(SignedHydratedTransactionWithHashMetaZod2)
1112
1222
  }
1113
1223
  }
1114
1224
  };
1115
1225
 
1116
1226
  // src/types/schema/RewardsByPositionViewerRpcSchemas.ts
1117
- import { BigIntToJsonZod as BigIntToJsonZod3, JsonToBigIntZod as JsonToBigIntZod3 } from "@xylabs/sdk-js";
1118
- import { asAttoXL1 } from "@xyo-network/xl1-protocol";
1119
- import { RewardsRangeOptionsZod } from "@xyo-network/xl1-protocol-sdk";
1120
- import z9 from "zod";
1227
+ import { BigIntToJsonZod as BigIntToJsonZod4, JsonToBigIntZod as JsonToBigIntZod4 } from "@xylabs/sdk-js";
1228
+ import { asAttoXL1, RewardsRangeOptionsZod } from "@xyo-network/xl1-protocol";
1229
+ import z11 from "zod";
1121
1230
  var NetworkStakingStepRewardsByPositionViewerRpcSchemas = {
1122
1231
  networkStakingStepRewardsByPositionViewer_bonus: {
1123
1232
  params: {
1124
- from: z9.tuple([
1233
+ from: z11.tuple([
1125
1234
  RewardsRangeOptionsZod.optional()
1126
1235
  ]),
1127
- to: z9.tuple([
1236
+ to: z11.tuple([
1128
1237
  RewardsRangeOptionsZod.optional()
1129
1238
  ])
1130
1239
  },
1131
1240
  result: {
1132
- from: z9.record(z9.number(), JsonToBigIntZod3.transform((val) => asAttoXL1(val))),
1133
- to: z9.record(z9.number(), BigIntToJsonZod3)
1241
+ from: z11.record(z11.number(), JsonToBigIntZod4.transform((val) => asAttoXL1(val))),
1242
+ to: z11.record(z11.number(), BigIntToJsonZod4)
1134
1243
  }
1135
1244
  },
1136
1245
  networkStakingStepRewardsByPositionViewer_claimed: {
1137
1246
  params: {
1138
- from: z9.tuple([
1247
+ from: z11.tuple([
1139
1248
  RewardsRangeOptionsZod.optional()
1140
1249
  ]),
1141
- to: z9.tuple([
1250
+ to: z11.tuple([
1142
1251
  RewardsRangeOptionsZod.optional()
1143
1252
  ])
1144
1253
  },
1145
1254
  result: {
1146
- from: z9.record(z9.number(), BigIntToJsonZod3.transform((val) => asAttoXL1(val))),
1147
- to: z9.record(z9.number(), JsonToBigIntZod3)
1255
+ from: z11.record(z11.number(), BigIntToJsonZod4.transform((val) => asAttoXL1(val))),
1256
+ to: z11.record(z11.number(), JsonToBigIntZod4)
1148
1257
  }
1149
1258
  },
1150
1259
  networkStakingStepRewardsByPositionViewer_earned: {
1151
1260
  params: {
1152
- from: z9.tuple([
1261
+ from: z11.tuple([
1153
1262
  RewardsRangeOptionsZod.optional()
1154
1263
  ]),
1155
- to: z9.tuple([
1264
+ to: z11.tuple([
1156
1265
  RewardsRangeOptionsZod.optional()
1157
1266
  ])
1158
1267
  },
1159
1268
  result: {
1160
- from: z9.record(z9.number(), BigIntToJsonZod3.transform((val) => asAttoXL1(val))),
1161
- to: z9.record(z9.number(), JsonToBigIntZod3)
1269
+ from: z11.record(z11.number(), BigIntToJsonZod4.transform((val) => asAttoXL1(val))),
1270
+ to: z11.record(z11.number(), JsonToBigIntZod4)
1162
1271
  }
1163
1272
  },
1164
1273
  networkStakingStepRewardsByPositionViewer_total: {
1165
1274
  params: {
1166
- from: z9.tuple([
1275
+ from: z11.tuple([
1167
1276
  RewardsRangeOptionsZod.optional()
1168
1277
  ]),
1169
- to: z9.tuple([
1278
+ to: z11.tuple([
1170
1279
  RewardsRangeOptionsZod.optional()
1171
1280
  ])
1172
1281
  },
1173
1282
  result: {
1174
- from: z9.record(z9.number(), BigIntToJsonZod3.transform((val) => asAttoXL1(val))),
1175
- to: z9.record(z9.number(), JsonToBigIntZod3)
1283
+ from: z11.record(z11.number(), BigIntToJsonZod4.transform((val) => asAttoXL1(val))),
1284
+ to: z11.record(z11.number(), JsonToBigIntZod4)
1176
1285
  }
1177
1286
  },
1178
1287
  networkStakingStepRewardsByPositionViewer_unclaimed: {
1179
1288
  params: {
1180
- from: z9.tuple([
1289
+ from: z11.tuple([
1181
1290
  RewardsRangeOptionsZod.optional()
1182
1291
  ]),
1183
- to: z9.tuple([
1292
+ to: z11.tuple([
1184
1293
  RewardsRangeOptionsZod.optional()
1185
1294
  ])
1186
1295
  },
1187
1296
  result: {
1188
- from: z9.record(z9.number(), BigIntToJsonZod3.transform((val) => asAttoXL1(val))),
1189
- to: z9.record(z9.number(), JsonToBigIntZod3)
1297
+ from: z11.record(z11.number(), BigIntToJsonZod4.transform((val) => asAttoXL1(val))),
1298
+ to: z11.record(z11.number(), JsonToBigIntZod4)
1190
1299
  }
1191
1300
  }
1192
1301
  };
1193
1302
 
1194
1303
  // src/types/schema/RewardsByStakerViewerRpcSchemas.ts
1195
- import { AddressZod as AddressZod3, BigIntToJsonZod as BigIntToJsonZod4, JsonToBigIntZod as JsonToBigIntZod4 } from "@xylabs/sdk-js";
1196
- import { RewardsRangeOptionsZod as RewardsRangeOptionsZod2 } from "@xyo-network/xl1-protocol-sdk";
1197
- import z10 from "zod";
1304
+ import { AddressZod as AddressZod4, BigIntToJsonZod as BigIntToJsonZod5, JsonToBigIntZod as JsonToBigIntZod5 } from "@xylabs/sdk-js";
1305
+ import { RewardsRangeOptionsZod as RewardsRangeOptionsZod2 } from "@xyo-network/xl1-protocol";
1306
+ import z12 from "zod";
1198
1307
  var NetworkStakingStepRewardsByStakerViewerRpcSchemas = {
1199
1308
  networkStakingStepRewardsByStakerViewer_bonus: {
1200
1309
  params: {
1201
- from: z10.tuple([
1310
+ from: z12.tuple([
1202
1311
  RewardsRangeOptionsZod2.optional()
1203
1312
  ]),
1204
- to: z10.tuple([
1313
+ to: z12.tuple([
1205
1314
  RewardsRangeOptionsZod2.optional()
1206
1315
  ])
1207
1316
  },
1208
1317
  result: {
1209
- from: z10.record(AddressZod3, BigIntToJsonZod4),
1210
- to: z10.record(AddressZod3, JsonToBigIntZod4)
1318
+ from: z12.record(AddressZod4, BigIntToJsonZod5),
1319
+ to: z12.record(AddressZod4, JsonToBigIntZod5)
1211
1320
  }
1212
1321
  },
1213
1322
  networkStakingStepRewardsByStakerViewer_claimed: {
1214
1323
  params: {
1215
- from: z10.tuple([
1324
+ from: z12.tuple([
1216
1325
  RewardsRangeOptionsZod2.optional()
1217
1326
  ]),
1218
- to: z10.tuple([
1327
+ to: z12.tuple([
1219
1328
  RewardsRangeOptionsZod2.optional()
1220
1329
  ])
1221
1330
  },
1222
1331
  result: {
1223
- from: z10.record(AddressZod3, BigIntToJsonZod4),
1224
- to: z10.record(AddressZod3, JsonToBigIntZod4)
1332
+ from: z12.record(AddressZod4, BigIntToJsonZod5),
1333
+ to: z12.record(AddressZod4, JsonToBigIntZod5)
1225
1334
  }
1226
1335
  },
1227
1336
  networkStakingStepRewardsByStakerViewer_earned: {
1228
1337
  params: {
1229
- from: z10.tuple([
1338
+ from: z12.tuple([
1230
1339
  RewardsRangeOptionsZod2.optional()
1231
1340
  ]),
1232
- to: z10.tuple([
1341
+ to: z12.tuple([
1233
1342
  RewardsRangeOptionsZod2.optional()
1234
1343
  ])
1235
1344
  },
1236
1345
  result: {
1237
- from: z10.record(AddressZod3, BigIntToJsonZod4),
1238
- to: z10.record(AddressZod3, JsonToBigIntZod4)
1346
+ from: z12.record(AddressZod4, BigIntToJsonZod5),
1347
+ to: z12.record(AddressZod4, JsonToBigIntZod5)
1239
1348
  }
1240
1349
  },
1241
1350
  networkStakingStepRewardsByStakerViewer_total: {
1242
1351
  params: {
1243
- from: z10.tuple([
1352
+ from: z12.tuple([
1244
1353
  RewardsRangeOptionsZod2.optional()
1245
1354
  ]),
1246
- to: z10.tuple([
1355
+ to: z12.tuple([
1247
1356
  RewardsRangeOptionsZod2.optional()
1248
1357
  ])
1249
1358
  },
1250
1359
  result: {
1251
- from: z10.record(AddressZod3, BigIntToJsonZod4),
1252
- to: z10.record(AddressZod3, JsonToBigIntZod4)
1360
+ from: z12.record(AddressZod4, BigIntToJsonZod5),
1361
+ to: z12.record(AddressZod4, JsonToBigIntZod5)
1253
1362
  }
1254
1363
  },
1255
1364
  networkStakingStepRewardsByStakerViewer_unclaimed: {
1256
1365
  params: {
1257
- from: z10.tuple([
1366
+ from: z12.tuple([
1258
1367
  RewardsRangeOptionsZod2.optional()
1259
1368
  ]),
1260
- to: z10.tuple([
1369
+ to: z12.tuple([
1261
1370
  RewardsRangeOptionsZod2.optional()
1262
1371
  ])
1263
1372
  },
1264
1373
  result: {
1265
- from: z10.record(AddressZod3, BigIntToJsonZod4),
1266
- to: z10.record(AddressZod3, JsonToBigIntZod4)
1374
+ from: z12.record(AddressZod4, BigIntToJsonZod5),
1375
+ to: z12.record(AddressZod4, JsonToBigIntZod5)
1267
1376
  }
1268
1377
  }
1269
1378
  };
1270
1379
 
1271
1380
  // src/types/schema/RewardsByStepViewerRpcSchemas.ts
1272
- import { AddressZod as AddressZod4, BigIntToJsonZod as BigIntToJsonZod5, JsonToBigIntZod as JsonToBigIntZod5 } from "@xylabs/sdk-js";
1273
- import { RewardsRangeOptionsZod as RewardsRangeOptionsZod3 } from "@xyo-network/xl1-protocol-sdk";
1274
- import z11 from "zod";
1381
+ import { AddressZod as AddressZod5, BigIntToJsonZod as BigIntToJsonZod6, JsonToBigIntZod as JsonToBigIntZod6 } from "@xylabs/sdk-js";
1382
+ import { RewardsRangeOptionsZod as RewardsRangeOptionsZod3 } from "@xyo-network/xl1-protocol";
1383
+ import z13 from "zod";
1275
1384
  var NetworkStakingStepRewardsByStepViewerRpcSchemas = {
1276
1385
  networkStakingStepRewardsByStepViewer_bonus: {
1277
1386
  params: {
1278
- from: z11.tuple([
1387
+ from: z13.tuple([
1279
1388
  RewardsRangeOptionsZod3.optional()
1280
1389
  ]),
1281
- to: z11.tuple([
1390
+ to: z13.tuple([
1282
1391
  RewardsRangeOptionsZod3.optional()
1283
1392
  ])
1284
1393
  },
1285
1394
  result: {
1286
- from: z11.record(AddressZod4, BigIntToJsonZod5),
1287
- to: z11.record(AddressZod4, JsonToBigIntZod5)
1395
+ from: z13.record(AddressZod5, BigIntToJsonZod6),
1396
+ to: z13.record(AddressZod5, JsonToBigIntZod6)
1288
1397
  }
1289
1398
  },
1290
1399
  networkStakingStepRewardsByStepViewer_claimed: {
1291
1400
  params: {
1292
- from: z11.tuple([
1401
+ from: z13.tuple([
1293
1402
  RewardsRangeOptionsZod3.optional()
1294
1403
  ]),
1295
- to: z11.tuple([
1404
+ to: z13.tuple([
1296
1405
  RewardsRangeOptionsZod3.optional()
1297
1406
  ])
1298
1407
  },
1299
1408
  result: {
1300
- from: z11.record(AddressZod4, BigIntToJsonZod5),
1301
- to: z11.record(AddressZod4, JsonToBigIntZod5)
1409
+ from: z13.record(AddressZod5, BigIntToJsonZod6),
1410
+ to: z13.record(AddressZod5, JsonToBigIntZod6)
1302
1411
  }
1303
1412
  },
1304
1413
  networkStakingStepRewardsByStepViewer_earned: {
1305
1414
  params: {
1306
- from: z11.tuple([
1415
+ from: z13.tuple([
1307
1416
  RewardsRangeOptionsZod3.optional()
1308
1417
  ]),
1309
- to: z11.tuple([
1418
+ to: z13.tuple([
1310
1419
  RewardsRangeOptionsZod3.optional()
1311
1420
  ])
1312
1421
  },
1313
1422
  result: {
1314
- from: z11.record(AddressZod4, BigIntToJsonZod5),
1315
- to: z11.record(AddressZod4, JsonToBigIntZod5)
1423
+ from: z13.record(AddressZod5, BigIntToJsonZod6),
1424
+ to: z13.record(AddressZod5, JsonToBigIntZod6)
1316
1425
  }
1317
1426
  },
1318
1427
  networkStakingStepRewardsByStepViewer_total: {
1319
1428
  params: {
1320
- from: z11.tuple([
1429
+ from: z13.tuple([
1321
1430
  RewardsRangeOptionsZod3.optional()
1322
1431
  ]),
1323
- to: z11.tuple([
1432
+ to: z13.tuple([
1324
1433
  RewardsRangeOptionsZod3.optional()
1325
1434
  ])
1326
1435
  },
1327
1436
  result: {
1328
- from: z11.record(AddressZod4, BigIntToJsonZod5),
1329
- to: z11.record(AddressZod4, JsonToBigIntZod5)
1437
+ from: z13.record(AddressZod5, BigIntToJsonZod6),
1438
+ to: z13.record(AddressZod5, JsonToBigIntZod6)
1330
1439
  }
1331
1440
  },
1332
1441
  networkStakingStepRewardsByStepViewer_unclaimed: {
1333
1442
  params: {
1334
- from: z11.tuple([
1443
+ from: z13.tuple([
1335
1444
  RewardsRangeOptionsZod3.optional()
1336
1445
  ]),
1337
- to: z11.tuple([
1446
+ to: z13.tuple([
1338
1447
  RewardsRangeOptionsZod3.optional()
1339
1448
  ])
1340
1449
  },
1341
1450
  result: {
1342
- from: z11.record(AddressZod4, BigIntToJsonZod5),
1343
- to: z11.record(AddressZod4, JsonToBigIntZod5)
1451
+ from: z13.record(AddressZod5, BigIntToJsonZod6),
1452
+ to: z13.record(AddressZod5, JsonToBigIntZod6)
1344
1453
  }
1345
1454
  }
1346
1455
  };
1347
1456
 
1348
1457
  // src/types/schema/RewardsTotalViewerRpcSchemas.ts
1349
- import { BigIntToJsonZod as BigIntToJsonZod6, JsonToBigIntZod as JsonToBigIntZod6 } from "@xylabs/sdk-js";
1350
- import { asAttoXL1 as asAttoXL12 } from "@xyo-network/xl1-protocol";
1351
- import { RewardsRangeOptionsZod as RewardsRangeOptionsZod4 } from "@xyo-network/xl1-protocol-sdk";
1352
- import * as z12 from "zod";
1458
+ import { BigIntToJsonZod as BigIntToJsonZod7, JsonToBigIntZod as JsonToBigIntZod7 } from "@xylabs/sdk-js";
1459
+ import { asAttoXL1 as asAttoXL12, RewardsRangeOptionsZod as RewardsRangeOptionsZod4 } from "@xyo-network/xl1-protocol";
1460
+ import * as z14 from "zod";
1353
1461
  var NetworkStakingStepRewardsTotalViewerRpcSchemas = {
1354
1462
  networkStakingStepRewardsTotalViewer_bonus: {
1355
1463
  params: {
1356
- from: z12.tuple([
1464
+ from: z14.tuple([
1357
1465
  RewardsRangeOptionsZod4.optional()
1358
1466
  ]),
1359
- to: z12.tuple([
1467
+ to: z14.tuple([
1360
1468
  RewardsRangeOptionsZod4.optional()
1361
1469
  ])
1362
1470
  },
1363
1471
  result: {
1364
- from: JsonToBigIntZod6.transform((val) => asAttoXL12(val)),
1365
- to: BigIntToJsonZod6
1472
+ from: JsonToBigIntZod7.transform((val) => asAttoXL12(val)),
1473
+ to: BigIntToJsonZod7
1366
1474
  }
1367
1475
  },
1368
1476
  networkStakingStepRewardsTotalViewer_claimed: {
1369
1477
  params: {
1370
- from: z12.tuple([
1478
+ from: z14.tuple([
1371
1479
  RewardsRangeOptionsZod4.optional()
1372
1480
  ]),
1373
- to: z12.tuple([
1481
+ to: z14.tuple([
1374
1482
  RewardsRangeOptionsZod4.optional()
1375
1483
  ])
1376
1484
  },
1377
1485
  result: {
1378
- from: JsonToBigIntZod6.transform((val) => asAttoXL12(val)),
1379
- to: BigIntToJsonZod6
1486
+ from: JsonToBigIntZod7.transform((val) => asAttoXL12(val)),
1487
+ to: BigIntToJsonZod7
1380
1488
  }
1381
1489
  },
1382
1490
  networkStakingStepRewardsTotalViewer_earned: {
1383
1491
  params: {
1384
- from: z12.tuple([
1492
+ from: z14.tuple([
1385
1493
  RewardsRangeOptionsZod4.optional()
1386
1494
  ]),
1387
- to: z12.tuple([
1495
+ to: z14.tuple([
1388
1496
  RewardsRangeOptionsZod4.optional()
1389
1497
  ])
1390
1498
  },
1391
1499
  result: {
1392
- from: JsonToBigIntZod6.transform((val) => asAttoXL12(val)),
1393
- to: BigIntToJsonZod6
1500
+ from: JsonToBigIntZod7.transform((val) => asAttoXL12(val)),
1501
+ to: BigIntToJsonZod7
1394
1502
  }
1395
1503
  },
1396
1504
  networkStakingStepRewardsTotalViewer_total: {
1397
1505
  params: {
1398
- from: z12.tuple([
1506
+ from: z14.tuple([
1399
1507
  RewardsRangeOptionsZod4.optional()
1400
1508
  ]),
1401
- to: z12.tuple([
1509
+ to: z14.tuple([
1402
1510
  RewardsRangeOptionsZod4.optional()
1403
1511
  ])
1404
1512
  },
1405
1513
  result: {
1406
- from: JsonToBigIntZod6.transform((val) => asAttoXL12(val)),
1407
- to: BigIntToJsonZod6
1514
+ from: JsonToBigIntZod7.transform((val) => asAttoXL12(val)),
1515
+ to: BigIntToJsonZod7
1408
1516
  }
1409
1517
  },
1410
1518
  networkStakingStepRewardsTotalViewer_unclaimed: {
1411
1519
  params: {
1412
- from: z12.tuple([
1520
+ from: z14.tuple([
1413
1521
  RewardsRangeOptionsZod4.optional()
1414
1522
  ]),
1415
- to: z12.tuple([
1523
+ to: z14.tuple([
1416
1524
  RewardsRangeOptionsZod4.optional()
1417
1525
  ])
1418
1526
  },
1419
1527
  result: {
1420
- from: JsonToBigIntZod6.transform((val) => asAttoXL12(val)),
1421
- to: BigIntToJsonZod6
1528
+ from: JsonToBigIntZod7.transform((val) => asAttoXL12(val)),
1529
+ to: BigIntToJsonZod7
1422
1530
  }
1423
1531
  }
1424
1532
  };
@@ -1427,72 +1535,71 @@ var NetworkStakingStepRewardsTotalViewerRpcSchemas = {
1427
1535
  var NetworkStakingStepRewardsViewerRpcSchemas = {};
1428
1536
 
1429
1537
  // src/types/schema/TimeSyncViewerRpcSchema.ts
1430
- import { TimePayloadZod } from "@xyo-network/xl1-protocol";
1431
- import { TimeDomainZod } from "@xyo-network/xl1-protocol-sdk";
1432
- import * as z13 from "zod";
1538
+ import { TimeDomainZod, TimePayloadZod } from "@xyo-network/xl1-protocol";
1539
+ import * as z15 from "zod";
1433
1540
  var TimeSyncViewerRpcSchemas = {
1434
1541
  timeSyncViewer_convertTime: {
1435
1542
  params: {
1436
- from: z13.tuple([
1543
+ from: z15.tuple([
1437
1544
  TimeDomainZod,
1438
1545
  TimeDomainZod,
1439
- z13.number()
1546
+ z15.number()
1440
1547
  ]),
1441
- to: z13.tuple([
1548
+ to: z15.tuple([
1442
1549
  TimeDomainZod,
1443
1550
  TimeDomainZod,
1444
- z13.number()
1551
+ z15.number()
1445
1552
  ])
1446
1553
  },
1447
1554
  result: {
1448
- from: z13.number(),
1449
- to: z13.number()
1555
+ from: z15.number(),
1556
+ to: z15.number()
1450
1557
  }
1451
1558
  },
1452
1559
  timeSyncViewer_currentTime: {
1453
1560
  params: {
1454
- from: z13.tuple([
1561
+ from: z15.tuple([
1455
1562
  TimeDomainZod
1456
1563
  ]),
1457
- to: z13.tuple([
1564
+ to: z15.tuple([
1458
1565
  TimeDomainZod
1459
1566
  ])
1460
1567
  },
1461
1568
  result: {
1462
- from: z13.tuple([
1569
+ from: z15.tuple([
1463
1570
  TimeDomainZod,
1464
- z13.number()
1571
+ z15.number()
1465
1572
  ]),
1466
- to: z13.tuple([
1573
+ to: z15.tuple([
1467
1574
  TimeDomainZod,
1468
- z13.number()
1575
+ z15.number()
1469
1576
  ])
1470
1577
  }
1471
1578
  },
1472
1579
  timeSyncViewer_currentTimeAndHash: {
1473
1580
  params: {
1474
- from: z13.tuple([
1581
+ from: z15.tuple([
1475
1582
  TimeDomainZod
1476
1583
  ]),
1477
- to: z13.tuple([
1584
+ to: z15.tuple([
1478
1585
  TimeDomainZod
1479
1586
  ])
1480
1587
  },
1481
1588
  result: {
1482
- from: z13.tuple([
1483
- z13.number(),
1484
- z13.nullable(z13.string())
1589
+ from: z15.tuple([
1590
+ z15.number(),
1591
+ z15.nullable(z15.string())
1485
1592
  ]),
1486
- to: z13.tuple([
1487
- z13.number(),
1488
- z13.nullable(z13.string())
1593
+ to: z15.tuple([
1594
+ z15.number(),
1595
+ z15.nullable(z15.string())
1489
1596
  ])
1490
1597
  }
1491
1598
  },
1492
1599
  timeSyncViewer_currentTimePayload: {
1493
1600
  params: {
1494
- from: z13.tuple([]),
1495
- to: z13.tuple([])
1601
+ from: z15.tuple([]),
1602
+ to: z15.tuple([])
1496
1603
  },
1497
1604
  result: {
1498
1605
  from: TimePayloadZod,
@@ -1509,11 +1616,13 @@ var HttpRpcTransport = class {
1509
1616
  static {
1510
1617
  __name(this, "HttpRpcTransport");
1511
1618
  }
1619
+ _passThrough;
1512
1620
  _rpcUrl;
1513
1621
  _schemas;
1514
- constructor(rpcUrl, schemas) {
1622
+ constructor(rpcUrl, schemas, passThrough = false) {
1515
1623
  this._rpcUrl = rpcUrl;
1516
1624
  this._schemas = schemas;
1625
+ this._passThrough = passThrough;
1517
1626
  }
1518
1627
  async sendRequest(method, params) {
1519
1628
  return await this.callRpc(this._rpcUrl, this._schemas, method, params);
@@ -1526,15 +1635,19 @@ var HttpRpcTransport = class {
1526
1635
  id,
1527
1636
  method
1528
1637
  };
1638
+ const schema = schemas[method];
1529
1639
  if (params) {
1530
- body.params = schemas[method].params.to.parse(params);
1640
+ body.params = isDefined(schema) ? schema.params.to.parse(params) : this._passThrough ? z16.json().parse(params) : void 0;
1641
+ if (!isDefined(body.params)) {
1642
+ throw new Error(`RPC method ${String(method)} missing schema`);
1643
+ }
1531
1644
  }
1532
1645
  const res = await new Axios(axiosJsonConfig()).post(url, body);
1533
- const json = res.data;
1534
- if (isUndefinedOrNull(json) || json.error) {
1535
- throw new Error(json.error.message);
1646
+ const json2 = res.data;
1647
+ if (isUndefinedOrNull(json2) || json2.error) {
1648
+ throw new Error(json2.error.message);
1536
1649
  }
1537
- return schemas[method].result.from.parse(json.result);
1650
+ return schemas[method].result.from.parse(json2.result);
1538
1651
  } catch (ex) {
1539
1652
  let message = isError(ex) ? ex.message : String(ex);
1540
1653
  if (isAxiosError(ex)) {
@@ -1643,6 +1756,56 @@ var NodeXyoRunner = class {
1643
1756
  }, "getPendingArchivist");
1644
1757
  };
1645
1758
 
1759
+ // src/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewer.ts
1760
+ import { asAttoXL1 as asAttoXL13 } from "@xyo-network/xl1-protocol";
1761
+
1762
+ // src/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewerMethods.ts
1763
+ var JsonRpcAccountBalanceViewerMethods = class {
1764
+ static {
1765
+ __name(this, "JsonRpcAccountBalanceViewerMethods");
1766
+ }
1767
+ transport;
1768
+ constructor(transport) {
1769
+ this.transport = transport;
1770
+ }
1771
+ async accountsBalances(address, headOrRange) {
1772
+ return await this.transport.sendRequest("accountBalanceViewer_accountsBalances", headOrRange ? [
1773
+ address,
1774
+ headOrRange
1775
+ ] : [
1776
+ address
1777
+ ]);
1778
+ }
1779
+ async accountsBalancesHistory(address, headOrRange) {
1780
+ return await this.transport.sendRequest("accountBalanceViewer_accountsBalancesHistory", headOrRange ? [
1781
+ address,
1782
+ headOrRange
1783
+ ] : [
1784
+ address
1785
+ ]);
1786
+ }
1787
+ };
1788
+
1789
+ // src/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewer.ts
1790
+ var JsonRpcAccountBalanceViewer = class extends JsonRpcAccountBalanceViewerMethods {
1791
+ static {
1792
+ __name(this, "JsonRpcAccountBalanceViewer");
1793
+ }
1794
+ constructor(transport) {
1795
+ super(transport);
1796
+ }
1797
+ async accountBalance(address, headOrRange) {
1798
+ return (await this.accountsBalances([
1799
+ address
1800
+ ], headOrRange))[address] ?? asAttoXL13(0);
1801
+ }
1802
+ async accountBalanceHistory(address, headOrRange) {
1803
+ return (await this.accountsBalancesHistory([
1804
+ address
1805
+ ], headOrRange))[address] ?? [];
1806
+ }
1807
+ };
1808
+
1646
1809
  // src/provider/viewer/JsonRpcViewer.ts
1647
1810
  var JsonRpcViewer = class {
1648
1811
  static {
@@ -1754,8 +1917,8 @@ var JsonRpcTimeSyncViewer = class extends JsonRpcTimeSyncViewerMethods {
1754
1917
  };
1755
1918
 
1756
1919
  // src/provider/viewer/JsonRpcXyoViewer.ts
1757
- import { isDefined, isHash } from "@xylabs/sdk-js";
1758
- import { asAttoXL1 as asAttoXL13, asHydratedBlock } from "@xyo-network/xl1-protocol";
1920
+ import { isDefined as isDefined2, isHash } from "@xylabs/sdk-js";
1921
+ import { asAttoXL1 as asAttoXL14, asSignedHydratedBlockWithHashMeta } from "@xyo-network/xl1-protocol";
1759
1922
  var JsonRpcXyoViewer = class {
1760
1923
  static {
1761
1924
  __name(this, "JsonRpcXyoViewer");
@@ -1770,7 +1933,7 @@ var JsonRpcXyoViewer = class {
1770
1933
  return this.providers?.networkStakeViewer;
1771
1934
  }
1772
1935
  async accountBalance(address, headOrRange) {
1773
- if (isDefined(headOrRange)) {
1936
+ if (isDefined2(headOrRange)) {
1774
1937
  if (isHash(headOrRange)) {
1775
1938
  return await this.transport.sendRequest("xyoViewer_accountBalance", [
1776
1939
  address,
@@ -1787,7 +1950,7 @@ var JsonRpcXyoViewer = class {
1787
1950
  ]);
1788
1951
  }
1789
1952
  async accountBalanceHistory(address, headOrRange) {
1790
- if (isDefined(headOrRange)) {
1953
+ if (isDefined2(headOrRange)) {
1791
1954
  if (isHash(headOrRange)) {
1792
1955
  return await this.transport.sendRequest("xyoViewer_accountBalanceHistory", [
1793
1956
  address,
@@ -1810,12 +1973,12 @@ var JsonRpcXyoViewer = class {
1810
1973
  throw new Error("Method not implemented.");
1811
1974
  }
1812
1975
  async blockByHash(hash) {
1813
- return asHydratedBlock(await this.transport.sendRequest("xyoViewer_blockByHash", [
1976
+ return asSignedHydratedBlockWithHashMeta(await this.transport.sendRequest("xyoViewer_blockByHash", [
1814
1977
  hash
1815
1978
  ])) ?? null;
1816
1979
  }
1817
1980
  async blockByNumber(blockNumber) {
1818
- return asHydratedBlock(await this.transport.sendRequest("xyoViewer_blockByNumber", [
1981
+ return asSignedHydratedBlockWithHashMeta(await this.transport.sendRequest("xyoViewer_blockByNumber", [
1819
1982
  blockNumber
1820
1983
  ])) ?? null;
1821
1984
  }
@@ -1823,9 +1986,7 @@ var JsonRpcXyoViewer = class {
1823
1986
  return (await this.transport.sendRequest("xyoViewer_blocksByHash", [
1824
1987
  hash,
1825
1988
  limit
1826
- ])).map((b) => asHydratedBlock(b, {
1827
- required: true
1828
- }));
1989
+ ])).map((b) => asSignedHydratedBlockWithHashMeta(b, true));
1829
1990
  }
1830
1991
  async chainId() {
1831
1992
  return await this.transport.sendRequest("xyoViewer_chainId");
@@ -1836,9 +1997,7 @@ var JsonRpcXyoViewer = class {
1836
1997
  ]);
1837
1998
  }
1838
1999
  async currentBlock() {
1839
- return asHydratedBlock(await this.transport.sendRequest("xyoViewer_currentBlock"), {
1840
- required: true
1841
- });
2000
+ return asSignedHydratedBlockWithHashMeta(await this.transport.sendRequest("xyoViewer_currentBlock"), true);
1842
2001
  }
1843
2002
  async currentBlockHash() {
1844
2003
  return await this.transport.sendRequest("xyoViewer_currentBlockHash");
@@ -1987,7 +2146,7 @@ var JsonRpcXyoViewer = class {
1987
2146
  ]);
1988
2147
  }
1989
2148
  async transferBalance(address) {
1990
- return asAttoXL13(await this.transport.sendRequest("xyoViewer_transferBalance", [
2149
+ return asAttoXL14(await this.transport.sendRequest("xyoViewer_transferBalance", [
1991
2150
  address
1992
2151
  ]));
1993
2152
  }
@@ -1995,7 +2154,7 @@ var JsonRpcXyoViewer = class {
1995
2154
  throw new Error("Method not implemented.");
1996
2155
  }
1997
2156
  async transferPairBalance(pair) {
1998
- return asAttoXL13(await this.transport.sendRequest("xyoViewer_transferPairBalance", [
2157
+ return asAttoXL14(await this.transport.sendRequest("xyoViewer_transferPairBalance", [
1999
2158
  pair
2000
2159
  ]));
2001
2160
  }
@@ -2121,18 +2280,21 @@ var RpcXyoSigner = class {
2121
2280
  return await this.transport.sendRequest("xyoSigner_address");
2122
2281
  }
2123
2282
  async signTransaction(tx) {
2124
- const ret = await this.transport.sendRequest("xyoSigner_signTransaction", [
2283
+ return await this.transport.sendRequest("xyoSigner_signTransaction", [
2125
2284
  tx
2126
2285
  ]);
2127
- return ret;
2128
2286
  }
2129
2287
  };
2130
2288
  export {
2289
+ AccountBalanceViewerRpcNamespace,
2290
+ AccountBalanceViewerRpcSchemas,
2131
2291
  AllRpcSchemas,
2132
2292
  DataLakeViewerRpcNamespace,
2133
2293
  DataLakeViewerRpcSchemas,
2134
2294
  HttpRpcTransport,
2135
2295
  HttpRpcXyoConnection,
2296
+ JsonRpcAccountBalanceViewer,
2297
+ JsonRpcAccountBalanceViewerMethods,
2136
2298
  JsonRpcDataLakeViewer,
2137
2299
  JsonRpcDataLakeViewerMethods,
2138
2300
  JsonRpcErrorCodes,
@@ -2146,6 +2308,7 @@ export {
2146
2308
  JsonRpcXyoRunner,
2147
2309
  JsonRpcXyoViewer,
2148
2310
  MemoryRpcTransport,
2311
+ MempoolViewerRpcSchemas,
2149
2312
  NetworkStakeViewerRpcNamespace,
2150
2313
  NetworkStakeViewerRpcSchemas,
2151
2314
  NetworkStakingStepRewardsByPositionViewerRpcNamespace,