@xyo-network/chain-orchestration 1.20.14 → 1.20.16
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/README.md +9 -177
- package/dist/browser/index.mjs.map +1 -1
- package/dist/browser/shared/config/actors/Api.d.ts +9 -539
- package/dist/browser/shared/config/actors/Api.d.ts.map +1 -1
- package/dist/browser/shared/config/actors/Bridge.d.ts +9 -689
- package/dist/browser/shared/config/actors/Bridge.d.ts.map +1 -1
- package/dist/browser/shared/config/actors/Mempool.d.ts +9 -539
- package/dist/browser/shared/config/actors/Mempool.d.ts.map +1 -1
- package/dist/browser/shared/config/actors/Producer.d.ts +9 -575
- package/dist/browser/shared/config/actors/Producer.d.ts.map +1 -1
- package/dist/browser/shared/config/actors/RewardRedemption.d.ts +9 -533
- package/dist/browser/shared/config/actors/RewardRedemption.d.ts.map +1 -1
- package/dist/browser/shared/config/actors/Validator.d.ts +9 -563
- package/dist/browser/shared/config/actors/Validator.d.ts.map +1 -1
- package/dist/browser/shared/createDeclarationIntentBlock.d.ts +11 -11
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/shared/config/actors/Api.d.ts +9 -539
- package/dist/neutral/shared/config/actors/Api.d.ts.map +1 -1
- package/dist/neutral/shared/config/actors/Bridge.d.ts +9 -689
- package/dist/neutral/shared/config/actors/Bridge.d.ts.map +1 -1
- package/dist/neutral/shared/config/actors/Mempool.d.ts +9 -539
- package/dist/neutral/shared/config/actors/Mempool.d.ts.map +1 -1
- package/dist/neutral/shared/config/actors/Producer.d.ts +9 -575
- package/dist/neutral/shared/config/actors/Producer.d.ts.map +1 -1
- package/dist/neutral/shared/config/actors/RewardRedemption.d.ts +9 -533
- package/dist/neutral/shared/config/actors/RewardRedemption.d.ts.map +1 -1
- package/dist/neutral/shared/config/actors/Validator.d.ts +9 -563
- package/dist/neutral/shared/config/actors/Validator.d.ts.map +1 -1
- package/dist/neutral/shared/createDeclarationIntentBlock.d.ts +11 -11
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/shared/config/actors/Api.d.ts +9 -539
- package/dist/node/shared/config/actors/Api.d.ts.map +1 -1
- package/dist/node/shared/config/actors/Bridge.d.ts +9 -689
- package/dist/node/shared/config/actors/Bridge.d.ts.map +1 -1
- package/dist/node/shared/config/actors/Mempool.d.ts +9 -539
- package/dist/node/shared/config/actors/Mempool.d.ts.map +1 -1
- package/dist/node/shared/config/actors/Producer.d.ts +9 -575
- package/dist/node/shared/config/actors/Producer.d.ts.map +1 -1
- package/dist/node/shared/config/actors/RewardRedemption.d.ts +9 -533
- package/dist/node/shared/config/actors/RewardRedemption.d.ts.map +1 -1
- package/dist/node/shared/config/actors/Validator.d.ts +9 -563
- package/dist/node/shared/config/actors/Validator.d.ts.map +1 -1
- package/dist/node/shared/createDeclarationIntentBlock.d.ts +11 -11
- package/package.json +136 -52
- package/src/neutral/config/index.ts +0 -1
- package/src/neutral/config/locators/basicRemoteRunnerLocator.ts +0 -14
- package/src/neutral/config/locators/basicRemoteViewerLocator.ts +0 -11
- package/src/neutral/config/locators/index.ts +0 -3
- package/src/neutral/config/locators/rootLocatorFromConfig.ts +0 -19
- package/src/neutral/index.ts +0 -2
- package/src/node/archivists/ChainFinalized/archivist.ts +0 -21
- package/src/node/archivists/ChainFinalized/index.ts +0 -1
- package/src/node/archivists/ChainFinalized/local.ts +0 -17
- package/src/node/archivists/PendingBlocks/archivist.ts +0 -21
- package/src/node/archivists/PendingBlocks/index.ts +0 -1
- package/src/node/archivists/PendingBlocks/local.ts +0 -17
- package/src/node/archivists/RejectedTransactions/archivist.ts +0 -21
- package/src/node/archivists/RejectedTransactions/index.ts +0 -1
- package/src/node/archivists/RejectedTransactions/local.ts +0 -19
- package/src/node/archivists/StakeIntentState/archivist.ts +0 -21
- package/src/node/archivists/StakeIntentState/index.ts +0 -1
- package/src/node/archivists/StakeIntentState/local.ts +0 -18
- package/src/node/archivists/index.ts +0 -4
- package/src/node/archivists/lib/index.ts +0 -1
- package/src/node/archivists/lib/localPersistentArchivist.ts +0 -63
- package/src/node/config/index.ts +0 -2
- package/src/node/config/locators/actors/apiLocatorFromConfig.ts +0 -25
- package/src/node/config/locators/actors/bridgeLocatorFromConfig.ts +0 -83
- package/src/node/config/locators/actors/index.ts +0 -6
- package/src/node/config/locators/actors/mempoolLocatorFromConfig.ts +0 -17
- package/src/node/config/locators/actors/producerLocatorFromConfig.ts +0 -29
- package/src/node/config/locators/actors/rewardRedemptionLocatorFromConfig.ts +0 -56
- package/src/node/config/locators/actors/validatorLocatorFromConfig.ts +0 -15
- package/src/node/config/locators/basicRemoteRunnerLocator.ts +0 -38
- package/src/node/config/locators/basicRemoteViewerLocator.ts +0 -19
- package/src/node/config/locators/contextFromConfigWithoutLocator.ts +0 -25
- package/src/node/config/locators/index.ts +0 -7
- package/src/node/config/locators/localLocatorFromConfig.ts +0 -75
- package/src/node/config/locators/localViewerFromConfig.ts +0 -14
- package/src/node/config/locators/locatorsFromConfig.ts +0 -75
- package/src/node/config/locators/remoteViewerFromConfig.ts +0 -13
- package/src/node/config/locators/rootLocatorFromConfig.ts +0 -22
- package/src/node/config/locators/telemetryContextFromConfig.ts +0 -15
- package/src/node/config/tryParseConfig.ts +0 -42
- package/src/node/evm/index.ts +0 -4
- package/src/node/evm/initChainId.ts +0 -20
- package/src/node/evm/initEvmProvider.ts +0 -22
- package/src/node/evm/initInfuraProvider.ts +0 -29
- package/src/node/evm/initJsonRpcProvider.ts +0 -22
- package/src/node/health/index.ts +0 -1
- package/src/node/health/initHealthEndpoints.ts +0 -67
- package/src/node/index.ts +0 -8
- package/src/node/init/index.ts +0 -6
- package/src/node/init/initBalanceSummaryMap.ts +0 -33
- package/src/node/init/initEvmProvidersIfAvailable.ts +0 -93
- package/src/node/init/initFinalizationArchivistIfNeeded.ts +0 -44
- package/src/node/init/initFinalizedArchivist.ts +0 -16
- package/src/node/init/initServerNode.ts +0 -51
- package/src/node/init/initTransferSummaryMap.ts +0 -33
- package/src/node/manifest/getLocator.ts +0 -65
- package/src/node/manifest/index.ts +0 -5
- package/src/node/manifest/loadNode.ts +0 -26
- package/src/node/manifest/node.json +0 -17
- package/src/node/manifest/nodeManifest.ts +0 -8
- package/src/node/manifest/private/index.ts +0 -4
- package/src/node/manifest/public/Chain.json +0 -49
- package/src/node/manifest/public/Pending.json +0 -54
- package/src/node/manifest/public/index.ts +0 -20
- package/src/node/sharedMiddleware.ts +0 -24
- package/src/shared/ChainInitializableParams.ts +0 -4
- package/src/shared/actor/ValidatorActor.ts +0 -75
- package/src/shared/actor/index.ts +0 -1
- package/src/shared/buildTelemetryConfig.ts +0 -10
- package/src/shared/config/actors/Api.ts +0 -29
- package/src/shared/config/actors/Bridge.ts +0 -131
- package/src/shared/config/actors/Mempool.ts +0 -39
- package/src/shared/config/actors/Producer.ts +0 -56
- package/src/shared/config/actors/RewardRedemption.ts +0 -21
- package/src/shared/config/actors/Validator.ts +0 -22
- package/src/shared/config/actors/index.ts +0 -7
- package/src/shared/config/index.ts +0 -3
- package/src/shared/config/locators/basicRemoteRunnerLocator.ts +0 -63
- package/src/shared/config/locators/basicRemoteViewerLocator.ts +0 -44
- package/src/shared/config/locators/commonLocatorFromConfig.ts +0 -40
- package/src/shared/config/locators/index.ts +0 -4
- package/src/shared/config/locators/remoteLocatorFromConfig.ts +0 -56
- package/src/shared/config/mergeConfig.ts +0 -11
- package/src/shared/createDeclarationIntentBlock.ts +0 -19
- package/src/shared/host/implementation/DefaultHost.ts +0 -25
- package/src/shared/host/implementation/DefaultServiceCollection.ts +0 -60
- package/src/shared/host/implementation/DefaultServiceProvider.ts +0 -12
- package/src/shared/host/implementation/index.ts +0 -2
- package/src/shared/host/index.ts +0 -2
- package/src/shared/host/model/Host.ts +0 -21
- package/src/shared/host/model/ServiceCollection.ts +0 -22
- package/src/shared/host/model/ServiceProvider.ts +0 -3
- package/src/shared/host/model/index.ts +0 -3
- package/src/shared/index.ts +0 -8
- package/src/shared/init/index.ts +0 -5
- package/src/shared/init/initActorAccount.ts +0 -28
- package/src/shared/init/initActorSeedPhrase.ts +0 -29
- package/src/shared/init/initBridgedModule.ts +0 -40
- package/src/shared/init/initStatusReporter.ts +0 -15
- package/src/shared/init/initWallet.ts +0 -44
- package/src/shared/orchestrator/Orchestrator.ts +0 -66
- package/src/shared/orchestrator/index.ts +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/chain-orchestration",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.16",
|
|
4
4
|
"description": "XYO Layer One SDK Orchestration",
|
|
5
5
|
"homepage": "https://xylabs.com",
|
|
6
6
|
"bugs": {
|
|
@@ -23,17 +23,14 @@
|
|
|
23
23
|
".": {
|
|
24
24
|
"browser": {
|
|
25
25
|
"types": "./dist/browser/neutral/index.d.ts",
|
|
26
|
-
"source": "./src/neutral/index.ts",
|
|
27
26
|
"default": "./dist/browser/index.mjs"
|
|
28
27
|
},
|
|
29
28
|
"node": {
|
|
30
29
|
"types": "./dist/node/node/index.d.ts",
|
|
31
|
-
"source": "./src/node/index.ts",
|
|
32
30
|
"default": "./dist/node/index.mjs"
|
|
33
31
|
},
|
|
34
32
|
"neutral": {
|
|
35
33
|
"types": "./dist/neutral/neutral/index.d.ts",
|
|
36
|
-
"source": "./src/neutral/index.ts",
|
|
37
34
|
"default": "./dist/neutral/index.mjs"
|
|
38
35
|
}
|
|
39
36
|
},
|
|
@@ -41,77 +38,164 @@
|
|
|
41
38
|
},
|
|
42
39
|
"files": [
|
|
43
40
|
"dist",
|
|
44
|
-
"src",
|
|
45
41
|
"!**/*.bench.*",
|
|
46
42
|
"!**/*.spec.*",
|
|
47
|
-
"!**/*.test.*"
|
|
43
|
+
"!**/*.test.*",
|
|
44
|
+
"README.md"
|
|
48
45
|
],
|
|
49
46
|
"dependencies": {
|
|
50
|
-
"@xyo-network/archivist-lmdb": "~5.3.
|
|
51
|
-
"@xyo-network/archivist-mongodb": "~5.3.
|
|
52
|
-
"@xyo-network/archivist-view": "~5.3.
|
|
47
|
+
"@xyo-network/archivist-lmdb": "~5.3.30",
|
|
48
|
+
"@xyo-network/archivist-mongodb": "~5.3.30",
|
|
49
|
+
"@xyo-network/archivist-view": "~5.3.30",
|
|
53
50
|
"@xyo-network/bios": "~7.2.1",
|
|
54
51
|
"@xyo-network/bios-model": "~7.2.1",
|
|
55
|
-
"@xyo-network/
|
|
56
|
-
"@xyo-network/
|
|
57
|
-
"@xyo-network/
|
|
58
|
-
"@xyo-network/chain-services": "~1.20.14",
|
|
59
|
-
"@xyo-network/chain-telemetry": "~1.20.14",
|
|
60
|
-
"@xyo-network/chain-utils": "~1.20.14",
|
|
61
|
-
"@xyo-network/chain-validation": "~1.20.14",
|
|
62
|
-
"@xyo-network/sdk-js": "~5.3.20",
|
|
63
|
-
"@xyo-network/wallet-model": "~5.3.20",
|
|
52
|
+
"@xyo-network/sdk-js": "~5.3.30",
|
|
53
|
+
"@xyo-network/wallet-model": "~5.3.30",
|
|
54
|
+
"@xyo-network/xl1-sdk": "^1.26.19",
|
|
64
55
|
"async-mutex": "~0.5.0",
|
|
65
56
|
"compression": "~1.8.1",
|
|
66
|
-
"cors": "~2.8.6"
|
|
57
|
+
"cors": "~2.8.6",
|
|
58
|
+
"cosmiconfig": "^9",
|
|
59
|
+
"express": "^5",
|
|
60
|
+
"@xyo-network/chain-protocol": "~1.20.16",
|
|
61
|
+
"@xyo-network/chain-utils": "~1.20.16",
|
|
62
|
+
"@xyo-network/chain-validation": "~1.20.16",
|
|
63
|
+
"@xyo-network/chain-ethereum": "~1.20.16",
|
|
64
|
+
"@xyo-network/chain-sdk": "~1.20.16"
|
|
67
65
|
},
|
|
68
66
|
"devDependencies": {
|
|
69
67
|
"@opentelemetry/api": "^1.9.1",
|
|
70
68
|
"@types/compression": "~1.8.1",
|
|
71
69
|
"@types/cors": "~2.8.19",
|
|
72
|
-
"@types/
|
|
73
|
-
"@
|
|
74
|
-
"@xylabs/
|
|
75
|
-
"@xylabs/
|
|
76
|
-
"@xylabs/
|
|
77
|
-
"@xylabs/ts-scripts-
|
|
78
|
-
"@xylabs/
|
|
79
|
-
"@xylabs/
|
|
80
|
-
"@xyo-network/
|
|
81
|
-
"@xyo-network/
|
|
82
|
-
"@xyo-network/
|
|
70
|
+
"@types/express": "^5.0.6",
|
|
71
|
+
"@types/node": "~25.5.2",
|
|
72
|
+
"@xylabs/express": "~5.0.93",
|
|
73
|
+
"@xylabs/mongo": "~5.0.95",
|
|
74
|
+
"@xylabs/sdk-js": "~5.0.95",
|
|
75
|
+
"@xylabs/ts-scripts-common": "~7.9.3",
|
|
76
|
+
"@xylabs/ts-scripts-pnpm": "~7.9.3",
|
|
77
|
+
"@xylabs/tsconfig": "~7.9.3",
|
|
78
|
+
"@xyo-network/account": "~5.3.30",
|
|
79
|
+
"@xyo-network/account-model": "~5.3",
|
|
80
|
+
"@xyo-network/api-models": "~5.3.30",
|
|
81
|
+
"@xyo-network/archivist-abstract": "~5.3",
|
|
82
|
+
"@xyo-network/archivist-generic": "~5.3.30",
|
|
83
|
+
"@xyo-network/archivist-memory": "~5.3.30",
|
|
84
|
+
"@xyo-network/archivist-model": "~5.3",
|
|
85
|
+
"@xyo-network/archivist-wrapper": "~5.3",
|
|
86
|
+
"@xyo-network/boundwitness-builder": "~5.3.30",
|
|
87
|
+
"@xyo-network/boundwitness-validator": "~5.3",
|
|
88
|
+
"@xyo-network/bridge-abstract": "~5.3.30",
|
|
89
|
+
"@xyo-network/bridge-model": "~5.3.30",
|
|
90
|
+
"@xyo-network/config-payload-plugin": "~5.3.30",
|
|
91
|
+
"@xyo-network/data": "~5.3.30",
|
|
92
|
+
"@xyo-network/diviner-abstract": "~5.3",
|
|
93
|
+
"@xyo-network/diviner-boundwitness-memory": "~5.3.30",
|
|
94
|
+
"@xyo-network/diviner-identity": "~5.3.30",
|
|
95
|
+
"@xyo-network/diviner-model": "~5.3.30",
|
|
96
|
+
"@xyo-network/diviner-payload-generic": "~5.3.30",
|
|
97
|
+
"@xyo-network/diviner-payload-model": "~5.3.30",
|
|
98
|
+
"@xyo-network/diviner-wrapper": "~5.3",
|
|
99
|
+
"@xyo-network/dns": "~5.3.30",
|
|
100
|
+
"@xyo-network/domain-payload-plugin": "~5.3.30",
|
|
101
|
+
"@xyo-network/elliptic": "~5.3.30",
|
|
102
|
+
"@xyo-network/hash": "~5.3",
|
|
103
|
+
"@xyo-network/huri": "~5.3.30",
|
|
104
|
+
"@xyo-network/manifest-model": "~5.3",
|
|
105
|
+
"@xyo-network/module-abstract": "~5.3",
|
|
106
|
+
"@xyo-network/module-model": "~5.3",
|
|
107
|
+
"@xyo-network/module-model-mongodb": "~5.3.30",
|
|
108
|
+
"@xyo-network/module-resolver": "~5.3.30",
|
|
109
|
+
"@xyo-network/module-wrapper": "~5.3",
|
|
110
|
+
"@xyo-network/network": "~5.3.30",
|
|
111
|
+
"@xyo-network/node-abstract": "~5.3.30",
|
|
112
|
+
"@xyo-network/node-memory": "~5.3.30",
|
|
113
|
+
"@xyo-network/node-model": "~5.3.30",
|
|
114
|
+
"@xyo-network/node-view": "~5.3.30",
|
|
115
|
+
"@xyo-network/node-wrapper": "~5.3",
|
|
116
|
+
"@xyo-network/payload-builder": "~5.3",
|
|
117
|
+
"@xyo-network/payload-model": "~5.3.30",
|
|
118
|
+
"@xyo-network/payload-validator": "~5.3",
|
|
119
|
+
"@xyo-network/previous-hash-store-model": "~5.3.30",
|
|
120
|
+
"@xyo-network/sentinel-abstract": "~5.3.30",
|
|
121
|
+
"@xyo-network/sentinel-memory": "~5.3.30",
|
|
122
|
+
"@xyo-network/sentinel-model": "~5.3.30",
|
|
83
123
|
"@xyo-network/storage-model": "~7.2.1",
|
|
84
|
-
"@xyo-network/
|
|
85
|
-
"@xyo-network/
|
|
86
|
-
"
|
|
87
|
-
"
|
|
124
|
+
"@xyo-network/wasm": "~5.3.30",
|
|
125
|
+
"@xyo-network/witness-adhoc": "~5.3.30",
|
|
126
|
+
"@xyo-network/witness-model": "~5.3.30",
|
|
127
|
+
"ajv": "^8",
|
|
128
|
+
"axios": "^1.14.0",
|
|
129
|
+
"esbuild": ">=0.18",
|
|
88
130
|
"ethers": "^6.16.0",
|
|
89
|
-
"
|
|
90
|
-
"lmdb": "^3.5.2",
|
|
131
|
+
"lmdb": "^3.5.3",
|
|
91
132
|
"mongodb": "~7.1.1",
|
|
133
|
+
"pako": "~2.1.0",
|
|
134
|
+
"tslib": "^2.8.1",
|
|
92
135
|
"typescript": "~5.9.3",
|
|
93
|
-
"
|
|
94
|
-
"
|
|
136
|
+
"vite": "^8.0.7",
|
|
137
|
+
"vitest": "^4.1.3",
|
|
138
|
+
"zod": "^4.3.6",
|
|
139
|
+
"@xyo-network/chain-telemetry": "~1.20.16",
|
|
140
|
+
"@xyo-network/chain-services": "~1.20.16"
|
|
95
141
|
},
|
|
96
142
|
"peerDependencies": {
|
|
97
|
-
"@xylabs/express": "
|
|
98
|
-
"@xylabs/mongo": "
|
|
99
|
-
"@xylabs/sdk-js": "
|
|
100
|
-
"@
|
|
101
|
-
"@xyo-network/
|
|
102
|
-
"@xyo-network/
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
143
|
+
"@xylabs/express": "~5.0.93",
|
|
144
|
+
"@xylabs/mongo": "~5.0.93",
|
|
145
|
+
"@xylabs/sdk-js": "~5.0.93",
|
|
146
|
+
"@xyo-network/account": "~5.3.30",
|
|
147
|
+
"@xyo-network/account-model": "~5.3",
|
|
148
|
+
"@xyo-network/api-models": "~5.3.30",
|
|
149
|
+
"@xyo-network/archivist-abstract": "~5.3",
|
|
150
|
+
"@xyo-network/archivist-generic": "~5.3.30",
|
|
151
|
+
"@xyo-network/archivist-memory": "~5.3.30",
|
|
152
|
+
"@xyo-network/archivist-model": "~5.3",
|
|
153
|
+
"@xyo-network/boundwitness-builder": "~5.3.30",
|
|
154
|
+
"@xyo-network/boundwitness-validator": "~5.3",
|
|
155
|
+
"@xyo-network/bridge-abstract": "~5.3.30",
|
|
156
|
+
"@xyo-network/bridge-model": "~5.3.30",
|
|
157
|
+
"@xyo-network/config-payload-plugin": "~5.3.30",
|
|
158
|
+
"@xyo-network/data": "~5.3.30",
|
|
159
|
+
"@xyo-network/diviner-boundwitness-memory": "~5.3.30",
|
|
160
|
+
"@xyo-network/diviner-identity": "~5.3.30",
|
|
161
|
+
"@xyo-network/diviner-model": "~5.3.30",
|
|
162
|
+
"@xyo-network/diviner-payload-generic": "~5.3.30",
|
|
163
|
+
"@xyo-network/diviner-payload-model": "~5.3.30",
|
|
164
|
+
"@xyo-network/dns": "~5.3.30",
|
|
165
|
+
"@xyo-network/domain-payload-plugin": "~5.3.30",
|
|
166
|
+
"@xyo-network/elliptic": "~5.3.30",
|
|
167
|
+
"@xyo-network/hash": "~5.3",
|
|
168
|
+
"@xyo-network/huri": "~5.3.30",
|
|
169
|
+
"@xyo-network/manifest-model": "~5.3",
|
|
170
|
+
"@xyo-network/module-abstract": "~5.3",
|
|
171
|
+
"@xyo-network/module-model": "~5.3",
|
|
172
|
+
"@xyo-network/module-resolver": "~5.3.30",
|
|
173
|
+
"@xyo-network/network": "~5.3.30",
|
|
174
|
+
"@xyo-network/node-abstract": "~5.3.30",
|
|
175
|
+
"@xyo-network/node-memory": "~5.3.30",
|
|
176
|
+
"@xyo-network/node-model": "~5.3.30",
|
|
177
|
+
"@xyo-network/node-view": "~5.3.30",
|
|
178
|
+
"@xyo-network/payload-builder": "~5.3",
|
|
179
|
+
"@xyo-network/payload-model": "~5.3.30",
|
|
180
|
+
"@xyo-network/payload-validator": "~5.3",
|
|
181
|
+
"@xyo-network/previous-hash-store-model": "~5.3.30",
|
|
182
|
+
"@xyo-network/sentinel-abstract": "~5.3.30",
|
|
183
|
+
"@xyo-network/sentinel-memory": "~5.3.30",
|
|
184
|
+
"@xyo-network/sentinel-model": "~5.3.30",
|
|
185
|
+
"@xyo-network/wasm": "~5.3.30",
|
|
186
|
+
"@xyo-network/witness-adhoc": "~5.3.30",
|
|
187
|
+
"@xyo-network/witness-model": "~5.3.30",
|
|
188
|
+
"ethers": "^6.16.0",
|
|
189
|
+
"pako": "~2.1.0",
|
|
190
|
+
"zod": "^4.3.6",
|
|
191
|
+
"@xyo-network/chain-services": "~1.20.16",
|
|
192
|
+
"@xyo-network/chain-telemetry": "~1.20.16"
|
|
109
193
|
},
|
|
110
194
|
"engines": {
|
|
111
|
-
"node": ">=
|
|
195
|
+
"node": ">=24"
|
|
112
196
|
},
|
|
113
197
|
"engineStrict": true,
|
|
114
198
|
"publishConfig": {
|
|
115
199
|
"access": "restricted"
|
|
116
200
|
}
|
|
117
|
-
}
|
|
201
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './locators/index.ts'
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
RemoteConfig, RpcTransport, XyoSignerRpcSchemas,
|
|
3
|
-
} from '@xyo-network/xl1-sdk'
|
|
4
|
-
|
|
5
|
-
import { baseBasicRemoteRunnerLocator } from '../../../shared/index.ts'
|
|
6
|
-
|
|
7
|
-
export function basicRemoteRunnerLocator(
|
|
8
|
-
name: string,
|
|
9
|
-
remoteConfig: RemoteConfig,
|
|
10
|
-
signerTransport: RpcTransport<XyoSignerRpcSchemas>,
|
|
11
|
-
dataLakeEndpoint?: string,
|
|
12
|
-
) {
|
|
13
|
-
return baseBasicRemoteRunnerLocator(name, remoteConfig, signerTransport, dataLakeEndpoint)
|
|
14
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { RemoteConfig } from '@xyo-network/xl1-sdk'
|
|
2
|
-
|
|
3
|
-
import { baseBasicRemoteViewerLocator } from '../../../shared/index.ts'
|
|
4
|
-
|
|
5
|
-
export function basicRemoteViewerLocator(
|
|
6
|
-
name: string,
|
|
7
|
-
remoteConfig: RemoteConfig,
|
|
8
|
-
dataLakeEndpoint?: string,
|
|
9
|
-
) {
|
|
10
|
-
return baseBasicRemoteViewerLocator(name, remoteConfig, dataLakeEndpoint)
|
|
11
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { assertEx } from '@xylabs/sdk-js'
|
|
2
|
-
import type { ActorConfigContext, ProviderFactoryLocatorInstance } from '@xyo-network/xl1-sdk'
|
|
3
|
-
|
|
4
|
-
import { commonLocatorFromConfig, remoteLocatorFromConfig } from '../../../shared/index.ts'
|
|
5
|
-
|
|
6
|
-
export async function rootLocatorFromConfig(
|
|
7
|
-
context: ActorConfigContext,
|
|
8
|
-
validateDepsOnRegister = false,
|
|
9
|
-
): Promise<ProviderFactoryLocatorInstance> {
|
|
10
|
-
const { config } = context
|
|
11
|
-
let locator = await commonLocatorFromConfig(context, validateDepsOnRegister)
|
|
12
|
-
const newLocator = await (config.remote.rpc
|
|
13
|
-
? remoteLocatorFromConfig(context, validateDepsOnRegister)
|
|
14
|
-
: undefined)
|
|
15
|
-
locator = assertEx(newLocator, () => 'Root locator could not be created from config. No supported configuration found.')
|
|
16
|
-
// locator = await initEvmProvidersIfAvailable(locator)
|
|
17
|
-
locator.freeze()
|
|
18
|
-
return locator
|
|
19
|
-
}
|
package/src/neutral/index.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { timeBudget } from '@xylabs/sdk-js'
|
|
2
|
-
import { startupSpanAsync } from '@xyo-network/chain-utils'
|
|
3
|
-
import type { ArchivistInstance } from '@xyo-network/sdk-js'
|
|
4
|
-
import type { CreatableProviderContext } from '@xyo-network/xl1-sdk'
|
|
5
|
-
import { Mutex } from 'async-mutex'
|
|
6
|
-
|
|
7
|
-
import { initLocalChainFinalizedArchivist } from './local.ts'
|
|
8
|
-
|
|
9
|
-
const mutex = new Mutex()
|
|
10
|
-
let singleton: ArchivistInstance | undefined
|
|
11
|
-
|
|
12
|
-
export async function initChainFinalizedArchivist(context: CreatableProviderContext) {
|
|
13
|
-
return await mutex.runExclusive(async () => {
|
|
14
|
-
if (singleton) return singleton
|
|
15
|
-
return await timeBudget('initChainFinalizedArchivist', context.logger, async () => {
|
|
16
|
-
const local = await startupSpanAsync('ChainFinalizedArchivist:initLocal', () => initLocalChainFinalizedArchivist(context))
|
|
17
|
-
singleton = local
|
|
18
|
-
return singleton
|
|
19
|
-
}, 2000, true)
|
|
20
|
-
})
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './archivist.ts'
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { ArchivistInstance } from '@xyo-network/sdk-js'
|
|
2
|
-
import type { CreatableProviderContext } from '@xyo-network/xl1-sdk'
|
|
3
|
-
import { Mutex } from 'async-mutex'
|
|
4
|
-
|
|
5
|
-
import { getLocalPersistentArchivist } from '../lib/index.ts'
|
|
6
|
-
|
|
7
|
-
const mutex = new Mutex()
|
|
8
|
-
let singleton: ArchivistInstance | undefined
|
|
9
|
-
|
|
10
|
-
export async function initLocalChainFinalizedArchivist({ config }: CreatableProviderContext): Promise<ArchivistInstance> {
|
|
11
|
-
return await mutex.runExclusive(async () => {
|
|
12
|
-
if (singleton) return singleton
|
|
13
|
-
const { root } = config.storage
|
|
14
|
-
singleton = await getLocalPersistentArchivist('local-finalized-chain', 'chain', 'finalized', root)
|
|
15
|
-
return singleton
|
|
16
|
-
})
|
|
17
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { timeBudget } from '@xylabs/sdk-js'
|
|
2
|
-
import { startupSpanAsync } from '@xyo-network/chain-utils'
|
|
3
|
-
import type { ArchivistInstance } from '@xyo-network/sdk-js'
|
|
4
|
-
import type { BaseConfigContext } from '@xyo-network/xl1-sdk'
|
|
5
|
-
import { Mutex } from 'async-mutex'
|
|
6
|
-
|
|
7
|
-
import { initLocalPendingBlocksArchivist } from './local.ts'
|
|
8
|
-
|
|
9
|
-
const mutex = new Mutex()
|
|
10
|
-
let singleton: ArchivistInstance | undefined
|
|
11
|
-
|
|
12
|
-
export async function initPendingBlocksArchivist(context: BaseConfigContext) {
|
|
13
|
-
return await mutex.runExclusive(async () => {
|
|
14
|
-
if (singleton) return singleton
|
|
15
|
-
return await timeBudget('initPendingBlocksArchivist', context.logger, async () => {
|
|
16
|
-
const local = await startupSpanAsync('PendingBlocksArchivist:initLocal', () => initLocalPendingBlocksArchivist(context))
|
|
17
|
-
singleton = local
|
|
18
|
-
return singleton
|
|
19
|
-
}, 2000, true)
|
|
20
|
-
})
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './archivist.ts'
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { ArchivistInstance } from '@xyo-network/sdk-js'
|
|
2
|
-
import type { BaseConfigContext } from '@xyo-network/xl1-sdk'
|
|
3
|
-
import { Mutex } from 'async-mutex'
|
|
4
|
-
|
|
5
|
-
import { getLocalPersistentArchivist } from '../lib/index.ts'
|
|
6
|
-
|
|
7
|
-
const mutex = new Mutex()
|
|
8
|
-
let singleton: ArchivistInstance | undefined
|
|
9
|
-
|
|
10
|
-
export async function initLocalPendingBlocksArchivist({ config }: BaseConfigContext): Promise<ArchivistInstance> {
|
|
11
|
-
return await mutex.runExclusive(async () => {
|
|
12
|
-
if (singleton) return singleton
|
|
13
|
-
const { root } = config.storage
|
|
14
|
-
singleton = await getLocalPersistentArchivist('local-pending-blocks', 'chain', 'pending_block_bundles', root)
|
|
15
|
-
return singleton
|
|
16
|
-
})
|
|
17
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { timeBudget } from '@xylabs/sdk-js'
|
|
2
|
-
import { startupSpanAsync } from '@xyo-network/chain-utils'
|
|
3
|
-
import type { ArchivistInstance } from '@xyo-network/sdk-js'
|
|
4
|
-
import type { BaseContext } from '@xyo-network/xl1-sdk'
|
|
5
|
-
import { Mutex } from 'async-mutex'
|
|
6
|
-
|
|
7
|
-
import { initLocalRejectedTransactionsArchivist } from './local.ts'
|
|
8
|
-
|
|
9
|
-
const mutex = new Mutex()
|
|
10
|
-
let singleton: ArchivistInstance | undefined
|
|
11
|
-
|
|
12
|
-
export async function initRejectedTransactionsArchivist({ logger }: BaseContext) {
|
|
13
|
-
return await mutex.runExclusive(async () => {
|
|
14
|
-
if (singleton) return singleton
|
|
15
|
-
return await timeBudget('initRejectedTransactionsArchivist', logger, async () => {
|
|
16
|
-
const local = await startupSpanAsync('RejectedTransactionsArchivist:initLocal', () => initLocalRejectedTransactionsArchivist())
|
|
17
|
-
singleton = local
|
|
18
|
-
return singleton
|
|
19
|
-
}, 2000, true)
|
|
20
|
-
})
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './archivist.ts'
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { ArchivistInstance } from '@xyo-network/sdk-js'
|
|
2
|
-
import { MemoryArchivist, MemoryArchivistConfigSchema } from '@xyo-network/sdk-js'
|
|
3
|
-
import { Mutex } from 'async-mutex'
|
|
4
|
-
|
|
5
|
-
const mutex = new Mutex()
|
|
6
|
-
let singleton: ArchivistInstance | undefined
|
|
7
|
-
|
|
8
|
-
export async function initLocalRejectedTransactionsArchivist(): Promise<ArchivistInstance> {
|
|
9
|
-
return await mutex.runExclusive(async () => {
|
|
10
|
-
if (singleton) return singleton
|
|
11
|
-
singleton = await MemoryArchivist.create({
|
|
12
|
-
account: 'random',
|
|
13
|
-
config: {
|
|
14
|
-
schema: MemoryArchivistConfigSchema, max: 1000, name: 'localRejectedTransactions',
|
|
15
|
-
},
|
|
16
|
-
})
|
|
17
|
-
return singleton
|
|
18
|
-
})
|
|
19
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { assertEx, timeBudget } from '@xylabs/sdk-js'
|
|
2
|
-
import { startupSpanAsync } from '@xyo-network/chain-utils'
|
|
3
|
-
import type { ArchivistInstance } from '@xyo-network/sdk-js'
|
|
4
|
-
import type { BaseConfigContext } from '@xyo-network/xl1-sdk'
|
|
5
|
-
import { Mutex } from 'async-mutex'
|
|
6
|
-
|
|
7
|
-
import { initLocalStakeIntentStateArchivist } from './local.ts'
|
|
8
|
-
|
|
9
|
-
const mutex = new Mutex()
|
|
10
|
-
let singleton: ArchivistInstance | undefined
|
|
11
|
-
|
|
12
|
-
export async function initStakeIntentStateArchivist(context: BaseConfigContext): Promise<ArchivistInstance> {
|
|
13
|
-
return await mutex.runExclusive(async () => {
|
|
14
|
-
if (singleton) return singleton
|
|
15
|
-
return await timeBudget('initStakeIntentStateArchivist', context.logger, async () => {
|
|
16
|
-
const local = await startupSpanAsync('StakeIntentStateArchivist:initLocal', () => initLocalStakeIntentStateArchivist(context))
|
|
17
|
-
singleton = local
|
|
18
|
-
return assertEx(singleton, () => 'StakeIntentStateArchivist is undefined')
|
|
19
|
-
}, 2000, true)
|
|
20
|
-
})
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './archivist.ts'
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { assertEx } from '@xylabs/sdk-js'
|
|
2
|
-
import type { ArchivistInstance } from '@xyo-network/sdk-js'
|
|
3
|
-
import type { BaseConfigContext } from '@xyo-network/xl1-sdk'
|
|
4
|
-
import { Mutex } from 'async-mutex'
|
|
5
|
-
|
|
6
|
-
import { getLocalPersistentArchivist } from '../lib/index.ts'
|
|
7
|
-
|
|
8
|
-
const mutex = new Mutex()
|
|
9
|
-
let singleton: ArchivistInstance | undefined
|
|
10
|
-
|
|
11
|
-
export async function initLocalStakeIntentStateArchivist({ config }: BaseConfigContext): Promise<ArchivistInstance> {
|
|
12
|
-
return await mutex.runExclusive(async () => {
|
|
13
|
-
if (singleton) return singleton
|
|
14
|
-
const { root } = config.storage
|
|
15
|
-
singleton = await getLocalPersistentArchivist('local-stake-intent-state', 'stakeIntent', 'state', root)
|
|
16
|
-
return assertEx(singleton, () => new Error('Failed to initialize stake intent state archivist'))
|
|
17
|
-
})
|
|
18
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './localPersistentArchivist.ts'
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { rm } from 'node:fs/promises'
|
|
2
|
-
import Path from 'node:path'
|
|
3
|
-
|
|
4
|
-
import { LmdbArchivist, LmdbArchivistConfigSchema } from '@xyo-network/archivist-lmdb'
|
|
5
|
-
import { getStoreDirectory, type StoreKind } from '@xyo-network/chain-protocol'
|
|
6
|
-
import type { ArchivistInstance } from '@xyo-network/sdk-js'
|
|
7
|
-
|
|
8
|
-
const DEFAULT_STORAGE_ROOT = Path.join(process.cwd(), '.store')
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Returns a local persistent archivist
|
|
12
|
-
* @param name The name of the archivist
|
|
13
|
-
* @param dbName The name of the database
|
|
14
|
-
* @param storeName The name of the store
|
|
15
|
-
* @param storageRoot The root directory for storage (default is '.store' in the current working directory)
|
|
16
|
-
* @param kind The kind of the archivist
|
|
17
|
-
* @returns an archivist instance
|
|
18
|
-
*/
|
|
19
|
-
export const getLocalPersistentArchivist = (
|
|
20
|
-
name: string,
|
|
21
|
-
dbName: string,
|
|
22
|
-
storeName: string,
|
|
23
|
-
storageRoot?: string,
|
|
24
|
-
kind: StoreKind = 'lmdb',
|
|
25
|
-
): Promise<ArchivistInstance> => {
|
|
26
|
-
switch (kind) {
|
|
27
|
-
case 'lmdb': {
|
|
28
|
-
const root = storageRoot ?? DEFAULT_STORAGE_ROOT
|
|
29
|
-
return LmdbArchivist.create({
|
|
30
|
-
account: 'random',
|
|
31
|
-
config: {
|
|
32
|
-
name,
|
|
33
|
-
clearStoreOnStart: false,
|
|
34
|
-
dbName,
|
|
35
|
-
location: getStoreDirectory(dbName, root, 'lmdb'),
|
|
36
|
-
schema: LmdbArchivistConfigSchema,
|
|
37
|
-
storeName,
|
|
38
|
-
},
|
|
39
|
-
})
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Deletes a local persistent archivist
|
|
46
|
-
* @param dbName The name of the database
|
|
47
|
-
* @param storageRoot The root directory for storage (default is '.store' in the current working directory)
|
|
48
|
-
* @param kind The kind of the archivist
|
|
49
|
-
* @returns A promise that resolves when the archivist is deleted
|
|
50
|
-
*/
|
|
51
|
-
export const deleteLocalPersistentArchivist = async (dbName: string, storageRoot?: string, kind: StoreKind = 'lmdb'): Promise<void> => {
|
|
52
|
-
await Promise.resolve()
|
|
53
|
-
console.warn(`Deleting local persistent archivist for ${dbName} of kind ${kind}.`)
|
|
54
|
-
let location = ''
|
|
55
|
-
switch (kind) {
|
|
56
|
-
case 'lmdb': {
|
|
57
|
-
const root = storageRoot ?? DEFAULT_STORAGE_ROOT
|
|
58
|
-
location = getStoreDirectory(dbName, root, 'lmdb')
|
|
59
|
-
break
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
await rm(location, { recursive: true, force: true })
|
|
63
|
-
}
|
package/src/node/config/index.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { Promisable } from '@xylabs/sdk-js'
|
|
2
|
-
import type { ProviderFactoryLocatorInstance } from '@xyo-network/xl1-sdk'
|
|
3
|
-
import {
|
|
4
|
-
ProviderFactoryLocator,
|
|
5
|
-
SimpleXyoConnectionRunner,
|
|
6
|
-
SimpleXyoGateway,
|
|
7
|
-
SimpleXyoRunner,
|
|
8
|
-
} from '@xyo-network/xl1-sdk'
|
|
9
|
-
|
|
10
|
-
import type { ApiConfigContext } from '../../../../neutral/index.ts'
|
|
11
|
-
|
|
12
|
-
export function apiLocatorFromConfig(
|
|
13
|
-
context: ApiConfigContext,
|
|
14
|
-
parent?: ProviderFactoryLocatorInstance,
|
|
15
|
-
): Promisable<ProviderFactoryLocatorInstance> {
|
|
16
|
-
const locator = new ProviderFactoryLocator({ ...context, locator: parent })
|
|
17
|
-
|
|
18
|
-
locator.registerMany([
|
|
19
|
-
SimpleXyoRunner.factory<SimpleXyoRunner>(SimpleXyoRunner.dependencies, {}),
|
|
20
|
-
SimpleXyoConnectionRunner.factory<SimpleXyoConnectionRunner>(SimpleXyoConnectionRunner.dependencies, {}),
|
|
21
|
-
SimpleXyoGateway.factory<SimpleXyoGateway>(SimpleXyoGateway.dependencies, {}),
|
|
22
|
-
])
|
|
23
|
-
locator.freeze()
|
|
24
|
-
return locator
|
|
25
|
-
}
|