@xyo-network/xl1-rpc 1.16.4 → 1.16.6
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/index.mjs +411 -401
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/provider/viewer/JsonRpcXyoViewer.d.ts +4 -2
- package/dist/neutral/provider/viewer/JsonRpcXyoViewer.d.ts.map +1 -1
- package/dist/neutral/types/schema/AllRpcSchemas.d.ts +48 -48
- package/dist/neutral/types/schema/NetworkStakeViewerRpcSchemas.d.ts +2 -2
- package/dist/neutral/types/schema/NetworkStakeViewerRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/RewardsByPositionViewerRpcSchemas.d.ts +10 -10
- package/dist/neutral/types/schema/RewardsByStakerViewerRpcSchemas.d.ts +10 -10
- package/dist/neutral/types/schema/RewardsByStepViewerRpcSchemas.d.ts +10 -10
- package/dist/neutral/types/schema/RewardsTotalViewerRpcSchemas.d.ts +10 -10
- package/dist/neutral/types/schema/XyoRunnerRpcSchemas.d.ts +4 -4
- package/dist/neutral/types/schema/XyoSignerRpcSchemas.d.ts +10 -10
- package/dist/neutral/types/schema/XyoViewerRpcSchemas.d.ts +32 -32
- package/dist/neutral/types/schema/XyoViewerRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/BlockBoundWitness.d.ts +0 -2
- package/dist/neutral/types/schema/common/BlockBoundWitness.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/HydratedTransaction.d.ts +14 -14
- package/dist/neutral/types/schema/common/RewardsRangeOptions.d.ts +1 -1
- package/dist/neutral/types/schema/common/RewardsRangeOptions.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/TransactionBoundWitness.d.ts +8 -8
- package/dist/neutral/types/schema/common/TransactionBoundWitness.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/index.d.ts +0 -1
- package/dist/neutral/types/schema/common/index.d.ts.map +1 -1
- package/dist/node/index-node.mjs +411 -401
- package/dist/node/index-node.mjs.map +1 -1
- package/dist/node/provider/viewer/JsonRpcXyoViewer.d.ts +4 -2
- package/dist/node/provider/viewer/JsonRpcXyoViewer.d.ts.map +1 -1
- package/dist/node/types/schema/AllRpcSchemas.d.ts +48 -48
- package/dist/node/types/schema/NetworkStakeViewerRpcSchemas.d.ts +2 -2
- package/dist/node/types/schema/NetworkStakeViewerRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/RewardsByPositionViewerRpcSchemas.d.ts +10 -10
- package/dist/node/types/schema/RewardsByStakerViewerRpcSchemas.d.ts +10 -10
- package/dist/node/types/schema/RewardsByStepViewerRpcSchemas.d.ts +10 -10
- package/dist/node/types/schema/RewardsTotalViewerRpcSchemas.d.ts +10 -10
- package/dist/node/types/schema/XyoRunnerRpcSchemas.d.ts +4 -4
- package/dist/node/types/schema/XyoSignerRpcSchemas.d.ts +10 -10
- package/dist/node/types/schema/XyoViewerRpcSchemas.d.ts +32 -32
- package/dist/node/types/schema/XyoViewerRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/common/BlockBoundWitness.d.ts +0 -2
- package/dist/node/types/schema/common/BlockBoundWitness.d.ts.map +1 -1
- package/dist/node/types/schema/common/HydratedTransaction.d.ts +14 -14
- package/dist/node/types/schema/common/RewardsRangeOptions.d.ts +1 -1
- package/dist/node/types/schema/common/RewardsRangeOptions.d.ts.map +1 -1
- package/dist/node/types/schema/common/TransactionBoundWitness.d.ts +8 -8
- package/dist/node/types/schema/common/TransactionBoundWitness.d.ts.map +1 -1
- package/dist/node/types/schema/common/index.d.ts +0 -1
- package/dist/node/types/schema/common/index.d.ts.map +1 -1
- package/package.json +11 -11
- package/src/provider/viewer/JsonRpcXyoViewer.ts +21 -5
- package/src/types/schema/NetworkStakeViewerRpcSchemas.ts +1 -1
- package/src/types/schema/XyoViewerRpcSchemas.ts +5 -4
- package/src/types/schema/common/BlockBoundWitness.ts +1 -4
- package/src/types/schema/common/RewardsRangeOptions.ts +1 -1
- package/src/types/schema/common/TransactionBoundWitness.ts +1 -1
- package/src/types/schema/common/index.ts +0 -1
- package/dist/neutral/types/schema/common/BlockRange.d.ts +0 -3
- package/dist/neutral/types/schema/common/BlockRange.d.ts.map +0 -1
- package/dist/node/types/schema/common/BlockRange.d.ts +0 -3
- package/dist/node/types/schema/common/BlockRange.d.ts.map +0 -1
- package/src/types/schema/common/BlockRange.ts +0 -6
package/dist/neutral/index.mjs
CHANGED
|
@@ -166,16 +166,42 @@ var NetworkStakingStepRewardsTotalViewerRpcNamespace = "networkStakingStepReward
|
|
|
166
166
|
var NetworkStakingStepRewardsViewerRpcNamespace = "networkStakingStepRewardsViewer";
|
|
167
167
|
|
|
168
168
|
// src/types/schema/NetworkStakeViewerRpcSchemas.ts
|
|
169
|
-
import { BigIntToJsonZod
|
|
169
|
+
import { BigIntToJsonZod, JsonToBigIntZod } from "@xylabs/hex";
|
|
170
|
+
import { BlockNumberZod } from "@xyo-network/xl1-protocol";
|
|
171
|
+
import * as z from "zod";
|
|
172
|
+
var NetworkStakeViewerRpcSchemas = {
|
|
173
|
+
networkStakeViewer_active: {
|
|
174
|
+
params: {
|
|
175
|
+
from: z.tuple([
|
|
176
|
+
BlockNumberZod.optional()
|
|
177
|
+
]),
|
|
178
|
+
to: z.tuple([
|
|
179
|
+
BlockNumberZod.optional()
|
|
180
|
+
])
|
|
181
|
+
},
|
|
182
|
+
result: {
|
|
183
|
+
from: z.tuple([
|
|
184
|
+
JsonToBigIntZod,
|
|
185
|
+
z.number()
|
|
186
|
+
]),
|
|
187
|
+
to: z.tuple([
|
|
188
|
+
BigIntToJsonZod,
|
|
189
|
+
z.number()
|
|
190
|
+
])
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
// src/types/schema/XyoPermissionsRpcSchemas.ts
|
|
170
196
|
import * as z20 from "zod";
|
|
171
197
|
|
|
172
198
|
// src/types/schema/common/Address.ts
|
|
173
199
|
import { AddressRegEx, toAddress } from "@xylabs/hex";
|
|
174
|
-
import * as
|
|
175
|
-
var AddressZod =
|
|
200
|
+
import * as z2 from "zod";
|
|
201
|
+
var AddressZod = z2.string().toLowerCase().regex(AddressRegEx).transform((v) => toAddress(v));
|
|
176
202
|
|
|
177
203
|
// src/types/schema/common/ArrayBuffer.ts
|
|
178
|
-
import * as
|
|
204
|
+
import * as z3 from "zod";
|
|
179
205
|
function base64Encode(u8) {
|
|
180
206
|
if (typeof Buffer !== "undefined" && typeof Buffer.from === "function") {
|
|
181
207
|
return Buffer.from(u8).toString("base64");
|
|
@@ -198,11 +224,11 @@ function base64Decode(b64) {
|
|
|
198
224
|
return u8;
|
|
199
225
|
}
|
|
200
226
|
__name(base64Decode, "base64Decode");
|
|
201
|
-
var ArrayBufferToJsonZod =
|
|
227
|
+
var ArrayBufferToJsonZod = z3.instanceof(ArrayBuffer).transform((x) => {
|
|
202
228
|
const u8 = new Uint8Array(x);
|
|
203
229
|
return base64Encode(u8);
|
|
204
230
|
});
|
|
205
|
-
var JsonToArrayBufferZod =
|
|
231
|
+
var JsonToArrayBufferZod = z3.string().transform((x) => {
|
|
206
232
|
const u8 = base64Decode(x);
|
|
207
233
|
return u8.buffer;
|
|
208
234
|
});
|
|
@@ -210,24 +236,24 @@ var JsonToArrayBufferZod = z2.string().transform((x) => {
|
|
|
210
236
|
// src/types/schema/common/BlockBoundWitness.ts
|
|
211
237
|
import { HashZod as HashZod2 } from "@xylabs/hex";
|
|
212
238
|
import { StorageMetaZod as StorageMetaZod3 } from "@xyo-network/payload-model";
|
|
213
|
-
import {
|
|
214
|
-
import * as
|
|
239
|
+
import { XL1BlockNumberZod } from "@xyo-network/xl1-protocol";
|
|
240
|
+
import * as z7 from "zod";
|
|
215
241
|
|
|
216
242
|
// src/types/schema/common/BoundWitness.ts
|
|
217
243
|
import { HashZod, HexZod } from "@xylabs/hex";
|
|
218
244
|
import { BoundWitnessSchema } from "@xyo-network/boundwitness-model";
|
|
219
245
|
import { StorageMetaZod as StorageMetaZod2 } from "@xyo-network/payload-model";
|
|
220
|
-
import * as
|
|
246
|
+
import * as z5 from "zod";
|
|
221
247
|
|
|
222
248
|
// src/types/schema/common/Payload.ts
|
|
223
249
|
import { StorageMetaZod } from "@xyo-network/payload-model";
|
|
224
|
-
import * as
|
|
225
|
-
var SchemaZod =
|
|
226
|
-
var PayloadZod =
|
|
250
|
+
import * as z4 from "zod";
|
|
251
|
+
var SchemaZod = z4.string();
|
|
252
|
+
var PayloadZod = z4.object({
|
|
227
253
|
schema: SchemaZod
|
|
228
|
-
}).catchall(
|
|
254
|
+
}).catchall(z4.any());
|
|
229
255
|
var PayloadWithStorageMetaZod = PayloadZod.extend(StorageMetaZod.shape);
|
|
230
|
-
var AnyPayloadZod = PayloadZod.catchall(
|
|
256
|
+
var AnyPayloadZod = PayloadZod.catchall(z4.json());
|
|
231
257
|
var AnyPayloadWithStorageMetaZod = AnyPayloadZod.extend(StorageMetaZod.shape);
|
|
232
258
|
function WithStorageMetaZod(valueZod) {
|
|
233
259
|
return StorageMetaZod.extend(valueZod.shape);
|
|
@@ -235,68 +261,59 @@ function WithStorageMetaZod(valueZod) {
|
|
|
235
261
|
__name(WithStorageMetaZod, "WithStorageMetaZod");
|
|
236
262
|
|
|
237
263
|
// src/types/schema/common/BoundWitness.ts
|
|
238
|
-
var BoundWitnessRequiredFieldsZod =
|
|
239
|
-
addresses:
|
|
240
|
-
payload_hashes:
|
|
241
|
-
payload_schemas:
|
|
242
|
-
previous_hashes:
|
|
264
|
+
var BoundWitnessRequiredFieldsZod = z5.object({
|
|
265
|
+
addresses: z5.array(AddressZod),
|
|
266
|
+
payload_hashes: z5.array(HashZod),
|
|
267
|
+
payload_schemas: z5.array(SchemaZod),
|
|
268
|
+
previous_hashes: z5.array(HashZod.nullable())
|
|
243
269
|
});
|
|
244
|
-
var BoundWitnessMetaZod =
|
|
270
|
+
var BoundWitnessMetaZod = z5.object({
|
|
245
271
|
$destination: AddressZod.optional(),
|
|
246
272
|
$sourceQuery: HashZod.optional(),
|
|
247
|
-
$signatures:
|
|
273
|
+
$signatures: z5.array(z5.union([
|
|
248
274
|
HexZod,
|
|
249
|
-
|
|
275
|
+
z5.null()
|
|
250
276
|
]))
|
|
251
277
|
});
|
|
252
278
|
var BoundWitnessZod = PayloadZod.extend({
|
|
253
|
-
schema:
|
|
279
|
+
schema: z5.literal(BoundWitnessSchema)
|
|
254
280
|
}).extend(BoundWitnessRequiredFieldsZod.shape).extend(BoundWitnessMetaZod.shape).refine((data) => data.$signatures.length === data.addresses.length, {
|
|
255
281
|
message: "$signatures length must equal addresses length"
|
|
256
282
|
});
|
|
257
|
-
var AnyBoundWitnessZod = BoundWitnessZod.catchall(
|
|
283
|
+
var AnyBoundWitnessZod = BoundWitnessZod.catchall(z5.any());
|
|
258
284
|
var UnsignedBoundWitnessZod = BoundWitnessZod.refine((data) => data.$signatures.includes(null), {
|
|
259
285
|
message: "all $signatures must be null"
|
|
260
286
|
});
|
|
261
|
-
var AnyUnsignedBoundWitnessZod = UnsignedBoundWitnessZod.catchall(
|
|
287
|
+
var AnyUnsignedBoundWitnessZod = UnsignedBoundWitnessZod.catchall(z5.any());
|
|
262
288
|
var UnsignedBoundWitnessWithStorageMetaZod = UnsignedBoundWitnessZod.safeExtend(BoundWitnessRequiredFieldsZod.shape).safeExtend(BoundWitnessMetaZod.shape).safeExtend(StorageMetaZod2.shape);
|
|
263
289
|
var SignedBoundWitnessZod = BoundWitnessZod.refine((data) => !data.$signatures.includes(null), {
|
|
264
290
|
message: "all $signatures must not be null"
|
|
265
291
|
});
|
|
266
292
|
var SignedBoundWitnessWithStorageMetaZod = UnsignedBoundWitnessWithStorageMetaZod;
|
|
267
|
-
var AnySignedBoundWitnessZod = UnsignedBoundWitnessZod.catchall(
|
|
268
|
-
var AnySignedBoundWitnessWithStorageMetaZod = UnsignedBoundWitnessWithStorageMetaZod.catchall(
|
|
293
|
+
var AnySignedBoundWitnessZod = UnsignedBoundWitnessZod.catchall(z5.any());
|
|
294
|
+
var AnySignedBoundWitnessWithStorageMetaZod = UnsignedBoundWitnessWithStorageMetaZod.catchall(z5.any());
|
|
269
295
|
|
|
270
296
|
// src/types/schema/common/Chain.ts
|
|
271
297
|
import { AddressRegEx as AddressRegEx2, toAddress as toAddress2 } from "@xylabs/hex";
|
|
272
|
-
import * as
|
|
273
|
-
var ChainZod =
|
|
298
|
+
import * as z6 from "zod";
|
|
299
|
+
var ChainZod = z6.string().toLowerCase().regex(AddressRegEx2).transform((v) => toAddress2(v));
|
|
274
300
|
|
|
275
301
|
// src/types/schema/common/BlockBoundWitness.ts
|
|
276
|
-
var
|
|
277
|
-
var XL1BlockNumberZod = BlockNumberZod.transform(asXL1BlockNumber);
|
|
278
|
-
var BlockBoundWitnessFieldsZod = z6.object({
|
|
302
|
+
var BlockBoundWitnessFieldsZod = z7.object({
|
|
279
303
|
block: XL1BlockNumberZod,
|
|
280
304
|
chain: ChainZod,
|
|
281
305
|
previous: HashZod2.nullable(),
|
|
282
|
-
protocol:
|
|
283
|
-
step_hashes:
|
|
306
|
+
protocol: z7.number(),
|
|
307
|
+
step_hashes: z7.array(HashZod2).optional()
|
|
284
308
|
});
|
|
285
|
-
var BlockBoundWitnessMetaZod =
|
|
286
|
-
$epoch:
|
|
309
|
+
var BlockBoundWitnessMetaZod = z7.object({
|
|
310
|
+
$epoch: z7.number()
|
|
287
311
|
});
|
|
288
312
|
var BlockBoundWitnessZod = UnsignedBoundWitnessZod.merge(StorageMetaZod3.partial()).merge(BlockBoundWitnessFieldsZod).merge(BlockBoundWitnessMetaZod);
|
|
289
313
|
var BlockBoundWitnessWithStorageMetaZod = UnsignedBoundWitnessWithStorageMetaZod.merge(BlockBoundWitnessFieldsZod).merge(BlockBoundWitnessMetaZod);
|
|
290
314
|
var SignedBlockBoundWitnessZod = SignedBoundWitnessZod.merge(StorageMetaZod3.partial()).merge(BlockBoundWitnessFieldsZod).merge(BlockBoundWitnessMetaZod);
|
|
291
315
|
var SignedBlockBoundWitnessWithStorageMetaZod = SignedBoundWitnessWithStorageMetaZod.merge(StorageMetaZod3.partial()).merge(BlockBoundWitnessFieldsZod).merge(BlockBoundWitnessMetaZod);
|
|
292
316
|
|
|
293
|
-
// src/types/schema/common/BlockRange.ts
|
|
294
|
-
import { z as z7 } from "zod";
|
|
295
|
-
var BlockRangeZod = z7.tuple([
|
|
296
|
-
z7.number().optional(),
|
|
297
|
-
z7.number().optional()
|
|
298
|
-
]);
|
|
299
|
-
|
|
300
317
|
// src/types/schema/common/HydratedBlock.ts
|
|
301
318
|
import * as z8 from "zod";
|
|
302
319
|
var HydratedBlockZod = z8.tuple([
|
|
@@ -327,15 +344,16 @@ import * as z11 from "zod";
|
|
|
327
344
|
|
|
328
345
|
// src/types/schema/common/TransactionBoundWitness.ts
|
|
329
346
|
import { StorageMetaZod as StorageMetaZod4 } from "@xyo-network/payload-model";
|
|
347
|
+
import { BlockNumberZod as BlockNumberZod2 } from "@xyo-network/xl1-protocol";
|
|
330
348
|
import * as z10 from "zod";
|
|
331
349
|
|
|
332
350
|
// src/types/schema/common/TransactionFees.ts
|
|
333
|
-
import { BigIntToJsonZod, HexZod as HexZod2, JsonToBigIntZod } from "@xylabs/hex";
|
|
351
|
+
import { BigIntToJsonZod as BigIntToJsonZod2, HexZod as HexZod2, JsonToBigIntZod as JsonToBigIntZod2 } from "@xylabs/hex";
|
|
334
352
|
import { asAttoXL1 } from "@xyo-network/xl1-protocol";
|
|
335
353
|
import * as z9 from "zod";
|
|
336
354
|
var AttoZod = z9.bigint();
|
|
337
|
-
var JsonToAttoZod =
|
|
338
|
-
var AttoToJsonZod =
|
|
355
|
+
var JsonToAttoZod = JsonToBigIntZod2.transform((v) => asAttoXL1(v));
|
|
356
|
+
var AttoToJsonZod = BigIntToJsonZod2;
|
|
339
357
|
var TransactionFeesHexZod = z9.object({
|
|
340
358
|
base: HexZod2,
|
|
341
359
|
gasLimit: HexZod2,
|
|
@@ -349,28 +367,28 @@ var TransactionFeesBigIntZod = z9.object({
|
|
|
349
367
|
priority: AttoZod
|
|
350
368
|
});
|
|
351
369
|
var TransactionFeesJsonToBigIntZod = TransactionFeesHexZod.transform((val) => ({
|
|
352
|
-
base:
|
|
353
|
-
gasLimit:
|
|
354
|
-
gasPrice:
|
|
355
|
-
priority:
|
|
370
|
+
base: JsonToBigIntZod2.parse(val.base),
|
|
371
|
+
gasLimit: JsonToBigIntZod2.parse(val.gasLimit),
|
|
372
|
+
gasPrice: JsonToBigIntZod2.parse(val.gasPrice),
|
|
373
|
+
priority: JsonToBigIntZod2.parse(val.priority)
|
|
356
374
|
}));
|
|
357
375
|
var TransactionFeesBigIntToJsonZod = TransactionFeesBigIntZod.transform((val) => ({
|
|
358
|
-
base:
|
|
359
|
-
gasLimit:
|
|
360
|
-
gasPrice:
|
|
361
|
-
priority:
|
|
376
|
+
base: BigIntToJsonZod2.parse(val.base),
|
|
377
|
+
gasLimit: BigIntToJsonZod2.parse(val.gasLimit),
|
|
378
|
+
gasPrice: BigIntToJsonZod2.parse(val.gasPrice),
|
|
379
|
+
priority: BigIntToJsonZod2.parse(val.priority)
|
|
362
380
|
}));
|
|
363
381
|
|
|
364
382
|
// src/types/schema/common/TransactionBoundWitness.ts
|
|
365
383
|
var BlockStartZod = z10.object({
|
|
366
|
-
nbf:
|
|
384
|
+
nbf: BlockNumberZod2
|
|
367
385
|
});
|
|
368
386
|
var BlockEndZod = z10.object({
|
|
369
|
-
exp:
|
|
387
|
+
exp: BlockNumberZod2
|
|
370
388
|
});
|
|
371
389
|
var BlockDurationZod = z10.object({
|
|
372
|
-
nbf:
|
|
373
|
-
exp:
|
|
390
|
+
nbf: BlockNumberZod2,
|
|
391
|
+
exp: BlockNumberZod2
|
|
374
392
|
});
|
|
375
393
|
var BlockScriptsZod = z10.object({
|
|
376
394
|
script: z10.array(z10.string()).optional()
|
|
@@ -447,6 +465,7 @@ var RequestedPermissionZod = z13.object({
|
|
|
447
465
|
});
|
|
448
466
|
|
|
449
467
|
// src/types/schema/common/RewardsRangeOptions.ts
|
|
468
|
+
import { BlockRangeZod } from "@xyo-network/xl1-protocol";
|
|
450
469
|
import { z as z15 } from "zod";
|
|
451
470
|
|
|
452
471
|
// src/types/schema/common/StepIdentity.ts
|
|
@@ -544,83 +563,58 @@ var TransferPairZod = z19.tuple([
|
|
|
544
563
|
AddressZod
|
|
545
564
|
]);
|
|
546
565
|
|
|
547
|
-
// src/types/schema/NetworkStakeViewerRpcSchemas.ts
|
|
548
|
-
var NetworkStakeViewerRpcSchemas = {
|
|
549
|
-
networkStakeViewer_active: {
|
|
550
|
-
params: {
|
|
551
|
-
from: z20.tuple([
|
|
552
|
-
BlockNumberZod.optional()
|
|
553
|
-
]),
|
|
554
|
-
to: z20.tuple([
|
|
555
|
-
BlockNumberZod.optional()
|
|
556
|
-
])
|
|
557
|
-
},
|
|
558
|
-
result: {
|
|
559
|
-
from: z20.tuple([
|
|
560
|
-
JsonToBigIntZod2,
|
|
561
|
-
z20.number()
|
|
562
|
-
]),
|
|
563
|
-
to: z20.tuple([
|
|
564
|
-
BigIntToJsonZod2,
|
|
565
|
-
z20.number()
|
|
566
|
-
])
|
|
567
|
-
}
|
|
568
|
-
}
|
|
569
|
-
};
|
|
570
|
-
|
|
571
566
|
// src/types/schema/XyoPermissionsRpcSchemas.ts
|
|
572
|
-
import * as z21 from "zod";
|
|
573
567
|
var XyoPermissionsRpcSchemas = {
|
|
574
568
|
xyoPermissions_getPermissions: {
|
|
575
569
|
params: {
|
|
576
|
-
to:
|
|
577
|
-
from:
|
|
570
|
+
to: z20.array(z20.any()).length(0),
|
|
571
|
+
from: z20.array(z20.any()).length(0)
|
|
578
572
|
},
|
|
579
573
|
result: {
|
|
580
|
-
to:
|
|
581
|
-
from:
|
|
574
|
+
to: z20.array(InvokerPermissionZod),
|
|
575
|
+
from: z20.array(InvokerPermissionZod)
|
|
582
576
|
}
|
|
583
577
|
},
|
|
584
578
|
xyoPermissions_requestPermissions: {
|
|
585
579
|
params: {
|
|
586
|
-
to:
|
|
587
|
-
|
|
580
|
+
to: z20.tuple([
|
|
581
|
+
z20.array(PermissionRequestZod)
|
|
588
582
|
]),
|
|
589
|
-
from:
|
|
590
|
-
|
|
583
|
+
from: z20.tuple([
|
|
584
|
+
z20.array(PermissionRequestZod)
|
|
591
585
|
])
|
|
592
586
|
},
|
|
593
587
|
result: {
|
|
594
|
-
to:
|
|
595
|
-
from:
|
|
588
|
+
to: z20.array(RequestedPermissionZod),
|
|
589
|
+
from: z20.array(RequestedPermissionZod)
|
|
596
590
|
}
|
|
597
591
|
},
|
|
598
592
|
xyoPermissions_revokePermissions: {
|
|
599
593
|
params: {
|
|
600
|
-
to:
|
|
601
|
-
|
|
594
|
+
to: z20.tuple([
|
|
595
|
+
z20.array(PermissionRequestZod)
|
|
602
596
|
]),
|
|
603
|
-
from:
|
|
604
|
-
|
|
597
|
+
from: z20.tuple([
|
|
598
|
+
z20.array(PermissionRequestZod)
|
|
605
599
|
])
|
|
606
600
|
},
|
|
607
601
|
result: {
|
|
608
|
-
to:
|
|
609
|
-
from:
|
|
602
|
+
to: z20.array(RequestedPermissionZod),
|
|
603
|
+
from: z20.array(RequestedPermissionZod)
|
|
610
604
|
}
|
|
611
605
|
}
|
|
612
606
|
};
|
|
613
607
|
|
|
614
608
|
// src/types/schema/XyoRunnerRpcSchemas.ts
|
|
615
609
|
import { HashToJsonZod, JsonToHashZod } from "@xylabs/hex";
|
|
616
|
-
import * as
|
|
610
|
+
import * as z21 from "zod";
|
|
617
611
|
var XyoRunnerRpcSchemas = {
|
|
618
612
|
xyoRunner_broadcastTransaction: {
|
|
619
613
|
params: {
|
|
620
|
-
to:
|
|
614
|
+
to: z21.tuple([
|
|
621
615
|
SignedHydratedTransactionZod
|
|
622
616
|
]),
|
|
623
|
-
from:
|
|
617
|
+
from: z21.tuple([
|
|
624
618
|
SignedHydratedTransactionZod
|
|
625
619
|
])
|
|
626
620
|
},
|
|
@@ -633,12 +627,12 @@ var XyoRunnerRpcSchemas = {
|
|
|
633
627
|
|
|
634
628
|
// src/types/schema/XyoSignerRpcSchemas.ts
|
|
635
629
|
import { asHydratedTransactionWithStorageMeta } from "@xyo-network/xl1-protocol";
|
|
636
|
-
import { z as
|
|
630
|
+
import { z as z22 } from "zod";
|
|
637
631
|
var XyoSignerRpcSchemas = {
|
|
638
632
|
xyoSigner_address: {
|
|
639
633
|
params: {
|
|
640
|
-
to:
|
|
641
|
-
from:
|
|
634
|
+
to: z22.array(z22.any()).length(0).optional(),
|
|
635
|
+
from: z22.array(z22.any()).length(0).optional()
|
|
642
636
|
},
|
|
643
637
|
result: {
|
|
644
638
|
to: AddressZod,
|
|
@@ -647,10 +641,10 @@ var XyoSignerRpcSchemas = {
|
|
|
647
641
|
},
|
|
648
642
|
xyoSigner_signTransaction: {
|
|
649
643
|
params: {
|
|
650
|
-
to:
|
|
644
|
+
to: z22.tuple([
|
|
651
645
|
UnsignedHydratedTransactionZod
|
|
652
646
|
]),
|
|
653
|
-
from:
|
|
647
|
+
from: z22.tuple([
|
|
654
648
|
UnsignedHydratedTransactionZod
|
|
655
649
|
])
|
|
656
650
|
},
|
|
@@ -665,14 +659,15 @@ var XyoSignerRpcSchemas = {
|
|
|
665
659
|
|
|
666
660
|
// src/types/schema/XyoViewerRpcSchemas.ts
|
|
667
661
|
import { BigIntToJsonZod as BigIntToJsonZod3, HashToJsonZod as HashToJsonZod2, HashZod as HashZod3, JsonToBigIntZod as JsonToBigIntZod3, JsonToHashZod as JsonToHashZod2 } from "@xylabs/hex";
|
|
668
|
-
import
|
|
662
|
+
import { BlockNumberZod as BlockNumberZod3, BlockRangeZod as BlockRangeZod2, XL1BlockRangeZod } from "@xyo-network/xl1-protocol";
|
|
663
|
+
import * as z23 from "zod";
|
|
669
664
|
var XyoViewerRpcSchemas = {
|
|
670
665
|
xyoViewer_networkStakeStepRewardClaimedByAddress: {
|
|
671
666
|
params: {
|
|
672
|
-
to:
|
|
667
|
+
to: z23.tuple([
|
|
673
668
|
AddressZod
|
|
674
669
|
]),
|
|
675
|
-
from:
|
|
670
|
+
from: z23.tuple([
|
|
676
671
|
AddressZod
|
|
677
672
|
])
|
|
678
673
|
},
|
|
@@ -683,51 +678,51 @@ var XyoViewerRpcSchemas = {
|
|
|
683
678
|
},
|
|
684
679
|
xyoViewer_networkStakeStepRewardAddressReward: {
|
|
685
680
|
params: {
|
|
686
|
-
to:
|
|
681
|
+
to: z23.tuple([
|
|
687
682
|
StepIdentityZod,
|
|
688
683
|
AddressZod
|
|
689
684
|
]),
|
|
690
|
-
from:
|
|
685
|
+
from: z23.tuple([
|
|
691
686
|
StepIdentityZod,
|
|
692
687
|
AddressZod
|
|
693
688
|
])
|
|
694
689
|
},
|
|
695
690
|
result: {
|
|
696
|
-
to:
|
|
697
|
-
from:
|
|
691
|
+
to: z23.record(AddressZod, BigIntToJsonZod3),
|
|
692
|
+
from: z23.record(AddressZod, JsonToBigIntZod3)
|
|
698
693
|
}
|
|
699
694
|
},
|
|
700
695
|
xyoViewer_networkStakeStepRewardAddressHistory: {
|
|
701
696
|
params: {
|
|
702
|
-
to:
|
|
697
|
+
to: z23.tuple([
|
|
703
698
|
AddressZod
|
|
704
699
|
]),
|
|
705
|
-
from:
|
|
700
|
+
from: z23.tuple([
|
|
706
701
|
AddressZod
|
|
707
702
|
])
|
|
708
703
|
},
|
|
709
704
|
result: {
|
|
710
|
-
to:
|
|
711
|
-
from:
|
|
705
|
+
to: z23.record(AddressZod, BigIntToJsonZod3),
|
|
706
|
+
from: z23.record(AddressZod, JsonToBigIntZod3)
|
|
712
707
|
}
|
|
713
708
|
},
|
|
714
709
|
xyoViewer_networkStakeStepRewardAddressShare: {
|
|
715
710
|
params: {
|
|
716
|
-
to:
|
|
711
|
+
to: z23.tuple([
|
|
717
712
|
StepIdentityZod,
|
|
718
713
|
AddressZod
|
|
719
714
|
]),
|
|
720
|
-
from:
|
|
715
|
+
from: z23.tuple([
|
|
721
716
|
StepIdentityZod,
|
|
722
717
|
AddressZod
|
|
723
718
|
])
|
|
724
719
|
},
|
|
725
720
|
result: {
|
|
726
|
-
to:
|
|
721
|
+
to: z23.tuple([
|
|
727
722
|
BigIntToJsonZod3,
|
|
728
723
|
BigIntToJsonZod3
|
|
729
724
|
]),
|
|
730
|
-
from:
|
|
725
|
+
from: z23.tuple([
|
|
731
726
|
JsonToBigIntZod3,
|
|
732
727
|
JsonToBigIntZod3
|
|
733
728
|
])
|
|
@@ -735,11 +730,11 @@ var XyoViewerRpcSchemas = {
|
|
|
735
730
|
},
|
|
736
731
|
xyoViewer_networkStakeStepRewardWeightForAddress: {
|
|
737
732
|
params: {
|
|
738
|
-
to:
|
|
733
|
+
to: z23.tuple([
|
|
739
734
|
StepIdentityZod,
|
|
740
735
|
AddressZod
|
|
741
736
|
]),
|
|
742
|
-
from:
|
|
737
|
+
from: z23.tuple([
|
|
743
738
|
StepIdentityZod,
|
|
744
739
|
AddressZod
|
|
745
740
|
])
|
|
@@ -751,10 +746,10 @@ var XyoViewerRpcSchemas = {
|
|
|
751
746
|
},
|
|
752
747
|
xyoViewer_networkStakeStepRewardUnclaimedByAddress: {
|
|
753
748
|
params: {
|
|
754
|
-
to:
|
|
749
|
+
to: z23.tuple([
|
|
755
750
|
AddressZod
|
|
756
751
|
]),
|
|
757
|
-
from:
|
|
752
|
+
from: z23.tuple([
|
|
758
753
|
AddressZod
|
|
759
754
|
])
|
|
760
755
|
},
|
|
@@ -765,27 +760,27 @@ var XyoViewerRpcSchemas = {
|
|
|
765
760
|
},
|
|
766
761
|
xyoViewer_networkStakeStepRewardPoolRewards: {
|
|
767
762
|
params: {
|
|
768
|
-
to:
|
|
763
|
+
to: z23.tuple([
|
|
769
764
|
StepIdentityZod
|
|
770
765
|
]),
|
|
771
|
-
from:
|
|
766
|
+
from: z23.tuple([
|
|
772
767
|
StepIdentityZod
|
|
773
768
|
])
|
|
774
769
|
},
|
|
775
770
|
result: {
|
|
776
|
-
to:
|
|
777
|
-
from:
|
|
771
|
+
to: z23.record(AddressZod, BigIntToJsonZod3),
|
|
772
|
+
from: z23.record(AddressZod, JsonToBigIntZod3)
|
|
778
773
|
}
|
|
779
774
|
},
|
|
780
775
|
xyoViewer_networkStakeStepRewardPositionWeight: {
|
|
781
776
|
params: {
|
|
782
|
-
to:
|
|
777
|
+
to: z23.tuple([
|
|
783
778
|
StepIdentityZod,
|
|
784
|
-
|
|
779
|
+
z23.number()
|
|
785
780
|
]),
|
|
786
|
-
from:
|
|
781
|
+
from: z23.tuple([
|
|
787
782
|
StepIdentityZod,
|
|
788
|
-
|
|
783
|
+
z23.number()
|
|
789
784
|
])
|
|
790
785
|
},
|
|
791
786
|
result: {
|
|
@@ -795,13 +790,13 @@ var XyoViewerRpcSchemas = {
|
|
|
795
790
|
},
|
|
796
791
|
xyoViewer_networkStakeStepRewardPotentialPositionLoss: {
|
|
797
792
|
params: {
|
|
798
|
-
to:
|
|
793
|
+
to: z23.tuple([
|
|
799
794
|
StepIdentityZod,
|
|
800
|
-
|
|
795
|
+
z23.number()
|
|
801
796
|
]),
|
|
802
|
-
from:
|
|
797
|
+
from: z23.tuple([
|
|
803
798
|
StepIdentityZod,
|
|
804
|
-
|
|
799
|
+
z23.number()
|
|
805
800
|
])
|
|
806
801
|
},
|
|
807
802
|
result: {
|
|
@@ -811,10 +806,10 @@ var XyoViewerRpcSchemas = {
|
|
|
811
806
|
},
|
|
812
807
|
xyoViewer_networkStakeStepRewardForStep: {
|
|
813
808
|
params: {
|
|
814
|
-
to:
|
|
809
|
+
to: z23.tuple([
|
|
815
810
|
StepIdentityZod
|
|
816
811
|
]),
|
|
817
|
-
from:
|
|
812
|
+
from: z23.tuple([
|
|
818
813
|
StepIdentityZod
|
|
819
814
|
])
|
|
820
815
|
},
|
|
@@ -825,10 +820,10 @@ var XyoViewerRpcSchemas = {
|
|
|
825
820
|
},
|
|
826
821
|
xyoViewer_networkStakeStepRewardRandomizer: {
|
|
827
822
|
params: {
|
|
828
|
-
to:
|
|
823
|
+
to: z23.tuple([
|
|
829
824
|
StepIdentityZod
|
|
830
825
|
]),
|
|
831
|
-
from:
|
|
826
|
+
from: z23.tuple([
|
|
832
827
|
StepIdentityZod
|
|
833
828
|
])
|
|
834
829
|
},
|
|
@@ -839,49 +834,49 @@ var XyoViewerRpcSchemas = {
|
|
|
839
834
|
},
|
|
840
835
|
xyoViewer_networkStakeStepRewardStakerCount: {
|
|
841
836
|
params: {
|
|
842
|
-
to:
|
|
837
|
+
to: z23.tuple([
|
|
843
838
|
StepIdentityZod
|
|
844
839
|
]),
|
|
845
|
-
from:
|
|
840
|
+
from: z23.tuple([
|
|
846
841
|
StepIdentityZod
|
|
847
842
|
])
|
|
848
843
|
},
|
|
849
844
|
result: {
|
|
850
|
-
to:
|
|
851
|
-
from:
|
|
845
|
+
to: z23.number(),
|
|
846
|
+
from: z23.number()
|
|
852
847
|
}
|
|
853
848
|
},
|
|
854
849
|
xyoViewer_networkStakeStepRewardPoolShares: {
|
|
855
850
|
params: {
|
|
856
|
-
to:
|
|
851
|
+
to: z23.tuple([
|
|
857
852
|
StepIdentityZod
|
|
858
853
|
]),
|
|
859
|
-
from:
|
|
854
|
+
from: z23.tuple([
|
|
860
855
|
StepIdentityZod
|
|
861
856
|
])
|
|
862
857
|
},
|
|
863
858
|
result: {
|
|
864
|
-
to:
|
|
865
|
-
from:
|
|
859
|
+
to: z23.record(AddressZod, BigIntToJsonZod3),
|
|
860
|
+
from: z23.record(AddressZod, JsonToBigIntZod3)
|
|
866
861
|
}
|
|
867
862
|
},
|
|
868
863
|
xyoViewer_networkStakeStepRewardForStepForPosition: {
|
|
869
864
|
params: {
|
|
870
|
-
to:
|
|
865
|
+
to: z23.tuple([
|
|
871
866
|
StepIdentityZod,
|
|
872
|
-
|
|
867
|
+
z23.number()
|
|
873
868
|
]),
|
|
874
|
-
from:
|
|
869
|
+
from: z23.tuple([
|
|
875
870
|
StepIdentityZod,
|
|
876
|
-
|
|
871
|
+
z23.number()
|
|
877
872
|
])
|
|
878
873
|
},
|
|
879
874
|
result: {
|
|
880
|
-
to:
|
|
875
|
+
to: z23.tuple([
|
|
881
876
|
BigIntToJsonZod3,
|
|
882
877
|
BigIntToJsonZod3
|
|
883
878
|
]),
|
|
884
|
-
from:
|
|
879
|
+
from: z23.tuple([
|
|
885
880
|
JsonToBigIntZod3,
|
|
886
881
|
JsonToBigIntZod3
|
|
887
882
|
])
|
|
@@ -889,27 +884,27 @@ var XyoViewerRpcSchemas = {
|
|
|
889
884
|
},
|
|
890
885
|
xyoViewer_networkStakeStepRewardForPosition: {
|
|
891
886
|
params: {
|
|
892
|
-
to:
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
887
|
+
to: z23.tuple([
|
|
888
|
+
z23.number(),
|
|
889
|
+
z23.tuple([
|
|
890
|
+
z23.number(),
|
|
891
|
+
z23.number()
|
|
897
892
|
])
|
|
898
893
|
]),
|
|
899
|
-
from:
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
894
|
+
from: z23.tuple([
|
|
895
|
+
z23.number(),
|
|
896
|
+
z23.tuple([
|
|
897
|
+
z23.number(),
|
|
898
|
+
z23.number()
|
|
904
899
|
])
|
|
905
900
|
])
|
|
906
901
|
},
|
|
907
902
|
result: {
|
|
908
|
-
to:
|
|
903
|
+
to: z23.tuple([
|
|
909
904
|
BigIntToJsonZod3,
|
|
910
905
|
BigIntToJsonZod3
|
|
911
906
|
]),
|
|
912
|
-
from:
|
|
907
|
+
from: z23.tuple([
|
|
913
908
|
JsonToBigIntZod3,
|
|
914
909
|
JsonToBigIntZod3
|
|
915
910
|
])
|
|
@@ -917,16 +912,16 @@ var XyoViewerRpcSchemas = {
|
|
|
917
912
|
},
|
|
918
913
|
xyoViewer_networkStakeStepRewardsForRange: {
|
|
919
914
|
params: {
|
|
920
|
-
to:
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
915
|
+
to: z23.tuple([
|
|
916
|
+
z23.tuple([
|
|
917
|
+
z23.number(),
|
|
918
|
+
z23.number()
|
|
924
919
|
])
|
|
925
920
|
]),
|
|
926
|
-
from:
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
921
|
+
from: z23.tuple([
|
|
922
|
+
z23.tuple([
|
|
923
|
+
z23.number(),
|
|
924
|
+
z23.number()
|
|
930
925
|
])
|
|
931
926
|
])
|
|
932
927
|
},
|
|
@@ -937,18 +932,18 @@ var XyoViewerRpcSchemas = {
|
|
|
937
932
|
},
|
|
938
933
|
xyoViewer_networkStakeStepRewardsForStepLevel: {
|
|
939
934
|
params: {
|
|
940
|
-
to:
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
935
|
+
to: z23.tuple([
|
|
936
|
+
z23.number(),
|
|
937
|
+
z23.tuple([
|
|
938
|
+
z23.number(),
|
|
939
|
+
z23.number()
|
|
945
940
|
])
|
|
946
941
|
]),
|
|
947
|
-
from:
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
942
|
+
from: z23.tuple([
|
|
943
|
+
z23.number(),
|
|
944
|
+
z23.tuple([
|
|
945
|
+
z23.number(),
|
|
946
|
+
z23.number()
|
|
952
947
|
])
|
|
953
948
|
])
|
|
954
949
|
},
|
|
@@ -959,27 +954,27 @@ var XyoViewerRpcSchemas = {
|
|
|
959
954
|
},
|
|
960
955
|
xyoViewer_networkStakeStepRewardsForPosition: {
|
|
961
956
|
params: {
|
|
962
|
-
to:
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
957
|
+
to: z23.tuple([
|
|
958
|
+
z23.number(),
|
|
959
|
+
z23.tuple([
|
|
960
|
+
z23.number(),
|
|
961
|
+
z23.number()
|
|
967
962
|
])
|
|
968
963
|
]),
|
|
969
|
-
from:
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
964
|
+
from: z23.tuple([
|
|
965
|
+
z23.number(),
|
|
966
|
+
z23.tuple([
|
|
967
|
+
z23.number(),
|
|
968
|
+
z23.number()
|
|
974
969
|
])
|
|
975
970
|
])
|
|
976
971
|
},
|
|
977
972
|
result: {
|
|
978
|
-
to:
|
|
973
|
+
to: z23.record(z23.string(), z23.tuple([
|
|
979
974
|
BigIntToJsonZod3,
|
|
980
975
|
BigIntToJsonZod3
|
|
981
976
|
])),
|
|
982
|
-
from:
|
|
977
|
+
from: z23.record(z23.string(), z23.tuple([
|
|
983
978
|
JsonToBigIntZod3,
|
|
984
979
|
JsonToBigIntZod3
|
|
985
980
|
]))
|
|
@@ -987,10 +982,10 @@ var XyoViewerRpcSchemas = {
|
|
|
987
982
|
},
|
|
988
983
|
xyoViewer_accountBalance: {
|
|
989
984
|
params: {
|
|
990
|
-
to:
|
|
985
|
+
to: z23.tuple([
|
|
991
986
|
AddressZod
|
|
992
987
|
]),
|
|
993
|
-
from:
|
|
988
|
+
from: z23.tuple([
|
|
994
989
|
AddressZod
|
|
995
990
|
])
|
|
996
991
|
},
|
|
@@ -1001,22 +996,28 @@ var XyoViewerRpcSchemas = {
|
|
|
1001
996
|
},
|
|
1002
997
|
xyoViewer_accountBalanceHistory: {
|
|
1003
998
|
params: {
|
|
1004
|
-
to:
|
|
999
|
+
to: z23.tuple([
|
|
1005
1000
|
AddressZod,
|
|
1006
|
-
|
|
1001
|
+
z23.union([
|
|
1002
|
+
XL1BlockRangeZod,
|
|
1003
|
+
HashZod3
|
|
1004
|
+
]).optional()
|
|
1007
1005
|
]),
|
|
1008
|
-
from:
|
|
1006
|
+
from: z23.tuple([
|
|
1009
1007
|
AddressZod,
|
|
1010
|
-
|
|
1008
|
+
z23.union([
|
|
1009
|
+
XL1BlockRangeZod,
|
|
1010
|
+
HashZod3
|
|
1011
|
+
]).optional()
|
|
1011
1012
|
])
|
|
1012
1013
|
},
|
|
1013
1014
|
result: {
|
|
1014
|
-
to:
|
|
1015
|
+
to: z23.array(z23.tuple([
|
|
1015
1016
|
BlockBoundWitnessZod,
|
|
1016
1017
|
TransactionBoundWitnessZod.nullable(),
|
|
1017
1018
|
TransferZodWithStorageMeta
|
|
1018
1019
|
])),
|
|
1019
|
-
from:
|
|
1020
|
+
from: z23.array(z23.tuple([
|
|
1020
1021
|
BlockBoundWitnessZod,
|
|
1021
1022
|
TransactionBoundWitnessZod.nullable(),
|
|
1022
1023
|
TransferZodWithStorageMeta
|
|
@@ -1025,10 +1026,10 @@ var XyoViewerRpcSchemas = {
|
|
|
1025
1026
|
},
|
|
1026
1027
|
xyoViewer_transferPairBalance: {
|
|
1027
1028
|
params: {
|
|
1028
|
-
to:
|
|
1029
|
+
to: z23.tuple([
|
|
1029
1030
|
TransferPairZod
|
|
1030
1031
|
]),
|
|
1031
|
-
from:
|
|
1032
|
+
from: z23.tuple([
|
|
1032
1033
|
TransferPairZod
|
|
1033
1034
|
])
|
|
1034
1035
|
},
|
|
@@ -1039,27 +1040,27 @@ var XyoViewerRpcSchemas = {
|
|
|
1039
1040
|
},
|
|
1040
1041
|
xyoViewer_transferPairBalanceHistory: {
|
|
1041
1042
|
params: {
|
|
1042
|
-
to:
|
|
1043
|
+
to: z23.tuple([
|
|
1043
1044
|
TransferPairZod
|
|
1044
1045
|
]),
|
|
1045
|
-
from:
|
|
1046
|
+
from: z23.tuple([
|
|
1046
1047
|
TransferPairZod
|
|
1047
1048
|
])
|
|
1048
1049
|
},
|
|
1049
1050
|
result: {
|
|
1050
|
-
to:
|
|
1051
|
+
to: z23.array(z23.tuple([
|
|
1051
1052
|
BlockBoundWitnessWithStorageMetaZod,
|
|
1052
|
-
|
|
1053
|
+
z23.union([
|
|
1053
1054
|
TransactionBoundWitnessZod,
|
|
1054
|
-
|
|
1055
|
+
z23.null()
|
|
1055
1056
|
]),
|
|
1056
1057
|
PayloadZod
|
|
1057
1058
|
])),
|
|
1058
|
-
from:
|
|
1059
|
+
from: z23.array(z23.tuple([
|
|
1059
1060
|
BlockBoundWitnessWithStorageMetaZod,
|
|
1060
|
-
|
|
1061
|
+
z23.union([
|
|
1061
1062
|
TransactionBoundWitnessZod,
|
|
1062
|
-
|
|
1063
|
+
z23.null()
|
|
1063
1064
|
]),
|
|
1064
1065
|
PayloadZod
|
|
1065
1066
|
]))
|
|
@@ -1067,10 +1068,10 @@ var XyoViewerRpcSchemas = {
|
|
|
1067
1068
|
},
|
|
1068
1069
|
xyoViewer_transferBalance: {
|
|
1069
1070
|
params: {
|
|
1070
|
-
to:
|
|
1071
|
+
to: z23.tuple([
|
|
1071
1072
|
AddressZod
|
|
1072
1073
|
]),
|
|
1073
|
-
from:
|
|
1074
|
+
from: z23.tuple([
|
|
1074
1075
|
AddressZod
|
|
1075
1076
|
])
|
|
1076
1077
|
},
|
|
@@ -1081,29 +1082,29 @@ var XyoViewerRpcSchemas = {
|
|
|
1081
1082
|
},
|
|
1082
1083
|
xyoViewer_transferBalanceHistory: {
|
|
1083
1084
|
params: {
|
|
1084
|
-
to:
|
|
1085
|
+
to: z23.tuple([
|
|
1085
1086
|
AddressZod,
|
|
1086
|
-
|
|
1087
|
+
BlockRangeZod2.optional()
|
|
1087
1088
|
]),
|
|
1088
|
-
from:
|
|
1089
|
+
from: z23.tuple([
|
|
1089
1090
|
AddressZod,
|
|
1090
|
-
|
|
1091
|
+
BlockRangeZod2.optional()
|
|
1091
1092
|
])
|
|
1092
1093
|
},
|
|
1093
1094
|
result: {
|
|
1094
|
-
to:
|
|
1095
|
+
to: z23.array(z23.tuple([
|
|
1095
1096
|
BlockBoundWitnessWithStorageMetaZod,
|
|
1096
|
-
|
|
1097
|
+
z23.union([
|
|
1097
1098
|
TransactionBoundWitnessZod,
|
|
1098
|
-
|
|
1099
|
+
z23.null()
|
|
1099
1100
|
]),
|
|
1100
1101
|
PayloadZod
|
|
1101
1102
|
])),
|
|
1102
|
-
from:
|
|
1103
|
+
from: z23.array(z23.tuple([
|
|
1103
1104
|
BlockBoundWitnessWithStorageMetaZod,
|
|
1104
|
-
|
|
1105
|
+
z23.union([
|
|
1105
1106
|
TransactionBoundWitnessZod,
|
|
1106
|
-
|
|
1107
|
+
z23.null()
|
|
1107
1108
|
]),
|
|
1108
1109
|
PayloadZod
|
|
1109
1110
|
]))
|
|
@@ -1111,10 +1112,10 @@ var XyoViewerRpcSchemas = {
|
|
|
1111
1112
|
},
|
|
1112
1113
|
xyoViewer_blockByHash: {
|
|
1113
1114
|
params: {
|
|
1114
|
-
to:
|
|
1115
|
+
to: z23.tuple([
|
|
1115
1116
|
HashToJsonZod2
|
|
1116
1117
|
]),
|
|
1117
|
-
from:
|
|
1118
|
+
from: z23.tuple([
|
|
1118
1119
|
JsonToHashZod2
|
|
1119
1120
|
])
|
|
1120
1121
|
},
|
|
@@ -1125,11 +1126,11 @@ var XyoViewerRpcSchemas = {
|
|
|
1125
1126
|
},
|
|
1126
1127
|
xyoViewer_blockByNumber: {
|
|
1127
1128
|
params: {
|
|
1128
|
-
to:
|
|
1129
|
-
|
|
1129
|
+
to: z23.tuple([
|
|
1130
|
+
z23.number()
|
|
1130
1131
|
]),
|
|
1131
|
-
from:
|
|
1132
|
-
|
|
1132
|
+
from: z23.tuple([
|
|
1133
|
+
z23.number()
|
|
1133
1134
|
])
|
|
1134
1135
|
},
|
|
1135
1136
|
result: {
|
|
@@ -1139,24 +1140,24 @@ var XyoViewerRpcSchemas = {
|
|
|
1139
1140
|
},
|
|
1140
1141
|
xyoViewer_blocksByHash: {
|
|
1141
1142
|
params: {
|
|
1142
|
-
to:
|
|
1143
|
+
to: z23.tuple([
|
|
1143
1144
|
HashZod3,
|
|
1144
|
-
|
|
1145
|
+
z23.number().optional()
|
|
1145
1146
|
]),
|
|
1146
|
-
from:
|
|
1147
|
+
from: z23.tuple([
|
|
1147
1148
|
HashZod3,
|
|
1148
|
-
|
|
1149
|
+
z23.number().optional()
|
|
1149
1150
|
])
|
|
1150
1151
|
},
|
|
1151
1152
|
result: {
|
|
1152
|
-
to:
|
|
1153
|
-
from:
|
|
1153
|
+
to: z23.array(SignedHydratedBlockZod),
|
|
1154
|
+
from: z23.array(SignedHydratedBlockZod)
|
|
1154
1155
|
}
|
|
1155
1156
|
},
|
|
1156
1157
|
xyoViewer_chainId: {
|
|
1157
1158
|
params: {
|
|
1158
|
-
to:
|
|
1159
|
-
from:
|
|
1159
|
+
to: z23.array(z23.any()).length(0).optional(),
|
|
1160
|
+
from: z23.array(z23.any()).length(0).optional()
|
|
1160
1161
|
},
|
|
1161
1162
|
result: {
|
|
1162
1163
|
to: AddressZod,
|
|
@@ -1165,11 +1166,11 @@ var XyoViewerRpcSchemas = {
|
|
|
1165
1166
|
},
|
|
1166
1167
|
xyoViewer_chainIdAtBlock: {
|
|
1167
1168
|
params: {
|
|
1168
|
-
to:
|
|
1169
|
-
|
|
1169
|
+
to: z23.tuple([
|
|
1170
|
+
BlockNumberZod3
|
|
1170
1171
|
]),
|
|
1171
|
-
from:
|
|
1172
|
-
|
|
1172
|
+
from: z23.tuple([
|
|
1173
|
+
BlockNumberZod3
|
|
1173
1174
|
])
|
|
1174
1175
|
},
|
|
1175
1176
|
result: {
|
|
@@ -1179,8 +1180,8 @@ var XyoViewerRpcSchemas = {
|
|
|
1179
1180
|
},
|
|
1180
1181
|
xyoViewer_currentBlock: {
|
|
1181
1182
|
params: {
|
|
1182
|
-
to:
|
|
1183
|
-
from:
|
|
1183
|
+
to: z23.array(z23.any()).length(0).optional(),
|
|
1184
|
+
from: z23.array(z23.any()).length(0).optional()
|
|
1184
1185
|
},
|
|
1185
1186
|
result: {
|
|
1186
1187
|
to: SignedHydratedBlockZod,
|
|
@@ -1189,8 +1190,8 @@ var XyoViewerRpcSchemas = {
|
|
|
1189
1190
|
},
|
|
1190
1191
|
xyoViewer_currentBlockHash: {
|
|
1191
1192
|
params: {
|
|
1192
|
-
to:
|
|
1193
|
-
from:
|
|
1193
|
+
to: z23.array(z23.any()).length(0).optional(),
|
|
1194
|
+
from: z23.array(z23.any()).length(0).optional()
|
|
1194
1195
|
},
|
|
1195
1196
|
result: {
|
|
1196
1197
|
to: HashZod3,
|
|
@@ -1199,33 +1200,33 @@ var XyoViewerRpcSchemas = {
|
|
|
1199
1200
|
},
|
|
1200
1201
|
xyoViewer_currentBlockNumber: {
|
|
1201
1202
|
params: {
|
|
1202
|
-
to:
|
|
1203
|
-
from:
|
|
1203
|
+
to: z23.array(z23.any()).length(0).optional(),
|
|
1204
|
+
from: z23.array(z23.any()).length(0).optional()
|
|
1204
1205
|
},
|
|
1205
1206
|
result: {
|
|
1206
|
-
to:
|
|
1207
|
-
from:
|
|
1207
|
+
to: BlockNumberZod3,
|
|
1208
|
+
from: BlockNumberZod3
|
|
1208
1209
|
}
|
|
1209
1210
|
},
|
|
1210
1211
|
xyoViewer_forkHistory: {
|
|
1211
1212
|
params: {
|
|
1212
|
-
to:
|
|
1213
|
-
from:
|
|
1213
|
+
to: z23.array(z23.any()).length(0).optional(),
|
|
1214
|
+
from: z23.array(z23.any()).length(0).optional()
|
|
1214
1215
|
},
|
|
1215
1216
|
result: {
|
|
1216
|
-
to:
|
|
1217
|
-
from:
|
|
1217
|
+
to: z23.record(z23.number(), AddressZod),
|
|
1218
|
+
from: z23.record(z23.number(), AddressZod)
|
|
1218
1219
|
}
|
|
1219
1220
|
},
|
|
1220
1221
|
xyoViewer_stakeByStaker: {
|
|
1221
1222
|
params: {
|
|
1222
|
-
to:
|
|
1223
|
+
to: z23.tuple([
|
|
1223
1224
|
AddressZod,
|
|
1224
|
-
|
|
1225
|
+
z23.number()
|
|
1225
1226
|
]),
|
|
1226
|
-
from:
|
|
1227
|
+
from: z23.tuple([
|
|
1227
1228
|
AddressZod,
|
|
1228
|
-
|
|
1229
|
+
z23.number()
|
|
1229
1230
|
])
|
|
1230
1231
|
},
|
|
1231
1232
|
result: {
|
|
@@ -1235,11 +1236,11 @@ var XyoViewerRpcSchemas = {
|
|
|
1235
1236
|
},
|
|
1236
1237
|
xyoViewer_stakeById: {
|
|
1237
1238
|
params: {
|
|
1238
|
-
to:
|
|
1239
|
-
|
|
1239
|
+
to: z23.tuple([
|
|
1240
|
+
z23.number()
|
|
1240
1241
|
]),
|
|
1241
|
-
from:
|
|
1242
|
-
|
|
1242
|
+
from: z23.tuple([
|
|
1243
|
+
z23.number()
|
|
1243
1244
|
])
|
|
1244
1245
|
},
|
|
1245
1246
|
result: {
|
|
@@ -1249,55 +1250,55 @@ var XyoViewerRpcSchemas = {
|
|
|
1249
1250
|
},
|
|
1250
1251
|
xyoViewer_stakedByStaker: {
|
|
1251
1252
|
params: {
|
|
1252
|
-
to:
|
|
1253
|
+
to: z23.tuple([
|
|
1253
1254
|
AddressZod
|
|
1254
1255
|
]),
|
|
1255
|
-
from:
|
|
1256
|
+
from: z23.tuple([
|
|
1256
1257
|
AddressZod
|
|
1257
1258
|
])
|
|
1258
1259
|
},
|
|
1259
1260
|
result: {
|
|
1260
|
-
to:
|
|
1261
|
-
from:
|
|
1261
|
+
to: z23.array(AddressZod),
|
|
1262
|
+
from: z23.array(AddressZod)
|
|
1262
1263
|
}
|
|
1263
1264
|
},
|
|
1264
1265
|
xyoViewer_stakesByStaker: {
|
|
1265
1266
|
params: {
|
|
1266
|
-
to:
|
|
1267
|
+
to: z23.tuple([
|
|
1267
1268
|
AddressZod
|
|
1268
1269
|
]),
|
|
1269
|
-
from:
|
|
1270
|
+
from: z23.tuple([
|
|
1270
1271
|
AddressZod
|
|
1271
1272
|
])
|
|
1272
1273
|
},
|
|
1273
1274
|
result: {
|
|
1274
|
-
to:
|
|
1275
|
-
from:
|
|
1275
|
+
to: z23.array(StakeToJsonZod),
|
|
1276
|
+
from: z23.array(JsonToStakeZod)
|
|
1276
1277
|
}
|
|
1277
1278
|
},
|
|
1278
1279
|
xyoViewer_stakesByStaked: {
|
|
1279
1280
|
params: {
|
|
1280
|
-
to:
|
|
1281
|
+
to: z23.tuple([
|
|
1281
1282
|
AddressZod
|
|
1282
1283
|
]),
|
|
1283
|
-
from:
|
|
1284
|
+
from: z23.tuple([
|
|
1284
1285
|
AddressZod
|
|
1285
1286
|
])
|
|
1286
1287
|
},
|
|
1287
1288
|
result: {
|
|
1288
|
-
to:
|
|
1289
|
-
from:
|
|
1289
|
+
to: z23.array(StakeToJsonZod),
|
|
1290
|
+
from: z23.array(JsonToStakeZod)
|
|
1290
1291
|
}
|
|
1291
1292
|
},
|
|
1292
1293
|
xyoViewer_transactionByBlockHashAndIndex: {
|
|
1293
1294
|
params: {
|
|
1294
|
-
to:
|
|
1295
|
+
to: z23.tuple([
|
|
1295
1296
|
HashZod3,
|
|
1296
|
-
|
|
1297
|
+
z23.number()
|
|
1297
1298
|
]),
|
|
1298
|
-
from:
|
|
1299
|
+
from: z23.tuple([
|
|
1299
1300
|
HashZod3,
|
|
1300
|
-
|
|
1301
|
+
z23.number()
|
|
1301
1302
|
])
|
|
1302
1303
|
},
|
|
1303
1304
|
result: {
|
|
@@ -1307,13 +1308,13 @@ var XyoViewerRpcSchemas = {
|
|
|
1307
1308
|
},
|
|
1308
1309
|
xyoViewer_transactionByBlockNumberAndIndex: {
|
|
1309
1310
|
params: {
|
|
1310
|
-
to:
|
|
1311
|
-
|
|
1312
|
-
|
|
1311
|
+
to: z23.tuple([
|
|
1312
|
+
z23.number(),
|
|
1313
|
+
z23.number()
|
|
1313
1314
|
]),
|
|
1314
|
-
from:
|
|
1315
|
-
|
|
1316
|
-
|
|
1315
|
+
from: z23.tuple([
|
|
1316
|
+
z23.number(),
|
|
1317
|
+
z23.number()
|
|
1317
1318
|
])
|
|
1318
1319
|
},
|
|
1319
1320
|
result: {
|
|
@@ -1323,10 +1324,10 @@ var XyoViewerRpcSchemas = {
|
|
|
1323
1324
|
},
|
|
1324
1325
|
xyoViewer_transactionByHash: {
|
|
1325
1326
|
params: {
|
|
1326
|
-
to:
|
|
1327
|
+
to: z23.tuple([
|
|
1327
1328
|
HashZod3
|
|
1328
1329
|
]),
|
|
1329
|
-
from:
|
|
1330
|
+
from: z23.tuple([
|
|
1330
1331
|
HashZod3
|
|
1331
1332
|
])
|
|
1332
1333
|
},
|
|
@@ -1347,48 +1348,48 @@ var AllRpcSchemas = {
|
|
|
1347
1348
|
};
|
|
1348
1349
|
|
|
1349
1350
|
// src/types/schema/createRequestSchema.ts
|
|
1350
|
-
import * as
|
|
1351
|
-
var createRequestSchema = /* @__PURE__ */ __name((methodName, paramsSchema =
|
|
1352
|
-
id:
|
|
1353
|
-
|
|
1354
|
-
|
|
1351
|
+
import * as z24 from "zod";
|
|
1352
|
+
var createRequestSchema = /* @__PURE__ */ __name((methodName, paramsSchema = z24.undefined()) => z24.object({
|
|
1353
|
+
id: z24.union([
|
|
1354
|
+
z24.string(),
|
|
1355
|
+
z24.number()
|
|
1355
1356
|
]),
|
|
1356
|
-
jsonrpc:
|
|
1357
|
-
method:
|
|
1357
|
+
jsonrpc: z24.literal(jsonrpc),
|
|
1358
|
+
method: z24.literal(methodName),
|
|
1358
1359
|
params: paramsSchema
|
|
1359
1360
|
}), "createRequestSchema");
|
|
1360
1361
|
|
|
1361
1362
|
// src/types/schema/createResponseSchema.ts
|
|
1362
|
-
import * as
|
|
1363
|
-
var createResponseSchema = /* @__PURE__ */ __name((resultSchema =
|
|
1364
|
-
id:
|
|
1365
|
-
|
|
1366
|
-
|
|
1363
|
+
import * as z25 from "zod";
|
|
1364
|
+
var createResponseSchema = /* @__PURE__ */ __name((resultSchema = z25.undefined()) => z25.object({
|
|
1365
|
+
id: z25.union([
|
|
1366
|
+
z25.string(),
|
|
1367
|
+
z25.number()
|
|
1367
1368
|
]),
|
|
1368
|
-
jsonrpc:
|
|
1369
|
+
jsonrpc: z25.literal(jsonrpc),
|
|
1369
1370
|
result: resultSchema
|
|
1370
1371
|
}), "createResponseSchema");
|
|
1371
1372
|
|
|
1372
1373
|
// src/types/schema/DataLakeViewerRpcSchema.ts
|
|
1373
1374
|
import { HashZod as HashZod4 } from "@xylabs/hex";
|
|
1374
1375
|
import { PayloadZod as PayloadZod2 } from "@xyo-network/payload-model";
|
|
1375
|
-
import * as
|
|
1376
|
+
import * as z26 from "zod";
|
|
1376
1377
|
var DataLakeViewerRpcSchemas = {
|
|
1377
1378
|
dataLakeViewer_get: {
|
|
1378
1379
|
params: {
|
|
1379
|
-
to:
|
|
1380
|
+
to: z26.tuple([
|
|
1380
1381
|
HashZod4
|
|
1381
1382
|
]),
|
|
1382
|
-
from:
|
|
1383
|
+
from: z26.tuple([
|
|
1383
1384
|
HashZod4
|
|
1384
1385
|
])
|
|
1385
1386
|
},
|
|
1386
1387
|
result: {
|
|
1387
|
-
to:
|
|
1388
|
+
to: z26.union([
|
|
1388
1389
|
PayloadZod2,
|
|
1389
1390
|
ArrayBufferToJsonZod
|
|
1390
1391
|
]).optional(),
|
|
1391
|
-
from:
|
|
1392
|
+
from: z26.union([
|
|
1392
1393
|
PayloadZod2,
|
|
1393
1394
|
JsonToArrayBufferZod
|
|
1394
1395
|
]).optional()
|
|
@@ -1396,19 +1397,19 @@ var DataLakeViewerRpcSchemas = {
|
|
|
1396
1397
|
},
|
|
1397
1398
|
dataLakeViewer_getMany: {
|
|
1398
1399
|
params: {
|
|
1399
|
-
to:
|
|
1400
|
-
|
|
1400
|
+
to: z26.tuple([
|
|
1401
|
+
z26.array(HashZod4)
|
|
1401
1402
|
]),
|
|
1402
|
-
from:
|
|
1403
|
-
|
|
1403
|
+
from: z26.tuple([
|
|
1404
|
+
z26.array(HashZod4)
|
|
1404
1405
|
])
|
|
1405
1406
|
},
|
|
1406
1407
|
result: {
|
|
1407
|
-
to:
|
|
1408
|
+
to: z26.array(z26.union([
|
|
1408
1409
|
PayloadZod2,
|
|
1409
1410
|
ArrayBufferToJsonZod
|
|
1410
1411
|
])),
|
|
1411
|
-
from:
|
|
1412
|
+
from: z26.array(z26.union([
|
|
1412
1413
|
PayloadZod2,
|
|
1413
1414
|
JsonToArrayBufferZod
|
|
1414
1415
|
]))
|
|
@@ -1416,16 +1417,16 @@ var DataLakeViewerRpcSchemas = {
|
|
|
1416
1417
|
},
|
|
1417
1418
|
dataLakeViewer_has: {
|
|
1418
1419
|
params: {
|
|
1419
|
-
to:
|
|
1420
|
+
to: z26.tuple([
|
|
1420
1421
|
HashZod4
|
|
1421
1422
|
]),
|
|
1422
|
-
from:
|
|
1423
|
+
from: z26.tuple([
|
|
1423
1424
|
HashZod4
|
|
1424
1425
|
])
|
|
1425
1426
|
},
|
|
1426
1427
|
result: {
|
|
1427
|
-
to:
|
|
1428
|
-
from:
|
|
1428
|
+
to: z26.boolean(),
|
|
1429
|
+
from: z26.boolean()
|
|
1429
1430
|
}
|
|
1430
1431
|
}
|
|
1431
1432
|
};
|
|
@@ -1433,228 +1434,228 @@ var DataLakeViewerRpcSchemas = {
|
|
|
1433
1434
|
// src/types/schema/RewardsByPositionViewerRpcSchemas.ts
|
|
1434
1435
|
import { BigIntToJsonZod as BigIntToJsonZod4, JsonToBigIntZod as JsonToBigIntZod4 } from "@xylabs/hex";
|
|
1435
1436
|
import { asAttoXL1 as asAttoXL12 } from "@xyo-network/xl1-protocol";
|
|
1436
|
-
import
|
|
1437
|
+
import z27 from "zod";
|
|
1437
1438
|
var NetworkStakingStepRewardsByPositionViewerRpcSchemas = {
|
|
1438
1439
|
networkStakingStepRewardsByPositionViewer_bonus: {
|
|
1439
1440
|
params: {
|
|
1440
|
-
from:
|
|
1441
|
+
from: z27.tuple([
|
|
1441
1442
|
RewardsRangeOptionsZod.optional()
|
|
1442
1443
|
]),
|
|
1443
|
-
to:
|
|
1444
|
+
to: z27.tuple([
|
|
1444
1445
|
RewardsRangeOptionsZod.optional()
|
|
1445
1446
|
])
|
|
1446
1447
|
},
|
|
1447
1448
|
result: {
|
|
1448
|
-
from:
|
|
1449
|
-
to:
|
|
1449
|
+
from: z27.record(z27.number(), JsonToBigIntZod4.transform((val) => asAttoXL12(val))),
|
|
1450
|
+
to: z27.record(z27.number(), BigIntToJsonZod4)
|
|
1450
1451
|
}
|
|
1451
1452
|
},
|
|
1452
1453
|
networkStakingStepRewardsByPositionViewer_claimed: {
|
|
1453
1454
|
params: {
|
|
1454
|
-
from:
|
|
1455
|
+
from: z27.tuple([
|
|
1455
1456
|
RewardsRangeOptionsZod.optional()
|
|
1456
1457
|
]),
|
|
1457
|
-
to:
|
|
1458
|
+
to: z27.tuple([
|
|
1458
1459
|
RewardsRangeOptionsZod.optional()
|
|
1459
1460
|
])
|
|
1460
1461
|
},
|
|
1461
1462
|
result: {
|
|
1462
|
-
from:
|
|
1463
|
-
to:
|
|
1463
|
+
from: z27.record(z27.number(), BigIntToJsonZod4.transform((val) => asAttoXL12(val))),
|
|
1464
|
+
to: z27.record(z27.number(), JsonToBigIntZod4)
|
|
1464
1465
|
}
|
|
1465
1466
|
},
|
|
1466
1467
|
networkStakingStepRewardsByPositionViewer_earned: {
|
|
1467
1468
|
params: {
|
|
1468
|
-
from:
|
|
1469
|
+
from: z27.tuple([
|
|
1469
1470
|
RewardsRangeOptionsZod.optional()
|
|
1470
1471
|
]),
|
|
1471
|
-
to:
|
|
1472
|
+
to: z27.tuple([
|
|
1472
1473
|
RewardsRangeOptionsZod.optional()
|
|
1473
1474
|
])
|
|
1474
1475
|
},
|
|
1475
1476
|
result: {
|
|
1476
|
-
from:
|
|
1477
|
-
to:
|
|
1477
|
+
from: z27.record(z27.number(), BigIntToJsonZod4.transform((val) => asAttoXL12(val))),
|
|
1478
|
+
to: z27.record(z27.number(), JsonToBigIntZod4)
|
|
1478
1479
|
}
|
|
1479
1480
|
},
|
|
1480
1481
|
networkStakingStepRewardsByPositionViewer_total: {
|
|
1481
1482
|
params: {
|
|
1482
|
-
from:
|
|
1483
|
+
from: z27.tuple([
|
|
1483
1484
|
RewardsRangeOptionsZod.optional()
|
|
1484
1485
|
]),
|
|
1485
|
-
to:
|
|
1486
|
+
to: z27.tuple([
|
|
1486
1487
|
RewardsRangeOptionsZod.optional()
|
|
1487
1488
|
])
|
|
1488
1489
|
},
|
|
1489
1490
|
result: {
|
|
1490
|
-
from:
|
|
1491
|
-
to:
|
|
1491
|
+
from: z27.record(z27.number(), BigIntToJsonZod4.transform((val) => asAttoXL12(val))),
|
|
1492
|
+
to: z27.record(z27.number(), JsonToBigIntZod4)
|
|
1492
1493
|
}
|
|
1493
1494
|
},
|
|
1494
1495
|
networkStakingStepRewardsByPositionViewer_unclaimed: {
|
|
1495
1496
|
params: {
|
|
1496
|
-
from:
|
|
1497
|
+
from: z27.tuple([
|
|
1497
1498
|
RewardsRangeOptionsZod.optional()
|
|
1498
1499
|
]),
|
|
1499
|
-
to:
|
|
1500
|
+
to: z27.tuple([
|
|
1500
1501
|
RewardsRangeOptionsZod.optional()
|
|
1501
1502
|
])
|
|
1502
1503
|
},
|
|
1503
1504
|
result: {
|
|
1504
|
-
from:
|
|
1505
|
-
to:
|
|
1505
|
+
from: z27.record(z27.number(), BigIntToJsonZod4.transform((val) => asAttoXL12(val))),
|
|
1506
|
+
to: z27.record(z27.number(), JsonToBigIntZod4)
|
|
1506
1507
|
}
|
|
1507
1508
|
}
|
|
1508
1509
|
};
|
|
1509
1510
|
|
|
1510
1511
|
// src/types/schema/RewardsByStakerViewerRpcSchemas.ts
|
|
1511
1512
|
import { BigIntToJsonZod as BigIntToJsonZod5, JsonToBigIntZod as JsonToBigIntZod5 } from "@xylabs/hex";
|
|
1512
|
-
import
|
|
1513
|
+
import z28 from "zod";
|
|
1513
1514
|
var NetworkStakingStepRewardsByStakerViewerRpcSchemas = {
|
|
1514
1515
|
networkStakingStepRewardsByStakerViewer_bonus: {
|
|
1515
1516
|
params: {
|
|
1516
|
-
from:
|
|
1517
|
+
from: z28.tuple([
|
|
1517
1518
|
RewardsRangeOptionsZod.optional()
|
|
1518
1519
|
]),
|
|
1519
|
-
to:
|
|
1520
|
+
to: z28.tuple([
|
|
1520
1521
|
RewardsRangeOptionsZod.optional()
|
|
1521
1522
|
])
|
|
1522
1523
|
},
|
|
1523
1524
|
result: {
|
|
1524
|
-
from:
|
|
1525
|
-
to:
|
|
1525
|
+
from: z28.record(AddressZod, BigIntToJsonZod5),
|
|
1526
|
+
to: z28.record(AddressZod, JsonToBigIntZod5)
|
|
1526
1527
|
}
|
|
1527
1528
|
},
|
|
1528
1529
|
networkStakingStepRewardsByStakerViewer_claimed: {
|
|
1529
1530
|
params: {
|
|
1530
|
-
from:
|
|
1531
|
+
from: z28.tuple([
|
|
1531
1532
|
RewardsRangeOptionsZod.optional()
|
|
1532
1533
|
]),
|
|
1533
|
-
to:
|
|
1534
|
+
to: z28.tuple([
|
|
1534
1535
|
RewardsRangeOptionsZod.optional()
|
|
1535
1536
|
])
|
|
1536
1537
|
},
|
|
1537
1538
|
result: {
|
|
1538
|
-
from:
|
|
1539
|
-
to:
|
|
1539
|
+
from: z28.record(AddressZod, BigIntToJsonZod5),
|
|
1540
|
+
to: z28.record(AddressZod, JsonToBigIntZod5)
|
|
1540
1541
|
}
|
|
1541
1542
|
},
|
|
1542
1543
|
networkStakingStepRewardsByStakerViewer_earned: {
|
|
1543
1544
|
params: {
|
|
1544
|
-
from:
|
|
1545
|
+
from: z28.tuple([
|
|
1545
1546
|
RewardsRangeOptionsZod.optional()
|
|
1546
1547
|
]),
|
|
1547
|
-
to:
|
|
1548
|
+
to: z28.tuple([
|
|
1548
1549
|
RewardsRangeOptionsZod.optional()
|
|
1549
1550
|
])
|
|
1550
1551
|
},
|
|
1551
1552
|
result: {
|
|
1552
|
-
from:
|
|
1553
|
-
to:
|
|
1553
|
+
from: z28.record(AddressZod, BigIntToJsonZod5),
|
|
1554
|
+
to: z28.record(AddressZod, JsonToBigIntZod5)
|
|
1554
1555
|
}
|
|
1555
1556
|
},
|
|
1556
1557
|
networkStakingStepRewardsByStakerViewer_total: {
|
|
1557
1558
|
params: {
|
|
1558
|
-
from:
|
|
1559
|
+
from: z28.tuple([
|
|
1559
1560
|
RewardsRangeOptionsZod.optional()
|
|
1560
1561
|
]),
|
|
1561
|
-
to:
|
|
1562
|
+
to: z28.tuple([
|
|
1562
1563
|
RewardsRangeOptionsZod.optional()
|
|
1563
1564
|
])
|
|
1564
1565
|
},
|
|
1565
1566
|
result: {
|
|
1566
|
-
from:
|
|
1567
|
-
to:
|
|
1567
|
+
from: z28.record(AddressZod, BigIntToJsonZod5),
|
|
1568
|
+
to: z28.record(AddressZod, JsonToBigIntZod5)
|
|
1568
1569
|
}
|
|
1569
1570
|
},
|
|
1570
1571
|
networkStakingStepRewardsByStakerViewer_unclaimed: {
|
|
1571
1572
|
params: {
|
|
1572
|
-
from:
|
|
1573
|
+
from: z28.tuple([
|
|
1573
1574
|
RewardsRangeOptionsZod.optional()
|
|
1574
1575
|
]),
|
|
1575
|
-
to:
|
|
1576
|
+
to: z28.tuple([
|
|
1576
1577
|
RewardsRangeOptionsZod.optional()
|
|
1577
1578
|
])
|
|
1578
1579
|
},
|
|
1579
1580
|
result: {
|
|
1580
|
-
from:
|
|
1581
|
-
to:
|
|
1581
|
+
from: z28.record(AddressZod, BigIntToJsonZod5),
|
|
1582
|
+
to: z28.record(AddressZod, JsonToBigIntZod5)
|
|
1582
1583
|
}
|
|
1583
1584
|
}
|
|
1584
1585
|
};
|
|
1585
1586
|
|
|
1586
1587
|
// src/types/schema/RewardsByStepViewerRpcSchemas.ts
|
|
1587
1588
|
import { BigIntToJsonZod as BigIntToJsonZod6, JsonToBigIntZod as JsonToBigIntZod6 } from "@xylabs/hex";
|
|
1588
|
-
import
|
|
1589
|
+
import z29 from "zod";
|
|
1589
1590
|
var NetworkStakingStepRewardsByStepViewerRpcSchemas = {
|
|
1590
1591
|
networkStakingStepRewardsByStepViewer_bonus: {
|
|
1591
1592
|
params: {
|
|
1592
|
-
from:
|
|
1593
|
+
from: z29.tuple([
|
|
1593
1594
|
RewardsRangeOptionsZod.optional()
|
|
1594
1595
|
]),
|
|
1595
|
-
to:
|
|
1596
|
+
to: z29.tuple([
|
|
1596
1597
|
RewardsRangeOptionsZod.optional()
|
|
1597
1598
|
])
|
|
1598
1599
|
},
|
|
1599
1600
|
result: {
|
|
1600
|
-
from:
|
|
1601
|
-
to:
|
|
1601
|
+
from: z29.record(AddressZod, BigIntToJsonZod6),
|
|
1602
|
+
to: z29.record(AddressZod, JsonToBigIntZod6)
|
|
1602
1603
|
}
|
|
1603
1604
|
},
|
|
1604
1605
|
networkStakingStepRewardsByStepViewer_claimed: {
|
|
1605
1606
|
params: {
|
|
1606
|
-
from:
|
|
1607
|
+
from: z29.tuple([
|
|
1607
1608
|
RewardsRangeOptionsZod.optional()
|
|
1608
1609
|
]),
|
|
1609
|
-
to:
|
|
1610
|
+
to: z29.tuple([
|
|
1610
1611
|
RewardsRangeOptionsZod.optional()
|
|
1611
1612
|
])
|
|
1612
1613
|
},
|
|
1613
1614
|
result: {
|
|
1614
|
-
from:
|
|
1615
|
-
to:
|
|
1615
|
+
from: z29.record(AddressZod, BigIntToJsonZod6),
|
|
1616
|
+
to: z29.record(AddressZod, JsonToBigIntZod6)
|
|
1616
1617
|
}
|
|
1617
1618
|
},
|
|
1618
1619
|
networkStakingStepRewardsByStepViewer_earned: {
|
|
1619
1620
|
params: {
|
|
1620
|
-
from:
|
|
1621
|
+
from: z29.tuple([
|
|
1621
1622
|
RewardsRangeOptionsZod.optional()
|
|
1622
1623
|
]),
|
|
1623
|
-
to:
|
|
1624
|
+
to: z29.tuple([
|
|
1624
1625
|
RewardsRangeOptionsZod.optional()
|
|
1625
1626
|
])
|
|
1626
1627
|
},
|
|
1627
1628
|
result: {
|
|
1628
|
-
from:
|
|
1629
|
-
to:
|
|
1629
|
+
from: z29.record(AddressZod, BigIntToJsonZod6),
|
|
1630
|
+
to: z29.record(AddressZod, JsonToBigIntZod6)
|
|
1630
1631
|
}
|
|
1631
1632
|
},
|
|
1632
1633
|
networkStakingStepRewardsByStepViewer_total: {
|
|
1633
1634
|
params: {
|
|
1634
|
-
from:
|
|
1635
|
+
from: z29.tuple([
|
|
1635
1636
|
RewardsRangeOptionsZod.optional()
|
|
1636
1637
|
]),
|
|
1637
|
-
to:
|
|
1638
|
+
to: z29.tuple([
|
|
1638
1639
|
RewardsRangeOptionsZod.optional()
|
|
1639
1640
|
])
|
|
1640
1641
|
},
|
|
1641
1642
|
result: {
|
|
1642
|
-
from:
|
|
1643
|
-
to:
|
|
1643
|
+
from: z29.record(AddressZod, BigIntToJsonZod6),
|
|
1644
|
+
to: z29.record(AddressZod, JsonToBigIntZod6)
|
|
1644
1645
|
}
|
|
1645
1646
|
},
|
|
1646
1647
|
networkStakingStepRewardsByStepViewer_unclaimed: {
|
|
1647
1648
|
params: {
|
|
1648
|
-
from:
|
|
1649
|
+
from: z29.tuple([
|
|
1649
1650
|
RewardsRangeOptionsZod.optional()
|
|
1650
1651
|
]),
|
|
1651
|
-
to:
|
|
1652
|
+
to: z29.tuple([
|
|
1652
1653
|
RewardsRangeOptionsZod.optional()
|
|
1653
1654
|
])
|
|
1654
1655
|
},
|
|
1655
1656
|
result: {
|
|
1656
|
-
from:
|
|
1657
|
-
to:
|
|
1657
|
+
from: z29.record(AddressZod, BigIntToJsonZod6),
|
|
1658
|
+
to: z29.record(AddressZod, JsonToBigIntZod6)
|
|
1658
1659
|
}
|
|
1659
1660
|
}
|
|
1660
1661
|
};
|
|
@@ -1662,14 +1663,14 @@ var NetworkStakingStepRewardsByStepViewerRpcSchemas = {
|
|
|
1662
1663
|
// src/types/schema/RewardsTotalViewerRpcSchemas.ts
|
|
1663
1664
|
import { BigIntToJsonZod as BigIntToJsonZod7, JsonToBigIntZod as JsonToBigIntZod7 } from "@xylabs/hex";
|
|
1664
1665
|
import { asAttoXL1 as asAttoXL13 } from "@xyo-network/xl1-protocol";
|
|
1665
|
-
import * as
|
|
1666
|
+
import * as z30 from "zod";
|
|
1666
1667
|
var NetworkStakingStepRewardsTotalViewerRpcSchemas = {
|
|
1667
1668
|
networkStakingStepRewardsTotalViewer_bonus: {
|
|
1668
1669
|
params: {
|
|
1669
|
-
from:
|
|
1670
|
+
from: z30.tuple([
|
|
1670
1671
|
RewardsRangeOptionsZod.optional()
|
|
1671
1672
|
]),
|
|
1672
|
-
to:
|
|
1673
|
+
to: z30.tuple([
|
|
1673
1674
|
RewardsRangeOptionsZod.optional()
|
|
1674
1675
|
])
|
|
1675
1676
|
},
|
|
@@ -1680,10 +1681,10 @@ var NetworkStakingStepRewardsTotalViewerRpcSchemas = {
|
|
|
1680
1681
|
},
|
|
1681
1682
|
networkStakingStepRewardsTotalViewer_claimed: {
|
|
1682
1683
|
params: {
|
|
1683
|
-
from:
|
|
1684
|
+
from: z30.tuple([
|
|
1684
1685
|
RewardsRangeOptionsZod.optional()
|
|
1685
1686
|
]),
|
|
1686
|
-
to:
|
|
1687
|
+
to: z30.tuple([
|
|
1687
1688
|
RewardsRangeOptionsZod.optional()
|
|
1688
1689
|
])
|
|
1689
1690
|
},
|
|
@@ -1694,10 +1695,10 @@ var NetworkStakingStepRewardsTotalViewerRpcSchemas = {
|
|
|
1694
1695
|
},
|
|
1695
1696
|
networkStakingStepRewardsTotalViewer_earned: {
|
|
1696
1697
|
params: {
|
|
1697
|
-
from:
|
|
1698
|
+
from: z30.tuple([
|
|
1698
1699
|
RewardsRangeOptionsZod.optional()
|
|
1699
1700
|
]),
|
|
1700
|
-
to:
|
|
1701
|
+
to: z30.tuple([
|
|
1701
1702
|
RewardsRangeOptionsZod.optional()
|
|
1702
1703
|
])
|
|
1703
1704
|
},
|
|
@@ -1708,10 +1709,10 @@ var NetworkStakingStepRewardsTotalViewerRpcSchemas = {
|
|
|
1708
1709
|
},
|
|
1709
1710
|
networkStakingStepRewardsTotalViewer_total: {
|
|
1710
1711
|
params: {
|
|
1711
|
-
from:
|
|
1712
|
+
from: z30.tuple([
|
|
1712
1713
|
RewardsRangeOptionsZod.optional()
|
|
1713
1714
|
]),
|
|
1714
|
-
to:
|
|
1715
|
+
to: z30.tuple([
|
|
1715
1716
|
RewardsRangeOptionsZod.optional()
|
|
1716
1717
|
])
|
|
1717
1718
|
},
|
|
@@ -1722,10 +1723,10 @@ var NetworkStakingStepRewardsTotalViewerRpcSchemas = {
|
|
|
1722
1723
|
},
|
|
1723
1724
|
networkStakingStepRewardsTotalViewer_unclaimed: {
|
|
1724
1725
|
params: {
|
|
1725
|
-
from:
|
|
1726
|
+
from: z30.tuple([
|
|
1726
1727
|
RewardsRangeOptionsZod.optional()
|
|
1727
1728
|
]),
|
|
1728
|
-
to:
|
|
1729
|
+
to: z30.tuple([
|
|
1729
1730
|
RewardsRangeOptionsZod.optional()
|
|
1730
1731
|
])
|
|
1731
1732
|
},
|
|
@@ -1949,8 +1950,8 @@ var JsonRpcNetworkStakeViewer = class extends JsonRpcNetworkStakeViewerMethods {
|
|
|
1949
1950
|
};
|
|
1950
1951
|
|
|
1951
1952
|
// src/provider/viewer/JsonRpcXyoViewer.ts
|
|
1952
|
-
import {
|
|
1953
|
-
import { asAttoXL1 as asAttoXL14, asHydratedBlock } from "@xyo-network/xl1-protocol";
|
|
1953
|
+
import { asHash, isHash } from "@xylabs/hex";
|
|
1954
|
+
import { asAttoXL1 as asAttoXL14, asHydratedBlock, asXL1BlockRange, isRange } from "@xyo-network/xl1-protocol";
|
|
1954
1955
|
var JsonRpcXyoViewer = class {
|
|
1955
1956
|
static {
|
|
1956
1957
|
__name(this, "JsonRpcXyoViewer");
|
|
@@ -1969,12 +1970,24 @@ var JsonRpcXyoViewer = class {
|
|
|
1969
1970
|
address
|
|
1970
1971
|
]));
|
|
1971
1972
|
}
|
|
1972
|
-
async accountBalanceHistory(address,
|
|
1973
|
-
|
|
1973
|
+
async accountBalanceHistory(address, headOrRange) {
|
|
1974
|
+
const head = asHash(headOrRange);
|
|
1975
|
+
const range = asXL1BlockRange(headOrRange);
|
|
1976
|
+
if (isHash(head)) {
|
|
1977
|
+
return await this.transport.sendRequest("xyoViewer_accountBalanceHistory", [
|
|
1978
|
+
address,
|
|
1979
|
+
head
|
|
1980
|
+
]);
|
|
1981
|
+
}
|
|
1982
|
+
if (isRange(range)) {
|
|
1983
|
+
return await this.transport.sendRequest("xyoViewer_accountBalanceHistory", [
|
|
1984
|
+
address,
|
|
1985
|
+
range
|
|
1986
|
+
]);
|
|
1987
|
+
}
|
|
1988
|
+
return await this.transport.sendRequest("xyoViewer_accountBalanceHistory", [
|
|
1974
1989
|
address,
|
|
1975
1990
|
range
|
|
1976
|
-
] : [
|
|
1977
|
-
address
|
|
1978
1991
|
]);
|
|
1979
1992
|
}
|
|
1980
1993
|
async blockByHash(hash) {
|
|
@@ -2316,8 +2329,6 @@ export {
|
|
|
2316
2329
|
BlockBoundWitnessZod,
|
|
2317
2330
|
BlockDurationZod,
|
|
2318
2331
|
BlockEndZod,
|
|
2319
|
-
BlockNumberZod,
|
|
2320
|
-
BlockRangeZod,
|
|
2321
2332
|
BlockScriptsZod,
|
|
2322
2333
|
BlockStartZod,
|
|
2323
2334
|
BoundWitnessZod,
|
|
@@ -2402,7 +2413,6 @@ export {
|
|
|
2402
2413
|
UnsignedHydratedTransactionZod,
|
|
2403
2414
|
WithStorageMetaZod,
|
|
2404
2415
|
WithTransactionFeesZod,
|
|
2405
|
-
XL1BlockNumberZod,
|
|
2406
2416
|
XyoBaseConnection,
|
|
2407
2417
|
XyoPermissionsRpcSchemas,
|
|
2408
2418
|
XyoRunnerRpcSchemas,
|