@xyo-network/xl1-rpc 1.16.6 → 1.16.7
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 +462 -501
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/types/schema/AllRpcSchemas.d.ts +290 -721
- package/dist/neutral/types/schema/AllRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/XyoRunnerRpcSchemas.d.ts +18 -42
- package/dist/neutral/types/schema/XyoRunnerRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/XyoSignerRpcSchemas.d.ts +44 -97
- package/dist/neutral/types/schema/XyoSignerRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/XyoViewerRpcSchemas.d.ts +228 -582
- package/dist/neutral/types/schema/XyoViewerRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/BlockBoundWitness.d.ts +10 -116
- package/dist/neutral/types/schema/common/BlockBoundWitness.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/BoundWitness.d.ts +38 -68
- package/dist/neutral/types/schema/common/BoundWitness.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/HydratedBlock.d.ts +51 -143
- package/dist/neutral/types/schema/common/HydratedBlock.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/HydratedTransaction.d.ts +61 -131
- package/dist/neutral/types/schema/common/HydratedTransaction.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/StepIdentity.d.ts +3 -0
- package/dist/neutral/types/schema/common/StepIdentity.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/TransactionBoundWitness.d.ts +10 -38
- package/dist/neutral/types/schema/common/TransactionBoundWitness.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/Transfer.d.ts +0 -31
- package/dist/neutral/types/schema/common/Transfer.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 +462 -501
- package/dist/node/index-node.mjs.map +1 -1
- package/dist/node/types/schema/AllRpcSchemas.d.ts +290 -721
- package/dist/node/types/schema/AllRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/XyoRunnerRpcSchemas.d.ts +18 -42
- package/dist/node/types/schema/XyoRunnerRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/XyoSignerRpcSchemas.d.ts +44 -97
- package/dist/node/types/schema/XyoSignerRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/XyoViewerRpcSchemas.d.ts +228 -582
- package/dist/node/types/schema/XyoViewerRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/common/BlockBoundWitness.d.ts +10 -116
- package/dist/node/types/schema/common/BlockBoundWitness.d.ts.map +1 -1
- package/dist/node/types/schema/common/BoundWitness.d.ts +38 -68
- package/dist/node/types/schema/common/BoundWitness.d.ts.map +1 -1
- package/dist/node/types/schema/common/HydratedBlock.d.ts +51 -143
- package/dist/node/types/schema/common/HydratedBlock.d.ts.map +1 -1
- package/dist/node/types/schema/common/HydratedTransaction.d.ts +61 -131
- package/dist/node/types/schema/common/HydratedTransaction.d.ts.map +1 -1
- package/dist/node/types/schema/common/StepIdentity.d.ts +3 -0
- package/dist/node/types/schema/common/StepIdentity.d.ts.map +1 -1
- package/dist/node/types/schema/common/TransactionBoundWitness.d.ts +10 -38
- package/dist/node/types/schema/common/TransactionBoundWitness.d.ts.map +1 -1
- package/dist/node/types/schema/common/Transfer.d.ts +0 -31
- package/dist/node/types/schema/common/Transfer.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 +14 -14
- package/src/types/schema/XyoViewerRpcSchemas.ts +9 -11
- package/src/types/schema/common/BlockBoundWitness.ts +1 -14
- package/src/types/schema/common/BoundWitness.ts +3 -2
- package/src/types/schema/common/HydratedBlock.ts +6 -6
- package/src/types/schema/common/HydratedTransaction.ts +1 -2
- package/src/types/schema/common/StepIdentity.ts +3 -0
- package/src/types/schema/common/Transfer.ts +1 -2
- package/src/types/schema/common/index.ts +0 -1
- package/src/types/schema/common/spec/Payload.spec.ts +2 -3
- package/dist/neutral/types/schema/common/Payload.d.ts +0 -81
- package/dist/neutral/types/schema/common/Payload.d.ts.map +0 -1
- package/dist/node/types/schema/common/Payload.d.ts +0 -81
- package/dist/node/types/schema/common/Payload.d.ts.map +0 -1
- package/src/types/schema/common/Payload.ts +0 -23
package/dist/neutral/index.mjs
CHANGED
|
@@ -193,7 +193,7 @@ var NetworkStakeViewerRpcSchemas = {
|
|
|
193
193
|
};
|
|
194
194
|
|
|
195
195
|
// src/types/schema/XyoPermissionsRpcSchemas.ts
|
|
196
|
-
import * as
|
|
196
|
+
import * as z19 from "zod";
|
|
197
197
|
|
|
198
198
|
// src/types/schema/common/Address.ts
|
|
199
199
|
import { AddressRegEx, toAddress } from "@xylabs/hex";
|
|
@@ -235,132 +235,114 @@ var JsonToArrayBufferZod = z3.string().transform((x) => {
|
|
|
235
235
|
|
|
236
236
|
// src/types/schema/common/BlockBoundWitness.ts
|
|
237
237
|
import { HashZod as HashZod2 } from "@xylabs/hex";
|
|
238
|
-
import { StorageMetaZod as
|
|
238
|
+
import { StorageMetaZod as StorageMetaZod2 } from "@xyo-network/payload-model";
|
|
239
239
|
import { XL1BlockNumberZod } from "@xyo-network/xl1-protocol";
|
|
240
|
-
import * as
|
|
240
|
+
import * as z6 from "zod";
|
|
241
241
|
|
|
242
242
|
// src/types/schema/common/BoundWitness.ts
|
|
243
243
|
import { HashZod, HexZod } from "@xylabs/hex";
|
|
244
244
|
import { BoundWitnessSchema } from "@xyo-network/boundwitness-model";
|
|
245
|
-
import {
|
|
246
|
-
import * as z5 from "zod";
|
|
247
|
-
|
|
248
|
-
// src/types/schema/common/Payload.ts
|
|
249
|
-
import { StorageMetaZod } from "@xyo-network/payload-model";
|
|
245
|
+
import { PayloadZod, SchemaZod, StorageMetaZod } from "@xyo-network/payload-model";
|
|
250
246
|
import * as z4 from "zod";
|
|
251
|
-
var
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
var AnyPayloadZod = PayloadZod.catchall(z4.json());
|
|
257
|
-
var AnyPayloadWithStorageMetaZod = AnyPayloadZod.extend(StorageMetaZod.shape);
|
|
258
|
-
function WithStorageMetaZod(valueZod) {
|
|
259
|
-
return StorageMetaZod.extend(valueZod.shape);
|
|
260
|
-
}
|
|
261
|
-
__name(WithStorageMetaZod, "WithStorageMetaZod");
|
|
262
|
-
|
|
263
|
-
// src/types/schema/common/BoundWitness.ts
|
|
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())
|
|
247
|
+
var BoundWitnessRequiredFieldsZod = z4.object({
|
|
248
|
+
addresses: z4.array(AddressZod),
|
|
249
|
+
payload_hashes: z4.array(HashZod),
|
|
250
|
+
payload_schemas: z4.array(SchemaZod),
|
|
251
|
+
previous_hashes: z4.array(HashZod.nullable())
|
|
269
252
|
});
|
|
270
|
-
var BoundWitnessMetaZod =
|
|
253
|
+
var BoundWitnessMetaZod = z4.object({
|
|
271
254
|
$destination: AddressZod.optional(),
|
|
272
255
|
$sourceQuery: HashZod.optional(),
|
|
273
|
-
$signatures:
|
|
256
|
+
$signatures: z4.array(z4.union([
|
|
274
257
|
HexZod,
|
|
275
|
-
|
|
258
|
+
z4.null()
|
|
276
259
|
]))
|
|
277
260
|
});
|
|
278
261
|
var BoundWitnessZod = PayloadZod.extend({
|
|
279
|
-
schema:
|
|
262
|
+
schema: z4.literal(BoundWitnessSchema)
|
|
280
263
|
}).extend(BoundWitnessRequiredFieldsZod.shape).extend(BoundWitnessMetaZod.shape).refine((data) => data.$signatures.length === data.addresses.length, {
|
|
281
264
|
message: "$signatures length must equal addresses length"
|
|
282
265
|
});
|
|
283
|
-
var AnyBoundWitnessZod = BoundWitnessZod.catchall(
|
|
266
|
+
var AnyBoundWitnessZod = BoundWitnessZod.catchall(z4.any());
|
|
284
267
|
var UnsignedBoundWitnessZod = BoundWitnessZod.refine((data) => data.$signatures.includes(null), {
|
|
285
268
|
message: "all $signatures must be null"
|
|
286
269
|
});
|
|
287
|
-
var AnyUnsignedBoundWitnessZod = UnsignedBoundWitnessZod.catchall(
|
|
288
|
-
var UnsignedBoundWitnessWithStorageMetaZod = UnsignedBoundWitnessZod.safeExtend(BoundWitnessRequiredFieldsZod.shape).safeExtend(BoundWitnessMetaZod.shape).safeExtend(
|
|
270
|
+
var AnyUnsignedBoundWitnessZod = UnsignedBoundWitnessZod.catchall(z4.any());
|
|
271
|
+
var UnsignedBoundWitnessWithStorageMetaZod = UnsignedBoundWitnessZod.safeExtend(BoundWitnessRequiredFieldsZod.shape).safeExtend(BoundWitnessMetaZod.shape).safeExtend(StorageMetaZod.shape);
|
|
289
272
|
var SignedBoundWitnessZod = BoundWitnessZod.refine((data) => !data.$signatures.includes(null), {
|
|
290
273
|
message: "all $signatures must not be null"
|
|
291
274
|
});
|
|
292
275
|
var SignedBoundWitnessWithStorageMetaZod = UnsignedBoundWitnessWithStorageMetaZod;
|
|
293
|
-
var AnySignedBoundWitnessZod = UnsignedBoundWitnessZod.catchall(
|
|
294
|
-
var AnySignedBoundWitnessWithStorageMetaZod = UnsignedBoundWitnessWithStorageMetaZod.catchall(
|
|
276
|
+
var AnySignedBoundWitnessZod = UnsignedBoundWitnessZod.catchall(z4.any());
|
|
277
|
+
var AnySignedBoundWitnessWithStorageMetaZod = UnsignedBoundWitnessWithStorageMetaZod.catchall(z4.any());
|
|
295
278
|
|
|
296
279
|
// src/types/schema/common/Chain.ts
|
|
297
280
|
import { AddressRegEx as AddressRegEx2, toAddress as toAddress2 } from "@xylabs/hex";
|
|
298
|
-
import * as
|
|
299
|
-
var ChainZod =
|
|
281
|
+
import * as z5 from "zod";
|
|
282
|
+
var ChainZod = z5.string().toLowerCase().regex(AddressRegEx2).transform((v) => toAddress2(v));
|
|
300
283
|
|
|
301
284
|
// src/types/schema/common/BlockBoundWitness.ts
|
|
302
|
-
var BlockBoundWitnessFieldsZod =
|
|
285
|
+
var BlockBoundWitnessFieldsZod = z6.object({
|
|
303
286
|
block: XL1BlockNumberZod,
|
|
304
287
|
chain: ChainZod,
|
|
305
288
|
previous: HashZod2.nullable(),
|
|
306
|
-
protocol:
|
|
307
|
-
step_hashes:
|
|
289
|
+
protocol: z6.number(),
|
|
290
|
+
step_hashes: z6.array(HashZod2).optional()
|
|
308
291
|
});
|
|
309
|
-
var BlockBoundWitnessMetaZod =
|
|
310
|
-
$epoch:
|
|
292
|
+
var BlockBoundWitnessMetaZod = z6.object({
|
|
293
|
+
$epoch: z6.number()
|
|
311
294
|
});
|
|
312
|
-
var BlockBoundWitnessZod = UnsignedBoundWitnessZod.merge(
|
|
313
|
-
var
|
|
314
|
-
var SignedBlockBoundWitnessZod = SignedBoundWitnessZod.merge(StorageMetaZod3.partial()).merge(BlockBoundWitnessFieldsZod).merge(BlockBoundWitnessMetaZod);
|
|
315
|
-
var SignedBlockBoundWitnessWithStorageMetaZod = SignedBoundWitnessWithStorageMetaZod.merge(StorageMetaZod3.partial()).merge(BlockBoundWitnessFieldsZod).merge(BlockBoundWitnessMetaZod);
|
|
295
|
+
var BlockBoundWitnessZod = UnsignedBoundWitnessZod.merge(StorageMetaZod2.partial()).merge(BlockBoundWitnessFieldsZod).merge(BlockBoundWitnessMetaZod);
|
|
296
|
+
var SignedBlockBoundWitnessZod = SignedBoundWitnessZod.merge(StorageMetaZod2.partial()).merge(BlockBoundWitnessFieldsZod).merge(BlockBoundWitnessMetaZod);
|
|
316
297
|
|
|
317
298
|
// src/types/schema/common/HydratedBlock.ts
|
|
318
|
-
import
|
|
319
|
-
|
|
299
|
+
import { PayloadZod as PayloadZod2, WithStorageMetaZod } from "@xyo-network/payload-model";
|
|
300
|
+
import * as z7 from "zod";
|
|
301
|
+
var HydratedBlockZod = z7.tuple([
|
|
320
302
|
BlockBoundWitnessZod,
|
|
321
|
-
|
|
303
|
+
z7.array(PayloadZod2)
|
|
322
304
|
]);
|
|
323
|
-
var HydratedBlockWithStorageMetaZod =
|
|
324
|
-
|
|
325
|
-
|
|
305
|
+
var HydratedBlockWithStorageMetaZod = z7.tuple([
|
|
306
|
+
WithStorageMetaZod(BlockBoundWitnessZod),
|
|
307
|
+
z7.array(WithStorageMetaZod(PayloadZod2))
|
|
326
308
|
]);
|
|
327
|
-
var SignedHydratedBlockZod =
|
|
309
|
+
var SignedHydratedBlockZod = z7.tuple([
|
|
328
310
|
SignedBlockBoundWitnessZod,
|
|
329
|
-
|
|
311
|
+
z7.array(PayloadZod2)
|
|
330
312
|
]);
|
|
331
|
-
var SignedHydratedBlockToJsonZod =
|
|
313
|
+
var SignedHydratedBlockToJsonZod = z7.tuple([
|
|
332
314
|
SignedBlockBoundWitnessZod,
|
|
333
|
-
|
|
315
|
+
z7.array(PayloadZod2)
|
|
334
316
|
]);
|
|
335
|
-
var SignedHydratedBlockWithStorageMetaZod =
|
|
336
|
-
|
|
337
|
-
|
|
317
|
+
var SignedHydratedBlockWithStorageMetaZod = z7.tuple([
|
|
318
|
+
WithStorageMetaZod(SignedBlockBoundWitnessZod),
|
|
319
|
+
z7.array(WithStorageMetaZod(PayloadZod2))
|
|
338
320
|
]);
|
|
339
321
|
|
|
340
322
|
// src/types/schema/common/HydratedTransaction.ts
|
|
341
|
-
import { asAnyPayload } from "@xyo-network/payload-model";
|
|
323
|
+
import { asAnyPayload, PayloadZod as PayloadZod3 } from "@xyo-network/payload-model";
|
|
342
324
|
import { asSignedHydratedTransaction } from "@xyo-network/xl1-protocol";
|
|
343
|
-
import * as
|
|
325
|
+
import * as z10 from "zod";
|
|
344
326
|
|
|
345
327
|
// src/types/schema/common/TransactionBoundWitness.ts
|
|
346
|
-
import { StorageMetaZod as
|
|
328
|
+
import { StorageMetaZod as StorageMetaZod3 } from "@xyo-network/payload-model";
|
|
347
329
|
import { BlockNumberZod as BlockNumberZod2 } from "@xyo-network/xl1-protocol";
|
|
348
|
-
import * as
|
|
330
|
+
import * as z9 from "zod";
|
|
349
331
|
|
|
350
332
|
// src/types/schema/common/TransactionFees.ts
|
|
351
333
|
import { BigIntToJsonZod as BigIntToJsonZod2, HexZod as HexZod2, JsonToBigIntZod as JsonToBigIntZod2 } from "@xylabs/hex";
|
|
352
334
|
import { asAttoXL1 } from "@xyo-network/xl1-protocol";
|
|
353
|
-
import * as
|
|
354
|
-
var AttoZod =
|
|
335
|
+
import * as z8 from "zod";
|
|
336
|
+
var AttoZod = z8.bigint();
|
|
355
337
|
var JsonToAttoZod = JsonToBigIntZod2.transform((v) => asAttoXL1(v));
|
|
356
338
|
var AttoToJsonZod = BigIntToJsonZod2;
|
|
357
|
-
var TransactionFeesHexZod =
|
|
339
|
+
var TransactionFeesHexZod = z8.object({
|
|
358
340
|
base: HexZod2,
|
|
359
341
|
gasLimit: HexZod2,
|
|
360
342
|
gasPrice: HexZod2,
|
|
361
343
|
priority: HexZod2
|
|
362
344
|
});
|
|
363
|
-
var TransactionFeesBigIntZod =
|
|
345
|
+
var TransactionFeesBigIntZod = z8.object({
|
|
364
346
|
base: AttoZod,
|
|
365
347
|
gasLimit: AttoZod,
|
|
366
348
|
gasPrice: AttoZod,
|
|
@@ -380,41 +362,41 @@ var TransactionFeesBigIntToJsonZod = TransactionFeesBigIntZod.transform((val) =>
|
|
|
380
362
|
}));
|
|
381
363
|
|
|
382
364
|
// src/types/schema/common/TransactionBoundWitness.ts
|
|
383
|
-
var BlockStartZod =
|
|
365
|
+
var BlockStartZod = z9.object({
|
|
384
366
|
nbf: BlockNumberZod2
|
|
385
367
|
});
|
|
386
|
-
var BlockEndZod =
|
|
368
|
+
var BlockEndZod = z9.object({
|
|
387
369
|
exp: BlockNumberZod2
|
|
388
370
|
});
|
|
389
|
-
var BlockDurationZod =
|
|
371
|
+
var BlockDurationZod = z9.object({
|
|
390
372
|
nbf: BlockNumberZod2,
|
|
391
373
|
exp: BlockNumberZod2
|
|
392
374
|
});
|
|
393
|
-
var BlockScriptsZod =
|
|
394
|
-
script:
|
|
375
|
+
var BlockScriptsZod = z9.object({
|
|
376
|
+
script: z9.array(z9.string()).optional()
|
|
395
377
|
});
|
|
396
|
-
var WithTransactionFeesZod =
|
|
378
|
+
var WithTransactionFeesZod = z9.object({
|
|
397
379
|
fees: TransactionFeesHexZod
|
|
398
380
|
});
|
|
399
|
-
var TransactionBoundWitnessFields =
|
|
381
|
+
var TransactionBoundWitnessFields = z9.object({
|
|
400
382
|
chain: ChainZod,
|
|
401
383
|
from: ChainZod
|
|
402
384
|
});
|
|
403
|
-
var TransactionBoundWitnessZod = UnsignedBoundWitnessZod.merge(
|
|
404
|
-
var SignedTransactionBoundWitnessZod = SignedBoundWitnessZod.merge(
|
|
385
|
+
var TransactionBoundWitnessZod = UnsignedBoundWitnessZod.merge(StorageMetaZod3.partial()).merge(BlockDurationZod).merge(WithTransactionFeesZod).merge(TransactionBoundWitnessFields).merge(BlockScriptsZod);
|
|
386
|
+
var SignedTransactionBoundWitnessZod = SignedBoundWitnessZod.merge(StorageMetaZod3.partial()).merge(BlockDurationZod).merge(WithTransactionFeesZod).merge(TransactionBoundWitnessFields).merge(BlockScriptsZod.partial());
|
|
405
387
|
|
|
406
388
|
// src/types/schema/common/HydratedTransaction.ts
|
|
407
|
-
var HydratedTransactionZod =
|
|
389
|
+
var HydratedTransactionZod = z10.tuple([
|
|
408
390
|
TransactionBoundWitnessZod,
|
|
409
|
-
|
|
391
|
+
z10.array(PayloadZod3)
|
|
410
392
|
]);
|
|
411
|
-
var UnsignedHydratedTransactionZod =
|
|
393
|
+
var UnsignedHydratedTransactionZod = z10.tuple([
|
|
412
394
|
TransactionBoundWitnessZod,
|
|
413
|
-
|
|
395
|
+
z10.array(PayloadZod3)
|
|
414
396
|
]);
|
|
415
|
-
var SignedHydratedTransactionZod =
|
|
397
|
+
var SignedHydratedTransactionZod = z10.tuple([
|
|
416
398
|
SignedTransactionBoundWitnessZod,
|
|
417
|
-
|
|
399
|
+
z10.array(PayloadZod3)
|
|
418
400
|
]);
|
|
419
401
|
var SignedHydratedTransactionToJsonZod = SignedHydratedTransactionZod.transform(([tx, payloads]) => asSignedHydratedTransaction([
|
|
420
402
|
tx,
|
|
@@ -426,99 +408,99 @@ var JsonToSignedHydratedTransactionZod = SignedHydratedTransactionZod.transform(
|
|
|
426
408
|
]);
|
|
427
409
|
|
|
428
410
|
// src/types/schema/common/Json.ts
|
|
429
|
-
import * as
|
|
430
|
-
var JsonValueZod =
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
411
|
+
import * as z11 from "zod";
|
|
412
|
+
var JsonValueZod = z11.lazy(() => z11.union([
|
|
413
|
+
z11.string(),
|
|
414
|
+
z11.number(),
|
|
415
|
+
z11.boolean(),
|
|
416
|
+
z11.null(),
|
|
417
|
+
z11.array(JsonValueZod),
|
|
418
|
+
z11.record(z11.string(), JsonValueZod)
|
|
437
419
|
]));
|
|
438
|
-
var JsonObjectZod =
|
|
420
|
+
var JsonObjectZod = z11.record(z11.string(), JsonValueZod);
|
|
439
421
|
|
|
440
422
|
// src/types/schema/common/Permission.ts
|
|
441
|
-
import { z as
|
|
442
|
-
var CaveatTypesZod =
|
|
423
|
+
import { z as z12 } from "zod";
|
|
424
|
+
var CaveatTypesZod = z12.enum([
|
|
443
425
|
"chain",
|
|
444
426
|
"expiration",
|
|
445
427
|
"filteredResponse",
|
|
446
428
|
"rateLimit",
|
|
447
429
|
"restrictReturnedAccounts"
|
|
448
430
|
]);
|
|
449
|
-
var CaveatsZod =
|
|
431
|
+
var CaveatsZod = z12.object({
|
|
450
432
|
type: CaveatTypesZod,
|
|
451
|
-
value:
|
|
433
|
+
value: z12.json()
|
|
452
434
|
});
|
|
453
|
-
var PermissionZod =
|
|
454
|
-
parentCapability:
|
|
435
|
+
var PermissionZod = z12.object({
|
|
436
|
+
parentCapability: z12.string(),
|
|
455
437
|
caveats: CaveatsZod.array().optional(),
|
|
456
|
-
invoker:
|
|
438
|
+
invoker: z12.string()
|
|
457
439
|
});
|
|
458
440
|
var InvokerPermissionZod = PermissionZod.extend({
|
|
459
|
-
date:
|
|
441
|
+
date: z12.number().optional()
|
|
460
442
|
});
|
|
461
|
-
var PermissionRequestZod =
|
|
462
|
-
var RequestedPermissionZod =
|
|
463
|
-
parentCapability:
|
|
464
|
-
date:
|
|
443
|
+
var PermissionRequestZod = z12.record(z12.string(), z12.record(z12.string(), z12.any()));
|
|
444
|
+
var RequestedPermissionZod = z12.object({
|
|
445
|
+
parentCapability: z12.string(),
|
|
446
|
+
date: z12.number().optional()
|
|
465
447
|
});
|
|
466
448
|
|
|
467
449
|
// src/types/schema/common/RewardsRangeOptions.ts
|
|
468
450
|
import { BlockRangeZod } from "@xyo-network/xl1-protocol";
|
|
469
|
-
import { z as
|
|
451
|
+
import { z as z14 } from "zod";
|
|
470
452
|
|
|
471
453
|
// src/types/schema/common/StepIdentity.ts
|
|
472
|
-
import * as
|
|
473
|
-
var StepIdentityZod =
|
|
474
|
-
block:
|
|
475
|
-
step:
|
|
454
|
+
import * as z13 from "zod";
|
|
455
|
+
var StepIdentityZod = z13.object({
|
|
456
|
+
block: z13.number(),
|
|
457
|
+
step: z13.number()
|
|
476
458
|
});
|
|
477
459
|
|
|
478
460
|
// src/types/schema/common/RewardsRangeOptions.ts
|
|
479
|
-
var RewardsRangeOptionsZod =
|
|
480
|
-
positions:
|
|
461
|
+
var RewardsRangeOptionsZod = z14.object({
|
|
462
|
+
positions: z14.array(z14.number()).optional(),
|
|
481
463
|
range: BlockRangeZod.optional(),
|
|
482
|
-
steps:
|
|
483
|
-
stakers:
|
|
464
|
+
steps: z14.array(StepIdentityZod).optional(),
|
|
465
|
+
stakers: z14.array(AddressZod).optional()
|
|
484
466
|
});
|
|
485
467
|
|
|
486
468
|
// src/types/schema/common/Sequence.ts
|
|
487
469
|
import { HexRegExMinMax, toHex } from "@xylabs/hex";
|
|
488
470
|
import { SequenceConstants } from "@xyo-network/payload-model";
|
|
489
|
-
import * as
|
|
471
|
+
import * as z15 from "zod";
|
|
490
472
|
var LocalSequenceRegex = new RegExp(HexRegExMinMax(SequenceConstants.localSequenceBytes, SequenceConstants.localSequenceBytes));
|
|
491
|
-
var LocalSequenceToStringZod =
|
|
492
|
-
var LocalSequenceFromStringZod =
|
|
473
|
+
var LocalSequenceToStringZod = z15.string().regex(LocalSequenceRegex);
|
|
474
|
+
var LocalSequenceFromStringZod = z15.string().regex(LocalSequenceRegex).transform((v) => toHex(v));
|
|
493
475
|
var QualifiedSequenceRegex = new RegExp(HexRegExMinMax(SequenceConstants.qualifiedSequenceBytes, SequenceConstants.qualifiedSequenceBytes));
|
|
494
|
-
var QualifiedSequenceToStringZod =
|
|
495
|
-
var QualifiedSequenceFromStringZod =
|
|
496
|
-
var SequenceToStringZod =
|
|
476
|
+
var QualifiedSequenceToStringZod = z15.string().regex(QualifiedSequenceRegex);
|
|
477
|
+
var QualifiedSequenceFromStringZod = z15.string().regex(QualifiedSequenceRegex).transform((v) => toHex(v));
|
|
478
|
+
var SequenceToStringZod = z15.union([
|
|
497
479
|
LocalSequenceToStringZod,
|
|
498
480
|
QualifiedSequenceToStringZod
|
|
499
481
|
]);
|
|
500
|
-
var SequenceFromStringZod =
|
|
482
|
+
var SequenceFromStringZod = z15.union([
|
|
501
483
|
LocalSequenceFromStringZod,
|
|
502
484
|
QualifiedSequenceFromStringZod
|
|
503
485
|
]);
|
|
504
486
|
|
|
505
487
|
// src/types/schema/common/Stake.ts
|
|
506
488
|
import { HexZod as HexZod3 } from "@xylabs/hex";
|
|
507
|
-
import * as
|
|
508
|
-
var StakeZod =
|
|
489
|
+
import * as z16 from "zod";
|
|
490
|
+
var StakeZod = z16.object({
|
|
509
491
|
amount: AttoZod,
|
|
510
492
|
// the block number when the stake was added
|
|
511
|
-
addBlock:
|
|
493
|
+
addBlock: z16.number(),
|
|
512
494
|
// the unique id for the stake item
|
|
513
|
-
id:
|
|
495
|
+
id: z16.number(),
|
|
514
496
|
// the block number when the stake was removed (set to 0 if not removed)
|
|
515
|
-
removeBlock:
|
|
497
|
+
removeBlock: z16.number(),
|
|
516
498
|
// the address that is being staked
|
|
517
499
|
staked: AddressZod,
|
|
518
500
|
// the address that owns the stake
|
|
519
501
|
staker: AddressZod,
|
|
520
502
|
// the block number when the stake was withdrawn (set to 0 if not withdrawn)
|
|
521
|
-
withdrawBlock:
|
|
503
|
+
withdrawBlock: z16.number()
|
|
522
504
|
});
|
|
523
505
|
var StakeToJsonZod = StakeZod.transform((val) => ({
|
|
524
506
|
addBlock: val.addBlock,
|
|
@@ -543,22 +525,21 @@ var JsonToStakeZod = StakeZod.extend({
|
|
|
543
525
|
|
|
544
526
|
// src/types/schema/common/Transfer.ts
|
|
545
527
|
import { HexZod as HexZod4 } from "@xylabs/hex";
|
|
546
|
-
import { PayloadZodStrictOfSchema
|
|
528
|
+
import { PayloadZodStrictOfSchema } from "@xyo-network/payload-model";
|
|
547
529
|
import { TransferSchema } from "@xyo-network/xl1-protocol";
|
|
548
|
-
import
|
|
549
|
-
var TransferFieldsZod =
|
|
550
|
-
$opCodes:
|
|
551
|
-
context:
|
|
552
|
-
epoch:
|
|
530
|
+
import z17 from "zod";
|
|
531
|
+
var TransferFieldsZod = z17.object({
|
|
532
|
+
$opCodes: z17.array(z17.string()).optional(),
|
|
533
|
+
context: z17.record(z17.string(), z17.json()).optional(),
|
|
534
|
+
epoch: z17.number(),
|
|
553
535
|
from: AddressZod,
|
|
554
|
-
transfers:
|
|
536
|
+
transfers: z17.record(AddressZod, HexZod4)
|
|
555
537
|
});
|
|
556
538
|
var TransferZod = PayloadZodStrictOfSchema(TransferSchema).extend(TransferFieldsZod.shape);
|
|
557
|
-
var TransferZodWithStorageMeta = TransferZod.extend(StorageMetaZod5.shape);
|
|
558
539
|
|
|
559
540
|
// src/types/schema/common/TransferPair.ts
|
|
560
|
-
import
|
|
561
|
-
var TransferPairZod =
|
|
541
|
+
import z18 from "zod";
|
|
542
|
+
var TransferPairZod = z18.tuple([
|
|
562
543
|
AddressZod,
|
|
563
544
|
AddressZod
|
|
564
545
|
]);
|
|
@@ -567,54 +548,54 @@ var TransferPairZod = z19.tuple([
|
|
|
567
548
|
var XyoPermissionsRpcSchemas = {
|
|
568
549
|
xyoPermissions_getPermissions: {
|
|
569
550
|
params: {
|
|
570
|
-
to:
|
|
571
|
-
from:
|
|
551
|
+
to: z19.array(z19.any()).length(0),
|
|
552
|
+
from: z19.array(z19.any()).length(0)
|
|
572
553
|
},
|
|
573
554
|
result: {
|
|
574
|
-
to:
|
|
575
|
-
from:
|
|
555
|
+
to: z19.array(InvokerPermissionZod),
|
|
556
|
+
from: z19.array(InvokerPermissionZod)
|
|
576
557
|
}
|
|
577
558
|
},
|
|
578
559
|
xyoPermissions_requestPermissions: {
|
|
579
560
|
params: {
|
|
580
|
-
to:
|
|
581
|
-
|
|
561
|
+
to: z19.tuple([
|
|
562
|
+
z19.array(PermissionRequestZod)
|
|
582
563
|
]),
|
|
583
|
-
from:
|
|
584
|
-
|
|
564
|
+
from: z19.tuple([
|
|
565
|
+
z19.array(PermissionRequestZod)
|
|
585
566
|
])
|
|
586
567
|
},
|
|
587
568
|
result: {
|
|
588
|
-
to:
|
|
589
|
-
from:
|
|
569
|
+
to: z19.array(RequestedPermissionZod),
|
|
570
|
+
from: z19.array(RequestedPermissionZod)
|
|
590
571
|
}
|
|
591
572
|
},
|
|
592
573
|
xyoPermissions_revokePermissions: {
|
|
593
574
|
params: {
|
|
594
|
-
to:
|
|
595
|
-
|
|
575
|
+
to: z19.tuple([
|
|
576
|
+
z19.array(PermissionRequestZod)
|
|
596
577
|
]),
|
|
597
|
-
from:
|
|
598
|
-
|
|
578
|
+
from: z19.tuple([
|
|
579
|
+
z19.array(PermissionRequestZod)
|
|
599
580
|
])
|
|
600
581
|
},
|
|
601
582
|
result: {
|
|
602
|
-
to:
|
|
603
|
-
from:
|
|
583
|
+
to: z19.array(RequestedPermissionZod),
|
|
584
|
+
from: z19.array(RequestedPermissionZod)
|
|
604
585
|
}
|
|
605
586
|
}
|
|
606
587
|
};
|
|
607
588
|
|
|
608
589
|
// src/types/schema/XyoRunnerRpcSchemas.ts
|
|
609
590
|
import { HashToJsonZod, JsonToHashZod } from "@xylabs/hex";
|
|
610
|
-
import * as
|
|
591
|
+
import * as z20 from "zod";
|
|
611
592
|
var XyoRunnerRpcSchemas = {
|
|
612
593
|
xyoRunner_broadcastTransaction: {
|
|
613
594
|
params: {
|
|
614
|
-
to:
|
|
595
|
+
to: z20.tuple([
|
|
615
596
|
SignedHydratedTransactionZod
|
|
616
597
|
]),
|
|
617
|
-
from:
|
|
598
|
+
from: z20.tuple([
|
|
618
599
|
SignedHydratedTransactionZod
|
|
619
600
|
])
|
|
620
601
|
},
|
|
@@ -627,12 +608,12 @@ var XyoRunnerRpcSchemas = {
|
|
|
627
608
|
|
|
628
609
|
// src/types/schema/XyoSignerRpcSchemas.ts
|
|
629
610
|
import { asHydratedTransactionWithStorageMeta } from "@xyo-network/xl1-protocol";
|
|
630
|
-
import { z as
|
|
611
|
+
import { z as z21 } from "zod";
|
|
631
612
|
var XyoSignerRpcSchemas = {
|
|
632
613
|
xyoSigner_address: {
|
|
633
614
|
params: {
|
|
634
|
-
to:
|
|
635
|
-
from:
|
|
615
|
+
to: z21.array(z21.any()).length(0).optional(),
|
|
616
|
+
from: z21.array(z21.any()).length(0).optional()
|
|
636
617
|
},
|
|
637
618
|
result: {
|
|
638
619
|
to: AddressZod,
|
|
@@ -641,10 +622,10 @@ var XyoSignerRpcSchemas = {
|
|
|
641
622
|
},
|
|
642
623
|
xyoSigner_signTransaction: {
|
|
643
624
|
params: {
|
|
644
|
-
to:
|
|
625
|
+
to: z21.tuple([
|
|
645
626
|
UnsignedHydratedTransactionZod
|
|
646
627
|
]),
|
|
647
|
-
from:
|
|
628
|
+
from: z21.tuple([
|
|
648
629
|
UnsignedHydratedTransactionZod
|
|
649
630
|
])
|
|
650
631
|
},
|
|
@@ -659,15 +640,16 @@ var XyoSignerRpcSchemas = {
|
|
|
659
640
|
|
|
660
641
|
// src/types/schema/XyoViewerRpcSchemas.ts
|
|
661
642
|
import { BigIntToJsonZod as BigIntToJsonZod3, HashToJsonZod as HashToJsonZod2, HashZod as HashZod3, JsonToBigIntZod as JsonToBigIntZod3, JsonToHashZod as JsonToHashZod2 } from "@xylabs/hex";
|
|
662
|
-
import {
|
|
663
|
-
import
|
|
643
|
+
import { PayloadZod as PayloadZod4, WithHashMetaZod } from "@xyo-network/payload-model";
|
|
644
|
+
import { BlockNumberZod as BlockNumberZod3, BlockRangeZod as BlockRangeZod2, StepIdentityZod as StepIdentityZod2, XL1BlockRangeZod } from "@xyo-network/xl1-protocol";
|
|
645
|
+
import * as z22 from "zod";
|
|
664
646
|
var XyoViewerRpcSchemas = {
|
|
665
647
|
xyoViewer_networkStakeStepRewardClaimedByAddress: {
|
|
666
648
|
params: {
|
|
667
|
-
to:
|
|
649
|
+
to: z22.tuple([
|
|
668
650
|
AddressZod
|
|
669
651
|
]),
|
|
670
|
-
from:
|
|
652
|
+
from: z22.tuple([
|
|
671
653
|
AddressZod
|
|
672
654
|
])
|
|
673
655
|
},
|
|
@@ -678,51 +660,51 @@ var XyoViewerRpcSchemas = {
|
|
|
678
660
|
},
|
|
679
661
|
xyoViewer_networkStakeStepRewardAddressReward: {
|
|
680
662
|
params: {
|
|
681
|
-
to:
|
|
682
|
-
|
|
663
|
+
to: z22.tuple([
|
|
664
|
+
StepIdentityZod2,
|
|
683
665
|
AddressZod
|
|
684
666
|
]),
|
|
685
|
-
from:
|
|
686
|
-
|
|
667
|
+
from: z22.tuple([
|
|
668
|
+
StepIdentityZod2,
|
|
687
669
|
AddressZod
|
|
688
670
|
])
|
|
689
671
|
},
|
|
690
672
|
result: {
|
|
691
|
-
to:
|
|
692
|
-
from:
|
|
673
|
+
to: z22.record(AddressZod, BigIntToJsonZod3),
|
|
674
|
+
from: z22.record(AddressZod, JsonToBigIntZod3)
|
|
693
675
|
}
|
|
694
676
|
},
|
|
695
677
|
xyoViewer_networkStakeStepRewardAddressHistory: {
|
|
696
678
|
params: {
|
|
697
|
-
to:
|
|
679
|
+
to: z22.tuple([
|
|
698
680
|
AddressZod
|
|
699
681
|
]),
|
|
700
|
-
from:
|
|
682
|
+
from: z22.tuple([
|
|
701
683
|
AddressZod
|
|
702
684
|
])
|
|
703
685
|
},
|
|
704
686
|
result: {
|
|
705
|
-
to:
|
|
706
|
-
from:
|
|
687
|
+
to: z22.record(AddressZod, BigIntToJsonZod3),
|
|
688
|
+
from: z22.record(AddressZod, JsonToBigIntZod3)
|
|
707
689
|
}
|
|
708
690
|
},
|
|
709
691
|
xyoViewer_networkStakeStepRewardAddressShare: {
|
|
710
692
|
params: {
|
|
711
|
-
to:
|
|
712
|
-
|
|
693
|
+
to: z22.tuple([
|
|
694
|
+
StepIdentityZod2,
|
|
713
695
|
AddressZod
|
|
714
696
|
]),
|
|
715
|
-
from:
|
|
716
|
-
|
|
697
|
+
from: z22.tuple([
|
|
698
|
+
StepIdentityZod2,
|
|
717
699
|
AddressZod
|
|
718
700
|
])
|
|
719
701
|
},
|
|
720
702
|
result: {
|
|
721
|
-
to:
|
|
703
|
+
to: z22.tuple([
|
|
722
704
|
BigIntToJsonZod3,
|
|
723
705
|
BigIntToJsonZod3
|
|
724
706
|
]),
|
|
725
|
-
from:
|
|
707
|
+
from: z22.tuple([
|
|
726
708
|
JsonToBigIntZod3,
|
|
727
709
|
JsonToBigIntZod3
|
|
728
710
|
])
|
|
@@ -730,12 +712,12 @@ var XyoViewerRpcSchemas = {
|
|
|
730
712
|
},
|
|
731
713
|
xyoViewer_networkStakeStepRewardWeightForAddress: {
|
|
732
714
|
params: {
|
|
733
|
-
to:
|
|
734
|
-
|
|
715
|
+
to: z22.tuple([
|
|
716
|
+
StepIdentityZod2,
|
|
735
717
|
AddressZod
|
|
736
718
|
]),
|
|
737
|
-
from:
|
|
738
|
-
|
|
719
|
+
from: z22.tuple([
|
|
720
|
+
StepIdentityZod2,
|
|
739
721
|
AddressZod
|
|
740
722
|
])
|
|
741
723
|
},
|
|
@@ -746,10 +728,10 @@ var XyoViewerRpcSchemas = {
|
|
|
746
728
|
},
|
|
747
729
|
xyoViewer_networkStakeStepRewardUnclaimedByAddress: {
|
|
748
730
|
params: {
|
|
749
|
-
to:
|
|
731
|
+
to: z22.tuple([
|
|
750
732
|
AddressZod
|
|
751
733
|
]),
|
|
752
|
-
from:
|
|
734
|
+
from: z22.tuple([
|
|
753
735
|
AddressZod
|
|
754
736
|
])
|
|
755
737
|
},
|
|
@@ -760,27 +742,27 @@ var XyoViewerRpcSchemas = {
|
|
|
760
742
|
},
|
|
761
743
|
xyoViewer_networkStakeStepRewardPoolRewards: {
|
|
762
744
|
params: {
|
|
763
|
-
to:
|
|
764
|
-
|
|
745
|
+
to: z22.tuple([
|
|
746
|
+
StepIdentityZod2
|
|
765
747
|
]),
|
|
766
|
-
from:
|
|
767
|
-
|
|
748
|
+
from: z22.tuple([
|
|
749
|
+
StepIdentityZod2
|
|
768
750
|
])
|
|
769
751
|
},
|
|
770
752
|
result: {
|
|
771
|
-
to:
|
|
772
|
-
from:
|
|
753
|
+
to: z22.record(AddressZod, BigIntToJsonZod3),
|
|
754
|
+
from: z22.record(AddressZod, JsonToBigIntZod3)
|
|
773
755
|
}
|
|
774
756
|
},
|
|
775
757
|
xyoViewer_networkStakeStepRewardPositionWeight: {
|
|
776
758
|
params: {
|
|
777
|
-
to:
|
|
778
|
-
|
|
779
|
-
|
|
759
|
+
to: z22.tuple([
|
|
760
|
+
StepIdentityZod2,
|
|
761
|
+
z22.number()
|
|
780
762
|
]),
|
|
781
|
-
from:
|
|
782
|
-
|
|
783
|
-
|
|
763
|
+
from: z22.tuple([
|
|
764
|
+
StepIdentityZod2,
|
|
765
|
+
z22.number()
|
|
784
766
|
])
|
|
785
767
|
},
|
|
786
768
|
result: {
|
|
@@ -790,13 +772,13 @@ var XyoViewerRpcSchemas = {
|
|
|
790
772
|
},
|
|
791
773
|
xyoViewer_networkStakeStepRewardPotentialPositionLoss: {
|
|
792
774
|
params: {
|
|
793
|
-
to:
|
|
794
|
-
|
|
795
|
-
|
|
775
|
+
to: z22.tuple([
|
|
776
|
+
StepIdentityZod2,
|
|
777
|
+
z22.number()
|
|
796
778
|
]),
|
|
797
|
-
from:
|
|
798
|
-
|
|
799
|
-
|
|
779
|
+
from: z22.tuple([
|
|
780
|
+
StepIdentityZod2,
|
|
781
|
+
z22.number()
|
|
800
782
|
])
|
|
801
783
|
},
|
|
802
784
|
result: {
|
|
@@ -806,11 +788,11 @@ var XyoViewerRpcSchemas = {
|
|
|
806
788
|
},
|
|
807
789
|
xyoViewer_networkStakeStepRewardForStep: {
|
|
808
790
|
params: {
|
|
809
|
-
to:
|
|
810
|
-
|
|
791
|
+
to: z22.tuple([
|
|
792
|
+
StepIdentityZod2
|
|
811
793
|
]),
|
|
812
|
-
from:
|
|
813
|
-
|
|
794
|
+
from: z22.tuple([
|
|
795
|
+
StepIdentityZod2
|
|
814
796
|
])
|
|
815
797
|
},
|
|
816
798
|
result: {
|
|
@@ -820,11 +802,11 @@ var XyoViewerRpcSchemas = {
|
|
|
820
802
|
},
|
|
821
803
|
xyoViewer_networkStakeStepRewardRandomizer: {
|
|
822
804
|
params: {
|
|
823
|
-
to:
|
|
824
|
-
|
|
805
|
+
to: z22.tuple([
|
|
806
|
+
StepIdentityZod2
|
|
825
807
|
]),
|
|
826
|
-
from:
|
|
827
|
-
|
|
808
|
+
from: z22.tuple([
|
|
809
|
+
StepIdentityZod2
|
|
828
810
|
])
|
|
829
811
|
},
|
|
830
812
|
result: {
|
|
@@ -834,49 +816,49 @@ var XyoViewerRpcSchemas = {
|
|
|
834
816
|
},
|
|
835
817
|
xyoViewer_networkStakeStepRewardStakerCount: {
|
|
836
818
|
params: {
|
|
837
|
-
to:
|
|
838
|
-
|
|
819
|
+
to: z22.tuple([
|
|
820
|
+
StepIdentityZod2
|
|
839
821
|
]),
|
|
840
|
-
from:
|
|
841
|
-
|
|
822
|
+
from: z22.tuple([
|
|
823
|
+
StepIdentityZod2
|
|
842
824
|
])
|
|
843
825
|
},
|
|
844
826
|
result: {
|
|
845
|
-
to:
|
|
846
|
-
from:
|
|
827
|
+
to: z22.number(),
|
|
828
|
+
from: z22.number()
|
|
847
829
|
}
|
|
848
830
|
},
|
|
849
831
|
xyoViewer_networkStakeStepRewardPoolShares: {
|
|
850
832
|
params: {
|
|
851
|
-
to:
|
|
852
|
-
|
|
833
|
+
to: z22.tuple([
|
|
834
|
+
StepIdentityZod2
|
|
853
835
|
]),
|
|
854
|
-
from:
|
|
855
|
-
|
|
836
|
+
from: z22.tuple([
|
|
837
|
+
StepIdentityZod2
|
|
856
838
|
])
|
|
857
839
|
},
|
|
858
840
|
result: {
|
|
859
|
-
to:
|
|
860
|
-
from:
|
|
841
|
+
to: z22.record(AddressZod, BigIntToJsonZod3),
|
|
842
|
+
from: z22.record(AddressZod, JsonToBigIntZod3)
|
|
861
843
|
}
|
|
862
844
|
},
|
|
863
845
|
xyoViewer_networkStakeStepRewardForStepForPosition: {
|
|
864
846
|
params: {
|
|
865
|
-
to:
|
|
866
|
-
|
|
867
|
-
|
|
847
|
+
to: z22.tuple([
|
|
848
|
+
StepIdentityZod2,
|
|
849
|
+
z22.number()
|
|
868
850
|
]),
|
|
869
|
-
from:
|
|
870
|
-
|
|
871
|
-
|
|
851
|
+
from: z22.tuple([
|
|
852
|
+
StepIdentityZod2,
|
|
853
|
+
z22.number()
|
|
872
854
|
])
|
|
873
855
|
},
|
|
874
856
|
result: {
|
|
875
|
-
to:
|
|
857
|
+
to: z22.tuple([
|
|
876
858
|
BigIntToJsonZod3,
|
|
877
859
|
BigIntToJsonZod3
|
|
878
860
|
]),
|
|
879
|
-
from:
|
|
861
|
+
from: z22.tuple([
|
|
880
862
|
JsonToBigIntZod3,
|
|
881
863
|
JsonToBigIntZod3
|
|
882
864
|
])
|
|
@@ -884,27 +866,27 @@ var XyoViewerRpcSchemas = {
|
|
|
884
866
|
},
|
|
885
867
|
xyoViewer_networkStakeStepRewardForPosition: {
|
|
886
868
|
params: {
|
|
887
|
-
to:
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
869
|
+
to: z22.tuple([
|
|
870
|
+
z22.number(),
|
|
871
|
+
z22.tuple([
|
|
872
|
+
z22.number(),
|
|
873
|
+
z22.number()
|
|
892
874
|
])
|
|
893
875
|
]),
|
|
894
|
-
from:
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
876
|
+
from: z22.tuple([
|
|
877
|
+
z22.number(),
|
|
878
|
+
z22.tuple([
|
|
879
|
+
z22.number(),
|
|
880
|
+
z22.number()
|
|
899
881
|
])
|
|
900
882
|
])
|
|
901
883
|
},
|
|
902
884
|
result: {
|
|
903
|
-
to:
|
|
885
|
+
to: z22.tuple([
|
|
904
886
|
BigIntToJsonZod3,
|
|
905
887
|
BigIntToJsonZod3
|
|
906
888
|
]),
|
|
907
|
-
from:
|
|
889
|
+
from: z22.tuple([
|
|
908
890
|
JsonToBigIntZod3,
|
|
909
891
|
JsonToBigIntZod3
|
|
910
892
|
])
|
|
@@ -912,16 +894,16 @@ var XyoViewerRpcSchemas = {
|
|
|
912
894
|
},
|
|
913
895
|
xyoViewer_networkStakeStepRewardsForRange: {
|
|
914
896
|
params: {
|
|
915
|
-
to:
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
897
|
+
to: z22.tuple([
|
|
898
|
+
z22.tuple([
|
|
899
|
+
z22.number(),
|
|
900
|
+
z22.number()
|
|
919
901
|
])
|
|
920
902
|
]),
|
|
921
|
-
from:
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
903
|
+
from: z22.tuple([
|
|
904
|
+
z22.tuple([
|
|
905
|
+
z22.number(),
|
|
906
|
+
z22.number()
|
|
925
907
|
])
|
|
926
908
|
])
|
|
927
909
|
},
|
|
@@ -932,18 +914,18 @@ var XyoViewerRpcSchemas = {
|
|
|
932
914
|
},
|
|
933
915
|
xyoViewer_networkStakeStepRewardsForStepLevel: {
|
|
934
916
|
params: {
|
|
935
|
-
to:
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
917
|
+
to: z22.tuple([
|
|
918
|
+
z22.number(),
|
|
919
|
+
z22.tuple([
|
|
920
|
+
z22.number(),
|
|
921
|
+
z22.number()
|
|
940
922
|
])
|
|
941
923
|
]),
|
|
942
|
-
from:
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
924
|
+
from: z22.tuple([
|
|
925
|
+
z22.number(),
|
|
926
|
+
z22.tuple([
|
|
927
|
+
z22.number(),
|
|
928
|
+
z22.number()
|
|
947
929
|
])
|
|
948
930
|
])
|
|
949
931
|
},
|
|
@@ -954,27 +936,27 @@ var XyoViewerRpcSchemas = {
|
|
|
954
936
|
},
|
|
955
937
|
xyoViewer_networkStakeStepRewardsForPosition: {
|
|
956
938
|
params: {
|
|
957
|
-
to:
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
939
|
+
to: z22.tuple([
|
|
940
|
+
z22.number(),
|
|
941
|
+
z22.tuple([
|
|
942
|
+
z22.number(),
|
|
943
|
+
z22.number()
|
|
962
944
|
])
|
|
963
945
|
]),
|
|
964
|
-
from:
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
946
|
+
from: z22.tuple([
|
|
947
|
+
z22.number(),
|
|
948
|
+
z22.tuple([
|
|
949
|
+
z22.number(),
|
|
950
|
+
z22.number()
|
|
969
951
|
])
|
|
970
952
|
])
|
|
971
953
|
},
|
|
972
954
|
result: {
|
|
973
|
-
to:
|
|
955
|
+
to: z22.record(z22.string(), z22.tuple([
|
|
974
956
|
BigIntToJsonZod3,
|
|
975
957
|
BigIntToJsonZod3
|
|
976
958
|
])),
|
|
977
|
-
from:
|
|
959
|
+
from: z22.record(z22.string(), z22.tuple([
|
|
978
960
|
JsonToBigIntZod3,
|
|
979
961
|
JsonToBigIntZod3
|
|
980
962
|
]))
|
|
@@ -982,10 +964,10 @@ var XyoViewerRpcSchemas = {
|
|
|
982
964
|
},
|
|
983
965
|
xyoViewer_accountBalance: {
|
|
984
966
|
params: {
|
|
985
|
-
to:
|
|
967
|
+
to: z22.tuple([
|
|
986
968
|
AddressZod
|
|
987
969
|
]),
|
|
988
|
-
from:
|
|
970
|
+
from: z22.tuple([
|
|
989
971
|
AddressZod
|
|
990
972
|
])
|
|
991
973
|
},
|
|
@@ -996,40 +978,40 @@ var XyoViewerRpcSchemas = {
|
|
|
996
978
|
},
|
|
997
979
|
xyoViewer_accountBalanceHistory: {
|
|
998
980
|
params: {
|
|
999
|
-
to:
|
|
981
|
+
to: z22.tuple([
|
|
1000
982
|
AddressZod,
|
|
1001
|
-
|
|
983
|
+
z22.union([
|
|
1002
984
|
XL1BlockRangeZod,
|
|
1003
985
|
HashZod3
|
|
1004
986
|
]).optional()
|
|
1005
987
|
]),
|
|
1006
|
-
from:
|
|
988
|
+
from: z22.tuple([
|
|
1007
989
|
AddressZod,
|
|
1008
|
-
|
|
990
|
+
z22.union([
|
|
1009
991
|
XL1BlockRangeZod,
|
|
1010
992
|
HashZod3
|
|
1011
993
|
]).optional()
|
|
1012
994
|
])
|
|
1013
995
|
},
|
|
1014
996
|
result: {
|
|
1015
|
-
to:
|
|
1016
|
-
BlockBoundWitnessZod,
|
|
1017
|
-
TransactionBoundWitnessZod.nullable(),
|
|
1018
|
-
|
|
997
|
+
to: z22.array(z22.tuple([
|
|
998
|
+
WithHashMetaZod(BlockBoundWitnessZod),
|
|
999
|
+
WithHashMetaZod(TransactionBoundWitnessZod).nullable(),
|
|
1000
|
+
WithHashMetaZod(TransferZod)
|
|
1019
1001
|
])),
|
|
1020
|
-
from:
|
|
1021
|
-
BlockBoundWitnessZod,
|
|
1022
|
-
TransactionBoundWitnessZod.nullable(),
|
|
1023
|
-
|
|
1002
|
+
from: z22.array(z22.tuple([
|
|
1003
|
+
WithHashMetaZod(BlockBoundWitnessZod),
|
|
1004
|
+
WithHashMetaZod(TransactionBoundWitnessZod).nullable(),
|
|
1005
|
+
WithHashMetaZod(TransferZod)
|
|
1024
1006
|
]))
|
|
1025
1007
|
}
|
|
1026
1008
|
},
|
|
1027
1009
|
xyoViewer_transferPairBalance: {
|
|
1028
1010
|
params: {
|
|
1029
|
-
to:
|
|
1011
|
+
to: z22.tuple([
|
|
1030
1012
|
TransferPairZod
|
|
1031
1013
|
]),
|
|
1032
|
-
from:
|
|
1014
|
+
from: z22.tuple([
|
|
1033
1015
|
TransferPairZod
|
|
1034
1016
|
])
|
|
1035
1017
|
},
|
|
@@ -1040,38 +1022,32 @@ var XyoViewerRpcSchemas = {
|
|
|
1040
1022
|
},
|
|
1041
1023
|
xyoViewer_transferPairBalanceHistory: {
|
|
1042
1024
|
params: {
|
|
1043
|
-
to:
|
|
1025
|
+
to: z22.tuple([
|
|
1044
1026
|
TransferPairZod
|
|
1045
1027
|
]),
|
|
1046
|
-
from:
|
|
1028
|
+
from: z22.tuple([
|
|
1047
1029
|
TransferPairZod
|
|
1048
1030
|
])
|
|
1049
1031
|
},
|
|
1050
1032
|
result: {
|
|
1051
|
-
to:
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
z23.null()
|
|
1056
|
-
]),
|
|
1057
|
-
PayloadZod
|
|
1033
|
+
to: z22.array(z22.tuple([
|
|
1034
|
+
WithHashMetaZod(BlockBoundWitnessZod),
|
|
1035
|
+
WithHashMetaZod(TransactionBoundWitnessZod).nullable(),
|
|
1036
|
+
WithHashMetaZod(PayloadZod4)
|
|
1058
1037
|
])),
|
|
1059
|
-
from:
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
z23.null()
|
|
1064
|
-
]),
|
|
1065
|
-
PayloadZod
|
|
1038
|
+
from: z22.array(z22.tuple([
|
|
1039
|
+
WithHashMetaZod(BlockBoundWitnessZod),
|
|
1040
|
+
WithHashMetaZod(TransactionBoundWitnessZod).nullable(),
|
|
1041
|
+
WithHashMetaZod(PayloadZod4)
|
|
1066
1042
|
]))
|
|
1067
1043
|
}
|
|
1068
1044
|
},
|
|
1069
1045
|
xyoViewer_transferBalance: {
|
|
1070
1046
|
params: {
|
|
1071
|
-
to:
|
|
1047
|
+
to: z22.tuple([
|
|
1072
1048
|
AddressZod
|
|
1073
1049
|
]),
|
|
1074
|
-
from:
|
|
1050
|
+
from: z22.tuple([
|
|
1075
1051
|
AddressZod
|
|
1076
1052
|
])
|
|
1077
1053
|
},
|
|
@@ -1082,40 +1058,34 @@ var XyoViewerRpcSchemas = {
|
|
|
1082
1058
|
},
|
|
1083
1059
|
xyoViewer_transferBalanceHistory: {
|
|
1084
1060
|
params: {
|
|
1085
|
-
to:
|
|
1061
|
+
to: z22.tuple([
|
|
1086
1062
|
AddressZod,
|
|
1087
1063
|
BlockRangeZod2.optional()
|
|
1088
1064
|
]),
|
|
1089
|
-
from:
|
|
1065
|
+
from: z22.tuple([
|
|
1090
1066
|
AddressZod,
|
|
1091
1067
|
BlockRangeZod2.optional()
|
|
1092
1068
|
])
|
|
1093
1069
|
},
|
|
1094
1070
|
result: {
|
|
1095
|
-
to:
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
z23.null()
|
|
1100
|
-
]),
|
|
1101
|
-
PayloadZod
|
|
1071
|
+
to: z22.array(z22.tuple([
|
|
1072
|
+
WithHashMetaZod(BlockBoundWitnessZod),
|
|
1073
|
+
WithHashMetaZod(TransactionBoundWitnessZod).nullable(),
|
|
1074
|
+
WithHashMetaZod(PayloadZod4)
|
|
1102
1075
|
])),
|
|
1103
|
-
from:
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
z23.null()
|
|
1108
|
-
]),
|
|
1109
|
-
PayloadZod
|
|
1076
|
+
from: z22.array(z22.tuple([
|
|
1077
|
+
WithHashMetaZod(BlockBoundWitnessZod),
|
|
1078
|
+
WithHashMetaZod(TransactionBoundWitnessZod).nullable(),
|
|
1079
|
+
WithHashMetaZod(PayloadZod4)
|
|
1110
1080
|
]))
|
|
1111
1081
|
}
|
|
1112
1082
|
},
|
|
1113
1083
|
xyoViewer_blockByHash: {
|
|
1114
1084
|
params: {
|
|
1115
|
-
to:
|
|
1085
|
+
to: z22.tuple([
|
|
1116
1086
|
HashToJsonZod2
|
|
1117
1087
|
]),
|
|
1118
|
-
from:
|
|
1088
|
+
from: z22.tuple([
|
|
1119
1089
|
JsonToHashZod2
|
|
1120
1090
|
])
|
|
1121
1091
|
},
|
|
@@ -1126,11 +1096,11 @@ var XyoViewerRpcSchemas = {
|
|
|
1126
1096
|
},
|
|
1127
1097
|
xyoViewer_blockByNumber: {
|
|
1128
1098
|
params: {
|
|
1129
|
-
to:
|
|
1130
|
-
|
|
1099
|
+
to: z22.tuple([
|
|
1100
|
+
z22.number()
|
|
1131
1101
|
]),
|
|
1132
|
-
from:
|
|
1133
|
-
|
|
1102
|
+
from: z22.tuple([
|
|
1103
|
+
z22.number()
|
|
1134
1104
|
])
|
|
1135
1105
|
},
|
|
1136
1106
|
result: {
|
|
@@ -1140,24 +1110,24 @@ var XyoViewerRpcSchemas = {
|
|
|
1140
1110
|
},
|
|
1141
1111
|
xyoViewer_blocksByHash: {
|
|
1142
1112
|
params: {
|
|
1143
|
-
to:
|
|
1113
|
+
to: z22.tuple([
|
|
1144
1114
|
HashZod3,
|
|
1145
|
-
|
|
1115
|
+
z22.number().optional()
|
|
1146
1116
|
]),
|
|
1147
|
-
from:
|
|
1117
|
+
from: z22.tuple([
|
|
1148
1118
|
HashZod3,
|
|
1149
|
-
|
|
1119
|
+
z22.number().optional()
|
|
1150
1120
|
])
|
|
1151
1121
|
},
|
|
1152
1122
|
result: {
|
|
1153
|
-
to:
|
|
1154
|
-
from:
|
|
1123
|
+
to: z22.array(SignedHydratedBlockZod),
|
|
1124
|
+
from: z22.array(SignedHydratedBlockZod)
|
|
1155
1125
|
}
|
|
1156
1126
|
},
|
|
1157
1127
|
xyoViewer_chainId: {
|
|
1158
1128
|
params: {
|
|
1159
|
-
to:
|
|
1160
|
-
from:
|
|
1129
|
+
to: z22.array(z22.any()).length(0).optional(),
|
|
1130
|
+
from: z22.array(z22.any()).length(0).optional()
|
|
1161
1131
|
},
|
|
1162
1132
|
result: {
|
|
1163
1133
|
to: AddressZod,
|
|
@@ -1166,10 +1136,10 @@ var XyoViewerRpcSchemas = {
|
|
|
1166
1136
|
},
|
|
1167
1137
|
xyoViewer_chainIdAtBlock: {
|
|
1168
1138
|
params: {
|
|
1169
|
-
to:
|
|
1139
|
+
to: z22.tuple([
|
|
1170
1140
|
BlockNumberZod3
|
|
1171
1141
|
]),
|
|
1172
|
-
from:
|
|
1142
|
+
from: z22.tuple([
|
|
1173
1143
|
BlockNumberZod3
|
|
1174
1144
|
])
|
|
1175
1145
|
},
|
|
@@ -1180,8 +1150,8 @@ var XyoViewerRpcSchemas = {
|
|
|
1180
1150
|
},
|
|
1181
1151
|
xyoViewer_currentBlock: {
|
|
1182
1152
|
params: {
|
|
1183
|
-
to:
|
|
1184
|
-
from:
|
|
1153
|
+
to: z22.array(z22.any()).length(0).optional(),
|
|
1154
|
+
from: z22.array(z22.any()).length(0).optional()
|
|
1185
1155
|
},
|
|
1186
1156
|
result: {
|
|
1187
1157
|
to: SignedHydratedBlockZod,
|
|
@@ -1190,8 +1160,8 @@ var XyoViewerRpcSchemas = {
|
|
|
1190
1160
|
},
|
|
1191
1161
|
xyoViewer_currentBlockHash: {
|
|
1192
1162
|
params: {
|
|
1193
|
-
to:
|
|
1194
|
-
from:
|
|
1163
|
+
to: z22.array(z22.any()).length(0).optional(),
|
|
1164
|
+
from: z22.array(z22.any()).length(0).optional()
|
|
1195
1165
|
},
|
|
1196
1166
|
result: {
|
|
1197
1167
|
to: HashZod3,
|
|
@@ -1200,8 +1170,8 @@ var XyoViewerRpcSchemas = {
|
|
|
1200
1170
|
},
|
|
1201
1171
|
xyoViewer_currentBlockNumber: {
|
|
1202
1172
|
params: {
|
|
1203
|
-
to:
|
|
1204
|
-
from:
|
|
1173
|
+
to: z22.array(z22.any()).length(0).optional(),
|
|
1174
|
+
from: z22.array(z22.any()).length(0).optional()
|
|
1205
1175
|
},
|
|
1206
1176
|
result: {
|
|
1207
1177
|
to: BlockNumberZod3,
|
|
@@ -1210,23 +1180,23 @@ var XyoViewerRpcSchemas = {
|
|
|
1210
1180
|
},
|
|
1211
1181
|
xyoViewer_forkHistory: {
|
|
1212
1182
|
params: {
|
|
1213
|
-
to:
|
|
1214
|
-
from:
|
|
1183
|
+
to: z22.array(z22.any()).length(0).optional(),
|
|
1184
|
+
from: z22.array(z22.any()).length(0).optional()
|
|
1215
1185
|
},
|
|
1216
1186
|
result: {
|
|
1217
|
-
to:
|
|
1218
|
-
from:
|
|
1187
|
+
to: z22.record(z22.number(), AddressZod),
|
|
1188
|
+
from: z22.record(z22.number(), AddressZod)
|
|
1219
1189
|
}
|
|
1220
1190
|
},
|
|
1221
1191
|
xyoViewer_stakeByStaker: {
|
|
1222
1192
|
params: {
|
|
1223
|
-
to:
|
|
1193
|
+
to: z22.tuple([
|
|
1224
1194
|
AddressZod,
|
|
1225
|
-
|
|
1195
|
+
z22.number()
|
|
1226
1196
|
]),
|
|
1227
|
-
from:
|
|
1197
|
+
from: z22.tuple([
|
|
1228
1198
|
AddressZod,
|
|
1229
|
-
|
|
1199
|
+
z22.number()
|
|
1230
1200
|
])
|
|
1231
1201
|
},
|
|
1232
1202
|
result: {
|
|
@@ -1236,11 +1206,11 @@ var XyoViewerRpcSchemas = {
|
|
|
1236
1206
|
},
|
|
1237
1207
|
xyoViewer_stakeById: {
|
|
1238
1208
|
params: {
|
|
1239
|
-
to:
|
|
1240
|
-
|
|
1209
|
+
to: z22.tuple([
|
|
1210
|
+
z22.number()
|
|
1241
1211
|
]),
|
|
1242
|
-
from:
|
|
1243
|
-
|
|
1212
|
+
from: z22.tuple([
|
|
1213
|
+
z22.number()
|
|
1244
1214
|
])
|
|
1245
1215
|
},
|
|
1246
1216
|
result: {
|
|
@@ -1250,55 +1220,55 @@ var XyoViewerRpcSchemas = {
|
|
|
1250
1220
|
},
|
|
1251
1221
|
xyoViewer_stakedByStaker: {
|
|
1252
1222
|
params: {
|
|
1253
|
-
to:
|
|
1223
|
+
to: z22.tuple([
|
|
1254
1224
|
AddressZod
|
|
1255
1225
|
]),
|
|
1256
|
-
from:
|
|
1226
|
+
from: z22.tuple([
|
|
1257
1227
|
AddressZod
|
|
1258
1228
|
])
|
|
1259
1229
|
},
|
|
1260
1230
|
result: {
|
|
1261
|
-
to:
|
|
1262
|
-
from:
|
|
1231
|
+
to: z22.array(AddressZod),
|
|
1232
|
+
from: z22.array(AddressZod)
|
|
1263
1233
|
}
|
|
1264
1234
|
},
|
|
1265
1235
|
xyoViewer_stakesByStaker: {
|
|
1266
1236
|
params: {
|
|
1267
|
-
to:
|
|
1237
|
+
to: z22.tuple([
|
|
1268
1238
|
AddressZod
|
|
1269
1239
|
]),
|
|
1270
|
-
from:
|
|
1240
|
+
from: z22.tuple([
|
|
1271
1241
|
AddressZod
|
|
1272
1242
|
])
|
|
1273
1243
|
},
|
|
1274
1244
|
result: {
|
|
1275
|
-
to:
|
|
1276
|
-
from:
|
|
1245
|
+
to: z22.array(StakeToJsonZod),
|
|
1246
|
+
from: z22.array(JsonToStakeZod)
|
|
1277
1247
|
}
|
|
1278
1248
|
},
|
|
1279
1249
|
xyoViewer_stakesByStaked: {
|
|
1280
1250
|
params: {
|
|
1281
|
-
to:
|
|
1251
|
+
to: z22.tuple([
|
|
1282
1252
|
AddressZod
|
|
1283
1253
|
]),
|
|
1284
|
-
from:
|
|
1254
|
+
from: z22.tuple([
|
|
1285
1255
|
AddressZod
|
|
1286
1256
|
])
|
|
1287
1257
|
},
|
|
1288
1258
|
result: {
|
|
1289
|
-
to:
|
|
1290
|
-
from:
|
|
1259
|
+
to: z22.array(StakeToJsonZod),
|
|
1260
|
+
from: z22.array(JsonToStakeZod)
|
|
1291
1261
|
}
|
|
1292
1262
|
},
|
|
1293
1263
|
xyoViewer_transactionByBlockHashAndIndex: {
|
|
1294
1264
|
params: {
|
|
1295
|
-
to:
|
|
1265
|
+
to: z22.tuple([
|
|
1296
1266
|
HashZod3,
|
|
1297
|
-
|
|
1267
|
+
z22.number()
|
|
1298
1268
|
]),
|
|
1299
|
-
from:
|
|
1269
|
+
from: z22.tuple([
|
|
1300
1270
|
HashZod3,
|
|
1301
|
-
|
|
1271
|
+
z22.number()
|
|
1302
1272
|
])
|
|
1303
1273
|
},
|
|
1304
1274
|
result: {
|
|
@@ -1308,13 +1278,13 @@ var XyoViewerRpcSchemas = {
|
|
|
1308
1278
|
},
|
|
1309
1279
|
xyoViewer_transactionByBlockNumberAndIndex: {
|
|
1310
1280
|
params: {
|
|
1311
|
-
to:
|
|
1312
|
-
|
|
1313
|
-
|
|
1281
|
+
to: z22.tuple([
|
|
1282
|
+
z22.number(),
|
|
1283
|
+
z22.number()
|
|
1314
1284
|
]),
|
|
1315
|
-
from:
|
|
1316
|
-
|
|
1317
|
-
|
|
1285
|
+
from: z22.tuple([
|
|
1286
|
+
z22.number(),
|
|
1287
|
+
z22.number()
|
|
1318
1288
|
])
|
|
1319
1289
|
},
|
|
1320
1290
|
result: {
|
|
@@ -1324,10 +1294,10 @@ var XyoViewerRpcSchemas = {
|
|
|
1324
1294
|
},
|
|
1325
1295
|
xyoViewer_transactionByHash: {
|
|
1326
1296
|
params: {
|
|
1327
|
-
to:
|
|
1297
|
+
to: z22.tuple([
|
|
1328
1298
|
HashZod3
|
|
1329
1299
|
]),
|
|
1330
|
-
from:
|
|
1300
|
+
from: z22.tuple([
|
|
1331
1301
|
HashZod3
|
|
1332
1302
|
])
|
|
1333
1303
|
},
|
|
@@ -1348,85 +1318,85 @@ var AllRpcSchemas = {
|
|
|
1348
1318
|
};
|
|
1349
1319
|
|
|
1350
1320
|
// src/types/schema/createRequestSchema.ts
|
|
1351
|
-
import * as
|
|
1352
|
-
var createRequestSchema = /* @__PURE__ */ __name((methodName, paramsSchema =
|
|
1353
|
-
id:
|
|
1354
|
-
|
|
1355
|
-
|
|
1321
|
+
import * as z23 from "zod";
|
|
1322
|
+
var createRequestSchema = /* @__PURE__ */ __name((methodName, paramsSchema = z23.undefined()) => z23.object({
|
|
1323
|
+
id: z23.union([
|
|
1324
|
+
z23.string(),
|
|
1325
|
+
z23.number()
|
|
1356
1326
|
]),
|
|
1357
|
-
jsonrpc:
|
|
1358
|
-
method:
|
|
1327
|
+
jsonrpc: z23.literal(jsonrpc),
|
|
1328
|
+
method: z23.literal(methodName),
|
|
1359
1329
|
params: paramsSchema
|
|
1360
1330
|
}), "createRequestSchema");
|
|
1361
1331
|
|
|
1362
1332
|
// src/types/schema/createResponseSchema.ts
|
|
1363
|
-
import * as
|
|
1364
|
-
var createResponseSchema = /* @__PURE__ */ __name((resultSchema =
|
|
1365
|
-
id:
|
|
1366
|
-
|
|
1367
|
-
|
|
1333
|
+
import * as z24 from "zod";
|
|
1334
|
+
var createResponseSchema = /* @__PURE__ */ __name((resultSchema = z24.undefined()) => z24.object({
|
|
1335
|
+
id: z24.union([
|
|
1336
|
+
z24.string(),
|
|
1337
|
+
z24.number()
|
|
1368
1338
|
]),
|
|
1369
|
-
jsonrpc:
|
|
1339
|
+
jsonrpc: z24.literal(jsonrpc),
|
|
1370
1340
|
result: resultSchema
|
|
1371
1341
|
}), "createResponseSchema");
|
|
1372
1342
|
|
|
1373
1343
|
// src/types/schema/DataLakeViewerRpcSchema.ts
|
|
1374
1344
|
import { HashZod as HashZod4 } from "@xylabs/hex";
|
|
1375
|
-
import { PayloadZod as
|
|
1376
|
-
import * as
|
|
1345
|
+
import { PayloadZod as PayloadZod5 } from "@xyo-network/payload-model";
|
|
1346
|
+
import * as z25 from "zod";
|
|
1377
1347
|
var DataLakeViewerRpcSchemas = {
|
|
1378
1348
|
dataLakeViewer_get: {
|
|
1379
1349
|
params: {
|
|
1380
|
-
to:
|
|
1350
|
+
to: z25.tuple([
|
|
1381
1351
|
HashZod4
|
|
1382
1352
|
]),
|
|
1383
|
-
from:
|
|
1353
|
+
from: z25.tuple([
|
|
1384
1354
|
HashZod4
|
|
1385
1355
|
])
|
|
1386
1356
|
},
|
|
1387
1357
|
result: {
|
|
1388
|
-
to:
|
|
1389
|
-
|
|
1358
|
+
to: z25.union([
|
|
1359
|
+
PayloadZod5,
|
|
1390
1360
|
ArrayBufferToJsonZod
|
|
1391
1361
|
]).optional(),
|
|
1392
|
-
from:
|
|
1393
|
-
|
|
1362
|
+
from: z25.union([
|
|
1363
|
+
PayloadZod5,
|
|
1394
1364
|
JsonToArrayBufferZod
|
|
1395
1365
|
]).optional()
|
|
1396
1366
|
}
|
|
1397
1367
|
},
|
|
1398
1368
|
dataLakeViewer_getMany: {
|
|
1399
1369
|
params: {
|
|
1400
|
-
to:
|
|
1401
|
-
|
|
1370
|
+
to: z25.tuple([
|
|
1371
|
+
z25.array(HashZod4)
|
|
1402
1372
|
]),
|
|
1403
|
-
from:
|
|
1404
|
-
|
|
1373
|
+
from: z25.tuple([
|
|
1374
|
+
z25.array(HashZod4)
|
|
1405
1375
|
])
|
|
1406
1376
|
},
|
|
1407
1377
|
result: {
|
|
1408
|
-
to:
|
|
1409
|
-
|
|
1378
|
+
to: z25.array(z25.union([
|
|
1379
|
+
PayloadZod5,
|
|
1410
1380
|
ArrayBufferToJsonZod
|
|
1411
1381
|
])),
|
|
1412
|
-
from:
|
|
1413
|
-
|
|
1382
|
+
from: z25.array(z25.union([
|
|
1383
|
+
PayloadZod5,
|
|
1414
1384
|
JsonToArrayBufferZod
|
|
1415
1385
|
]))
|
|
1416
1386
|
}
|
|
1417
1387
|
},
|
|
1418
1388
|
dataLakeViewer_has: {
|
|
1419
1389
|
params: {
|
|
1420
|
-
to:
|
|
1390
|
+
to: z25.tuple([
|
|
1421
1391
|
HashZod4
|
|
1422
1392
|
]),
|
|
1423
|
-
from:
|
|
1393
|
+
from: z25.tuple([
|
|
1424
1394
|
HashZod4
|
|
1425
1395
|
])
|
|
1426
1396
|
},
|
|
1427
1397
|
result: {
|
|
1428
|
-
to:
|
|
1429
|
-
from:
|
|
1398
|
+
to: z25.boolean(),
|
|
1399
|
+
from: z25.boolean()
|
|
1430
1400
|
}
|
|
1431
1401
|
}
|
|
1432
1402
|
};
|
|
@@ -1434,228 +1404,228 @@ var DataLakeViewerRpcSchemas = {
|
|
|
1434
1404
|
// src/types/schema/RewardsByPositionViewerRpcSchemas.ts
|
|
1435
1405
|
import { BigIntToJsonZod as BigIntToJsonZod4, JsonToBigIntZod as JsonToBigIntZod4 } from "@xylabs/hex";
|
|
1436
1406
|
import { asAttoXL1 as asAttoXL12 } from "@xyo-network/xl1-protocol";
|
|
1437
|
-
import
|
|
1407
|
+
import z26 from "zod";
|
|
1438
1408
|
var NetworkStakingStepRewardsByPositionViewerRpcSchemas = {
|
|
1439
1409
|
networkStakingStepRewardsByPositionViewer_bonus: {
|
|
1440
1410
|
params: {
|
|
1441
|
-
from:
|
|
1411
|
+
from: z26.tuple([
|
|
1442
1412
|
RewardsRangeOptionsZod.optional()
|
|
1443
1413
|
]),
|
|
1444
|
-
to:
|
|
1414
|
+
to: z26.tuple([
|
|
1445
1415
|
RewardsRangeOptionsZod.optional()
|
|
1446
1416
|
])
|
|
1447
1417
|
},
|
|
1448
1418
|
result: {
|
|
1449
|
-
from:
|
|
1450
|
-
to:
|
|
1419
|
+
from: z26.record(z26.number(), JsonToBigIntZod4.transform((val) => asAttoXL12(val))),
|
|
1420
|
+
to: z26.record(z26.number(), BigIntToJsonZod4)
|
|
1451
1421
|
}
|
|
1452
1422
|
},
|
|
1453
1423
|
networkStakingStepRewardsByPositionViewer_claimed: {
|
|
1454
1424
|
params: {
|
|
1455
|
-
from:
|
|
1425
|
+
from: z26.tuple([
|
|
1456
1426
|
RewardsRangeOptionsZod.optional()
|
|
1457
1427
|
]),
|
|
1458
|
-
to:
|
|
1428
|
+
to: z26.tuple([
|
|
1459
1429
|
RewardsRangeOptionsZod.optional()
|
|
1460
1430
|
])
|
|
1461
1431
|
},
|
|
1462
1432
|
result: {
|
|
1463
|
-
from:
|
|
1464
|
-
to:
|
|
1433
|
+
from: z26.record(z26.number(), BigIntToJsonZod4.transform((val) => asAttoXL12(val))),
|
|
1434
|
+
to: z26.record(z26.number(), JsonToBigIntZod4)
|
|
1465
1435
|
}
|
|
1466
1436
|
},
|
|
1467
1437
|
networkStakingStepRewardsByPositionViewer_earned: {
|
|
1468
1438
|
params: {
|
|
1469
|
-
from:
|
|
1439
|
+
from: z26.tuple([
|
|
1470
1440
|
RewardsRangeOptionsZod.optional()
|
|
1471
1441
|
]),
|
|
1472
|
-
to:
|
|
1442
|
+
to: z26.tuple([
|
|
1473
1443
|
RewardsRangeOptionsZod.optional()
|
|
1474
1444
|
])
|
|
1475
1445
|
},
|
|
1476
1446
|
result: {
|
|
1477
|
-
from:
|
|
1478
|
-
to:
|
|
1447
|
+
from: z26.record(z26.number(), BigIntToJsonZod4.transform((val) => asAttoXL12(val))),
|
|
1448
|
+
to: z26.record(z26.number(), JsonToBigIntZod4)
|
|
1479
1449
|
}
|
|
1480
1450
|
},
|
|
1481
1451
|
networkStakingStepRewardsByPositionViewer_total: {
|
|
1482
1452
|
params: {
|
|
1483
|
-
from:
|
|
1453
|
+
from: z26.tuple([
|
|
1484
1454
|
RewardsRangeOptionsZod.optional()
|
|
1485
1455
|
]),
|
|
1486
|
-
to:
|
|
1456
|
+
to: z26.tuple([
|
|
1487
1457
|
RewardsRangeOptionsZod.optional()
|
|
1488
1458
|
])
|
|
1489
1459
|
},
|
|
1490
1460
|
result: {
|
|
1491
|
-
from:
|
|
1492
|
-
to:
|
|
1461
|
+
from: z26.record(z26.number(), BigIntToJsonZod4.transform((val) => asAttoXL12(val))),
|
|
1462
|
+
to: z26.record(z26.number(), JsonToBigIntZod4)
|
|
1493
1463
|
}
|
|
1494
1464
|
},
|
|
1495
1465
|
networkStakingStepRewardsByPositionViewer_unclaimed: {
|
|
1496
1466
|
params: {
|
|
1497
|
-
from:
|
|
1467
|
+
from: z26.tuple([
|
|
1498
1468
|
RewardsRangeOptionsZod.optional()
|
|
1499
1469
|
]),
|
|
1500
|
-
to:
|
|
1470
|
+
to: z26.tuple([
|
|
1501
1471
|
RewardsRangeOptionsZod.optional()
|
|
1502
1472
|
])
|
|
1503
1473
|
},
|
|
1504
1474
|
result: {
|
|
1505
|
-
from:
|
|
1506
|
-
to:
|
|
1475
|
+
from: z26.record(z26.number(), BigIntToJsonZod4.transform((val) => asAttoXL12(val))),
|
|
1476
|
+
to: z26.record(z26.number(), JsonToBigIntZod4)
|
|
1507
1477
|
}
|
|
1508
1478
|
}
|
|
1509
1479
|
};
|
|
1510
1480
|
|
|
1511
1481
|
// src/types/schema/RewardsByStakerViewerRpcSchemas.ts
|
|
1512
1482
|
import { BigIntToJsonZod as BigIntToJsonZod5, JsonToBigIntZod as JsonToBigIntZod5 } from "@xylabs/hex";
|
|
1513
|
-
import
|
|
1483
|
+
import z27 from "zod";
|
|
1514
1484
|
var NetworkStakingStepRewardsByStakerViewerRpcSchemas = {
|
|
1515
1485
|
networkStakingStepRewardsByStakerViewer_bonus: {
|
|
1516
1486
|
params: {
|
|
1517
|
-
from:
|
|
1487
|
+
from: z27.tuple([
|
|
1518
1488
|
RewardsRangeOptionsZod.optional()
|
|
1519
1489
|
]),
|
|
1520
|
-
to:
|
|
1490
|
+
to: z27.tuple([
|
|
1521
1491
|
RewardsRangeOptionsZod.optional()
|
|
1522
1492
|
])
|
|
1523
1493
|
},
|
|
1524
1494
|
result: {
|
|
1525
|
-
from:
|
|
1526
|
-
to:
|
|
1495
|
+
from: z27.record(AddressZod, BigIntToJsonZod5),
|
|
1496
|
+
to: z27.record(AddressZod, JsonToBigIntZod5)
|
|
1527
1497
|
}
|
|
1528
1498
|
},
|
|
1529
1499
|
networkStakingStepRewardsByStakerViewer_claimed: {
|
|
1530
1500
|
params: {
|
|
1531
|
-
from:
|
|
1501
|
+
from: z27.tuple([
|
|
1532
1502
|
RewardsRangeOptionsZod.optional()
|
|
1533
1503
|
]),
|
|
1534
|
-
to:
|
|
1504
|
+
to: z27.tuple([
|
|
1535
1505
|
RewardsRangeOptionsZod.optional()
|
|
1536
1506
|
])
|
|
1537
1507
|
},
|
|
1538
1508
|
result: {
|
|
1539
|
-
from:
|
|
1540
|
-
to:
|
|
1509
|
+
from: z27.record(AddressZod, BigIntToJsonZod5),
|
|
1510
|
+
to: z27.record(AddressZod, JsonToBigIntZod5)
|
|
1541
1511
|
}
|
|
1542
1512
|
},
|
|
1543
1513
|
networkStakingStepRewardsByStakerViewer_earned: {
|
|
1544
1514
|
params: {
|
|
1545
|
-
from:
|
|
1515
|
+
from: z27.tuple([
|
|
1546
1516
|
RewardsRangeOptionsZod.optional()
|
|
1547
1517
|
]),
|
|
1548
|
-
to:
|
|
1518
|
+
to: z27.tuple([
|
|
1549
1519
|
RewardsRangeOptionsZod.optional()
|
|
1550
1520
|
])
|
|
1551
1521
|
},
|
|
1552
1522
|
result: {
|
|
1553
|
-
from:
|
|
1554
|
-
to:
|
|
1523
|
+
from: z27.record(AddressZod, BigIntToJsonZod5),
|
|
1524
|
+
to: z27.record(AddressZod, JsonToBigIntZod5)
|
|
1555
1525
|
}
|
|
1556
1526
|
},
|
|
1557
1527
|
networkStakingStepRewardsByStakerViewer_total: {
|
|
1558
1528
|
params: {
|
|
1559
|
-
from:
|
|
1529
|
+
from: z27.tuple([
|
|
1560
1530
|
RewardsRangeOptionsZod.optional()
|
|
1561
1531
|
]),
|
|
1562
|
-
to:
|
|
1532
|
+
to: z27.tuple([
|
|
1563
1533
|
RewardsRangeOptionsZod.optional()
|
|
1564
1534
|
])
|
|
1565
1535
|
},
|
|
1566
1536
|
result: {
|
|
1567
|
-
from:
|
|
1568
|
-
to:
|
|
1537
|
+
from: z27.record(AddressZod, BigIntToJsonZod5),
|
|
1538
|
+
to: z27.record(AddressZod, JsonToBigIntZod5)
|
|
1569
1539
|
}
|
|
1570
1540
|
},
|
|
1571
1541
|
networkStakingStepRewardsByStakerViewer_unclaimed: {
|
|
1572
1542
|
params: {
|
|
1573
|
-
from:
|
|
1543
|
+
from: z27.tuple([
|
|
1574
1544
|
RewardsRangeOptionsZod.optional()
|
|
1575
1545
|
]),
|
|
1576
|
-
to:
|
|
1546
|
+
to: z27.tuple([
|
|
1577
1547
|
RewardsRangeOptionsZod.optional()
|
|
1578
1548
|
])
|
|
1579
1549
|
},
|
|
1580
1550
|
result: {
|
|
1581
|
-
from:
|
|
1582
|
-
to:
|
|
1551
|
+
from: z27.record(AddressZod, BigIntToJsonZod5),
|
|
1552
|
+
to: z27.record(AddressZod, JsonToBigIntZod5)
|
|
1583
1553
|
}
|
|
1584
1554
|
}
|
|
1585
1555
|
};
|
|
1586
1556
|
|
|
1587
1557
|
// src/types/schema/RewardsByStepViewerRpcSchemas.ts
|
|
1588
1558
|
import { BigIntToJsonZod as BigIntToJsonZod6, JsonToBigIntZod as JsonToBigIntZod6 } from "@xylabs/hex";
|
|
1589
|
-
import
|
|
1559
|
+
import z28 from "zod";
|
|
1590
1560
|
var NetworkStakingStepRewardsByStepViewerRpcSchemas = {
|
|
1591
1561
|
networkStakingStepRewardsByStepViewer_bonus: {
|
|
1592
1562
|
params: {
|
|
1593
|
-
from:
|
|
1563
|
+
from: z28.tuple([
|
|
1594
1564
|
RewardsRangeOptionsZod.optional()
|
|
1595
1565
|
]),
|
|
1596
|
-
to:
|
|
1566
|
+
to: z28.tuple([
|
|
1597
1567
|
RewardsRangeOptionsZod.optional()
|
|
1598
1568
|
])
|
|
1599
1569
|
},
|
|
1600
1570
|
result: {
|
|
1601
|
-
from:
|
|
1602
|
-
to:
|
|
1571
|
+
from: z28.record(AddressZod, BigIntToJsonZod6),
|
|
1572
|
+
to: z28.record(AddressZod, JsonToBigIntZod6)
|
|
1603
1573
|
}
|
|
1604
1574
|
},
|
|
1605
1575
|
networkStakingStepRewardsByStepViewer_claimed: {
|
|
1606
1576
|
params: {
|
|
1607
|
-
from:
|
|
1577
|
+
from: z28.tuple([
|
|
1608
1578
|
RewardsRangeOptionsZod.optional()
|
|
1609
1579
|
]),
|
|
1610
|
-
to:
|
|
1580
|
+
to: z28.tuple([
|
|
1611
1581
|
RewardsRangeOptionsZod.optional()
|
|
1612
1582
|
])
|
|
1613
1583
|
},
|
|
1614
1584
|
result: {
|
|
1615
|
-
from:
|
|
1616
|
-
to:
|
|
1585
|
+
from: z28.record(AddressZod, BigIntToJsonZod6),
|
|
1586
|
+
to: z28.record(AddressZod, JsonToBigIntZod6)
|
|
1617
1587
|
}
|
|
1618
1588
|
},
|
|
1619
1589
|
networkStakingStepRewardsByStepViewer_earned: {
|
|
1620
1590
|
params: {
|
|
1621
|
-
from:
|
|
1591
|
+
from: z28.tuple([
|
|
1622
1592
|
RewardsRangeOptionsZod.optional()
|
|
1623
1593
|
]),
|
|
1624
|
-
to:
|
|
1594
|
+
to: z28.tuple([
|
|
1625
1595
|
RewardsRangeOptionsZod.optional()
|
|
1626
1596
|
])
|
|
1627
1597
|
},
|
|
1628
1598
|
result: {
|
|
1629
|
-
from:
|
|
1630
|
-
to:
|
|
1599
|
+
from: z28.record(AddressZod, BigIntToJsonZod6),
|
|
1600
|
+
to: z28.record(AddressZod, JsonToBigIntZod6)
|
|
1631
1601
|
}
|
|
1632
1602
|
},
|
|
1633
1603
|
networkStakingStepRewardsByStepViewer_total: {
|
|
1634
1604
|
params: {
|
|
1635
|
-
from:
|
|
1605
|
+
from: z28.tuple([
|
|
1636
1606
|
RewardsRangeOptionsZod.optional()
|
|
1637
1607
|
]),
|
|
1638
|
-
to:
|
|
1608
|
+
to: z28.tuple([
|
|
1639
1609
|
RewardsRangeOptionsZod.optional()
|
|
1640
1610
|
])
|
|
1641
1611
|
},
|
|
1642
1612
|
result: {
|
|
1643
|
-
from:
|
|
1644
|
-
to:
|
|
1613
|
+
from: z28.record(AddressZod, BigIntToJsonZod6),
|
|
1614
|
+
to: z28.record(AddressZod, JsonToBigIntZod6)
|
|
1645
1615
|
}
|
|
1646
1616
|
},
|
|
1647
1617
|
networkStakingStepRewardsByStepViewer_unclaimed: {
|
|
1648
1618
|
params: {
|
|
1649
|
-
from:
|
|
1619
|
+
from: z28.tuple([
|
|
1650
1620
|
RewardsRangeOptionsZod.optional()
|
|
1651
1621
|
]),
|
|
1652
|
-
to:
|
|
1622
|
+
to: z28.tuple([
|
|
1653
1623
|
RewardsRangeOptionsZod.optional()
|
|
1654
1624
|
])
|
|
1655
1625
|
},
|
|
1656
1626
|
result: {
|
|
1657
|
-
from:
|
|
1658
|
-
to:
|
|
1627
|
+
from: z28.record(AddressZod, BigIntToJsonZod6),
|
|
1628
|
+
to: z28.record(AddressZod, JsonToBigIntZod6)
|
|
1659
1629
|
}
|
|
1660
1630
|
}
|
|
1661
1631
|
};
|
|
@@ -1663,14 +1633,14 @@ var NetworkStakingStepRewardsByStepViewerRpcSchemas = {
|
|
|
1663
1633
|
// src/types/schema/RewardsTotalViewerRpcSchemas.ts
|
|
1664
1634
|
import { BigIntToJsonZod as BigIntToJsonZod7, JsonToBigIntZod as JsonToBigIntZod7 } from "@xylabs/hex";
|
|
1665
1635
|
import { asAttoXL1 as asAttoXL13 } from "@xyo-network/xl1-protocol";
|
|
1666
|
-
import * as
|
|
1636
|
+
import * as z29 from "zod";
|
|
1667
1637
|
var NetworkStakingStepRewardsTotalViewerRpcSchemas = {
|
|
1668
1638
|
networkStakingStepRewardsTotalViewer_bonus: {
|
|
1669
1639
|
params: {
|
|
1670
|
-
from:
|
|
1640
|
+
from: z29.tuple([
|
|
1671
1641
|
RewardsRangeOptionsZod.optional()
|
|
1672
1642
|
]),
|
|
1673
|
-
to:
|
|
1643
|
+
to: z29.tuple([
|
|
1674
1644
|
RewardsRangeOptionsZod.optional()
|
|
1675
1645
|
])
|
|
1676
1646
|
},
|
|
@@ -1681,10 +1651,10 @@ var NetworkStakingStepRewardsTotalViewerRpcSchemas = {
|
|
|
1681
1651
|
},
|
|
1682
1652
|
networkStakingStepRewardsTotalViewer_claimed: {
|
|
1683
1653
|
params: {
|
|
1684
|
-
from:
|
|
1654
|
+
from: z29.tuple([
|
|
1685
1655
|
RewardsRangeOptionsZod.optional()
|
|
1686
1656
|
]),
|
|
1687
|
-
to:
|
|
1657
|
+
to: z29.tuple([
|
|
1688
1658
|
RewardsRangeOptionsZod.optional()
|
|
1689
1659
|
])
|
|
1690
1660
|
},
|
|
@@ -1695,10 +1665,10 @@ var NetworkStakingStepRewardsTotalViewerRpcSchemas = {
|
|
|
1695
1665
|
},
|
|
1696
1666
|
networkStakingStepRewardsTotalViewer_earned: {
|
|
1697
1667
|
params: {
|
|
1698
|
-
from:
|
|
1668
|
+
from: z29.tuple([
|
|
1699
1669
|
RewardsRangeOptionsZod.optional()
|
|
1700
1670
|
]),
|
|
1701
|
-
to:
|
|
1671
|
+
to: z29.tuple([
|
|
1702
1672
|
RewardsRangeOptionsZod.optional()
|
|
1703
1673
|
])
|
|
1704
1674
|
},
|
|
@@ -1709,10 +1679,10 @@ var NetworkStakingStepRewardsTotalViewerRpcSchemas = {
|
|
|
1709
1679
|
},
|
|
1710
1680
|
networkStakingStepRewardsTotalViewer_total: {
|
|
1711
1681
|
params: {
|
|
1712
|
-
from:
|
|
1682
|
+
from: z29.tuple([
|
|
1713
1683
|
RewardsRangeOptionsZod.optional()
|
|
1714
1684
|
]),
|
|
1715
|
-
to:
|
|
1685
|
+
to: z29.tuple([
|
|
1716
1686
|
RewardsRangeOptionsZod.optional()
|
|
1717
1687
|
])
|
|
1718
1688
|
},
|
|
@@ -1723,10 +1693,10 @@ var NetworkStakingStepRewardsTotalViewerRpcSchemas = {
|
|
|
1723
1693
|
},
|
|
1724
1694
|
networkStakingStepRewardsTotalViewer_unclaimed: {
|
|
1725
1695
|
params: {
|
|
1726
|
-
from:
|
|
1696
|
+
from: z29.tuple([
|
|
1727
1697
|
RewardsRangeOptionsZod.optional()
|
|
1728
1698
|
]),
|
|
1729
|
-
to:
|
|
1699
|
+
to: z29.tuple([
|
|
1730
1700
|
RewardsRangeOptionsZod.optional()
|
|
1731
1701
|
])
|
|
1732
1702
|
},
|
|
@@ -1766,11 +1736,11 @@ var HttpRpcTransport = class {
|
|
|
1766
1736
|
body.params = schemas[method].params.to.parse(params);
|
|
1767
1737
|
}
|
|
1768
1738
|
const res = await new AxiosJson().post(url, body);
|
|
1769
|
-
const
|
|
1770
|
-
if (isUndefinedOrNull(
|
|
1771
|
-
throw new Error(
|
|
1739
|
+
const json = res.data;
|
|
1740
|
+
if (isUndefinedOrNull(json) || json.error) {
|
|
1741
|
+
throw new Error(json.error.message);
|
|
1772
1742
|
}
|
|
1773
|
-
return schemas[method].result.from.parse(
|
|
1743
|
+
return schemas[method].result.from.parse(json.result);
|
|
1774
1744
|
} catch (ex) {
|
|
1775
1745
|
let message = isError(ex) ? ex.message : String(ex);
|
|
1776
1746
|
if (isAxiosError(ex)) {
|
|
@@ -2317,15 +2287,12 @@ export {
|
|
|
2317
2287
|
AddressZod,
|
|
2318
2288
|
AllRpcSchemas,
|
|
2319
2289
|
AnyBoundWitnessZod,
|
|
2320
|
-
AnyPayloadWithStorageMetaZod,
|
|
2321
|
-
AnyPayloadZod,
|
|
2322
2290
|
AnySignedBoundWitnessWithStorageMetaZod,
|
|
2323
2291
|
AnySignedBoundWitnessZod,
|
|
2324
2292
|
AnyUnsignedBoundWitnessZod,
|
|
2325
2293
|
ArrayBufferToJsonZod,
|
|
2326
2294
|
AttoToJsonZod,
|
|
2327
2295
|
AttoZod,
|
|
2328
|
-
BlockBoundWitnessWithStorageMetaZod,
|
|
2329
2296
|
BlockBoundWitnessZod,
|
|
2330
2297
|
BlockDurationZod,
|
|
2331
2298
|
BlockEndZod,
|
|
@@ -2373,8 +2340,6 @@ export {
|
|
|
2373
2340
|
NetworkStakingStepRewardsViewerRpcNamespace,
|
|
2374
2341
|
NetworkStakingStepRewardsViewerRpcSchemas,
|
|
2375
2342
|
NodeXyoRunner,
|
|
2376
|
-
PayloadWithStorageMetaZod,
|
|
2377
|
-
PayloadZod,
|
|
2378
2343
|
PermissionRequestZod,
|
|
2379
2344
|
PermissionZod,
|
|
2380
2345
|
QualifiedSequenceFromStringZod,
|
|
@@ -2383,10 +2348,8 @@ export {
|
|
|
2383
2348
|
RewardsRangeOptionsZod,
|
|
2384
2349
|
RpcXyoPermissions,
|
|
2385
2350
|
RpcXyoSigner,
|
|
2386
|
-
SchemaZod,
|
|
2387
2351
|
SequenceFromStringZod,
|
|
2388
2352
|
SequenceToStringZod,
|
|
2389
|
-
SignedBlockBoundWitnessWithStorageMetaZod,
|
|
2390
2353
|
SignedBlockBoundWitnessZod,
|
|
2391
2354
|
SignedBoundWitnessWithStorageMetaZod,
|
|
2392
2355
|
SignedBoundWitnessZod,
|
|
@@ -2407,11 +2370,9 @@ export {
|
|
|
2407
2370
|
TransferFieldsZod,
|
|
2408
2371
|
TransferPairZod,
|
|
2409
2372
|
TransferZod,
|
|
2410
|
-
TransferZodWithStorageMeta,
|
|
2411
2373
|
UnsignedBoundWitnessWithStorageMetaZod,
|
|
2412
2374
|
UnsignedBoundWitnessZod,
|
|
2413
2375
|
UnsignedHydratedTransactionZod,
|
|
2414
|
-
WithStorageMetaZod,
|
|
2415
2376
|
WithTransactionFeesZod,
|
|
2416
2377
|
XyoBaseConnection,
|
|
2417
2378
|
XyoPermissionsRpcSchemas,
|