@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
 
@@ -118,6 +133,9 @@ var rpcMethodHandlersFromSigner = /* @__PURE__ */ __name((signer) => {
118
133
  // src/engine-node/rpcEngineFromConnection.ts
119
134
  import { createAsyncMiddleware, JsonRpcEngine } from "@metamask/json-rpc-engine";
120
135
 
136
+ // src/types/AccountBalanceViewerRpc.ts
137
+ var AccountBalanceViewerRpcNamespace = "accountBalanceViewer";
138
+
121
139
  // src/types/DataLakeViewerRpc.ts
122
140
  var DataLakeViewerRpcNamespace = "dataLakeViewer";
123
141
 
@@ -166,88 +184,160 @@ var NetworkStakingStepRewardsTotalViewerRpcNamespace = "networkStakingStepReward
166
184
  // src/types/NetworkStakingStepRewardsViewerRpc.ts
167
185
  var NetworkStakingStepRewardsViewerRpcNamespace = "networkStakingStepRewardsViewer";
168
186
 
187
+ // src/types/schema/AccountBalanceViewerRpcSchemas.ts
188
+ import { AddressZod, BigIntToJsonZod, HashZod, JsonToBigIntZod } from "@xylabs/sdk-js";
189
+ import { XL1BlockRangeZod } from "@xyo-network/xl1-protocol";
190
+ import { AccountBalanceHistoryItemZod } from "@xyo-network/xl1-protocol-sdk";
191
+ import * as z from "zod";
192
+ var AccountBalanceViewerRpcSchemas = {
193
+ accountBalanceViewer_accountsBalances: {
194
+ params: {
195
+ to: 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
+ from: z.union([
208
+ z.tuple([
209
+ z.array(AddressZod)
210
+ ]),
211
+ z.tuple([
212
+ z.array(AddressZod),
213
+ z.union([
214
+ XL1BlockRangeZod,
215
+ HashZod
216
+ ])
217
+ ])
218
+ ])
219
+ },
220
+ result: {
221
+ to: z.record(AddressZod, BigIntToJsonZod),
222
+ from: z.record(AddressZod, JsonToBigIntZod)
223
+ }
224
+ },
225
+ accountBalanceViewer_accountsBalancesHistory: {
226
+ params: {
227
+ to: 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
+ from: z.union([
240
+ z.tuple([
241
+ z.array(AddressZod)
242
+ ]),
243
+ z.tuple([
244
+ z.array(AddressZod),
245
+ z.union([
246
+ XL1BlockRangeZod,
247
+ HashZod
248
+ ])
249
+ ])
250
+ ])
251
+ },
252
+ result: {
253
+ to: z.record(AddressZod, z.array(AccountBalanceHistoryItemZod)),
254
+ from: z.record(AddressZod, z.array(AccountBalanceHistoryItemZod))
255
+ }
256
+ }
257
+ };
258
+
169
259
  // src/types/schema/NetworkStakeViewerRpcSchemas.ts
170
- import { BigIntToJsonZod, JsonToBigIntZod } from "@xylabs/sdk-js";
260
+ import { BigIntToJsonZod as BigIntToJsonZod2, JsonToBigIntZod as JsonToBigIntZod2 } from "@xylabs/sdk-js";
171
261
  import { BlockNumberZod } from "@xyo-network/xl1-protocol";
172
- import * as z from "zod";
262
+ import * as z2 from "zod";
173
263
  var NetworkStakeViewerRpcSchemas = {
174
264
  networkStakeViewer_active: {
175
265
  params: {
176
- from: z.tuple([
266
+ from: z2.tuple([
177
267
  BlockNumberZod.optional()
178
268
  ]),
179
- to: z.tuple([
269
+ to: z2.tuple([
180
270
  BlockNumberZod.optional()
181
271
  ])
182
272
  },
183
273
  result: {
184
- from: z.tuple([
185
- JsonToBigIntZod,
186
- z.number()
274
+ from: z2.tuple([
275
+ JsonToBigIntZod2,
276
+ z2.number()
187
277
  ]),
188
- to: z.tuple([
189
- BigIntToJsonZod,
190
- z.number()
278
+ to: z2.tuple([
279
+ BigIntToJsonZod2,
280
+ z2.number()
191
281
  ])
192
282
  }
193
283
  }
194
284
  };
195
285
 
196
286
  // src/types/schema/XyoPermissionsRpcSchemas.ts
197
- import { InvokerPermissionZod, PermissionRequestZod, RequestedPermissionZod } from "@xyo-network/xl1-protocol-sdk";
198
- import * as z2 from "zod";
287
+ import { InvokerPermissionZod, PermissionRequestZod, RequestedPermissionZod } from "@xyo-network/xl1-protocol";
288
+ import * as z3 from "zod";
199
289
  var XyoPermissionsRpcSchemas = {
200
290
  xyoPermissions_getPermissions: {
201
291
  params: {
202
- to: z2.array(z2.any()).length(0),
203
- from: z2.array(z2.any()).length(0)
292
+ to: z3.array(z3.any()).length(0),
293
+ from: z3.array(z3.any()).length(0)
204
294
  },
205
295
  result: {
206
- to: z2.array(InvokerPermissionZod),
207
- from: z2.array(InvokerPermissionZod)
296
+ to: z3.array(InvokerPermissionZod),
297
+ from: z3.array(InvokerPermissionZod)
208
298
  }
209
299
  },
210
300
  xyoPermissions_requestPermissions: {
211
301
  params: {
212
- to: z2.tuple([
213
- z2.array(PermissionRequestZod)
302
+ to: z3.tuple([
303
+ z3.array(PermissionRequestZod)
214
304
  ]),
215
- from: z2.tuple([
216
- z2.array(PermissionRequestZod)
305
+ from: z3.tuple([
306
+ z3.array(PermissionRequestZod)
217
307
  ])
218
308
  },
219
309
  result: {
220
- to: z2.array(RequestedPermissionZod),
221
- from: z2.array(RequestedPermissionZod)
310
+ to: z3.array(RequestedPermissionZod),
311
+ from: z3.array(RequestedPermissionZod)
222
312
  }
223
313
  },
224
314
  xyoPermissions_revokePermissions: {
225
315
  params: {
226
- to: z2.tuple([
227
- z2.array(PermissionRequestZod)
316
+ to: z3.tuple([
317
+ z3.array(PermissionRequestZod)
228
318
  ]),
229
- from: z2.tuple([
230
- z2.array(PermissionRequestZod)
319
+ from: z3.tuple([
320
+ z3.array(PermissionRequestZod)
231
321
  ])
232
322
  },
233
323
  result: {
234
- to: z2.array(RequestedPermissionZod),
235
- from: z2.array(RequestedPermissionZod)
324
+ to: z3.array(RequestedPermissionZod),
325
+ from: z3.array(RequestedPermissionZod)
236
326
  }
237
327
  }
238
328
  };
239
329
 
240
330
  // src/types/schema/XyoRunnerRpcSchemas.ts
241
331
  import { HashToJsonZod, JsonToHashZod } from "@xylabs/sdk-js";
242
- import { SignedHydratedTransactionZod } from "@xyo-network/xl1-protocol-sdk";
243
- import * as z3 from "zod";
332
+ import { SignedHydratedTransactionZod } from "@xyo-network/xl1-protocol";
333
+ import * as z4 from "zod";
244
334
  var XyoRunnerRpcSchemas = {
245
335
  xyoRunner_broadcastTransaction: {
246
336
  params: {
247
- to: z3.tuple([
337
+ to: z4.tuple([
248
338
  SignedHydratedTransactionZod
249
339
  ]),
250
- from: z3.tuple([
340
+ from: z4.tuple([
251
341
  SignedHydratedTransactionZod
252
342
  ])
253
343
  },
@@ -259,555 +349,552 @@ var XyoRunnerRpcSchemas = {
259
349
  };
260
350
 
261
351
  // src/types/schema/XyoSignerRpcSchemas.ts
262
- import { AddressZod } from "@xylabs/sdk-js";
263
- import { asHydratedTransactionWithStorageMeta } from "@xyo-network/xl1-protocol";
264
- import { SignedHydratedTransactionZod as SignedHydratedTransactionZod2, UnsignedHydratedTransactionZod } from "@xyo-network/xl1-protocol-sdk";
265
- import { z as z4 } from "zod";
352
+ import { AddressZod as AddressZod2 } from "@xylabs/sdk-js";
353
+ import { SignedHydratedTransactionWithHashMetaZod, UnsignedHydratedTransactionZod } from "@xyo-network/xl1-protocol";
354
+ import { z as z5 } from "zod";
266
355
  var XyoSignerRpcSchemas = {
267
356
  xyoSigner_address: {
268
357
  params: {
269
- to: z4.array(z4.any()).length(0).optional(),
270
- from: z4.array(z4.any()).length(0).optional()
358
+ to: z5.array(z5.any()).length(0).optional(),
359
+ from: z5.array(z5.any()).length(0).optional()
271
360
  },
272
361
  result: {
273
- to: AddressZod,
274
- from: AddressZod
362
+ to: AddressZod2,
363
+ from: AddressZod2
275
364
  }
276
365
  },
277
366
  xyoSigner_signTransaction: {
278
367
  params: {
279
- to: z4.tuple([
368
+ to: z5.tuple([
280
369
  UnsignedHydratedTransactionZod
281
370
  ]),
282
- from: z4.tuple([
371
+ from: z5.tuple([
283
372
  UnsignedHydratedTransactionZod
284
373
  ])
285
374
  },
286
375
  result: {
287
- to: SignedHydratedTransactionZod2,
288
- from: SignedHydratedTransactionZod2.transform((data) => asHydratedTransactionWithStorageMeta(data, {
289
- required: true
290
- }))
376
+ to: SignedHydratedTransactionWithHashMetaZod,
377
+ from: SignedHydratedTransactionWithHashMetaZod
291
378
  }
292
379
  }
293
380
  };
294
381
 
295
382
  // src/types/schema/XyoViewerRpcSchemas.ts
296
- import { AddressZod as AddressZod2, BigIntToJsonZod as BigIntToJsonZod2, HashToJsonZod as HashToJsonZod2, HashZod, JsonToBigIntZod as JsonToBigIntZod2, JsonToHashZod as JsonToHashZod2 } from "@xylabs/sdk-js";
297
- import { BlockNumberZod as BlockNumberZod2, BlockRangeZod, StepIdentityZod, XL1BlockNumberZod, XL1BlockRangeZod } from "@xyo-network/xl1-protocol";
298
- import { AccountBalanceHistoryItemZod, JsonToStakeZod, SignedHydratedBlockZod, SignedHydratedTransactionZod as SignedHydratedTransactionZod3, StakeToJsonZod, TransferPairZod } from "@xyo-network/xl1-protocol-sdk";
299
- import * as z5 from "zod";
383
+ import { AddressZod as AddressZod3, BigIntToJsonZod as BigIntToJsonZod3, HashToJsonZod as HashToJsonZod2, HashZod as HashZod2, JsonToBigIntZod as JsonToBigIntZod3, JsonToHashZod as JsonToHashZod2 } from "@xylabs/sdk-js";
384
+ import { BlockNumberZod as BlockNumberZod2, BlockRangeZod, JsonToStakeZod, SignedHydratedBlockZod, SignedHydratedTransactionZod as SignedHydratedTransactionZod2, StakeToJsonZod, StepIdentityZod, TransferPairZod, XL1BlockNumberZod, XL1BlockRangeZod as XL1BlockRangeZod2 } from "@xyo-network/xl1-protocol";
385
+ import { AccountBalanceHistoryItemZod as AccountBalanceHistoryItemZod2 } from "@xyo-network/xl1-protocol-sdk";
386
+ import * as z6 from "zod";
300
387
  var XyoViewerRpcSchemas = {
301
388
  xyoViewer_networkStakeStepRewardClaimedByAddress: {
302
389
  params: {
303
- to: z5.tuple([
304
- AddressZod2
390
+ to: z6.tuple([
391
+ AddressZod3
305
392
  ]),
306
- from: z5.tuple([
307
- AddressZod2
393
+ from: z6.tuple([
394
+ AddressZod3
308
395
  ])
309
396
  },
310
397
  result: {
311
- to: BigIntToJsonZod2,
312
- from: JsonToBigIntZod2
398
+ to: BigIntToJsonZod3,
399
+ from: JsonToBigIntZod3
313
400
  }
314
401
  },
315
402
  xyoViewer_networkStakeStepRewardAddressReward: {
316
403
  params: {
317
- to: z5.tuple([
404
+ to: z6.tuple([
318
405
  StepIdentityZod,
319
- AddressZod2
406
+ AddressZod3
320
407
  ]),
321
- from: z5.tuple([
408
+ from: z6.tuple([
322
409
  StepIdentityZod,
323
- AddressZod2
410
+ AddressZod3
324
411
  ])
325
412
  },
326
413
  result: {
327
- to: z5.record(AddressZod2, BigIntToJsonZod2),
328
- from: z5.record(AddressZod2, JsonToBigIntZod2)
414
+ to: z6.record(AddressZod3, BigIntToJsonZod3),
415
+ from: z6.record(AddressZod3, JsonToBigIntZod3)
329
416
  }
330
417
  },
331
418
  xyoViewer_networkStakeStepRewardAddressHistory: {
332
419
  params: {
333
- to: z5.tuple([
334
- AddressZod2
420
+ to: z6.tuple([
421
+ AddressZod3
335
422
  ]),
336
- from: z5.tuple([
337
- AddressZod2
423
+ from: z6.tuple([
424
+ AddressZod3
338
425
  ])
339
426
  },
340
427
  result: {
341
- to: z5.record(AddressZod2, BigIntToJsonZod2),
342
- from: z5.record(AddressZod2, JsonToBigIntZod2)
428
+ to: z6.record(AddressZod3, BigIntToJsonZod3),
429
+ from: z6.record(AddressZod3, JsonToBigIntZod3)
343
430
  }
344
431
  },
345
432
  xyoViewer_networkStakeStepRewardAddressShare: {
346
433
  params: {
347
- to: z5.tuple([
434
+ to: z6.tuple([
348
435
  StepIdentityZod,
349
- AddressZod2
436
+ AddressZod3
350
437
  ]),
351
- from: z5.tuple([
438
+ from: z6.tuple([
352
439
  StepIdentityZod,
353
- AddressZod2
440
+ AddressZod3
354
441
  ])
355
442
  },
356
443
  result: {
357
- to: z5.tuple([
358
- BigIntToJsonZod2,
359
- BigIntToJsonZod2
444
+ to: z6.tuple([
445
+ BigIntToJsonZod3,
446
+ BigIntToJsonZod3
360
447
  ]),
361
- from: z5.tuple([
362
- JsonToBigIntZod2,
363
- JsonToBigIntZod2
448
+ from: z6.tuple([
449
+ JsonToBigIntZod3,
450
+ JsonToBigIntZod3
364
451
  ])
365
452
  }
366
453
  },
367
454
  xyoViewer_networkStakeStepRewardWeightForAddress: {
368
455
  params: {
369
- to: z5.tuple([
456
+ to: z6.tuple([
370
457
  StepIdentityZod,
371
- AddressZod2
458
+ AddressZod3
372
459
  ]),
373
- from: z5.tuple([
460
+ from: z6.tuple([
374
461
  StepIdentityZod,
375
- AddressZod2
462
+ AddressZod3
376
463
  ])
377
464
  },
378
465
  result: {
379
- to: BigIntToJsonZod2,
380
- from: JsonToBigIntZod2
466
+ to: BigIntToJsonZod3,
467
+ from: JsonToBigIntZod3
381
468
  }
382
469
  },
383
470
  xyoViewer_networkStakeStepRewardUnclaimedByAddress: {
384
471
  params: {
385
- to: z5.tuple([
386
- AddressZod2
472
+ to: z6.tuple([
473
+ AddressZod3
387
474
  ]),
388
- from: z5.tuple([
389
- AddressZod2
475
+ from: z6.tuple([
476
+ AddressZod3
390
477
  ])
391
478
  },
392
479
  result: {
393
- to: BigIntToJsonZod2,
394
- from: JsonToBigIntZod2
480
+ to: BigIntToJsonZod3,
481
+ from: JsonToBigIntZod3
395
482
  }
396
483
  },
397
484
  xyoViewer_networkStakeStepRewardPoolRewards: {
398
485
  params: {
399
- to: z5.tuple([
486
+ to: z6.tuple([
400
487
  StepIdentityZod
401
488
  ]),
402
- from: z5.tuple([
489
+ from: z6.tuple([
403
490
  StepIdentityZod
404
491
  ])
405
492
  },
406
493
  result: {
407
- to: z5.record(AddressZod2, BigIntToJsonZod2),
408
- from: z5.record(AddressZod2, JsonToBigIntZod2)
494
+ to: z6.record(AddressZod3, BigIntToJsonZod3),
495
+ from: z6.record(AddressZod3, JsonToBigIntZod3)
409
496
  }
410
497
  },
411
498
  xyoViewer_networkStakeStepRewardPositionWeight: {
412
499
  params: {
413
- to: z5.tuple([
500
+ to: z6.tuple([
414
501
  StepIdentityZod,
415
- z5.number()
502
+ z6.number()
416
503
  ]),
417
- from: z5.tuple([
504
+ from: z6.tuple([
418
505
  StepIdentityZod,
419
- z5.number()
506
+ z6.number()
420
507
  ])
421
508
  },
422
509
  result: {
423
- to: BigIntToJsonZod2,
424
- from: JsonToBigIntZod2
510
+ to: BigIntToJsonZod3,
511
+ from: JsonToBigIntZod3
425
512
  }
426
513
  },
427
514
  xyoViewer_networkStakeStepRewardPotentialPositionLoss: {
428
515
  params: {
429
- to: z5.tuple([
516
+ to: z6.tuple([
430
517
  StepIdentityZod,
431
- z5.number()
518
+ z6.number()
432
519
  ]),
433
- from: z5.tuple([
520
+ from: z6.tuple([
434
521
  StepIdentityZod,
435
- z5.number()
522
+ z6.number()
436
523
  ])
437
524
  },
438
525
  result: {
439
- to: BigIntToJsonZod2,
440
- from: JsonToBigIntZod2
526
+ to: BigIntToJsonZod3,
527
+ from: JsonToBigIntZod3
441
528
  }
442
529
  },
443
530
  xyoViewer_networkStakeStepRewardForStep: {
444
531
  params: {
445
- to: z5.tuple([
532
+ to: z6.tuple([
446
533
  StepIdentityZod
447
534
  ]),
448
- from: z5.tuple([
535
+ from: z6.tuple([
449
536
  StepIdentityZod
450
537
  ])
451
538
  },
452
539
  result: {
453
- to: BigIntToJsonZod2,
454
- from: JsonToBigIntZod2
540
+ to: BigIntToJsonZod3,
541
+ from: JsonToBigIntZod3
455
542
  }
456
543
  },
457
544
  xyoViewer_networkStakeStepRewardRandomizer: {
458
545
  params: {
459
- to: z5.tuple([
546
+ to: z6.tuple([
460
547
  StepIdentityZod
461
548
  ]),
462
- from: z5.tuple([
549
+ from: z6.tuple([
463
550
  StepIdentityZod
464
551
  ])
465
552
  },
466
553
  result: {
467
- to: BigIntToJsonZod2,
468
- from: JsonToBigIntZod2
554
+ to: BigIntToJsonZod3,
555
+ from: JsonToBigIntZod3
469
556
  }
470
557
  },
471
558
  xyoViewer_networkStakeStepRewardStakerCount: {
472
559
  params: {
473
- to: z5.tuple([
560
+ to: z6.tuple([
474
561
  StepIdentityZod
475
562
  ]),
476
- from: z5.tuple([
563
+ from: z6.tuple([
477
564
  StepIdentityZod
478
565
  ])
479
566
  },
480
567
  result: {
481
- to: z5.number(),
482
- from: z5.number()
568
+ to: z6.number(),
569
+ from: z6.number()
483
570
  }
484
571
  },
485
572
  xyoViewer_networkStakeStepRewardPoolShares: {
486
573
  params: {
487
- to: z5.tuple([
574
+ to: z6.tuple([
488
575
  StepIdentityZod
489
576
  ]),
490
- from: z5.tuple([
577
+ from: z6.tuple([
491
578
  StepIdentityZod
492
579
  ])
493
580
  },
494
581
  result: {
495
- to: z5.record(AddressZod2, BigIntToJsonZod2),
496
- from: z5.record(AddressZod2, JsonToBigIntZod2)
582
+ to: z6.record(AddressZod3, BigIntToJsonZod3),
583
+ from: z6.record(AddressZod3, JsonToBigIntZod3)
497
584
  }
498
585
  },
499
586
  xyoViewer_networkStakeStepRewardForStepForPosition: {
500
587
  params: {
501
- to: z5.tuple([
588
+ to: z6.tuple([
502
589
  StepIdentityZod,
503
- z5.number()
590
+ z6.number()
504
591
  ]),
505
- from: z5.tuple([
592
+ from: z6.tuple([
506
593
  StepIdentityZod,
507
- z5.number()
594
+ z6.number()
508
595
  ])
509
596
  },
510
597
  result: {
511
- to: z5.tuple([
512
- BigIntToJsonZod2,
513
- BigIntToJsonZod2
598
+ to: z6.tuple([
599
+ BigIntToJsonZod3,
600
+ BigIntToJsonZod3
514
601
  ]),
515
- from: z5.tuple([
516
- JsonToBigIntZod2,
517
- JsonToBigIntZod2
602
+ from: z6.tuple([
603
+ JsonToBigIntZod3,
604
+ JsonToBigIntZod3
518
605
  ])
519
606
  }
520
607
  },
521
608
  xyoViewer_networkStakeStepRewardForPosition: {
522
609
  params: {
523
- to: z5.tuple([
524
- z5.number(),
525
- z5.tuple([
526
- z5.number(),
527
- z5.number()
610
+ to: z6.tuple([
611
+ z6.number(),
612
+ z6.tuple([
613
+ z6.number(),
614
+ z6.number()
528
615
  ])
529
616
  ]),
530
- from: z5.tuple([
531
- z5.number(),
532
- z5.tuple([
533
- z5.number(),
534
- z5.number()
617
+ from: z6.tuple([
618
+ z6.number(),
619
+ z6.tuple([
620
+ z6.number(),
621
+ z6.number()
535
622
  ])
536
623
  ])
537
624
  },
538
625
  result: {
539
- to: z5.tuple([
540
- BigIntToJsonZod2,
541
- BigIntToJsonZod2
626
+ to: z6.tuple([
627
+ BigIntToJsonZod3,
628
+ BigIntToJsonZod3
542
629
  ]),
543
- from: z5.tuple([
544
- JsonToBigIntZod2,
545
- JsonToBigIntZod2
630
+ from: z6.tuple([
631
+ JsonToBigIntZod3,
632
+ JsonToBigIntZod3
546
633
  ])
547
634
  }
548
635
  },
549
636
  xyoViewer_networkStakeStepRewardsForRange: {
550
637
  params: {
551
- to: z5.tuple([
552
- z5.tuple([
553
- z5.number(),
554
- z5.number()
638
+ to: z6.tuple([
639
+ z6.tuple([
640
+ z6.number(),
641
+ z6.number()
555
642
  ])
556
643
  ]),
557
- from: z5.tuple([
558
- z5.tuple([
559
- z5.number(),
560
- z5.number()
644
+ from: z6.tuple([
645
+ z6.tuple([
646
+ z6.number(),
647
+ z6.number()
561
648
  ])
562
649
  ])
563
650
  },
564
651
  result: {
565
- to: BigIntToJsonZod2,
566
- from: JsonToBigIntZod2
652
+ to: BigIntToJsonZod3,
653
+ from: JsonToBigIntZod3
567
654
  }
568
655
  },
569
656
  xyoViewer_networkStakeStepRewardsForStepLevel: {
570
657
  params: {
571
- to: z5.tuple([
572
- z5.number(),
573
- z5.tuple([
574
- z5.number(),
575
- z5.number()
658
+ to: z6.tuple([
659
+ z6.number(),
660
+ z6.tuple([
661
+ z6.number(),
662
+ z6.number()
576
663
  ])
577
664
  ]),
578
- from: z5.tuple([
579
- z5.number(),
580
- z5.tuple([
581
- z5.number(),
582
- z5.number()
665
+ from: z6.tuple([
666
+ z6.number(),
667
+ z6.tuple([
668
+ z6.number(),
669
+ z6.number()
583
670
  ])
584
671
  ])
585
672
  },
586
673
  result: {
587
- to: BigIntToJsonZod2,
588
- from: JsonToBigIntZod2
674
+ to: BigIntToJsonZod3,
675
+ from: JsonToBigIntZod3
589
676
  }
590
677
  },
591
678
  xyoViewer_networkStakeStepRewardsForPosition: {
592
679
  params: {
593
- to: z5.tuple([
594
- z5.number(),
595
- z5.tuple([
596
- z5.number(),
597
- z5.number()
680
+ to: z6.tuple([
681
+ z6.number(),
682
+ z6.tuple([
683
+ z6.number(),
684
+ z6.number()
598
685
  ])
599
686
  ]),
600
- from: z5.tuple([
601
- z5.number(),
602
- z5.tuple([
603
- z5.number(),
604
- z5.number()
687
+ from: z6.tuple([
688
+ z6.number(),
689
+ z6.tuple([
690
+ z6.number(),
691
+ z6.number()
605
692
  ])
606
693
  ])
607
694
  },
608
695
  result: {
609
- to: z5.record(z5.string(), z5.tuple([
610
- BigIntToJsonZod2,
611
- BigIntToJsonZod2
696
+ to: z6.record(z6.string(), z6.tuple([
697
+ BigIntToJsonZod3,
698
+ BigIntToJsonZod3
612
699
  ])),
613
- from: z5.record(z5.string(), z5.tuple([
614
- JsonToBigIntZod2,
615
- JsonToBigIntZod2
700
+ from: z6.record(z6.string(), z6.tuple([
701
+ JsonToBigIntZod3,
702
+ JsonToBigIntZod3
616
703
  ]))
617
704
  }
618
705
  },
619
706
  xyoViewer_accountBalance: {
620
707
  params: {
621
- to: z5.union([
622
- z5.tuple([
623
- AddressZod2
708
+ to: z6.union([
709
+ z6.tuple([
710
+ AddressZod3
624
711
  ]),
625
- z5.tuple([
626
- AddressZod2,
627
- z5.union([
628
- XL1BlockRangeZod,
629
- HashZod
712
+ z6.tuple([
713
+ AddressZod3,
714
+ z6.union([
715
+ XL1BlockRangeZod2,
716
+ HashZod2
630
717
  ])
631
718
  ])
632
719
  ]),
633
- from: z5.union([
634
- z5.tuple([
635
- AddressZod2
720
+ from: z6.union([
721
+ z6.tuple([
722
+ AddressZod3
636
723
  ]),
637
- z5.tuple([
638
- AddressZod2,
639
- z5.union([
640
- XL1BlockRangeZod,
641
- HashZod
724
+ z6.tuple([
725
+ AddressZod3,
726
+ z6.union([
727
+ XL1BlockRangeZod2,
728
+ HashZod2
642
729
  ])
643
730
  ])
644
731
  ])
645
732
  },
646
733
  result: {
647
- to: BigIntToJsonZod2,
648
- from: JsonToBigIntZod2
734
+ to: BigIntToJsonZod3,
735
+ from: JsonToBigIntZod3
649
736
  }
650
737
  },
651
738
  xyoViewer_accountBalanceHistory: {
652
739
  params: {
653
- to: z5.union([
654
- z5.tuple([
655
- AddressZod2
740
+ to: z6.union([
741
+ z6.tuple([
742
+ AddressZod3
656
743
  ]),
657
- z5.tuple([
658
- AddressZod2,
659
- z5.union([
660
- XL1BlockRangeZod,
661
- HashZod
744
+ z6.tuple([
745
+ AddressZod3,
746
+ z6.union([
747
+ XL1BlockRangeZod2,
748
+ HashZod2
662
749
  ])
663
750
  ])
664
751
  ]),
665
- from: z5.union([
666
- z5.tuple([
667
- AddressZod2
752
+ from: z6.union([
753
+ z6.tuple([
754
+ AddressZod3
668
755
  ]),
669
- z5.tuple([
670
- AddressZod2,
671
- z5.union([
672
- XL1BlockRangeZod,
673
- HashZod
756
+ z6.tuple([
757
+ AddressZod3,
758
+ z6.union([
759
+ XL1BlockRangeZod2,
760
+ HashZod2
674
761
  ])
675
762
  ])
676
763
  ])
677
764
  },
678
765
  result: {
679
- to: z5.array(AccountBalanceHistoryItemZod),
680
- from: z5.array(AccountBalanceHistoryItemZod)
766
+ to: z6.array(AccountBalanceHistoryItemZod2),
767
+ from: z6.array(AccountBalanceHistoryItemZod2)
681
768
  }
682
769
  },
683
770
  xyoViewer_accountsBalances: {
684
771
  params: {
685
- to: z5.union([
686
- z5.tuple([
687
- z5.array(AddressZod2)
772
+ to: z6.union([
773
+ z6.tuple([
774
+ z6.array(AddressZod3)
688
775
  ]),
689
- z5.tuple([
690
- z5.array(AddressZod2),
691
- z5.union([
692
- XL1BlockRangeZod,
693
- HashZod
776
+ z6.tuple([
777
+ z6.array(AddressZod3),
778
+ z6.union([
779
+ XL1BlockRangeZod2,
780
+ HashZod2
694
781
  ])
695
782
  ])
696
783
  ]),
697
- from: z5.union([
698
- z5.tuple([
699
- z5.array(AddressZod2)
784
+ from: z6.union([
785
+ z6.tuple([
786
+ z6.array(AddressZod3)
700
787
  ]),
701
- z5.tuple([
702
- z5.array(AddressZod2),
703
- z5.union([
704
- XL1BlockRangeZod,
705
- HashZod
788
+ z6.tuple([
789
+ z6.array(AddressZod3),
790
+ z6.union([
791
+ XL1BlockRangeZod2,
792
+ HashZod2
706
793
  ])
707
794
  ])
708
795
  ])
709
796
  },
710
797
  result: {
711
- to: z5.record(AddressZod2, BigIntToJsonZod2),
712
- from: z5.record(AddressZod2, JsonToBigIntZod2)
798
+ to: z6.record(AddressZod3, BigIntToJsonZod3),
799
+ from: z6.record(AddressZod3, JsonToBigIntZod3)
713
800
  }
714
801
  },
715
802
  xyoViewer_accountsBalancesHistory: {
716
803
  params: {
717
- to: z5.union([
718
- z5.tuple([
719
- z5.array(AddressZod2)
804
+ to: z6.union([
805
+ z6.tuple([
806
+ z6.array(AddressZod3)
720
807
  ]),
721
- z5.tuple([
722
- z5.array(AddressZod2),
723
- z5.union([
724
- XL1BlockRangeZod,
725
- HashZod
808
+ z6.tuple([
809
+ z6.array(AddressZod3),
810
+ z6.union([
811
+ XL1BlockRangeZod2,
812
+ HashZod2
726
813
  ])
727
814
  ])
728
815
  ]),
729
- from: z5.union([
730
- z5.tuple([
731
- z5.array(AddressZod2)
816
+ from: z6.union([
817
+ z6.tuple([
818
+ z6.array(AddressZod3)
732
819
  ]),
733
- z5.tuple([
734
- z5.array(AddressZod2),
735
- z5.union([
736
- XL1BlockRangeZod,
737
- HashZod
820
+ z6.tuple([
821
+ z6.array(AddressZod3),
822
+ z6.union([
823
+ XL1BlockRangeZod2,
824
+ HashZod2
738
825
  ])
739
826
  ])
740
827
  ])
741
828
  },
742
829
  result: {
743
- to: z5.record(AddressZod2, AccountBalanceHistoryItemZod),
744
- from: z5.record(AddressZod2, AccountBalanceHistoryItemZod)
830
+ to: z6.record(AddressZod3, AccountBalanceHistoryItemZod2),
831
+ from: z6.record(AddressZod3, AccountBalanceHistoryItemZod2)
745
832
  }
746
833
  },
747
834
  xyoViewer_transferPairBalance: {
748
835
  params: {
749
- to: z5.tuple([
836
+ to: z6.tuple([
750
837
  TransferPairZod
751
838
  ]),
752
- from: z5.tuple([
839
+ from: z6.tuple([
753
840
  TransferPairZod
754
841
  ])
755
842
  },
756
843
  result: {
757
- to: BigIntToJsonZod2,
758
- from: JsonToBigIntZod2
844
+ to: BigIntToJsonZod3,
845
+ from: JsonToBigIntZod3
759
846
  }
760
847
  },
761
848
  xyoViewer_transferPairBalanceHistory: {
762
849
  params: {
763
- to: z5.tuple([
850
+ to: z6.tuple([
764
851
  TransferPairZod
765
852
  ]),
766
- from: z5.tuple([
853
+ from: z6.tuple([
767
854
  TransferPairZod
768
855
  ])
769
856
  },
770
857
  result: {
771
- to: z5.array(AccountBalanceHistoryItemZod),
772
- from: z5.array(AccountBalanceHistoryItemZod)
858
+ to: z6.array(AccountBalanceHistoryItemZod2),
859
+ from: z6.array(AccountBalanceHistoryItemZod2)
773
860
  }
774
861
  },
775
862
  xyoViewer_transferBalance: {
776
863
  params: {
777
- to: z5.tuple([
778
- AddressZod2
864
+ to: z6.tuple([
865
+ AddressZod3
779
866
  ]),
780
- from: z5.tuple([
781
- AddressZod2
867
+ from: z6.tuple([
868
+ AddressZod3
782
869
  ])
783
870
  },
784
871
  result: {
785
- to: BigIntToJsonZod2,
786
- from: JsonToBigIntZod2
872
+ to: BigIntToJsonZod3,
873
+ from: JsonToBigIntZod3
787
874
  }
788
875
  },
789
876
  xyoViewer_transferBalanceHistory: {
790
877
  params: {
791
- to: z5.tuple([
792
- AddressZod2,
878
+ to: z6.tuple([
879
+ AddressZod3,
793
880
  BlockRangeZod.optional()
794
881
  ]),
795
- from: z5.tuple([
796
- AddressZod2,
882
+ from: z6.tuple([
883
+ AddressZod3,
797
884
  BlockRangeZod.optional()
798
885
  ])
799
886
  },
800
887
  result: {
801
- to: z5.array(AccountBalanceHistoryItemZod),
802
- from: z5.array(AccountBalanceHistoryItemZod)
888
+ to: z6.array(AccountBalanceHistoryItemZod2),
889
+ from: z6.array(AccountBalanceHistoryItemZod2)
803
890
  }
804
891
  },
805
892
  xyoViewer_blockByHash: {
806
893
  params: {
807
- to: z5.tuple([
894
+ to: z6.tuple([
808
895
  HashToJsonZod2
809
896
  ]),
810
- from: z5.tuple([
897
+ from: z6.tuple([
811
898
  JsonToHashZod2
812
899
  ])
813
900
  },
@@ -818,11 +905,11 @@ var XyoViewerRpcSchemas = {
818
905
  },
819
906
  xyoViewer_blockByNumber: {
820
907
  params: {
821
- to: z5.tuple([
822
- z5.number()
908
+ to: z6.tuple([
909
+ z6.number()
823
910
  ]),
824
- from: z5.tuple([
825
- z5.number()
911
+ from: z6.tuple([
912
+ z6.number()
826
913
  ])
827
914
  },
828
915
  result: {
@@ -832,48 +919,48 @@ var XyoViewerRpcSchemas = {
832
919
  },
833
920
  xyoViewer_blocksByHash: {
834
921
  params: {
835
- to: z5.tuple([
836
- HashZod,
837
- z5.number().optional()
922
+ to: z6.tuple([
923
+ HashZod2,
924
+ z6.number().optional()
838
925
  ]),
839
- from: z5.tuple([
840
- HashZod,
841
- z5.number().optional()
926
+ from: z6.tuple([
927
+ HashZod2,
928
+ z6.number().optional()
842
929
  ])
843
930
  },
844
931
  result: {
845
- to: z5.array(SignedHydratedBlockZod),
846
- from: z5.array(SignedHydratedBlockZod)
932
+ to: z6.array(SignedHydratedBlockZod),
933
+ from: z6.array(SignedHydratedBlockZod)
847
934
  }
848
935
  },
849
936
  xyoViewer_chainId: {
850
937
  params: {
851
- to: z5.array(z5.any()).length(0).optional(),
852
- from: z5.array(z5.any()).length(0).optional()
938
+ to: z6.array(z6.any()).length(0).optional(),
939
+ from: z6.array(z6.any()).length(0).optional()
853
940
  },
854
941
  result: {
855
- to: AddressZod2,
856
- from: AddressZod2
942
+ to: AddressZod3,
943
+ from: AddressZod3
857
944
  }
858
945
  },
859
946
  xyoViewer_chainIdAtBlock: {
860
947
  params: {
861
- to: z5.tuple([
948
+ to: z6.tuple([
862
949
  BlockNumberZod2
863
950
  ]),
864
- from: z5.tuple([
951
+ from: z6.tuple([
865
952
  BlockNumberZod2
866
953
  ])
867
954
  },
868
955
  result: {
869
- to: AddressZod2,
870
- from: AddressZod2
956
+ to: AddressZod3,
957
+ from: AddressZod3
871
958
  }
872
959
  },
873
960
  xyoViewer_currentBlock: {
874
961
  params: {
875
- to: z5.array(z5.any()).length(0).optional(),
876
- from: z5.array(z5.any()).length(0).optional()
962
+ to: z6.array(z6.any()).length(0).optional(),
963
+ from: z6.array(z6.any()).length(0).optional()
877
964
  },
878
965
  result: {
879
966
  to: SignedHydratedBlockZod,
@@ -882,18 +969,18 @@ var XyoViewerRpcSchemas = {
882
969
  },
883
970
  xyoViewer_currentBlockHash: {
884
971
  params: {
885
- to: z5.array(z5.any()).length(0).optional(),
886
- from: z5.array(z5.any()).length(0).optional()
972
+ to: z6.array(z6.any()).length(0).optional(),
973
+ from: z6.array(z6.any()).length(0).optional()
887
974
  },
888
975
  result: {
889
- to: HashZod,
890
- from: HashZod
976
+ to: HashZod2,
977
+ from: HashZod2
891
978
  }
892
979
  },
893
980
  xyoViewer_currentBlockNumber: {
894
981
  params: {
895
- to: z5.array(z5.any()).length(0).optional(),
896
- from: z5.array(z5.any()).length(0).optional()
982
+ to: z6.array(z6.any()).length(0).optional(),
983
+ from: z6.array(z6.any()).length(0).optional()
897
984
  },
898
985
  result: {
899
986
  to: XL1BlockNumberZod,
@@ -902,23 +989,23 @@ var XyoViewerRpcSchemas = {
902
989
  },
903
990
  xyoViewer_forkHistory: {
904
991
  params: {
905
- to: z5.array(z5.any()).length(0).optional(),
906
- from: z5.array(z5.any()).length(0).optional()
992
+ to: z6.array(z6.any()).length(0).optional(),
993
+ from: z6.array(z6.any()).length(0).optional()
907
994
  },
908
995
  result: {
909
- to: z5.record(z5.number(), AddressZod2),
910
- from: z5.record(z5.number(), AddressZod2)
996
+ to: z6.record(z6.number(), AddressZod3),
997
+ from: z6.record(z6.number(), AddressZod3)
911
998
  }
912
999
  },
913
1000
  xyoViewer_stakeByStaker: {
914
1001
  params: {
915
- to: z5.tuple([
916
- AddressZod2,
917
- z5.number()
1002
+ to: z6.tuple([
1003
+ AddressZod3,
1004
+ z6.number()
918
1005
  ]),
919
- from: z5.tuple([
920
- AddressZod2,
921
- z5.number()
1006
+ from: z6.tuple([
1007
+ AddressZod3,
1008
+ z6.number()
922
1009
  ])
923
1010
  },
924
1011
  result: {
@@ -928,11 +1015,11 @@ var XyoViewerRpcSchemas = {
928
1015
  },
929
1016
  xyoViewer_stakeById: {
930
1017
  params: {
931
- to: z5.tuple([
932
- z5.number()
1018
+ to: z6.tuple([
1019
+ z6.number()
933
1020
  ]),
934
- from: z5.tuple([
935
- z5.number()
1021
+ from: z6.tuple([
1022
+ z6.number()
936
1023
  ])
937
1024
  },
938
1025
  result: {
@@ -942,82 +1029,83 @@ var XyoViewerRpcSchemas = {
942
1029
  },
943
1030
  xyoViewer_stakesByStaker: {
944
1031
  params: {
945
- to: z5.tuple([
946
- AddressZod2
1032
+ to: z6.tuple([
1033
+ AddressZod3
947
1034
  ]),
948
- from: z5.tuple([
949
- AddressZod2
1035
+ from: z6.tuple([
1036
+ AddressZod3
950
1037
  ])
951
1038
  },
952
1039
  result: {
953
- to: z5.array(StakeToJsonZod),
954
- from: z5.array(JsonToStakeZod)
1040
+ to: z6.array(StakeToJsonZod),
1041
+ from: z6.array(JsonToStakeZod)
955
1042
  }
956
1043
  },
957
1044
  xyoViewer_stakesByStaked: {
958
1045
  params: {
959
- to: z5.tuple([
960
- AddressZod2
1046
+ to: z6.tuple([
1047
+ AddressZod3
961
1048
  ]),
962
- from: z5.tuple([
963
- AddressZod2
1049
+ from: z6.tuple([
1050
+ AddressZod3
964
1051
  ])
965
1052
  },
966
1053
  result: {
967
- to: z5.array(StakeToJsonZod),
968
- from: z5.array(JsonToStakeZod)
1054
+ to: z6.array(StakeToJsonZod),
1055
+ from: z6.array(JsonToStakeZod)
969
1056
  }
970
1057
  },
971
1058
  xyoViewer_transactionByBlockHashAndIndex: {
972
1059
  params: {
973
- to: z5.tuple([
974
- HashZod,
975
- z5.number()
1060
+ to: z6.tuple([
1061
+ HashZod2,
1062
+ z6.number()
976
1063
  ]),
977
- from: z5.tuple([
978
- HashZod,
979
- z5.number()
1064
+ from: z6.tuple([
1065
+ HashZod2,
1066
+ z6.number()
980
1067
  ])
981
1068
  },
982
1069
  result: {
983
- to: SignedHydratedTransactionZod3.nullable(),
984
- from: SignedHydratedTransactionZod3.nullable()
1070
+ to: SignedHydratedTransactionZod2.nullable(),
1071
+ from: SignedHydratedTransactionZod2.nullable()
985
1072
  }
986
1073
  },
987
1074
  xyoViewer_transactionByBlockNumberAndIndex: {
988
1075
  params: {
989
- to: z5.tuple([
990
- z5.number(),
991
- z5.number()
1076
+ to: z6.tuple([
1077
+ z6.number(),
1078
+ z6.number()
992
1079
  ]),
993
- from: z5.tuple([
994
- z5.number(),
995
- z5.number()
1080
+ from: z6.tuple([
1081
+ z6.number(),
1082
+ z6.number()
996
1083
  ])
997
1084
  },
998
1085
  result: {
999
- to: SignedHydratedTransactionZod3.nullable(),
1000
- from: SignedHydratedTransactionZod3.nullable()
1086
+ to: SignedHydratedTransactionZod2.nullable(),
1087
+ from: SignedHydratedTransactionZod2.nullable()
1001
1088
  }
1002
1089
  },
1003
1090
  xyoViewer_transactionByHash: {
1004
1091
  params: {
1005
- to: z5.tuple([
1006
- HashZod
1092
+ to: z6.tuple([
1093
+ HashZod2
1007
1094
  ]),
1008
- from: z5.tuple([
1009
- HashZod
1095
+ from: z6.tuple([
1096
+ HashZod2
1010
1097
  ])
1011
1098
  },
1012
1099
  result: {
1013
- to: SignedHydratedTransactionZod3.nullable(),
1014
- from: SignedHydratedTransactionZod3.nullable()
1100
+ to: SignedHydratedTransactionZod2.nullable(),
1101
+ from: SignedHydratedTransactionZod2.nullable()
1015
1102
  }
1016
1103
  }
1017
1104
  };
1018
1105
 
1019
1106
  // src/types/schema/AllRpcSchemas.ts
1020
1107
  var AllRpcSchemas = {
1108
+ ...AccountBalanceViewerRpcSchemas,
1021
1109
  ...XyoRunnerRpcSchemas,
1022
1110
  ...XyoSignerRpcSchemas,
1023
1111
  ...XyoViewerRpcSchemas,
@@ -1026,49 +1114,49 @@ var AllRpcSchemas = {
1026
1114
  };
1027
1115
 
1028
1116
  // src/types/schema/createRequestSchema.ts
1029
- import * as z6 from "zod";
1030
- var createRequestSchema = /* @__PURE__ */ __name((methodName, paramsSchema = z6.undefined()) => z6.object({
1031
- id: z6.union([
1032
- z6.string(),
1033
- z6.number()
1034
- ]),
1035
- jsonrpc: z6.literal(jsonrpc),
1036
- method: z6.literal(methodName),
1037
- params: paramsSchema
1038
- }), "createRequestSchema");
1039
-
1040
- // src/types/schema/createResponseSchema.ts
1041
1117
  import * as z7 from "zod";
1042
- var createResponseSchema = /* @__PURE__ */ __name((resultSchema = z7.undefined()) => z7.object({
1118
+ var createRequestSchema = /* @__PURE__ */ __name((methodName, paramsSchema = z7.undefined()) => z7.object({
1043
1119
  id: z7.union([
1044
1120
  z7.string(),
1045
1121
  z7.number()
1046
1122
  ]),
1047
1123
  jsonrpc: z7.literal(jsonrpc),
1124
+ method: z7.literal(methodName),
1125
+ params: paramsSchema
1126
+ }), "createRequestSchema");
1127
+
1128
+ // src/types/schema/createResponseSchema.ts
1129
+ import * as z8 from "zod";
1130
+ var createResponseSchema = /* @__PURE__ */ __name((resultSchema = z8.undefined()) => z8.object({
1131
+ id: z8.union([
1132
+ z8.string(),
1133
+ z8.number()
1134
+ ]),
1135
+ jsonrpc: z8.literal(jsonrpc),
1048
1136
  result: resultSchema
1049
1137
  }), "createResponseSchema");
1050
1138
 
1051
1139
  // src/types/schema/DataLakeViewerRpcSchema.ts
1052
- import { HashZod as HashZod2 } from "@xylabs/sdk-js";
1140
+ import { HashZod as HashZod3 } from "@xylabs/sdk-js";
1053
1141
  import { PayloadZod } from "@xyo-network/payload-model";
1054
- import { ArrayBufferToJsonZod, JsonToArrayBufferZod } from "@xyo-network/xl1-protocol-sdk";
1055
- import * as z8 from "zod";
1142
+ import { ArrayBufferToJsonZod, JsonToArrayBufferZod } from "@xyo-network/xl1-protocol";
1143
+ import * as z9 from "zod";
1056
1144
  var DataLakeViewerRpcSchemas = {
1057
1145
  dataLakeViewer_get: {
1058
1146
  params: {
1059
- to: z8.tuple([
1060
- HashZod2
1147
+ to: z9.tuple([
1148
+ HashZod3
1061
1149
  ]),
1062
- from: z8.tuple([
1063
- HashZod2
1150
+ from: z9.tuple([
1151
+ HashZod3
1064
1152
  ])
1065
1153
  },
1066
1154
  result: {
1067
- to: z8.union([
1155
+ to: z9.union([
1068
1156
  PayloadZod,
1069
1157
  ArrayBufferToJsonZod
1070
1158
  ]).optional(),
1071
- from: z8.union([
1159
+ from: z9.union([
1072
1160
  PayloadZod,
1073
1161
  JsonToArrayBufferZod
1074
1162
  ]).optional()
@@ -1076,19 +1164,19 @@ var DataLakeViewerRpcSchemas = {
1076
1164
  },
1077
1165
  dataLakeViewer_getMany: {
1078
1166
  params: {
1079
- to: z8.tuple([
1080
- z8.array(HashZod2)
1167
+ to: z9.tuple([
1168
+ z9.array(HashZod3)
1081
1169
  ]),
1082
- from: z8.tuple([
1083
- z8.array(HashZod2)
1170
+ from: z9.tuple([
1171
+ z9.array(HashZod3)
1084
1172
  ])
1085
1173
  },
1086
1174
  result: {
1087
- to: z8.array(z8.union([
1175
+ to: z9.array(z9.union([
1088
1176
  PayloadZod,
1089
1177
  ArrayBufferToJsonZod
1090
1178
  ])),
1091
- from: z8.array(z8.union([
1179
+ from: z9.array(z9.union([
1092
1180
  PayloadZod,
1093
1181
  JsonToArrayBufferZod
1094
1182
  ]))
@@ -1096,326 +1184,345 @@ var DataLakeViewerRpcSchemas = {
1096
1184
  },
1097
1185
  dataLakeViewer_has: {
1098
1186
  params: {
1099
- to: z8.tuple([
1100
- HashZod2
1187
+ to: z9.tuple([
1188
+ HashZod3
1101
1189
  ]),
1102
- from: z8.tuple([
1103
- HashZod2
1190
+ from: z9.tuple([
1191
+ HashZod3
1104
1192
  ])
1105
1193
  },
1106
1194
  result: {
1107
- to: z8.boolean(),
1108
- from: z8.boolean()
1195
+ to: z9.boolean(),
1196
+ from: z9.boolean()
1197
+ }
1198
+ }
1199
+ };
1200
+
1201
+ // src/types/schema/MempoolViewerRpcSchemas.ts
1202
+ import { SignedHydratedTransactionWithHashMetaZod as SignedHydratedTransactionWithHashMetaZod2 } from "@xyo-network/xl1-protocol";
1203
+ import { PendingTransactionsOptionsZod } from "@xyo-network/xl1-protocol-sdk";
1204
+ import * as z10 from "zod";
1205
+ var MempoolViewerRpcSchemas = {
1206
+ mempoolViewer_pendingTransactions: {
1207
+ params: {
1208
+ to: z10.tuple([
1209
+ PendingTransactionsOptionsZod.optional()
1210
+ ]),
1211
+ from: z10.tuple([
1212
+ PendingTransactionsOptionsZod.optional()
1213
+ ])
1214
+ },
1215
+ result: {
1216
+ to: z10.array(SignedHydratedTransactionWithHashMetaZod2),
1217
+ from: z10.array(SignedHydratedTransactionWithHashMetaZod2)
1109
1218
  }
1110
1219
  }
1111
1220
  };
1112
1221
 
1113
1222
  // src/types/schema/RewardsByPositionViewerRpcSchemas.ts
1114
- import { BigIntToJsonZod as BigIntToJsonZod3, JsonToBigIntZod as JsonToBigIntZod3 } from "@xylabs/sdk-js";
1115
- import { asAttoXL1 } from "@xyo-network/xl1-protocol";
1116
- import { RewardsRangeOptionsZod } from "@xyo-network/xl1-protocol-sdk";
1117
- import z9 from "zod";
1223
+ import { BigIntToJsonZod as BigIntToJsonZod4, JsonToBigIntZod as JsonToBigIntZod4 } from "@xylabs/sdk-js";
1224
+ import { asAttoXL1, RewardsRangeOptionsZod } from "@xyo-network/xl1-protocol";
1225
+ import z11 from "zod";
1118
1226
  var NetworkStakingStepRewardsByPositionViewerRpcSchemas = {
1119
1227
  networkStakingStepRewardsByPositionViewer_bonus: {
1120
1228
  params: {
1121
- from: z9.tuple([
1229
+ from: z11.tuple([
1122
1230
  RewardsRangeOptionsZod.optional()
1123
1231
  ]),
1124
- to: z9.tuple([
1232
+ to: z11.tuple([
1125
1233
  RewardsRangeOptionsZod.optional()
1126
1234
  ])
1127
1235
  },
1128
1236
  result: {
1129
- from: z9.record(z9.number(), JsonToBigIntZod3.transform((val) => asAttoXL1(val))),
1130
- to: z9.record(z9.number(), BigIntToJsonZod3)
1237
+ from: z11.record(z11.number(), JsonToBigIntZod4.transform((val) => asAttoXL1(val))),
1238
+ to: z11.record(z11.number(), BigIntToJsonZod4)
1131
1239
  }
1132
1240
  },
1133
1241
  networkStakingStepRewardsByPositionViewer_claimed: {
1134
1242
  params: {
1135
- from: z9.tuple([
1243
+ from: z11.tuple([
1136
1244
  RewardsRangeOptionsZod.optional()
1137
1245
  ]),
1138
- to: z9.tuple([
1246
+ to: z11.tuple([
1139
1247
  RewardsRangeOptionsZod.optional()
1140
1248
  ])
1141
1249
  },
1142
1250
  result: {
1143
- from: z9.record(z9.number(), BigIntToJsonZod3.transform((val) => asAttoXL1(val))),
1144
- to: z9.record(z9.number(), JsonToBigIntZod3)
1251
+ from: z11.record(z11.number(), BigIntToJsonZod4.transform((val) => asAttoXL1(val))),
1252
+ to: z11.record(z11.number(), JsonToBigIntZod4)
1145
1253
  }
1146
1254
  },
1147
1255
  networkStakingStepRewardsByPositionViewer_earned: {
1148
1256
  params: {
1149
- from: z9.tuple([
1257
+ from: z11.tuple([
1150
1258
  RewardsRangeOptionsZod.optional()
1151
1259
  ]),
1152
- to: z9.tuple([
1260
+ to: z11.tuple([
1153
1261
  RewardsRangeOptionsZod.optional()
1154
1262
  ])
1155
1263
  },
1156
1264
  result: {
1157
- from: z9.record(z9.number(), BigIntToJsonZod3.transform((val) => asAttoXL1(val))),
1158
- to: z9.record(z9.number(), JsonToBigIntZod3)
1265
+ from: z11.record(z11.number(), BigIntToJsonZod4.transform((val) => asAttoXL1(val))),
1266
+ to: z11.record(z11.number(), JsonToBigIntZod4)
1159
1267
  }
1160
1268
  },
1161
1269
  networkStakingStepRewardsByPositionViewer_total: {
1162
1270
  params: {
1163
- from: z9.tuple([
1271
+ from: z11.tuple([
1164
1272
  RewardsRangeOptionsZod.optional()
1165
1273
  ]),
1166
- to: z9.tuple([
1274
+ to: z11.tuple([
1167
1275
  RewardsRangeOptionsZod.optional()
1168
1276
  ])
1169
1277
  },
1170
1278
  result: {
1171
- from: z9.record(z9.number(), BigIntToJsonZod3.transform((val) => asAttoXL1(val))),
1172
- to: z9.record(z9.number(), JsonToBigIntZod3)
1279
+ from: z11.record(z11.number(), BigIntToJsonZod4.transform((val) => asAttoXL1(val))),
1280
+ to: z11.record(z11.number(), JsonToBigIntZod4)
1173
1281
  }
1174
1282
  },
1175
1283
  networkStakingStepRewardsByPositionViewer_unclaimed: {
1176
1284
  params: {
1177
- from: z9.tuple([
1285
+ from: z11.tuple([
1178
1286
  RewardsRangeOptionsZod.optional()
1179
1287
  ]),
1180
- to: z9.tuple([
1288
+ to: z11.tuple([
1181
1289
  RewardsRangeOptionsZod.optional()
1182
1290
  ])
1183
1291
  },
1184
1292
  result: {
1185
- from: z9.record(z9.number(), BigIntToJsonZod3.transform((val) => asAttoXL1(val))),
1186
- to: z9.record(z9.number(), JsonToBigIntZod3)
1293
+ from: z11.record(z11.number(), BigIntToJsonZod4.transform((val) => asAttoXL1(val))),
1294
+ to: z11.record(z11.number(), JsonToBigIntZod4)
1187
1295
  }
1188
1296
  }
1189
1297
  };
1190
1298
 
1191
1299
  // src/types/schema/RewardsByStakerViewerRpcSchemas.ts
1192
- import { AddressZod as AddressZod3, BigIntToJsonZod as BigIntToJsonZod4, JsonToBigIntZod as JsonToBigIntZod4 } from "@xylabs/sdk-js";
1193
- import { RewardsRangeOptionsZod as RewardsRangeOptionsZod2 } from "@xyo-network/xl1-protocol-sdk";
1194
- import z10 from "zod";
1300
+ import { AddressZod as AddressZod4, BigIntToJsonZod as BigIntToJsonZod5, JsonToBigIntZod as JsonToBigIntZod5 } from "@xylabs/sdk-js";
1301
+ import { RewardsRangeOptionsZod as RewardsRangeOptionsZod2 } from "@xyo-network/xl1-protocol";
1302
+ import z12 from "zod";
1195
1303
  var NetworkStakingStepRewardsByStakerViewerRpcSchemas = {
1196
1304
  networkStakingStepRewardsByStakerViewer_bonus: {
1197
1305
  params: {
1198
- from: z10.tuple([
1306
+ from: z12.tuple([
1199
1307
  RewardsRangeOptionsZod2.optional()
1200
1308
  ]),
1201
- to: z10.tuple([
1309
+ to: z12.tuple([
1202
1310
  RewardsRangeOptionsZod2.optional()
1203
1311
  ])
1204
1312
  },
1205
1313
  result: {
1206
- from: z10.record(AddressZod3, BigIntToJsonZod4),
1207
- to: z10.record(AddressZod3, JsonToBigIntZod4)
1314
+ from: z12.record(AddressZod4, BigIntToJsonZod5),
1315
+ to: z12.record(AddressZod4, JsonToBigIntZod5)
1208
1316
  }
1209
1317
  },
1210
1318
  networkStakingStepRewardsByStakerViewer_claimed: {
1211
1319
  params: {
1212
- from: z10.tuple([
1320
+ from: z12.tuple([
1213
1321
  RewardsRangeOptionsZod2.optional()
1214
1322
  ]),
1215
- to: z10.tuple([
1323
+ to: z12.tuple([
1216
1324
  RewardsRangeOptionsZod2.optional()
1217
1325
  ])
1218
1326
  },
1219
1327
  result: {
1220
- from: z10.record(AddressZod3, BigIntToJsonZod4),
1221
- to: z10.record(AddressZod3, JsonToBigIntZod4)
1328
+ from: z12.record(AddressZod4, BigIntToJsonZod5),
1329
+ to: z12.record(AddressZod4, JsonToBigIntZod5)
1222
1330
  }
1223
1331
  },
1224
1332
  networkStakingStepRewardsByStakerViewer_earned: {
1225
1333
  params: {
1226
- from: z10.tuple([
1334
+ from: z12.tuple([
1227
1335
  RewardsRangeOptionsZod2.optional()
1228
1336
  ]),
1229
- to: z10.tuple([
1337
+ to: z12.tuple([
1230
1338
  RewardsRangeOptionsZod2.optional()
1231
1339
  ])
1232
1340
  },
1233
1341
  result: {
1234
- from: z10.record(AddressZod3, BigIntToJsonZod4),
1235
- to: z10.record(AddressZod3, JsonToBigIntZod4)
1342
+ from: z12.record(AddressZod4, BigIntToJsonZod5),
1343
+ to: z12.record(AddressZod4, JsonToBigIntZod5)
1236
1344
  }
1237
1345
  },
1238
1346
  networkStakingStepRewardsByStakerViewer_total: {
1239
1347
  params: {
1240
- from: z10.tuple([
1348
+ from: z12.tuple([
1241
1349
  RewardsRangeOptionsZod2.optional()
1242
1350
  ]),
1243
- to: z10.tuple([
1351
+ to: z12.tuple([
1244
1352
  RewardsRangeOptionsZod2.optional()
1245
1353
  ])
1246
1354
  },
1247
1355
  result: {
1248
- from: z10.record(AddressZod3, BigIntToJsonZod4),
1249
- to: z10.record(AddressZod3, JsonToBigIntZod4)
1356
+ from: z12.record(AddressZod4, BigIntToJsonZod5),
1357
+ to: z12.record(AddressZod4, JsonToBigIntZod5)
1250
1358
  }
1251
1359
  },
1252
1360
  networkStakingStepRewardsByStakerViewer_unclaimed: {
1253
1361
  params: {
1254
- from: z10.tuple([
1362
+ from: z12.tuple([
1255
1363
  RewardsRangeOptionsZod2.optional()
1256
1364
  ]),
1257
- to: z10.tuple([
1365
+ to: z12.tuple([
1258
1366
  RewardsRangeOptionsZod2.optional()
1259
1367
  ])
1260
1368
  },
1261
1369
  result: {
1262
- from: z10.record(AddressZod3, BigIntToJsonZod4),
1263
- to: z10.record(AddressZod3, JsonToBigIntZod4)
1370
+ from: z12.record(AddressZod4, BigIntToJsonZod5),
1371
+ to: z12.record(AddressZod4, JsonToBigIntZod5)
1264
1372
  }
1265
1373
  }
1266
1374
  };
1267
1375
 
1268
1376
  // src/types/schema/RewardsByStepViewerRpcSchemas.ts
1269
- import { AddressZod as AddressZod4, BigIntToJsonZod as BigIntToJsonZod5, JsonToBigIntZod as JsonToBigIntZod5 } from "@xylabs/sdk-js";
1270
- import { RewardsRangeOptionsZod as RewardsRangeOptionsZod3 } from "@xyo-network/xl1-protocol-sdk";
1271
- import z11 from "zod";
1377
+ import { AddressZod as AddressZod5, BigIntToJsonZod as BigIntToJsonZod6, JsonToBigIntZod as JsonToBigIntZod6 } from "@xylabs/sdk-js";
1378
+ import { RewardsRangeOptionsZod as RewardsRangeOptionsZod3 } from "@xyo-network/xl1-protocol";
1379
+ import z13 from "zod";
1272
1380
  var NetworkStakingStepRewardsByStepViewerRpcSchemas = {
1273
1381
  networkStakingStepRewardsByStepViewer_bonus: {
1274
1382
  params: {
1275
- from: z11.tuple([
1383
+ from: z13.tuple([
1276
1384
  RewardsRangeOptionsZod3.optional()
1277
1385
  ]),
1278
- to: z11.tuple([
1386
+ to: z13.tuple([
1279
1387
  RewardsRangeOptionsZod3.optional()
1280
1388
  ])
1281
1389
  },
1282
1390
  result: {
1283
- from: z11.record(AddressZod4, BigIntToJsonZod5),
1284
- to: z11.record(AddressZod4, JsonToBigIntZod5)
1391
+ from: z13.record(AddressZod5, BigIntToJsonZod6),
1392
+ to: z13.record(AddressZod5, JsonToBigIntZod6)
1285
1393
  }
1286
1394
  },
1287
1395
  networkStakingStepRewardsByStepViewer_claimed: {
1288
1396
  params: {
1289
- from: z11.tuple([
1397
+ from: z13.tuple([
1290
1398
  RewardsRangeOptionsZod3.optional()
1291
1399
  ]),
1292
- to: z11.tuple([
1400
+ to: z13.tuple([
1293
1401
  RewardsRangeOptionsZod3.optional()
1294
1402
  ])
1295
1403
  },
1296
1404
  result: {
1297
- from: z11.record(AddressZod4, BigIntToJsonZod5),
1298
- to: z11.record(AddressZod4, JsonToBigIntZod5)
1405
+ from: z13.record(AddressZod5, BigIntToJsonZod6),
1406
+ to: z13.record(AddressZod5, JsonToBigIntZod6)
1299
1407
  }
1300
1408
  },
1301
1409
  networkStakingStepRewardsByStepViewer_earned: {
1302
1410
  params: {
1303
- from: z11.tuple([
1411
+ from: z13.tuple([
1304
1412
  RewardsRangeOptionsZod3.optional()
1305
1413
  ]),
1306
- to: z11.tuple([
1414
+ to: z13.tuple([
1307
1415
  RewardsRangeOptionsZod3.optional()
1308
1416
  ])
1309
1417
  },
1310
1418
  result: {
1311
- from: z11.record(AddressZod4, BigIntToJsonZod5),
1312
- to: z11.record(AddressZod4, JsonToBigIntZod5)
1419
+ from: z13.record(AddressZod5, BigIntToJsonZod6),
1420
+ to: z13.record(AddressZod5, JsonToBigIntZod6)
1313
1421
  }
1314
1422
  },
1315
1423
  networkStakingStepRewardsByStepViewer_total: {
1316
1424
  params: {
1317
- from: z11.tuple([
1425
+ from: z13.tuple([
1318
1426
  RewardsRangeOptionsZod3.optional()
1319
1427
  ]),
1320
- to: z11.tuple([
1428
+ to: z13.tuple([
1321
1429
  RewardsRangeOptionsZod3.optional()
1322
1430
  ])
1323
1431
  },
1324
1432
  result: {
1325
- from: z11.record(AddressZod4, BigIntToJsonZod5),
1326
- to: z11.record(AddressZod4, JsonToBigIntZod5)
1433
+ from: z13.record(AddressZod5, BigIntToJsonZod6),
1434
+ to: z13.record(AddressZod5, JsonToBigIntZod6)
1327
1435
  }
1328
1436
  },
1329
1437
  networkStakingStepRewardsByStepViewer_unclaimed: {
1330
1438
  params: {
1331
- from: z11.tuple([
1439
+ from: z13.tuple([
1332
1440
  RewardsRangeOptionsZod3.optional()
1333
1441
  ]),
1334
- to: z11.tuple([
1442
+ to: z13.tuple([
1335
1443
  RewardsRangeOptionsZod3.optional()
1336
1444
  ])
1337
1445
  },
1338
1446
  result: {
1339
- from: z11.record(AddressZod4, BigIntToJsonZod5),
1340
- to: z11.record(AddressZod4, JsonToBigIntZod5)
1447
+ from: z13.record(AddressZod5, BigIntToJsonZod6),
1448
+ to: z13.record(AddressZod5, JsonToBigIntZod6)
1341
1449
  }
1342
1450
  }
1343
1451
  };
1344
1452
 
1345
1453
  // src/types/schema/RewardsTotalViewerRpcSchemas.ts
1346
- import { BigIntToJsonZod as BigIntToJsonZod6, JsonToBigIntZod as JsonToBigIntZod6 } from "@xylabs/sdk-js";
1347
- import { asAttoXL1 as asAttoXL12 } from "@xyo-network/xl1-protocol";
1348
- import { RewardsRangeOptionsZod as RewardsRangeOptionsZod4 } from "@xyo-network/xl1-protocol-sdk";
1349
- import * as z12 from "zod";
1454
+ import { BigIntToJsonZod as BigIntToJsonZod7, JsonToBigIntZod as JsonToBigIntZod7 } from "@xylabs/sdk-js";
1455
+ import { asAttoXL1 as asAttoXL12, RewardsRangeOptionsZod as RewardsRangeOptionsZod4 } from "@xyo-network/xl1-protocol";
1456
+ import * as z14 from "zod";
1350
1457
  var NetworkStakingStepRewardsTotalViewerRpcSchemas = {
1351
1458
  networkStakingStepRewardsTotalViewer_bonus: {
1352
1459
  params: {
1353
- from: z12.tuple([
1460
+ from: z14.tuple([
1354
1461
  RewardsRangeOptionsZod4.optional()
1355
1462
  ]),
1356
- to: z12.tuple([
1463
+ to: z14.tuple([
1357
1464
  RewardsRangeOptionsZod4.optional()
1358
1465
  ])
1359
1466
  },
1360
1467
  result: {
1361
- from: JsonToBigIntZod6.transform((val) => asAttoXL12(val)),
1362
- to: BigIntToJsonZod6
1468
+ from: JsonToBigIntZod7.transform((val) => asAttoXL12(val)),
1469
+ to: BigIntToJsonZod7
1363
1470
  }
1364
1471
  },
1365
1472
  networkStakingStepRewardsTotalViewer_claimed: {
1366
1473
  params: {
1367
- from: z12.tuple([
1474
+ from: z14.tuple([
1368
1475
  RewardsRangeOptionsZod4.optional()
1369
1476
  ]),
1370
- to: z12.tuple([
1477
+ to: z14.tuple([
1371
1478
  RewardsRangeOptionsZod4.optional()
1372
1479
  ])
1373
1480
  },
1374
1481
  result: {
1375
- from: JsonToBigIntZod6.transform((val) => asAttoXL12(val)),
1376
- to: BigIntToJsonZod6
1482
+ from: JsonToBigIntZod7.transform((val) => asAttoXL12(val)),
1483
+ to: BigIntToJsonZod7
1377
1484
  }
1378
1485
  },
1379
1486
  networkStakingStepRewardsTotalViewer_earned: {
1380
1487
  params: {
1381
- from: z12.tuple([
1488
+ from: z14.tuple([
1382
1489
  RewardsRangeOptionsZod4.optional()
1383
1490
  ]),
1384
- to: z12.tuple([
1491
+ to: z14.tuple([
1385
1492
  RewardsRangeOptionsZod4.optional()
1386
1493
  ])
1387
1494
  },
1388
1495
  result: {
1389
- from: JsonToBigIntZod6.transform((val) => asAttoXL12(val)),
1390
- to: BigIntToJsonZod6
1496
+ from: JsonToBigIntZod7.transform((val) => asAttoXL12(val)),
1497
+ to: BigIntToJsonZod7
1391
1498
  }
1392
1499
  },
1393
1500
  networkStakingStepRewardsTotalViewer_total: {
1394
1501
  params: {
1395
- from: z12.tuple([
1502
+ from: z14.tuple([
1396
1503
  RewardsRangeOptionsZod4.optional()
1397
1504
  ]),
1398
- to: z12.tuple([
1505
+ to: z14.tuple([
1399
1506
  RewardsRangeOptionsZod4.optional()
1400
1507
  ])
1401
1508
  },
1402
1509
  result: {
1403
- from: JsonToBigIntZod6.transform((val) => asAttoXL12(val)),
1404
- to: BigIntToJsonZod6
1510
+ from: JsonToBigIntZod7.transform((val) => asAttoXL12(val)),
1511
+ to: BigIntToJsonZod7
1405
1512
  }
1406
1513
  },
1407
1514
  networkStakingStepRewardsTotalViewer_unclaimed: {
1408
1515
  params: {
1409
- from: z12.tuple([
1516
+ from: z14.tuple([
1410
1517
  RewardsRangeOptionsZod4.optional()
1411
1518
  ]),
1412
- to: z12.tuple([
1519
+ to: z14.tuple([
1413
1520
  RewardsRangeOptionsZod4.optional()
1414
1521
  ])
1415
1522
  },
1416
1523
  result: {
1417
- from: JsonToBigIntZod6.transform((val) => asAttoXL12(val)),
1418
- to: BigIntToJsonZod6
1524
+ from: JsonToBigIntZod7.transform((val) => asAttoXL12(val)),
1525
+ to: BigIntToJsonZod7
1419
1526
  }
1420
1527
  }
1421
1528
  };
@@ -1424,72 +1531,71 @@ var NetworkStakingStepRewardsTotalViewerRpcSchemas = {
1424
1531
  var NetworkStakingStepRewardsViewerRpcSchemas = {};
1425
1532
 
1426
1533
  // src/types/schema/TimeSyncViewerRpcSchema.ts
1427
- import { TimePayloadZod } from "@xyo-network/xl1-protocol";
1428
- import { TimeDomainZod } from "@xyo-network/xl1-protocol-sdk";
1429
- import * as z13 from "zod";
1534
+ import { TimeDomainZod, TimePayloadZod } from "@xyo-network/xl1-protocol";
1535
+ import * as z15 from "zod";
1430
1536
  var TimeSyncViewerRpcSchemas = {
1431
1537
  timeSyncViewer_convertTime: {
1432
1538
  params: {
1433
- from: z13.tuple([
1539
+ from: z15.tuple([
1434
1540
  TimeDomainZod,
1435
1541
  TimeDomainZod,
1436
- z13.number()
1542
+ z15.number()
1437
1543
  ]),
1438
- to: z13.tuple([
1544
+ to: z15.tuple([
1439
1545
  TimeDomainZod,
1440
1546
  TimeDomainZod,
1441
- z13.number()
1547
+ z15.number()
1442
1548
  ])
1443
1549
  },
1444
1550
  result: {
1445
- from: z13.number(),
1446
- to: z13.number()
1551
+ from: z15.number(),
1552
+ to: z15.number()
1447
1553
  }
1448
1554
  },
1449
1555
  timeSyncViewer_currentTime: {
1450
1556
  params: {
1451
- from: z13.tuple([
1557
+ from: z15.tuple([
1452
1558
  TimeDomainZod
1453
1559
  ]),
1454
- to: z13.tuple([
1560
+ to: z15.tuple([
1455
1561
  TimeDomainZod
1456
1562
  ])
1457
1563
  },
1458
1564
  result: {
1459
- from: z13.tuple([
1565
+ from: z15.tuple([
1460
1566
  TimeDomainZod,
1461
- z13.number()
1567
+ z15.number()
1462
1568
  ]),
1463
- to: z13.tuple([
1569
+ to: z15.tuple([
1464
1570
  TimeDomainZod,
1465
- z13.number()
1571
+ z15.number()
1466
1572
  ])
1467
1573
  }
1468
1574
  },
1469
1575
  timeSyncViewer_currentTimeAndHash: {
1470
1576
  params: {
1471
- from: z13.tuple([
1577
+ from: z15.tuple([
1472
1578
  TimeDomainZod
1473
1579
  ]),
1474
- to: z13.tuple([
1580
+ to: z15.tuple([
1475
1581
  TimeDomainZod
1476
1582
  ])
1477
1583
  },
1478
1584
  result: {
1479
- from: z13.tuple([
1480
- z13.number(),
1481
- z13.nullable(z13.string())
1585
+ from: z15.tuple([
1586
+ z15.number(),
1587
+ z15.nullable(z15.string())
1482
1588
  ]),
1483
- to: z13.tuple([
1484
- z13.number(),
1485
- z13.nullable(z13.string())
1589
+ to: z15.tuple([
1590
+ z15.number(),
1591
+ z15.nullable(z15.string())
1486
1592
  ])
1487
1593
  }
1488
1594
  },
1489
1595
  timeSyncViewer_currentTimePayload: {
1490
1596
  params: {
1491
- from: z13.tuple([]),
1492
- to: z13.tuple([])
1597
+ from: z15.tuple([]),
1598
+ to: z15.tuple([])
1493
1599
  },
1494
1600
  result: {
1495
1601
  from: TimePayloadZod,
@@ -1543,18 +1649,21 @@ var rpcEngineFromConnection = /* @__PURE__ */ __name((connection, networkStakeVi
1543
1649
 
1544
1650
  // src/transport/HttpRpcTransport.ts
1545
1651
  import { axiosJsonConfig } from "@xylabs/axios";
1546
- import { isError, isUndefinedOrNull } from "@xylabs/sdk-js";
1652
+ import { isDefined, isError, isUndefinedOrNull } from "@xylabs/sdk-js";
1547
1653
  import { Axios, isAxiosError } from "axios";
1548
1654
  import { v4 } from "uuid";
1655
+ import * as z16 from "zod";
1549
1656
  var HttpRpcTransport = class {
1550
1657
  static {
1551
1658
  __name(this, "HttpRpcTransport");
1552
1659
  }
1660
+ _passThrough;
1553
1661
  _rpcUrl;
1554
1662
  _schemas;
1555
- constructor(rpcUrl, schemas) {
1663
+ constructor(rpcUrl, schemas, passThrough = false) {
1556
1664
  this._rpcUrl = rpcUrl;
1557
1665
  this._schemas = schemas;
1666
+ this._passThrough = passThrough;
1558
1667
  }
1559
1668
  async sendRequest(method, params) {
1560
1669
  return await this.callRpc(this._rpcUrl, this._schemas, method, params);
@@ -1567,15 +1676,19 @@ var HttpRpcTransport = class {
1567
1676
  id,
1568
1677
  method
1569
1678
  };
1679
+ const schema = schemas[method];
1570
1680
  if (params) {
1571
- body.params = schemas[method].params.to.parse(params);
1681
+ body.params = isDefined(schema) ? schema.params.to.parse(params) : this._passThrough ? z16.json().parse(params) : void 0;
1682
+ if (!isDefined(body.params)) {
1683
+ throw new Error(`RPC method ${String(method)} missing schema`);
1684
+ }
1572
1685
  }
1573
1686
  const res = await new Axios(axiosJsonConfig()).post(url, body);
1574
- const json = res.data;
1575
- if (isUndefinedOrNull(json) || json.error) {
1576
- throw new Error(json.error.message);
1687
+ const json2 = res.data;
1688
+ if (isUndefinedOrNull(json2) || json2.error) {
1689
+ throw new Error(json2.error.message);
1577
1690
  }
1578
- return schemas[method].result.from.parse(json.result);
1691
+ return schemas[method].result.from.parse(json2.result);
1579
1692
  } catch (ex) {
1580
1693
  let message = isError(ex) ? ex.message : String(ex);
1581
1694
  if (isAxiosError(ex)) {
@@ -1684,6 +1797,56 @@ var NodeXyoRunner = class {
1684
1797
  }, "getPendingArchivist");
1685
1798
  };
1686
1799
 
1800
+ // src/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewer.ts
1801
+ import { asAttoXL1 as asAttoXL13 } from "@xyo-network/xl1-protocol";
1802
+
1803
+ // src/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewerMethods.ts
1804
+ var JsonRpcAccountBalanceViewerMethods = class {
1805
+ static {
1806
+ __name(this, "JsonRpcAccountBalanceViewerMethods");
1807
+ }
1808
+ transport;
1809
+ constructor(transport) {
1810
+ this.transport = transport;
1811
+ }
1812
+ async accountsBalances(address, headOrRange) {
1813
+ return await this.transport.sendRequest("accountBalanceViewer_accountsBalances", headOrRange ? [
1814
+ address,
1815
+ headOrRange
1816
+ ] : [
1817
+ address
1818
+ ]);
1819
+ }
1820
+ async accountsBalancesHistory(address, headOrRange) {
1821
+ return await this.transport.sendRequest("accountBalanceViewer_accountsBalancesHistory", headOrRange ? [
1822
+ address,
1823
+ headOrRange
1824
+ ] : [
1825
+ address
1826
+ ]);
1827
+ }
1828
+ };
1829
+
1830
+ // src/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewer.ts
1831
+ var JsonRpcAccountBalanceViewer = class extends JsonRpcAccountBalanceViewerMethods {
1832
+ static {
1833
+ __name(this, "JsonRpcAccountBalanceViewer");
1834
+ }
1835
+ constructor(transport) {
1836
+ super(transport);
1837
+ }
1838
+ async accountBalance(address, headOrRange) {
1839
+ return (await this.accountsBalances([
1840
+ address
1841
+ ], headOrRange))[address] ?? asAttoXL13(0);
1842
+ }
1843
+ async accountBalanceHistory(address, headOrRange) {
1844
+ return (await this.accountsBalancesHistory([
1845
+ address
1846
+ ], headOrRange))[address] ?? [];
1847
+ }
1848
+ };
1849
+
1687
1850
  // src/provider/viewer/JsonRpcViewer.ts
1688
1851
  var JsonRpcViewer = class {
1689
1852
  static {
@@ -1795,8 +1958,8 @@ var JsonRpcTimeSyncViewer = class extends JsonRpcTimeSyncViewerMethods {
1795
1958
  };
1796
1959
 
1797
1960
  // src/provider/viewer/JsonRpcXyoViewer.ts
1798
- import { isDefined, isHash } from "@xylabs/sdk-js";
1799
- import { asAttoXL1 as asAttoXL13, asHydratedBlock } from "@xyo-network/xl1-protocol";
1961
+ import { isDefined as isDefined2, isHash } from "@xylabs/sdk-js";
1962
+ import { asAttoXL1 as asAttoXL14, asSignedHydratedBlockWithHashMeta } from "@xyo-network/xl1-protocol";
1800
1963
  var JsonRpcXyoViewer = class {
1801
1964
  static {
1802
1965
  __name(this, "JsonRpcXyoViewer");
@@ -1811,7 +1974,7 @@ var JsonRpcXyoViewer = class {
1811
1974
  return this.providers?.networkStakeViewer;
1812
1975
  }
1813
1976
  async accountBalance(address, headOrRange) {
1814
- if (isDefined(headOrRange)) {
1977
+ if (isDefined2(headOrRange)) {
1815
1978
  if (isHash(headOrRange)) {
1816
1979
  return await this.transport.sendRequest("xyoViewer_accountBalance", [
1817
1980
  address,
@@ -1828,7 +1991,7 @@ var JsonRpcXyoViewer = class {
1828
1991
  ]);
1829
1992
  }
1830
1993
  async accountBalanceHistory(address, headOrRange) {
1831
- if (isDefined(headOrRange)) {
1994
+ if (isDefined2(headOrRange)) {
1832
1995
  if (isHash(headOrRange)) {
1833
1996
  return await this.transport.sendRequest("xyoViewer_accountBalanceHistory", [
1834
1997
  address,
@@ -1851,12 +2014,12 @@ var JsonRpcXyoViewer = class {
1851
2014
  throw new Error("Method not implemented.");
1852
2015
  }
1853
2016
  async blockByHash(hash) {
1854
- return asHydratedBlock(await this.transport.sendRequest("xyoViewer_blockByHash", [
2017
+ return asSignedHydratedBlockWithHashMeta(await this.transport.sendRequest("xyoViewer_blockByHash", [
1855
2018
  hash
1856
2019
  ])) ?? null;
1857
2020
  }
1858
2021
  async blockByNumber(blockNumber) {
1859
- return asHydratedBlock(await this.transport.sendRequest("xyoViewer_blockByNumber", [
2022
+ return asSignedHydratedBlockWithHashMeta(await this.transport.sendRequest("xyoViewer_blockByNumber", [
1860
2023
  blockNumber
1861
2024
  ])) ?? null;
1862
2025
  }
@@ -1864,9 +2027,7 @@ var JsonRpcXyoViewer = class {
1864
2027
  return (await this.transport.sendRequest("xyoViewer_blocksByHash", [
1865
2028
  hash,
1866
2029
  limit
1867
- ])).map((b) => asHydratedBlock(b, {
1868
- required: true
1869
- }));
2030
+ ])).map((b) => asSignedHydratedBlockWithHashMeta(b, true));
1870
2031
  }
1871
2032
  async chainId() {
1872
2033
  return await this.transport.sendRequest("xyoViewer_chainId");
@@ -1877,9 +2038,7 @@ var JsonRpcXyoViewer = class {
1877
2038
  ]);
1878
2039
  }
1879
2040
  async currentBlock() {
1880
- return asHydratedBlock(await this.transport.sendRequest("xyoViewer_currentBlock"), {
1881
- required: true
1882
- });
2041
+ return asSignedHydratedBlockWithHashMeta(await this.transport.sendRequest("xyoViewer_currentBlock"), true);
1883
2042
  }
1884
2043
  async currentBlockHash() {
1885
2044
  return await this.transport.sendRequest("xyoViewer_currentBlockHash");
@@ -2028,7 +2187,7 @@ var JsonRpcXyoViewer = class {
2028
2187
  ]);
2029
2188
  }
2030
2189
  async transferBalance(address) {
2031
- return asAttoXL13(await this.transport.sendRequest("xyoViewer_transferBalance", [
2190
+ return asAttoXL14(await this.transport.sendRequest("xyoViewer_transferBalance", [
2032
2191
  address
2033
2192
  ]));
2034
2193
  }
@@ -2036,7 +2195,7 @@ var JsonRpcXyoViewer = class {
2036
2195
  throw new Error("Method not implemented.");
2037
2196
  }
2038
2197
  async transferPairBalance(pair) {
2039
- return asAttoXL13(await this.transport.sendRequest("xyoViewer_transferPairBalance", [
2198
+ return asAttoXL14(await this.transport.sendRequest("xyoViewer_transferPairBalance", [
2040
2199
  pair
2041
2200
  ]));
2042
2201
  }
@@ -2162,18 +2321,21 @@ var RpcXyoSigner = class {
2162
2321
  return await this.transport.sendRequest("xyoSigner_address");
2163
2322
  }
2164
2323
  async signTransaction(tx) {
2165
- const ret = await this.transport.sendRequest("xyoSigner_signTransaction", [
2324
+ return await this.transport.sendRequest("xyoSigner_signTransaction", [
2166
2325
  tx
2167
2326
  ]);
2168
- return ret;
2169
2327
  }
2170
2328
  };
2171
2329
  export {
2330
+ AccountBalanceViewerRpcNamespace,
2331
+ AccountBalanceViewerRpcSchemas,
2172
2332
  AllRpcSchemas,
2173
2333
  DataLakeViewerRpcNamespace,
2174
2334
  DataLakeViewerRpcSchemas,
2175
2335
  HttpRpcTransport,
2176
2336
  HttpRpcXyoConnection,
2337
+ JsonRpcAccountBalanceViewer,
2338
+ JsonRpcAccountBalanceViewerMethods,
2177
2339
  JsonRpcDataLakeViewer,
2178
2340
  JsonRpcDataLakeViewerMethods,
2179
2341
  JsonRpcErrorCodes,
@@ -2187,6 +2349,7 @@ export {
2187
2349
  JsonRpcXyoRunner,
2188
2350
  JsonRpcXyoViewer,
2189
2351
  MemoryRpcTransport,
2352
+ MempoolViewerRpcSchemas,
2190
2353
  NetworkStakeViewerRpcNamespace,
2191
2354
  NetworkStakeViewerRpcSchemas,
2192
2355
  NetworkStakingStepRewardsByPositionViewerRpcNamespace,