@xyo-network/xl1-protocol 1.12.66 → 1.12.67

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 (140) hide show
  1. package/dist/neutral/block/BlockBoundWitness.d.ts +1 -1
  2. package/dist/neutral/block/BlockBoundWitness.d.ts.map +1 -1
  3. package/dist/neutral/fields/ChainReference.d.ts +1 -1
  4. package/dist/neutral/fields/ChainReference.d.ts.map +1 -1
  5. package/dist/neutral/index.d.ts +1 -1
  6. package/dist/neutral/index.d.ts.map +1 -1
  7. package/dist/neutral/index.mjs.map +1 -1
  8. package/dist/neutral/interfaces/index.d.ts +1 -1
  9. package/dist/neutral/interfaces/index.d.ts.map +1 -1
  10. package/dist/neutral/interfaces/viewers/AccountBalance.d.ts.map +1 -0
  11. package/dist/neutral/interfaces/viewers/Block.d.ts.map +1 -0
  12. package/dist/neutral/interfaces/{view → viewers}/Chain.d.ts +1 -1
  13. package/dist/neutral/interfaces/viewers/Chain.d.ts.map +1 -0
  14. package/dist/neutral/interfaces/viewers/ChainContract.d.ts.map +1 -0
  15. package/dist/neutral/interfaces/{view → viewers}/Fork.d.ts +2 -2
  16. package/dist/neutral/interfaces/viewers/Fork.d.ts.map +1 -0
  17. package/dist/neutral/interfaces/viewers/NetworkStakeStepReward.d.ts +26 -0
  18. package/dist/neutral/interfaces/viewers/NetworkStakeStepReward.d.ts.map +1 -0
  19. package/dist/neutral/interfaces/viewers/NetworkStakeStepRewardViewer.d.ts +35 -0
  20. package/dist/neutral/interfaces/viewers/NetworkStakeStepRewardViewer.d.ts.map +1 -0
  21. package/dist/neutral/interfaces/viewers/Stake.d.ts +11 -0
  22. package/dist/neutral/interfaces/viewers/Stake.d.ts.map +1 -0
  23. package/dist/neutral/interfaces/viewers/StakeTotalsViewer.d.ts +12 -0
  24. package/dist/neutral/interfaces/viewers/StakeTotalsViewer.d.ts.map +1 -0
  25. package/dist/neutral/interfaces/{view/Stake.d.ts → viewers/StakeViewer.d.ts} +3 -11
  26. package/dist/neutral/interfaces/viewers/StakeViewer.d.ts.map +1 -0
  27. package/dist/neutral/interfaces/viewers/StepStake.d.ts +8 -0
  28. package/dist/neutral/interfaces/viewers/StepStake.d.ts.map +1 -0
  29. package/dist/neutral/interfaces/viewers/TimeSync.d.ts.map +1 -0
  30. package/dist/neutral/interfaces/viewers/Transaction.d.ts.map +1 -0
  31. package/dist/neutral/interfaces/viewers/TransferBalance.d.ts.map +1 -0
  32. package/dist/neutral/interfaces/{view → viewers}/index.d.ts +3 -2
  33. package/dist/neutral/interfaces/viewers/index.d.ts.map +1 -0
  34. package/dist/neutral/model/BlockRange.d.ts +2 -0
  35. package/dist/neutral/model/BlockRange.d.ts.map +1 -0
  36. package/dist/neutral/model/ChainId.d.ts +3 -0
  37. package/dist/neutral/model/ChainId.d.ts.map +1 -0
  38. package/dist/neutral/model/RewardShare.d.ts +2 -0
  39. package/dist/neutral/model/RewardShare.d.ts.map +1 -0
  40. package/dist/neutral/model/StakeShare.d.ts +2 -0
  41. package/dist/neutral/model/StakeShare.d.ts.map +1 -0
  42. package/dist/neutral/model/StepHash.d.ts +10 -0
  43. package/dist/neutral/model/StepHash.d.ts.map +1 -0
  44. package/dist/neutral/model/StepIdentity.d.ts +12 -0
  45. package/dist/neutral/model/StepIdentity.d.ts.map +1 -0
  46. package/dist/neutral/model/index.d.ts +6 -0
  47. package/dist/neutral/model/index.d.ts.map +1 -0
  48. package/dist/neutral/provider/XyoSigner.d.ts +1 -1
  49. package/dist/neutral/provider/XyoSigner.d.ts.map +1 -1
  50. package/dist/neutral/provider/XyoViewer.d.ts +2 -2
  51. package/dist/neutral/provider/XyoViewer.d.ts.map +1 -1
  52. package/dist/neutral/provider/XyoWallet.d.ts +1 -1
  53. package/dist/neutral/provider/XyoWallet.d.ts.map +1 -1
  54. package/dist/neutral/services/Chain/BaseChainService.d.ts +1 -1
  55. package/dist/neutral/services/Chain/BaseChainService.d.ts.map +1 -1
  56. package/dist/neutral/services/Chain/interfaces/ChainStakeViewer.d.ts +2 -2
  57. package/dist/neutral/services/Chain/interfaces/ChainStakeViewer.d.ts.map +1 -1
  58. package/dist/neutral/services/ChainIterator/ChainIteratorService.d.ts +1 -1
  59. package/dist/neutral/services/ChainIterator/ChainIteratorService.d.ts.map +1 -1
  60. package/dist/neutral/validation/block/BlockValidationFunction.d.ts +1 -1
  61. package/dist/neutral/validation/block/BlockValidationFunction.d.ts.map +1 -1
  62. package/dist/neutral/validation/block/HydratedBlockStateValidationFunction.d.ts +1 -1
  63. package/dist/neutral/validation/block/HydratedBlockStateValidationFunction.d.ts.map +1 -1
  64. package/dist/neutral/validation/block/HydratedBlockValidationFunction.d.ts +1 -1
  65. package/dist/neutral/validation/block/HydratedBlockValidationFunction.d.ts.map +1 -1
  66. package/dist/neutral/validation/block/error.d.ts +1 -1
  67. package/dist/neutral/validation/block/error.d.ts.map +1 -1
  68. package/dist/neutral/validation/transaction/HydratedTransactionStateValidationFunction.d.ts +1 -1
  69. package/dist/neutral/validation/transaction/HydratedTransactionStateValidationFunction.d.ts.map +1 -1
  70. package/dist/neutral/validation/transaction/HydratedTransactionValidationFunction.d.ts +1 -1
  71. package/dist/neutral/validation/transaction/HydratedTransactionValidationFunction.d.ts.map +1 -1
  72. package/package.json +1 -1
  73. package/src/block/BlockBoundWitness.ts +1 -1
  74. package/src/fields/ChainReference.ts +1 -1
  75. package/src/index.ts +1 -1
  76. package/src/interfaces/index.ts +1 -1
  77. package/src/interfaces/{view → viewers}/Chain.ts +1 -1
  78. package/src/interfaces/{view → viewers}/Fork.ts +2 -2
  79. package/src/interfaces/{view → viewers}/NetworkStakeStepReward.ts +13 -16
  80. package/src/interfaces/viewers/NetworkStakeStepRewardViewer.ts +70 -0
  81. package/src/interfaces/{view → viewers}/Stake.ts +0 -9
  82. package/src/interfaces/viewers/StakeTotalsViewer.ts +12 -0
  83. package/src/interfaces/viewers/StakeViewer.ts +13 -0
  84. package/src/interfaces/{view → viewers}/StepStake.ts +3 -3
  85. package/src/interfaces/{view → viewers}/index.ts +3 -2
  86. package/src/model/BlockRange.ts +1 -0
  87. package/src/model/ChainId.ts +3 -0
  88. package/src/model/RewardShare.ts +1 -0
  89. package/src/model/StakeShare.ts +1 -0
  90. package/src/model/StepHash.ts +10 -0
  91. package/src/model/StepIdentity.ts +12 -0
  92. package/src/model/index.ts +5 -0
  93. package/src/payload/elevatable/Bridge/spec/Bridge.test.ts +1 -1
  94. package/src/provider/XyoSigner.ts +1 -1
  95. package/src/provider/XyoViewer.ts +3 -3
  96. package/src/provider/XyoWallet.ts +1 -1
  97. package/src/services/Chain/BaseChainService.ts +1 -1
  98. package/src/services/Chain/interfaces/ChainStakeViewer.ts +2 -2
  99. package/src/services/ChainIterator/ChainIteratorService.ts +1 -1
  100. package/src/validation/block/BlockValidationFunction.ts +1 -1
  101. package/src/validation/block/HydratedBlockStateValidationFunction.ts +1 -1
  102. package/src/validation/block/HydratedBlockValidationFunction.ts +1 -1
  103. package/src/validation/block/error.ts +1 -1
  104. package/src/validation/transaction/HydratedTransactionStateValidationFunction.ts +1 -1
  105. package/src/validation/transaction/HydratedTransactionValidationFunction.ts +1 -1
  106. package/dist/neutral/interfaces/view/AccountBalance.d.ts.map +0 -1
  107. package/dist/neutral/interfaces/view/Block.d.ts.map +0 -1
  108. package/dist/neutral/interfaces/view/Chain.d.ts.map +0 -1
  109. package/dist/neutral/interfaces/view/ChainContract.d.ts.map +0 -1
  110. package/dist/neutral/interfaces/view/ChainStake.d.ts +0 -10
  111. package/dist/neutral/interfaces/view/ChainStake.d.ts.map +0 -1
  112. package/dist/neutral/interfaces/view/Fork.d.ts.map +0 -1
  113. package/dist/neutral/interfaces/view/NetworkStakeStepReward.d.ts +0 -29
  114. package/dist/neutral/interfaces/view/NetworkStakeStepReward.d.ts.map +0 -1
  115. package/dist/neutral/interfaces/view/Stake.d.ts.map +0 -1
  116. package/dist/neutral/interfaces/view/StakeTotals.d.ts +0 -16
  117. package/dist/neutral/interfaces/view/StakeTotals.d.ts.map +0 -1
  118. package/dist/neutral/interfaces/view/StepStake.d.ts +0 -8
  119. package/dist/neutral/interfaces/view/StepStake.d.ts.map +0 -1
  120. package/dist/neutral/interfaces/view/TimeSync.d.ts.map +0 -1
  121. package/dist/neutral/interfaces/view/Transaction.d.ts.map +0 -1
  122. package/dist/neutral/interfaces/view/TransferBalance.d.ts.map +0 -1
  123. package/dist/neutral/interfaces/view/index.d.ts.map +0 -1
  124. package/dist/neutral/model.d.ts +0 -9
  125. package/dist/neutral/model.d.ts.map +0 -1
  126. package/src/interfaces/view/ChainStake.ts +0 -9
  127. package/src/interfaces/view/StakeTotals.ts +0 -26
  128. package/src/model.ts +0 -15
  129. /package/dist/neutral/interfaces/{view → viewers}/AccountBalance.d.ts +0 -0
  130. /package/dist/neutral/interfaces/{view → viewers}/Block.d.ts +0 -0
  131. /package/dist/neutral/interfaces/{view → viewers}/ChainContract.d.ts +0 -0
  132. /package/dist/neutral/interfaces/{view → viewers}/TimeSync.d.ts +0 -0
  133. /package/dist/neutral/interfaces/{view → viewers}/Transaction.d.ts +0 -0
  134. /package/dist/neutral/interfaces/{view → viewers}/TransferBalance.d.ts +0 -0
  135. /package/src/interfaces/{view → viewers}/AccountBalance.ts +0 -0
  136. /package/src/interfaces/{view → viewers}/Block.ts +0 -0
  137. /package/src/interfaces/{view → viewers}/ChainContract.ts +0 -0
  138. /package/src/interfaces/{view → viewers}/TimeSync.ts +0 -0
  139. /package/src/interfaces/{view → viewers}/Transaction.ts +0 -0
  140. /package/src/interfaces/{view → viewers}/TransferBalance.ts +0 -0
