@xyo-network/xl1-protocol 1.12.55 → 1.12.57

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.
@@ -15,7 +15,7 @@ export interface NetworkStakeStepPoolRewardViewInterface {
15
15
  networkStakeStepRewardPoolShares(context: StepContext): Promisable<Record<Address, bigint>>;
16
16
  }
17
17
  export interface NetworkStakeStepRewardPositionViewInterface {
18
- networkStakeStepRewardPositionWeight(context: StepContext, position: number): Promisable<number>;
18
+ networkStakeStepRewardPositionWeight(context: StepContext, position: number): Promisable<bigint>;
19
19
  networkStakeStepRewardPotentialPositionLoss(context: StepContext, position: number): Promisable<bigint>;
20
20
  }
21
21
  export interface NetworkStakeStepRewardViewInterface extends NetworkStakeStepPoolRewardViewInterface, NetworkStakeStepAddressRewardViewInterface, NetworkStakeStepRewardPositionViewInterface {
@@ -11,8 +11,8 @@ export type Stake = {
11
11
  withdrawBlock: number;
12
12
  };
13
13
  export interface StakeViewInterface {
14
- stakeByAddress(address: Address, slot: number): Promisable<Stake>;
15
14
  stakeById(id: number): Promisable<Stake>;
15
+ stakeByStaker(staker: Address, slot: number): Promisable<Stake>;
16
16
  stakedByStaker(staker: Address): Promisable<Address[]>;
17
17
  stakesByStaked(staked: Address): Promisable<Stake[]>;
18
18
  stakesByStaker(staker: Address): Promisable<Stake[]>;
@@ -1 +1 @@
1
- {"version":3,"file":"Stake.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/view/Stake.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAEjD,MAAM,MAAM,KAAK,GAAG;IAElB,QAAQ,EAAE,MAAM,CAAA;IAEhB,MAAM,EAAE,OAAO,CAAA;IAEf,EAAE,EAAE,MAAM,CAAA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MAAM,GAAG,UAAU,CAAC,KAAK,CAAC,CAAA;IAC/D,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAAC,OAAO,EAAE,CAAC,CAAA;IACtD,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAAC,KAAK,EAAE,CAAC,CAAA;IACpD,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAAC,KAAK,EAAE,CAAC,CAAA;CACrD"}
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-protocol",
4
- "version": "1.12.55",
4
+ "version": "1.12.57",
5
5
  "description": "XYO Layer One Protocol",
6
6
  "homepage": "https://xylabs.com",
7
7
  "bugs": {
@@ -31,7 +31,7 @@ export interface NetworkStakeStepPoolRewardViewInterface {
31
31
 
32
32
  export interface NetworkStakeStepRewardPositionViewInterface {
33
33
  // estimate the current weight for a given position at a given step
34
- networkStakeStepRewardPositionWeight(context: StepContext, position: number): Promisable<number>
34
+ networkStakeStepRewardPositionWeight(context: StepContext, position: number): Promisable<bigint>
35
35
 
36
36
  // estimate the potential loss for removing a given position at a given step
37
37
  networkStakeStepRewardPotentialPositionLoss(context: StepContext, position: number): Promisable<bigint>
@@ -21,8 +21,8 @@ export type Stake = {
21
21
  }
22
22
 
23
23
  export interface StakeViewInterface {
24
- stakeByAddress(address: Address, slot: number): Promisable<Stake>
25
24
  stakeById(id: number): Promisable<Stake>
25
+ stakeByStaker(staker: Address, slot: number): Promisable<Stake>
26
26
  stakedByStaker(staker: Address): Promisable<Address[]>
27
27
  stakesByStaked(staked: Address): Promisable<Stake[]>
28
28
  stakesByStaker(staker: Address): Promisable<Stake[]>