@xyo-network/xl1-protocol 1.12.85 → 1.12.86

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.
@@ -0,0 +1,40 @@
1
+ import type { Address } from '@xylabs/hex';
2
+ import type { Promisable } from '@xylabs/promise';
3
+ import type { BlockRange, RewardShare, StepIdentity, StepIdentityString } from '../../model/index.ts';
4
+ export interface RewardsViewer<TIndex> {
5
+ claimed(index: TIndex, range?: BlockRange): Promisable<bigint>;
6
+ reward(index: TIndex, step: StepIdentity): Promisable<RewardShare>;
7
+ rewards(index: TIndex, range?: BlockRange): Promisable<Record<StepIdentityString, RewardShare>>;
8
+ unclaimed(index: TIndex, range?: BlockRange): Promisable<bigint>;
9
+ }
10
+ export interface RewardsStakerViewer extends RewardsViewer<Address> {
11
+ }
12
+ export interface RewardsStepViewer {
13
+ randomizer(step: StepIdentity): Promisable<bigint>;
14
+ rewards(step: StepIdentity): Promisable<Record<Address, RewardShare>>;
15
+ stake(step: StepIdentity): Promisable<bigint>;
16
+ stakers(step: StepIdentity): Promisable<Address[]>;
17
+ weight(step: StepIdentity): Promisable<bigint>;
18
+ }
19
+ export interface RewardsPositionViewer {
20
+ claimed(position: number, range?: BlockRange): Promisable<bigint>;
21
+ reward(position: number, step: StepIdentity): Promisable<RewardShare>;
22
+ rewards(staker: Address, range?: BlockRange): Promisable<Record<StepIdentityString, RewardShare>>;
23
+ unclaimed(position: number, range?: BlockRange): Promisable<bigint>;
24
+ }
25
+ export interface RewardsTotalViewer {
26
+ available(range?: BlockRange): Promisable<bigint>;
27
+ claimed(range?: BlockRange): Promisable<bigint>;
28
+ earned(range?: BlockRange): Promisable<bigint>;
29
+ unclaimed(range?: BlockRange): Promisable<bigint>;
30
+ }
31
+ export interface StepRewardsViewer {
32
+ position(): Promisable<RewardsPositionViewer>;
33
+ staker(): Promisable<RewardsViewer<Address>>;
34
+ step(): Promisable<RewardsViewer<StepIdentity>>;
35
+ total(): Promisable<RewardsTotalViewer>;
36
+ }
37
+ export interface NetworkStakeViewer {
38
+ stepRewards(): Promisable<StepRewardsViewer>;
39
+ }
40
+ //# sourceMappingURL=NetworkStakeViewer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NetworkStakeViewer.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/viewers/NetworkStakeViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EACV,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,kBAAkB,EAC1D,MAAM,sBAAsB,CAAA;AAE7B,MAAM,WAAW,aAAa,CAAC,MAAM;IACnC,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IAC9D,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,GAAG,UAAU,CAAC,WAAW,CAAC,CAAA;IAClE,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC,MAAM,CAAC,kBAAkB,EAAE,WAAW,CAAC,CAAC,CAAA;IAC/F,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;CACjE;AAED,MAAM,WAAW,mBAAoB,SAAQ,aAAa,CAAC,OAAO,CAAC;CAAG;AAEtE,MAAM,WAAW,iBAAiB;IAGhC,UAAU,CAAC,IAAI,EAAE,YAAY,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IAGlD,OAAO,CAAC,IAAI,EAAE,YAAY,GAAG,UAAU,CAAC,MAAM,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC,CAAA;IAGrE,KAAK,CAAC,IAAI,EAAE,YA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A;IAC/C,KAAK,IAAI,UAAU,CAAC,kBAAkB,CAAC,CAAA;CACxC;AAED,MAAM,WAAW,kBAAkB;IACjC,WAAW,IAAI,UAAU,CAAC,iBAAiB,CAAC,CAAA;CAC7C"}
@@ -4,7 +4,7 @@ export * from './Chain.ts';
4
4
  export * from './ChainContract.ts';
