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