@xyo-network/xl1-protocol 1.12.8 → 1.12.9

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.
Files changed (92) hide show
  1. package/dist/neutral/constants/addresses.d.ts +5 -0
  2. package/dist/neutral/constants/addresses.d.ts.map +1 -0
  3. package/dist/neutral/constants/index.d.ts +1 -1
  4. package/dist/neutral/constants/index.d.ts.map +1 -1
  5. package/dist/neutral/index.mjs +7 -3
  6. package/dist/neutral/index.mjs.map +1 -1
  7. package/dist/neutral/interfaces/index.d.ts +1 -11
  8. package/dist/neutral/interfaces/index.d.ts.map +1 -1
  9. package/dist/neutral/interfaces/{AccountBalance.d.ts → view/AccountBalance.d.ts} +4 -4
  10. package/dist/neutral/interfaces/view/AccountBalance.d.ts.map +1 -0
  11. package/dist/neutral/interfaces/{Block.d.ts → view/Block.d.ts} +2 -2
  12. package/dist/neutral/interfaces/view/Block.d.ts.map +1 -0
  13. package/dist/neutral/interfaces/view/Bridge.d.ts +9 -0
  14. package/dist/neutral/interfaces/view/Bridge.d.ts.map +1 -0
  15. package/dist/neutral/interfaces/view/Chain.d.ts +6 -0
  16. package/dist/neutral/interfaces/view/Chain.d.ts.map +1 -0
  17. package/dist/neutral/interfaces/{ChainContract.d.ts → view/ChainContract.d.ts} +1 -1
  18. package/dist/neutral/interfaces/view/ChainContract.d.ts.map +1 -0
  19. package/dist/neutral/interfaces/{ChainStake.d.ts → view/ChainStake.d.ts} +1 -1
  20. package/dist/neutral/interfaces/view/ChainStake.d.ts.map +1 -0
  21. package/dist/neutral/interfaces/{Fork.d.ts → view/Fork.d.ts} +1 -1
  22. package/dist/neutral/interfaces/view/Fork.d.ts.map +1 -0
  23. package/dist/neutral/interfaces/{NetworkStakeStepReward.d.ts → view/NetworkStakeStepReward.d.ts} +3 -3
  24. package/dist/neutral/interfaces/view/NetworkStakeStepReward.d.ts.map +1 -0
  25. package/dist/neutral/interfaces/{Stake.d.ts → view/Stake.d.ts} +1 -1
  26. package/dist/neutral/interfaces/view/Stake.d.ts.map +1 -0
  27. package/dist/neutral/interfaces/{StakeTotals.d.ts → view/StakeTotals.d.ts} +1 -1
  28. package/dist/neutral/interfaces/view/StakeTotals.d.ts.map +1 -0
  29. package/dist/neutral/interfaces/{StepStake.d.ts → view/StepStake.d.ts} +2 -2
  30. package/dist/neutral/interfaces/view/StepStake.d.ts.map +1 -0
  31. package/dist/neutral/interfaces/view/TimeSync.d.ts +6 -0
  32. package/dist/neutral/interfaces/view/TimeSync.d.ts.map +1 -0
  33. package/dist/neutral/interfaces/{Transaction.d.ts → view/Transaction.d.ts} +2 -2
  34. package/dist/neutral/interfaces/view/Transaction.d.ts.map +1 -0
  35. package/dist/neutral/interfaces/view/index.d.ts +14 -0
  36. package/dist/neutral/interfaces/view/index.d.ts.map +1 -0
  37. package/dist/neutral/provider/XyoViewer.d.ts +2 -2
  38. package/dist/neutral/provider/XyoViewer.d.ts.map +1 -1
  39. package/dist/neutral/services/BridgeService.d.ts +5 -0
  40. package/dist/neutral/services/BridgeService.d.ts.map +1 -0
  41. package/dist/neutral/services/Chain/interfaces/ChainContractViewer.d.ts +2 -2
  42. package/dist/neutral/services/Chain/interfaces/ChainContractViewer.d.ts.map +1 -1
  43. package/dist/neutral/services/Chain/interfaces/ChainStakeViewer.d.ts +2 -2
  44. package/dist/neutral/services/Chain/interfaces/ChainStakeViewer.d.ts.map +1 -1
  45. package/dist/neutral/services/ChainServiceCollectionV2.d.ts +10 -4
  46. package/dist/neutral/services/ChainServiceCollectionV2.d.ts.map +1 -1
  47. package/dist/neutral/services/StepStakeService.d.ts +5 -0
  48. package/dist/neutral/services/StepStakeService.d.ts.map +1 -0
  49. package/dist/neutral/services/index.d.ts +2 -0
  50. package/dist/neutral/services/index.d.ts.map +1 -1
  51. package/package.json +1 -1
  52. package/src/constants/addresses.ts +6 -0
  53. package/src/constants/index.ts +1 -1
  54. package/src/interfaces/index.ts +1 -11
  55. package/src/interfaces/{AccountBalance.ts → view/AccountBalance.ts} +4 -4
  56. package/src/interfaces/{Block.ts → view/Block.ts} +2 -2
  57. package/src/interfaces/view/Bridge.ts +13 -0
  58. package/src/interfaces/{Chain.ts → view/Chain.ts} +2 -2
  59. package/src/interfaces/{ChainContract.ts → view/ChainContract.ts} +1 -1
  60. package/src/interfaces/{ChainStake.ts → view/ChainStake.ts} +1 -1
  61. package/src/interfaces/{Fork.ts → view/Fork.ts} +1 -1
  62. package/src/interfaces/{NetworkStakeStepReward.ts → view/NetworkStakeStepReward.ts} +3 -3
  63. package/src/interfaces/{Stake.ts → view/Stake.ts} +1 -1
  64. package/src/interfaces/{StakeTotals.ts → view/StakeTotals.ts} +1 -1
  65. package/src/interfaces/{StepStake.ts → view/StepStake.ts} +2 -2
  66. package/src/interfaces/{TimeSync.ts → view/TimeSync.ts} +2 -2
  67. package/src/interfaces/{Transaction.ts → view/Transaction.ts} +2 -2
  68. package/src/interfaces/view/index.ts +13 -0
  69. package/src/provider/XyoViewer.ts +6 -5
  70. package/src/services/BridgeService.ts +4 -0
  71. package/src/services/Chain/interfaces/ChainContractViewer.ts +2 -2
  72. package/src/services/Chain/interfaces/ChainStakeViewer.ts +2 -2
  73. package/src/services/ChainServiceCollectionV2.ts +15 -4
  74. package/src/services/StepStakeService.ts +4 -0
  75. package/src/services/index.ts +2 -0
  76. package/dist/neutral/constants/zeroAddress.d.ts +0 -3
  77. package/dist/neutral/constants/zeroAddress.d.ts.map +0 -1
  78. package/dist/neutral/interfaces/AccountBalance.d.ts.map +0 -1
  79. package/dist/neutral/interfaces/Block.d.ts.map +0 -1
  80. package/dist/neutral/interfaces/Chain.d.ts +0 -6
  81. package/dist/neutral/interfaces/Chain.d.ts.map +0 -1
  82. package/dist/neutral/interfaces/ChainContract.d.ts.map +0 -1
  83. package/dist/neutral/interfaces/ChainStake.d.ts.map +0 -1
  84. package/dist/neutral/interfaces/Fork.d.ts.map +0 -1
  85. package/dist/neutral/interfaces/NetworkStakeStepReward.d.ts.map +0 -1
  86. package/dist/neutral/interfaces/Stake.d.ts.map +0 -1
  87. package/dist/neutral/interfaces/StakeTotals.d.ts.map +0 -1
  88. package/dist/neutral/interfaces/StepStake.d.ts.map +0 -1
  89. package/dist/neutral/interfaces/TimeSync.d.ts +0 -6
  90. package/dist/neutral/interfaces/TimeSync.d.ts.map +0 -1
  91. package/dist/neutral/interfaces/Transaction.d.ts.map +0 -1
  92. package/src/constants/zeroAddress.ts +0 -3