5
5
  export * from './Fork.ts';
6
6
  export * from './NetworkStakeStepReward.ts';
7
- export * from './NetworkStakeStepRewardsViewer.ts';
7
+ export * from './NetworkStakeViewer.ts';
8
8
  export * from './Stake.ts';
9
9
  export * from './StakeTotalsViewer.ts';
10
10
  export * from './StakeViewer.ts';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/viewers/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,oBAAoB,CAAA;AAClC,cAAc,WAAW,CAAA;AACzB,cAAc,6BAA6B,CAAA;AAC3C,cAAc,oCAAoC,CAAA;AAClD,cAAc,YAAY,CAAA;AAC1B,cAAc,wBAAwB,CAAA;AACtC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,kBAAkB,CAAA;AAChC,cAAc,sBAAsB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/viewers/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,oBAAoB,CAAA;AAClC,cAAc,WAAW,CAAA;AACzB,cAAc,6BAA6B,CAAA;AAC3C,cAAc,yBAAyB,CAAA;AACvC,cAAc,YAAY,CAAA;AAC1B,cAAc,wBAAwB,CAAA;AACtC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,kBAAkB,CAAA;AAChC,cAAc,sBAAsB,CAAA"}
@@ -2,6 +2,7 @@ import type { Address, Hex } from '@xylabs/hex';
2
2
  import type { Signed } from '@xyo-network/boundwitness-model';
3
3
  import type { Payload } from '@xyo-network/payload-model';
4
4
  import type { AllowedBlockPayload } from '../block/index.ts';
5
+ import type { NetworkStakeViewer } from '../interfaces/index.ts';
5
6
  import type { TransactionBoundWitness, TransactionFeesBigInt } from '../transaction/index.ts';
6
7
  import type { TransactionSubmitter } from './TransactionSubmitter.ts';
7
8
  import type { XyoDataLake, XyoDataLakeViewer } from './XyoDataLake.ts';
@@ -21,6 +22,7 @@ export interface XyoConnectionProviderDeprecated extends TransactionSubmitter {
21
22
  }
