@xyo-network/chain-services 1.7.0 → 1.7.2
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 +1 -1
- package/dist/neutral/AccountBalance/BaseAccountBalanceService.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 +1 -1
- 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/ChainBlockNumberIteration/ChainBlockNumberIterationService.d.ts +1 -1
- package/dist/neutral/ChainBlockNumberIteration/ChainBlockNumberIterationService.d.ts.map +1 -1
- package/dist/neutral/ChainBlockNumberIteration/model/Params.d.ts +1 -1
- package/dist/neutral/ChainBlockNumberIteration/model/Params.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 -2
- package/dist/neutral/ChainValidator/XyoValidator.d.ts.map +1 -1
- package/dist/neutral/Election/BaseElectionService.d.ts +1 -1
- package/dist/neutral/Election/BaseElectionService.d.ts.map +1 -1
- package/dist/neutral/PendingTransactions/BasePendingTransactions.d.ts +1 -1
- package/dist/neutral/PendingTransactions/BasePendingTransactions.d.ts.map +1 -1
- package/dist/neutral/StakeIntent/XyoStakeIntentService.d.ts +3 -3
- package/dist/neutral/StakeIntent/XyoStakeIntentService.d.ts.map +1 -1
- package/dist/neutral/index.d.ts +12 -362
- package/dist/neutral/index.mjs.map +1 -1
- package/package.json +39 -39
- package/src/AccountBalance/BaseAccountBalanceService.ts +1 -1
- package/src/BaseService.ts +1 -1
- package/src/BlockReward/BaseBlockRewardService.ts +1 -1
- package/src/ChainBlockNumberIteration/ChainBlockNumberIterationService.ts +1 -1
- package/src/ChainBlockNumberIteration/model/Params.ts +1 -1
- package/src/ChainService/Evm/Evm.ts +1 -1
- package/src/ChainService/Memory/Memory.ts +1 -1
- package/src/ChainValidator/XyoValidator.ts +1 -1
- package/src/Election/BaseElectionService.ts +1 -1
- package/src/PendingTransactions/BasePendingTransactions.ts +1 -1
- package/src/StakeIntent/XyoStakeIntentService.ts +1 -1
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.7.
|
|
4
|
+
"version": "1.7.2",
|
|
5
5
|
"description": "XYO Layer One SDK Services",
|
|
6
6
|
"homepage": "https://xylabs.com",
|
|
7
7
|
"bugs": {
|
|
@@ -35,50 +35,50 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@opentelemetry/api": "^1.9.0",
|
|
38
|
-
"@xylabs/array": "^4.13.
|
|
39
|
-
"@xylabs/assert": "^4.13.
|
|
40
|
-
"@xylabs/creatable": "^4.13.
|
|
41
|
-
"@xylabs/decimal-precision": "^4.13.
|
|
42
|
-
"@xylabs/events": "^4.13.
|
|
43
|
-
"@xylabs/exists": "^4.13.
|
|
44
|
-
"@xylabs/forget": "^4.13.
|
|
45
|
-
"@xylabs/hex": "^4.13.
|
|
46
|
-
"@xylabs/promise": "^4.13.
|
|
47
|
-
"@xylabs/telemetry": "^4.13.
|
|
48
|
-
"@xylabs/typeof": "^4.13.
|
|
49
|
-
"@xyo-network/account-model": "^4.1.
|
|
50
|
-
"@xyo-network/archivist-memory": "^4.1.
|
|
51
|
-
"@xyo-network/archivist-model": "^4.1.
|
|
52
|
-
"@xyo-network/boundwitness-model": "^4.1.
|
|
53
|
-
"@xyo-network/boundwitness-validator": "^4.1.
|
|
54
|
-
"@xyo-network/boundwitness-wrapper": "^4.1.
|
|
55
|
-
"@xyo-network/chain-analyze": "^1.7.
|
|
56
|
-
"@xyo-network/chain-ethereum": "^1.7.
|
|
57
|
-
"@xyo-network/chain-modules": "^1.7.
|
|
58
|
-
"@xyo-network/chain-protocol": "^1.7.
|
|
59
|
-
"@xyo-network/chain-telemetry": "^1.7.
|
|
60
|
-
"@xyo-network/chain-utils": "^1.7.
|
|
61
|
-
"@xyo-network/chain-validation": "^1.7.
|
|
62
|
-
"@xyo-network/chain-wrappers": "^1.7.
|
|
63
|
-
"@xyo-network/payload-builder": "^4.1.
|
|
64
|
-
"@xyo-network/payload-model": "^4.1.
|
|
38
|
+
"@xylabs/array": "^4.13.17",
|
|
39
|
+
"@xylabs/assert": "^4.13.17",
|
|
40
|
+
"@xylabs/creatable": "^4.13.17",
|
|
41
|
+
"@xylabs/decimal-precision": "^4.13.17",
|
|
42
|
+
"@xylabs/events": "^4.13.17",
|
|
43
|
+
"@xylabs/exists": "^4.13.17",
|
|
44
|
+
"@xylabs/forget": "^4.13.17",
|
|
45
|
+
"@xylabs/hex": "^4.13.17",
|
|
46
|
+
"@xylabs/promise": "^4.13.17",
|
|
47
|
+
"@xylabs/telemetry": "^4.13.17",
|
|
48
|
+
"@xylabs/typeof": "^4.13.17",
|
|
49
|
+
"@xyo-network/account-model": "^4.1.3",
|
|
50
|
+
"@xyo-network/archivist-memory": "^4.1.3",
|
|
51
|
+
"@xyo-network/archivist-model": "^4.1.3",
|
|
52
|
+
"@xyo-network/boundwitness-model": "^4.1.3",
|
|
53
|
+
"@xyo-network/boundwitness-validator": "^4.1.3",
|
|
54
|
+
"@xyo-network/boundwitness-wrapper": "^4.1.3",
|
|
55
|
+
"@xyo-network/chain-analyze": "^1.7.2",
|
|
56
|
+
"@xyo-network/chain-ethereum": "^1.7.2",
|
|
57
|
+
"@xyo-network/chain-modules": "^1.7.2",
|
|
58
|
+
"@xyo-network/chain-protocol": "^1.7.2",
|
|
59
|
+
"@xyo-network/chain-telemetry": "^1.7.2",
|
|
60
|
+
"@xyo-network/chain-utils": "^1.7.2",
|
|
61
|
+
"@xyo-network/chain-validation": "^1.7.2",
|
|
62
|
+
"@xyo-network/chain-wrappers": "^1.7.2",
|
|
63
|
+
"@xyo-network/payload-builder": "^4.1.3",
|
|
64
|
+
"@xyo-network/payload-model": "^4.1.3",
|
|
65
65
|
"@xyo-network/typechain": "^3.5.4",
|
|
66
|
-
"@xyo-network/xl1-protocol": "^1.
|
|
67
|
-
"@xyo-network/xl1-protocol-sdk": "^1.7.
|
|
66
|
+
"@xyo-network/xl1-protocol": "^1.7.1",
|
|
67
|
+
"@xyo-network/xl1-protocol-sdk": "^1.7.2",
|
|
68
68
|
"async-mutex": "^0.5.0",
|
|
69
69
|
"ethers": "6.15.0",
|
|
70
70
|
"lru-cache": "^11.1.0"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@types/node": "^24.0.
|
|
74
|
-
"@xylabs/delay": "^4.13.
|
|
75
|
-
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.
|
|
76
|
-
"@xylabs/tsconfig": "^7.0.0-rc.
|
|
77
|
-
"@xylabs/vitest-extended": "^4.13.
|
|
78
|
-
"@xyo-network/account": "^4.1.
|
|
79
|
-
"@xyo-network/account-model": "^4.1.
|
|
80
|
-
"@xyo-network/chain-validation": "^1.7.
|
|
81
|
-
"@xyo-network/wallet": "^4.1.
|
|
73
|
+
"@types/node": "^24.0.14",
|
|
74
|
+
"@xylabs/delay": "^4.13.17",
|
|
75
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.27",
|
|
76
|
+
"@xylabs/tsconfig": "^7.0.0-rc.27",
|
|
77
|
+
"@xylabs/vitest-extended": "^4.13.17",
|
|
78
|
+
"@xyo-network/account": "^4.1.3",
|
|
79
|
+
"@xyo-network/account-model": "^4.1.3",
|
|
80
|
+
"@xyo-network/chain-validation": "^1.7.2",
|
|
81
|
+
"@xyo-network/wallet": "^4.1.3",
|
|
82
82
|
"knip": "^5.61.3",
|
|
83
83
|
"typescript": "^5.8.3",
|
|
84
84
|
"vitest": "^3.2.4",
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from '@xyo-network/xl1-protocol-sdk'
|
|
12
12
|
|
|
13
13
|
import { BaseService } from '../BaseService.ts'
|
|
14
|
-
import { BaseServiceParams } from '../model/
|
|
14
|
+
import { BaseServiceParams } from '../model/index.ts'
|
|
15
15
|
|
|
16
16
|
export interface BaseAccountBalanceServiceParams extends BaseServiceParams {
|
|
17
17
|
chainArchivist: ReadArchivist
|
package/src/BaseService.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { span, spanAsync } from '@xylabs/telemetry'
|
|
|
5
5
|
import type { Service } from '@xyo-network/xl1-protocol'
|
|
6
6
|
import { Mutex } from 'async-mutex'
|
|
7
7
|
|
|
8
|
-
import type { BaseAccountableServiceParams, BaseServiceParams } from './model/
|
|
8
|
+
import type { BaseAccountableServiceParams, BaseServiceParams } from './model/index.ts'
|
|
9
9
|
|
|
10
10
|
declare global {
|
|
11
11
|
var xyoServiceSingletons: Record<string, unknown>
|
|
@@ -3,7 +3,7 @@ import { Promisable } from '@xylabs/promise'
|
|
|
3
3
|
import { BlockRewardService } from '@xyo-network/xl1-protocol'
|
|
4
4
|
|
|
5
5
|
import { BaseService } from '../BaseService.ts'
|
|
6
|
-
import { BaseServiceParams } from '../model/
|
|
6
|
+
import { BaseServiceParams } from '../model/index.ts'
|
|
7
7
|
|
|
8
8
|
export interface BaseBlockRewardServiceParams extends BaseServiceParams {}
|
|
9
9
|
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import { LRUCache } from 'lru-cache'
|
|
16
16
|
|
|
17
17
|
import { BaseService } from '../BaseService.ts'
|
|
18
|
-
import type { XyoChainIteratorParams } from './model/
|
|
18
|
+
import type { XyoChainIteratorParams } from './model/index.ts'
|
|
19
19
|
|
|
20
20
|
export class ChainBlockNumberIterationService extends BaseService<XyoChainIteratorParams, ChainIteratorEventData> implements EventingChainBlockNumberIterator {
|
|
21
21
|
protected _blocksByBlockNumber = new LRUCache<number, BlockBoundWitness>({ max: 10_000 })
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ArchivistInstance } from '@xyo-network/archivist-model'
|
|
2
2
|
import type { BlockBoundWitness } from '@xyo-network/xl1-protocol'
|
|
3
3
|
|
|
4
|
-
import type { BaseServiceParams } from '../../model/
|
|
4
|
+
import type { BaseServiceParams } from '../../model/index.ts'
|
|
5
5
|
|
|
6
6
|
export interface XyoChainIteratorParams extends BaseServiceParams {
|
|
7
7
|
chainArchivist: ArchivistInstance
|
|
@@ -9,7 +9,7 @@ import { getAddress } from 'ethers/address'
|
|
|
9
9
|
import type { ContractRunner } from 'ethers/providers'
|
|
10
10
|
|
|
11
11
|
import { BaseService } from '../../BaseService.ts'
|
|
12
|
-
import type { BaseServiceParams } from '../../model/
|
|
12
|
+
import type { BaseServiceParams } from '../../model/index.ts'
|
|
13
13
|
|
|
14
14
|
export interface EvmChainServiceParams extends BaseServiceParams {
|
|
15
15
|
contract: StakedXyoChain
|
|
@@ -4,7 +4,7 @@ import { isDefined } from '@xylabs/typeof'
|
|
|
4
4
|
import type { ChainService } from '@xyo-network/xl1-protocol'
|
|
5
5
|
|
|
6
6
|
import { BaseService } from '../../BaseService.ts'
|
|
7
|
-
import type { BaseServiceParams } from '../../model/
|
|
7
|
+
import type { BaseServiceParams } from '../../model/index.ts'
|
|
8
8
|
|
|
9
9
|
export interface MemoryChainServiceParams extends BaseServiceParams {}
|
|
10
10
|
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from '@xyo-network/xl1-protocol'
|
|
15
15
|
|
|
16
16
|
import { BaseService } from '../BaseService.ts'
|
|
17
|
-
import { BaseServiceParams } from '../model/
|
|
17
|
+
import { BaseServiceParams } from '../model/index.ts'
|
|
18
18
|
import { Validator } from './model/index.ts'
|
|
19
19
|
|
|
20
20
|
export interface XyoValidatorParams extends BaseServiceParams {
|
|
@@ -9,7 +9,7 @@ import type {
|
|
|
9
9
|
import { BlockBoundWitness, ElectionService } from '@xyo-network/xl1-protocol'
|
|
10
10
|
|
|
11
11
|
import { BaseService } from '../BaseService.ts'
|
|
12
|
-
import { BaseServiceParams } from '../model/
|
|
12
|
+
import { BaseServiceParams } from '../model/index.ts'
|
|
13
13
|
|
|
14
14
|
export interface BaseElectionServicesParams extends BaseServiceParams {
|
|
15
15
|
chainIterator?: ChainBlockNumberIterator
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
import { Mutex } from 'async-mutex'
|
|
21
21
|
|
|
22
22
|
import { BaseService } from '../BaseService.ts'
|
|
23
|
-
import { BaseServiceParams } from '../model/
|
|
23
|
+
import { BaseServiceParams } from '../model/index.ts'
|
|
24
24
|
import { bundledPayloadToHydratedTransaction } from './bundledPayloadToHydratedTransaction.ts'
|
|
25
25
|
import { hydratedTransactionToPayloadBundle } from './hydratedTransactionToPayloadBundle.ts'
|
|
26
26
|
|
|
@@ -29,7 +29,7 @@ import { Mutex } from 'async-mutex'
|
|
|
29
29
|
import { LRUCache } from 'lru-cache'
|
|
30
30
|
|
|
31
31
|
import { BaseService } from '../BaseService.ts'
|
|
32
|
-
import { BaseServiceParams } from '../model/
|
|
32
|
+
import { BaseServiceParams } from '../model/index.ts'
|
|
33
33
|
|
|
34
34
|
export interface XyoStakeIntentServiceParams extends BaseServiceParams {
|
|
35
35
|
chainArchivist?: ArchivistInstance
|