@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
package/dist/neutral/index.mjs
CHANGED
|
@@ -525,7 +525,7 @@ var JsonToStakeZod = StakeZod.extend({
|
|
|
525
525
|
|
|
526
526
|
// src/types/schema/common/Transfer.ts
|
|
527
527
|
import { HexZod as HexZod4 } from "@xylabs/hex";
|
|
528
|
-
import {
|
|
528
|
+
import { PayloadZod as PayloadZod2 } from "@xyo-network/payload-model";
|
|
529
529
|
import { TransferSchema } from "@xyo-network/xl1-protocol";
|
|
530
530
|
import z17 from "zod";
|
|
531
531
|
var TransferFieldsZod = z17.object({
|
|
@@ -535,7 +535,10 @@ var TransferFieldsZod = z17.object({
|
|
|
535
535
|
from: AddressZod,
|
|
536
536
|
transfers: z17.record(AddressZod, HexZod4)
|
|
537
537
|
});
|
|
538
|
-
var
|
|
538
|
+
var PayloadZodOfSchema = /* @__PURE__ */ __name((schema) => PayloadZod2.extend({
|
|
539
|
+
schema: z17.literal(schema)
|
|
540
|
+
}), "PayloadZodOfSchema");
|
|
541
|
+
var TransferZod = PayloadZodOfSchema(TransferSchema).extend(TransferFieldsZod.shape);
|
|
539
542
|
|
|
540
543
|
// src/types/schema/common/TransferPair.ts
|
|
541
544
|
import z18 from "zod";
|
|
@@ -641,7 +644,7 @@ var XyoSignerRpcSchemas = {
|
|
|
641
644
|
// src/types/schema/XyoViewerRpcSchemas.ts
|
|
642
645
|
import { BigIntToJsonZod as BigIntToJsonZod3, HashToJsonZod as HashToJsonZod2, HashZod as HashZod3, JsonToBigIntZod as JsonToBigIntZod3, JsonToHashZod as JsonToHashZod2 } from "@xylabs/hex";
|
|
643
646
|
import { WithHashMetaZod } from "@xyo-network/payload-model";
|
|
644
|
-
import { BlockNumberZod as BlockNumberZod3, BlockRangeZod as BlockRangeZod2, StepIdentityZod as StepIdentityZod2, XL1BlockRangeZod } from "@xyo-network/xl1-protocol";
|
|
647
|
+
import { BlockNumberZod as BlockNumberZod3, BlockRangeZod as BlockRangeZod2, StepIdentityZod as StepIdentityZod2, XL1BlockNumberZod as XL1BlockNumberZod2, XL1BlockRangeZod } from "@xyo-network/xl1-protocol";
|
|
645
648
|
import * as z22 from "zod";
|
|
646
649
|
var XyoViewerRpcSchemas = {
|
|
647
650
|
xyoViewer_networkStakeStepRewardClaimedByAddress: {
|
|
@@ -978,19 +981,29 @@ var XyoViewerRpcSchemas = {
|
|
|
978
981
|
},
|
|
979
982
|
xyoViewer_accountBalanceHistory: {
|
|
980
983
|
params: {
|
|
981
|
-
to: z22.
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
984
|
+
to: z22.union([
|
|
985
|
+
z22.tuple([
|
|
986
|
+
AddressZod
|
|
987
|
+
]),
|
|
988
|
+
z22.tuple([
|
|
989
|
+
AddressZod,
|
|
990
|
+
z22.union([
|
|
991
|
+
XL1BlockRangeZod,
|
|
992
|
+
HashZod3
|
|
993
|
+
])
|
|
994
|
+
])
|
|
987
995
|
]),
|
|
988
|
-
from: z22.
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
996
|
+
from: z22.union([
|
|
997
|
+
z22.tuple([
|
|
998
|
+
AddressZod
|
|
999
|
+
]),
|
|
1000
|
+
z22.tuple([
|
|
1001
|
+
AddressZod,
|
|
1002
|
+
z22.union([
|
|
1003
|
+
XL1BlockRangeZod,
|
|
1004
|
+
HashZod3
|
|
1005
|
+
])
|
|
1006
|
+
])
|
|
994
1007
|
])
|
|
995
1008
|
},
|
|
996
1009
|
result: {
|
|
@@ -1174,8 +1187,8 @@ var XyoViewerRpcSchemas = {
|
|
|
1174
1187
|
from: z22.array(z22.any()).length(0).optional()
|
|
1175
1188
|
},
|
|
1176
1189
|
result: {
|
|
1177
|
-
to:
|
|
1178
|
-
from:
|
|
1190
|
+
to: XL1BlockNumberZod2,
|
|
1191
|
+
from: XL1BlockNumberZod2
|
|
1179
1192
|
}
|
|
1180
1193
|
},
|
|
1181
1194
|
xyoViewer_forkHistory: {
|
|
@@ -1342,7 +1355,7 @@ var createResponseSchema = /* @__PURE__ */ __name((resultSchema = z24.undefined(
|
|
|
1342
1355
|
|
|
1343
1356
|
// src/types/schema/DataLakeViewerRpcSchema.ts
|
|
1344
1357
|
import { HashZod as HashZod4 } from "@xylabs/hex";
|
|
1345
|
-
import { PayloadZod as
|
|
1358
|
+
import { PayloadZod as PayloadZod3 } from "@xyo-network/payload-model";
|
|
1346
1359
|
import * as z25 from "zod";
|
|
1347
1360
|
var DataLakeViewerRpcSchemas = {
|
|
1348
1361
|
dataLakeViewer_get: {
|
|
@@ -1356,11 +1369,11 @@ var DataLakeViewerRpcSchemas = {
|
|
|
1356
1369
|
},
|
|
1357
1370
|
result: {
|
|
1358
1371
|
to: z25.union([
|
|
1359
|
-
|
|
1372
|
+
PayloadZod3,
|
|
1360
1373
|
ArrayBufferToJsonZod
|
|
1361
1374
|
]).optional(),
|
|
1362
1375
|
from: z25.union([
|
|
1363
|
-
|
|
1376
|
+
PayloadZod3,
|
|
1364
1377
|
JsonToArrayBufferZod
|
|
1365
1378
|
]).optional()
|
|
1366
1379
|
}
|
|
@@ -1376,11 +1389,11 @@ var DataLakeViewerRpcSchemas = {
|
|
|
1376
1389
|
},
|
|
1377
1390
|
result: {
|
|
1378
1391
|
to: z25.array(z25.union([
|
|
1379
|
-
|
|
1392
|
+
PayloadZod3,
|
|
1380
1393
|
ArrayBufferToJsonZod
|
|
1381
1394
|
])),
|
|
1382
1395
|
from: z25.array(z25.union([
|
|
1383
|
-
|
|
1396
|
+
PayloadZod3,
|
|
1384
1397
|
JsonToArrayBufferZod
|
|
1385
1398
|
]))
|
|
1386
1399
|
}
|
|
@@ -1956,8 +1969,7 @@ var JsonRpcXyoViewer = class {
|
|
|
1956
1969
|
]);
|
|
1957
1970
|
}
|
|
1958
1971
|
return await this.transport.sendRequest("xyoViewer_accountBalanceHistory", [
|
|
1959
|
-
address
|
|
1960
|
-
range
|
|
1972
|
+
address
|
|
1961
1973
|
]);
|
|
1962
1974
|
}
|
|
1963
1975
|
async blockByHash(hash) {
|
|
@@ -2340,6 +2352,7 @@ export {
|
|
|
2340
2352
|
NetworkStakingStepRewardsViewerRpcNamespace,
|
|
2341
2353
|
NetworkStakingStepRewardsViewerRpcSchemas,
|
|
2342
2354
|
NodeXyoRunner,
|
|
2355
|
+
PayloadZodOfSchema,
|
|
2343
2356
|
PermissionRequestZod,
|
|
2344
2357
|
PermissionZod,
|
|
2345
2358
|
QualifiedSequenceFromStringZod,
|