@xyo-network/xl1-protocol 1.12.8 → 1.12.10

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 (95) 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/StepStakeService.d.ts +5 -0
  46. package/dist/neutral/services/StepStakeService.d.ts.map +1 -0
  47. package/dist/neutral/services/index.d.ts +2 -2
  48. package/dist/neutral/services/index.d.ts.map +1 -1
  49. package/package.json +1 -1
  50. package/src/constants/addresses.ts +6 -0
  51. package/src/constants/index.ts +1 -1
  52. package/src/interfaces/index.ts +1 -11
  53. package/src/interfaces/{AccountBalance.ts → view/AccountBalance.ts} +4 -4
  54. package/src/interfaces/{Block.ts → view/Block.ts} +2 -2
  55. package/src/interfaces/view/Bridge.ts +13 -0
  56. package/src/interfaces/{Chain.ts → view/Chain.ts} +2 -2
  57. package/src/interfaces/{ChainContract.ts → view/ChainContract.ts} +1 -1
  58. package/src/interfaces/{ChainStake.ts → view/ChainStake.ts} +1 -1
  59. package/src/interfaces/{Fork.ts → view/Fork.ts} +1 -1
  60. package/src/interfaces/{NetworkStakeStepReward.ts → view/NetworkStakeStepReward.ts} +3 -3
  61. package/src/interfaces/{Stake.ts → view/Stake.ts} +1 -1
  62. package/src/interfaces/{StakeTotals.ts → view/StakeTotals.ts} +1 -1
  63. package/src/interfaces/{StepStake.ts → view/StepStake.ts} +2 -2
  64. package/src/interfaces/{TimeSync.ts → view/TimeSync.ts} +2 -2
  65. package/src/interfaces/{Transaction.ts → view/Transaction.ts} +2 -2
  66. package/src/interfaces/view/index.ts +13 -0
  67. package/src/provider/XyoViewer.ts +6 -5
  68. package/src/services/BridgeService.ts +4 -0
  69. package/src/services/Chain/interfaces/ChainContractViewer.ts +2 -2
  70. package/src/services/Chain/interfaces/ChainStakeViewer.ts +2 -2
  71. package/src/services/StepStakeService.ts +4 -0
  72. package/src/services/index.ts +2 -2
  73. package/dist/neutral/constants/zeroAddress.d.ts +0 -3
  74. package/dist/neutral/constants/zeroAddress.d.ts.map +0 -1
  75. package/dist/neutral/interfaces/AccountBalance.d.ts.map +0 -1
  76. package/dist/neutral/interfaces/Block.d.ts.map +0 -1
  77. package/dist/neutral/interfaces/Chain.d.ts +0 -6
  78. package/dist/neutral/interfaces/Chain.d.ts.map +0 -1
  79. package/dist/neutral/interfaces/ChainContract.d.ts.map +0 -1
  80. package/dist/neutral/interfaces/ChainStake.d.ts.map +0 -1
  81. package/dist/neutral/interfaces/Fork.d.ts.map +0 -1
  82. package/dist/neutral/interfaces/NetworkStakeStepReward.d.ts.map +0 -1
  83. package/dist/neutral/interfaces/Stake.d.ts.map +0 -1
  84. package/dist/neutral/interfaces/StakeTotals.d.ts.map +0 -1
  85. package/dist/neutral/interfaces/StepStake.d.ts.map +0 -1
  86. package/dist/neutral/interfaces/TimeSync.d.ts +0 -6
  87. package/dist/neutral/interfaces/TimeSync.d.ts.map +0 -1
  88. package/dist/neutral/interfaces/Transaction.d.ts.map +0 -1
  89. package/dist/neutral/services/ChainServiceCollection.d.ts +0 -67
  90. package/dist/neutral/services/ChainServiceCollection.d.ts.map +0 -1
  91. package/dist/neutral/services/ChainServiceCollectionV2.d.ts +0 -67
  92. package/dist/neutral/services/ChainServiceCollectionV2.d.ts.map +0 -1
  93. package/src/constants/zeroAddress.ts +0 -3
  94. package/src/services/ChainServiceCollection.ts +0 -71
  95. package/src/services/ChainServiceCollectionV2.ts +0 -71