@@ -1,7 +1,7 @@
1
1
  import type { Hash } from '@xylabs/hex';
2
2
  import type { Promisable } from '@xylabs/promise';
3
- import type { SignedHydratedTransaction } from '../transaction/index.ts';
4
- export interface TransactionInterface {
3
+ import type { SignedHydratedTransaction } from '../../transaction/index.ts';
4
+ export interface TransactionViewInterface {
5
5
  transactionByBlockHashAndIndex(blockHash: Hash, transactionIndex: number): Promisable<SignedHydratedTransaction | null>;
6
6
  transactionByBlockNumberAndIndex(blockNumber: number, transactionIndex: number): Promisable<SignedHydratedTransaction | null>;
7
7
  transactionByHash(transactionHash: Hash): Promisable<SignedHydratedTransaction | null>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Transaction.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/view/Transaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAA;AAE3E,MAAM,WAAW,wBAAwB;IACvC,8BAA8B,CAAC,SAAS,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,GAAG,UAAU,CAAC,yBAAyB,GAAG,IAAI,CAAC,CAAA;IACvH,gCAAgC,CAAC,WAAW,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,GAAG,UAAU,CAAC,yBAAyB,GAAG,IAAI,CAAC,CAAA;IAC7H,iBAAiB,CAAC,eAAe,EAAE,IAAI,GAAG,UAAU,CAAC,yBAAyB,GAAG,IAAI,CAAC,CAAA;CACvF"}
@@ -0,0 +1,14 @@
1
+ export * from './AccountBalance.ts';
2
+ export * from './Block.ts';
3
+ export * from './Bridge.ts';
4
+ export * from './Chain.ts';
5
+ export * from './ChainContract.ts';
6
+ export * from './ChainStake.ts';
7
+ export * from './Fork.ts';
8
+ export * from './NetworkStakeStepReward.ts';
9
+ export * from './Stake.ts';
10
+ export * from './StakeTotals.ts';
11
+ export * from './StepStake.ts';
12
+ export * from './TimeSync.ts';
13
+ export * from './Transaction.ts';
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/view/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,oBAAoB,CAAA;AAClC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA;AACzB,cAAc,6BAA6B,CAAA;AAC3C,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,kBAAkB,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { AccountBalanceInterface, BlockInterface, ChainInterface, ForkInterface, StakeInterface, TransactionInterface } from '../interfaces/index.ts';
2
- export interface XyoViewer extends AccountBalanceInterface, ChainInterface, BlockInterface, TransactionInterface, StakeInterface, ForkInterface {
1
+ import type { AccountBalanceViewInterface, BlockViewInterface, ChainViewInterface, ForkViewInterface, StakeViewInterface, TransactionViewInterface } from '../interfaces/index.ts';
2
+ export interface XyoViewer extends AccountBalanceViewInterface, ChainViewInterface, BlockViewInterface, TransactionViewInterface, StakeViewInterface, ForkViewInterface {
3
3
  }
4
4
  //# sourceMappingURL=XyoViewer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"XyoViewer.d.ts","sourceRoot":"","sources":["../../../src/provider/XyoViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EAAE,cAAc,EAAE,cAAc,EACvD,aAAa,EACb,cAAc,EACd,oBAAoB,EACrB,MAAM,wBAAwB,CAAA;AAE/B,MAAM,WAAW,SAAU,SAAQ,uBAAuB,EAAE,cAAc,EAAE,cAAc,EAAE,oBAAoB,EAAE,cAAc,EAAE,aAAa;CAAG"}
1
+ {"version":3,"file":"XyoViewer.d.ts","sourceRoot":"","sources":["../../../src/provider/XyoViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAAE,kBAAkB,EAAE,kBAAkB,EACnE,iBAAiB,EACjB,kBAAkB,EAClB,wBAAwB,EACzB,MAAM,wBAAwB,CAAA;AAE/B,MAAM,WAAW,SAAU,SAAQ,2BAA2B,EAC5D,kBAAkB,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,iBAAiB;CAAG"}
@@ -0,0 +1,5 @@
1
+ import type { BridgeViewInterface } from '../interfaces/index.ts';
2
+ import type { ServiceInterface } from './Service.ts';
3
+ export interface BridgeService extends ServiceInterface, BridgeViewInterface {
4
+ }
5
+ //# sourceMappingURL=BridgeService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BridgeService.d.ts","sourceRoot":"","sources":["../../../src/services/BridgeService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAEpD,MAAM,WAAW,aAAc,SAAQ,gBAAgB,EAAE,mBAAmB;CAAG"}
@@ -1,4 +1,4 @@
1
- import type { ChainContractInterface } from '../../../interfaces/index.ts';
2
- export interface ChainContractViewer extends ChainContractInterface {
1
+ import type { ChainContractViewInterface } from '../../../interfaces/index.ts';
2
+ export interface ChainContractViewer extends ChainContractViewInterface {
3
3
  }
4
4
  //# sourceMappingURL=ChainContractViewer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChainContractViewer.d.ts","sourceRoot":"","sources":["../../../../../src/services/Chain/interfaces/ChainContractViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AAE1E,MAAM,WAAW,mBAAoB,SAAQ,sBAAsB;CAElE"}
1
+ {"version":3,"file":"ChainContractViewer.d.ts","sourceRoot":"","sources":["../../../../../src/services/Chain/interfaces/ChainContractViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AAE9E,MAAM,WAAW,mBAAoB,SAAQ,0BAA0B;CAEtE"}
@@ -1,5 +1,5 @@
1
- import type { ChainStakeInterface } from '../../../interfaces/index.ts';
1
+ import type { ChainStakeViewInterface } from '../../../interfaces/index.ts';
2
2
  import type { ChainContractViewer } from './ChainContractViewer.ts';
3
- export interface ChainStakeViewer extends ChainContractViewer, ChainStakeInterface {
3
+ export interface ChainStakeViewer extends ChainContractViewer, ChainStakeViewInterface {
4
4
  }
5
5
  //# sourceMappingURL=ChainStakeViewer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChainStakeViewer.d.ts","sourceRoot":"","sources":["../../../../../src/services/Chain/interfaces/ChainStakeViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;AACvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAEnE,MAAM,WAAW,gBAAiB,SAAQ,mBAAmB,EAAE,mBAAmB;CAEjF"}
1
+ {"version":3,"file":"ChainStakeViewer.d.ts","sourceRoot":"","sources":["../../../../../src/services/Chain/interfaces/ChainStakeViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AAC3E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAEnE,MAAM,WAAW,gBAAiB,SAAQ,mBAAmB,EAAE,uBAAuB;CAErF"}
@@ -3,10 +3,13 @@ import type { WalletInstance } from '@xyo-network/wallet-model';
3
3
  import type { AccountBalanceServiceV2 } from './AccountBalanceService.ts';
4
4
  import type { BlockProducerService } from './BlockProducerService.ts';
5
5
  import type { BlockRewardService } from './BlockRewardService.ts';
6
+ import type { BridgeService } from './BridgeService.ts';
6
7
  import type { ChainContractViewer, ChainStaker, ChainStakeViewer } from './Chain/index.ts';
7
8
  import type { EventingChainBlockNumberIteratorService } from './ChainIterator/index.ts';
8
9
  import type { ElectionService } from './Election.ts';
10
+ import type { NetworkStakeService } from './NetworkStakeService.ts';
9
11
  import type { StakeIntentService } from './StakeIntentService/index.ts';
12
+ import type { StepStakeService } from './StepStakeService.ts';
10
13
  /** @deprecated use from @xyo-network/xl1-protocol-sdk instead */
11
14
  export interface ChainServiceCollectionV2 {
12
15
  /**
@@ -16,10 +19,11 @@ export interface ChainServiceCollectionV2 {
16
19
  /**
17
20
  * Services for working with account balances
18
21
  */
19
- balanceService: AccountBalanceServiceV2;
22
+ balance: AccountBalanceServiceV2;
20
23
  /**
21
24
  * The archivist which the chain data is stored in
22
25
  */
26
+ bridge: BridgeService;
23
27
  chainArchivist: ArchivistInstance;
24
28
  /**
25
29
  * Service for viewing codified chain information
@@ -45,7 +49,8 @@ export interface ChainServiceCollectionV2 {
45
49
  /**
46
50
  * Service for determining leader election
47
51
  */
48
- electionService: ElectionService;
52
+ election: ElectionService;
53
+ networkStake: NetworkStakeService;
49
54
  /**
50
55
  * The archivist which the pending transactions are stored
51
56
  * as bundled transactions
@@ -58,10 +63,11 @@ export interface ChainServiceCollectionV2 {
58
63
  /**
59
64
  * Service response for calculating block rewards
60
65
  */
61
- rewardService: BlockRewardService;
66
+ reward: BlockRewardService;
62
67
  /**
63
68
  * Services for working with staked intents
64
69
  */
65
- stakeIntentService: StakeIntentService;
70
+ stakeIntent: StakeIntentService;
71
+ stepStake: StepStakeService;
66
72
  }
67
73
  //# sourceMappingURL=ChainServiceCollectionV2.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChainServiceCollectionV2.d.ts","sourceRoot":"","sources":["../../../src/services/ChainServiceCollectionV2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE/D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAA;AACzE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AACrE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AACjE,OAAO,KAAK,EACV,mBAAmB,EAAE,WAAW,EAAE,gBAAgB,EACnD,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,0BAA0B,CAAA;AACvF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AACpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAEvE,iEAAiE;AACjE,MAAM,WAAW,wBAAwB;IAEvC;;OAEG;IACH,OAAO,EAAE,cAAc,CAAA;IACvB;;OAEG;IACH,cAAc,EAAE,uBAAuB,CAAA;IACvC;;OAEG;IACH,cAAc,EAAE,iBAAiB,CAAA;IACjC;;;OAGG;IACH,mBAAmB,EAAE,mBAAmB,CAAA;IACxC;;OAEG;IACH,aAAa,CAAC,EAAE,uCAAuC,CAAA;IACvD;;OAEG;IACH,gBAAgB,EAAE,gBAAgB,CAAA;IAClC;;OAEG;IACH,WAAW,EAAE,WAAW,CAAA;IACxB;;OAEG;IACH,8BAA8B,EAAE,cAAc,CAAA;IAC9C;;OAEG;IACH,eAAe,EAAE,eAAe,CAAA;IAChC;;;OAGG;IACH,wCAAwC,EAAE,iBAAiB,CAAA;IAC3D;;OAEG;IACH,QAAQ,EAAE,oBAAoB,CAAA;IAC9B;;OAEG;IACH,aAAa,EAAE,kBAAkB,CAAA;IACjC;;OAEG;IACH,kBAAkB,EAAE,kBAAkB,CAAA;CACvC"}
1
+ {"version":3,"file":"ChainServiceCollectionV2.d.ts","sourceRoot":"","sources":["../../../src/services/ChainServiceCollectionV2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE/D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAA;AACzE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AACrE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,KAAK,EACV,mBAAmB,EAAE,WAAW,EAAE,gBAAgB,EACnD,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,0BAA0B,CAAA;AACvF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AACpD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AACnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AACvE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAE7D,iEAAiE;AACjE,MAAM,WAAW,wBAAwB;IAEvC;;OAEG;IACH,OAAO,EAAE,cAAc,CAAA;IACvB;;OAEG;IACH,OAAO,EAAE,uBAAuB,CAAA;IAChC;;OAEG;IAEH,MAAM,EAAE,aAAa,CAAA;IAErB,cAAc,EAAE,iBAAiB,CAAA;IACjC;;;OAGG;IACH,mBAAmB,EAAE,mBAAmB,CAAA;IACxC;;OAEG;IACH,aAAa,CAAC,EAAE,uCAAuC,CAAA;IACvD;;OAEG;IACH,gBAAgB,EAAE,gBAAgB,CAAA;IAClC;;OAEG;IACH,WAAW,EAAE,WAAW,CAAA;IACxB;;OAEG;IACH,8BAA8B,EAAE,cAAc,CAAA;IAC9C;;OAEG;IACH,QAAQ,EAAE,eAAe,CAAA;IAEzB,YAAY,EAAE,mBAAmB,CAAA;IAEjC;;;OAGG;IACH,wCAAwC,EAAE,iBAAiB,CAAA;IAC3D;;OAEG;IACH,QAAQ,EAAE,oBAAoB,CAAA;IAC9B;;OAEG;IACH,MAAM,EAAE,kBAAkB,CAAA;IAC1B;;OAEG;IACH,WAAW,EAAE,kBAAkB,CAAA;IAE/B,SAAS,EAAE,gBAAgB,CAAA;CAC5B"}
@@ -0,0 +1,5 @@
1
+ import type { StepStakeViewInterface } from '../interfaces/index.ts';
2
+ import type { ServiceInterface } from './Service.ts';
3
+ export interface StepStakeService extends ServiceInterface, StepStakeViewInterface {
4
+ }
5
+ //# sourceMappingURL=StepStakeService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StepStakeService.d.ts","sourceRoot":"","sources":["../../../src/services/StepStakeService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAA;AACpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAEpD,MAAM,WAAW,gBAAiB,SAAQ,gBAAgB,EAAE,sBAAsB;CAAG"}
@@ -2,6 +2,7 @@ export * from './AccountBalanceService.ts';
2
2
  export * from './BlockProducerService.ts';
3
3
  export * from './BlockRewardService.ts';
4
4
  export * from './BlockRewardServiceV2.ts';
5
+ export * from './BridgeService.ts';
5
6
  export * from './Chain/index.ts';
6
7
  export * from './ChainIterator/index.ts';
7
8
  export * from './ChainServiceCollection.ts';
@@ -11,4 +12,5 @@ export * from './NetworkStakeService.ts';
11
12
  export * from './PendingTransactionsService.ts';
12
13
  export * from './Service.ts';
13
14
  export * from './StakeIntentService/index.ts';
15
+ export * from './StepStakeService.ts';
14
16
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA;AAC1C,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AACvC,cAAc,2BAA2B,CAAA;AACzC,cAAc,kBAAkB,CAAA;AAChC,cAAc,0BAA0B,CAAA;AACxC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,eAAe,CAAA;AAC7B,cAAc,0BAA0B,CAAA;AACxC,cAAc,iCAAiC,CAAA;AAC/C,cAAc,cAAc,CAAA;AAC5B,cAAc,+BAA+B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA;AAC1C,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AACvC,cAAc,2BAA2B,CAAA;AACzC,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,0BAA0B,CAAA;AACxC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,eAAe,CAAA;AAC7B,cAAc,0BAA0B,CAAA;AACxC,cAAc,iCAAiC,CAAA;AAC/C,cAAc,cAAc,CAAA;AAC5B,cAAc,+BAA+B,CAAA;AAC7C,cAAc,uBAAuB,CAAA"}
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.8",
4
+ "version": "1.12.9",
5
5
  "description": "XYO Layer One Protocol",
6
6
  "homepage": "https://xylabs.com",
7
7
  "bugs": {
@@ -0,0 +1,6 @@
1
+ import type { Address } from '@xylabs/hex'
2
+
3
+ export const XYO_ZERO_ADDRESS = '0000000000000000000000000000000000000000' as const as Address
4
+
5
+ export const XYO_STEP_REWARD_ADDRESS = '1216197612161976121619761216197612161976' as const as Address
6
+ export const XYO_BRIDGE_ADDRESS = '3012193230121932301219323012193230121932' as const as Address
@@ -1,7 +1,7 @@
1
+ export * from './addresses.ts'
1
2
  export * from './defaultRewardRatio.ts'
2
3
  export * from './defaultTransactionFees.ts'
3
4
  export * from './minTransactionFees.ts'
4
5
  export * from './StepSizes.ts'
5
6
  export * from './TransactionGasCosts.ts'
6
7
  export * from './version.ts'
7
- export * from './zeroAddress.ts'
@@ -1,11 +1 @@
1
- export * from './AccountBalance.ts'
2
- export * from './Block.ts'
3
- export * from './Chain.ts'
4
- export * from './ChainContract.ts'
5
- export * from './ChainStake.ts'
6
- export * from './Fork.ts'
7
- export * from './NetworkStakeStepReward.ts'
8
- export * from './Stake.ts'
9
- export * from './StakeTotals.ts'
10
- export * from './StepStake.ts'
11
- export * from './Transaction.ts'
1
+ export * from './view/index.ts'
@@ -1,17 +1,17 @@
1
1
  import type { Address, Hash } from '@xylabs/hex'
2
2
  import type { Promisable } from '@xylabs/promise'
3
3
 
4
- import type { Transfer } from '../payload/index.ts'
5
- import type { AttoXL1 } from '../xl1/index.ts'
4
+ import type { Transfer } from '../../payload/index.ts'
5
+ import type { AttoXL1 } from '../../xl1/index.ts'
6
6
 
7
7
  export type AccountBalanceHistoryItem = [Hash /* block */, Hash /* transaction */, Transfer /* the actual transfer payload */]
8
8
 
9
- export interface AccountBalancesInterface {
9
+ export interface AccountBalancesViewInterface {
10
10
  accountBalanceHistories(address: Address): Promisable<Partial<Record<Address, AccountBalanceHistoryItem[]>>>
11
11
  accountBalances(address: Address[]): Promisable<Partial<Record<Address, AttoXL1>>>
12
12
  }
13
13
 
14
- export interface AccountBalanceInterface {
14
+ export interface AccountBalanceViewInterface {
15
15
  accountBalance(address: Address): Promisable<AttoXL1>
16
16
  accountBalanceHistory(address: Address): Promisable<AccountBalanceHistoryItem[]>
17
17
  }
@@ -1,9 +1,9 @@
1
1
  import type { Hash } from '@xylabs/hex'
2
2
  import type { Promisable } from '@xylabs/promise'
3
3
 
4
- import type { HydratedBlock } from '../block/index.ts'
4
+ import type { HydratedBlock } from '../../block/index.ts'
5
5
 
6
- export interface BlockInterface {
6
+ export interface BlockViewInterface {
7
7
  blockByHash(hash: Hash): Promisable<HydratedBlock | null>
8
8
  blockByNumber(blockNumber: number): Promisable<HydratedBlock | null>
9
9
  blocksByHash(hash: Hash, limit?: number): Promisable<HydratedBlock[]>
@@ -0,0 +1,13 @@
1
+ import type { Promisable } from '@xylabs/promise'
2
+
3
+ import type {
4
+ BridgeBack, BridgeComplete, BridgeRequest,
5
+ } from '../../payload/index.ts'
6
+
7
+ export interface BridgeViewInterface {
8
+ completedBridgeBack(): Promisable<BridgeBack[]>
9
+ completedBridgeRequests(): Promisable<[BridgeRequest, BridgeComplete][]>
10
+ // the from field in these will be 0 since they have not been completed yet
11
+ pendingBridgeBack(): Promisable<BridgeBack[]>
12
+ pendingBridgeRequests(): Promisable<BridgeRequest[]>
13
+ }
@@ -1,7 +1,7 @@
1
1
  import type { Promisable } from '@xylabs/promise'
2
2
 
3
- import type { Chain } from '../model.ts'
3
+ import type { Chain } from '../../model.ts'
4
4
 
5
- export interface ChainInterface {
5
+ export interface ChainViewInterface {
6
6
  chainId(): Promisable<Chain>
7
7
  }
@@ -1,6 +1,6 @@
1
1
  import type { Address } from '@xylabs/hex'
2
2
 
3
- export interface ChainContractInterface {
3
+ export interface ChainContractViewInterface {
4
4
  forkedAtBlockNumber(): Promise<bigint>
5
5
  forkedAtHash(): Promise<bigint>
6
6
  forkedChainId(): Promise<Address>
@@ -1,4 +1,4 @@
1
- export interface ChainStakeInterface {
1
+ export interface ChainStakeViewInterface {
2
2
  active(): Promise<bigint>
3
3
  activeByAddressStaked(address: string): Promise<bigint>
4
4
  activeByStaker(address: string): Promise<bigint>
@@ -3,7 +3,7 @@ import type { Promisable } from '@xylabs/promise'
3
3
 
4
4
  export type ForkHistory = Record<number, Address>
5
5
 
6
- export interface ForkInterface {
6
+ export interface ForkViewInterface {
7
7
  chainIdAtBlock(blockNumber: number): Promisable<Address>
8
8
  forkHistory(): Promisable<ForkHistory>
9
9
  }
@@ -1,7 +1,7 @@
1
1
  import type { Address } from '@xylabs/hex'
2
2
  import type { Promisable } from '@xylabs/promise'
3
3
 
4
- export interface NetworkStakeStepAddressReward {
4
+ export interface NetworkStakeStepAddressRewardViewInterface {
5
5
  claimedRewards(address: Address): Promisable<bigint>
6
6
 
7
7
  // the step rewards for a specific network stakers for a given step and block
@@ -16,7 +16,7 @@ export interface NetworkStakeStepAddressReward {
16
16
  unclaimedRewards(address: Address): Promisable<bigint>
17
17
  }
18
18
 
19
- export interface NetworkStakeStepPoolReward {
19
+ export interface NetworkStakeStepPoolRewardViewInterface {
20
20
 
21
21
  // all the shares for all the network stakers for a given step and block
22
22
  networkStakeStepPoolRewardShares(step: number, block: number): Promisable<Record<Address, bigint>>
@@ -25,7 +25,7 @@ export interface NetworkStakeStepPoolReward {
25
25
  networkStakeStepPoolRewards(step: number, block: number): Promisable<Record<Address, bigint>>
26
26
  }
27
27
 
28
- export interface NetworkStakeStepReward extends NetworkStakeStepPoolReward, NetworkStakeStepAddressReward {
28
+ export interface NetworkStakeStepRewardViewInterface extends NetworkStakeStepPoolRewardViewInterface, NetworkStakeStepAddressRewardViewInterface {
29
29
  // the predictable random number for a given step and block
30
30
  networkStakeStepRewardRandomizer(step: number, block: number): Promisable<bigint>
31
31
  }
@@ -18,7 +18,7 @@ export type Stake = {
18
18
  withdrawBlock: number
19
19
  }
20
20
 
21
- export interface StakeInterface {
21
+ export interface StakeViewInterface {
22
22
  stakeByAddress(address: Address, slot: number): Promisable<Stake>
23
23
  stakeById(id: number): Promisable<Stake>
24
24
  }
@@ -8,7 +8,7 @@ export interface StakeScope {
8
8
  type?: 'all' | 'network' | 'address'
9
9
  }
10
10
 
11
- export interface StakeTotalsInterface {
11
+ export interface StakeTotalsViewInterface {
12
12
  // the total amount that is staked in a given scope
13
13
  stakeAmount(scope?: StakeScope): Promisable<[bigint /* amount */, number /* external block number */]>
14
14
 
@@ -1,9 +1,9 @@
1
1
  import type { Address } from '@xylabs/hex'
2
2
  import type { Promisable } from '@xylabs/promise'
3
3
 
4
- import type { CompletedStep } from '../model.ts'
4
+ import type { CompletedStep } from '../../model.ts'
5
5
 
6
- export interface StepStakeInterface {
6
+ export interface StepStakeViewInterface {
7
7
  // this is the prorated stake for all addresses in the step
8
8
  stepStake: (step: CompletedStep) => Promisable<Record<Address, bigint>>
9
9
 
@@ -1,7 +1,7 @@
1
1
  import type { Promisable } from '@xylabs/promise'
2
2
 
3
- import type { TimeDomain } from '../payload/index.ts'
3
+ import type { TimeDomain } from '../../payload/index.ts'
4
4
 
5
- export interface TimeSyncInterface {
5
+ export interface TimeSyncViewInterface {
6
6
  convertTime: (from: TimeDomain, to: TimeDomain) => Promisable<number>
7
7
  }
@@ -1,9 +1,9 @@
1
1
  import type { Hash } from '@xylabs/hex'
2
2
  import type { Promisable } from '@xylabs/promise'
3
3
 
4
- import type { SignedHydratedTransaction } from '../transaction/index.ts'
4
+ import type { SignedHydratedTransaction } from '../../transaction/index.ts'
5
5
 
6
- export interface TransactionInterface {
6
+ export interface TransactionViewInterface {
7
7
  transactionByBlockHashAndIndex(blockHash: Hash, transactionIndex: number): Promisable<SignedHydratedTransaction | null>
8
8
  transactionByBlockNumberAndIndex(blockNumber: number, transactionIndex: number): Promisable<SignedHydratedTransaction | null>
9
9
  transactionByHash(transactionHash: Hash): Promisable<SignedHydratedTransaction | null>
@@ -0,0 +1,13 @@
1
+ export * from './AccountBalance.ts'
2
+ export * from './Block.ts'
3
+ export * from './Bridge.ts'
4
+ export * from './Chain.ts'
5
+ export * from './ChainContract.ts'
6
+ export * from './ChainStake.ts'
7
+ export * from './Fork.ts'
8
+ export * from './NetworkStakeStepReward.ts'
9
+ export * from './Stake.ts'
10
+ export * from './StakeTotals.ts'
11
+ export * from './StepStake.ts'
12
+ export * from './TimeSync.ts'
13
+ export * from './Transaction.ts'
@@ -1,8 +1,9 @@
1
1
  import type {
2
- AccountBalanceInterface, BlockInterface, ChainInterface,
3
- ForkInterface,
4
- StakeInterface,
5
- TransactionInterface,
2
+ AccountBalanceViewInterface, BlockViewInterface, ChainViewInterface,
3
+ ForkViewInterface,
4
+ StakeViewInterface,
5
+ TransactionViewInterface,
6
6
  } from '../interfaces/index.ts'
7
7
 
8
- export interface XyoViewer extends AccountBalanceInterface, ChainInterface, BlockInterface, TransactionInterface, StakeInterface, ForkInterface {}
8
+ export interface XyoViewer extends AccountBalanceViewInterface,
9
+ ChainViewInterface, BlockViewInterface, TransactionViewInterface, StakeViewInterface, ForkViewInterface {}
@@ -0,0 +1,4 @@
1
+ import type { BridgeViewInterface } from '../interfaces/index.ts'
2
+ import type { ServiceInterface } from './Service.ts'
3
+
4
+ export interface BridgeService extends ServiceInterface, BridgeViewInterface {}
@@ -1,5 +1,5 @@
1
- import type { ChainContractInterface } from '../../../interfaces/index.ts'
1
+ import type { ChainContractViewInterface } from '../../../interfaces/index.ts'
2
2
 
3
- export interface ChainContractViewer extends ChainContractInterface {
3
+ export interface ChainContractViewer extends ChainContractViewInterface {
4
4
 
5
5
  }
@@ -1,6 +1,6 @@
1
- import type { ChainStakeInterface } from '../../../interfaces/index.ts'
1
+ import type { ChainStakeViewInterface } from '../../../interfaces/index.ts'
2
2
  import type { ChainContractViewer } from './ChainContractViewer.ts'
3
3
 
4
- export interface ChainStakeViewer extends ChainContractViewer, ChainStakeInterface {
4
+ export interface ChainStakeViewer extends ChainContractViewer, ChainStakeViewInterface {
5
5
 
6
6
  }
@@ -4,12 +4,15 @@ import type { WalletInstance } from '@xyo-network/wallet-model'
4
4
  import type { AccountBalanceServiceV2 } from './AccountBalanceService.ts'
5
5
  import type { BlockProducerService } from './BlockProducerService.ts'
6
6
  import type { BlockRewardService } from './BlockRewardService.ts'
7
+ import type { BridgeService } from './BridgeService.ts'
7
8
  import type {
8
9
  ChainContractViewer, ChainStaker, ChainStakeViewer,
9
10
  } from './Chain/index.ts'
10
11
  import type { EventingChainBlockNumberIteratorService } from './ChainIterator/index.ts'
11
12
  import type { ElectionService } from './Election.ts'
13
+ import type { NetworkStakeService } from './NetworkStakeService.ts'
12
14
  import type { StakeIntentService } from './StakeIntentService/index.ts'
15
+ import type { StepStakeService } from './StepStakeService.ts'
13
16
 
14
17
  /** @deprecated use from @xyo-network/xl1-protocol-sdk instead */
15
18
  export interface ChainServiceCollectionV2 {
@@ -21,10 +24,13 @@ export interface ChainServiceCollectionV2 {
21
24
  /**
22
25
  * Services for working with account balances
23
26
  */
24
- balanceService: AccountBalanceServiceV2
27
+ balance: AccountBalanceServiceV2
25
28
  /**
26
29
  * The archivist which the chain data is stored in
27
30
  */
31
+
32
+ bridge: BridgeService
33
+
28
34
  chainArchivist: ArchivistInstance
29
35
  /**
30
36
  * Service for viewing codified chain information
@@ -50,7 +56,10 @@ export interface ChainServiceCollectionV2 {
50
56
  /**
51
57
  * Service for determining leader election
52
58
  */
53
- electionService: ElectionService
59
+ election: ElectionService
60
+
61
+ networkStake: NetworkStakeService
62
+
54
63
  /**
55
64
  * The archivist which the pending transactions are stored
56
65
  * as bundled transactions
@@ -63,9 +72,11 @@ export interface ChainServiceCollectionV2 {
63
72
  /**
64
73
  * Service response for calculating block rewards
65
74
  */
66
- rewardService: BlockRewardService
75
+ reward: BlockRewardService
67
76
  /**
68
77
  * Services for working with staked intents
69
78
  */
70
- stakeIntentService: StakeIntentService
79
+ stakeIntent: StakeIntentService
80
+
81
+ stepStake: StepStakeService
71
82
  }
@@ -0,0 +1,4 @@
1
+ import type { StepStakeViewInterface } from '../interfaces/index.ts'
2
+ import type { ServiceInterface } from './Service.ts'
3
+
4
+ export interface StepStakeService extends ServiceInterface, StepStakeViewInterface {}
@@ -2,6 +2,7 @@ export * from './AccountBalanceService.ts'
2
2
  export * from './BlockProducerService.ts'
3
3
  export * from './BlockRewardService.ts'
4
4
  export * from './BlockRewardServiceV2.ts'
5
+ export * from './BridgeService.ts'
5
6
  export * from './Chain/index.ts'
6
7
  export * from './ChainIterator/index.ts'
7
8
  export * from './ChainServiceCollection.ts'
@@ -11,3 +12,4 @@ export * from './NetworkStakeService.ts'
11
12
  export * from './PendingTransactionsService.ts'
12
13
  export * from './Service.ts'
13
14
  export * from './StakeIntentService/index.ts'
15
+ export * from './StepStakeService.ts'
@@ -1,3 +0,0 @@
1
- import type { Address } from '@xylabs/hex';
2
- export declare const XYO_ZERO_ADDRESS: Address;
3
- //# sourceMappingURL=zeroAddress.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"zeroAddress.d.ts","sourceRoot":"","sources":["../../../src/constants/zeroAddress.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAE1C,eAAO,MAAM,gBAAgB,EAAiD,OAAO,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"AccountBalance.d.ts","sourceRoot":"","sources":["../../../src/interfaces/AccountBalance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AACnD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAE9C,MAAM,MAAM,yBAAyB,GAAG,CAAC,IAAI,EAAc,IAAI,EAAoB,QAAQ,CAAmC,CAAA;AAE9H,MAAM,WAAW,wBAAwB;IACvC,uBAAuB,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,yBAAyB,EAAE,CAAC,CAAC,CAAC,CAAA;IAC5G,eAAe,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAA;CACnF;AAED,MAAM,WAAW,uBAAuB;IACtC,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,CAAA;IACrD,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,yBAAyB,EAAE,CAAC,CAAA;CACjF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Block.d.ts","sourceRoot":"","sources":["../../../src/interfaces/Block.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEtD,MAAM,WAAW,cAAc;IAC7B,WAAW,CAAC,IAAI,EAAE,IAAI,GAAG,UAAU,CAAC,aAAa,GAAG,IAAI,CAAC,CAAA;IACzD,aAAa,CAAC,WAAW,EAAE,MAAM,GAAG,UAAU,CAAC,aAAa,GAAG,IAAI,CAAC,CAAA;IACpE,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,aAAa,EAAE,CAAC,CAAA;IAErE,YAAY,IAAI,UAAU,CAAC,aAAa,CAAC,CAAA;IACzC,gBAAgB,IAAI,UAAU,CAAC,IAAI,CAAC,CAAA;IACpC,kBAAkB,IAAI,UAAU,CAAC,MAAM,CAAC,CAAA;CACzC"}
@@ -1,6 +0,0 @@
1
- import type { Promisable } from '@xylabs/promise';
2
- import type { Chain } from '../model.ts';
3
- export interface ChainInterface {
4
- chainId(): Promisable<Chain>;
5
- }
6
- //# sourceMappingURL=Chain.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Chain.d.ts","sourceRoot":"","sources":["../../../src/interfaces/Chain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAExC,MAAM,WAAW,cAAc;IAC7B,OAAO,IAAI,UAAU,CAAC,KAAK,CAAC,CAAA;CAC7B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChainContract.d.ts","sourceRoot":"","sources":["../../../src/interfaces/ChainContract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,WAAW,sBAAsB;IACrC,mBAAmB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IACtC,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IAC/B,aAAa,IAAI,OAAO,CAAC,OAAO,CAAC,CAAA;IACjC,mBAAmB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IACtC,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IAClC,mBAAmB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;CACvC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChainStake.d.ts","sourceRoot":"","sources":["../../../src/interfaces/ChainStake.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IACzB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IACvD,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IAChD,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IAC1B,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IAChD,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;IAC5B,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;CACnD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Fork.d.ts","sourceRoot":"","sources":["../../../src/interfaces/Fork.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAEjD,MAAM,WAAW,aAAa;IAC5B,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,CAAA;IACxD,WAAW,IAAI,UAAU,CAAC,WAAW,CAAC,CAAA;CACvC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"NetworkStakeStepReward.d.ts","sourceRoot":"","sources":["../../../src/interfaces/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,6BAA6B;IAC5C,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IAGpD,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;IAErJ,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;CACvD;AAED,MAAM,WAAW,0BAA0B;IAGzC,gCAAgC,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAA;IAGlG,2BAA2B,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAA;CAC9F;AAED,MAAM,WAAW,sBAAuB,SAAQ,0BAA0B,EAAE,6BAA6B;IAEvG,gCAAgC,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;CAClF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Stake.d.ts","sourceRoot":"","sources":["../../../src/interfaces/Stake.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,MAAM,KAAK,GAAG;IAElB,QAAQ,EAAE,MAAM,CAAA;IAEhB,MAAM,EAAE,GAAG,CAAA;IAEX,EAAE,EAAE,MAAM,CAAA;IAEV,WAAW,EAAE,MAAM,CAAA;IAEnB,MAAM,EAAE,OAAO,CAAA;IAEf,MAAM,EAAE,OAAO,CAAA;IAEf,aAAa,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,MAAM,WAAW,cAAc;IAC7B,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC,CAAA;IACjE,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC,CAAA;CACzC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"StakeTotals.d.ts","sourceRoot":"","sources":["../../../src/interfaces/StakeTotals.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,WAAW,UAAU;IACzB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,WAAW,GAAG,KAAK,CAAA;IACnD,IAAI,CAAC,EAAE,KAAK,GAAG,SAAS,GAAG,SAAS,CAAA;CACrC;AAED,MAAM,WAAW,oBAAoB;IAEnC,WAAW,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC,MAAM,EAAe,MAAM,CAA6B,CAAC,CAAA;IAGtG,UAAU,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC,MAAM,EAAe,MAAM,CAA6B,CAAC,CAAA;IAGrG,WAAW,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC,MAAM,EAAe,MAAM,CAA6B,CAAC,CAAA;IAGtG,WAAW,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC,MAAM,EAAe,MAAM,CAA6B,CAAC,CAAA;IAGtG,MAAM,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC,MAAM,EAAe,MAAM,CAA6B,CAAC,CAAA;CAClG"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"StepStake.d.ts","sourceRoot":"","sources":["../../../src/interfaces/StepStake.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,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,MAAM,WAAW,kBAAkB;IAEjC,SAAS,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,UAAU,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAA;IAGvE,mBAAmB,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,aAAa,KAAK,UAAU,CAAC,MAAM,CAAC,CAAA;CACnF"}
@@ -1,6 +0,0 @@
1
- import type { Promisable } from '@xylabs/promise';
2
- import type { TimeDomain } from '../payload/index.ts';
3
- export interface TimeSyncInterface {
4
- convertTime: (from: TimeDomain, to: TimeDomain) => Promisable<number>;
5
- }
6
- //# sourceMappingURL=TimeSync.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TimeSync.d.ts","sourceRoot":"","sources":["../../../src/interfaces/TimeSync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAErD,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,UAAU,KAAK,UAAU,CAAC,MAAM,CAAC,CAAA;CACtE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Transaction.d.ts","sourceRoot":"","sources":["../../../src/interfaces/Transaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAA;AAExE,MAAM,WAAW,oBAAoB;IACnC,8BAA8B,CAAC,SAAS,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,GAAG,UAAU,CAAC,yBAAyB,GAAG,IAAI,CAAC,CAAA;IACvH,gCAAgC,CAAC,WAAW,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,GAAG,UAAU,CAAC,yBAAyB,GAAG,IAAI,CAAC,CAAA;IAC7H,iBAAiB,CAAC,eAAe,EAAE,IAAI,GAAG,UAAU,CAAC,yBAAyB,GAAG,IAAI,CAAC,CAAA;CACvF"}