22
23
  export interface XyoConnection extends Partial<XyoConnectionProviderDeprecated> {
23
24
  network?: XyoNetwork;
25
+ networkStake?: NetworkStakeViewer;
24
26
  runner?: XyoRunner;
25
27
  storage?: XyoDataLake | XyoDataLakeViewer;
26
28
  viewer?: XyoViewer;
@@ -1 +1 @@
1
- {"version":3,"file":"XyoConnection.d.ts","sourceRoot":"","sources":["../../../src/provider/XyoConnection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAC7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAC5D,OAAO,KAAK,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAE7F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AACrE,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AACtE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA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AAU,CAAA;IACpB,YAAY,CAAC,EAAE,kBAAkB,CAAA;IACjC,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,OAAO,CAAC,EAAE,WAAW,GAAG,iBAAiB,CAAA;IACzC,MAAM,CAAC,EAAE,SAAS,CAAA;CACnB;AAED,4CAA4C;AAC5C,MAAM,WAAW,qBAAsB,SAAQ,aAAa;CAAG;AAE/D,4CAA4C;AAC5C,MAAM,WAAW,WAAY,SAAQ,aAAa;CAAG"}
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.85",
4
+ "version": "1.12.86",
5
5
  "description": "XYO Layer One Protocol",
6
6
  "homepage": "https://xylabs.com",
7
7
  "bugs": {
@@ -5,21 +5,16 @@ import type {
5
5
  BlockRange, RewardShare, StepIdentity, StepIdentityString,
6
6
  } from '../../model/index.ts'
7
7
 
8
- export interface NetworkStakeStepRewardsStakerViewer {
9
- // total amount claimed by a given staker for a given range
10
- claimed(staker: Address, range?: BlockRange): Promisable<bigint>
11
-
12
- // the step rewards for a specific network stakers for all of history
13
- reward(staker: Address, step: StepIdentity): Promisable<RewardShare>
14
-
15
- // the step rewards for a specific network stakers for all of history
16
- rewards(staker: Address, range?: BlockRange): Promisable<Record<StepIdentityString, RewardShare>>
17
-
18
- // total amount unclaimed by a given staker for a given range
19
- unclaimed(staker: Address, range?: BlockRange): Promisable<bigint>
8
+ export interface RewardsViewer<TIndex> {
9
+ claimed(index: TIndex, range?: BlockRange): Promisable<bigint>
10
+ reward(index: TIndex, step: StepIdentity): Promisable<RewardShare>
11
+ rewards(index: TIndex, range?: BlockRange): Promisable<Record<StepIdentityString, RewardShare>>
12
+ unclaimed(index: TIndex, range?: BlockRange): Promisable<bigint>
20
13
  }
21
14
 
22
- export interface NetworkStakeStepRewardsStepViewer {
15
+ export interface RewardsStakerViewer extends RewardsViewer<Address> {}
16
+
17
+ export interface RewardsStepViewer {
23
18
 
24
19
  // the predictable random number for a given step and block
25
20
  randomizer(step: StepIdentity): Promisable<bigint>
@@ -37,34 +32,36 @@ export interface NetworkStakeStepRewardsStepViewer {
37
32
  weight(step: StepIdentity): Promisable<bigint>
38
33
  }
39
34
 
40
- export interface NetworkStakeStepRewardsPositionViewer {
35
+ export interface RewardsPositionViewer {
41
36
 
42
37
  // total amount claimed by a given position for a given range
43
38
  claimed(position: number, range?: BlockRange): Promisable<bigint>
44
39
 
45
- // estimate the potential loss for removing a given position at a given step
46
- potentialLoss(position: number, step: StepIdentity): Promisable<bigint>
47
-
48
40
  // estimate the current reward for a given position at a given step
49
41
  reward(position: number, step: StepIdentity): Promisable<RewardShare>
50
42
 
43
+ // the step rewards for a specific network stakers for all of history
44
+ rewards(staker: Address, range?: BlockRange): Promisable<Record<StepIdentityString, RewardShare>>
45
+
51
46
  // total amount unclaimed by a given position for a given range
52
47
  unclaimed(position: number, range?: BlockRange): Promisable<bigint>
53
48
  }
54
49
 
55
- export interface NetworkStakeStepRewardsTotalViewer {
50
+ export interface RewardsTotalViewer {
56
51
  // the available tokens in the overall reward pool
57
52
  available(range?: BlockRange): Promisable<bigint>
58
53
  claimed(range?: BlockRange): Promisable<bigint>
54
+ earned(range?: BlockRange): Promisable<bigint>
59
55
  unclaimed(range?: BlockRange): Promisable<bigint>
60
- unclaimedByStaker(address: Address, range?: BlockRange): Promisable<bigint>
61
56
  }
62
57
 
63
- export interface NetworkStakeStepRewardsViewer extends
64
- NetworkStakeStepRewardsPositionViewer
65
- {
66
- position(): Promisable<NetworkStakeStepRewardsPositionViewer>
67
- staker(): Promisable<NetworkStakeStepRewardsStakerViewer>
68
- step(): Promisable<NetworkStakeStepRewardsStepViewer>
69
- total(): Promisable<NetworkStakeStepRewardsTotalViewer>
58
+ export interface StepRewardsViewer {
59
+ position(): Promisable<RewardsPositionViewer>
60
+ staker(): Promisable<RewardsViewer<Address>>
61
+ step(): Promisable<RewardsViewer<StepIdentity>>
62
+ total(): Promisable<RewardsTotalViewer>
63
+ }
64
+
65
+ export interface NetworkStakeViewer {
66
+ stepRewards(): Promisable<StepRewardsViewer>
70
67
  }
@@ -4,7 +4,7 @@ export * from './Chain.ts'
4
4
  export * from './ChainContract.ts'
5
5
  export * from './Fork.ts'
6
6
  export * from './NetworkStakeStepReward.ts'
7
- export * from './NetworkStakeStepRewardsViewer.ts'
7
+ export * from './NetworkStakeViewer.ts'
8
8
  export * from './Stake.ts'
9
9
  export * from './StakeTotalsViewer.ts'
10
10
  export * from './StakeViewer.ts'
@@ -3,6 +3,7 @@ import type { Signed } from '@xyo-network/boundwitness-model'
3
3
  import type { Payload } from '@xyo-network/payload-model'
4
4
 
5
5
  import type { AllowedBlockPayload } from '../block/index.ts'
6
+ import type { NetworkStakeViewer } from '../interfaces/index.ts'
6
7
  import type { TransactionBoundWitness, TransactionFeesBigInt } from '../transaction/index.ts'
7
8
  // eslint-disable-next-line sonarjs/deprecation
8
9
  import type { TransactionSubmitter } from './TransactionSubmitter.ts'
@@ -40,6 +41,7 @@ export interface XyoConnectionProviderDeprecated extends TransactionSubmitter {
40
41
  // eslint-disable-next-line sonarjs/deprecation
41
42
  export interface XyoConnection extends Partial<XyoConnectionProviderDeprecated> {
42
43
  network?: XyoNetwork
44
+ networkStake?: NetworkStakeViewer
43
45
  runner?: XyoRunner
44
46
  storage?: XyoDataLake | XyoDataLakeViewer
45
47
  viewer?: XyoViewer
@@ -1,35 +0,0 @@
1
- import type { Address } from '@xylabs/hex';
2
- import type { Promisable } from '@xylabs/promise';
3
- import type { BlockRange, RewardShare, StepIdentity, StepIdentityString } from '../../model/index.ts';
4
- export interface NetworkStakeStepRewardsStakerViewer {
5
- claimed(staker: Address, range?: BlockRange): Promisable<bigint>;
6
- reward(staker: Address, step: StepIdentity): Promisable<RewardShare>;
7
- rewards(staker: Address, range?: BlockRange): Promisable<Record<StepIdentityString, RewardShare>>;
8
- unclaimed(staker: Address, range?: BlockRange): Promisable<bigint>;
9
- }
10
- export interface NetworkStakeStepRewardsStepViewer {
11
- randomizer(step: StepIdentity): Promisable<bigint>;
12
- rewards(step: StepIdentity): Promisable<Record<Address, RewardShare>>;
13
- stake(step: StepIdentity): Promisable<bigint>;
14
- stakers(step: StepIdentity): Promisable<Address[]>;
15
- weight(step: StepIdentity): Promisable<bigint>;
16
- }
17
- export interface NetworkStakeStepRewardsPositionViewer {
18
- claimed(position: number, range?: BlockRange): Promisable<bigint>;
19
- potentialLoss(position: number, step: StepIdentity): Promisable<bigint>;
20
- reward(position: number, step: StepIdentity): Promisable<RewardShare>;
21
- unclaimed(position: number, range?: BlockRange): Promisable<bigint>;
22
- }
23
- export interface NetworkStakeStepRewardsTotalViewer {
24
- available(range?: BlockRange): Promisable<bigint>;
25
- claimed(range?: BlockRange): Promisable<bigint>;
26
- unclaimed(range?: BlockRange): Promisable<bigint>;
27
- unclaimedByStaker(address: Address, range?: BlockRange): Promisable<bigint>;
28
- }
29
- export interface NetworkStakeStepRewardsViewer extends NetworkStakeStepRewardsPositionViewer {
30
- position(): Promisable<NetworkStakeStepRewardsPositionViewer>;
31
- staker(): Promisable<NetworkStakeStepRewardsStakerViewer>;
32
- step(): Promisable<NetworkStakeStepRewardsStepViewer>;
33
- total(): Promisable<NetworkStakeStepRewardsTotalViewer>;
34
- }
35
- //# sourceMappingURL=NetworkStakeStepRewardsViewer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NetworkStakeStepRewardsViewer.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/viewers/NetworkStakeStepRewardsViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EACV,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,kBAAkB,EAC1D,MAAM,sBAAsB,CAAA;AAE7B,MAAM,WAAW,mCAAmC;IAElD,OAA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