@xyo-network/xl1-protocol 1.12.72 → 1.12.74

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.
@@ -1,6 +1,6 @@
1
1
  import type { Address } from '@xylabs/hex';
2
2
  import type { Promisable } from '@xylabs/promise';
3
- import type { StepIdentity } from '../../model/index.ts';
3
+ import type { StepIdentity, StepIdentityString } from '../../model/index.ts';
4
4
  export interface NetworkStakeStepAddressRewardViewInterface {
5
5
  networkStakeStepRewardAddressHistory(address: Address): Promisable<Record<Address, bigint>>;
6
6
  networkStakeStepRewardAddressReward(context: StepIdentity, address: Address): Promisable<Record<Address, bigint>>;
@@ -23,5 +23,6 @@ export interface NetworkStakeStepRewardViewInterface extends NetworkStakeStepPoo
23
23
  networkStakeStepRewardRandomizer(context: StepIdentity): Promisable<bigint>;
24
24
  networkStakeStepRewardStakerCount(context: StepIdentity): Promisable<number>;
25
25
  networkStakeStepRewardUnclaimedByAddress(address: Address): Promisable<bigint>;
26
+ networkStakeStepRewardsForPosition(position: number, range: [number, number]): Promisable<Record<StepIdentityString, [bigint, bigint]>>;
26
27
  }
27
28
  //# sourceMappingURL=NetworkStakeStepReward.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NetworkStakeStepReward.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/viewers/NetworkStakeStepReward.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,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAExD,MAAM,WAAW,0CAA0C;IAEzD,oCAAoC,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAA;IAG3F,mCAAmC,CAAC,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,OAA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AE,MAAM,CAAC,CAAC,CAAC,CAAA;CACxI"}
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.72",
4
+ "version": "1.12.74",
5
5
  "description": "XYO Layer One Protocol",
6
6
  "homepage": "https://xylabs.com",
7
7
  "bugs": {
@@ -1,7 +1,7 @@
1
1
  import type { Address } from '@xylabs/hex'
2
2
  import type { Promisable } from '@xylabs/promise'
3
3
 
4
- import type { StepIdentity } from '../../model/index.ts'
4
+ import type { StepIdentity, StepIdentityString } from '../../model/index.ts'
5
5
 
6
6
  export interface NetworkStakeStepAddressRewardViewInterface {
7
7
  // the step rewards for a specific network stakers for all of history
@@ -57,4 +57,7 @@ export interface NetworkStakeStepRewardViewInterface extends
57
57
  networkStakeStepRewardStakerCount(context: StepIdentity): Promisable<number>
58
58
 
59
59
  networkStakeStepRewardUnclaimedByAddress(address: Address): Promisable<bigint>
60
+
61
+ // the share & total rewards for a given position for each step in range
62
+ networkStakeStepRewardsForPosition(position: number, range: [number, number]): Promisable<Record<StepIdentityString, [bigint, bigint]>>
60
63
  }