@xyo-network/xl1-rpc 1.16.8 → 1.16.9
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 +37 -24
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/types/schema/AllRpcSchemas.d.ts +10 -6
- package/dist/neutral/types/schema/AllRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/XyoViewerRpcSchemas.d.ts +10 -6
- package/dist/neutral/types/schema/XyoViewerRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/Transfer.d.ts +4 -1
- package/dist/neutral/types/schema/common/Transfer.d.ts.map +1 -1
- package/dist/node/index-node.mjs +37 -24
- package/dist/node/index-node.mjs.map +1 -1
- package/dist/node/types/schema/AllRpcSchemas.d.ts +10 -6
- package/dist/node/types/schema/AllRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/XyoViewerRpcSchemas.d.ts +10 -6
- package/dist/node/types/schema/XyoViewerRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/common/Transfer.d.ts +4 -1
- package/dist/node/types/schema/common/Transfer.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/provider/viewer/JsonRpcXyoViewer.ts +1 -1
- package/src/types/schema/XyoViewerRpcSchemas.ts +5 -5
- package/src/types/schema/common/Transfer.ts +4 -2
|
@@ -381,12 +381,16 @@ export declare const AllRpcSchemas: {
|
|
|
381
381
|
};
|
|
382
382
|
xyoViewer_accountBalanceHistory: {
|
|
383
383
|
params: {
|
|
384
|
-
to: import("zod").ZodTuple<[import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<import("@xylabs/typeof").Brand<import("@xylabs/hex").Hex, {
|
|
384
|
+
to: import("zod").ZodUnion<readonly [import("zod").ZodTuple<[import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<import("@xylabs/typeof").Brand<import("@xylabs/hex").Hex, {
|
|
385
385
|
readonly __address: true;
|
|
386
|
-
}>, string
|
|
387
|
-
|
|
386
|
+
}>, string>>], null>, import("zod").ZodTuple<[import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<import("@xylabs/typeof").Brand<import("@xylabs/hex").Hex, {
|
|
387
|
+
readonly __address: true;
|
|
388
|
+
}>, string>>, import("zod").ZodUnion<readonly [import("zod").ZodTuple<[import("zod").ZodPipe<import("zod").ZodNumber, import("zod").ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>, import("zod").ZodPipe<import("zod").ZodNumber, import("zod").ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>], null>, import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<import("@xylabs/hex").Hash, string>>]>], null>]>;
|
|
389
|
+
from: import("zod").ZodUnion<readonly [import("zod").ZodTuple<[import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<import("@xylabs/typeof").Brand<import("@xylabs/hex").Hex, {
|
|
390
|
+
readonly __address: true;
|
|
391
|
+
}>, string>>], null>, import("zod").ZodTuple<[import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<import("@xylabs/typeof").Brand<import("@xylabs/hex").Hex, {
|
|
388
392
|
readonly __address: true;
|
|
389
|
-
}>, string>>, import("zod").
|
|
393
|
+
}>, string>>, import("zod").ZodUnion<readonly [import("zod").ZodTuple<[import("zod").ZodPipe<import("zod").ZodNumber, import("zod").ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>, import("zod").ZodPipe<import("zod").ZodNumber, import("zod").ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>], null>, import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<import("@xylabs/hex").Hash, string>>]>], null>]>;
|
|
390
394
|
};
|
|
391
395
|
result: {
|
|
392
396
|
to: import("zod").ZodArray<import("zod").ZodTuple<[import("zod").ZodObject<{
|
|
@@ -1161,8 +1165,8 @@ export declare const AllRpcSchemas: {
|
|
|
1161
1165
|
from: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodAny>>;
|
|
1162
1166
|
};
|
|
1163
1167
|
result: {
|
|
1164
|
-
to: import("zod").ZodPipe<import("zod").ZodNumber, import("zod").ZodTransform<import("@xyo-network/xl1-protocol").
|
|
1165
|
-
from: import("zod").ZodPipe<import("zod").ZodNumber, import("zod").ZodTransform<import("@xyo-network/xl1-protocol").
|
|
1168
|
+
to: import("zod").ZodPipe<import("zod").ZodNumber, import("zod").ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>;
|
|
1169
|
+
from: import("zod").ZodPipe<import("zod").ZodNumber, import("zod").ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>;
|
|
1166
1170
|
};
|
|
1167
1171
|
};
|
|
1168
1172
|
xyoViewer_forkHistory: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AllRpcSchemas.d.ts","sourceRoot":"","sources":["../../../../src/types/schema/AllRpcSchemas.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"AllRpcSchemas.d.ts","sourceRoot":"","sources":["../../../../src/types/schema/AllRpcSchemas.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMF,CAAA"}
|
|
@@ -302,12 +302,16 @@ export declare const XyoViewerRpcSchemas: {
|
|
|
302
302
|
};
|
|
303
303
|
xyoViewer_accountBalanceHistory: {
|
|
304
304
|
params: {
|
|
305
|
-
to: z.ZodTuple<[z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/typeof").Brand<import("@xylabs/hex").Hex, {
|
|
305
|
+
to: z.ZodUnion<readonly [z.ZodTuple<[z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/typeof").Brand<import("@xylabs/hex").Hex, {
|
|
306
306
|
readonly __address: true;
|
|
307
|
-
}>, string
|
|
308
|
-
|
|
307
|
+
}>, string>>], null>, z.ZodTuple<[z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/typeof").Brand<import("@xylabs/hex").Hex, {
|
|
308
|
+
readonly __address: true;
|
|
309
|
+
}>, string>>, z.ZodUnion<readonly [z.ZodTuple<[z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>], null>, z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").Hash, string>>]>], null>]>;
|
|
310
|
+
from: z.ZodUnion<readonly [z.ZodTuple<[z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/typeof").Brand<import("@xylabs/hex").Hex, {
|
|
311
|
+
readonly __address: true;
|
|
312
|
+
}>, string>>], null>, z.ZodTuple<[z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/typeof").Brand<import("@xylabs/hex").Hex, {
|
|
309
313
|
readonly __address: true;
|
|
310
|
-
}>, string>>, z.
|
|
314
|
+
}>, string>>, z.ZodUnion<readonly [z.ZodTuple<[z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>], null>, z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").Hash, string>>]>], null>]>;
|
|
311
315
|
};
|
|
312
316
|
result: {
|
|
313
317
|
to: z.ZodArray<z.ZodTuple<[z.ZodObject<{
|
|
@@ -1082,8 +1086,8 @@ export declare const XyoViewerRpcSchemas: {
|
|
|
1082
1086
|
from: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
1083
1087
|
};
|
|
1084
1088
|
result: {
|
|
1085
|
-
to: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").
|
|
1086
|
-
from: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").
|
|
1089
|
+
to: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>;
|
|
1090
|
+
from: z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>;
|
|
1087
1091
|
};
|
|
1088
1092
|
};
|
|
1089
1093
|
xyoViewer_forkHistory: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XyoViewerRpcSchemas.d.ts","sourceRoot":"","sources":["../../../../src/types/schema/XyoViewerRpcSchemas.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAgBxB,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"XyoViewerRpcSchemas.d.ts","sourceRoot":"","sources":["../../../../src/types/schema/XyoViewerRpcSchemas.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAgBxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2ZgB,CAAA"}
|
|
@@ -10,6 +10,9 @@ export declare const TransferFieldsZod: z.ZodObject<{
|
|
|
10
10
|
readonly __address: true;
|
|
11
11
|
}>, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").Hex, string>>>;
|
|
12
12
|
}, z.z.core.$strip>;
|
|
13
|
+
export declare const PayloadZodOfSchema: <S extends string>(schema: S) => z.ZodObject<{
|
|
14
|
+
schema: z.ZodLiteral<S>;
|
|
15
|
+
}, z.z.core.$strip>;
|
|
13
16
|
export declare const TransferZod: z.ZodObject<{
|
|
14
17
|
schema: z.ZodLiteral<"network.xyo.transfer">;
|
|
15
18
|
$opCodes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -21,5 +24,5 @@ export declare const TransferZod: z.ZodObject<{
|
|
|
21
24
|
transfers: z.ZodRecord<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/typeof").Brand<import("@xylabs/hex").Hex, {
|
|
22
25
|
readonly __address: true;
|
|
23
26
|
}>, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/hex").Hex, string>>>;
|
|
24
|
-
}, z.z.core.$
|
|
27
|
+
}, z.z.core.$strip>;
|
|
25
28
|
//# sourceMappingURL=Transfer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Transfer.d.ts","sourceRoot":"","sources":["../../../../../src/types/schema/common/Transfer.ts"],"names":[],"mappings":"AAGA,OAAO,CAAC,MAAM,KAAK,CAAA;AAInB,eAAO,MAAM,iBAAiB;;;;;;;;;;mBAM5B,CAAA;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Transfer.d.ts","sourceRoot":"","sources":["../../../../../src/types/schema/common/Transfer.ts"],"names":[],"mappings":"AAGA,OAAO,CAAC,MAAM,KAAK,CAAA;AAInB,eAAO,MAAM,iBAAiB;;;;;;;;;;mBAM5B,CAAA;AAEF,eAAO,MAAM,kBAAkB,GAAI,CAAC,SAAS,MAAM,EAAE,QAAQ,CAAC;;mBAAqD,CAAA;AAEnH,eAAO,MAAM,WAAW;;;;;;;;;;;mBAAqE,CAAA"}
|
package/dist/node/index-node.mjs
CHANGED
|
@@ -522,7 +522,7 @@ var JsonToStakeZod = StakeZod.extend({
|
|
|
522
522
|
|
|
523
523
|
// src/types/schema/common/Transfer.ts
|
|
524
524
|
import { HexZod as HexZod4 } from "@xylabs/hex";
|
|
525
|
-
import {
|
|
525
|
+
import { PayloadZod as PayloadZod2 } from "@xyo-network/payload-model";
|
|
526
526
|
import { TransferSchema } from "@xyo-network/xl1-protocol";
|
|
527
527
|
import z17 from "zod";
|
|
528
528
|
var TransferFieldsZod = z17.object({
|
|
@@ -532,7 +532,10 @@ var TransferFieldsZod = z17.object({
|
|
|
532
532
|
from: AddressZod,
|
|
533
533
|
transfers: z17.record(AddressZod, HexZod4)
|
|
534
534
|
});
|
|
535
|
-
var
|
|
535
|
+
var PayloadZodOfSchema = /* @__PURE__ */ __name((schema) => PayloadZod2.extend({
|
|
536
|
+
schema: z17.literal(schema)
|
|
537
|
+
}), "PayloadZodOfSchema");
|
|
538
|
+
var TransferZod = PayloadZodOfSchema(TransferSchema).extend(TransferFieldsZod.shape);
|
|
536
539
|
|
|
537
540
|
// src/types/schema/common/TransferPair.ts
|
|
538
541
|
import z18 from "zod";
|
|
@@ -638,7 +641,7 @@ var XyoSignerRpcSchemas = {
|
|
|
638
641
|
// src/types/schema/XyoViewerRpcSchemas.ts
|
|
639
642
|
import { BigIntToJsonZod as BigIntToJsonZod3, HashToJsonZod as HashToJsonZod2, HashZod as HashZod3, JsonToBigIntZod as JsonToBigIntZod3, JsonToHashZod as JsonToHashZod2 } from "@xylabs/hex";
|
|
640
643
|
import { WithHashMetaZod } from "@xyo-network/payload-model";
|
|
641
|
-
import { BlockNumberZod as BlockNumberZod3, BlockRangeZod as BlockRangeZod2, StepIdentityZod as StepIdentityZod2, XL1BlockRangeZod } from "@xyo-network/xl1-protocol";
|
|
644
|
+
import { BlockNumberZod as BlockNumberZod3, BlockRangeZod as BlockRangeZod2, StepIdentityZod as StepIdentityZod2, XL1BlockNumberZod as XL1BlockNumberZod2, XL1BlockRangeZod } from "@xyo-network/xl1-protocol";
|
|
642
645
|
import * as z22 from "zod";
|
|
643
646
|
var XyoViewerRpcSchemas = {
|
|
644
647
|
xyoViewer_networkStakeStepRewardClaimedByAddress: {
|
|
@@ -975,19 +978,29 @@ var XyoViewerRpcSchemas = {
|
|
|
975
978
|
},
|
|
976
979
|
xyoViewer_accountBalanceHistory: {
|
|
977
980
|
params: {
|
|
978
|
-
to: z22.
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
981
|
+
to: z22.union([
|
|
982
|
+
z22.tuple([
|
|
983
|
+
AddressZod
|
|
984
|
+
]),
|
|
985
|
+
z22.tuple([
|
|
986
|
+
AddressZod,
|
|
987
|
+
z22.union([
|
|
988
|
+
XL1BlockRangeZod,
|
|
989
|
+
HashZod3
|
|
990
|
+
])
|
|
991
|
+
])
|
|
984
992
|
]),
|
|
985
|
-
from: z22.
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
993
|
+
from: z22.union([
|
|
994
|
+
z22.tuple([
|
|
995
|
+
AddressZod
|
|
996
|
+
]),
|
|
997
|
+
z22.tuple([
|
|
998
|
+
AddressZod,
|
|
999
|
+
z22.union([
|
|
1000
|
+
XL1BlockRangeZod,
|
|
1001
|
+
HashZod3
|
|
1002
|
+
])
|
|
1003
|
+
])
|
|
991
1004
|
])
|
|
992
1005
|
},
|
|
993
1006
|
result: {
|
|
@@ -1171,8 +1184,8 @@ var XyoViewerRpcSchemas = {
|
|
|
1171
1184
|
from: z22.array(z22.any()).length(0).optional()
|
|
1172
1185
|
},
|
|
1173
1186
|
result: {
|
|
1174
|
-
to:
|
|
1175
|
-
from:
|
|
1187
|
+
to: XL1BlockNumberZod2,
|
|
1188
|
+
from: XL1BlockNumberZod2
|
|
1176
1189
|
}
|
|
1177
1190
|
},
|
|
1178
1191
|
xyoViewer_forkHistory: {
|
|
@@ -1339,7 +1352,7 @@ var createResponseSchema = /* @__PURE__ */ __name((resultSchema = z24.undefined(
|
|
|
1339
1352
|
|
|
1340
1353
|
// src/types/schema/DataLakeViewerRpcSchema.ts
|
|
1341
1354
|
import { HashZod as HashZod4 } from "@xylabs/hex";
|
|
1342
|
-
import { PayloadZod as
|
|
1355
|
+
import { PayloadZod as PayloadZod3 } from "@xyo-network/payload-model";
|
|
1343
1356
|
import * as z25 from "zod";
|
|
1344
1357
|
var DataLakeViewerRpcSchemas = {
|
|
1345
1358
|
dataLakeViewer_get: {
|
|
@@ -1353,11 +1366,11 @@ var DataLakeViewerRpcSchemas = {
|
|
|
1353
1366
|
},
|
|
1354
1367
|
result: {
|
|
1355
1368
|
to: z25.union([
|
|
1356
|
-
|
|
1369
|
+
PayloadZod3,
|
|
1357
1370
|
ArrayBufferToJsonZod
|
|
1358
1371
|
]).optional(),
|
|
1359
1372
|
from: z25.union([
|
|
1360
|
-
|
|
1373
|
+
PayloadZod3,
|
|
1361
1374
|
JsonToArrayBufferZod
|
|
1362
1375
|
]).optional()
|
|
1363
1376
|
}
|
|
@@ -1373,11 +1386,11 @@ var DataLakeViewerRpcSchemas = {
|
|
|
1373
1386
|
},
|
|
1374
1387
|
result: {
|
|
1375
1388
|
to: z25.array(z25.union([
|
|
1376
|
-
|
|
1389
|
+
PayloadZod3,
|
|
1377
1390
|
ArrayBufferToJsonZod
|
|
1378
1391
|
])),
|
|
1379
1392
|
from: z25.array(z25.union([
|
|
1380
|
-
|
|
1393
|
+
PayloadZod3,
|
|
1381
1394
|
JsonToArrayBufferZod
|
|
1382
1395
|
]))
|
|
1383
1396
|
}
|
|
@@ -1991,8 +2004,7 @@ var JsonRpcXyoViewer = class {
|
|
|
1991
2004
|
]);
|
|
1992
2005
|
}
|
|
1993
2006
|
return await this.transport.sendRequest("xyoViewer_accountBalanceHistory", [
|
|
1994
|
-
address
|
|
1995
|
-
range
|
|
2007
|
+
address
|
|
1996
2008
|
]);
|
|
1997
2009
|
}
|
|
1998
2010
|
async blockByHash(hash) {
|
|
@@ -2375,6 +2387,7 @@ export {
|
|
|
2375
2387
|
NetworkStakingStepRewardsViewerRpcNamespace,
|
|
2376
2388
|
NetworkStakingStepRewardsViewerRpcSchemas,
|
|
2377
2389
|
NodeXyoRunner,
|
|
2390
|
+
PayloadZodOfSchema,
|
|
2378
2391
|
PermissionRequestZod,
|
|
2379
2392
|
PermissionZod,
|
|
2380
2393
|
QualifiedSequenceFromStringZod,
|