@xyo-network/xl1-protocol 1.12.9 → 1.12.11
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.
- package/dist/neutral/interfaces/view/Stake.d.ts +3 -2
- package/dist/neutral/interfaces/view/Stake.d.ts.map +1 -1
- package/dist/neutral/services/index.d.ts +0 -2
- package/dist/neutral/services/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/interfaces/view/Stake.ts +4 -2
- package/src/services/index.ts +0 -2
- package/dist/neutral/services/ChainServiceCollection.d.ts +0 -67
- package/dist/neutral/services/ChainServiceCollection.d.ts.map +0 -1
- package/dist/neutral/services/ChainServiceCollectionV2.d.ts +0 -73
- package/dist/neutral/services/ChainServiceCollectionV2.d.ts.map +0 -1
- package/src/services/ChainServiceCollection.ts +0 -71
- package/src/services/ChainServiceCollectionV2.ts +0 -82
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import type { Address
|
|
1
|
+
import type { Address } from '@xylabs/hex';
|
|
2
2
|
import type { Promisable } from '@xylabs/promise';
|
|
3
|
+
import type { AttoXL1 } from '../../xl1/index.ts';
|
|
3
4
|
export type Stake = {
|
|
4
5
|
addBlock: number;
|
|
5
|
-
amount:
|
|
6
|
+
amount: AttoXL1;
|
|
6
7
|
id: number;
|
|
7
8
|
removeBlock: number;
|
|
8
9
|
staked: Address;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stake.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/view/Stake.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Stake.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/view/Stake.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,oBAAoB,CAAA;AAEjD,MAAM,MAAM,KAAK,GAAG;IAElB,QAAQ,EAAE,MAAM,CAAA;IAEhB,MAAM,EAAE,OAAO,CAAA;IAEf,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,kBAAkB;IACjC,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"}
|
|
@@ -5,8 +5,6 @@ export * from './BlockRewardServiceV2.ts';
|
|
|
5
5
|
export * from './BridgeService.ts';
|
|
6
6
|
export * from './Chain/index.ts';
|
|
7
7
|
export * from './ChainIterator/index.ts';
|
|
8
|
-
export * from './ChainServiceCollection.ts';
|
|
9
|
-
export * from './ChainServiceCollectionV2.ts';
|
|
10
8
|
export * from './Election.ts';
|
|
11
9
|
export * from './NetworkStakeService.ts';
|
|
12
10
|
export * from './PendingTransactionsService.ts';
|
|
@@ -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,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,0BAA0B,CAAA;AACxC,cAAc,
|
|
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,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,11 +1,13 @@
|
|
|
1
|
-
import type { Address
|
|
1
|
+
import type { Address } from '@xylabs/hex'
|
|
2
2
|
import type { Promisable } from '@xylabs/promise'
|
|
3
3
|
|
|
4
|
+
import type { AttoXL1 } from '../../xl1/index.ts'
|
|
5
|
+
|
|
4
6
|
export type Stake = {
|
|
5
7
|
// the block number when the stake was added
|
|
6
8
|
addBlock: number
|
|
7
9
|
// the amount that is staked
|
|
8
|
-
amount:
|
|
10
|
+
amount: AttoXL1
|
|
9
11
|
// the unique id for the stake item
|
|
10
12
|
id: number
|
|
11
13
|
// the block number when the stake was removed (set to 0 if not removed)
|
package/src/services/index.ts
CHANGED
|
@@ -5,8 +5,6 @@ export * from './BlockRewardServiceV2.ts'
|
|
|
5
5
|
export * from './BridgeService.ts'
|
|
6
6
|
export * from './Chain/index.ts'
|
|
7
7
|
export * from './ChainIterator/index.ts'
|
|
8
|
-
export * from './ChainServiceCollection.ts'
|
|
9
|
-
export * from './ChainServiceCollectionV2.ts'
|
|
10
8
|
export * from './Election.ts'
|
|
11
9
|
export * from './NetworkStakeService.ts'
|
|
12
10
|
export * from './PendingTransactionsService.ts'
|
|
@@ -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 { AccountBalanceService } 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 ChainServiceCollection {
|
|
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: AccountBalanceService;
|
|
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=ChainServiceCollection.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChainServiceCollection.d.ts","sourceRoot":"","sources":["../../../src/services/ChainServiceCollection.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,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AACvE,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,sBAAsB;IAErC;;OAEG;IACH,OAAO,EAAE,cAAc,CAAA;IACvB;;OAEG;IACH,cAAc,EAAE,qBAAqB,CAAA;IACrC;;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,73 +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 { BridgeService } from './BridgeService.ts';
|
|
7
|
-
import type { ChainContractViewer, ChainStaker, ChainStakeViewer } from './Chain/index.ts';
|
|
8
|
-
import type { EventingChainBlockNumberIteratorService } from './ChainIterator/index.ts';
|
|
9
|
-
import type { ElectionService } from './Election.ts';
|
|
10
|
-
import type { NetworkStakeService } from './NetworkStakeService.ts';
|
|
11
|
-
import type { StakeIntentService } from './StakeIntentService/index.ts';
|
|
12
|
-
import type { StepStakeService } from './StepStakeService.ts';
|
|
13
|
-
/** @deprecated use from @xyo-network/xl1-protocol-sdk instead */
|
|
14
|
-
export interface ChainServiceCollectionV2 {
|
|
15
|
-
/**
|
|
16
|
-
* The account which is used to sign transactions
|
|
17
|
-
*/
|
|
18
|
-
account: WalletInstance;
|
|
19
|
-
/**
|
|
20
|
-
* Services for working with account balances
|
|
21
|
-
*/
|
|
22
|
-
balance: AccountBalanceServiceV2;
|
|
23
|
-
/**
|
|
24
|
-
* The archivist which the chain data is stored in
|
|
25
|
-
*/
|
|
26
|
-
bridge: BridgeService;
|
|
27
|
-
chainArchivist: ArchivistInstance;
|
|
28
|
-
/**
|
|
29
|
-
* Service for viewing codified chain information
|
|
30
|
-
* from a contract
|
|
31
|
-
*/
|
|
32
|
-
chainContractViewer: ChainContractViewer;
|
|
33
|
-
/**
|
|
34
|
-
* The chain iterator
|
|
35
|
-
*/
|
|
36
|
-
chainIterator?: EventingChainBlockNumberIteratorService;
|
|
37
|
-
/**
|
|
38
|
-
* Service for viewing stake information
|
|
39
|
-
*/
|
|
40
|
-
chainStakeViewer: ChainStakeViewer;
|
|
41
|
-
/**
|
|
42
|
-
* Service for staking
|
|
43
|
-
*/
|
|
44
|
-
chainStaker: ChainStaker;
|
|
45
|
-
/**
|
|
46
|
-
* The archivist which the chain submissions are stored in
|
|
47
|
-
*/
|
|
48
|
-
chainSubmissionsArchivistWrite: WriteArchivist;
|
|
49
|
-
/**
|
|
50
|
-
* Service for determining leader election
|
|
51
|
-
*/
|
|
52
|
-
election: ElectionService;
|
|
53
|
-
networkStake: NetworkStakeService;
|
|
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
|
-
reward: BlockRewardService;
|
|
67
|
-
/**
|
|
68
|
-
* Services for working with staked intents
|
|
69
|
-
*/
|
|
70
|
-
stakeIntent: StakeIntentService;
|
|
71
|
-
stepStake: StepStakeService;
|
|
72
|
-
}
|
|
73
|
-
//# 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,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"}
|
|
@@ -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,82 +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 { BridgeService } from './BridgeService.ts'
|
|
8
|
-
import type {
|
|
9
|
-
ChainContractViewer, ChainStaker, ChainStakeViewer,
|
|
10
|
-
} from './Chain/index.ts'
|
|
11
|
-
import type { EventingChainBlockNumberIteratorService } from './ChainIterator/index.ts'
|
|
12
|
-
import type { ElectionService } from './Election.ts'
|
|
13
|
-
import type { NetworkStakeService } from './NetworkStakeService.ts'
|
|
14
|
-
import type { StakeIntentService } from './StakeIntentService/index.ts'
|
|
15
|
-
import type { StepStakeService } from './StepStakeService.ts'
|
|
16
|
-
|
|
17
|
-
/** @deprecated use from @xyo-network/xl1-protocol-sdk instead */
|
|
18
|
-
export interface ChainServiceCollectionV2 {
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* The account which is used to sign transactions
|
|
22
|
-
*/
|
|
23
|
-
account: WalletInstance
|
|
24
|
-
/**
|
|
25
|
-
* Services for working with account balances
|
|
26
|
-
*/
|
|
27
|
-
balance: AccountBalanceServiceV2
|
|
28
|
-
/**
|
|
29
|
-
* The archivist which the chain data is stored in
|
|
30
|
-
*/
|
|
31
|
-
|
|
32
|
-
bridge: BridgeService
|
|
33
|
-
|
|
34
|
-
chainArchivist: ArchivistInstance
|
|
35
|
-
/**
|
|
36
|
-
* Service for viewing codified chain information
|
|
37
|
-
* from a contract
|
|
38
|
-
*/
|
|
39
|
-
chainContractViewer: ChainContractViewer
|
|
40
|
-
/**
|
|
41
|
-
* The chain iterator
|
|
42
|
-
*/
|
|
43
|
-
chainIterator?: EventingChainBlockNumberIteratorService
|
|
44
|
-
/**
|
|
45
|
-
* Service for viewing stake information
|
|
46
|
-
*/
|
|
47
|
-
chainStakeViewer: ChainStakeViewer
|
|
48
|
-
/**
|
|
49
|
-
* Service for staking
|
|
50
|
-
*/
|
|
51
|
-
chainStaker: ChainStaker
|
|
52
|
-
/**
|
|
53
|
-
* The archivist which the chain submissions are stored in
|
|
54
|
-
*/
|
|
55
|
-
chainSubmissionsArchivistWrite: WriteArchivist
|
|
56
|
-
/**
|
|
57
|
-
* Service for determining leader election
|
|
58
|
-
*/
|
|
59
|
-
election: ElectionService
|
|
60
|
-
|
|
61
|
-
networkStake: NetworkStakeService
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* The archivist which the pending transactions are stored
|
|
65
|
-
* as bundled transactions
|
|
66
|
-
*/
|
|
67
|
-
pendingBundledTransactionsArchivistWrite: ArchivistInstance
|
|
68
|
-
/**
|
|
69
|
-
* The block producer service
|
|
70
|
-
*/
|
|
71
|
-
producer: BlockProducerService
|
|
72
|
-
/**
|
|
73
|
-
* Service response for calculating block rewards
|
|
74
|
-
*/
|
|
75
|
-
reward: BlockRewardService
|
|
76
|
-
/**
|
|
77
|
-
* Services for working with staked intents
|
|
78
|
-
*/
|
|
79
|
-
stakeIntent: StakeIntentService
|
|
80
|
-
|
|
81
|
-
stepStake: StepStakeService
|
|
82
|
-
}
|