@xyo-network/xl1-protocol 1.5.8 → 1.5.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.
@@ -0,0 +1,66 @@
1
+ import type { ArchivistInstance, WriteArchivist } from '@xyo-network/archivist-model';
2
+ import type { WalletInstance } from '@xyo-network/wallet-model';
3
+ import type { EventingChainBlockNumberIterator } from '../iterator/index.ts';
4
+ import type { AccountBalanceServiceV2 } from './AccountBalanceService.ts';
5
+ import type { BlockProducerService } from './BlockProducerService.ts';
6
+ import type { BlockRewardService } from './BlockRewardService.ts';
7
+ import type { ChainContractViewer, ChainStaker, ChainStakeViewer } from './Chain/index.ts';
8
+ import type { ElectionService } from './Election.ts';
9
+ import type { StakeIntentService } from './StakeIntentService/index.ts';
10
+ export interface ChainServiceCollectionV2 {
11
+ /**
12
+ * The account which is used to sign transactions
13
+ */
14
+ account: WalletInstance;
15
+ /**
16
+ * Services for working with account balances
17
+ */
18
+ balanceService: AccountBalanceServiceV2;
19
+ /**
20
+ * The archivist which the chain data is stored in
21
+ */
22
+ chainArchivist: ArchivistInstance;
23
+ /**
24
+ * Service for viewing codified chain information
25
+ * from a contract
26
+ */
27
+ chainContractViewer: ChainContractViewer;
28
+ /**
29
+ * The chain iterator
30
+ */
31
+ chainIterator?: EventingChainBlockNumberIterator;
32
+ /**
33
+ * Service for viewing stake information
34
+ */
35
+ chainStakeViewer: ChainStakeViewer;
36
+ /**
37
+ * Service for staking
38
+ */
39
+ chainStaker: ChainStaker;
40
+ /**
41
+ * The archivist which the chain submissions are stored in
42
+ */
43
+ chainSubmissionsArchivistWrite: WriteArchivist;
44
+ /**
45
+ * Service for determining leader election
46
+ */
47
+ electionService: ElectionService;
48
+ /**
49
+ * The archivist which the pending transactions are stored
50
+ * as bundled transactions
51
+ */
52
+ pendingBundledTransactionsArchivistWrite: ArchivistInstance;
53
+ /**
54
+ * The block producer service
55
+ */
56
+ producer: BlockProducerService;
57
+ /**
58
+ * Service response for calculating block rewards
59
+ */
60
+ rewardService: BlockRewardService;
61
+ /**
62
+ * Services for working with staked intents
63
+ */
64
+ stakeIntentService: StakeIntentService;
65
+ }
66
+ //# sourceMappingURL=ChainServiceCollectionV2.d.ts.map
@@ -0,0 +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,gCAAgC,EAAE,MAAM,sBAAsB,CAAA;AAC5E,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,eAAe,EAAE,MAAM,eAAe,CAAA;AACpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAEvE,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,gCAAgC,CAAA;IAChD;;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"}
@@ -3,6 +3,7 @@ export * from './BlockProducerService.ts';
3
3
  export * from './BlockRewardService.ts';
4
4
  export * from './Chain/index.ts';
5
5
  export * from './ChainServiceCollection.ts';
6
+ export * from './ChainServiceCollectionV2.ts';
6
7
  export * from './Election.ts';
7
8
  export * from './PendingTransactionsService.ts';
8
9
  export * from './Service.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,kBAAkB,CAAA;AAChC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,eAAe,CAAA;AAC7B,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,kBAAkB,CAAA;AAChC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,eAAe,CAAA;AAC7B,cAAc,iCAAiC,CAAA;AAC/C,cAAc,cAAc,CAAA;AAC5B,cAAc,+BAA+B,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.5.8",
4
+ "version": "1.5.9",
5
5
  "description": "XYO Layer One Protocol",
6
6
  "homepage": "https://xylabs.com",
7
7
  "bugs": {
@@ -0,0 +1,70 @@
1
+ import type { ArchivistInstance, WriteArchivist } from '@xyo-network/archivist-model'
2
+ import type { WalletInstance } from '@xyo-network/wallet-model'
3
+
4
+ import type { EventingChainBlockNumberIterator } from '../iterator/index.ts'
5
+ import type { AccountBalanceServiceV2 } from './AccountBalanceService.ts'
6
+ import type { BlockProducerService } from './BlockProducerService.ts'
7
+ import type { BlockRewardService } from './BlockRewardService.ts'
8
+ import type {
9
+ ChainContractViewer, ChainStaker, ChainStakeViewer,
10
+ } from './Chain/index.ts'
11
+ import type { ElectionService } from './Election.ts'
12
+ import type { StakeIntentService } from './StakeIntentService/index.ts'
13
+
14
+ export interface ChainServiceCollectionV2 {
15
+
16
+ /**
17
+ * The account which is used to sign transactions
18
+ */
19
+ account: WalletInstance
20
+ /**
21
+ * Services for working with account balances
22
+ */
23
+ balanceService: AccountBalanceServiceV2
24
+ /**
25
+ * The archivist which the chain data is stored in
26
+ */
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?: EventingChainBlockNumberIterator
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
+ electionService: ElectionService
53
+ /**
54
+ * The archivist which the pending transactions are stored
55
+ * as bundled transactions
56
+ */
57
+ pendingBundledTransactionsArchivistWrite: ArchivistInstance
58
+ /**
59
+ * The block producer service
60
+ */
61
+ producer: BlockProducerService
62
+ /**
63
+ * Service response for calculating block rewards
64
+ */
65
+ rewardService: BlockRewardService
66
+ /**
67
+ * Services for working with staked intents
68
+ */
69
+ stakeIntentService: StakeIntentService
70
+ }
@@ -3,6 +3,7 @@ export * from './BlockProducerService.ts'
3
3
  export * from './BlockRewardService.ts'
4
4
  export * from './Chain/index.ts'
5
5
  export * from './ChainServiceCollection.ts'
6
+ export * from './ChainServiceCollectionV2.ts'
6
7
  export * from './Election.ts'
7
8
  export * from './PendingTransactionsService.ts'
8
9
  export * from './Service.ts'