@@ -1,67 +0,0 @@
1
- import type { ArchivistInstance, WriteArchivist } from '@xyo-network/archivist-model';
2
- import type { WalletInstance } from '@xyo-network/wallet-model';
3
- import type { AccountBalanceServiceV2 } from './AccountBalanceService.ts';
4
- import type { BlockProducerService } from './BlockProducerService.ts';
5
- import type { BlockRewardService } from './BlockRewardService.ts';
6
- import type { ChainContractViewer, ChainStaker, ChainStakeViewer } from './Chain/index.ts';
7
- import type { EventingChainBlockNumberIteratorService } from './ChainIterator/index.ts';
8
- import type { ElectionService } from './Election.ts';
9
- import type { StakeIntentService } from './StakeIntentService/index.ts';
10
- /** @deprecated use from @xyo-network/xl1-protocol-sdk instead */
11
- export interface ChainServiceCollectionV2 {
12
- /**
13
- * The account which is used to sign transactions
14
- */
15
- account: WalletInstance;
16
- /**
17
- * Services for working with account balances
18
- */
19
- balanceService: AccountBalanceServiceV2;
20
- /**
21
- * The archivist which the chain data is stored in
22
- */
23
- chainArchivist: ArchivistInstance;
24
- /**
25
- * Service for viewing codified chain information
26
- * from a contract
27
- */
28
- chainContractViewer: ChainContractViewer;
29
- /**
30
- * The chain iterator
31
- */
32
- chainIterator?: EventingChainBlockNumberIteratorService;
33
- /**
34
- * Service for viewing stake information
35
- */
36
- chainStakeViewer: ChainStakeViewer;
37
- /**
38
- * Service for staking
39
- */
40
- chainStaker: ChainStaker;
41
- /**
42
- * The archivist which the chain submissions are stored in
43
- */
44
- chainSubmissionsArchivistWrite: WriteArchivist;
45
- /**
46
- * Service for determining leader election
47
- */
48
- electionService: ElectionService;
49
- /**
50
- * The archivist which the pending transactions are stored
51
- * as bundled transactions
52
- */
53
- pendingBundledTransactionsArchivistWrite: ArchivistInstance;
54
- /**
55
- * The block producer service
56
- */
57
- producer: BlockProducerService;
58
- /**
59
- * Service response for calculating block rewards
60
- */
61
- rewardService: BlockRewardService;
62
- /**
63
- * Services for working with staked intents
64
- */
65
- stakeIntentService: StakeIntentService;
66
- }
67
- //# sourceMappingURL=ChainServiceCollectionV2.d.ts.map
@@ -1 +0,0 @@
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,3 +0,0 @@
1
- import type { Address } from '@xylabs/hex'
2
-
3
- export const XYO_ZERO_ADDRESS = '0000000000000000000000000000000000000000' as Address
@@ -1,71 +0,0 @@
1
- import type { ArchivistInstance, WriteArchivist } from '@xyo-network/archivist-model'
2
- import type { WalletInstance } from '@xyo-network/wallet-model'
3
-
4
- import type { AccountBalanceService } from './AccountBalanceService.ts'
5
- import type { BlockProducerService } from './BlockProducerService.ts'
6
- import type { BlockRewardService } from './BlockRewardService.ts'
7
- import type {
8
- ChainContractViewer, ChainStaker, ChainStakeViewer,
9
- } from './Chain/index.ts'
10
- import type { EventingChainBlockNumberIteratorService } from './ChainIterator/index.ts'
11
- import type { ElectionService } from './Election.ts'
12
- import type { StakeIntentService } from './StakeIntentService/index.ts'
13
-
14
- /** @deprecated use from @xyo-network/xl1-protocol-sdk instead */
15
- export interface ChainServiceCollection {
16
-
17
- /**
18
- * The account which is used to sign transactions
19
- */
20
- account: WalletInstance
21
- /**
22
- * Services for working with account balances
23
- */
24
- balanceService: AccountBalanceService
25
- /**
26
- * The archivist which the chain data is stored in
27
- */
28
- chainArchivist: ArchivistInstance
29
- /**
30
- * Service for viewing codified chain information
31
- * from a contract
32
- */
33
- chainContractViewer: ChainContractViewer
34
- /**
35
- * The chain iterator
36
- */
37
- chainIterator?: EventingChainBlockNumberIteratorService
38
- /**
39
- * Service for viewing stake information
40
- */
41
- chainStakeViewer: ChainStakeViewer
42
- /**
43
- * Service for staking
44
- */
45
- chainStaker: ChainStaker
46
- /**
47
- * The archivist which the chain submissions are stored in
48
- */
49
- chainSubmissionsArchivistWrite: WriteArchivist
50
- /**
51
- * Service for determining leader election
52
- */
53
- electionService: ElectionService
54
- /**
55
- * The archivist which the pending transactions are stored
56
- * as bundled transactions
57
- */
58
- pendingBundledTransactionsArchivistWrite: ArchivistInstance
59
- /**
60
- * The block producer service
61
- */
62
- producer: BlockProducerService
63
- /**
64
- * Service response for calculating block rewards
65
- */
66
- rewardService: BlockRewardService
67
- /**
68
- * Services for working with staked intents
69
- */
70
- stakeIntentService: StakeIntentService
71
- }
@@ -1,71 +0,0 @@
1
- import type { ArchivistInstance, WriteArchivist } from '@xyo-network/archivist-model'
2
- import type { WalletInstance } from '@xyo-network/wallet-model'
3
-
4
- import type { AccountBalanceServiceV2 } from './AccountBalanceService.ts'
5
- import type { BlockProducerService } from './BlockProducerService.ts'
6
- import type { BlockRewardService } from './BlockRewardService.ts'
7
- import type {
8
- ChainContractViewer, ChainStaker, ChainStakeViewer,
9
- } from './Chain/index.ts'
10
- import type { EventingChainBlockNumberIteratorService } from './ChainIterator/index.ts'
11
- import type { ElectionService } from './Election.ts'
12
- import type { StakeIntentService } from './StakeIntentService/index.ts'
13
-
14
- /** @deprecated use from @xyo-network/xl1-protocol-sdk instead */
15
- export interface ChainServiceCollectionV2 {
16
-
17
- /**
18
- * The account which is used to sign transactions
19
- */
20
- account: WalletInstance
21
- /**
22
- * Services for working with account balances
23
- */
24
- balanceService: AccountBalanceServiceV2
25
- /**
26
- * The archivist which the chain data is stored in
27
- */
28
- chainArchivist: ArchivistInstance
29
- /**
30
- * Service for viewing codified chain information
31
- * from a contract
32
- */
33
- chainContractViewer: ChainContractViewer
34
- /**
35
- * The chain iterator
36
- */
37
- chainIterator?: EventingChainBlockNumberIteratorService
38
- /**
39
- * Service for viewing stake information
40
- */
41
- chainStakeViewer: ChainStakeViewer
42
- /**
43
- * Service for staking
44
- */
45
- chainStaker: ChainStaker
46
- /**
47
- * The archivist which the chain submissions are stored in
48
- */
49
- chainSubmissionsArchivistWrite: WriteArchivist
50
- /**
51
- * Service for determining leader election
52
- */
53
- electionService: ElectionService
54
- /**
55
- * The archivist which the pending transactions are stored
56
- * as bundled transactions
57
- */
58
- pendingBundledTransactionsArchivistWrite: ArchivistInstance
59
- /**
60
- * The block producer service
61
- */
62
- producer: BlockProducerService
63
- /**
64
- * Service response for calculating block rewards
65
- */
66
- rewardService: BlockRewardService
67
- /**
68
- * Services for working with staked intents
69
- */
70
- stakeIntentService: StakeIntentService
71
- }