@xyo-network/chain-orchestration 1.19.15 → 1.19.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/dist/neutral/archivists/ChainFinalized/archivist.d.ts +2 -2
- package/dist/neutral/archivists/ChainFinalized/archivist.d.ts.map +1 -1
- package/dist/neutral/archivists/ChainFinalized/local.d.ts +1 -1
- package/dist/neutral/archivists/ChainFinalized/local.d.ts.map +1 -1
- package/dist/neutral/archivists/PendingBlocks/archivist.d.ts +2 -2
- package/dist/neutral/archivists/PendingBlocks/archivist.d.ts.map +1 -1
- package/dist/neutral/archivists/PendingBlocks/local.d.ts +1 -1
- package/dist/neutral/archivists/PendingBlocks/local.d.ts.map +1 -1
- package/dist/neutral/archivists/RejectedTransactions/archivist.d.ts +2 -2
- package/dist/neutral/archivists/RejectedTransactions/archivist.d.ts.map +1 -1
- package/dist/neutral/archivists/RejectedTransactions/local.d.ts +1 -1
- package/dist/neutral/archivists/RejectedTransactions/local.d.ts.map +1 -1
- package/dist/neutral/archivists/StakeIntentState/archivist.d.ts +1 -1
- package/dist/neutral/archivists/StakeIntentState/archivist.d.ts.map +1 -1
- package/dist/neutral/archivists/StakeIntentState/local.d.ts +1 -1
- package/dist/neutral/archivists/StakeIntentState/local.d.ts.map +1 -1
- package/dist/neutral/archivists/lib/localPersistentArchivist.d.ts +1 -1
- package/dist/neutral/archivists/lib/localPersistentArchivist.d.ts.map +1 -1
- package/dist/neutral/config/actors/Bridge.d.ts +4 -4
- package/dist/neutral/config/actors/Producer.d.ts +4 -4
- package/dist/neutral/createDeclarationIntentBlock.d.ts +3 -3
- package/dist/neutral/createDeclarationIntentBlock.d.ts.map +1 -1
- package/dist/neutral/index.mjs +4 -5
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/init/initBalanceSummaryMap.d.ts +1 -1
- package/dist/neutral/init/initBalanceSummaryMap.d.ts.map +1 -1
- package/dist/neutral/init/initBridgedModule.d.ts +1 -2
- package/dist/neutral/init/initBridgedModule.d.ts.map +1 -1
- package/dist/neutral/init/initFinalizationArchivistIfNeeded.d.ts +1 -1
- package/dist/neutral/init/initFinalizationArchivistIfNeeded.d.ts.map +1 -1
- package/dist/neutral/init/initServerNode.d.ts +6 -6
- package/dist/neutral/init/initServerNode.d.ts.map +1 -1
- package/dist/neutral/init/initTransferSummaryMap.d.ts +1 -1
- package/dist/neutral/init/initTransferSummaryMap.d.ts.map +1 -1
- package/package.json +30 -32
- package/src/archivists/ChainFinalized/archivist.ts +1 -1
- package/src/archivists/ChainFinalized/local.ts +1 -1
- package/src/archivists/PendingBlocks/archivist.ts +1 -1
- package/src/archivists/PendingBlocks/local.ts +1 -1
- package/src/archivists/RejectedTransactions/archivist.ts +1 -1
- package/src/archivists/RejectedTransactions/local.ts +1 -1
- package/src/archivists/StakeIntentState/archivist.ts +1 -1
- package/src/archivists/StakeIntentState/local.ts +1 -1
- package/src/archivists/lib/localPersistentArchivist.ts +1 -1
- package/src/config/tryParseConfig.ts +1 -1
- package/src/createDeclarationIntentBlock.ts +1 -1
- package/src/init/initBalanceSummaryMap.ts +1 -1
- package/src/init/initBridgedModule.ts +4 -4
- package/src/init/initEvmProvidersIfAvailable.ts +1 -1
- package/src/init/initFinalizationArchivistIfNeeded.ts +1 -1
- package/src/init/initServerNode.ts +2 -2
- package/src/init/initTransferSummaryMap.ts +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { WithStorageMeta } from '@xyo-network/
|
|
1
|
+
import type { WithStorageMeta } from '@xyo-network/sdk-js';
|
|
2
2
|
import type { BalancesStepSummary, BaseConfigContext, MapType } from '@xyo-network/xl1-sdk';
|
|
3
3
|
export declare function initBalanceSummaryMap({ logger, config }: BaseConfigContext): Promise<MapType<string, WithStorageMeta<BalancesStepSummary>>>;
|
|
4
4
|
//# sourceMappingURL=initBalanceSummaryMap.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initBalanceSummaryMap.d.ts","sourceRoot":"","sources":["../../../src/init/initBalanceSummaryMap.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"initBalanceSummaryMap.d.ts","sourceRoot":"","sources":["../../../src/init/initBalanceSummaryMap.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAC1D,OAAO,KAAK,EACV,mBAAmB,EAAE,iBAAiB,EAAE,OAAO,EAChD,MAAM,sBAAsB,CAAA;AAG7B,wBAAsB,qBAAqB,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,iBAAiB,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,eAAe,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAsBjJ"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { AttachableArchivistInstance } from '@xyo-network/archivist-model';
|
|
2
1
|
import type { BridgeInstance } from '@xyo-network/bridge-model';
|
|
3
|
-
import type { AttachableModuleInstance, ModuleIdentifier } from '@xyo-network/
|
|
2
|
+
import type { AttachableArchivistInstance, AttachableModuleInstance, ModuleIdentifier } from '@xyo-network/sdk-js';
|
|
4
3
|
export declare function initBridgedModule({ bridge, moduleName }: {
|
|
5
4
|
bridge: BridgeInstance;
|
|
6
5
|
moduleName: ModuleIdentifier;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initBridgedModule.d.ts","sourceRoot":"","sources":["../../../src/init/initBridgedModule.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"initBridgedModule.d.ts","sourceRoot":"","sources":["../../../src/init/initBridgedModule.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,EACV,2BAA2B,EAAE,wBAAwB,EAAE,gBAAgB,EACxE,MAAM,qBAAqB,CAAA;AAS5B,wBAAsB,iBAAiB,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE;IAAE,MAAM,EAAE,cAAc,CAAC;IAAC,UAAU,EAAE,gBAAgB,CAAA;CAAE,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAgB3J;AAED,wBAAsB,0BAA0B,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE;IACvE,MAAM,EAAE,cAAc,CAAA;IACtB,UAAU,EAAE,gBAAgB,CAAA;CAC7B,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAKvC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AccountInstance } from '@xyo-network/account-model';
|
|
2
|
-
import type { ArchivistInstance } from '@xyo-network/
|
|
2
|
+
import type { ArchivistInstance } from '@xyo-network/sdk-js';
|
|
3
3
|
import type { ActorConfig, ChainId, SignedBlockBoundWitnessWithHashMeta } from '@xyo-network/xl1-sdk';
|
|
4
4
|
export declare function initFinalizationArchivistIfNeeded(archivist: ArchivistInstance, config: ActorConfig, account: AccountInstance): Promise<[SignedBlockBoundWitnessWithHashMeta, ChainId]>;
|
|
5
5
|
//# sourceMappingURL=initFinalizationArchivistIfNeeded.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initFinalizationArchivistIfNeeded.d.ts","sourceRoot":"","sources":["../../../src/init/initFinalizationArchivistIfNeeded.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"initFinalizationArchivistIfNeeded.d.ts","sourceRoot":"","sources":["../../../src/init/initFinalizationArchivistIfNeeded.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAE5D,OAAO,KAAK,EACV,WAAW,EACX,OAAO,EACP,mCAAmC,EACpC,MAAM,sBAAsB,CAAA;AAM7B,wBAAsB,iCAAiC,CACrD,SAAS,EAAE,iBAAiB,EAC5B,MAAM,EAAE,WAAW,EACnB,OAAO,EAAE,eAAe,GACvB,OAAO,CAAC,CAAC,mCAAmC,EAAE,OAAO,CAAC,CAAC,CAyBzD"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { NodeInstance } from '@xyo-network/
|
|
1
|
+
import type { NodeInstance } from '@xyo-network/sdk-js';
|
|
2
2
|
import type { WalletInstance } from '@xyo-network/wallet-model';
|
|
3
3
|
import type { BaseConfigContext } from '@xyo-network/xl1-sdk';
|
|
4
4
|
export declare function initServerNode(context: BaseConfigContext, wallet: WalletInstance, providedNode?: NodeInstance): Promise<{
|
|
5
|
-
node: NodeInstance<import("@xyo-network/
|
|
6
|
-
writableChainArchivist: import("@xyo-network/
|
|
7
|
-
readonlyChainArchivist: import("@xyo-network/
|
|
8
|
-
pendingTransactionsArchivist: import("@xyo-network/
|
|
9
|
-
pendingBlocksArchivist: import("@xyo-network/
|
|
5
|
+
node: NodeInstance<import("@xyo-network/sdk-js").NodeParams<import("@xyo-network/sdk-js").AnyConfigSchema<import("@xyo-network/sdk-js").NodeConfig>>, import("@xyo-network/sdk-js").NodeModuleEventData>;
|
|
6
|
+
writableChainArchivist: import("@xyo-network/sdk-js").ArchivistInstance<import("@xyo-network/sdk-js").ArchivistParams<import("@xyo-network/sdk-js").AnyConfigSchema<import("@xyo-network/sdk-js").ArchivistConfig<void, void>>>, import("@xyo-network/sdk-js").ArchivistModuleEventData, import("@xyo-network/sdk-js").Payload<void, void>>;
|
|
7
|
+
readonlyChainArchivist: import("@xyo-network/sdk-js").ArchivistInstance<import("@xyo-network/sdk-js").ArchivistParams<import("@xyo-network/sdk-js").AnyConfigSchema<import("@xyo-network/sdk-js").ArchivistConfig<void, void>>>, import("@xyo-network/sdk-js").ArchivistModuleEventData, import("@xyo-network/sdk-js").Payload<void, void>>;
|
|
8
|
+
pendingTransactionsArchivist: import("@xyo-network/sdk-js").ArchivistInstance<import("@xyo-network/sdk-js").ArchivistParams<import("@xyo-network/sdk-js").AnyConfigSchema<import("@xyo-network/sdk-js").ArchivistConfig<void, void>>>, import("@xyo-network/sdk-js").ArchivistModuleEventData, import("@xyo-network/sdk-js").Payload<void, void>>;
|
|
9
|
+
pendingBlocksArchivist: import("@xyo-network/sdk-js").ArchivistInstance<import("@xyo-network/sdk-js").ArchivistParams<import("@xyo-network/sdk-js").AnyConfigSchema<import("@xyo-network/sdk-js").ArchivistConfig<void, void>>>, import("@xyo-network/sdk-js").ArchivistModuleEventData, import("@xyo-network/sdk-js").Payload<void, void>>;
|
|
10
10
|
}>;
|
|
11
11
|
//# sourceMappingURL=initServerNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initServerNode.d.ts","sourceRoot":"","sources":["../../../src/init/initServerNode.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"initServerNode.d.ts","sourceRoot":"","sources":["../../../src/init/initServerNode.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAEvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAgC7D,wBAAsB,cAAc,CAClC,OAAO,EAAE,iBAAiB,EAC1B,MAAM,EAAE,cAAc,EACtB,YAAY,CAAC,EAAE,YAAY;;;;;;GAW5B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { WithStorageMeta } from '@xyo-network/
|
|
1
|
+
import type { WithStorageMeta } from '@xyo-network/sdk-js';
|
|
2
2
|
import type { BaseConfigContext, MapType, TransfersStepSummary } from '@xyo-network/xl1-sdk';
|
|
3
3
|
export declare function initTransferSummaryMap({ logger, config }: BaseConfigContext): Promise<MapType<string, WithStorageMeta<TransfersStepSummary>>>;
|
|
4
4
|
//# sourceMappingURL=initTransferSummaryMap.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initTransferSummaryMap.d.ts","sourceRoot":"","sources":["../../../src/init/initTransferSummaryMap.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"initTransferSummaryMap.d.ts","sourceRoot":"","sources":["../../../src/init/initTransferSummaryMap.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAC1D,OAAO,KAAK,EACV,iBAAiB,EAAE,OAAO,EAAE,oBAAoB,EACjD,MAAM,sBAAsB,CAAA;AAG7B,wBAAsB,sBAAsB,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,iBAAiB,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,eAAe,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAsBnJ"}
|
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-orchestration",
|
|
4
|
-
"version": "1.19.
|
|
4
|
+
"version": "1.19.16",
|
|
5
5
|
"description": "XYO Layer One SDK Orchestration",
|
|
6
6
|
"homepage": "https://xylabs.com",
|
|
7
7
|
"bugs": {
|
|
@@ -39,50 +39,48 @@
|
|
|
39
39
|
"!**/*.test.*"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@xyo-network/archivist-lmdb": "~5.3.
|
|
43
|
-
"@xyo-network/archivist-memory": "~5.3.
|
|
44
|
-
"@xyo-network/archivist-
|
|
45
|
-
"@xyo-network/archivist-
|
|
46
|
-
"@xyo-network/archivist-view": "~5.3.5",
|
|
42
|
+
"@xyo-network/archivist-lmdb": "~5.3.7",
|
|
43
|
+
"@xyo-network/archivist-memory": "~5.3.7",
|
|
44
|
+
"@xyo-network/archivist-mongodb": "~5.3.7",
|
|
45
|
+
"@xyo-network/archivist-view": "~5.3.7",
|
|
47
46
|
"@xyo-network/bios": "~7.2.1",
|
|
48
|
-
"@xyo-network/bridge-model": "~5.3.
|
|
49
|
-
"@xyo-network/chain-ethereum": "~1.19.
|
|
50
|
-
"@xyo-network/chain-protocol": "~1.19.
|
|
51
|
-
"@xyo-network/chain-sdk": "~1.19.
|
|
52
|
-
"@xyo-network/chain-services": "~1.19.
|
|
53
|
-
"@xyo-network/chain-telemetry": "~1.19.
|
|
54
|
-
"@xyo-network/chain-utils": "~1.19.
|
|
55
|
-
"@xyo-network/chain-validation": "~1.19.
|
|
56
|
-
"@xyo-network/manifest-wrapper": "~5.3.
|
|
57
|
-
"@xyo-network/module-abstract": "~5.3.
|
|
58
|
-
"@xyo-network/module-factory-locator": "~5.3.
|
|
59
|
-
"@xyo-network/
|
|
60
|
-
"@xyo-network/sentinel-memory": "~5.3.
|
|
61
|
-
"@xyo-network/wallet": "~5.3.
|
|
47
|
+
"@xyo-network/bridge-model": "~5.3.7",
|
|
48
|
+
"@xyo-network/chain-ethereum": "~1.19.16",
|
|
49
|
+
"@xyo-network/chain-protocol": "~1.19.16",
|
|
50
|
+
"@xyo-network/chain-sdk": "~1.19.16",
|
|
51
|
+
"@xyo-network/chain-services": "~1.19.16",
|
|
52
|
+
"@xyo-network/chain-telemetry": "~1.19.16",
|
|
53
|
+
"@xyo-network/chain-utils": "~1.19.16",
|
|
54
|
+
"@xyo-network/chain-validation": "~1.19.16",
|
|
55
|
+
"@xyo-network/manifest-wrapper": "~5.3.7",
|
|
56
|
+
"@xyo-network/module-abstract": "~5.3.7",
|
|
57
|
+
"@xyo-network/module-factory-locator": "~5.3.7",
|
|
58
|
+
"@xyo-network/sdk-js": "~5.3.7",
|
|
59
|
+
"@xyo-network/sentinel-memory": "~5.3.7",
|
|
60
|
+
"@xyo-network/wallet": "~5.3.7",
|
|
62
61
|
"async-mutex": "~0.5.0"
|
|
63
62
|
},
|
|
64
63
|
"devDependencies": {
|
|
65
64
|
"@opentelemetry/api": "^1.9.0",
|
|
66
|
-
"@types/node": "~25.
|
|
67
|
-
"@xylabs/mongo": "~5.0.
|
|
68
|
-
"@xylabs/sdk-js": "~5.0.
|
|
65
|
+
"@types/node": "~25.3.0",
|
|
66
|
+
"@xylabs/mongo": "~5.0.80",
|
|
67
|
+
"@xylabs/sdk-js": "~5.0.80",
|
|
69
68
|
"@xylabs/ts-scripts-yarn3": "~7.3.2",
|
|
70
69
|
"@xylabs/tsconfig": "~7.3.2",
|
|
71
|
-
"@xylabs/zod": "~5.0.
|
|
72
|
-
"@xyo-network/account-model": "~5.3.
|
|
70
|
+
"@xylabs/zod": "~5.0.80",
|
|
71
|
+
"@xyo-network/account-model": "~5.3.7",
|
|
73
72
|
"@xyo-network/bios-model": "~7.2.1",
|
|
74
|
-
"@xyo-network/manifest-model": "~5.3.
|
|
75
|
-
"@xyo-network/module-model-mongodb": "~5.3.
|
|
76
|
-
"@xyo-network/
|
|
77
|
-
"@xyo-network/payload-model": "~5.3.5",
|
|
78
|
-
"@xyo-network/sdk-js": "~5.3.5",
|
|
73
|
+
"@xyo-network/manifest-model": "~5.3.7",
|
|
74
|
+
"@xyo-network/module-model-mongodb": "~5.3.7",
|
|
75
|
+
"@xyo-network/sdk-js": "~5.3.7",
|
|
79
76
|
"@xyo-network/storage-model": "~7.2.1",
|
|
80
|
-
"@xyo-network/wallet-model": "~5.3.
|
|
81
|
-
"@xyo-network/xl1-sdk": "~1.24.
|
|
77
|
+
"@xyo-network/wallet-model": "~5.3.7",
|
|
78
|
+
"@xyo-network/xl1-sdk": "~1.24.24",
|
|
82
79
|
"axios": "^1.13.5",
|
|
83
80
|
"cosmiconfig": "^9.0.0",
|
|
84
81
|
"eslint": "^9.39.2",
|
|
85
82
|
"ethers": "^6.16.0",
|
|
83
|
+
"lmdb": "^3.5.1",
|
|
86
84
|
"mongodb": "^7.1.0",
|
|
87
85
|
"typescript": "~5.9.3",
|
|
88
86
|
"zod": "^4.3.6"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { timeBudget } from '@xylabs/sdk-js'
|
|
2
|
-
import type { ArchivistInstance } from '@xyo-network/archivist-model'
|
|
3
2
|
import { startupSpanAsync } from '@xyo-network/chain-utils'
|
|
3
|
+
import type { ArchivistInstance } from '@xyo-network/sdk-js'
|
|
4
4
|
import { Mutex } from 'async-mutex'
|
|
5
5
|
|
|
6
6
|
import type { ChainInitializableParams } from '../../ChainInitializableParams.ts'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { timeBudget } from '@xylabs/sdk-js'
|
|
2
|
-
import type { ArchivistInstance } from '@xyo-network/archivist-model'
|
|
3
2
|
import { startupSpanAsync } from '@xyo-network/chain-utils'
|
|
3
|
+
import type { ArchivistInstance } from '@xyo-network/sdk-js'
|
|
4
4
|
import type { BaseConfigContext } from '@xyo-network/xl1-sdk'
|
|
5
5
|
import { Mutex } from 'async-mutex'
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { timeBudget } from '@xylabs/sdk-js'
|
|
2
|
-
import type { ArchivistInstance } from '@xyo-network/archivist-model'
|
|
3
2
|
import { startupSpanAsync } from '@xyo-network/chain-utils'
|
|
3
|
+
import type { ArchivistInstance } from '@xyo-network/sdk-js'
|
|
4
4
|
import type { BaseContext } from '@xyo-network/xl1-sdk'
|
|
5
5
|
import { Mutex } from 'async-mutex'
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MemoryArchivist, MemoryArchivistConfigSchema } from '@xyo-network/archivist-memory'
|
|
2
|
-
import type { ArchivistInstance } from '@xyo-network/
|
|
2
|
+
import type { ArchivistInstance } from '@xyo-network/sdk-js'
|
|
3
3
|
import { Mutex } from 'async-mutex'
|
|
4
4
|
|
|
5
5
|
const mutex = new Mutex()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { assertEx, timeBudget } from '@xylabs/sdk-js'
|
|
2
|
-
import type { ArchivistInstance } from '@xyo-network/archivist-model'
|
|
3
2
|
import { startupSpanAsync } from '@xyo-network/chain-utils'
|
|
3
|
+
import type { ArchivistInstance } from '@xyo-network/sdk-js'
|
|
4
4
|
import type { BaseConfigContext } from '@xyo-network/xl1-sdk'
|
|
5
5
|
import { Mutex } from 'async-mutex'
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { assertEx } from '@xylabs/sdk-js'
|
|
2
|
-
import type { ArchivistInstance } from '@xyo-network/
|
|
2
|
+
import type { ArchivistInstance } from '@xyo-network/sdk-js'
|
|
3
3
|
import type { BaseConfigContext } from '@xyo-network/xl1-sdk'
|
|
4
4
|
import { Mutex } from 'async-mutex'
|
|
5
5
|
|
|
@@ -2,8 +2,8 @@ import { rm } from 'node:fs/promises'
|
|
|
2
2
|
import Path from 'node:path'
|
|
3
3
|
|
|
4
4
|
import { LmdbArchivist, LmdbArchivistConfigSchema } from '@xyo-network/archivist-lmdb'
|
|
5
|
-
import type { ArchivistInstance } from '@xyo-network/archivist-model'
|
|
6
5
|
import { getStoreDirectory, type StoreKind } from '@xyo-network/chain-protocol'
|
|
6
|
+
import type { ArchivistInstance } from '@xyo-network/sdk-js'
|
|
7
7
|
|
|
8
8
|
const DEFAULT_STORAGE_ROOT = Path.join(process.cwd(), '.store')
|
|
9
9
|
|
|
@@ -26,7 +26,7 @@ export async function tryParseConfig(searchPlaces?: string[]) {
|
|
|
26
26
|
},
|
|
27
27
|
)
|
|
28
28
|
const result = (await explorer.search())?.config
|
|
29
|
-
if (!isNull(result)) {
|
|
29
|
+
if (isDefined(result) && !isNull(result)) {
|
|
30
30
|
const section = result[configSection]
|
|
31
31
|
if (isDefined(section) && typeof section === 'object') {
|
|
32
32
|
return ConfigZod.loose().parse(section)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AccountInstance } from '@xyo-network/account-model'
|
|
2
2
|
import { buildNextBlock } from '@xyo-network/chain-sdk'
|
|
3
|
-
import type { WithHashMeta } from '@xyo-network/
|
|
3
|
+
import type { WithHashMeta } from '@xyo-network/sdk-js'
|
|
4
4
|
import type { BlockBoundWitness, XL1BlockRange } from '@xyo-network/xl1-sdk'
|
|
5
5
|
import { createDeclarationIntent } from '@xyo-network/xl1-sdk'
|
|
6
6
|
|
|
@@ -2,7 +2,7 @@ import { BaseMongoSdk, type BaseMongoSdkPrivateConfig } from '@xylabs/mongo'
|
|
|
2
2
|
import type { Hash } from '@xylabs/sdk-js'
|
|
3
3
|
import { assertEx } from '@xylabs/sdk-js'
|
|
4
4
|
import { MongoMap } from '@xyo-network/chain-protocol'
|
|
5
|
-
import type { WithStorageMeta } from '@xyo-network/
|
|
5
|
+
import type { WithStorageMeta } from '@xyo-network/sdk-js'
|
|
6
6
|
import type {
|
|
7
7
|
BalancesStepSummary, BaseConfigContext, MapType,
|
|
8
8
|
} from '@xyo-network/xl1-sdk'
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Address } from '@xylabs/sdk-js'
|
|
2
2
|
import { assertEx } from '@xylabs/sdk-js'
|
|
3
|
-
import type { AttachableArchivistInstance } from '@xyo-network/archivist-model'
|
|
4
|
-
import { asAttachableArchivistInstance } from '@xyo-network/archivist-model'
|
|
5
3
|
import type { BridgeInstance } from '@xyo-network/bridge-model'
|
|
6
|
-
import type {
|
|
7
|
-
|
|
4
|
+
import type {
|
|
5
|
+
AttachableArchivistInstance, AttachableModuleInstance, ModuleIdentifier,
|
|
6
|
+
} from '@xyo-network/sdk-js'
|
|
7
|
+
import { asAttachableArchivistInstance, asAttachableModuleInstance } from '@xyo-network/sdk-js'
|
|
8
8
|
import { Mutex } from 'async-mutex'
|
|
9
9
|
|
|
10
10
|
const initMutex = new Mutex()
|
|
@@ -54,7 +54,7 @@ export async function initEvmProvidersIfAvailable(locator: ProviderFactoryLocato
|
|
|
54
54
|
} else {
|
|
55
55
|
logger?.warn('EVM provider not available - running with memory based contract/stake viewers')
|
|
56
56
|
const positions: Position[] = []
|
|
57
|
-
const chainId = assertEx(config.chain.id, () => 'Missing config.chain.
|
|
57
|
+
const chainId = assertEx(config.chain.id, () => 'Missing config.chain.chainId (required for non-EVM providers)')
|
|
58
58
|
|
|
59
59
|
// Register the contract events viewer
|
|
60
60
|
locator.register(SimpleStakeEventsViewer.factory<SimpleStakeEventsViewer>(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { assertEx } from '@xylabs/sdk-js'
|
|
2
2
|
import type { AccountInstance } from '@xyo-network/account-model'
|
|
3
|
-
import type { ArchivistInstance } from '@xyo-network/archivist-model'
|
|
4
3
|
import { createBootstrapHead } from '@xyo-network/chain-sdk'
|
|
4
|
+
import type { ArchivistInstance } from '@xyo-network/sdk-js'
|
|
5
5
|
import { Account } from '@xyo-network/sdk-js'
|
|
6
6
|
import type {
|
|
7
7
|
ActorConfig,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { assertEx } from '@xylabs/sdk-js'
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
2
|
+
import type { NodeInstance } from '@xyo-network/sdk-js'
|
|
3
|
+
import { asArchivistInstance } from '@xyo-network/sdk-js'
|
|
4
4
|
import type { WalletInstance } from '@xyo-network/wallet-model'
|
|
5
5
|
import type { BaseConfigContext } from '@xyo-network/xl1-sdk'
|
|
6
6
|
|
|
@@ -2,7 +2,7 @@ import { BaseMongoSdk, type BaseMongoSdkPrivateConfig } from '@xylabs/mongo'
|
|
|
2
2
|
import type { Hash } from '@xylabs/sdk-js'
|
|
3
3
|
import { assertEx } from '@xylabs/sdk-js'
|
|
4
4
|
import { MongoMap } from '@xyo-network/chain-protocol'
|
|
5
|
-
import type { WithStorageMeta } from '@xyo-network/
|
|
5
|
+
import type { WithStorageMeta } from '@xyo-network/sdk-js'
|
|
6
6
|
import type {
|
|
7
7
|
BaseConfigContext, MapType, TransfersStepSummary,
|
|
8
8
|
} from '@xyo-network/xl1-sdk'
|