@xyo-network/xl1-rpc 1.15.3 → 1.15.5
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 +64 -25
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/provider/viewer/JsonRpcXyoViewer.d.ts +13 -12
- package/dist/neutral/provider/viewer/JsonRpcXyoViewer.d.ts.map +1 -1
- package/dist/neutral/types/schema/AllRpcSchemas.d.ts +22 -0
- package/dist/neutral/types/schema/AllRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/XyoViewerRpcSchemas.d.ts +22 -0
- package/dist/neutral/types/schema/XyoViewerRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/StepIdentity.d.ts +6 -0
- package/dist/neutral/types/schema/common/StepIdentity.d.ts.map +1 -0
- package/dist/neutral/types/schema/common/index.d.ts +1 -1
- package/dist/neutral/types/schema/common/index.d.ts.map +1 -1
- package/dist/node/engine/rpcMethodHandlersFromViewer.d.ts.map +1 -1
- package/dist/node/index-node.mjs +64 -25
- package/dist/node/index-node.mjs.map +1 -1
- package/dist/node/provider/viewer/JsonRpcXyoViewer.d.ts +13 -12
- package/dist/node/provider/viewer/JsonRpcXyoViewer.d.ts.map +1 -1
- package/dist/node/types/schema/AllRpcSchemas.d.ts +22 -0
- package/dist/node/types/schema/AllRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/XyoViewerRpcSchemas.d.ts +22 -0
- package/dist/node/types/schema/XyoViewerRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/common/StepIdentity.d.ts +6 -0
- package/dist/node/types/schema/common/StepIdentity.d.ts.map +1 -0
- package/dist/node/types/schema/common/index.d.ts +1 -1
- package/dist/node/types/schema/common/index.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/engine/rpcMethodHandlersFromViewer.ts +1 -0
- package/src/provider/viewer/JsonRpcXyoViewer.ts +16 -12
- package/src/types/schema/XyoViewerRpcSchemas.ts +37 -23
- package/src/types/schema/common/{StepContext.ts → StepIdentity.ts} +1 -1
- package/src/types/schema/common/index.ts +1 -1
- package/dist/neutral/types/schema/common/StepContext.d.ts +0 -6
- package/dist/neutral/types/schema/common/StepContext.d.ts.map +0 -1
- package/dist/node/types/schema/common/StepContext.d.ts +0 -6
- package/dist/node/types/schema/common/StepContext.d.ts.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Address, Hash } from '@xylabs/hex';
|
|
2
|
-
import type { AttoXL1, ChainId, ForkHistory, HydratedBlock, SignedHydratedTransaction, Stake,
|
|
2
|
+
import type { AttoXL1, ChainId, ForkHistory, HydratedBlock, SignedHydratedTransaction, Stake, StepIdentity, Transfer, TransferBalanceHistoryItem, TransferPair, XyoViewer } from '@xyo-network/xl1-protocol';
|
|
3
3
|
import type { RpcTransport } from '../../transport/index.ts';
|
|
4
4
|
import type { XyoViewerRpcSchemas } from '../../types/index.ts';
|
|
5
5
|
export declare class JsonRpcXyoViewer implements XyoViewer {
|
|
@@ -17,19 +17,20 @@ export declare class JsonRpcXyoViewer implements XyoViewer {
|
|
|
17
17
|
currentBlockNumber(): Promise<number>;
|
|
18
18
|
forkHistory(): Promise<ForkHistory>;
|
|
19
19
|
networkStakeStepRewardAddressHistory(address: Address): Promise<Record<Address, bigint>>;
|
|
20
|
-
networkStakeStepRewardAddressReward(context:
|
|
21
|
-
networkStakeStepRewardAddressShare(context:
|
|
20
|
+
networkStakeStepRewardAddressReward(context: StepIdentity, address: Address): Promise<Record<Address, bigint>>;
|
|
21
|
+
networkStakeStepRewardAddressShare(context: StepIdentity, address: Address): Promise<[bigint, bigint]>;
|
|
22
22
|
networkStakeStepRewardClaimedByAddress(address: Address): Promise<bigint>;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
23
|
+
networkStakeStepRewardForPosition(position: number, range: [number, number]): Promise<[bigint, bigint]>;
|
|
24
|
+
networkStakeStepRewardForStep(context: StepIdentity): Promise<bigint>;
|
|
25
|
+
networkStakeStepRewardForStepForPosition(context: StepIdentity, position: number): Promise<[bigint, bigint]>;
|
|
26
|
+
networkStakeStepRewardPoolRewards(context: StepIdentity): Promise<Record<Address, bigint>>;
|
|
27
|
+
networkStakeStepRewardPoolShares(context: StepIdentity): Promise<Record<Address, bigint>>;
|
|
28
|
+
networkStakeStepRewardPositionWeight(context: StepIdentity, position: number): Promise<bigint>;
|
|
29
|
+
networkStakeStepRewardPotentialPositionLoss(context: StepIdentity, position: number): Promise<bigint>;
|
|
30
|
+
networkStakeStepRewardRandomizer(context: StepIdentity): Promise<bigint>;
|
|
31
|
+
networkStakeStepRewardStakerCount(context: StepIdentity): Promise<number>;
|
|
31
32
|
networkStakeStepRewardUnclaimedByAddress(address: Address): Promise<bigint>;
|
|
32
|
-
networkStakeStepRewardWeightForAddress(context:
|
|
33
|
+
networkStakeStepRewardWeightForAddress(context: StepIdentity, address: Address): Promise<bigint>;
|
|
33
34
|
stakeById(id: number): Promise<Stake>;
|
|
34
35
|
stakeByStaker(staker: Address, slot: number): Promise<Stake>;
|
|
35
36
|
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;AAChD,OAAO,KAAK,EACV,OAAO,EACP,OAAO,EACP,WAAW,EACX,aAAa,EAAE,yBAAyB,EACxC,KAAK,EACL,
|
|
1
|
+
{"version":3,"file":"JsonRpcXyoViewer.d.ts","sourceRoot":"","sources":["../../../../src/provider/viewer/JsonRpcXyoViewer.ts"],"names":[],"mappings":"AAAA,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 +445,28 @@ export declare const AllRpcSchemas: {
|
|
|
445
445
|
}>>>], null>;
|
|
446
446
|
};
|
|
447
447
|
};
|
|
448
|
+
xyoViewer_networkStakeStepRewardForPosition: {
|
|
449
|
+
params: {
|
|
450
|
+
to: import("zod").ZodUnion<readonly [import("zod").ZodTuple<[import("zod").ZodNumber, import("zod").ZodTuple<[import("zod").ZodNumber, import("zod").ZodNumber], null>], null>]>;
|
|
451
|
+
from: import("zod").ZodUnion<readonly [import("zod").ZodTuple<[import("zod").ZodNumber, import("zod").ZodTuple<[import("zod").ZodNumber, import("zod").ZodNumber], null>], null>]>;
|
|
452
|
+
};
|
|
453
|
+
result: {
|
|
454
|
+
to: import("zod").ZodTuple<[import("zod").ZodPipe<import("zod").ZodBigInt, import("zod").ZodTransform<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
455
|
+
readonly __hex: true;
|
|
456
|
+
}>, bigint>>, import("zod").ZodPipe<import("zod").ZodBigInt, import("zod").ZodTransform<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
457
|
+
readonly __hex: true;
|
|
458
|
+
}>, bigint>>], null>;
|
|
459
|
+
from: import("zod").ZodTuple<[import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
460
|
+
readonly __hex: true;
|
|
461
|
+
}>, string>>, import("zod").ZodTransform<bigint, import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
462
|
+
readonly __hex: true;
|
|
463
|
+
}>>>, import("zod").ZodPipe<import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
464
|
+
readonly __hex: true;
|
|
465
|
+
}>, string>>, import("zod").ZodTransform<bigint, import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
466
|
+
readonly __hex: true;
|
|
467
|
+
}>>>], null>;
|
|
468
|
+
};
|
|
469
|
+
};
|
|
448
470
|
xyoViewer_accountBalance: {
|
|
449
471
|
params: {
|
|
450
472
|
to: import("zod").ZodUnion<readonly [import("zod").ZodTuple<[import("zod").ZodPipe<import("zod").ZodString, import("zod").ZodTransform<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
@@ -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"}
|
|
@@ -376,6 +376,28 @@ export declare const XyoViewerRpcSchemas: {
|
|
|
376
376
|
}>>>], null>;
|
|
377
377
|
};
|
|
378
378
|
};
|
|
379
|
+
xyoViewer_networkStakeStepRewardForPosition: {
|
|
380
|
+
params: {
|
|
381
|
+
to: z.ZodUnion<readonly [z.ZodTuple<[z.ZodNumber, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>], null>]>;
|
|
382
|
+
from: z.ZodUnion<readonly [z.ZodTuple<[z.ZodNumber, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>], null>]>;
|
|
383
|
+
};
|
|
384
|
+
result: {
|
|
385
|
+
to: z.ZodTuple<[z.ZodPipe<z.ZodBigInt, z.ZodTransform<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
386
|
+
readonly __hex: true;
|
|
387
|
+
}>, bigint>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
388
|
+
readonly __hex: true;
|
|
389
|
+
}>, bigint>>], null>;
|
|
390
|
+
from: z.ZodTuple<[z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
391
|
+
readonly __hex: true;
|
|
392
|
+
}>, string>>, z.ZodTransform<bigint, import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
393
|
+
readonly __hex: true;
|
|
394
|
+
}>>>, z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
395
|
+
readonly __hex: true;
|
|
396
|
+
}>, string>>, z.ZodTransform<bigint, import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
397
|
+
readonly __hex: true;
|
|
398
|
+
}>>>], null>;
|
|
399
|
+
};
|
|
400
|
+
};
|
|
379
401
|
xyoViewer_accountBalance: {
|
|
380
402
|
params: {
|
|
381
403
|
to: z.ZodUnion<readonly [z.ZodTuple<[z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/typeof").Brand<import("@xylabs/typeof").Brand<Lowercase<string>, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XyoViewerRpcSchemas.d.ts","sourceRoot":"","sources":["../../../../src/types/schema/XyoViewerRpcSchemas.ts"],"names":[],"mappings":"AAIA,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":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAgBxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAidgB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepIdentity.d.ts","sourceRoot":"","sources":["../../../../../src/types/schema/common/StepIdentity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,eAAO,MAAM,eAAe;;;iBAG1B,CAAA"}
|
|
@@ -9,7 +9,7 @@ export * from './Payload.ts';
|
|
|
9
9
|
export * from './Permission.ts';
|
|
10
10
|
export * from './Sequence.ts';
|
|
11
11
|
export * from './Stake.ts';
|
|
12
|
-
export * from './
|
|
12
|
+
export * from './StepIdentity.ts';
|
|
13
13
|
export * from './TransactionBoundWitness.ts';
|
|
14
14
|
export * from './TransactionFees.ts';
|
|
15
15
|
export * from './Transfer.ts';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/types/schema/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,wBAAwB,CAAA;AACtC,cAAc,mBAAmB,CAAA;AACjC,cAAc,YAAY,CAAA;AAC1B,cAAc,oBAAoB,CAAA;AAClC,cAAc,0BAA0B,CAAA;AACxC,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/types/schema/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,wBAAwB,CAAA;AACtC,cAAc,mBAAmB,CAAA;AACjC,cAAc,YAAY,CAAA;AAC1B,cAAc,oBAAoB,CAAA;AAClC,cAAc,0BAA0B,CAAA;AACxC,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA;AACjC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,sBAAsB,CAAA;AACpC,cAAc,eAAe,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@xyo-network/xl1-rpc",
|
|
4
|
-
"version": "1.15.
|
|
4
|
+
"version": "1.15.5",
|
|
5
5
|
"description": "XYO Layer One API",
|
|
6
6
|
"homepage": "https://xylabs.com",
|
|
7
7
|
"bugs": {
|
|
@@ -74,9 +74,9 @@
|
|
|
74
74
|
"@xyo-network/node-model": "~5.1.6",
|
|
75
75
|
"@xyo-network/payload-builder": "~5.1.6",
|
|
76
76
|
"@xyo-network/payload-model": "~5.1.6",
|
|
77
|
-
"@xyo-network/xl1-protocol": "~1.12.
|
|
78
|
-
"@xyo-network/xl1-protocol-sdk": "~1.15.
|
|
79
|
-
"@xyo-network/xl1-wrappers": "~1.15.
|
|
77
|
+
"@xyo-network/xl1-protocol": "~1.12.69",
|
|
78
|
+
"@xyo-network/xl1-protocol-sdk": "~1.15.5",
|
|
79
|
+
"@xyo-network/xl1-wrappers": "~1.15.5",
|
|
80
80
|
"axios": "~1.12.2",
|
|
81
81
|
"uuid": "~13.0.0",
|
|
82
82
|
"zod": "~4.1.12"
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"@xylabs/tsconfig": "~7.1.8",
|
|
90
90
|
"@xylabs/vitest-extended": "~5.0.12",
|
|
91
91
|
"@xyo-network/account": "~5.1.6",
|
|
92
|
-
"@xyo-network/chain-protocol": "~1.15.
|
|
92
|
+
"@xyo-network/chain-protocol": "~1.15.5",
|
|
93
93
|
"@xyo-network/wallet": "~5.1.6",
|
|
94
94
|
"dotenv": "~17.2.3",
|
|
95
95
|
"eslint": "^9.37.0",
|
|
@@ -18,6 +18,7 @@ export const rpcMethodHandlersFromViewer = (viewer: XyoViewer): XyoViewerRpcMeth
|
|
|
18
18
|
xyoViewer_networkStakeStepRewardRandomizer: params => viewer.networkStakeStepRewardRandomizer?.(...(params ?? [])),
|
|
19
19
|
xyoViewer_networkStakeStepRewardStakerCount: params => viewer.networkStakeStepRewardStakerCount?.(...(params ?? [])),
|
|
20
20
|
xyoViewer_networkStakeStepRewardForStepForPosition: params => viewer.networkStakeStepRewardForStepForPosition?.(...(params ?? [])),
|
|
21
|
+
xyoViewer_networkStakeStepRewardForPosition: params => viewer.networkStakeStepRewardForPosition?.(...(params ?? [])),
|
|
21
22
|
xyoViewer_accountBalance: params => viewer.accountBalance(...(params ?? [])),
|
|
22
23
|
xyoViewer_accountBalanceHistory: params => viewer.accountBalanceHistory(...(params ?? [])),
|
|
23
24
|
xyoViewer_blockByHash: params => viewer.blockByHash(...(params ?? [])),
|
|
@@ -5,7 +5,7 @@ import type {
|
|
|
5
5
|
ForkHistory,
|
|
6
6
|
HydratedBlock, SignedHydratedTransaction,
|
|
7
7
|
Stake,
|
|
8
|
-
|
|
8
|
+
StepIdentity,
|
|
9
9
|
Transfer,
|
|
10
10
|
TransferBalanceHistoryItem,
|
|
11
11
|
TransferPair,
|
|
@@ -70,11 +70,11 @@ export class JsonRpcXyoViewer implements XyoViewer {
|
|
|
70
70
|
return (await this.transport.sendRequest('xyoViewer_networkStakeStepRewardAddressHistory', [address]))
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
async networkStakeStepRewardAddressReward(context:
|
|
73
|
+
async networkStakeStepRewardAddressReward(context: StepIdentity, address: Address): Promise<Record<Address, bigint>> {
|
|
74
74
|
return (await this.transport.sendRequest('xyoViewer_networkStakeStepRewardAddressReward', [context, address]))
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
async networkStakeStepRewardAddressShare(context:
|
|
77
|
+
async networkStakeStepRewardAddressShare(context: StepIdentity, address: Address): Promise<[bigint, bigint]> {
|
|
78
78
|
return (await this.transport.sendRequest('xyoViewer_networkStakeStepRewardAddressShare', [context, address]))
|
|
79
79
|
}
|
|
80
80
|
|
|
@@ -82,35 +82,39 @@ export class JsonRpcXyoViewer implements XyoViewer {
|
|
|
82
82
|
return (await this.transport.sendRequest('xyoViewer_networkStakeStepRewardClaimedByAddress', [address]))
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
async
|
|
85
|
+
async networkStakeStepRewardForPosition(position: number, range: [number, number]): Promise<[bigint, bigint]> {
|
|
86
|
+
return (await this.transport.sendRequest('xyoViewer_networkStakeStepRewardForPosition', [position, range]))
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
async networkStakeStepRewardForStep(context: StepIdentity): Promise<bigint> {
|
|
86
90
|
return (await this.transport.sendRequest('xyoViewer_networkStakeStepRewardForStep', [context]))
|
|
87
91
|
}
|
|
88
92
|
|
|
89
|
-
async networkStakeStepRewardForStepForPosition(context:
|
|
93
|
+
async networkStakeStepRewardForStepForPosition(context: StepIdentity, position: number): Promise<[bigint, bigint]> {
|
|
90
94
|
return (await this.transport.sendRequest('xyoViewer_networkStakeStepRewardForStepForPosition', [context, position]))
|
|
91
95
|
}
|
|
92
96
|
|
|
93
|
-
async networkStakeStepRewardPoolRewards(context:
|
|
97
|
+
async networkStakeStepRewardPoolRewards(context: StepIdentity): Promise<Record<Address, bigint>> {
|
|
94
98
|
return (await this.transport.sendRequest('xyoViewer_networkStakeStepRewardPoolRewards', [context]))
|
|
95
99
|
}
|
|
96
100
|
|
|
97
|
-
async networkStakeStepRewardPoolShares(context:
|
|
101
|
+
async networkStakeStepRewardPoolShares(context: StepIdentity): Promise<Record<Address, bigint>> {
|
|
98
102
|
return (await this.transport.sendRequest('xyoViewer_networkStakeStepRewardPoolShares', [context]))
|
|
99
103
|
}
|
|
100
104
|
|
|
101
|
-
async networkStakeStepRewardPositionWeight(context:
|
|
105
|
+
async networkStakeStepRewardPositionWeight(context: StepIdentity, position: number): Promise<bigint> {
|
|
102
106
|
return (await this.transport.sendRequest('xyoViewer_networkStakeStepRewardPositionWeight', [context, position]))
|
|
103
107
|
}
|
|
104
108
|
|
|
105
|
-
async networkStakeStepRewardPotentialPositionLoss(context:
|
|
109
|
+
async networkStakeStepRewardPotentialPositionLoss(context: StepIdentity, position: number): Promise<bigint> {
|
|
106
110
|
return (await this.transport.sendRequest('xyoViewer_networkStakeStepRewardPotentialPositionLoss', [context, position]))
|
|
107
111
|
}
|
|
108
112
|
|
|
109
|
-
async networkStakeStepRewardRandomizer(context:
|
|
113
|
+
async networkStakeStepRewardRandomizer(context: StepIdentity): Promise<bigint> {
|
|
110
114
|
return (await this.transport.sendRequest('xyoViewer_networkStakeStepRewardRandomizer', [context]))
|
|
111
115
|
}
|
|
112
116
|
|
|
113
|
-
async networkStakeStepRewardStakerCount(context:
|
|
117
|
+
async networkStakeStepRewardStakerCount(context: StepIdentity): Promise<number> {
|
|
114
118
|
return (await this.transport.sendRequest('xyoViewer_networkStakeStepRewardStakerCount', [context]))
|
|
115
119
|
}
|
|
116
120
|
|
|
@@ -118,7 +122,7 @@ export class JsonRpcXyoViewer implements XyoViewer {
|
|
|
118
122
|
return (await this.transport.sendRequest('xyoViewer_networkStakeStepRewardUnclaimedByAddress', [address]))
|
|
119
123
|
}
|
|
120
124
|
|
|
121
|
-
async networkStakeStepRewardWeightForAddress(context:
|
|
125
|
+
async networkStakeStepRewardWeightForAddress(context: StepIdentity, address: Address): Promise<bigint> {
|
|
122
126
|
return (await this.transport.sendRequest('xyoViewer_networkStakeStepRewardWeightForAddress', [context, address]))
|
|
123
127
|
}
|
|
124
128
|
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
SignedHydratedBlockZod,
|
|
14
14
|
SignedHydratedTransactionZod,
|
|
15
15
|
StakeToJsonZod,
|
|
16
|
-
|
|
16
|
+
StepIdentityZod,
|
|
17
17
|
TransferZod,
|
|
18
18
|
} from './common/index.ts'
|
|
19
19
|
import type { RpcSchemaMap } from './RpcSchemaMap.ts'
|
|
@@ -36,10 +36,10 @@ export const XyoViewerRpcSchemas = {
|
|
|
36
36
|
xyoViewer_networkStakeStepRewardAddressReward: {
|
|
37
37
|
params: {
|
|
38
38
|
to: z.union([
|
|
39
|
-
z.tuple([
|
|
39
|
+
z.tuple([StepIdentityZod, AddressZod]),
|
|
40
40
|
]),
|
|
41
41
|
from: z.union([
|
|
42
|
-
z.tuple([
|
|
42
|
+
z.tuple([StepIdentityZod, AddressZod]),
|
|
43
43
|
]),
|
|
44
44
|
},
|
|
45
45
|
result: {
|
|
@@ -64,10 +64,10 @@ export const XyoViewerRpcSchemas = {
|
|
|
64
64
|
xyoViewer_networkStakeStepRewardAddressShare: {
|
|
65
65
|
params: {
|
|
66
66
|
to: z.union([
|
|
67
|
-
z.tuple([
|
|
67
|
+
z.tuple([StepIdentityZod, AddressZod]),
|
|
68
68
|
]),
|
|
69
69
|
from: z.union([
|
|
70
|
-
z.tuple([
|
|
70
|
+
z.tuple([StepIdentityZod, AddressZod]),
|
|
71
71
|
]),
|
|
72
72
|
},
|
|
73
73
|
result: {
|
|
@@ -78,10 +78,10 @@ export const XyoViewerRpcSchemas = {
|
|
|
78
78
|
xyoViewer_networkStakeStepRewardWeightForAddress: {
|
|
79
79
|
params: {
|
|
80
80
|
to: z.union([
|
|
81
|
-
z.tuple([
|
|
81
|
+
z.tuple([StepIdentityZod, AddressZod]),
|
|
82
82
|
]),
|
|
83
83
|
from: z.union([
|
|
84
|
-
z.tuple([
|
|
84
|
+
z.tuple([StepIdentityZod, AddressZod]),
|
|
85
85
|
]),
|
|
86
86
|
},
|
|
87
87
|
result: {
|
|
@@ -106,10 +106,10 @@ export const XyoViewerRpcSchemas = {
|
|
|
106
106
|
xyoViewer_networkStakeStepRewardPoolRewards: {
|
|
107
107
|
params: {
|
|
108
108
|
to: z.union([
|
|
109
|
-
z.tuple([
|
|
109
|
+
z.tuple([StepIdentityZod]),
|
|
110
110
|
]),
|
|
111
111
|
from: z.union([
|
|
112
|
-
z.tuple([
|
|
112
|
+
z.tuple([StepIdentityZod]),
|
|
113
113
|
]),
|
|
114
114
|
},
|
|
115
115
|
result: {
|
|
@@ -120,10 +120,10 @@ export const XyoViewerRpcSchemas = {
|
|
|
120
120
|
xyoViewer_networkStakeStepRewardPositionWeight: {
|
|
121
121
|
params: {
|
|
122
122
|
to: z.union([
|
|
123
|
-
z.tuple([
|
|
123
|
+
z.tuple([StepIdentityZod, z.number()]),
|
|
124
124
|
]),
|
|
125
125
|
from: z.union([
|
|
126
|
-
z.tuple([
|
|
126
|
+
z.tuple([StepIdentityZod, z.number()]),
|
|
127
127
|
]),
|
|
128
128
|
},
|
|
129
129
|
result: {
|
|
@@ -134,10 +134,10 @@ export const XyoViewerRpcSchemas = {
|
|
|
134
134
|
xyoViewer_networkStakeStepRewardPotentialPositionLoss: {
|
|
135
135
|
params: {
|
|
136
136
|
to: z.union([
|
|
137
|
-
z.tuple([
|
|
137
|
+
z.tuple([StepIdentityZod, z.number()]),
|
|
138
138
|
]),
|
|
139
139
|
from: z.union([
|
|
140
|
-
z.tuple([
|
|
140
|
+
z.tuple([StepIdentityZod, z.number()]),
|
|
141
141
|
]),
|
|
142
142
|
},
|
|
143
143
|
result: {
|
|
@@ -148,10 +148,10 @@ export const XyoViewerRpcSchemas = {
|
|
|
148
148
|
xyoViewer_networkStakeStepRewardForStep: {
|
|
149
149
|
params: {
|
|
150
150
|
to: z.union([
|
|
151
|
-
z.tuple([
|
|
151
|
+
z.tuple([StepIdentityZod]),
|
|
152
152
|
]),
|
|
153
153
|
from: z.union([
|
|
154
|
-
z.tuple([
|
|
154
|
+
z.tuple([StepIdentityZod]),
|
|
155
155
|
]),
|
|
156
156
|
},
|
|
157
157
|
result: {
|
|
@@ -162,10 +162,10 @@ export const XyoViewerRpcSchemas = {
|
|
|
162
162
|
xyoViewer_networkStakeStepRewardRandomizer: {
|
|
163
163
|
params: {
|
|
164
164
|
to: z.union([
|
|
165
|
-
z.tuple([
|
|
165
|
+
z.tuple([StepIdentityZod]),
|
|
166
166
|
]),
|
|
167
167
|
from: z.union([
|
|
168
|
-
z.tuple([
|
|
168
|
+
z.tuple([StepIdentityZod]),
|
|
169
169
|
]),
|
|
170
170
|
},
|
|
171
171
|
result: {
|
|
@@ -176,10 +176,10 @@ export const XyoViewerRpcSchemas = {
|
|
|
176
176
|
xyoViewer_networkStakeStepRewardStakerCount: {
|
|
177
177
|
params: {
|
|
178
178
|
to: z.union([
|
|
179
|
-
z.tuple([
|
|
179
|
+
z.tuple([StepIdentityZod]),
|
|
180
180
|
]),
|
|
181
181
|
from: z.union([
|
|
182
|
-
z.tuple([
|
|
182
|
+
z.tuple([StepIdentityZod]),
|
|
183
183
|
]),
|
|
184
184
|
},
|
|
185
185
|
result: {
|
|
@@ -190,10 +190,10 @@ export const XyoViewerRpcSchemas = {
|
|
|
190
190
|
xyoViewer_networkStakeStepRewardPoolShares: {
|
|
191
191
|
params: {
|
|
192
192
|
to: z.union([
|
|
193
|
-
z.tuple([
|
|
193
|
+
z.tuple([StepIdentityZod]),
|
|
194
194
|
]),
|
|
195
195
|
from: z.union([
|
|
196
|
-
z.tuple([
|
|
196
|
+
z.tuple([StepIdentityZod]),
|
|
197
197
|
]),
|
|
198
198
|
},
|
|
199
199
|
result: {
|
|
@@ -204,10 +204,24 @@ export const XyoViewerRpcSchemas = {
|
|
|
204
204
|
xyoViewer_networkStakeStepRewardForStepForPosition: {
|
|
205
205
|
params: {
|
|
206
206
|
to: z.union([
|
|
207
|
-
z.tuple([
|
|
207
|
+
z.tuple([StepIdentityZod, z.number()]),
|
|
208
208
|
]),
|
|
209
209
|
from: z.union([
|
|
210
|
-
z.tuple([
|
|
210
|
+
z.tuple([StepIdentityZod, z.number()]),
|
|
211
|
+
]),
|
|
212
|
+
},
|
|
213
|
+
result: {
|
|
214
|
+
to: z.tuple([BigIntToJsonZod, BigIntToJsonZod]),
|
|
215
|
+
from: z.tuple([JsonToBigIntZod, JsonToBigIntZod]),
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
xyoViewer_networkStakeStepRewardForPosition: {
|
|
219
|
+
params: {
|
|
220
|
+
to: z.union([
|
|
221
|
+
z.tuple([z.number(), z.tuple([z.number(), z.number()])]),
|
|
222
|
+
]),
|
|
223
|
+
from: z.union([
|
|
224
|
+
z.tuple([z.number(), z.tuple([z.number(), z.number()])]),
|
|
211
225
|
]),
|
|
212
226
|
},
|
|
213
227
|
result: {
|
|
@@ -9,7 +9,7 @@ export * from './Payload.ts'
|
|
|
9
9
|
export * from './Permission.ts'
|
|
10
10
|
export * from './Sequence.ts'
|
|
11
11
|
export * from './Stake.ts'
|
|
12
|
-
export * from './
|
|
12
|
+
export * from './StepIdentity.ts'
|
|
13
13
|
export * from './TransactionBoundWitness.ts'
|
|
14
14
|
export * from './TransactionFees.ts'
|
|
15
15
|
export * from './Transfer.ts'
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StepContext.d.ts","sourceRoot":"","sources":["../../../../../src/types/schema/common/StepContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,eAAO,MAAM,cAAc;;;iBAGzB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StepContext.d.ts","sourceRoot":"","sources":["../../../../../src/types/schema/common/StepContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,eAAO,MAAM,cAAc;;;iBAGzB,CAAA"}
|