@xyo-network/xl1-protocol 1.12.44 → 1.12.46
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.
|
@@ -5,7 +5,7 @@ export interface NetworkStakeStepAddressRewardViewInterface {
|
|
|
5
5
|
networkStakeStepAddressReward(address: Address, step: number, block: number): Promisable<Record<Address, bigint>>;
|
|
6
6
|
networkStakeStepRewardAddressHistory(address: Address): Promisable<Record<Address, bigint>>;
|
|
7
7
|
networkStakeStepRewardAddressShare(address: Address, step: number, block: number): Promisable<[/* address shares */ bigint, /* total shares */ bigint]>;
|
|
8
|
-
networkStakeStepRewardWeightForAddress
|
|
8
|
+
networkStakeStepRewardWeightForAddress(address: Address, step: number): Promisable<bigint>;
|
|
9
9
|
networkStakeUnclaimedRewards(address: Address): Promisable<bigint>;
|
|
10
10
|
}
|
|
11
11
|
export interface NetworkStakeStepPoolRewardViewInterface {
|
|
@@ -13,11 +13,11 @@ export interface NetworkStakeStepPoolRewardViewInterface {
|
|
|
13
13
|
networkStakeStepPoolRewards(step: number, block: number): Promisable<Record<Address, bigint>>;
|
|
14
14
|
}
|
|
15
15
|
export interface NetworkStakeStepRewardPositionViewInterface {
|
|
16
|
-
networkStakeStepRewardPositionWeight
|
|
17
|
-
networkStakeStepRewardPotentialPositionLoss
|
|
16
|
+
networkStakeStepRewardPositionWeight(position: bigint, step: number): Promisable<number>;
|
|
17
|
+
networkStakeStepRewardPotentialPositionLoss(position: bigint, step: number): Promisable<bigint>;
|
|
18
18
|
}
|
|
19
19
|
export interface NetworkStakeStepRewardViewInterface extends NetworkStakeStepPoolRewardViewInterface, NetworkStakeStepAddressRewardViewInterface, NetworkStakeStepRewardPositionViewInterface {
|
|
20
|
-
networkStakeStepRewardForStep
|
|
20
|
+
networkStakeStepRewardForStep(step: number): Promisable<bigint>;
|
|
21
21
|
networkStakeStepRewardRandomizer(step: number, block: number): Promisable<bigint>;
|
|
22
22
|
networkStakeStepRewardStakerCount(step: number, block: number): Promisable<number>;
|
|
23
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NetworkStakeStepReward.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/view/NetworkStakeStepReward.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,WAAW,0CAA0C;IACzD,0BAA0B,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IAGhE,6BAA6B,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAA;IAGjH,oCAAoC,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAA;IAG3F,kCAAkC,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC,CAAC,oBAAoB,CAAA,MAAM,EAAE,kBAAkB,CAAA,MAAM,CAAC,CAAC,CAAA;IAGrJ,sCAAsC,CAAC,
|
|
1
|
+
{"version":3,"file":"NetworkStakeStepReward.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/view/NetworkStakeStepReward.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,WAAW,0CAA0C;IACzD,0BAA0B,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IAGhE,6BAA6B,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,K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gC,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IAGjF,iCAAiC,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;CACnF"}
|
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@ export interface NetworkStakeStepAddressRewardViewInterface {
|
|
|
14
14
|
networkStakeStepRewardAddressShare(address: Address, step: number, block: number): Promisable<[/* address shares */bigint, /* total shares */bigint]>
|
|
15
15
|
|
|
16
16
|
// estimate the current reward weight for a given address at a given step
|
|
17
|
-
networkStakeStepRewardWeightForAddress
|
|
17
|
+
networkStakeStepRewardWeightForAddress(address: Address, step: number): Promisable<bigint>
|
|
18
18
|
|
|
19
19
|
networkStakeUnclaimedRewards(address: Address): Promisable<bigint>
|
|
20
20
|
}
|
|
@@ -30,10 +30,10 @@ export interface NetworkStakeStepPoolRewardViewInterface {
|
|
|
30
30
|
|
|
31
31
|
export interface NetworkStakeStepRewardPositionViewInterface {
|
|
32
32
|
// estimate the current weight for a given position at a given step
|
|
33
|
-
networkStakeStepRewardPositionWeight
|
|
33
|
+
networkStakeStepRewardPositionWeight(position: bigint, step: number): Promisable<number>
|
|
34
34
|
|
|
35
35
|
// estimate the potential loss for removing a given position at a given step
|
|
36
|
-
networkStakeStepRewardPotentialPositionLoss
|
|
36
|
+
networkStakeStepRewardPotentialPositionLoss(position: bigint, step: number): Promisable<bigint>
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
export interface NetworkStakeStepRewardViewInterface extends
|
|
@@ -42,7 +42,7 @@ export interface NetworkStakeStepRewardViewInterface extends
|
|
|
42
42
|
NetworkStakeStepRewardPositionViewInterface
|
|
43
43
|
{
|
|
44
44
|
// estimate the total possible block rewards for a given step
|
|
45
|
-
networkStakeStepRewardForStep
|
|
45
|
+
networkStakeStepRewardForStep(step: number): Promisable<bigint>
|
|
46
46
|
|
|
47
47
|
// the predictable random number for a given step and block
|
|
48
48
|
networkStakeStepRewardRandomizer(step: number, block: number): Promisable<bigint>
|