@xyo-network/xl1-rpc 1.15.9 → 1.15.11
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/engine/rpcMethodHandlersFromViewer.d.ts.map +1 -1
- package/dist/neutral/index.mjs +63 -0
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/provider/viewer/JsonRpcXyoViewer.d.ts +2 -0
- package/dist/neutral/provider/viewer/JsonRpcXyoViewer.d.ts.map +1 -1
- package/dist/neutral/types/schema/AllRpcSchemas.d.ts +32 -0
- package/dist/neutral/types/schema/AllRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/XyoViewerRpcSchemas.d.ts +32 -0
- package/dist/neutral/types/schema/XyoViewerRpcSchemas.d.ts.map +1 -1
- package/dist/node/engine/rpcMethodHandlersFromViewer.d.ts.map +1 -1
- package/dist/node/index-node.mjs +63 -0
- package/dist/node/index-node.mjs.map +1 -1
- package/dist/node/provider/viewer/JsonRpcXyoViewer.d.ts +2 -0
- package/dist/node/provider/viewer/JsonRpcXyoViewer.d.ts.map +1 -1
- package/dist/node/types/schema/AllRpcSchemas.d.ts +32 -0
- package/dist/node/types/schema/AllRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/XyoViewerRpcSchemas.d.ts +32 -0
- package/dist/node/types/schema/XyoViewerRpcSchemas.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/engine/rpcMethodHandlersFromViewer.ts +2 -0
- package/src/provider/viewer/JsonRpcXyoViewer.ts +9 -0
- package/src/types/schema/XyoViewerRpcSchemas.ts +29 -0
|
@@ -32,6 +32,8 @@ export declare class JsonRpcXyoViewer implements XyoViewer {
|
|
|
32
32
|
networkStakeStepRewardUnclaimedByAddress(address: Address): Promise<bigint>;
|
|
33
33
|
networkStakeStepRewardWeightForAddress(context: StepIdentity, address: Address): Promise<bigint>;
|
|
34
34
|
networkStakeStepRewardsForPosition(position: number, range: [number, number]): Promise<Record<StepIdentityString, [bigint, bigint]>>;
|
|
35
|
+
networkStakeStepRewardsForRange(range: [number, number]): Promise<bigint>;
|
|
36
|
+
networkStakeStepRewardsForStepLevel(stepLevel: number, range: [number, number]): Promise<bigint>;
|
|
35
37
|
stakeById(id: number): Promise<Stake>;
|
|
36
38
|
stakeByStaker(staker: Address, slot: number): Promise<Stake>;
|
|
37
39
|
stakedByStaker(staker: Address): Promise<Address[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JsonRpcXyoViewer.d.ts","sourceRoot":"","sources":["../../../../src/provider/viewer/JsonRpcXyoViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"JsonRpcXyoViewer.d.ts","sourceRoot":"","sources":["../../../../src/provider/viewer/JsonRpcXyoViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEhD,OAAO,KAAK,EACV,OAAO,EACP,OAAO,EACP,WAAW,EACX,aAAa,EAAE,yBAAyB,EACxC,KAAK,EACL,YAAY,EACZ,kBAAkB,EAClB,QAAQ,EACR,0BAA0B,EAC1B,YAAY,EACZ,SAAS,EACV,MAAM,2BAA2B,CAAA;AAGlC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC/D,qBAAa,gBAAiB,YAAW,SAAS;IAChD,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,YAAY,CAAC,OAAO,mBAAmB,CAAC,CAAA;gBAE1D,SAAS,EAAE,YAAY,CAAC,OAAO,mBAAmB,CAAC;IAIzD,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IAIlD,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,OA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C,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC;IAIrC,aAAa,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC;IAI5D,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAInD,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;IAIjD,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;IAIjD,8BAA8B,CAAC,SAAS,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,yBAAyB,GAAG,IAAI,CAAC;IAIpH,gCAAgC,CAAC,WAAW,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,yBAAyB,GAAG,IAAI,CAAC;IAI1H,iBAAiB,CAAC,eAAe,EAAE,IAAI,GAAG,OAAO,CAAC,yBAAyB,GAAG,IAAI,CAAC;IAInF,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IAInD,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,0BAA0B,EAAE,CAAC;IAI/E,mBAAmB,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC;IAI5D,0BAA0B,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,0BAA0B,EAAE,CAAC;CAG/F"}
|
|
@@ -467,6 +467,38 @@ export declare const AllRpcSchemas: {
|
|
|
467
467
|
}>>>], null>;
|
|
468
468
|
};
|
|
469
469
|
};
|
|
470
|
+
xyoViewer_networkStakeStepRewardsForRange: {
|
|
471
|
+
params: {
|
|
472
|
+
to: import("zod").ZodUnion<readonly [import("zod").ZodTuple<[import("zod").ZodTuple<[import("zod").ZodNumber, import("zod").ZodNumber], null>], null>]>;
|
|
473
|
+
from: import("zod").ZodUnion<readonly [import("zod").ZodTuple<[import("zod").ZodTuple<[import("zod").ZodNumber, import("zod").ZodNumber], null>], null>]>;
|
|
474
|
+
};
|
|
475
|
+
result: {
|
|
476
|
+
to: import("zod").ZodPipe<import("zod").ZodBigInt, import("zod").ZodTransform<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
477
|
+
readonly __hex: true;
|
|
478
|
+
}>, bigint>>;
|
|
479
|
+
from: import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
480
|
+
readonly __hex: true;
|
|
481
|
+
}>, string>>, import("zod").ZodTransform<bigint, import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
482
|
+
readonly __hex: true;
|
|
483
|
+
}>>>;
|
|
484
|
+
};
|
|
485
|
+
};
|
|
486
|
+
xyoViewer_networkStakeStepRewardsForStepLevel: {
|
|
487
|
+
params: {
|
|
488
|
+
to: import("zod").ZodUnion<readonly [import("zod").ZodTuple<[import("zod").ZodNumber, import("zod").ZodTuple<[import("zod").ZodNumber, import("zod").ZodNumber], null>], null>]>;
|
|
489
|
+
from: import("zod").ZodUnion<readonly [import("zod").ZodTuple<[import("zod").ZodNumber, import("zod").ZodTuple<[import("zod").ZodNumber, import("zod").ZodNumber], null>], null>]>;
|
|
490
|
+
};
|
|
491
|
+
result: {
|
|
492
|
+
to: import("zod").ZodPipe<import("zod").ZodBigInt, import("zod").ZodTransform<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
493
|
+
readonly __hex: true;
|
|
494
|
+
}>, bigint>>;
|
|
495
|
+
from: import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
496
|
+
readonly __hex: true;
|
|
497
|
+
}>, string>>, import("zod").ZodTransform<bigint, import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
498
|
+
readonly __hex: true;
|
|
499
|
+
}>>>;
|
|
500
|
+
};
|
|
501
|
+
};
|
|
470
502
|
xyoViewer_networkStakeStepRewardsForPosition: {
|
|
471
503
|
params: {
|
|
472
504
|
to: import("zod").ZodUnion<readonly [import("zod").ZodTuple<[import("zod").ZodNumber, import("zod").ZodTuple<[import("zod").ZodNumber, import("zod").ZodNumber], null>], null>]>;
|
|
@@ -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"}
|
|
@@ -398,6 +398,38 @@ export declare const XyoViewerRpcSchemas: {
|
|
|
398
398
|
}>>>], null>;
|
|
399
399
|
};
|
|
400
400
|
};
|
|
401
|
+
xyoViewer_networkStakeStepRewardsForRange: {
|
|
402
|
+
params: {
|
|
403
|
+
to: z.ZodUnion<readonly [z.ZodTuple<[z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>], null>]>;
|
|
404
|
+
from: z.ZodUnion<readonly [z.ZodTuple<[z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>], null>]>;
|
|
405
|
+
};
|
|
406
|
+
result: {
|
|
407
|
+
to: z.ZodPipe<z.ZodBigInt, z.ZodTransform<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
408
|
+
readonly __hex: true;
|
|
409
|
+
}>, bigint>>;
|
|
410
|
+
from: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
411
|
+
readonly __hex: true;
|
|
412
|
+
}>, string>>, z.ZodTransform<bigint, import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
413
|
+
readonly __hex: true;
|
|
414
|
+
}>>>;
|
|
415
|
+
};
|
|
416
|
+
};
|
|
417
|
+
xyoViewer_networkStakeStepRewardsForStepLevel: {
|
|
418
|
+
params: {
|
|
419
|
+
to: z.ZodUnion<readonly [z.ZodTuple<[z.ZodNumber, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>], null>]>;
|
|
420
|
+
from: z.ZodUnion<readonly [z.ZodTuple<[z.ZodNumber, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>], null>]>;
|
|
421
|
+
};
|
|
422
|
+
result: {
|
|
423
|
+
to: z.ZodPipe<z.ZodBigInt, z.ZodTransform<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
424
|
+
readonly __hex: true;
|
|
425
|
+
}>, bigint>>;
|
|
426
|
+
from: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
427
|
+
readonly __hex: true;
|
|
428
|
+
}>, string>>, z.ZodTransform<bigint, import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
429
|
+
readonly __hex: true;
|
|
430
|
+
}>>>;
|
|
431
|
+
};
|
|
432
|
+
};
|
|
401
433
|
xyoViewer_networkStakeStepRewardsForPosition: {
|
|
402
434
|
params: {
|
|
403
435
|
to: z.ZodUnion<readonly [z.ZodTuple<[z.ZodNumber, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>], null>]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XyoViewerRpcSchemas.d.ts","sourceRoot":"","sources":["../../../../src/types/schema/XyoViewerRpcSchemas.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"XyoViewerRpcSchemas.d.ts","sourceRoot":"","sources":["../../../../src/types/schema/XyoViewerRpcSchemas.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAA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AG,
|
|
1
|
+
{"version":3,"file":"rpcMethodHandlersFromViewer.d.ts","sourceRoot":"","sources":["../../../src/engine/rpcMethodHandlersFromViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAE1D,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAA;AAEnE,eAAO,MAAM,2BAA2B,GAAI,QAAQ,SAAS,KAAG,0BA4C/D,CAAA"}
|
package/dist/node/index-node.mjs
CHANGED
|
@@ -39,6 +39,8 @@ var rpcMethodHandlersFromViewer = /* @__PURE__ */ __name((viewer) => {
|
|
|
39
39
|
xyoViewer_networkStakeStepRewardForStepForPosition: /* @__PURE__ */ __name((params) => viewer.networkStakeStepRewardForStepForPosition?.(...params ?? []), "xyoViewer_networkStakeStepRewardForStepForPosition"),
|
|
40
40
|
xyoViewer_networkStakeStepRewardForPosition: /* @__PURE__ */ __name((params) => viewer.networkStakeStepRewardForPosition?.(...params ?? []), "xyoViewer_networkStakeStepRewardForPosition"),
|
|
41
41
|
xyoViewer_networkStakeStepRewardsForPosition: /* @__PURE__ */ __name((params) => viewer.networkStakeStepRewardsForPosition?.(...params ?? []), "xyoViewer_networkStakeStepRewardsForPosition"),
|
|
42
|
+
xyoViewer_networkStakeStepRewardsForRange: /* @__PURE__ */ __name((params) => viewer.networkStakeStepRewardsForRange?.(...params ?? []), "xyoViewer_networkStakeStepRewardsForRange"),
|
|
43
|
+
xyoViewer_networkStakeStepRewardsForStepLevel: /* @__PURE__ */ __name((params) => viewer.networkStakeStepRewardsForStepLevel?.(...params ?? []), "xyoViewer_networkStakeStepRewardsForStepLevel"),
|
|
42
44
|
xyoViewer_accountBalance: /* @__PURE__ */ __name((params) => viewer.accountBalance(...params ?? []), "xyoViewer_accountBalance"),
|
|
43
45
|
xyoViewer_accountBalanceHistory: /* @__PURE__ */ __name((params) => viewer.accountBalanceHistory(...params ?? []), "xyoViewer_accountBalanceHistory"),
|
|
44
46
|
xyoViewer_blockByHash: /* @__PURE__ */ __name((params) => viewer.blockByHash(...params ?? []), "xyoViewer_blockByHash"),
|
|
@@ -908,6 +910,56 @@ var XyoViewerRpcSchemas = {
|
|
|
908
910
|
])
|
|
909
911
|
}
|
|
910
912
|
},
|
|
913
|
+
xyoViewer_networkStakeStepRewardsForRange: {
|
|
914
|
+
params: {
|
|
915
|
+
to: z20.union([
|
|
916
|
+
z20.tuple([
|
|
917
|
+
z20.tuple([
|
|
918
|
+
z20.number(),
|
|
919
|
+
z20.number()
|
|
920
|
+
])
|
|
921
|
+
])
|
|
922
|
+
]),
|
|
923
|
+
from: z20.union([
|
|
924
|
+
z20.tuple([
|
|
925
|
+
z20.tuple([
|
|
926
|
+
z20.number(),
|
|
927
|
+
z20.number()
|
|
928
|
+
])
|
|
929
|
+
])
|
|
930
|
+
])
|
|
931
|
+
},
|
|
932
|
+
result: {
|
|
933
|
+
to: BigIntToJsonZod3,
|
|
934
|
+
from: JsonToBigIntZod2
|
|
935
|
+
}
|
|
936
|
+
},
|
|
937
|
+
xyoViewer_networkStakeStepRewardsForStepLevel: {
|
|
938
|
+
params: {
|
|
939
|
+
to: z20.union([
|
|
940
|
+
z20.tuple([
|
|
941
|
+
z20.number(),
|
|
942
|
+
z20.tuple([
|
|
943
|
+
z20.number(),
|
|
944
|
+
z20.number()
|
|
945
|
+
])
|
|
946
|
+
])
|
|
947
|
+
]),
|
|
948
|
+
from: z20.union([
|
|
949
|
+
z20.tuple([
|
|
950
|
+
z20.number(),
|
|
951
|
+
z20.tuple([
|
|
952
|
+
z20.number(),
|
|
953
|
+
z20.number()
|
|
954
|
+
])
|
|
955
|
+
])
|
|
956
|
+
])
|
|
957
|
+
},
|
|
958
|
+
result: {
|
|
959
|
+
to: BigIntToJsonZod3,
|
|
960
|
+
from: JsonToBigIntZod2
|
|
961
|
+
}
|
|
962
|
+
},
|
|
911
963
|
xyoViewer_networkStakeStepRewardsForPosition: {
|
|
912
964
|
params: {
|
|
913
965
|
to: z20.union([
|
|
@@ -1974,6 +2026,17 @@ var JsonRpcXyoViewer = class {
|
|
|
1974
2026
|
range
|
|
1975
2027
|
]);
|
|
1976
2028
|
}
|
|
2029
|
+
async networkStakeStepRewardsForRange(range) {
|
|
2030
|
+
return await this.transport.sendRequest("xyoViewer_networkStakeStepRewardsForRange", [
|
|
2031
|
+
range
|
|
2032
|
+
]);
|
|
2033
|
+
}
|
|
2034
|
+
async networkStakeStepRewardsForStepLevel(stepLevel, range) {
|
|
2035
|
+
return await this.transport.sendRequest("xyoViewer_networkStakeStepRewardsForStepLevel", [
|
|
2036
|
+
stepLevel,
|
|
2037
|
+
range
|
|
2038
|
+
]);
|
|
2039
|
+
}
|
|
1977
2040
|
async stakeById(id) {
|
|
1978
2041
|
return await this.transport.sendRequest("xyoViewer_stakeById", [
|
|
1979
2042
|
id
|