@xyo-network/chain-services 1.15.28 → 1.16.1
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/AccountBalance/BaseAccountBalanceService.d.ts +2 -2
- package/dist/neutral/AccountBalance/BaseAccountBalanceService.d.ts.map +1 -1
- package/dist/neutral/AccountBalance/accountBalanceServiceFromArchivist.d.ts +2 -1
- package/dist/neutral/AccountBalance/accountBalanceServiceFromArchivist.d.ts.map +1 -1
- package/dist/neutral/AccountTransfers/BaseAccountTransfersService.d.ts +2 -2
- package/dist/neutral/AccountTransfers/BaseAccountTransfersService.d.ts.map +1 -1
- package/dist/neutral/AccountTransfers/accountTransfersServiceFromArchivist.d.ts +2 -1
- package/dist/neutral/AccountTransfers/accountTransfersServiceFromArchivist.d.ts.map +1 -1
- package/dist/neutral/BaseService.d.ts +1 -1
- package/dist/neutral/BaseService.d.ts.map +1 -1
- package/dist/neutral/BlockProducer/BaseBlockProducerService.d.ts +5 -4
- package/dist/neutral/BlockProducer/BaseBlockProducerService.d.ts.map +1 -1
- package/dist/neutral/BlockReward/BaseBlockRewardService.d.ts +1 -1
- package/dist/neutral/BlockReward/BaseBlockRewardService.d.ts.map +1 -1
- package/dist/neutral/BlockReward/EvmBlockRewardService.d.ts +1 -1
- package/dist/neutral/BlockReward/EvmBlockRewardService.d.ts.map +1 -1
- package/dist/neutral/BlockReward/MemoryBlockRewardService.d.ts +1 -1
- package/dist/neutral/BlockReward/MemoryBlockRewardService.d.ts.map +1 -1
- package/dist/neutral/ChainBlockIteration/ChainBlockNumberIterationService.d.ts +2 -1
- package/dist/neutral/ChainBlockIteration/ChainBlockNumberIterationService.d.ts.map +1 -1
- package/dist/neutral/ChainBlockNumberIteration/ChainBlockNumberIterationService.d.ts +2 -2
- package/dist/neutral/ChainBlockNumberIteration/ChainBlockNumberIterationService.d.ts.map +1 -1
- package/dist/neutral/ChainService/Evm/Evm.d.ts +1 -1
- package/dist/neutral/ChainService/Evm/Evm.d.ts.map +1 -1
- package/dist/neutral/ChainService/Memory/Memory.d.ts +1 -1
- package/dist/neutral/ChainService/Memory/Memory.d.ts.map +1 -1
- package/dist/neutral/ChainValidator/XyoValidator.d.ts +2 -1
- package/dist/neutral/ChainValidator/XyoValidator.d.ts.map +1 -1
- package/dist/neutral/Election/BaseElectionService.d.ts +2 -2
- package/dist/neutral/Election/BaseElectionService.d.ts.map +1 -1
- package/dist/neutral/NetworkStakeStepReward/BaseNetworkStakeStepRewardService.d.ts +2 -1
- package/dist/neutral/NetworkStakeStepReward/BaseNetworkStakeStepRewardService.d.ts.map +1 -1
- package/dist/neutral/PendingTransactions/BasePendingTransactions.d.ts +2 -1
- package/dist/neutral/PendingTransactions/BasePendingTransactions.d.ts.map +1 -1
- package/dist/neutral/StakeIntent/XyoStakeIntentService.d.ts +2 -2
- package/dist/neutral/StakeIntent/XyoStakeIntentService.d.ts.map +1 -1
- package/dist/neutral/StepStake/BaseStepStakeService.d.ts +2 -1
- package/dist/neutral/StepStake/BaseStepStakeService.d.ts.map +1 -1
- package/dist/neutral/Time/BaseTimeSyncService.d.ts +2 -1
- package/dist/neutral/Time/BaseTimeSyncService.d.ts.map +1 -1
- package/dist/neutral/index.mjs +2 -2
- package/dist/neutral/index.mjs.map +1 -1
- package/package.json +37 -37
- package/src/AccountBalance/BaseAccountBalanceService.ts +1 -3
- package/src/AccountBalance/accountBalanceServiceFromArchivist.ts +2 -2
- package/src/AccountTransfers/BaseAccountTransfersService.ts +1 -3
- package/src/AccountTransfers/accountTransfersServiceFromArchivist.ts +2 -2
- package/src/BaseService.ts +1 -1
- package/src/BlockProducer/BaseBlockProducerService.ts +7 -5
- package/src/BlockProducer/spec/BaseBlockProducerService.spec.ts +6 -6
- package/src/BlockReward/BaseBlockRewardService.ts +1 -1
- package/src/BlockReward/EvmBlockRewardService.ts +1 -1
- package/src/BlockReward/MemoryBlockRewardService.ts +1 -1
- package/src/ChainBlockIteration/ChainBlockNumberIterationService.ts +2 -5
- package/src/ChainBlockNumberIteration/ChainBlockNumberIterationService.ts +4 -4
- package/src/ChainService/Evm/Evm.ts +1 -1
- package/src/ChainService/Memory/Memory.ts +1 -1
- package/src/ChainValidator/XyoValidator.ts +3 -4
- package/src/Election/BaseElectionService.ts +3 -3
- package/src/NetworkStakeStepReward/BaseNetworkStakeStepRewardService.ts +2 -1
- package/src/PendingTransactions/BasePendingTransactions.ts +2 -1
- package/src/StakeIntent/XyoStakeIntentService.ts +7 -5
- package/src/StepStake/BaseStepStakeService.ts +2 -4
- package/src/Time/BaseTimeSyncService.ts +2 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@xyo-network/chain-services",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.16.1",
|
|
5
5
|
"description": "XYO Layer One SDK Services",
|
|
6
6
|
"homepage": "https://xylabs.com",
|
|
7
7
|
"bugs": {
|
|
@@ -37,52 +37,52 @@
|
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@opentelemetry/api": "~1.9.0",
|
|
40
|
-
"@xylabs/array": "~5.0.
|
|
41
|
-
"@xylabs/assert": "~5.0.
|
|
42
|
-
"@xylabs/creatable": "~5.0.
|
|
43
|
-
"@xylabs/decimal-precision": "~5.0.
|
|
44
|
-
"@xylabs/events": "~5.0.
|
|
45
|
-
"@xylabs/exists": "~5.0.
|
|
46
|
-
"@xylabs/forget": "~5.0.
|
|
47
|
-
"@xylabs/hex": "~5.0.
|
|
48
|
-
"@xylabs/promise": "~5.0.
|
|
49
|
-
"@xylabs/telemetry": "~5.0.
|
|
50
|
-
"@xylabs/typeof": "~5.0.
|
|
51
|
-
"@xyo-network/account-model": "~5.1.
|
|
52
|
-
"@xyo-network/archivist-memory": "~5.1.
|
|
53
|
-
"@xyo-network/archivist-model": "~5.1.
|
|
54
|
-
"@xyo-network/boundwitness-model": "~5.1.
|
|
55
|
-
"@xyo-network/boundwitness-validator": "~5.1.
|
|
56
|
-
"@xyo-network/boundwitness-wrapper": "~5.1.
|
|
57
|
-
"@xyo-network/chain-analyze": "~1.
|
|
58
|
-
"@xyo-network/chain-modules": "~1.
|
|
59
|
-
"@xyo-network/chain-protocol": "~1.
|
|
60
|
-
"@xyo-network/chain-utils": "~1.
|
|
61
|
-
"@xyo-network/payload-builder": "~5.1.
|
|
62
|
-
"@xyo-network/payload-model": "~5.1.
|
|
40
|
+
"@xylabs/array": "~5.0.21",
|
|
41
|
+
"@xylabs/assert": "~5.0.21",
|
|
42
|
+
"@xylabs/creatable": "~5.0.21",
|
|
43
|
+
"@xylabs/decimal-precision": "~5.0.21",
|
|
44
|
+
"@xylabs/events": "~5.0.21",
|
|
45
|
+
"@xylabs/exists": "~5.0.21",
|
|
46
|
+
"@xylabs/forget": "~5.0.21",
|
|
47
|
+
"@xylabs/hex": "~5.0.21",
|
|
48
|
+
"@xylabs/promise": "~5.0.21",
|
|
49
|
+
"@xylabs/telemetry": "~5.0.21",
|
|
50
|
+
"@xylabs/typeof": "~5.0.21",
|
|
51
|
+
"@xyo-network/account-model": "~5.1.18",
|
|
52
|
+
"@xyo-network/archivist-memory": "~5.1.18",
|
|
53
|
+
"@xyo-network/archivist-model": "~5.1.18",
|
|
54
|
+
"@xyo-network/boundwitness-model": "~5.1.18",
|
|
55
|
+
"@xyo-network/boundwitness-validator": "~5.1.18",
|
|
56
|
+
"@xyo-network/boundwitness-wrapper": "~5.1.18",
|
|
57
|
+
"@xyo-network/chain-analyze": "~1.16.1",
|
|
58
|
+
"@xyo-network/chain-modules": "~1.16.1",
|
|
59
|
+
"@xyo-network/chain-protocol": "~1.16.1",
|
|
60
|
+
"@xyo-network/chain-utils": "~1.16.1",
|
|
61
|
+
"@xyo-network/payload-builder": "~5.1.18",
|
|
62
|
+
"@xyo-network/payload-model": "~5.1.18",
|
|
63
63
|
"@xyo-network/typechain": "~4.0.10",
|
|
64
|
-
"@xyo-network/xl1-protocol": "~1.
|
|
65
|
-
"@xyo-network/xl1-protocol-sdk": "~1.
|
|
66
|
-
"@xyo-network/xl1-validation": "~1.
|
|
67
|
-
"@xyo-network/xl1-wrappers": "~1.
|
|
64
|
+
"@xyo-network/xl1-protocol": "~1.13.0",
|
|
65
|
+
"@xyo-network/xl1-protocol-sdk": "~1.16.1",
|
|
66
|
+
"@xyo-network/xl1-validation": "~1.16.1",
|
|
67
|
+
"@xyo-network/xl1-wrappers": "~1.16.1",
|
|
68
68
|
"async-mutex": "~0.5.0",
|
|
69
69
|
"ethers": "6.15.0",
|
|
70
70
|
"lru-cache": "~11.2.2"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@types/node": "~24.10.0",
|
|
74
|
-
"@xylabs/delay": "~5.0.
|
|
75
|
-
"@xylabs/ts-scripts-yarn3": "~7.2.
|
|
76
|
-
"@xylabs/tsconfig": "~7.2.
|
|
77
|
-
"@xylabs/vitest-extended": "~5.0.
|
|
78
|
-
"@xyo-network/account": "~5.1.
|
|
79
|
-
"@xyo-network/account-model": "~5.1.
|
|
80
|
-
"@xyo-network/chain-validation": "~1.
|
|
81
|
-
"@xyo-network/wallet": "~5.1.
|
|
74
|
+
"@xylabs/delay": "~5.0.21",
|
|
75
|
+
"@xylabs/ts-scripts-yarn3": "~7.2.8",
|
|
76
|
+
"@xylabs/tsconfig": "~7.2.8",
|
|
77
|
+
"@xylabs/vitest-extended": "~5.0.21",
|
|
78
|
+
"@xyo-network/account": "~5.1.18",
|
|
79
|
+
"@xyo-network/account-model": "~5.1.18",
|
|
80
|
+
"@xyo-network/chain-validation": "~1.16.1",
|
|
81
|
+
"@xyo-network/wallet": "~5.1.18",
|
|
82
82
|
"eslint": "^9.39.1",
|
|
83
83
|
"tslib": "~2.8.1",
|
|
84
84
|
"typescript": "~5.9.3",
|
|
85
|
-
"vitest": "~4.0.
|
|
85
|
+
"vitest": "~4.0.8",
|
|
86
86
|
"vitest-mock-extended": "~3.1.0",
|
|
87
87
|
"web3-types": "~1.10.0"
|
|
88
88
|
},
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { creatable } from '@xylabs/creatable'
|
|
2
2
|
import { Address, Hash } from '@xylabs/hex'
|
|
3
3
|
import { spanRootAsync } from '@xylabs/telemetry'
|
|
4
|
+
import { AttoXL1 } from '@xyo-network/xl1-protocol'
|
|
4
5
|
import {
|
|
5
6
|
AccountBalanceServiceV2,
|
|
6
|
-
AttoXL1,
|
|
7
|
-
} from '@xyo-network/xl1-protocol'
|
|
8
|
-
import {
|
|
9
7
|
balancesSummary,
|
|
10
8
|
BalanceStepSummaryContext,
|
|
11
9
|
} from '@xyo-network/xl1-protocol-sdk'
|
|
@@ -3,9 +3,9 @@ import type { Hash } from '@xylabs/hex'
|
|
|
3
3
|
import type { ReadArchivist } from '@xyo-network/archivist-model'
|
|
4
4
|
import { findMostRecentBlock } from '@xyo-network/chain-protocol'
|
|
5
5
|
import type { Payload, WithStorageMeta } from '@xyo-network/payload-model'
|
|
6
|
-
import type {
|
|
6
|
+
import type { ChainId } from '@xyo-network/xl1-protocol'
|
|
7
7
|
import { StepSizes } from '@xyo-network/xl1-protocol'
|
|
8
|
-
import type { BalancesStepSummary } from '@xyo-network/xl1-protocol-sdk'
|
|
8
|
+
import type { AccountBalanceServiceV2, BalancesStepSummary } from '@xyo-network/xl1-protocol-sdk'
|
|
9
9
|
import { LruCacheMap, readPayloadMapFromStore } from '@xyo-network/xl1-protocol-sdk'
|
|
10
10
|
import { Semaphore } from 'async-mutex'
|
|
11
11
|
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { creatable } from '@xylabs/creatable'
|
|
2
2
|
import { Address, Hash } from '@xylabs/hex'
|
|
3
3
|
import { spanRootAsync } from '@xylabs/telemetry'
|
|
4
|
+
import { AttoXL1 } from '@xyo-network/xl1-protocol'
|
|
4
5
|
import {
|
|
5
6
|
AccountTransfersService,
|
|
6
|
-
AttoXL1,
|
|
7
|
-
} from '@xyo-network/xl1-protocol'
|
|
8
|
-
import {
|
|
9
7
|
TransfersStepSummaryContext,
|
|
10
8
|
transfersSummary,
|
|
11
9
|
} from '@xyo-network/xl1-protocol-sdk'
|
|
@@ -3,9 +3,9 @@ import type { Hash } from '@xylabs/hex'
|
|
|
3
3
|
import type { ReadArchivist } from '@xyo-network/archivist-model'
|
|
4
4
|
import { findMostRecentBlock } from '@xyo-network/chain-protocol'
|
|
5
5
|
import type { Payload, WithStorageMeta } from '@xyo-network/payload-model'
|
|
6
|
-
import type {
|
|
6
|
+
import type { ChainId } from '@xyo-network/xl1-protocol'
|
|
7
7
|
import { StepSizes } from '@xyo-network/xl1-protocol'
|
|
8
|
-
import type { TransfersStepSummary } from '@xyo-network/xl1-protocol-sdk'
|
|
8
|
+
import type { AccountTransfersService, TransfersStepSummary } from '@xyo-network/xl1-protocol-sdk'
|
|
9
9
|
import { LruCacheMap, readPayloadMapFromStore } from '@xyo-network/xl1-protocol-sdk'
|
|
10
10
|
import { Semaphore } from 'async-mutex'
|
|
11
11
|
|
package/src/BaseService.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { EventData } from '@xylabs/events'
|
|
|
3
3
|
import { Hash } from '@xylabs/hex'
|
|
4
4
|
import type { Promisable } from '@xylabs/promise'
|
|
5
5
|
import { spanRoot, spanRootAsync } from '@xylabs/telemetry'
|
|
6
|
-
import type { ServiceInterface } from '@xyo-network/xl1-protocol'
|
|
6
|
+
import type { ServiceInterface } from '@xyo-network/xl1-protocol-sdk'
|
|
7
7
|
import { Mutex } from 'async-mutex'
|
|
8
8
|
|
|
9
9
|
import type { BaseAccountableServiceParams, BaseServiceParams } from './model/index.ts'
|
|
@@ -14,12 +14,14 @@ import { buildNextBlock, createDeclarationIntent } from '@xyo-network/chain-prot
|
|
|
14
14
|
import { PayloadBuilder } from '@xyo-network/payload-builder'
|
|
15
15
|
import { WithStorageMeta } from '@xyo-network/payload-model'
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
asBlockBoundWitness, AttoXL1, BlockBoundWitness, BlockNumberPayload, BlockNumberSchema,
|
|
19
|
-
ChainStakeIntent, defaultRewardRatio, HydratedBlock,
|
|
20
|
-
|
|
21
|
-
XYO_STEP_REWARD_ADDRESS,
|
|
17
|
+
AllowedBlockPayload,
|
|
18
|
+
asBlockBoundWitness, AttoXL1, BlockBoundWitness, BlockNumberPayload, BlockNumberSchema,
|
|
19
|
+
ChainStakeIntent, defaultRewardRatio, HydratedBlock, SignedHydratedTransaction, TimePayload, TimeSchema,
|
|
20
|
+
Transfer, XYO_STEP_REWARD_ADDRESS,
|
|
22
21
|
} from '@xyo-network/xl1-protocol'
|
|
22
|
+
import {
|
|
23
|
+
AccountBalanceServiceV2, BlockProducerService, PendingTransactionsService, StakeIntentService, TimeSyncViewInterfaceV2,
|
|
24
|
+
} from '@xyo-network/xl1-protocol-sdk'
|
|
23
25
|
|
|
24
26
|
import { BaseService } from '../BaseService.ts'
|
|
25
27
|
import { XyoValidatorParams } from '../ChainValidator/index.ts'
|
|
@@ -21,25 +21,25 @@ import {
|
|
|
21
21
|
} from '@xyo-network/payload-model'
|
|
22
22
|
import { HDWallet } from '@xyo-network/wallet'
|
|
23
23
|
import type {
|
|
24
|
-
BlockBoundWitness,
|
|
24
|
+
BlockBoundWitness, ChainId,
|
|
25
25
|
HydratedBlock,
|
|
26
|
-
HydratedBlockStateValidationFunctionV2,
|
|
27
|
-
StakeIntentService,
|
|
28
26
|
TimeDomain, TimePayload,
|
|
29
|
-
TimeSyncViewInterfaceV2,
|
|
30
27
|
} from '@xyo-network/xl1-protocol'
|
|
31
28
|
import {
|
|
32
29
|
asBlockBoundWitness,
|
|
33
30
|
asChainStakeIntent,
|
|
34
31
|
asTransactionBoundWitness,
|
|
35
32
|
asTransfer,
|
|
36
|
-
HydratedBlockStateValidationError,
|
|
37
33
|
TimeSchema,
|
|
38
34
|
XYO_ZERO_ADDRESS,
|
|
39
35
|
} from '@xyo-network/xl1-protocol'
|
|
40
|
-
import type {
|
|
36
|
+
import type {
|
|
37
|
+
BlockRewardService, Config, ElectionService, HydratedBlockStateValidationFunctionV2, StakeIntentService,
|
|
38
|
+
TimeSyncViewInterfaceV2,
|
|
39
|
+
} from '@xyo-network/xl1-protocol-sdk'
|
|
41
40
|
import {
|
|
42
41
|
flattenHydratedBlock, flattenHydratedTransaction, getDefaultConfig,
|
|
42
|
+
HydratedBlockStateValidationError,
|
|
43
43
|
} from '@xyo-network/xl1-protocol-sdk'
|
|
44
44
|
import {
|
|
45
45
|
beforeAll, beforeEach, describe, expect, it,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { creatable } from '@xylabs/creatable'
|
|
2
2
|
import { Promisable } from '@xylabs/promise'
|
|
3
|
-
import { BlockRewardService } from '@xyo-network/xl1-protocol'
|
|
3
|
+
import { BlockRewardService } from '@xyo-network/xl1-protocol-sdk'
|
|
4
4
|
|
|
5
5
|
import { BaseService } from '../BaseService.ts'
|
|
6
6
|
import { BaseServiceParams } from '../model/index.ts'
|
|
@@ -3,7 +3,7 @@ import { creatable } from '@xylabs/creatable'
|
|
|
3
3
|
import { toEthAddress } from '@xylabs/hex'
|
|
4
4
|
import { AccountInstance } from '@xyo-network/account-model'
|
|
5
5
|
import { XyoChainRewards__factory as XyoChainRewardsFactory } from '@xyo-network/typechain'
|
|
6
|
-
import { BlockRewardService, ChainService } from '@xyo-network/xl1-protocol'
|
|
6
|
+
import { BlockRewardService, ChainService } from '@xyo-network/xl1-protocol-sdk'
|
|
7
7
|
import { Provider } from 'ethers/providers'
|
|
8
8
|
|
|
9
9
|
import { BaseBlockRewardService, BaseBlockRewardServiceParams } from './BaseBlockRewardService.ts'
|
|
@@ -3,7 +3,7 @@ import { creatable } from '@xylabs/creatable'
|
|
|
3
3
|
import { toFixedPoint } from '@xylabs/decimal-precision'
|
|
4
4
|
import { Promisable } from '@xylabs/promise'
|
|
5
5
|
import { rewardFromBlockNumber } from '@xyo-network/chain-protocol'
|
|
6
|
-
import { BlockRewardService } from '@xyo-network/xl1-protocol'
|
|
6
|
+
import { BlockRewardService } from '@xyo-network/xl1-protocol-sdk'
|
|
7
7
|
|
|
8
8
|
import { BaseBlockRewardService, BaseBlockRewardServiceParams } from './BaseBlockRewardService.ts'
|
|
9
9
|
|
|
@@ -6,16 +6,13 @@ import {
|
|
|
6
6
|
import type { ArchivistInstance } from '@xyo-network/archivist-model'
|
|
7
7
|
import { PayloadBuilder } from '@xyo-network/payload-builder'
|
|
8
8
|
import type { WithStorageMeta } from '@xyo-network/payload-model'
|
|
9
|
-
import type {
|
|
10
|
-
BlockBoundWitness,
|
|
11
|
-
ChainIteratorServiceEventData,
|
|
12
|
-
EventingChainBlockNumberIteratorService,
|
|
13
|
-
} from '@xyo-network/xl1-protocol'
|
|
9
|
+
import type { BlockBoundWitness } from '@xyo-network/xl1-protocol'
|
|
14
10
|
import {
|
|
15
11
|
asBlockBoundWitness,
|
|
16
12
|
asBlockBoundWitnessWithStorageMeta,
|
|
17
13
|
isBlockBoundWitness,
|
|
18
14
|
} from '@xyo-network/xl1-protocol'
|
|
15
|
+
import type { ChainIteratorServiceEventData, EventingChainBlockNumberIteratorService } from '@xyo-network/xl1-protocol-sdk'
|
|
19
16
|
import { LRUCache } from 'lru-cache'
|
|
20
17
|
|
|
21
18
|
import { BaseService } from '../BaseService.ts'
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
} from '@xylabs/typeof'
|
|
6
6
|
import { PayloadBuilder } from '@xyo-network/payload-builder'
|
|
7
7
|
import type { Payload, WithStorageMeta } from '@xyo-network/payload-model'
|
|
8
|
-
import type {
|
|
9
|
-
BlockBoundWitness, ChainIteratorServiceEventData, EventingChainBlockNumberIteratorService,
|
|
10
|
-
} from '@xyo-network/xl1-protocol'
|
|
8
|
+
import type { BlockBoundWitness } from '@xyo-network/xl1-protocol'
|
|
11
9
|
import {
|
|
12
10
|
asBlockBoundWitness, asBlockBoundWitnessWithStorageMeta, isBlockBoundWitnessWithHashMeta,
|
|
13
11
|
} from '@xyo-network/xl1-protocol'
|
|
14
|
-
import type {
|
|
12
|
+
import type {
|
|
13
|
+
ChainIteratorServiceEventData, EventingChainBlockNumberIteratorService, PayloadMapRead,
|
|
14
|
+
} from '@xyo-network/xl1-protocol-sdk'
|
|
15
15
|
import { LRUCache } from 'lru-cache'
|
|
16
16
|
|
|
17
17
|
import { BaseService } from '../BaseService.ts'
|
|
@@ -3,7 +3,7 @@ import type { Address } from '@xylabs/hex'
|
|
|
3
3
|
import { toAddress, toEthAddress } from '@xylabs/hex'
|
|
4
4
|
import type { StakedXyoChain } from '@xyo-network/typechain'
|
|
5
5
|
import { StakedXyoChain__factory as StakedXyoChainFactory } from '@xyo-network/typechain'
|
|
6
|
-
import type { ChainService } from '@xyo-network/xl1-protocol'
|
|
6
|
+
import type { ChainService } from '@xyo-network/xl1-protocol-sdk'
|
|
7
7
|
import { getAddress } from 'ethers/address'
|
|
8
8
|
import type { ContractRunner } from 'ethers/providers'
|
|
9
9
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Address } from '@xylabs/hex'
|
|
2
2
|
import { ZERO_ADDRESS } from '@xylabs/hex'
|
|
3
|
-
import type { ChainService } from '@xyo-network/xl1-protocol'
|
|
3
|
+
import type { ChainService } from '@xyo-network/xl1-protocol-sdk'
|
|
4
4
|
|
|
5
5
|
import { BaseService } from '../../BaseService.ts'
|
|
6
6
|
import type { BaseServiceParams } from '../../model/index.ts'
|
|
@@ -5,13 +5,12 @@ import { AccountInstance } from '@xyo-network/account-model'
|
|
|
5
5
|
import { ArchivistInstance, ReadArchivist } from '@xyo-network/archivist-model'
|
|
6
6
|
import {
|
|
7
7
|
BlockBoundWitness,
|
|
8
|
-
BlockRewardService,
|
|
9
8
|
ChainId,
|
|
10
|
-
ElectionService,
|
|
11
|
-
HydratedBlockStateValidationFunctionV2,
|
|
12
9
|
SignedHydratedTransactionWithStorageMeta,
|
|
13
|
-
StakeIntentService,
|
|
14
10
|
} from '@xyo-network/xl1-protocol'
|
|
11
|
+
import {
|
|
12
|
+
BlockRewardService, ElectionService, HydratedBlockStateValidationFunctionV2, StakeIntentService,
|
|
13
|
+
} from '@xyo-network/xl1-protocol-sdk'
|
|
15
14
|
|
|
16
15
|
import { BaseService } from '../BaseService.ts'
|
|
17
16
|
import { BaseServiceParams } from '../model/index.ts'
|
|
@@ -3,10 +3,10 @@ import { creatable } from '@xylabs/creatable'
|
|
|
3
3
|
import { Address, Hash } from '@xylabs/hex'
|
|
4
4
|
import { hexToLast4BytesInt, shuffleWithSeed } from '@xyo-network/chain-utils'
|
|
5
5
|
import { WithHashMeta } from '@xyo-network/payload-model'
|
|
6
|
+
import { BlockBoundWitness } from '@xyo-network/xl1-protocol'
|
|
6
7
|
import type {
|
|
7
|
-
ChainBlockNumberIteratorService, ChainStakeViewer, StakeIntentService,
|
|
8
|
-
} from '@xyo-network/xl1-protocol'
|
|
9
|
-
import { BlockBoundWitness, ElectionService } from '@xyo-network/xl1-protocol'
|
|
8
|
+
ChainBlockNumberIteratorService, ChainStakeViewer, ElectionService, StakeIntentService,
|
|
9
|
+
} from '@xyo-network/xl1-protocol-sdk'
|
|
10
10
|
|
|
11
11
|
import { BaseService } from '../BaseService.ts'
|
|
12
12
|
import { BaseServiceParams } from '../model/index.ts'
|
|
@@ -3,9 +3,10 @@ import { Address } from '@xylabs/hex'
|
|
|
3
3
|
import { Promisable } from '@xylabs/promise'
|
|
4
4
|
import { ReadArchivist } from '@xyo-network/archivist-model'
|
|
5
5
|
import {
|
|
6
|
-
|
|
6
|
+
StepIdentity,
|
|
7
7
|
StepIdentityString,
|
|
8
8
|
} from '@xyo-network/xl1-protocol'
|
|
9
|
+
import { EventingChainBlockNumberIteratorService, NetworkStakeStepRewardService } from '@xyo-network/xl1-protocol-sdk'
|
|
9
10
|
import { Provider } from 'ethers'
|
|
10
11
|
|
|
11
12
|
import { BaseService } from '../BaseService.ts'
|
|
@@ -13,9 +13,10 @@ import {
|
|
|
13
13
|
Payload, PayloadBundle, Sequence, WithStorageMeta,
|
|
14
14
|
} from '@xyo-network/payload-model'
|
|
15
15
|
import {
|
|
16
|
-
asBlockBoundWitnessWithHashMeta, ChainId, HydratedTransactionValidationFunction, isTransactionBoundWitnessWithStorageMeta,
|
|
16
|
+
asBlockBoundWitnessWithHashMeta, ChainId, HydratedTransactionValidationFunction, isTransactionBoundWitnessWithStorageMeta,
|
|
17
17
|
SignedHydratedTransactionWithStorageMeta,
|
|
18
18
|
} from '@xyo-network/xl1-protocol'
|
|
19
|
+
import { PendingTransactionsService } from '@xyo-network/xl1-protocol-sdk'
|
|
19
20
|
import { TransactionJsonSchemaValidator, validateTransaction } from '@xyo-network/xl1-validation'
|
|
20
21
|
import { Mutex } from 'async-mutex'
|
|
21
22
|
|
|
@@ -17,15 +17,17 @@ import {
|
|
|
17
17
|
} from '@xyo-network/chain-utils'
|
|
18
18
|
import { PayloadBuilder } from '@xyo-network/payload-builder'
|
|
19
19
|
import { Payload, WithStorageMeta } from '@xyo-network/payload-model'
|
|
20
|
-
import type { EventingChainBlockNumberIteratorService, Intent } from '@xyo-network/xl1-protocol'
|
|
21
20
|
import {
|
|
22
|
-
asBlockBoundWitness, asBlockBoundWitnessWithStorageMeta,
|
|
21
|
+
asBlockBoundWitness, asBlockBoundWitnessWithStorageMeta, asChainStakeIntent, type Intent,
|
|
22
|
+
} from '@xyo-network/xl1-protocol'
|
|
23
|
+
import {
|
|
23
24
|
asChainIndexingServiceStateWithStorageMeta,
|
|
24
|
-
|
|
25
|
+
ChainIndexingServiceState, ChainIndexingServiceStateSchema, ChainStakeViewer,
|
|
26
|
+
EventingChainBlockNumberIteratorService,
|
|
25
27
|
isChainIndexingServiceState,
|
|
28
|
+
readPayloadMapFromStore,
|
|
26
29
|
StakeIntentService,
|
|
27
|
-
} from '@xyo-network/xl1-protocol'
|
|
28
|
-
import { readPayloadMapFromStore } from '@xyo-network/xl1-protocol-sdk'
|
|
30
|
+
} from '@xyo-network/xl1-protocol-sdk'
|
|
29
31
|
import { Mutex } from 'async-mutex'
|
|
30
32
|
import { LRUCache } from 'lru-cache'
|
|
31
33
|
|
|
@@ -2,10 +2,8 @@ import { creatable } from '@xylabs/creatable'
|
|
|
2
2
|
import { Address } from '@xylabs/hex'
|
|
3
3
|
import { Promisable } from '@xylabs/promise'
|
|
4
4
|
import { ReadArchivist } from '@xyo-network/archivist-model'
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
StepStakeService,
|
|
8
|
-
} from '@xyo-network/xl1-protocol'
|
|
5
|
+
import { StepIdentity } from '@xyo-network/xl1-protocol'
|
|
6
|
+
import { StepStakeService } from '@xyo-network/xl1-protocol-sdk'
|
|
9
7
|
|
|
10
8
|
import { BaseService } from '../BaseService.ts'
|
|
11
9
|
import { BaseServiceParams } from '../model/index.ts'
|
|
@@ -6,9 +6,9 @@ import { ReadArchivist } from '@xyo-network/archivist-model'
|
|
|
6
6
|
import { PayloadBuilder } from '@xyo-network/payload-builder'
|
|
7
7
|
import {
|
|
8
8
|
asTimePayload,
|
|
9
|
-
|
|
10
|
-
TimeSyncServiceV2,
|
|
9
|
+
TimeDomain, TimePayload, TimeSchema,
|
|
11
10
|
} from '@xyo-network/xl1-protocol'
|
|
11
|
+
import { EventingChainBlockNumberIteratorService, TimeSyncServiceV2 } from '@xyo-network/xl1-protocol-sdk'
|
|
12
12
|
import { Provider } from 'ethers'
|
|
13
13
|
|
|
14
14
|
import { BaseService } from '../BaseService.ts'
|