@@ -0,0 +1,11 @@
1
+ import type { Address } from '@xylabs/hex';
2
+ export type Stake = {
3
+ addBlock: number;
4
+ amount: bigint;
5
+ id: number;
6
+ removeBlock: number;
7
+ staked: Address;
8
+ staker: Address;
9
+ withdrawBlock: number;
10
+ };
11
+ //# sourceMappingURL=Stake.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Stake.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/viewers/Stake.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,MAAM,KAAK,GAAG;IAElB,QAAQ,EAAE,MAAM,CAAA;IAEhB,MAAM,EAAE,MAAM,CAAA;IAEd,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"}
@@ -0,0 +1,12 @@
1
+ import type { Address } from '@xylabs/hex';
2
+ import type { Promisable } from '@xylabs/promise';
3
+ export interface StakeTotalsViewer {
4
+ active(): Promisable<bigint>;
5
+ activeByStaked(staked: Address): Promisable<bigint>;
6
+ activeByStaker(address: Address): Promisable<bigint>;
7
+ pending(): Promisable<bigint>;
8
+ pendingByStaker(staker: Address): Promisable<bigint>;
9
+ withdrawn(): Promisable<bigint>;
10
+ withdrawnByStaker(staker: Address): Promisable<bigint>;
11
+ }
12
+ //# sourceMappingURL=StakeTotalsViewer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StakeTotalsViewer.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/viewers/StakeTotalsViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,WAAW,iBAAiB;IAChC,MAAM,IAAI,UAAU,CAAC,MAAM,CAAC,CAAA;IAC5B,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IACnD,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IACpD,OAAO,IAAI,UAAU,CAAC,MAAM,CAAC,CAAA;IAC7B,eAAe,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IACpD,SAAS,IAAI,UAAU,CAAC,MAAM,CAAC,CAAA;IAC/B,iBAAiB,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;CACvD"}
@@ -1,19 +1,11 @@
1
1
  import type { Address } from '@xylabs/hex';
