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