@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.
- package/dist/neutral/engine/rpcMethodHandlersFromAccountBalanceViewer.d.ts +4 -0
- package/dist/neutral/engine/rpcMethodHandlersFromAccountBalanceViewer.d.ts.map +1 -0
- package/dist/neutral/engine/rpcMethodHandlersFromConnection.d.ts.map +1 -1
- package/dist/neutral/engine/rpcMethodHandlersFromNetworkStakeStepRewardsByPositionViewer.d.ts +4 -0
- package/dist/neutral/engine/rpcMethodHandlersFromNetworkStakeStepRewardsByPositionViewer.d.ts.map +1 -0
- package/dist/neutral/index.mjs +695 -532
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/provider/signer/JsonRpcXyoSigner.d.ts.map +1 -1
- package/dist/neutral/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewer.d.ts +12 -0
- package/dist/neutral/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewer.d.ts.map +1 -0
- package/dist/neutral/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewerMethods.d.ts +12 -0
- package/dist/neutral/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewerMethods.d.ts.map +1 -0
- package/dist/neutral/provider/viewer/JsonRpcAccountBalanceViewer/index.d.ts +3 -0
- package/dist/neutral/provider/viewer/JsonRpcAccountBalanceViewer/index.d.ts.map +1 -0
- package/dist/neutral/provider/viewer/JsonRpcMempoolViewer/JsonRpcMempoolViewer.d.ts +8 -0
- package/dist/neutral/provider/viewer/JsonRpcMempoolViewer/JsonRpcMempoolViewer.d.ts.map +1 -0
- package/dist/neutral/provider/viewer/JsonRpcMempoolViewer/JsonRpcMempoolViewerMethods.d.ts +10 -0
- package/dist/neutral/provider/viewer/JsonRpcMempoolViewer/JsonRpcMempoolViewerMethods.d.ts.map +1 -0
- package/dist/neutral/provider/viewer/JsonRpcMempoolViewer/index.d.ts +3 -0
- package/dist/neutral/provider/viewer/JsonRpcMempoolViewer/index.d.ts.map +1 -0
- package/dist/neutral/provider/viewer/JsonRpcXyoViewer.d.ts +5 -5
- package/dist/neutral/provider/viewer/JsonRpcXyoViewer.d.ts.map +1 -1
- package/dist/neutral/provider/viewer/index.d.ts +1 -0
- package/dist/neutral/provider/viewer/index.d.ts.map +1 -1
- package/dist/neutral/transport/HttpRpcTransport.d.ts +3 -2
- package/dist/neutral/transport/HttpRpcTransport.d.ts.map +1 -1
- package/dist/neutral/types/AccountBalanceViewerRpc.d.ts +10 -0
- package/dist/neutral/types/AccountBalanceViewerRpc.d.ts.map +1 -0
- package/dist/neutral/types/MempoolViewerRpc.d.ts +10 -0
- package/dist/neutral/types/MempoolViewerRpc.d.ts.map +1 -0
- package/dist/neutral/types/index.d.ts +1 -0
- package/dist/neutral/types/index.d.ts.map +1 -1
- package/dist/neutral/types/schema/AccountBalanceViewerRpcSchemas.d.ts +120 -0
- package/dist/neutral/types/schema/AccountBalanceViewerRpcSchemas.d.ts.map +1 -0
- package/dist/neutral/types/schema/AllRpcSchemas.d.ts +325 -418
- package/dist/neutral/types/schema/AllRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/DataLakeViewerRpcSchema.d.ts +4 -12
- package/dist/neutral/types/schema/DataLakeViewerRpcSchema.d.ts.map +1 -1
- package/dist/neutral/types/schema/MempoolViewerRpcSchemas.d.ts +74 -0
- package/dist/neutral/types/schema/MempoolViewerRpcSchemas.d.ts.map +1 -0
- package/dist/neutral/types/schema/RewardsByPositionViewerRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/RewardsTotalViewerRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/StepViewerRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/TimeSyncViewerRpcSchema.d.ts.map +1 -1
- package/dist/neutral/types/schema/XyoRunnerRpcSchemas.d.ts +16 -30
- package/dist/neutral/types/schema/XyoRunnerRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/XyoSignerRpcSchemas.d.ts +41 -90
- package/dist/neutral/types/schema/XyoSignerRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/XyoViewerRpcSchemas.d.ts +152 -298
- package/dist/neutral/types/schema/XyoViewerRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/index.d.ts +2 -0
- package/dist/neutral/types/schema/index.d.ts.map +1 -1
- package/dist/node/engine/rpcMethodHandlersFromAccountBalanceViewer.d.ts +4 -0
- package/dist/node/engine/rpcMethodHandlersFromAccountBalanceViewer.d.ts.map +1 -0
- package/dist/node/engine/rpcMethodHandlersFromConnection.d.ts.map +1 -1
- package/dist/node/engine/rpcMethodHandlersFromNetworkStakeStepRewardsByPositionViewer.d.ts +4 -0
- package/dist/node/engine/rpcMethodHandlersFromNetworkStakeStepRewardsByPositionViewer.d.ts.map +1 -0
- package/dist/node/index-node.mjs +695 -532
- package/dist/node/index-node.mjs.map +1 -1
- package/dist/node/provider/signer/JsonRpcXyoSigner.d.ts.map +1 -1
- package/dist/node/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewer.d.ts +12 -0
- package/dist/node/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewer.d.ts.map +1 -0
- package/dist/node/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewerMethods.d.ts +12 -0
- package/dist/node/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewerMethods.d.ts.map +1 -0
- package/dist/node/provider/viewer/JsonRpcAccountBalanceViewer/index.d.ts +3 -0
- package/dist/node/provider/viewer/JsonRpcAccountBalanceViewer/index.d.ts.map +1 -0
- package/dist/node/provider/viewer/JsonRpcMempoolViewer/JsonRpcMempoolViewer.d.ts +8 -0
- package/dist/node/provider/viewer/JsonRpcMempoolViewer/JsonRpcMempoolViewer.d.ts.map +1 -0
- package/dist/node/provider/viewer/JsonRpcMempoolViewer/JsonRpcMempoolViewerMethods.d.ts +10 -0
- package/dist/node/provider/viewer/JsonRpcMempoolViewer/JsonRpcMempoolViewerMethods.d.ts.map +1 -0
- package/dist/node/provider/viewer/JsonRpcMempoolViewer/index.d.ts +3 -0
- package/dist/node/provider/viewer/JsonRpcMempoolViewer/index.d.ts.map +1 -0
- package/dist/node/provider/viewer/JsonRpcXyoViewer.d.ts +5 -5
- package/dist/node/provider/viewer/JsonRpcXyoViewer.d.ts.map +1 -1
- package/dist/node/provider/viewer/index.d.ts +1 -0
- package/dist/node/provider/viewer/index.d.ts.map +1 -1
- package/dist/node/transport/HttpRpcTransport.d.ts +3 -2
- package/dist/node/transport/HttpRpcTransport.d.ts.map +1 -1
- package/dist/node/types/AccountBalanceViewerRpc.d.ts +10 -0
- package/dist/node/types/AccountBalanceViewerRpc.d.ts.map +1 -0
- package/dist/node/types/MempoolViewerRpc.d.ts +10 -0
- package/dist/node/types/MempoolViewerRpc.d.ts.map +1 -0
- package/dist/node/types/index.d.ts +1 -0
- package/dist/node/types/index.d.ts.map +1 -1
- package/dist/node/types/schema/AccountBalanceViewerRpcSchemas.d.ts +120 -0
- package/dist/node/types/schema/AccountBalanceViewerRpcSchemas.d.ts.map +1 -0
- package/dist/node/types/schema/AllRpcSchemas.d.ts +325 -418
- package/dist/node/types/schema/AllRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/DataLakeViewerRpcSchema.d.ts +4 -12
- package/dist/node/types/schema/DataLakeViewerRpcSchema.d.ts.map +1 -1
- package/dist/node/types/schema/MempoolViewerRpcSchemas.d.ts +74 -0
- package/dist/node/types/schema/MempoolViewerRpcSchemas.d.ts.map +1 -0
- package/dist/node/types/schema/RewardsByPositionViewerRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/RewardsTotalViewerRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/StepViewerRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/TimeSyncViewerRpcSchema.d.ts.map +1 -1
- package/dist/node/types/schema/XyoRunnerRpcSchemas.d.ts +16 -30
- package/dist/node/types/schema/XyoRunnerRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/XyoSignerRpcSchemas.d.ts +41 -90
- package/dist/node/types/schema/XyoSignerRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/XyoViewerRpcSchemas.d.ts +152 -298
- package/dist/node/types/schema/XyoViewerRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/index.d.ts +2 -0
- package/dist/node/types/schema/index.d.ts.map +1 -1
- package/package.json +18 -19
- package/src/engine/rpcMethodHandlersFromAccountBalanceViewer.ts +10 -0
- package/src/engine/rpcMethodHandlersFromConnection.ts +8 -0
- package/src/engine/rpcMethodHandlersFromNetworkStakeStepRewardsByPositionViewer.ts +14 -0
- package/src/provider/signer/JsonRpcXyoSigner.ts +1 -2
- package/src/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewer.ts +23 -0
- package/src/provider/viewer/JsonRpcAccountBalanceViewer/JsonRpcAccountBalanceViewerMethods.ts +31 -0
- package/src/provider/viewer/JsonRpcAccountBalanceViewer/index.ts +2 -0
- package/src/provider/viewer/JsonRpcMempoolViewer/JsonRpcMempoolViewer.ts +11 -0
- package/src/provider/viewer/JsonRpcMempoolViewer/JsonRpcMempoolViewerMethods.ts +21 -0
- package/src/provider/viewer/JsonRpcMempoolViewer/index.ts +2 -0
- package/src/provider/viewer/JsonRpcXyoViewer.ts +10 -10
- package/src/provider/viewer/index.ts +1 -0
- package/src/transport/HttpRpcTransport.ts +15 -4
- package/src/types/AccountBalanceViewerRpc.ts +16 -0
- package/src/types/MempoolViewerRpc.ts +16 -0
- package/src/types/index.ts +1 -0
- package/src/types/schema/AccountBalanceViewerRpcSchemas.ts +33 -0
- package/src/types/schema/AllRpcSchemas.ts +2 -0
- package/src/types/schema/DataLakeViewerRpcSchema.ts +1 -1
- package/src/types/schema/MempoolViewerRpcSchemas.ts +19 -0
- package/src/types/schema/RewardsByPositionViewerRpcSchemas.ts +1 -2
- package/src/types/schema/RewardsByStakerViewerRpcSchemas.ts +1 -1
- package/src/types/schema/RewardsByStepViewerRpcSchemas.ts +1 -1
- package/src/types/schema/RewardsTotalViewerRpcSchemas.ts +1 -2
- package/src/types/schema/StepViewerRpcSchemas.ts +3 -2
- package/src/types/schema/TimeSyncViewerRpcSchema.ts +1 -2
- package/src/types/schema/XyoPermissionsRpcSchemas.ts +1 -1
- package/src/types/schema/XyoRunnerRpcSchemas.ts +1 -1
- package/src/types/schema/XyoSignerRpcSchemas.ts +3 -4
- package/src/types/schema/XyoViewerRpcSchemas.ts +3 -4
- package/src/types/schema/index.ts +2 -0
package/dist/node/index-node.mjs
CHANGED
|
@@ -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
|
|
262
|
+
import * as z2 from "zod";
|
|
173
263
|
var NetworkStakeViewerRpcSchemas = {
|
|
174
264
|
networkStakeViewer_active: {
|
|
175
265
|
params: {
|
|
176
|
-
from:
|
|
266
|
+
from: z2.tuple([
|
|
177
267
|
BlockNumberZod.optional()
|
|
178
268
|
]),
|
|
179
|
-
to:
|
|
269
|
+
to: z2.tuple([
|
|
180
270
|
BlockNumberZod.optional()
|
|
181
271
|
])
|
|
182
272
|
},
|
|
183
273
|
result: {
|
|
184
|
-
from:
|
|
185
|
-
|
|
186
|
-
|
|
274
|
+
from: z2.tuple([
|
|
275
|
+
JsonToBigIntZod2,
|
|
276
|
+
z2.number()
|
|
187
277
|
]),
|
|
188
|
-
to:
|
|
189
|
-
|
|
190
|
-
|
|
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
|
|
198
|
-
import * as
|
|
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:
|
|
203
|
-
from:
|
|
292
|
+
to: z3.array(z3.any()).length(0),
|
|
293
|
+
from: z3.array(z3.any()).length(0)
|
|
204
294
|
},
|
|
205
295
|
result: {
|
|
206
|
-
to:
|
|
207
|
-
from:
|
|
296
|
+
to: z3.array(InvokerPermissionZod),
|
|
297
|
+
from: z3.array(InvokerPermissionZod)
|
|
208
298
|
}
|
|
209
299
|
},
|
|
210
300
|
xyoPermissions_requestPermissions: {
|
|
211
301
|
params: {
|
|
212
|
-
to:
|
|
213
|
-
|
|
302
|
+
to: z3.tuple([
|
|
303
|
+
z3.array(PermissionRequestZod)
|
|
214
304
|
]),
|
|
215
|
-
from:
|
|
216
|
-
|
|
305
|
+
from: z3.tuple([
|
|
306
|
+
z3.array(PermissionRequestZod)
|
|
217
307
|
])
|
|
218
308
|
},
|
|
219
309
|
result: {
|
|
220
|
-
to:
|
|
221
|
-
from:
|
|
310
|
+
to: z3.array(RequestedPermissionZod),
|
|
311
|
+
from: z3.array(RequestedPermissionZod)
|
|
222
312
|
}
|
|
223
313
|
},
|
|
224
314
|
xyoPermissions_revokePermissions: {
|
|
225
315
|
params: {
|
|
226
|
-
to:
|
|
227
|
-
|
|
316
|
+
to: z3.tuple([
|
|
317
|
+
z3.array(PermissionRequestZod)
|
|
228
318
|
]),
|
|
229
|
-
from:
|
|
230
|
-
|
|
319
|
+
from: z3.tuple([
|
|
320
|
+
z3.array(PermissionRequestZod)
|
|
231
321
|
])
|
|
232
322
|
},
|
|
233
323
|
result: {
|
|
234
|
-
to:
|
|
235
|
-
from:
|
|
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
|
|
243
|
-
import * as
|
|
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:
|
|
337
|
+
to: z4.tuple([
|
|
248
338
|
SignedHydratedTransactionZod
|
|
249
339
|
]),
|
|
250
|
-
from:
|
|
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 {
|
|
264
|
-
import {
|
|
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:
|
|
270
|
-
from:
|
|
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:
|
|
274
|
-
from:
|
|
362
|
+
to: AddressZod2,
|
|
363
|
+
from: AddressZod2
|
|
275
364
|
}
|
|
276
365
|
},
|
|
277
366
|
xyoSigner_signTransaction: {
|
|
278
367
|
params: {
|
|
279
|
-
to:
|
|
368
|
+
to: z5.tuple([
|
|
280
369
|
UnsignedHydratedTransactionZod
|
|
281
370
|
]),
|
|
282
|
-
from:
|
|
371
|
+
from: z5.tuple([
|
|
283
372
|
UnsignedHydratedTransactionZod
|
|
284
373
|
])
|
|
285
374
|
},
|
|
286
375
|
result: {
|
|
287
|
-
to:
|
|
288
|
-
from:
|
|
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
|
|
297
|
-
import { BlockNumberZod as BlockNumberZod2, BlockRangeZod, StepIdentityZod, XL1BlockNumberZod, XL1BlockRangeZod } from "@xyo-network/xl1-protocol";
|
|
298
|
-
import { AccountBalanceHistoryItemZod
|
|
299
|
-
import * as
|
|
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:
|
|
304
|
-
|
|
390
|
+
to: z6.tuple([
|
|
391
|
+
AddressZod3
|
|
305
392
|
]),
|
|
306
|
-
from:
|
|
307
|
-
|
|
393
|
+
from: z6.tuple([
|
|
394
|
+
AddressZod3
|
|
308
395
|
])
|
|
309
396
|
},
|
|
310
397
|
result: {
|
|
311
|
-
to:
|
|
312
|
-
from:
|
|
398
|
+
to: BigIntToJsonZod3,
|
|
399
|
+
from: JsonToBigIntZod3
|
|
313
400
|
}
|
|
314
401
|
},
|
|
315
402
|
xyoViewer_networkStakeStepRewardAddressReward: {
|
|
316
403
|
params: {
|
|
317
|
-
to:
|
|
404
|
+
to: z6.tuple([
|
|
318
405
|
StepIdentityZod,
|
|
319
|
-
|
|
406
|
+
AddressZod3
|
|
320
407
|
]),
|
|
321
|
-
from:
|
|
408
|
+
from: z6.tuple([
|
|
322
409
|
StepIdentityZod,
|
|
323
|
-
|
|
410
|
+
AddressZod3
|
|
324
411
|
])
|
|
325
412
|
},
|
|
326
413
|
result: {
|
|
327
|
-
to:
|
|
328
|
-
from:
|
|
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:
|
|
334
|
-
|
|
420
|
+
to: z6.tuple([
|
|
421
|
+
AddressZod3
|
|
335
422
|
]),
|
|
336
|
-
from:
|
|
337
|
-
|
|
423
|
+
from: z6.tuple([
|
|
424
|
+
AddressZod3
|
|
338
425
|
])
|
|
339
426
|
},
|
|
340
427
|
result: {
|
|
341
|
-
to:
|
|
342
|
-
from:
|
|
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:
|
|
434
|
+
to: z6.tuple([
|
|
348
435
|
StepIdentityZod,
|
|
349
|
-
|
|
436
|
+
AddressZod3
|
|
350
437
|
]),
|
|
351
|
-
from:
|
|
438
|
+
from: z6.tuple([
|
|
352
439
|
StepIdentityZod,
|
|
353
|
-
|
|
440
|
+
AddressZod3
|
|
354
441
|
])
|
|
355
442
|
},
|
|
356
443
|
result: {
|
|
357
|
-
to:
|
|
358
|
-
|
|
359
|
-
|
|
444
|
+
to: z6.tuple([
|
|
445
|
+
BigIntToJsonZod3,
|
|
446
|
+
BigIntToJsonZod3
|
|
360
447
|
]),
|
|
361
|
-
from:
|
|
362
|
-
|
|
363
|
-
|
|
448
|
+
from: z6.tuple([
|
|
449
|
+
JsonToBigIntZod3,
|
|
450
|
+
JsonToBigIntZod3
|
|
364
451
|
])
|
|
365
452
|
}
|
|
366
453
|
},
|
|
367
454
|
xyoViewer_networkStakeStepRewardWeightForAddress: {
|
|
368
455
|
params: {
|
|
369
|
-
to:
|
|
456
|
+
to: z6.tuple([
|
|
370
457
|
StepIdentityZod,
|
|
371
|
-
|
|
458
|
+
AddressZod3
|
|
372
459
|
]),
|
|
373
|
-
from:
|
|
460
|
+
from: z6.tuple([
|
|
374
461
|
StepIdentityZod,
|
|
375
|
-
|
|
462
|
+
AddressZod3
|
|
376
463
|
])
|
|
377
464
|
},
|
|
378
465
|
result: {
|
|
379
|
-
to:
|
|
380
|
-
from:
|
|
466
|
+
to: BigIntToJsonZod3,
|
|
467
|
+
from: JsonToBigIntZod3
|
|
381
468
|
}
|
|
382
469
|
},
|
|
383
470
|
xyoViewer_networkStakeStepRewardUnclaimedByAddress: {
|
|
384
471
|
params: {
|
|
385
|
-
to:
|
|
386
|
-
|
|
472
|
+
to: z6.tuple([
|
|
473
|
+
AddressZod3
|
|
387
474
|
]),
|
|
388
|
-
from:
|
|
389
|
-
|
|
475
|
+
from: z6.tuple([
|
|
476
|
+
AddressZod3
|
|
390
477
|
])
|
|
391
478
|
},
|
|
392
479
|
result: {
|
|
393
|
-
to:
|
|
394
|
-
from:
|
|
480
|
+
to: BigIntToJsonZod3,
|
|
481
|
+
from: JsonToBigIntZod3
|
|
395
482
|
}
|
|
396
483
|
},
|
|
397
484
|
xyoViewer_networkStakeStepRewardPoolRewards: {
|
|
398
485
|
params: {
|
|
399
|
-
to:
|
|
486
|
+
to: z6.tuple([
|
|
400
487
|
StepIdentityZod
|
|
401
488
|
]),
|
|
402
|
-
from:
|
|
489
|
+
from: z6.tuple([
|
|
403
490
|
StepIdentityZod
|
|
404
491
|
])
|
|
405
492
|
},
|
|
406
493
|
result: {
|
|
407
|
-
to:
|
|
408
|
-
from:
|
|
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:
|
|
500
|
+
to: z6.tuple([
|
|
414
501
|
StepIdentityZod,
|
|
415
|
-
|
|
502
|
+
z6.number()
|
|
416
503
|
]),
|
|
417
|
-
from:
|
|
504
|
+
from: z6.tuple([
|
|
418
505
|
StepIdentityZod,
|
|
419
|
-
|
|
506
|
+
z6.number()
|
|
420
507
|
])
|
|
421
508
|
},
|
|
422
509
|
result: {
|
|
423
|
-
to:
|
|
424
|
-
from:
|
|
510
|
+
to: BigIntToJsonZod3,
|
|
511
|
+
from: JsonToBigIntZod3
|
|
425
512
|
}
|
|
426
513
|
},
|
|
427
514
|
xyoViewer_networkStakeStepRewardPotentialPositionLoss: {
|
|
428
515
|
params: {
|
|
429
|
-
to:
|
|
516
|
+
to: z6.tuple([
|
|
430
517
|
StepIdentityZod,
|
|
431
|
-
|
|
518
|
+
z6.number()
|
|
432
519
|
]),
|
|
433
|
-
from:
|
|
520
|
+
from: z6.tuple([
|
|
434
521
|
StepIdentityZod,
|
|
435
|
-
|
|
522
|
+
z6.number()
|
|
436
523
|
])
|
|
437
524
|
},
|
|
438
525
|
result: {
|
|
439
|
-
to:
|
|
440
|
-
from:
|
|
526
|
+
to: BigIntToJsonZod3,
|
|
527
|
+
from: JsonToBigIntZod3
|
|
441
528
|
}
|
|
442
529
|
},
|
|
443
530
|
xyoViewer_networkStakeStepRewardForStep: {
|
|
444
531
|
params: {
|
|
445
|
-
to:
|
|
532
|
+
to: z6.tuple([
|
|
446
533
|
StepIdentityZod
|
|
447
534
|
]),
|
|
448
|
-
from:
|
|
535
|
+
from: z6.tuple([
|
|
449
536
|
StepIdentityZod
|
|
450
537
|
])
|
|
451
538
|
},
|
|
452
539
|
result: {
|
|
453
|
-
to:
|
|
454
|
-
from:
|
|
540
|
+
to: BigIntToJsonZod3,
|
|
541
|
+
from: JsonToBigIntZod3
|
|
455
542
|
}
|
|
456
543
|
},
|
|
457
544
|
xyoViewer_networkStakeStepRewardRandomizer: {
|
|
458
545
|
params: {
|
|
459
|
-
to:
|
|
546
|
+
to: z6.tuple([
|
|
460
547
|
StepIdentityZod
|
|
461
548
|
]),
|
|
462
|
-
from:
|
|
549
|
+
from: z6.tuple([
|
|
463
550
|
StepIdentityZod
|
|
464
551
|
])
|
|
465
552
|
},
|
|
466
553
|
result: {
|
|
467
|
-
to:
|
|
468
|
-
from:
|
|
554
|
+
to: BigIntToJsonZod3,
|
|
555
|
+
from: JsonToBigIntZod3
|
|
469
556
|
}
|
|
470
557
|
},
|
|
471
558
|
xyoViewer_networkStakeStepRewardStakerCount: {
|
|
472
559
|
params: {
|
|
473
|
-
to:
|
|
560
|
+
to: z6.tuple([
|
|
474
561
|
StepIdentityZod
|
|
475
562
|
]),
|
|
476
|
-
from:
|
|
563
|
+
from: z6.tuple([
|
|
477
564
|
StepIdentityZod
|
|
478
565
|
])
|
|
479
566
|
},
|
|
480
567
|
result: {
|
|
481
|
-
to:
|
|
482
|
-
from:
|
|
568
|
+
to: z6.number(),
|
|
569
|
+
from: z6.number()
|
|
483
570
|
}
|
|
484
571
|
},
|
|
485
572
|
xyoViewer_networkStakeStepRewardPoolShares: {
|
|
486
573
|
params: {
|
|
487
|
-
to:
|
|
574
|
+
to: z6.tuple([
|
|
488
575
|
StepIdentityZod
|
|
489
576
|
]),
|
|
490
|
-
from:
|
|
577
|
+
from: z6.tuple([
|
|
491
578
|
StepIdentityZod
|
|
492
579
|
])
|
|
493
580
|
},
|
|
494
581
|
result: {
|
|
495
|
-
to:
|
|
496
|
-
from:
|
|
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:
|
|
588
|
+
to: z6.tuple([
|
|
502
589
|
StepIdentityZod,
|
|
503
|
-
|
|
590
|
+
z6.number()
|
|
504
591
|
]),
|
|
505
|
-
from:
|
|
592
|
+
from: z6.tuple([
|
|
506
593
|
StepIdentityZod,
|
|
507
|
-
|
|
594
|
+
z6.number()
|
|
508
595
|
])
|
|
509
596
|
},
|
|
510
597
|
result: {
|
|
511
|
-
to:
|
|
512
|
-
|
|
513
|
-
|
|
598
|
+
to: z6.tuple([
|
|
599
|
+
BigIntToJsonZod3,
|
|
600
|
+
BigIntToJsonZod3
|
|
514
601
|
]),
|
|
515
|
-
from:
|
|
516
|
-
|
|
517
|
-
|
|
602
|
+
from: z6.tuple([
|
|
603
|
+
JsonToBigIntZod3,
|
|
604
|
+
JsonToBigIntZod3
|
|
518
605
|
])
|
|
519
606
|
}
|
|
520
607
|
},
|
|
521
608
|
xyoViewer_networkStakeStepRewardForPosition: {
|
|
522
609
|
params: {
|
|
523
|
-
to:
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
610
|
+
to: z6.tuple([
|
|
611
|
+
z6.number(),
|
|
612
|
+
z6.tuple([
|
|
613
|
+
z6.number(),
|
|
614
|
+
z6.number()
|
|
528
615
|
])
|
|
529
616
|
]),
|
|
530
|
-
from:
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
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:
|
|
540
|
-
|
|
541
|
-
|
|
626
|
+
to: z6.tuple([
|
|
627
|
+
BigIntToJsonZod3,
|
|
628
|
+
BigIntToJsonZod3
|
|
542
629
|
]),
|
|
543
|
-
from:
|
|
544
|
-
|
|
545
|
-
|
|
630
|
+
from: z6.tuple([
|
|
631
|
+
JsonToBigIntZod3,
|
|
632
|
+
JsonToBigIntZod3
|
|
546
633
|
])
|
|
547
634
|
}
|
|
548
635
|
},
|
|
549
636
|
xyoViewer_networkStakeStepRewardsForRange: {
|
|
550
637
|
params: {
|
|
551
|
-
to:
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
638
|
+
to: z6.tuple([
|
|
639
|
+
z6.tuple([
|
|
640
|
+
z6.number(),
|
|
641
|
+
z6.number()
|
|
555
642
|
])
|
|
556
643
|
]),
|
|
557
|
-
from:
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
644
|
+
from: z6.tuple([
|
|
645
|
+
z6.tuple([
|
|
646
|
+
z6.number(),
|
|
647
|
+
z6.number()
|
|
561
648
|
])
|
|
562
649
|
])
|
|
563
650
|
},
|
|
564
651
|
result: {
|
|
565
|
-
to:
|
|
566
|
-
from:
|
|
652
|
+
to: BigIntToJsonZod3,
|
|
653
|
+
from: JsonToBigIntZod3
|
|
567
654
|
}
|
|
568
655
|
},
|
|
569
656
|
xyoViewer_networkStakeStepRewardsForStepLevel: {
|
|
570
657
|
params: {
|
|
571
|
-
to:
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
658
|
+
to: z6.tuple([
|
|
659
|
+
z6.number(),
|
|
660
|
+
z6.tuple([
|
|
661
|
+
z6.number(),
|
|
662
|
+
z6.number()
|
|
576
663
|
])
|
|
577
664
|
]),
|
|
578
|
-
from:
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
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:
|
|
588
|
-
from:
|
|
674
|
+
to: BigIntToJsonZod3,
|
|
675
|
+
from: JsonToBigIntZod3
|
|
589
676
|
}
|
|
590
677
|
},
|
|
591
678
|
xyoViewer_networkStakeStepRewardsForPosition: {
|
|
592
679
|
params: {
|
|
593
|
-
to:
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
680
|
+
to: z6.tuple([
|
|
681
|
+
z6.number(),
|
|
682
|
+
z6.tuple([
|
|
683
|
+
z6.number(),
|
|
684
|
+
z6.number()
|
|
598
685
|
])
|
|
599
686
|
]),
|
|
600
|
-
from:
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
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:
|
|
610
|
-
|
|
611
|
-
|
|
696
|
+
to: z6.record(z6.string(), z6.tuple([
|
|
697
|
+
BigIntToJsonZod3,
|
|
698
|
+
BigIntToJsonZod3
|
|
612
699
|
])),
|
|
613
|
-
from:
|
|
614
|
-
|
|
615
|
-
|
|
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:
|
|
622
|
-
|
|
623
|
-
|
|
708
|
+
to: z6.union([
|
|
709
|
+
z6.tuple([
|
|
710
|
+
AddressZod3
|
|
624
711
|
]),
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
712
|
+
z6.tuple([
|
|
713
|
+
AddressZod3,
|
|
714
|
+
z6.union([
|
|
715
|
+
XL1BlockRangeZod2,
|
|
716
|
+
HashZod2
|
|
630
717
|
])
|
|
631
718
|
])
|
|
632
719
|
]),
|
|
633
|
-
from:
|
|
634
|
-
|
|
635
|
-
|
|
720
|
+
from: z6.union([
|
|
721
|
+
z6.tuple([
|
|
722
|
+
AddressZod3
|
|
636
723
|
]),
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
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:
|
|
648
|
-
from:
|
|
734
|
+
to: BigIntToJsonZod3,
|
|
735
|
+
from: JsonToBigIntZod3
|
|
649
736
|
}
|
|
650
737
|
},
|
|
651
738
|
xyoViewer_accountBalanceHistory: {
|
|
652
739
|
params: {
|
|
653
|
-
to:
|
|
654
|
-
|
|
655
|
-
|
|
740
|
+
to: z6.union([
|
|
741
|
+
z6.tuple([
|
|
742
|
+
AddressZod3
|
|
656
743
|
]),
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
744
|
+
z6.tuple([
|
|
745
|
+
AddressZod3,
|
|
746
|
+
z6.union([
|
|
747
|
+
XL1BlockRangeZod2,
|
|
748
|
+
HashZod2
|
|
662
749
|
])
|
|
663
750
|
])
|
|
664
751
|
]),
|
|
665
|
-
from:
|
|
666
|
-
|
|
667
|
-
|
|
752
|
+
from: z6.union([
|
|
753
|
+
z6.tuple([
|
|
754
|
+
AddressZod3
|
|
668
755
|
]),
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
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:
|
|
680
|
-
from:
|
|
766
|
+
to: z6.array(AccountBalanceHistoryItemZod2),
|
|
767
|
+
from: z6.array(AccountBalanceHistoryItemZod2)
|
|
681
768
|
}
|
|
682
769
|
},
|
|
683
770
|
xyoViewer_accountsBalances: {
|
|
684
771
|
params: {
|
|
685
|
-
to:
|
|
686
|
-
|
|
687
|
-
|
|
772
|
+
to: z6.union([
|
|
773
|
+
z6.tuple([
|
|
774
|
+
z6.array(AddressZod3)
|
|
688
775
|
]),
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
776
|
+
z6.tuple([
|
|
777
|
+
z6.array(AddressZod3),
|
|
778
|
+
z6.union([
|
|
779
|
+
XL1BlockRangeZod2,
|
|
780
|
+
HashZod2
|
|
694
781
|
])
|
|
695
782
|
])
|
|
696
783
|
]),
|
|
697
|
-
from:
|
|
698
|
-
|
|
699
|
-
|
|
784
|
+
from: z6.union([
|
|
785
|
+
z6.tuple([
|
|
786
|
+
z6.array(AddressZod3)
|
|
700
787
|
]),
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
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:
|
|
712
|
-
from:
|
|
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:
|
|
718
|
-
|
|
719
|
-
|
|
804
|
+
to: z6.union([
|
|
805
|
+
z6.tuple([
|
|
806
|
+
z6.array(AddressZod3)
|
|
720
807
|
]),
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
808
|
+
z6.tuple([
|
|
809
|
+
z6.array(AddressZod3),
|
|
810
|
+
z6.union([
|
|
811
|
+
XL1BlockRangeZod2,
|
|
812
|
+
HashZod2
|
|
726
813
|
])
|
|
727
814
|
])
|
|
728
815
|
]),
|
|
729
|
-
from:
|
|
730
|
-
|
|
731
|
-
|
|
816
|
+
from: z6.union([
|
|
817
|
+
z6.tuple([
|
|
818
|
+
z6.array(AddressZod3)
|
|
732
819
|
]),
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
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:
|
|
744
|
-
from:
|
|
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:
|
|
836
|
+
to: z6.tuple([
|
|
750
837
|
TransferPairZod
|
|
751
838
|
]),
|
|
752
|
-
from:
|
|
839
|
+
from: z6.tuple([
|
|
753
840
|
TransferPairZod
|
|
754
841
|
])
|
|
755
842
|
},
|
|
756
843
|
result: {
|
|
757
|
-
to:
|
|
758
|
-
from:
|
|
844
|
+
to: BigIntToJsonZod3,
|
|
845
|
+
from: JsonToBigIntZod3
|
|
759
846
|
}
|
|
760
847
|
},
|
|
761
848
|
xyoViewer_transferPairBalanceHistory: {
|
|
762
849
|
params: {
|
|
763
|
-
to:
|
|
850
|
+
to: z6.tuple([
|
|
764
851
|
TransferPairZod
|
|
765
852
|
]),
|
|
766
|
-
from:
|
|
853
|
+
from: z6.tuple([
|
|
767
854
|
TransferPairZod
|
|
768
855
|
])
|
|
769
856
|
},
|
|
770
857
|
result: {
|
|
771
|
-
to:
|
|
772
|
-
from:
|
|
858
|
+
to: z6.array(AccountBalanceHistoryItemZod2),
|
|
859
|
+
from: z6.array(AccountBalanceHistoryItemZod2)
|
|
773
860
|
}
|
|
774
861
|
},
|
|
775
862
|
xyoViewer_transferBalance: {
|
|
776
863
|
params: {
|
|
777
|
-
to:
|
|
778
|
-
|
|
864
|
+
to: z6.tuple([
|
|
865
|
+
AddressZod3
|
|
779
866
|
]),
|
|
780
|
-
from:
|
|
781
|
-
|
|
867
|
+
from: z6.tuple([
|
|
868
|
+
AddressZod3
|
|
782
869
|
])
|
|
783
870
|
},
|
|
784
871
|
result: {
|
|
785
|
-
to:
|
|
786
|
-
from:
|
|
872
|
+
to: BigIntToJsonZod3,
|
|
873
|
+
from: JsonToBigIntZod3
|
|
787
874
|
}
|
|
788
875
|
},
|
|
789
876
|
xyoViewer_transferBalanceHistory: {
|
|
790
877
|
params: {
|
|
791
|
-
to:
|
|
792
|
-
|
|
878
|
+
to: z6.tuple([
|
|
879
|
+
AddressZod3,
|
|
793
880
|
BlockRangeZod.optional()
|
|
794
881
|
]),
|
|
795
|
-
from:
|
|
796
|
-
|
|
882
|
+
from: z6.tuple([
|
|
883
|
+
AddressZod3,
|
|
797
884
|
BlockRangeZod.optional()
|
|
798
885
|
])
|
|
799
886
|
},
|
|
800
887
|
result: {
|
|
801
|
-
to:
|
|
802
|
-
from:
|
|
888
|
+
to: z6.array(AccountBalanceHistoryItemZod2),
|
|
889
|
+
from: z6.array(AccountBalanceHistoryItemZod2)
|
|
803
890
|
}
|
|
804
891
|
},
|
|
805
892
|
xyoViewer_blockByHash: {
|
|
806
893
|
params: {
|
|
807
|
-
to:
|
|
894
|
+
to: z6.tuple([
|
|
808
895
|
HashToJsonZod2
|
|
809
896
|
]),
|
|
810
|
-
from:
|
|
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:
|
|
822
|
-
|
|
908
|
+
to: z6.tuple([
|
|
909
|
+
z6.number()
|
|
823
910
|
]),
|
|
824
|
-
from:
|
|
825
|
-
|
|
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:
|
|
836
|
-
|
|
837
|
-
|
|
922
|
+
to: z6.tuple([
|
|
923
|
+
HashZod2,
|
|
924
|
+
z6.number().optional()
|
|
838
925
|
]),
|
|
839
|
-
from:
|
|
840
|
-
|
|
841
|
-
|
|
926
|
+
from: z6.tuple([
|
|
927
|
+
HashZod2,
|
|
928
|
+
z6.number().optional()
|
|
842
929
|
])
|
|
843
930
|
},
|
|
844
931
|
result: {
|
|
845
|
-
to:
|
|
846
|
-
from:
|
|
932
|
+
to: z6.array(SignedHydratedBlockZod),
|
|
933
|
+
from: z6.array(SignedHydratedBlockZod)
|
|
847
934
|
}
|
|
848
935
|
},
|
|
849
936
|
xyoViewer_chainId: {
|
|
850
937
|
params: {
|
|
851
|
-
to:
|
|
852
|
-
from:
|
|
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:
|
|
856
|
-
from:
|
|
942
|
+
to: AddressZod3,
|
|
943
|
+
from: AddressZod3
|
|
857
944
|
}
|
|
858
945
|
},
|
|
859
946
|
xyoViewer_chainIdAtBlock: {
|
|
860
947
|
params: {
|
|
861
|
-
to:
|
|
948
|
+
to: z6.tuple([
|
|
862
949
|
BlockNumberZod2
|
|
863
950
|
]),
|
|
864
|
-
from:
|
|
951
|
+
from: z6.tuple([
|
|
865
952
|
BlockNumberZod2
|
|
866
953
|
])
|
|
867
954
|
},
|
|
868
955
|
result: {
|
|
869
|
-
to:
|
|
870
|
-
from:
|
|
956
|
+
to: AddressZod3,
|
|
957
|
+
from: AddressZod3
|
|
871
958
|
}
|
|
872
959
|
},
|
|
873
960
|
xyoViewer_currentBlock: {
|
|
874
961
|
params: {
|
|
875
|
-
to:
|
|
876
|
-
from:
|
|
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:
|
|
886
|
-
from:
|
|
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:
|
|
890
|
-
from:
|
|
976
|
+
to: HashZod2,
|
|
977
|
+
from: HashZod2
|
|
891
978
|
}
|
|
892
979
|
},
|
|
893
980
|
xyoViewer_currentBlockNumber: {
|
|
894
981
|
params: {
|
|
895
|
-
to:
|
|
896
|
-
from:
|
|
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:
|
|
906
|
-
from:
|
|
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:
|
|
910
|
-
from:
|
|
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:
|
|
916
|
-
|
|
917
|
-
|
|
1002
|
+
to: z6.tuple([
|
|
1003
|
+
AddressZod3,
|
|
1004
|
+
z6.number()
|
|
918
1005
|
]),
|
|
919
|
-
from:
|
|
920
|
-
|
|
921
|
-
|
|
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:
|
|
932
|
-
|
|
1018
|
+
to: z6.tuple([
|
|
1019
|
+
z6.number()
|
|
933
1020
|
]),
|
|
934
|
-
from:
|
|
935
|
-
|
|
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:
|
|
946
|
-
|
|
1032
|
+
to: z6.tuple([
|
|
1033
|
+
AddressZod3
|
|
947
1034
|
]),
|
|
948
|
-
from:
|
|
949
|
-
|
|
1035
|
+
from: z6.tuple([
|
|
1036
|
+
AddressZod3
|
|
950
1037
|
])
|
|
951
1038
|
},
|
|
952
1039
|
result: {
|
|
953
|
-
to:
|
|
954
|
-
from:
|
|
1040
|
+
to: z6.array(StakeToJsonZod),
|
|
1041
|
+
from: z6.array(JsonToStakeZod)
|
|
955
1042
|
}
|
|
956
1043
|
},
|
|
957
1044
|
xyoViewer_stakesByStaked: {
|
|
958
1045
|
params: {
|
|
959
|
-
to:
|
|
960
|
-
|
|
1046
|
+
to: z6.tuple([
|
|
1047
|
+
AddressZod3
|
|
961
1048
|
]),
|
|
962
|
-
from:
|
|
963
|
-
|
|
1049
|
+
from: z6.tuple([
|
|
1050
|
+
AddressZod3
|
|
964
1051
|
])
|
|
965
1052
|
},
|
|
966
1053
|
result: {
|
|
967
|
-
to:
|
|
968
|
-
from:
|
|
1054
|
+
to: z6.array(StakeToJsonZod),
|
|
1055
|
+
from: z6.array(JsonToStakeZod)
|
|
969
1056
|
}
|
|
970
1057
|
},
|
|
971
1058
|
xyoViewer_transactionByBlockHashAndIndex: {
|
|
972
1059
|
params: {
|
|
973
|
-
to:
|
|
974
|
-
|
|
975
|
-
|
|
1060
|
+
to: z6.tuple([
|
|
1061
|
+
HashZod2,
|
|
1062
|
+
z6.number()
|
|
976
1063
|
]),
|
|
977
|
-
from:
|
|
978
|
-
|
|
979
|
-
|
|
1064
|
+
from: z6.tuple([
|
|
1065
|
+
HashZod2,
|
|
1066
|
+
z6.number()
|
|
980
1067
|
])
|
|
981
1068
|
},
|
|
982
1069
|
result: {
|
|
983
|
-
to:
|
|
984
|
-
from:
|
|
1070
|
+
to: SignedHydratedTransactionZod2.nullable(),
|
|
1071
|
+
from: SignedHydratedTransactionZod2.nullable()
|
|
985
1072
|
}
|
|
986
1073
|
},
|
|
987
1074
|
xyoViewer_transactionByBlockNumberAndIndex: {
|
|
988
1075
|
params: {
|
|
989
|
-
to:
|
|
990
|
-
|
|
991
|
-
|
|
1076
|
+
to: z6.tuple([
|
|
1077
|
+
z6.number(),
|
|
1078
|
+
z6.number()
|
|
992
1079
|
]),
|
|
993
|
-
from:
|
|
994
|
-
|
|
995
|
-
|
|
1080
|
+
from: z6.tuple([
|
|
1081
|
+
z6.number(),
|
|
1082
|
+
z6.number()
|
|
996
1083
|
])
|
|
997
1084
|
},
|
|
998
1085
|
result: {
|
|
999
|
-
to:
|
|
1000
|
-
from:
|
|
1086
|
+
to: SignedHydratedTransactionZod2.nullable(),
|
|
1087
|
+
from: SignedHydratedTransactionZod2.nullable()
|
|
1001
1088
|
}
|
|
1002
1089
|
},
|
|
1003
1090
|
xyoViewer_transactionByHash: {
|
|
1004
1091
|
params: {
|
|
1005
|
-
to:
|
|
1006
|
-
|
|
1092
|
+
to: z6.tuple([
|
|
1093
|
+
HashZod2
|
|
1007
1094
|
]),
|
|
1008
|
-
from:
|
|
1009
|
-
|
|
1095
|
+
from: z6.tuple([
|
|
1096
|
+
HashZod2
|
|
1010
1097
|
])
|
|
1011
1098
|
},
|
|
1012
1099
|
result: {
|
|
1013
|
-
to:
|
|
1014
|
-
from:
|
|
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
|
|
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
|
|
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
|
|
1055
|
-
import * as
|
|
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:
|
|
1060
|
-
|
|
1147
|
+
to: z9.tuple([
|
|
1148
|
+
HashZod3
|
|
1061
1149
|
]),
|
|
1062
|
-
from:
|
|
1063
|
-
|
|
1150
|
+
from: z9.tuple([
|
|
1151
|
+
HashZod3
|
|
1064
1152
|
])
|
|
1065
1153
|
},
|
|
1066
1154
|
result: {
|
|
1067
|
-
to:
|
|
1155
|
+
to: z9.union([
|
|
1068
1156
|
PayloadZod,
|
|
1069
1157
|
ArrayBufferToJsonZod
|
|
1070
1158
|
]).optional(),
|
|
1071
|
-
from:
|
|
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:
|
|
1080
|
-
|
|
1167
|
+
to: z9.tuple([
|
|
1168
|
+
z9.array(HashZod3)
|
|
1081
1169
|
]),
|
|
1082
|
-
from:
|
|
1083
|
-
|
|
1170
|
+
from: z9.tuple([
|
|
1171
|
+
z9.array(HashZod3)
|
|
1084
1172
|
])
|
|
1085
1173
|
},
|
|
1086
1174
|
result: {
|
|
1087
|
-
to:
|
|
1175
|
+
to: z9.array(z9.union([
|
|
1088
1176
|
PayloadZod,
|
|
1089
1177
|
ArrayBufferToJsonZod
|
|
1090
1178
|
])),
|
|
1091
|
-
from:
|
|
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:
|
|
1100
|
-
|
|
1187
|
+
to: z9.tuple([
|
|
1188
|
+
HashZod3
|
|
1101
1189
|
]),
|
|
1102
|
-
from:
|
|
1103
|
-
|
|
1190
|
+
from: z9.tuple([
|
|
1191
|
+
HashZod3
|
|
1104
1192
|
])
|
|
1105
1193
|
},
|
|
1106
1194
|
result: {
|
|
1107
|
-
to:
|
|
1108
|
-
from:
|
|
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
|
|
1115
|
-
import { asAttoXL1 } from "@xyo-network/xl1-protocol";
|
|
1116
|
-
import
|
|
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:
|
|
1229
|
+
from: z11.tuple([
|
|
1122
1230
|
RewardsRangeOptionsZod.optional()
|
|
1123
1231
|
]),
|
|
1124
|
-
to:
|
|
1232
|
+
to: z11.tuple([
|
|
1125
1233
|
RewardsRangeOptionsZod.optional()
|
|
1126
1234
|
])
|
|
1127
1235
|
},
|
|
1128
1236
|
result: {
|
|
1129
|
-
from:
|
|
1130
|
-
to:
|
|
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:
|
|
1243
|
+
from: z11.tuple([
|
|
1136
1244
|
RewardsRangeOptionsZod.optional()
|
|
1137
1245
|
]),
|
|
1138
|
-
to:
|
|
1246
|
+
to: z11.tuple([
|
|
1139
1247
|
RewardsRangeOptionsZod.optional()
|
|
1140
1248
|
])
|
|
1141
1249
|
},
|
|
1142
1250
|
result: {
|
|
1143
|
-
from:
|
|
1144
|
-
to:
|
|
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:
|
|
1257
|
+
from: z11.tuple([
|
|
1150
1258
|
RewardsRangeOptionsZod.optional()
|
|
1151
1259
|
]),
|
|
1152
|
-
to:
|
|
1260
|
+
to: z11.tuple([
|
|
1153
1261
|
RewardsRangeOptionsZod.optional()
|
|
1154
1262
|
])
|
|
1155
1263
|
},
|
|
1156
1264
|
result: {
|
|
1157
|
-
from:
|
|
1158
|
-
to:
|
|
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:
|
|
1271
|
+
from: z11.tuple([
|
|
1164
1272
|
RewardsRangeOptionsZod.optional()
|
|
1165
1273
|
]),
|
|
1166
|
-
to:
|
|
1274
|
+
to: z11.tuple([
|
|
1167
1275
|
RewardsRangeOptionsZod.optional()
|
|
1168
1276
|
])
|
|
1169
1277
|
},
|
|
1170
1278
|
result: {
|
|
1171
|
-
from:
|
|
1172
|
-
to:
|
|
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:
|
|
1285
|
+
from: z11.tuple([
|
|
1178
1286
|
RewardsRangeOptionsZod.optional()
|
|
1179
1287
|
]),
|
|
1180
|
-
to:
|
|
1288
|
+
to: z11.tuple([
|
|
1181
1289
|
RewardsRangeOptionsZod.optional()
|
|
1182
1290
|
])
|
|
1183
1291
|
},
|
|
1184
1292
|
result: {
|
|
1185
|
-
from:
|
|
1186
|
-
to:
|
|
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
|
|
1193
|
-
import { RewardsRangeOptionsZod as RewardsRangeOptionsZod2 } from "@xyo-network/xl1-protocol
|
|
1194
|
-
import
|
|
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:
|
|
1306
|
+
from: z12.tuple([
|
|
1199
1307
|
RewardsRangeOptionsZod2.optional()
|
|
1200
1308
|
]),
|
|
1201
|
-
to:
|
|
1309
|
+
to: z12.tuple([
|
|
1202
1310
|
RewardsRangeOptionsZod2.optional()
|
|
1203
1311
|
])
|
|
1204
1312
|
},
|
|
1205
1313
|
result: {
|
|
1206
|
-
from:
|
|
1207
|
-
to:
|
|
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:
|
|
1320
|
+
from: z12.tuple([
|
|
1213
1321
|
RewardsRangeOptionsZod2.optional()
|
|
1214
1322
|
]),
|
|
1215
|
-
to:
|
|
1323
|
+
to: z12.tuple([
|
|
1216
1324
|
RewardsRangeOptionsZod2.optional()
|
|
1217
1325
|
])
|
|
1218
1326
|
},
|
|
1219
1327
|
result: {
|
|
1220
|
-
from:
|
|
1221
|
-
to:
|
|
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:
|
|
1334
|
+
from: z12.tuple([
|
|
1227
1335
|
RewardsRangeOptionsZod2.optional()
|
|
1228
1336
|
]),
|
|
1229
|
-
to:
|
|
1337
|
+
to: z12.tuple([
|
|
1230
1338
|
RewardsRangeOptionsZod2.optional()
|
|
1231
1339
|
])
|
|
1232
1340
|
},
|
|
1233
1341
|
result: {
|
|
1234
|
-
from:
|
|
1235
|
-
to:
|
|
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:
|
|
1348
|
+
from: z12.tuple([
|
|
1241
1349
|
RewardsRangeOptionsZod2.optional()
|
|
1242
1350
|
]),
|
|
1243
|
-
to:
|
|
1351
|
+
to: z12.tuple([
|
|
1244
1352
|
RewardsRangeOptionsZod2.optional()
|
|
1245
1353
|
])
|
|
1246
1354
|
},
|
|
1247
1355
|
result: {
|
|
1248
|
-
from:
|
|
1249
|
-
to:
|
|
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:
|
|
1362
|
+
from: z12.tuple([
|
|
1255
1363
|
RewardsRangeOptionsZod2.optional()
|
|
1256
1364
|
]),
|
|
1257
|
-
to:
|
|
1365
|
+
to: z12.tuple([
|
|
1258
1366
|
RewardsRangeOptionsZod2.optional()
|
|
1259
1367
|
])
|
|
1260
1368
|
},
|
|
1261
1369
|
result: {
|
|
1262
|
-
from:
|
|
1263
|
-
to:
|
|
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
|
|
1270
|
-
import { RewardsRangeOptionsZod as RewardsRangeOptionsZod3 } from "@xyo-network/xl1-protocol
|
|
1271
|
-
import
|
|
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:
|
|
1383
|
+
from: z13.tuple([
|
|
1276
1384
|
RewardsRangeOptionsZod3.optional()
|
|
1277
1385
|
]),
|
|
1278
|
-
to:
|
|
1386
|
+
to: z13.tuple([
|
|
1279
1387
|
RewardsRangeOptionsZod3.optional()
|
|
1280
1388
|
])
|
|
1281
1389
|
},
|
|
1282
1390
|
result: {
|
|
1283
|
-
from:
|
|
1284
|
-
to:
|
|
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:
|
|
1397
|
+
from: z13.tuple([
|
|
1290
1398
|
RewardsRangeOptionsZod3.optional()
|
|
1291
1399
|
]),
|
|
1292
|
-
to:
|
|
1400
|
+
to: z13.tuple([
|
|
1293
1401
|
RewardsRangeOptionsZod3.optional()
|
|
1294
1402
|
])
|
|
1295
1403
|
},
|
|
1296
1404
|
result: {
|
|
1297
|
-
from:
|
|
1298
|
-
to:
|
|
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:
|
|
1411
|
+
from: z13.tuple([
|
|
1304
1412
|
RewardsRangeOptionsZod3.optional()
|
|
1305
1413
|
]),
|
|
1306
|
-
to:
|
|
1414
|
+
to: z13.tuple([
|
|
1307
1415
|
RewardsRangeOptionsZod3.optional()
|
|
1308
1416
|
])
|
|
1309
1417
|
},
|
|
1310
1418
|
result: {
|
|
1311
|
-
from:
|
|
1312
|
-
to:
|
|
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:
|
|
1425
|
+
from: z13.tuple([
|
|
1318
1426
|
RewardsRangeOptionsZod3.optional()
|
|
1319
1427
|
]),
|
|
1320
|
-
to:
|
|
1428
|
+
to: z13.tuple([
|
|
1321
1429
|
RewardsRangeOptionsZod3.optional()
|
|
1322
1430
|
])
|
|
1323
1431
|
},
|
|
1324
1432
|
result: {
|
|
1325
|
-
from:
|
|
1326
|
-
to:
|
|
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:
|
|
1439
|
+
from: z13.tuple([
|
|
1332
1440
|
RewardsRangeOptionsZod3.optional()
|
|
1333
1441
|
]),
|
|
1334
|
-
to:
|
|
1442
|
+
to: z13.tuple([
|
|
1335
1443
|
RewardsRangeOptionsZod3.optional()
|
|
1336
1444
|
])
|
|
1337
1445
|
},
|
|
1338
1446
|
result: {
|
|
1339
|
-
from:
|
|
1340
|
-
to:
|
|
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
|
|
1347
|
-
import { asAttoXL1 as asAttoXL12 } from "@xyo-network/xl1-protocol";
|
|
1348
|
-
import
|
|
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:
|
|
1460
|
+
from: z14.tuple([
|
|
1354
1461
|
RewardsRangeOptionsZod4.optional()
|
|
1355
1462
|
]),
|
|
1356
|
-
to:
|
|
1463
|
+
to: z14.tuple([
|
|
1357
1464
|
RewardsRangeOptionsZod4.optional()
|
|
1358
1465
|
])
|
|
1359
1466
|
},
|
|
1360
1467
|
result: {
|
|
1361
|
-
from:
|
|
1362
|
-
to:
|
|
1468
|
+
from: JsonToBigIntZod7.transform((val) => asAttoXL12(val)),
|
|
1469
|
+
to: BigIntToJsonZod7
|
|
1363
1470
|
}
|
|
1364
1471
|
},
|
|
1365
1472
|
networkStakingStepRewardsTotalViewer_claimed: {
|
|
1366
1473
|
params: {
|
|
1367
|
-
from:
|
|
1474
|
+
from: z14.tuple([
|
|
1368
1475
|
RewardsRangeOptionsZod4.optional()
|
|
1369
1476
|
]),
|
|
1370
|
-
to:
|
|
1477
|
+
to: z14.tuple([
|
|
1371
1478
|
RewardsRangeOptionsZod4.optional()
|
|
1372
1479
|
])
|
|
1373
1480
|
},
|
|
1374
1481
|
result: {
|
|
1375
|
-
from:
|
|
1376
|
-
to:
|
|
1482
|
+
from: JsonToBigIntZod7.transform((val) => asAttoXL12(val)),
|
|
1483
|
+
to: BigIntToJsonZod7
|
|
1377
1484
|
}
|
|
1378
1485
|
},
|
|
1379
1486
|
networkStakingStepRewardsTotalViewer_earned: {
|
|
1380
1487
|
params: {
|
|
1381
|
-
from:
|
|
1488
|
+
from: z14.tuple([
|
|
1382
1489
|
RewardsRangeOptionsZod4.optional()
|
|
1383
1490
|
]),
|
|
1384
|
-
to:
|
|
1491
|
+
to: z14.tuple([
|
|
1385
1492
|
RewardsRangeOptionsZod4.optional()
|
|
1386
1493
|
])
|
|
1387
1494
|
},
|
|
1388
1495
|
result: {
|
|
1389
|
-
from:
|
|
1390
|
-
to:
|
|
1496
|
+
from: JsonToBigIntZod7.transform((val) => asAttoXL12(val)),
|
|
1497
|
+
to: BigIntToJsonZod7
|
|
1391
1498
|
}
|
|
1392
1499
|
},
|
|
1393
1500
|
networkStakingStepRewardsTotalViewer_total: {
|
|
1394
1501
|
params: {
|
|
1395
|
-
from:
|
|
1502
|
+
from: z14.tuple([
|
|
1396
1503
|
RewardsRangeOptionsZod4.optional()
|
|
1397
1504
|
]),
|
|
1398
|
-
to:
|
|
1505
|
+
to: z14.tuple([
|
|
1399
1506
|
RewardsRangeOptionsZod4.optional()
|
|
1400
1507
|
])
|
|
1401
1508
|
},
|
|
1402
1509
|
result: {
|
|
1403
|
-
from:
|
|
1404
|
-
to:
|
|
1510
|
+
from: JsonToBigIntZod7.transform((val) => asAttoXL12(val)),
|
|
1511
|
+
to: BigIntToJsonZod7
|
|
1405
1512
|
}
|
|
1406
1513
|
},
|
|
1407
1514
|
networkStakingStepRewardsTotalViewer_unclaimed: {
|
|
1408
1515
|
params: {
|
|
1409
|
-
from:
|
|
1516
|
+
from: z14.tuple([
|
|
1410
1517
|
RewardsRangeOptionsZod4.optional()
|
|
1411
1518
|
]),
|
|
1412
|
-
to:
|
|
1519
|
+
to: z14.tuple([
|
|
1413
1520
|
RewardsRangeOptionsZod4.optional()
|
|
1414
1521
|
])
|
|
1415
1522
|
},
|
|
1416
1523
|
result: {
|
|
1417
|
-
from:
|
|
1418
|
-
to:
|
|
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
|
|
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:
|
|
1539
|
+
from: z15.tuple([
|
|
1434
1540
|
TimeDomainZod,
|
|
1435
1541
|
TimeDomainZod,
|
|
1436
|
-
|
|
1542
|
+
z15.number()
|
|
1437
1543
|
]),
|
|
1438
|
-
to:
|
|
1544
|
+
to: z15.tuple([
|
|
1439
1545
|
TimeDomainZod,
|
|
1440
1546
|
TimeDomainZod,
|
|
1441
|
-
|
|
1547
|
+
z15.number()
|
|
1442
1548
|
])
|
|
1443
1549
|
},
|
|
1444
1550
|
result: {
|
|
1445
|
-
from:
|
|
1446
|
-
to:
|
|
1551
|
+
from: z15.number(),
|
|
1552
|
+
to: z15.number()
|
|
1447
1553
|
}
|
|
1448
1554
|
},
|
|
1449
1555
|
timeSyncViewer_currentTime: {
|
|
1450
1556
|
params: {
|
|
1451
|
-
from:
|
|
1557
|
+
from: z15.tuple([
|
|
1452
1558
|
TimeDomainZod
|
|
1453
1559
|
]),
|
|
1454
|
-
to:
|
|
1560
|
+
to: z15.tuple([
|
|
1455
1561
|
TimeDomainZod
|
|
1456
1562
|
])
|
|
1457
1563
|
},
|
|
1458
1564
|
result: {
|
|
1459
|
-
from:
|
|
1565
|
+
from: z15.tuple([
|
|
1460
1566
|
TimeDomainZod,
|
|
1461
|
-
|
|
1567
|
+
z15.number()
|
|
1462
1568
|
]),
|
|
1463
|
-
to:
|
|
1569
|
+
to: z15.tuple([
|
|
1464
1570
|
TimeDomainZod,
|
|
1465
|
-
|
|
1571
|
+
z15.number()
|
|
1466
1572
|
])
|
|
1467
1573
|
}
|
|
1468
1574
|
},
|
|
1469
1575
|
timeSyncViewer_currentTimeAndHash: {
|
|
1470
1576
|
params: {
|
|
1471
|
-
from:
|
|
1577
|
+
from: z15.tuple([
|
|
1472
1578
|
TimeDomainZod
|
|
1473
1579
|
]),
|
|
1474
|
-
to:
|
|
1580
|
+
to: z15.tuple([
|
|
1475
1581
|
TimeDomainZod
|
|
1476
1582
|
])
|
|
1477
1583
|
},
|
|
1478
1584
|
result: {
|
|
1479
|
-
from:
|
|
1480
|
-
|
|
1481
|
-
|
|
1585
|
+
from: z15.tuple([
|
|
1586
|
+
z15.number(),
|
|
1587
|
+
z15.nullable(z15.string())
|
|
1482
1588
|
]),
|
|
1483
|
-
to:
|
|
1484
|
-
|
|
1485
|
-
|
|
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:
|
|
1492
|
-
to:
|
|
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 =
|
|
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
|
|
1575
|
-
if (isUndefinedOrNull(
|
|
1576
|
-
throw new Error(
|
|
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(
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
|
2017
|
+
return asSignedHydratedBlockWithHashMeta(await this.transport.sendRequest("xyoViewer_blockByHash", [
|
|
1855
2018
|
hash
|
|
1856
2019
|
])) ?? null;
|
|
1857
2020
|
}
|
|
1858
2021
|
async blockByNumber(blockNumber) {
|
|
1859
|
-
return
|
|
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) =>
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
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,
|