2
2
  import type { Promisable } from '@xylabs/promise';
3
- export type Stake = {
4
- addBlock: number;
5
- amount: bigint;
6
- id: number;
7
- removeBlock: number;
8
- staked: Address;
9
- staker: Address;
10
- withdrawBlock: number;
11
- };
12
- export interface StakeViewInterface {
3
+ import type { Stake } from './Stake.ts';
4
+ export interface StakeViewer {
13
5
  stakeById(id: number): Promisable<Stake>;
14
6
  stakeByStaker(staker: Address, slot: number): Promisable<Stake>;
15
7
  stakedByStaker(staker: Address): Promisable<Address[]>;
16
8
  stakesByStaked(staked: Address): Promisable<Stake[]>;
17
9
  stakesByStaker(staker: Address): Promisable<Stake[]>;
18
10
  }
19
- //# sourceMappingURL=Stake.d.ts.map
11
+ //# sourceMappingURL=StakeViewer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StakeViewer.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/viewers/StakeViewer.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,KAAK,EAAE,MAAM,YAAY,CAAA;AAEvC,MAAM,WAAW,WAAW;IAC1B,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC,CAAA;IACxC,aAAa,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC,CAAA;IAE/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"}
@@ -0,0 +1,8 @@
1
+ import type { Address } from '@xylabs/hex';
2
+ import type { Promisable } from '@xylabs/promise';
3
+ import type { StepIdentity } from '../../model/index.ts';
4
+ export interface StepStakeViewInterface {
5
+ stepStake: (step: StepIdentity) => Promisable<Record<Address, bigint>>;
6
+ stepStakeForAddress: (address: Address, step: StepIdentity) => Promisable<bigint>;
7
+ }
8
+ //# sourceMappingURL=StepStake.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StepStake.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/viewers/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,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAExD,MAAM,WAAW,sBAAsB;IAErC,SAAS,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,UAAU,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAA;IAGtE,mBAAmB,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,KAAK,UAAU,CAAC,MAAM,CAAC,CAAA;CAClF"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TimeSync.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/viewers/TimeSync.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,UAAU,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAErE,MAAM,WAAW,qBAAqB;IACpC,6CAA6C;IAC7C,WAAW,CAAC,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IAE3F,8CAA8C;IAC9C,WAAW,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;CAC9D;AAED,MAAM,WAAW,uBAAwB,SAAQ,qBAAqB;IACpE,8CAA8C;IAC9C,kBAAkB,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC,CAAC,CAAA;IAEzE,6EAA6E;IAC7E,kBAAkB,IAAI,UAAU,CAAC,WAAW,CAAC,CAAA;CAC9C"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Transaction.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/viewers/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 @@
1
+ {"version":3,"file":"TransferBalance.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/viewers/TransferBalance.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,wBAAwB,CAAA;AACtD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAEjD,MAAM,MAAM,0BAA0B,GAAG,CAAC,IAAI,EAAc,IAAI,EAAoB,QAAQ,CAAmC,CAAA;AAC/H,MAAM,MAAM,YAAY,GAAG,CAAC,UAAU,CAAC,OAAO,EAAE,QAAQ,CAAA,OAAO,CAAC,CAAA;AAEhE,MAAM,WAAW,6BAA6B;IAC5C,gBAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAA;IACpG,yBAAyB,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,0BAA0B,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;IAClI,oBAAoB,CAAC,OAAO,EAAE,YAAY,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAA;IAC7G,6BAA6B,CAAC,OAAO,EAAE,YAAY,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,0BAA0B,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;CAC5I;AAED,MAAM,WAAW,4BAA4B;IAC3C,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,CAAA;IACtD,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,0BAA0B,EAAE,CAAC,CAAA;IAClF,mBAAmB,CAAC,OAAO,EAAE,YAAY,GAAG,UAAU,CAAC,OAAO,CAAC,CAAA;IAC/D,0BAA0B,CAAC,OAAO,EAAE,YAAY,GAAG,UAAU,CAAC,0BAA0B,EAAE,CAAC,CAAA;CAC5F"}
@@ -2,11 +2,12 @@ export * from './AccountBalance.ts';
2
2
  export * from './Block.ts';
3
3
  export * from './Chain.ts';
4
4
  export * from './ChainContract.ts';
5
- export * from './ChainStake.ts';
6
5
  export * from './Fork.ts';
7
6
  export * from './NetworkStakeStepReward.ts';
7
+ export * from './NetworkStakeStepRewardViewer.ts';
8
8
  export * from './Stake.ts';
9
- export * from './StakeTotals.ts';
9
+ export * from './StakeTotalsViewer.ts';
10
+ export * from './StakeViewer.ts';
10
11
  export * from './StepStake.ts';
11
12
  export * from './TimeSync.ts';
12
13
  export * from './Transaction.ts';
@@ -0,0 +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,mCAAmC,CAAA;AACjD,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"}
@@ -0,0 +1,2 @@
1
+ export type BlockRange = [number, number];
2
+ //# sourceMappingURL=BlockRange.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BlockRange.d.ts","sourceRoot":"","sources":["../../../src/model/BlockRange.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { Address, Hex } from '@xylabs/hex';
2
+ export type ChainId = Address | Hex;
3
+ //# sourceMappingURL=ChainId.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChainId.d.ts","sourceRoot":"","sources":["../../../src/model/ChainId.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAA;AAE/C,MAAM,MAAM,OAAO,GAAG,OAAO,GAAG,GAAG,CAAA"}
@@ -0,0 +1,2 @@
1
+ export type RewardShare = [bigint, bigint];
2
+ //# sourceMappingURL=RewardShare.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RewardShare.d.ts","sourceRoot":"","sources":["../../../src/model/RewardShare.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export type StakeShare = [bigint, bigint];
2
+ //# sourceMappingURL=StakeShare.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StakeShare.d.ts","sourceRoot":"","sources":["../../../src/model/StakeShare.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA"}
@@ -0,0 +1,10 @@
1
+ import type { Hash } from '@xylabs/hex';
2
+ import type { Brand } from '@xylabs/typeof';
3
+ export interface StepHash {
4
+ block: Hash;
5
+ step: number;
6
+ }
7
+ export type StepHashString = Brand<string, {
8
+ readonly __stepHashString: true;
9
+ }>;
10
+ //# sourceMappingURL=StepHash.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StepHash.d.ts","sourceRoot":"","sources":["../../../src/model/StepHash.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE3C,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,IAAI,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;CACb;AAGD,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,MAAM,EAAE;IAAE,QAAQ,CAAC,gBAAgB,EAAE,IAAI,CAAA;CAAE,CAAC,CAAA"}
@@ -0,0 +1,12 @@
1
+ import type { Brand } from '@xylabs/typeof';
2
+ export interface StepIdentity {
3
+ block: number;
4
+ step: number;
5
+ }
6
+ /** @deprecated use StepIdentity instead */
7
+ export interface StepContext extends StepIdentity {
8
+ }
9
+ export type StepIdentityString = Brand<string, {
10
+ readonly __stepIdentityString: true;
11
+ }>;
12
+ //# sourceMappingURL=StepIdentity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StepIdentity.d.ts","sourceRoot":"","sources":["../../../src/model/StepIdentity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE3C,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;CACb;AAED,2CAA2C;AAC3C,MAAM,WAAW,WAAY,SAAQ,YAAY;CAAG;AAGpD,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,MAAM,EAAE;IAAE,QAAQ,CAAC,oBAAoB,EAAE,IAAI,CAAA;CAAE,CAAC,CAAA"}
@@ -0,0 +1,6 @@
1
+ export * from './BlockRange.ts';
2
+ export * from './ChainId.ts';
3
+ export * from './RewardShare.ts';
4
+ export * from './StepHash.ts';
5
+ export * from './StepIdentity.ts';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/model/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,eAAe,CAAA;AAC7B,cAAc,mBAAmB,CAAA"}
@@ -3,7 +3,7 @@ import type { Promisable } from '@xylabs/promise';
3
3
  import type { Signed, UnsignedBoundWitness } from '@xyo-network/boundwitness-model';
4
4
  import type { Payload } from '@xyo-network/payload-model';
5
5
  import type { AllowedBlockPayload } from '../block/index.ts';
6
- import type { ChainId } from '../model.ts';
6
+ import type { ChainId } from '../model/index.ts';
7
7
  import type { TransactionBoundWitness, TransactionFeesBigInt } from '../transaction/index.ts';
8
8
  export interface XyoSigner {
9
9
  address(): Promisable<Address>;
@@ -1 +1 @@
1
- {"version":3,"file":"XyoSigner.d.ts","sourceRoot":"","sources":["../../../src/provider/XyoSigner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAA;AACnF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAE7F,MAAM,WAAW,SAAS;IACxB,OAAO,IAAI,UAAU,CAAC,OAAO,CAAC,CAAA;IAC9B,8CAA8C;IAC9C,uBAAuB,CACrB,KAAK,EAAE,OAAO,EACd,gBAAgB,EAAE,mBAAmB,EAAE,EACvC,kBAAkB,EAAE,OAAO,EAAE,EAC7B,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,qBAAqB,EAC3B,IAAI,CAAC,EAAE,OAAO,GACb,UAAU,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC,CAAA;IAK9C,eAAe,CAAC,EAAE,EAAE,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,EAAE,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC,CAAC,MAAM,CAAC,uBAAuB,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,CAAA;CAC1I"}
1
+ {"version":3,"file":"XyoSigner.d.ts","sourceRoot":"","sources":["../../../src/provider/XyoSigner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAA;AACnF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,KAAK,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAE7F,MAAM,WAAW,SAAS;IACxB,OAAO,IAAI,UAAU,CAAC,OAAO,CAAC,CAAA;IAC9B,8CAA8C;IAC9C,uBAAuB,CACrB,KAAK,EAAE,OAAO,EACd,gBAAgB,EAAE,mBAAmB,EAAE,EACvC,kBAAkB,EAAE,OAAO,EAAE,EAC7B,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,qBAAqB,EAC3B,IAAI,CAAC,EAAE,OAAO,GACb,UAAU,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC,CAAA;IAK9C,eAAe,CAAC,EAAE,EAAE,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,EAAE,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC,CAAC,MAAM,CAAC,uBAAuB,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,CAAA;CAC1I"}
@@ -1,4 +1,4 @@
1
- import type { AccountBalanceViewInterface, BlockViewInterface, ChainViewInterface, ForkViewInterface, NetworkStakeStepRewardViewInterface, StakeViewInterface, TransactionViewInterface, TransferBalanceViewInterface } from '../interfaces/index.ts';
2
- export interface XyoViewer extends AccountBalanceViewInterface, TransferBalanceViewInterface, NetworkStakeStepRewardViewInterface, ChainViewInterface, BlockViewInterface, TransactionViewInterface, StakeViewInterface, ForkViewInterface {
1
+ import type { AccountBalanceViewInterface, BlockViewInterface, ChainViewInterface, ForkViewer, NetworkStakeStepRewardViewInterface, StakeViewer, TransactionViewInterface, TransferBalanceViewInterface } from '../interfaces/index.ts';
2
+ export interface XyoViewer extends AccountBalanceViewInterface, TransferBalanceViewInterface, NetworkStakeStepRewardViewInterface, ChainViewInterface, BlockViewInterface, TransactionViewInterface, StakeViewer, ForkViewer {
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,2BAA2B,EAAE,kBAAkB,EAAE,kBAAkB,EACnE,iBAAiB,EACjB,mCAAmC,EACnC,kBAAkB,EAClB,wBAAwB,EAAE,4BAA4B,EACvD,MAAM,wBAAwB,CAAA;AAE/B,MAAM,WAAW,SAAU,SAAQ,2BAA2B,EAAE,4BAA4B,EAAE,mCAAmC,EAC/H,kBAAkB,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,iBAAiB;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,UAAU,EACV,mCAAmC,EACnC,WAAW,EACX,wBAAwB,EAAE,4BAA4B,EACvD,MAAM,wBAAwB,CAAA;AAE/B,MAAM,WAAW,SAAU,SAAQ,2BAA2B,EAAE,4BAA4B,EAAE,mCAAmC,EAC/H,kBAAkB,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,WAAW,EAAE,UAAU;CAAG"}
@@ -1,6 +1,6 @@
1
1
  import type { Address } from '@xylabs/hex';
2
2
  import type { Promisable } from '@xylabs/promise';
3
- import type { ChainId } from '../model.ts';
3
+ import type { ChainId } from '../model/index.ts';
4
4
  /** @deprecated - use XyoClient instead */
5
5
  export interface XyoWallet {
6
6
  accounts(): Promisable<Address[]>;
@@ -1 +1 @@
1
- {"version":3,"file":"XyoWallet.d.ts","sourceRoot":"","sources":["../../../src/provider/XyoWallet.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,aAAa,CAAA;AAE1C,2CAA2C;AAC3C,MAAM,WAAW,SAAS;IACxB,QAAQ,IAAI,UAAU,CAAC,OAAO,EAAE,CAAC,CAAA;IACjC,QAAQ,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IAC3D,KAAK,IAAI,UAAU,CAAC,OAAO,CAAC,CAAA;IAC5B,MAAM,IAAI,UAAU,CAAC,MAAM,CAAC,CAAA;IAC5B,WAAW,IAAI,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;IACjD,kBAAkB,CAAC,WAAW,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IAC3D,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IAC1D,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,UAAU,CAAC,IAAI,CAAC,CAAA;CAC9C"}
1
+ {"version":3,"file":"XyoWallet.d.ts","sourceRoot":"","sources":["../../../src/provider/XyoWallet.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,mBAAmB,CAAA;AAEhD,2CAA2C;AAC3C,MAAM,WAAW,SAAS;IACxB,QAAQ,IAAI,UAAU,CAAC,OAAO,EAAE,CAAC,CAAA;IACjC,QAAQ,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IAC3D,KAAK,IAAI,UAAU,CAAC,OAAO,CAAC,CAAA;IAC5B,MAAM,IAAI,UAAU,CAAC,MAAM,CAAC,CAAA;IAC5B,WAAW,IAAI,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;IACjD,kBAAkB,CAAC,WAAW,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IAC3D,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IAC1D,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,UAAU,CAAC,IAAI,CAAC,CAAA;CAC9C"}
@@ -1,4 +1,4 @@
1
- import type { ChainId } from '../../model.ts';
1
+ import type { ChainId } from '../../model/index.ts';
2
2
  import type { ServiceInterface } from '../Service.ts';
3
3
  export interface BaseChainService extends ServiceInterface {
4
4
  chainId: ChainId;
@@ -1 +1 @@
1
- {"version":3,"file":"BaseChainService.d.ts","sourceRoot":"","sources":["../../../../src/services/Chain/BaseChainService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAErD,MAAM,WAAW,gBAAiB,SAAQ,gBAAgB;IACxD,OAAO,EAAE,OAAO,CAAA;CACjB"}
1
+ {"version":3,"file":"BaseChainService.d.ts","sourceRoot":"","sources":["../../../../src/services/Chain/BaseChainService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAErD,MAAM,WAAW,gBAAiB,SAAQ,gBAAgB;IACxD,OAAO,EAAE,OAAO,CAAA;CACjB"}
@@ -1,5 +1,5 @@
1
- import type { ChainStakeViewInterface } from '../../../interfaces/index.ts';
1
+ import type { StakeTotalsViewer } from '../../../interfaces/index.ts';
2
2
  import type { ChainContractViewer } from './ChainContractViewer.ts';
3
- export interface ChainStakeViewer extends ChainContractViewer, ChainStakeViewInterface {
3
+ export interface ChainStakeViewer extends ChainContractViewer, StakeTotalsViewer {
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,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AAC3E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAEnE,MAAM,WAAW,gBAAiB,SAAQ,mBAAmB,EAAE,uBAAuB;CAErF"}
1
+ {"version":3,"file":"ChainStakeViewer.d.ts","sourceRoot":"","sources":["../../../../../src/services/Chain/interfaces/ChainStakeViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAEnE,MAAM,WAAW,gBAAiB,SAAQ,mBAAmB,EAAE,iBAAiB;CAE/E"}
@@ -3,7 +3,7 @@ import type { BaseEmitter } from '@xylabs/events';
3
3
  import type { Hash } from '@xylabs/hex';
4
4
  import type { WithStorageMeta } from '@xyo-network/payload-model';
5
5
  import type { BlockBoundWitness } from '../../block/index.ts';
6
- import type { ChainId } from '../../model.ts';
6
+ import type { ChainId } from '../../model/index.ts';
7
7
  import type { IterableRepository, ReadRepository } from '../../repository/index.ts';
8
8
  import type { ChainIteratorServiceEventData } from './ChainIteratorServiceEventData.ts';
9
9
  export interface ChainIteratorService<TKey> extends ReadRepository<TKey, BlockBoundWitness | undefined>, IterableRepository<TKey, WithStorageMeta<BlockBoundWitness> | undefined> {
@@ -1 +1 @@
1
- {"version":3,"file":"ChainIteratorService.d.ts","sourceRoot":"","sources":["../../../../src/services/ChainIterator/ChainIteratorService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAC7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AACnF,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAA;AAEvF,MAAM,WAAW,oBAAoB,CAAC,IAAI,CACxC,SAAQ,cAAc,CAAC,IAAI,EAAE,iBAAiB,GAAG,SAAS,CAAC,EAAE,kBAAkB,CAAC,IAAI,EAAE,eAAe,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC;IACrI,OAAO,EAAE,OAAO,CAAA;IAChB,IAAI,IAAI,OAAO,CAAC,eAAe,CAAC,iBAAiB,CAAC,CAAC,CAAA;IACnD,QAAQ,CAAC,MAAM,CAAC,EAAE,IAAI,GAAG,SAAS,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,iBAAiB,CAAC,EAAE,CAAC,CAAA;IAClG,UAAU,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACnD;AAKD,MAAM,WAAW,4BAA4B,CAAC,IAAI,CAAE,SAAQ,oBAAoB,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC,UAAU,EAAE,6BAA6B,CAAC;CAAG;AAKjJ,MAAM,WAAW,+BAAgC,SAAQ,oBAAoB,CAAC,MAAM,CAAC;CAAG;AAKxF,MAAM,WAAW,uCAAwC,SAAQ,4BAA4B,CAAC,MAAM,CAAC;CAAG;AAKxG,MAAM,WAAW,wBAAyB,SAAQ,oBAAoB,CAAC,IAAI,CAAC;CAAG;AAK/E,MAAM,WAAW,gCAAiC,SAAQ,4BAA4B,CAAC,IAAI,CAAC;CAAG"}
1
+ {"version":3,"file":"ChainIteratorService.d.ts","sourceRoot":"","sources":["../../../../src/services/ChainIterator/ChainIteratorService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAC7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AACnF,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAA;AAEvF,MAAM,WAAW,oBAAoB,CAAC,IAAI,CACxC,SAAQ,cAAc,CAAC,IAAI,EAAE,iBAAiB,GAAG,SAAS,CAAC,EAAE,kBAAkB,CAAC,IAAI,EAAE,eAAe,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC;IACrI,OAAO,EAAE,OAAO,CAAA;IAChB,IAAI,IAAI,OAAO,CAAC,eAAe,CAAC,iBAAiB,CAAC,CAAC,CAAA;IACnD,QAAQ,CAAC,MAAM,CAAC,EAAE,IAAI,GAAG,SAAS,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,iBAAiB,CAAC,EAAE,CAAC,CAAA;IAClG,UAAU,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACnD;AAKD,MAAM,WAAW,4BAA4B,CAAC,IAAI,CAAE,SAAQ,oBAAoB,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC,UAAU,EAAE,6BAA6B,CAAC;CAAG;AAKjJ,MAAM,WAAW,+BAAgC,SAAQ,oBAAoB,CAAC,MAAM,CAAC;CAAG;AAKxF,MAAM,WAAW,uCAAwC,SAAQ,4BAA4B,CAAC,MAAM,CAAC;CAAG;AAKxG,MAAM,WAAW,wBAAyB,SAAQ,oBAAoB,CAAC,IAAI,CAAC;CAAG;AAK/E,MAAM,WAAW,gCAAiC,SAAQ,4BAA4B,CAAC,IAAI,CAAC;CAAG"}
@@ -1,6 +1,6 @@
1
1
  import type { Promisable } from '@xylabs/promise';
2
2
  import type { BlockBoundWitness } from '../../block/index.ts';
3
- import type { ChainId } from '../../model.ts';
3
+ import type { ChainId } from '../../model/index.ts';
4
4
  import type { BlockValidationError } from './error.ts';
5
5
  export type BlockValidatorFunction = (block: BlockBoundWitness, chainId?: ChainId) => Promisable<BlockValidationError[]>;
6
6
  //# sourceMappingURL=BlockValidationFunction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BlockValidationFunction.d.ts","sourceRoot":"","sources":["../../../../src/validation/block/BlockValidationFunction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAC7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAEtD,MAAM,MAAM,sBAAsB,GAAG,CACnC,KAAK,EAAE,iBAAiB,EACxB,OAAO,CAAC,EAAE,OAAO,KACd,UAAU,CAAC,oBAAoB,EAAE,CAAC,CAAA"}
1
+ {"version":3,"file":"BlockValidationFunction.d.ts","sourceRoot":"","sources":["../../../../src/validation/block/BlockValidationFunction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAC7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAEtD,MAAM,MAAM,sBAAsB,GAAG,CACnC,KAAK,EAAE,iBAAiB,EACxB,OAAO,CAAC,EAAE,OAAO,KACd,UAAU,CAAC,oBAAoB,EAAE,CAAC,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import type { Promisable } from '@xylabs/promise';
2
2
  import type { HydratedBlock } from '../../block/index.ts';
3
- import type { ChainId } from '../../model.ts';
3
+ import type { ChainId } from '../../model/index.ts';
4
4
  import type { AccountBalanceService, AccountBalanceServiceV2 } from '../../services/index.ts';
5
5
  import type { HydratedBlockStateValidationError } from './error.ts';
6
6
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"HydratedBlockStateValidationFunction.d.ts","sourceRoot":"","sources":["../../../../src/validation/block/HydratedBlockStateValidationFunction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,KAAK,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAA;AAC7F,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,YAAY,CAAA;AAEnE;;;;;;GAMG;AACH,MAAM,MAAM,oCAAoC,GAAG,CACjD,aAAa,EAAE,aAAa,EAC5B,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE;IAAE,cAAc,EAAE,qBAAqB,CAAA;CAAE,KAChD,UAAU,CAAC,iCAAiC,EAAE,CAAC,CAAA;AAEpD,MAAM,MAAM,sCAAsC,GAAG,CACnD,aAAa,EAAE,aAAa,EAC5B,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE;IAAE,cAAc,EAAE,uBAAuB,CAAA;CAAE,KAClD,UAAU,CAAC,iCAAiC,EAAE,CAAC,CAAA"}
1
+ {"version":3,"file":"HydratedBlockStateValidationFunction.d.ts","sourceRoot":"","sources":["../../../../src/validation/block/HydratedBlockStateValidationFunction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAA;AAC7F,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,YAAY,CAAA;AAEnE;;;;;;GAMG;AACH,MAAM,MAAM,oCAAoC,GAAG,CACjD,aAAa,EAAE,aAAa,EAC5B,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE;IAAE,cAAc,EAAE,qBAAqB,CAAA;CAAE,KAChD,UAAU,CAAC,iCAAiC,EAAE,CAAC,CAAA;AAEpD,MAAM,MAAM,sCAAsC,GAAG,CACnD,aAAa,EAAE,aAAa,EAC5B,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE;IAAE,cAAc,EAAE,uBAAuB,CAAA;CAAE,KAClD,UAAU,CAAC,iCAAiC,EAAE,CAAC,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import type { Promisable } from '@xylabs/promise';
2
2
  import type { HydratedBlock } from '../../block/index.ts';
3
- import type { ChainId } from '../../model.ts';
3
+ import type { ChainId } from '../../model/index.ts';
4
4
  import type { HydratedBlockValidationError } from './error.ts';
5
5
  /**
6
6
  * A function that validates a hydrated block.
@@ -1 +1 @@
1
- {"version":3,"file":"HydratedBlockValidationFunction.d.ts","sourceRoot":"","sources":["../../../../src/validation/block/HydratedBlockValidationFunction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAA;AAE9D;;;;;GAKG;AACH,MAAM,MAAM,+BAA+B,GAAG,CAC5C,aAAa,EAAE,aAAa,EAC5B,OAAO,CAAC,EAAE,OAAO,KACd,UAAU,CAAC,4BAA4B,EAAE,CAAC,CAAA"}
1
+ {"version":3,"file":"HydratedBlockValidationFunction.d.ts","sourceRoot":"","sources":["../../../../src/validation/block/HydratedBlockValidationFunction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAA;AAE9D;;;;;GAKG;AACH,MAAM,MAAM,+BAA+B,GAAG,CAC5C,aAAa,EAAE,aAAa,EAC5B,OAAO,CAAC,EAAE,OAAO,KACd,UAAU,CAAC,4BAA4B,EAAE,CAAC,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import type { Hash } from '@xylabs/hex';
2
2
  import { type BlockBoundWitness, type HydratedBlock } from '../../block/index.ts';
3
- import type { ChainId } from '../../model.ts';
3
+ import type { ChainId } from '../../model/index.ts';
4
4
  import { ValidationError } from '../error.ts';
5
5
  export declare class BlockValidationError extends ValidationError<BlockBoundWitness> {
6
6
  }
@@ -1 +1 @@
1
- {"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../../src/validation/block/error.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACjF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAqB,eAAe,EAAE,MAAM,aAAa,CAAA;AAEhE,qBAAa,oBAAqB,SAAQ,eAAe,CAAC,iBAAiB,CAAC;CAAG;AAE/E,eAAO,MAAM,sBAAsB,GACjC,OAAO,OAAO,KACb,KAAK,IAAI,oBAKX,CAAA;AAED,qBAAa,4BAA6B,SAAQ,eAAe,CAAC,aAAa,CAAC;CAAG;AAEnF,eAAO,MAAM,8BAA8B,GACzC,OAAO,OAAO,KACb,KAAK,IAAI,4BAKX,CAAA;AAED,qBAAa,iCAAkC,SAAQ,eAAe,CAAC,aAAa,CAAC;IACnF,OAAO,EAAE,OAAO,CAAA;gBACJ,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO;CAIlG;AAED,eAAO,MAAM,mCAAmC,GAC9C,OAAO,OAAO,KACb,KAAK,IAAI,iCAKX,CAAA"}
1
+ {"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../../src/validation/block/error.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACjF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAqB,eAAe,EAAE,MAAM,aAAa,CAAA;AAEhE,qBAAa,oBAAqB,SAAQ,eAAe,CAAC,iBAAiB,CAAC;CAAG;AAE/E,eAAO,MAAM,sBAAsB,GACjC,OAAO,OAAO,KACb,KAAK,IAAI,oBAKX,CAAA;AAED,qBAAa,4BAA6B,SAAQ,eAAe,CAAC,aAAa,CAAC;CAAG;AAEnF,eAAO,MAAM,8BAA8B,GACzC,OAAO,OAAO,KACb,KAAK,IAAI,4BAKX,CAAA;AAED,qBAAa,iCAAkC,SAAQ,eAAe,CAAC,aAAa,CAAC;IACnF,OAAO,EAAE,OAAO,CAAA;gBACJ,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO;CAIlG;AAED,eAAO,MAAM,mCAAmC,GAC9C,OAAO,OAAO,KACb,KAAK,IAAI,iCAKX,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import type { Promisable } from '@xylabs/promise';
2
2
  import type { ReadArchivist } from '@xyo-network/archivist-model';
3
- import type { ChainId } from '../../model.ts';
3
+ import type { ChainId } from '../../model/index.ts';
4
4
  import type { HydratedTransactionWithStorageMeta, TransactionBoundWitness } from '../../transaction/index.ts';
5
5
  import type { HydratedTransactionValidationError } from './error.ts';
6
6
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"HydratedTransactionStateValidationFunction.d.ts","sourceRoot":"","sources":["../../../../src/validation/transaction/HydratedTransactionStateValidationFunction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AAEjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,KAAK,EAAE,kCAAkC,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAA;AAC7G,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,YAAY,CAAA;AAEpE;;;;;;GAMG;AACH,MAAM,MAAM,0CAA0C,CAAC,CAAC,SAAS,uBAAuB,GAAG,uBAAuB,IAAI,CACpH,mBAAmB,EAAE,kCAAkC,CAAC,CAAC,CAAC,EAC1D,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,aAAa,KACrB,UAAU,CAAC,kCAAkC,EAAE,CAAC,CAAA"}
1
+ {"version":3,"file":"HydratedTransactionStateValidationFunction.d.ts","sourceRoot":"","sources":["../../../../src/validation/transaction/HydratedTransactionStateValidationFunction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AAEjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EAAE,kCAAkC,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAA;AAC7G,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,YAAY,CAAA;AAEpE;;;;;;GAMG;AACH,MAAM,MAAM,0CAA0C,CAAC,CAAC,SAAS,uBAAuB,GAAG,uBAAuB,IAAI,CACpH,mBAAmB,EAAE,kCAAkC,CAAC,CAAC,CAAC,EAC1D,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,aAAa,KACrB,UAAU,CAAC,kCAAkC,EAAE,CAAC,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import type { Promisable } from '@xylabs/promise';
2
- import type { ChainId } from '../../model.ts';
2
+ import type { ChainId } from '../../model/index.ts';
3
3
  import type { HydratedTransactionWithStorageMeta, TransactionBoundWitness } from '../../transaction/index.ts';
4
4
  import type { HydratedTransactionValidationError } from './error.ts';
5
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"HydratedTransactionValidationFunction.d.ts","sourceRoot":"","sources":["../../../../src/validation/transaction/HydratedTransactionValidationFunction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,KAAK,EAAE,kCAAkC,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAA;AAC7G,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,YAAY,CAAA;AAEpE;;;;;GAKG;AACH,MAAM,MAAM,qCAAqC,CAAC,CAAC,SAAS,uBAAuB,GAAG,uBAAuB,IAAI,CAC/G,mBAAmB,EAAE,kCAAkC,CAAC,CAAC,CAAC,EAC1D,OAAO,CAAC,EAAE,OAAO,KACd,UAAU,CAAC,kCAAkC,EAAE,CAAC,CAAA"}
1
+ {"version":3,"file":"HydratedTransactionValidationFunction.d.ts","sourceRoot":"","sources":["../../../../src/validation/transaction/HydratedTransactionValidationFunction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EAAE,kCAAkC,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAA;AAC7G,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,YAAY,CAAA;AAEpE;;;;;GAKG;AACH,MAAM,MAAM,qCAAqC,CAAC,CAAC,SAAS,uBAAuB,GAAG,uBAAuB,IAAI,CAC/G,mBAAmB,EAAE,kCAAkC,CAAC,CAAC,CAAC,EAC1D,OAAO,CAAC,EAAE,OAAO,KACd,UAAU,CAAC,kCAAkC,EAAE,CAAC,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.66",
4
+ "version": "1.12.67",
5
5
  "description": "XYO Layer One Protocol",
6
6
  "homepage": "https://xylabs.com",
7
7
  "bugs": {
@@ -6,7 +6,7 @@ import { isBoundWitness, isSigned } from '@xyo-network/boundwitness-model'
6
6
  import type { WithHashStorageMeta, WithStorageMeta } from '@xyo-network/payload-model'
7
7
  import { isHashStorageMeta, isStorageMeta } from '@xyo-network/payload-model'
8
8
 
9
- import type { ChainId } from '../model.ts'
9
+ import type { ChainId } from '../model/index.ts'
10
10
 
11
11
  export interface BlockBoundWitnessMeta {
12
12
  $epoch: number
@@ -1,4 +1,4 @@
1
- import type { ChainId } from '../model.ts'
1
+ import type { ChainId } from '../model/index.ts'
2
2
 
3
3
  /**
4
4
  * Required info for a chain reference
package/src/index.ts CHANGED
@@ -5,7 +5,7 @@ export * from './constants/index.ts'
5
5
  export * from './fields/index.ts'
6
6
  export * from './Initializable.ts'
7
7
  export * from './interfaces/index.ts'
8
- export * from './model.ts'
8
+ export * from './model/index.ts'
9
9
  export * from './network/index.ts'
10
10
  export * from './OpenTelemetryProviders.ts'
11
11
  export * from './payload/index.ts'
@@ -1 +1 @@
1
- export * from './view/index.ts'
1
+ export * from './viewers/index.ts'
@@ -1,6 +1,6 @@
1
1
  import type { Promisable } from '@xylabs/promise'
2
2
 
3
- import type { ChainId } from '../../model.ts'
3
+ import type { ChainId } from '../../model/index.ts'
4
4
 
5
5
  export interface ChainViewInterface {
6
6
  chainId(): Promisable<ChainId>
@@ -1,10 +1,10 @@
1
1
  import type { Promisable } from '@xylabs/promise'
2
2
 
3
- import type { ChainId } from '../../model.ts'
3
+ import type { ChainId } from '../../model/index.ts'
4
4
 
5
5
  export type ForkHistory = Record<number, ChainId>
6
6
 
7
- export interface ForkViewInterface {
7
+ export interface ForkViewer {
8
8
  chainIdAtBlock(blockNumber: number): Promisable<ChainId | undefined>
9
9
  forkHistory(): Promisable<ForkHistory>
10
10
  }
@@ -1,40 +1,37 @@
1
1
  import type { Address } from '@xylabs/hex'
2
2
  import type { Promisable } from '@xylabs/promise'
3
3
 
4
- export interface StepContext {
5
- block: number
6
- step: number
7
- }
4
+ import type { StepIdentity } from '../../model/index.ts'
8
5
 
9
6
  export interface NetworkStakeStepAddressRewardViewInterface {
10
7
  // the step rewards for a specific network stakers for all of history
11
8
  networkStakeStepRewardAddressHistory(address: Address): Promisable<Record<Address, bigint>>
12
9
 
13
10
  // the step rewards for a specific network stakers for a given step and block
14
- networkStakeStepRewardAddressReward(context: StepContext, address: Address): Promisable<Record<Address, bigint>>
11
+ networkStakeStepRewardAddressReward(context: StepIdentity, address: Address): Promisable<Record<Address, bigint>>
15
12
 
16
13
  // the shares for a specific network staker for a given step and block
17
- networkStakeStepRewardAddressShare(context: StepContext, address: Address): Promisable<[/* address shares */bigint, /* total shares */bigint]>
14
+ networkStakeStepRewardAddressShare(context: StepIdentity, address: Address): Promisable<[/* address shares */bigint, /* total shares */bigint]>
18
15
 
19
16
  // estimate the current reward weight for a given address at a given step
20
- networkStakeStepRewardWeightForAddress(context: StepContext, address: Address): Promisable<bigint>
17
+ networkStakeStepRewardWeightForAddress(context: StepIdentity, address: Address): Promisable<bigint>
21
18
  }
22
19
 
23
20
  export interface NetworkStakeStepPoolRewardViewInterface {
24
21
 
25
22
  // all the step rewards for all the network stakers for a given step and block
26
- networkStakeStepRewardPoolRewards(context: StepContext): Promisable<Record<Address, bigint>>
23
+ networkStakeStepRewardPoolRewards(context: StepIdentity): Promisable<Record<Address, bigint>>
27
24
 
28
25
  // all the shares for all the network stakers for a given step and block
29
- networkStakeStepRewardPoolShares(context: StepContext): Promisable<Record<Address, bigint>>
26
+ networkStakeStepRewardPoolShares(context: StepIdentity): Promisable<Record<Address, bigint>>
30
27
  }
31
28
 
32
29
  export interface NetworkStakeStepRewardPositionViewInterface {
33
30
  // estimate the current weight for a given position at a given step
34
- networkStakeStepRewardPositionWeight(context: StepContext, position: number): Promisable<bigint>
31
+ networkStakeStepRewardPositionWeight(context: StepIdentity, position: number): Promisable<bigint>
35
32
 
36
33
  // estimate the potential loss for removing a given position at a given step
37
- networkStakeStepRewardPotentialPositionLoss(context: StepContext, position: number): Promisable<bigint>
34
+ networkStakeStepRewardPotentialPositionLoss(context: StepIdentity, position: number): Promisable<bigint>
38
35
  }
39
36
 
40
37
  export interface NetworkStakeStepRewardViewInterface extends
@@ -45,16 +42,16 @@ export interface NetworkStakeStepRewardViewInterface extends
45
42
  networkStakeStepRewardClaimedByAddress(address: Address): Promisable<bigint>
46
43
 
47
44
  // estimate the total possible block rewards for a given step
48
- networkStakeStepRewardForStep(context: StepContext): Promisable<bigint>
45
+ networkStakeStepRewardForStep(context: StepIdentity): Promisable<bigint>
49
46
 
50
- // the claimed & total rewards for a given step and block for a given position
51
- networkStakeStepRewardForStepForPosition(context: StepContext, position: number): Promisable<[bigint, bigint]>
47
+ // the share & total rewards for a given step and block for a given position
48
+ networkStakeStepRewardForStepForPosition(context: StepIdentity, position: number): Promisable<[bigint, bigint]>
52
49
 
53
50
  // the predictable random number for a given step and block
54
- networkStakeStepRewardRandomizer(context: StepContext): Promisable<bigint>
51
+ networkStakeStepRewardRandomizer(context: StepIdentity): Promisable<bigint>
55
52
 
56
53
  // the total number of stakers for a given step and block
57
- networkStakeStepRewardStakerCount(context: StepContext): Promisable<number>
54
+ networkStakeStepRewardStakerCount(context: StepIdentity): Promisable<number>
58
55
 
59
56
  networkStakeStepRewardUnclaimedByAddress(address: Address): Promisable<bigint>
60
57
  }
@@ -0,0 +1,70 @@
1
+ import type { Address } from '@xylabs/hex'
2
+ import type { Promisable } from '@xylabs/promise'
3
+
4
+ import type {
5
+ BlockRange, RewardShare, StepIdentity, StepIdentityString,
6
+ } from '../../model/index.ts'
7
+
8
+ export interface NetworkStakeStepRewardStakerViewer {
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>
20
+ }
21
+
22
+ export interface NetworkStakeStepRewardStepViewer {
23
+
24
+ // the predictable random number for a given step and block
25
+ randomizer(step: StepIdentity): Promisable<bigint>
26
+
27
+ // all the step rewards for all the network stakers for a given step
28
+ rewards(step: StepIdentity): Promisable<Record<Address, RewardShare>>
29
+
30
+ // total amount staked during a given step
31
+ stake(step: StepIdentity): Promisable<bigint>
32
+
33
+ // the total number of stakers for a given step and block
34
+ stakers(step: StepIdentity): Promisable<Address[]>
35
+
36
+ // total weight of all stakers during a given step
37
+ weight(step: StepIdentity): Promisable<bigint>
38
+ }
39
+
40
+ export interface NetworkStakeStepRewardPositionViewer {
41
+
42
+ // total amount claimed by a given position for a given range
43
+ claimed(position: number, range?: BlockRange): Promisable<bigint>
44
+
45
+ // estimate the potential loss for removing a given position at a given step
46
+ potentialLoss(position: number, step: StepIdentity): Promisable<bigint>
47
+
48
+ // estimate the current reward for a given position at a given step
49
+ reward(position: number, step: StepIdentity): Promisable<RewardShare>
50
+
51
+ // total amount unclaimed by a given position for a given range
52
+ unclaimed(position: number, range?: BlockRange): Promisable<bigint>
53
+ }
54
+
55
+ export interface NetworkStakeStepRewardTotalViewer {
56
+ // the available tokens in the overall reward pool
57
+ available(range?: BlockRange): Promisable<bigint>
58
+ claimed(range?: BlockRange): Promisable<bigint>
59
+ unclaimed(range?: BlockRange): Promisable<bigint>
60
+ unclaimedByStaker(address: Address, range?: BlockRange): Promisable<bigint>
61
+ }
62
+
63
+ export interface NetworkStakeStepRewardViewer extends
64
+ NetworkStakeStepRewardPositionViewer
65
+ {
66
+ position(): Promisable<NetworkStakeStepRewardPositionViewer>
67
+ staker(): Promisable<NetworkStakeStepRewardStakerViewer>
68
+ step(): Promisable<NetworkStakeStepRewardStepViewer>
69
+ total(): Promisable<NetworkStakeStepRewardTotalViewer>
70
+ }