@xyo-network/xl1-protocol 1.12.93 → 1.12.94

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,11 +1,13 @@
1
1
  import type { Address } from '@xylabs/hex';
2
2
  import type { Promisable } from '@xylabs/promise';
3
3
  import type { RewardShare, StepIdentity } from '../../../model/index.ts';
4
- export interface StepViewer {
4
+ export interface StepViewerMethods {
5
5
  randomizer(step: StepIdentity): Promisable<bigint>;
6
6
  rewards(step: StepIdentity): Promisable<Record<Address, RewardShare>>;
7
7
  stake(step: StepIdentity): Promisable<bigint>;
8
8
  stakers(step: StepIdentity): Promisable<Address[]>;
9
9
  weight(step: StepIdentity): Promisable<bigint>;
10
10
  }
11
+ export interface StepViewer extends StepViewerMethods {
12
+ }
11
13
  //# sourceMappingURL=StepViewer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"StepViewer.d.ts","sourceRoot":"","sources":["../../../../../src/interfaces/viewers/NetworkStakeViewer/StepViewer.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,WAAW,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAExE,MAAM,WAAW,UAAU;IAGzB,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,YAAY,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IAG7C,OAAO,CAAC,IAAI,EAAE,YAAY,GAAG,UAAU,CAAC,OAAO,EAAE,CAAC,CAAA;IAGlD,MAAM,CAAC,IAAI,EAAE,YAAY,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;CAC/C"}
1
+ {"version":3,"file":"StepViewer.d.ts","sourceRoot":"","sources":["../../../../../src/interfaces/viewers/NetworkStakeViewer/StepViewer.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,WAAW,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAExE,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,YAAY,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IAG7C,OAAO,CAAC,IAAI,EAAE,YAAY,GAAG,UAAU,CAAC,OAAO,EAAE,CAAC,CAAA;IAGlD,MAAM,CAAC,IAAI,EAAE,YAAY,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;CAC/C;AAED,MAAM,WAAW,UAAW,SAAQ,iBAAiB;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.93",
4
+ "version": "1.12.94",
5
5
  "description": "XYO Layer One Protocol",
6
6
  "homepage": "https://xylabs.com",
7
7
  "bugs": {
@@ -3,7 +3,7 @@ import type { Promisable } from '@xylabs/promise'
3
3
 
4
4
  import type { RewardShare, StepIdentity } from '../../../model/index.ts'
5
5
 
6
- export interface StepViewer {
6
+ export interface StepViewerMethods {
7
7
 
8
8
  // the predictable random number for a given step and block
9
9
  randomizer(step: StepIdentity): Promisable<bigint>
@@ -20,3 +20,5 @@ export interface StepViewer {
20
20
  // total weight of all stakers during a given step
21
21
  weight(step: StepIdentity): Promisable<bigint>
22
22
  }
23
+
24
+ export interface StepViewer extends StepViewerMethods {}