@xyo-network/chain-orchestration 1.18.0 → 1.18.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/ChainInitializableParams.d.ts +1 -1
- package/dist/neutral/ChainInitializableParams.d.ts.map +1 -1
- package/dist/neutral/ConfigContext.d.ts +1 -1
- package/dist/neutral/ConfigContext.d.ts.map +1 -1
- package/dist/neutral/actor/BalanceActor.d.ts +3 -4
- package/dist/neutral/actor/BalanceActor.d.ts.map +1 -1
- package/dist/neutral/actor/ValidatorActor.d.ts +3 -4
- package/dist/neutral/actor/ValidatorActor.d.ts.map +1 -1
- package/dist/neutral/actor/index.d.ts +0 -1
- package/dist/neutral/actor/index.d.ts.map +1 -1
- package/dist/neutral/archivists/ChainFinalized/local.d.ts +1 -2
- package/dist/neutral/archivists/ChainFinalized/local.d.ts.map +1 -1
- package/dist/neutral/archivists/PendingBlocks/local.d.ts +1 -2
- package/dist/neutral/archivists/PendingBlocks/local.d.ts.map +1 -1
- package/dist/neutral/archivists/RejectedTransactions/archivist.d.ts +1 -1
- 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/buildTelemetryConfig.d.ts +2 -2
- package/dist/neutral/buildTelemetryConfig.d.ts.map +1 -1
- package/dist/neutral/createDeclarationIntentBlock.d.ts +23 -15
- package/dist/neutral/createDeclarationIntentBlock.d.ts.map +1 -1
- package/dist/neutral/evm/initChainId.d.ts +1 -1
- package/dist/neutral/evm/initChainId.d.ts.map +1 -1
- package/dist/neutral/evm/initEvmProvider.d.ts +1 -1
- package/dist/neutral/evm/initEvmProvider.d.ts.map +1 -1
- package/dist/neutral/evm/initInfuraProvider.d.ts +1 -1
- package/dist/neutral/evm/initInfuraProvider.d.ts.map +1 -1
- package/dist/neutral/evm/initJsonRpcProvider.d.ts +1 -1
- package/dist/neutral/evm/initJsonRpcProvider.d.ts.map +1 -1
- package/dist/neutral/health/initHealthEndpoints.d.ts +1 -2
- package/dist/neutral/health/initHealthEndpoints.d.ts.map +1 -1
- package/dist/neutral/index.mjs +124 -232
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/init/index.d.ts +1 -1
- package/dist/neutral/init/index.d.ts.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 -1
- package/dist/neutral/init/initBridgedModule.d.ts.map +1 -1
- package/dist/neutral/init/initChainStakeViewer.d.ts +1 -1
- package/dist/neutral/init/initChainStakeViewer.d.ts.map +1 -1
- package/dist/neutral/init/initFinalizedArchivist.d.ts +1 -1
- package/dist/neutral/init/initFinalizedArchivist.d.ts.map +1 -1
- package/dist/neutral/init/initProducerAccount.d.ts +1 -2
- package/dist/neutral/init/initProducerAccount.d.ts.map +1 -1
- package/dist/neutral/init/initServerNode.d.ts +1 -1
- package/dist/neutral/init/initServerNode.d.ts.map +1 -1
- package/dist/neutral/init/initStatusReporter.d.ts +1 -1
- package/dist/neutral/init/initStatusReporter.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/dist/neutral/init/initWallet.d.ts +6 -0
- package/dist/neutral/init/initWallet.d.ts.map +1 -0
- package/dist/neutral/manifest/getLocator.d.ts +1 -1
- package/dist/neutral/manifest/getLocator.d.ts.map +1 -1
- package/dist/neutral/manifest/loadNode.d.ts +1 -1
- package/dist/neutral/manifest/loadNode.d.ts.map +1 -1
- package/dist/neutral/orchestrator/Orchestrator.d.ts +1 -1
- package/dist/neutral/orchestrator/Orchestrator.d.ts.map +1 -1
- package/package.json +31 -32
- package/src/ChainInitializableParams.ts +1 -1
- package/src/ConfigContext.ts +1 -1
- package/src/actor/BalanceActor.ts +4 -3
- package/src/actor/ValidatorActor.ts +6 -6
- package/src/actor/index.ts +0 -1
- package/src/archivists/ChainFinalized/archivist.ts +1 -1
- package/src/archivists/ChainFinalized/local.ts +1 -2
- package/src/archivists/PendingBlocks/archivist.ts +1 -1
- package/src/archivists/PendingBlocks/local.ts +1 -2
- package/src/archivists/RejectedTransactions/archivist.ts +2 -2
- package/src/archivists/RejectedTransactions/local.ts +1 -1
- package/src/archivists/StakeIntentState/archivist.ts +2 -2
- package/src/archivists/StakeIntentState/local.ts +1 -1
- package/src/buildTelemetryConfig.ts +4 -9
- package/src/createDeclarationIntentBlock.ts +2 -2
- package/src/evm/initChainId.ts +1 -1
- package/src/evm/initEvmProvider.ts +1 -1
- package/src/evm/initInfuraProvider.ts +1 -1
- package/src/evm/initJsonRpcProvider.ts +1 -1
- package/src/health/initHealthEndpoints.ts +3 -2
- package/src/init/index.ts +1 -1
- package/src/init/initBalanceSummaryMap.ts +2 -2
- package/src/init/initBridgedModule.ts +1 -1
- package/src/init/initChainStakeViewer.ts +3 -3
- package/src/init/initFinalizedArchivist.ts +1 -1
- package/src/init/initProducerAccount.ts +4 -3
- package/src/init/initServerNode.ts +1 -1
- package/src/init/initStatusReporter.ts +1 -1
- package/src/init/initTransferSummaryMap.ts +2 -2
- package/src/init/initWallet.ts +36 -0
- package/src/manifest/getLocator.ts +4 -3
- package/src/manifest/loadNode.ts +1 -1
- package/src/manifest/public/Pending.json +6 -1
- package/src/orchestrator/Orchestrator.ts +1 -2
- package/dist/neutral/actor/Actor.d.ts +0 -248
- package/dist/neutral/actor/Actor.d.ts.map +0 -1
- package/dist/neutral/init/initServerWallet.d.ts +0 -3
- package/dist/neutral/init/initServerWallet.d.ts.map +0 -1
- package/src/actor/Actor.ts +0 -199
- package/src/init/initServerWallet.ts +0 -17
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { WithStorageMeta } from '@xyo-network/payload-model';
|
|
2
|
-
import type { MapType, TransfersStepSummary } from '@xyo-network/xl1-
|
|
2
|
+
import type { MapType, TransfersStepSummary } from '@xyo-network/xl1-sdk';
|
|
3
3
|
import type { ConfigContext } from '../ConfigContext.ts';
|
|
4
4
|
export declare function initTransferSummaryMap({ config, logger }: ConfigContext): Promise<MapType<string, WithStorageMeta<TransfersStepSummary>>>;
|
|
5
5
|
//# 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,4BAA4B,CAAA;AACjE,OAAO,KAAK,EAAE,OAAO,EAAE,oBAAoB,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"initTransferSummaryMap.d.ts","sourceRoot":"","sources":["../../../src/init/initTransferSummaryMap.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,KAAK,EAAE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAGzE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAExD,wBAAsB,sBAAsB,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,aAAa,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,eAAe,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAsB/I"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ConfigContext } from '../ConfigContext.ts';
|
|
2
|
+
export declare function initApiWallet({ config, logger }: ConfigContext): Promise<import("@xyo-network/wallet-model").WalletInstance>;
|
|
3
|
+
export declare function initMempoolWallet({ config, logger }: ConfigContext): Promise<import("@xyo-network/wallet-model").WalletInstance>;
|
|
4
|
+
export declare function initProducerWallet({ config, logger }: ConfigContext): Promise<import("@xyo-network/wallet-model").WalletInstance>;
|
|
5
|
+
export declare function initRewardsRedemptionApiWallet({ config, logger }: ConfigContext): Promise<import("@xyo-network/wallet-model").WalletInstance>;
|
|
6
|
+
//# sourceMappingURL=initWallet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"initWallet.d.ts","sourceRoot":"","sources":["../../../src/init/initWallet.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAaxD,wBAAsB,aAAa,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,aAAa,+DAGpE;AAED,wBAAsB,iBAAiB,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,aAAa,+DAGxE;AAED,wBAAsB,kBAAkB,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,aAAa,+DAGzE;AAED,wBAAsB,8BAA8B,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,aAAa,+DAGrF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ModuleFactoryLocator } from '@xyo-network/module-factory-locator';
|
|
2
2
|
import type { WithStorageMeta } from '@xyo-network/payload-model';
|
|
3
|
-
import type { BalancesStepSummary, MapType, TransfersStepSummary } from '@xyo-network/xl1-
|
|
3
|
+
import type { BalancesStepSummary, MapType, TransfersStepSummary } from '@xyo-network/xl1-sdk';
|
|
4
4
|
import type { ConfigContext } from '../ConfigContext.ts';
|
|
5
5
|
/**
|
|
6
6
|
* Used for retrieving a locator with the necessary modules registered for testing
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getLocator.d.ts","sourceRoot":"","sources":["../../../src/manifest/getLocator.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAA;AAE1E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EACV,mBAAmB,EAAE,OAAO,EAAE,oBAAoB,EACnD,MAAM
|
|
1
|
+
{"version":3,"file":"getLocator.d.ts","sourceRoot":"","sources":["../../../src/manifest/getLocator.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAA;AAE1E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EACV,mBAAmB,EAAE,OAAO,EAAE,oBAAoB,EACnD,MAAM,sBAAsB,CAAA;AAG7B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAExD;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAU,oBAAmB,aAAa,CAAC;IAChE,kBAAkB,EAAE,OAAO,CAAC,MAAM,EAAE,eAAe,CAAC,mBAAmB,CAAC,CAAC,CAAA;IACzE,mBAAmB,EAAE,OAAO,CAAC,MAAM,EAAE,eAAe,CAAC,oBAAoB,CAAC,CAAC,CAAA;CAC5E,CAAC,kCA4CD,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { WithStorageMeta } from '@xyo-network/payload-model';
|
|
2
2
|
import type { WalletInstance } from '@xyo-network/wallet-model';
|
|
3
|
-
import type { BalancesStepSummary, MapType, TransfersStepSummary } from '@xyo-network/xl1-
|
|
3
|
+
import type { BalancesStepSummary, MapType, TransfersStepSummary } from '@xyo-network/xl1-sdk';
|
|
4
4
|
import type { ConfigContext } from '../ConfigContext.ts';
|
|
5
5
|
/**
|
|
6
6
|
* Creates a node with the xyo-chain modules registered
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadNode.d.ts","sourceRoot":"","sources":["../../../src/manifest/loadNode.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,EACV,mBAAmB,EAAE,OAAO,EAAE,oBAAoB,EACnD,MAAM
|
|
1
|
+
{"version":3,"file":"loadNode.d.ts","sourceRoot":"","sources":["../../../src/manifest/loadNode.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,EACV,mBAAmB,EAAE,OAAO,EAAE,oBAAoB,EACnD,MAAM,sBAAsB,CAAA;AAE7B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAMxD;;;GAGG;AACH,eAAO,MAAM,QAAQ,GAAU,8DAE5B,aAAa,CAAC;IACf,kBAAkB,EAAE,OAAO,CAAC,MAAM,EAAE,eAAe,CAAC,mBAAmB,CAAC,CAAC,CAAA;IACzE,mBAAmB,EAAE,OAAO,CAAC,MAAM,EAAE,eAAe,CAAC,oBAAoB,CAAC,CAAC,CAAA;IAC3E,MAAM,EAAE,cAAc,CAAA;CACvB,CAAC,uKAWD,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CreatableInstance } from '@xylabs/sdk-js';
|
|
2
2
|
import { AbstractCreatable } from '@xylabs/sdk-js';
|
|
3
|
-
import
|
|
3
|
+
import { ActorInstance } from '@xyo-network/xl1-sdk';
|
|
4
4
|
export interface OrchestratorInstance extends CreatableInstance {
|
|
5
5
|
registerActor(actor: ActorInstance): Promise<void>;
|
|
6
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Orchestrator.d.ts","sourceRoot":"","sources":["../../../src/orchestrator/Orchestrator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAE,iBAAiB,EAAa,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"Orchestrator.d.ts","sourceRoot":"","sources":["../../../src/orchestrator/Orchestrator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAE,iBAAiB,EAAa,MAAM,gBAAgB,CAAA;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEpD,MAAM,WAAW,oBAAqB,SAAQ,iBAAiB;IAC7D,aAAa,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACnD;AAED,qBACa,YAAa,SAAQ,iBAAkB,YAAW,oBAAoB;IACjF,SAAS,CAAC,MAAM,EAAE,aAAa,EAAE,CAAK;IACtC,SAAS,CAAC,eAAe,EAAE,MAAM,CAAC,OAAO,GAAG,IAAI,CAAO;IACvD,SAAS,CAAC,OAAO,UAAQ;IAEzB;;;OAGG;IACG,aAAa,CAAC,KAAK,EAAE,aAAa;IAQxC;;OAEG;IACY,YAAY;IAkB3B;;OAEG;IACY,WAAW;CAe3B"}
|
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.18.
|
|
4
|
+
"version": "1.18.1",
|
|
5
5
|
"description": "XYO Layer One SDK Orchestration",
|
|
6
6
|
"homepage": "https://xylabs.com",
|
|
7
7
|
"bugs": {
|
|
@@ -39,45 +39,44 @@
|
|
|
39
39
|
"!**/*.test.*"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@xylabs/mongo": "~5.0.
|
|
43
|
-
"@xylabs/sdk-js": "~5.0.
|
|
44
|
-
"@xyo-network/archivist-lmdb": "~5.2.
|
|
45
|
-
"@xyo-network/archivist-memory": "~5.2.
|
|
46
|
-
"@xyo-network/archivist-model": "~5.2.
|
|
47
|
-
"@xyo-network/archivist-mongodb": "~5.2.
|
|
48
|
-
"@xyo-network/archivist-view": "~5.2.
|
|
42
|
+
"@xylabs/mongo": "~5.0.61",
|
|
43
|
+
"@xylabs/sdk-js": "~5.0.61",
|
|
44
|
+
"@xyo-network/archivist-lmdb": "~5.2.22",
|
|
45
|
+
"@xyo-network/archivist-memory": "~5.2.22",
|
|
46
|
+
"@xyo-network/archivist-model": "~5.2.22",
|
|
47
|
+
"@xyo-network/archivist-mongodb": "~5.2.22",
|
|
48
|
+
"@xyo-network/archivist-view": "~5.2.22",
|
|
49
49
|
"@xyo-network/bios": "~7.2.0",
|
|
50
|
-
"@xyo-network/bridge-model": "~5.2.
|
|
51
|
-
"@xyo-network/chain-protocol": "~1.18.
|
|
52
|
-
"@xyo-network/chain-sdk": "~1.18.
|
|
53
|
-
"@xyo-network/chain-telemetry": "~1.18.
|
|
54
|
-
"@xyo-network/chain-utils": "~1.18.
|
|
55
|
-
"@xyo-network/manifest-wrapper": "~5.2.
|
|
56
|
-
"@xyo-network/module-abstract": "~5.2.
|
|
57
|
-
"@xyo-network/module-factory-locator": "~5.2.
|
|
58
|
-
"@xyo-network/module-model": "~5.2.
|
|
59
|
-
"@xyo-network/payload-builder": "~5.2.
|
|
60
|
-
"@xyo-network/sentinel-memory": "~5.2.
|
|
50
|
+
"@xyo-network/bridge-model": "~5.2.22",
|
|
51
|
+
"@xyo-network/chain-protocol": "~1.18.1",
|
|
52
|
+
"@xyo-network/chain-sdk": "~1.18.1",
|
|
53
|
+
"@xyo-network/chain-telemetry": "~1.18.1",
|
|
54
|
+
"@xyo-network/chain-utils": "~1.18.1",
|
|
55
|
+
"@xyo-network/manifest-wrapper": "~5.2.22",
|
|
56
|
+
"@xyo-network/module-abstract": "~5.2.22",
|
|
57
|
+
"@xyo-network/module-factory-locator": "~5.2.22",
|
|
58
|
+
"@xyo-network/module-model": "~5.2.22",
|
|
59
|
+
"@xyo-network/payload-builder": "~5.2.22",
|
|
60
|
+
"@xyo-network/sentinel-memory": "~5.2.22",
|
|
61
61
|
"@xyo-network/typechain": "~4.0.11",
|
|
62
|
-
"@xyo-network/wallet": "~5.2.
|
|
63
|
-
"@xyo-network/xl1-
|
|
64
|
-
"@xyo-network/xl1-protocol-sdk": "~1.18.0",
|
|
62
|
+
"@xyo-network/wallet": "~5.2.22",
|
|
63
|
+
"@xyo-network/xl1-sdk": "~1.18.2",
|
|
65
64
|
"async-mutex": "~0.5.0",
|
|
66
65
|
"ethers": "^6.16.0"
|
|
67
66
|
},
|
|
68
67
|
"devDependencies": {
|
|
69
|
-
"@types/node": "~25.0.
|
|
70
|
-
"@xylabs/sdk-js": "~5.0.
|
|
71
|
-
"@xylabs/telemetry": "~5.0.
|
|
68
|
+
"@types/node": "~25.0.8",
|
|
69
|
+
"@xylabs/sdk-js": "~5.0.61",
|
|
70
|
+
"@xylabs/telemetry": "~5.0.61",
|
|
72
71
|
"@xylabs/ts-scripts-yarn3": "~7.2.32",
|
|
73
72
|
"@xylabs/tsconfig": "~7.2.32",
|
|
74
|
-
"@xyo-network/account-model": "~5.2.
|
|
73
|
+
"@xyo-network/account-model": "~5.2.22",
|
|
75
74
|
"@xyo-network/bios-model": "~7.2.0",
|
|
76
|
-
"@xyo-network/manifest-model": "~5.2.
|
|
77
|
-
"@xyo-network/module-model-mongodb": "~5.2.
|
|
78
|
-
"@xyo-network/node-model": "~5.2.
|
|
79
|
-
"@xyo-network/payload-model": "~5.2.
|
|
80
|
-
"@xyo-network/wallet-model": "~5.2.
|
|
75
|
+
"@xyo-network/manifest-model": "~5.2.22",
|
|
76
|
+
"@xyo-network/module-model-mongodb": "~5.2.22",
|
|
77
|
+
"@xyo-network/node-model": "~5.2.22",
|
|
78
|
+
"@xyo-network/payload-model": "~5.2.22",
|
|
79
|
+
"@xyo-network/wallet-model": "~5.2.22",
|
|
81
80
|
"eslint": "^9.39.2",
|
|
82
81
|
"typescript": "~5.9.3"
|
|
83
82
|
},
|
|
@@ -88,4 +87,4 @@
|
|
|
88
87
|
"publishConfig": {
|
|
89
88
|
"access": "restricted"
|
|
90
89
|
}
|
|
91
|
-
}
|
|
90
|
+
}
|
package/src/ConfigContext.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { assertEx } from '@xylabs/sdk-js'
|
|
2
|
-
import
|
|
2
|
+
import {
|
|
3
|
+
Actor,
|
|
4
|
+
type ActorParams, type ChainServiceCollectionV2, type Config,
|
|
5
|
+
} from '@xyo-network/xl1-sdk'
|
|
3
6
|
import { Mutex } from 'async-mutex'
|
|
4
7
|
|
|
5
|
-
import { Actor, type ActorParams } from './Actor.ts'
|
|
6
|
-
|
|
7
8
|
export type BalanceActorParams = ActorParams<
|
|
8
9
|
Pick<ChainServiceCollectionV2, 'balance' | 'blockViewer'>
|
|
9
10
|
& { config: Config }>
|
|
@@ -4,14 +4,14 @@ import { AccountInstance } from '@xyo-network/account-model'
|
|
|
4
4
|
import { ArchivistInstance } from '@xyo-network/archivist-model'
|
|
5
5
|
import { processPendingBlocks } from '@xyo-network/chain-sdk'
|
|
6
6
|
import { PayloadBuilder } from '@xyo-network/payload-builder'
|
|
7
|
-
import type { BlockBoundWitness } from '@xyo-network/xl1-
|
|
7
|
+
import type { BlockBoundWitness } from '@xyo-network/xl1-sdk'
|
|
8
8
|
import {
|
|
9
|
+
Actor,
|
|
10
|
+
ActorParams,
|
|
9
11
|
BlockViewer,
|
|
10
12
|
BlockViewerMoniker,
|
|
11
13
|
MempoolViewer, MempoolViewerMoniker,
|
|
12
|
-
} from '@xyo-network/xl1-
|
|
13
|
-
|
|
14
|
-
import { Actor, ActorParams } from './Actor.ts'
|
|
14
|
+
} from '@xyo-network/xl1-sdk'
|
|
15
15
|
|
|
16
16
|
export type ValidatorActorParams = ActorParams<
|
|
17
17
|
{
|
|
@@ -44,12 +44,12 @@ export class ValidatorActor extends Actor<ValidatorActorParams> {
|
|
|
44
44
|
await super.createHandler()
|
|
45
45
|
|
|
46
46
|
this._blockViewer = assertEx(
|
|
47
|
-
this.params.blockViewer ?? await this.locator
|
|
47
|
+
this.params.blockViewer ?? await this.locator?.getInstance<BlockViewer>(BlockViewerMoniker),
|
|
48
48
|
() => 'Unable to locate a BlockViewer',
|
|
49
49
|
)
|
|
50
50
|
|
|
51
51
|
this._mempoolViewer = assertEx(
|
|
52
|
-
this.params.mempoolViewer ?? await this.locator
|
|
52
|
+
this.params.mempoolViewer ?? await this.locator?.getInstance<MempoolViewer>(MempoolViewerMoniker),
|
|
53
53
|
() => 'Unable to locate a MempoolViewer',
|
|
54
54
|
)
|
|
55
55
|
}
|
package/src/actor/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ArchivistInstance } from '@xyo-network/archivist-model'
|
|
2
2
|
import { startupSpanAsync } from '@xyo-network/chain-utils'
|
|
3
|
-
import { timeBudget } from '@xyo-network/xl1-
|
|
3
|
+
import { timeBudget } from '@xyo-network/xl1-sdk'
|
|
4
4
|
import { Mutex } from 'async-mutex'
|
|
5
5
|
|
|
6
6
|
import type { ChainInitializableParams } from '../../ChainInitializableParams.ts'
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { ArchivistInstance } from '@xyo-network/archivist-model'
|
|
2
|
-
import type { Initializable } from '@xyo-network/xl1-
|
|
3
|
-
import type { CreatableProviderContext } from '@xyo-network/xl1-protocol-sdk'
|
|
2
|
+
import type { CreatableProviderContext, Initializable } from '@xyo-network/xl1-sdk'
|
|
4
3
|
import { Mutex } from 'async-mutex'
|
|
5
4
|
|
|
6
5
|
import { getLocalPersistentArchivist } from '../lib/index.ts'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ArchivistInstance } from '@xyo-network/archivist-model'
|
|
2
2
|
import { startupSpanAsync } from '@xyo-network/chain-utils'
|
|
3
|
-
import { timeBudget } from '@xyo-network/xl1-
|
|
3
|
+
import { timeBudget } from '@xyo-network/xl1-sdk'
|
|
4
4
|
import { Mutex } from 'async-mutex'
|
|
5
5
|
|
|
6
6
|
import type { ChainInitializableParams } from '../../ChainInitializableParams.ts'
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { ArchivistInstance } from '@xyo-network/archivist-model'
|
|
2
|
-
import type { Initializable } from '@xyo-network/xl1-
|
|
3
|
-
import type { Config } from '@xyo-network/xl1-protocol-sdk'
|
|
2
|
+
import type { Config, Initializable } from '@xyo-network/xl1-sdk'
|
|
4
3
|
import { Mutex } from 'async-mutex'
|
|
5
4
|
|
|
6
5
|
import { getLocalPersistentArchivist } from '../lib/index.ts'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ArchivistInstance } from '@xyo-network/archivist-model'
|
|
2
2
|
import { startupSpanAsync } from '@xyo-network/chain-utils'
|
|
3
|
-
import type { InitializableParams } from '@xyo-network/xl1-
|
|
4
|
-
import { timeBudget } from '@xyo-network/xl1-
|
|
3
|
+
import type { InitializableParams } from '@xyo-network/xl1-sdk'
|
|
4
|
+
import { timeBudget } from '@xyo-network/xl1-sdk'
|
|
5
5
|
import { Mutex } from 'async-mutex'
|
|
6
6
|
|
|
7
7
|
import { initLocalRejectedTransactionsArchivist } from './local.ts'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MemoryArchivist, MemoryArchivistConfigSchema } from '@xyo-network/archivist-memory'
|
|
2
2
|
import type { ArchivistInstance } from '@xyo-network/archivist-model'
|
|
3
|
-
import type { Initializable } from '@xyo-network/xl1-
|
|
3
|
+
import type { Initializable } from '@xyo-network/xl1-sdk'
|
|
4
4
|
import { Mutex } from 'async-mutex'
|
|
5
5
|
|
|
6
6
|
const mutex = new Mutex()
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { assertEx } from '@xylabs/sdk-js'
|
|
2
2
|
import type { ArchivistInstance } from '@xyo-network/archivist-model'
|
|
3
3
|
import { startupSpanAsync } from '@xyo-network/chain-utils'
|
|
4
|
-
import type { Initializable } from '@xyo-network/xl1-
|
|
5
|
-
import { timeBudget } from '@xyo-network/xl1-
|
|
4
|
+
import type { Initializable } from '@xyo-network/xl1-sdk'
|
|
5
|
+
import { timeBudget } from '@xyo-network/xl1-sdk'
|
|
6
6
|
import { Mutex } from 'async-mutex'
|
|
7
7
|
|
|
8
8
|
import type { ChainInitializableParams } from '../../ChainInitializableParams.ts'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { assertEx } from '@xylabs/sdk-js'
|
|
2
2
|
import type { ArchivistInstance } from '@xyo-network/archivist-model'
|
|
3
|
-
import type { Initializable } from '@xyo-network/xl1-
|
|
3
|
+
import type { Initializable } from '@xyo-network/xl1-sdk'
|
|
4
4
|
import { Mutex } from 'async-mutex'
|
|
5
5
|
|
|
6
6
|
import type { ChainInitializableParams } from '../../ChainInitializableParams.ts'
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
import type { Config } from '@xyo-network/xl1-
|
|
1
|
+
import type { Config } from '@xyo-network/xl1-sdk'
|
|
2
2
|
|
|
3
|
-
export function buildTelemetryConfig(config: Config, serviceName: string, serviceVersion: string) {
|
|
3
|
+
export function buildTelemetryConfig(config: Config, serviceName: string, serviceVersion: string, defaultMetricsScrapePort = 9464) {
|
|
4
4
|
const { otlpEndpoint } = config.telemetry?.otel ?? {}
|
|
5
|
-
const { path: endpoint = '/metrics', port
|
|
5
|
+
const { path: endpoint = '/metrics', port = defaultMetricsScrapePort } = config.telemetry?.metrics?.scrape ?? {}
|
|
6
6
|
const telemetryConfig = {
|
|
7
|
-
attributes: {
|
|
8
|
-
serviceName,
|
|
9
|
-
serviceVersion,
|
|
10
|
-
},
|
|
11
|
-
otlpEndpoint,
|
|
12
|
-
metricsConfig: { endpoint, port },
|
|
7
|
+
attributes: { serviceName, serviceVersion }, otlpEndpoint, metricsConfig: { endpoint, port },
|
|
13
8
|
}
|
|
14
9
|
return telemetryConfig
|
|
15
10
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { AccountInstance } from '@xyo-network/account-model'
|
|
2
2
|
import { buildNextBlock } from '@xyo-network/chain-sdk'
|
|
3
3
|
import type { WithHashMeta } from '@xyo-network/payload-model'
|
|
4
|
-
import type { BlockBoundWitness, XL1BlockRange } from '@xyo-network/xl1-
|
|
5
|
-
import { createDeclarationIntent } from '@xyo-network/xl1-
|
|
4
|
+
import type { BlockBoundWitness, XL1BlockRange } from '@xyo-network/xl1-sdk'
|
|
5
|
+
import { createDeclarationIntent } from '@xyo-network/xl1-sdk'
|
|
6
6
|
|
|
7
7
|
export async function createProducerChainStakeIntentBlock(prevBlock: WithHashMeta<BlockBoundWitness>, producerAccount: AccountInstance, range: XL1BlockRange) {
|
|
8
8
|
const producerDeclarationPayload = createDeclarationIntent(
|
package/src/evm/initChainId.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
assertEx, hexFrom, isDefined, isHex,
|
|
3
3
|
} from '@xylabs/sdk-js'
|
|
4
|
-
import type { Config } from '@xyo-network/xl1-
|
|
4
|
+
import type { Config } from '@xyo-network/xl1-sdk'
|
|
5
5
|
|
|
6
6
|
export const canUseChainId = (config: Pick<Config, 'evm'>): boolean => {
|
|
7
7
|
return isDefined(config.evm.chainId)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Logger } from '@xylabs/sdk-js'
|
|
2
2
|
import { assertEx } from '@xylabs/sdk-js'
|
|
3
|
-
import type { Config } from '@xyo-network/xl1-
|
|
3
|
+
import type { Config } from '@xyo-network/xl1-sdk'
|
|
4
4
|
import type { Provider } from 'ethers'
|
|
5
5
|
import type { JsonRpcProvider } from 'ethers/providers'
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { assertEx, isDefined } from '@xylabs/sdk-js'
|
|
2
|
-
import type { Config } from '@xyo-network/xl1-
|
|
2
|
+
import type { Config } from '@xyo-network/xl1-sdk'
|
|
3
3
|
import { InfuraProvider } from 'ethers/providers'
|
|
4
4
|
|
|
5
5
|
import { canUseChainId, getChainId } from './initChainId.ts'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { assertEx, isDefined } from '@xylabs/sdk-js'
|
|
2
|
-
import type { Config } from '@xyo-network/xl1-
|
|
2
|
+
import type { Config } from '@xyo-network/xl1-sdk'
|
|
3
3
|
import { JsonRpcProvider } from 'ethers/providers'
|
|
4
4
|
|
|
5
5
|
import { canUseChainId, getChainId } from './initChainId.ts'
|
|
@@ -5,8 +5,9 @@ import http from 'node:http'
|
|
|
5
5
|
|
|
6
6
|
import type { CreatableStatus, Logger } from '@xylabs/sdk-js'
|
|
7
7
|
import { isDefined } from '@xylabs/sdk-js'
|
|
8
|
-
import type {
|
|
9
|
-
|
|
8
|
+
import type {
|
|
9
|
+
Config, Initializable, RuntimeStatusMonitor,
|
|
10
|
+
} from '@xyo-network/xl1-sdk'
|
|
10
11
|
|
|
11
12
|
const sendStatus = (res: ServerResponse, status: CreatableStatus, errorCode: number) => {
|
|
12
13
|
const statusCode = status === 'started' ? 200 : errorCode
|
package/src/init/index.ts
CHANGED
|
@@ -5,6 +5,6 @@ export * from './initFinalizedArchivist.ts'
|
|
|
5
5
|
export * from './initProducerAccount.ts'
|
|
6
6
|
export * from './initSeedPhrase.ts'
|
|
7
7
|
export * from './initServerNode.ts'
|
|
8
|
-
export * from './initServerWallet.ts'
|
|
9
8
|
export * from './initStatusReporter.ts'
|
|
10
9
|
export * from './initTransferSummaryMap.ts'
|
|
10
|
+
export * from './initWallet.ts'
|
|
@@ -3,8 +3,8 @@ 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
5
|
import type { WithStorageMeta } from '@xyo-network/payload-model'
|
|
6
|
-
import type { BalancesStepSummary, MapType } from '@xyo-network/xl1-
|
|
7
|
-
import { hasMongoConfig, MemoryMap } from '@xyo-network/xl1-
|
|
6
|
+
import type { BalancesStepSummary, MapType } from '@xyo-network/xl1-sdk'
|
|
7
|
+
import { hasMongoConfig, MemoryMap } from '@xyo-network/xl1-sdk'
|
|
8
8
|
|
|
9
9
|
import type { ConfigContext } from '../ConfigContext.ts'
|
|
10
10
|
|
|
@@ -5,7 +5,7 @@ import { asAttachableArchivistInstance } from '@xyo-network/archivist-model'
|
|
|
5
5
|
import type { BridgeInstance } from '@xyo-network/bridge-model'
|
|
6
6
|
import type { AttachableModuleInstance, ModuleIdentifier } from '@xyo-network/module-model'
|
|
7
7
|
import { asAttachableModuleInstance } from '@xyo-network/module-model'
|
|
8
|
-
import type { Initializable } from '@xyo-network/xl1-
|
|
8
|
+
import type { Initializable } from '@xyo-network/xl1-sdk'
|
|
9
9
|
import { Mutex } from 'async-mutex'
|
|
10
10
|
|
|
11
11
|
const initMutex = new Mutex()
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
import type { EthereumChainStakeEventsParams, EthereumChainStakeViewerParams } from '@xyo-network/chain-sdk'
|
|
6
6
|
import { EthereumChainStakeEventsViewer, EthereumChainStakeViewer } from '@xyo-network/chain-sdk'
|
|
7
7
|
import { StakedXyoChainV2__factory } from '@xyo-network/typechain'
|
|
8
|
-
import type { ChainId } from '@xyo-network/xl1-protocol'
|
|
9
8
|
import type {
|
|
9
|
+
ChainId,
|
|
10
10
|
Config,
|
|
11
11
|
CreatableProviderContext, StakeViewer,
|
|
12
|
-
} from '@xyo-network/xl1-
|
|
13
|
-
import { SimpleStakeViewer } from '@xyo-network/xl1-
|
|
12
|
+
} from '@xyo-network/xl1-sdk'
|
|
13
|
+
import { SimpleStakeViewer } from '@xyo-network/xl1-sdk'
|
|
14
14
|
|
|
15
15
|
import { canUseEvmProvider, initEvmProvider } from '../evm/index.ts'
|
|
16
16
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MongoDBArchivistV2 } from '@xyo-network/archivist-mongodb'
|
|
2
2
|
import type { MongoDBModuleParamsV2 } from '@xyo-network/module-model-mongodb'
|
|
3
|
-
import type { Config } from '@xyo-network/xl1-
|
|
3
|
+
import type { Config } from '@xyo-network/xl1-sdk'
|
|
4
4
|
|
|
5
5
|
async function initMongoFinalizedArchivist(config: Config) {
|
|
6
6
|
const payloadSdkConfig = {
|
|
@@ -2,9 +2,10 @@ import type { Promisable } from '@xylabs/sdk-js'
|
|
|
2
2
|
import { isUndefined } from '@xylabs/sdk-js'
|
|
3
3
|
import { HDWallet } from '@xyo-network/wallet'
|
|
4
4
|
import type { WalletInstance } from '@xyo-network/wallet-model'
|
|
5
|
-
import type {
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
import type {
|
|
6
|
+
Config, Initializable, InitializableParams,
|
|
7
|
+
} from '@xyo-network/xl1-sdk'
|
|
8
|
+
import { ADDRESS_INDEX, generateXyoBaseWalletFromPhrase } from '@xyo-network/xl1-sdk'
|
|
8
9
|
|
|
9
10
|
let accountServiceSingleton: Promisable<WalletInstance> | undefined
|
|
10
11
|
|
|
@@ -5,7 +5,7 @@ import type { WithStorageMeta } from '@xyo-network/payload-model'
|
|
|
5
5
|
import type { WalletInstance } from '@xyo-network/wallet-model'
|
|
6
6
|
import type {
|
|
7
7
|
BalancesStepSummary, MapType, TransfersStepSummary,
|
|
8
|
-
} from '@xyo-network/xl1-
|
|
8
|
+
} from '@xyo-network/xl1-sdk'
|
|
9
9
|
|
|
10
10
|
import type { ConfigContext } from '../ConfigContext.ts'
|
|
11
11
|
import { loadNode } from '../manifest/index.ts'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Logger } from '@xylabs/sdk-js'
|
|
2
|
-
import { RuntimeStatusMonitor } from '@xyo-network/xl1-
|
|
2
|
+
import { RuntimeStatusMonitor } from '@xyo-network/xl1-sdk'
|
|
3
3
|
|
|
4
4
|
export function initStatusReporter({ logger }: { logger: Logger }) {
|
|
5
5
|
const statusReporter = new RuntimeStatusMonitor(logger)
|
|
@@ -3,8 +3,8 @@ 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
5
|
import type { WithStorageMeta } from '@xyo-network/payload-model'
|
|
6
|
-
import type { MapType, TransfersStepSummary } from '@xyo-network/xl1-
|
|
7
|
-
import { hasMongoConfig, MemoryMap } from '@xyo-network/xl1-
|
|
6
|
+
import type { MapType, TransfersStepSummary } from '@xyo-network/xl1-sdk'
|
|
7
|
+
import { hasMongoConfig, MemoryMap } from '@xyo-network/xl1-sdk'
|
|
8
8
|
|
|
9
9
|
import type { ConfigContext } from '../ConfigContext.ts'
|
|
10
10
|
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { isDefined } from '@xylabs/sdk-js'
|
|
2
|
+
import { boot } from '@xyo-network/bios'
|
|
3
|
+
import { HDWallet } from '@xyo-network/wallet'
|
|
4
|
+
|
|
5
|
+
import type { ConfigContext } from '../ConfigContext.ts'
|
|
6
|
+
import { initSeedPhrase } from './initSeedPhrase.ts'
|
|
7
|
+
|
|
8
|
+
async function initWallet({ config, logger }: ConfigContext, mnemonic?: string) {
|
|
9
|
+
const bios = await boot()
|
|
10
|
+
const seedPhrase = isDefined(mnemonic)
|
|
11
|
+
? mnemonic
|
|
12
|
+
: await initSeedPhrase({
|
|
13
|
+
bios, config, logger,
|
|
14
|
+
})
|
|
15
|
+
return await HDWallet.fromPhrase(seedPhrase)
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export async function initApiWallet({ config, logger }: ConfigContext) {
|
|
19
|
+
const { mnemonic } = config.api
|
|
20
|
+
return await initWallet({ config, logger }, mnemonic)
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export async function initMempoolWallet({ config, logger }: ConfigContext) {
|
|
24
|
+
const { mnemonic } = config.mempool
|
|
25
|
+
return await initWallet({ config, logger }, mnemonic)
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export async function initProducerWallet({ config, logger }: ConfigContext) {
|
|
29
|
+
const { mnemonic } = config.producer
|
|
30
|
+
return await initWallet({ config, logger }, mnemonic)
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export async function initRewardsRedemptionApiWallet({ config, logger }: ConfigContext) {
|
|
34
|
+
const { mnemonic } = config.rewardRedemptionApi
|
|
35
|
+
return await initWallet({ config, logger }, mnemonic)
|
|
36
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type BaseMongoSdkPrivateConfig } from '@xylabs/mongo'
|
|
2
2
|
import { isDefined } from '@xylabs/sdk-js'
|
|
3
3
|
import { MemoryArchivist } from '@xyo-network/archivist-memory'
|
|
4
|
-
import { MongoDBArchivistV2 } from '@xyo-network/archivist-mongodb'
|
|
4
|
+
import { MongoDBArchivistV2, MongoDBArchivistV2Deletable } from '@xyo-network/archivist-mongodb'
|
|
5
5
|
import { ViewArchivist } from '@xyo-network/archivist-view'
|
|
6
6
|
import { initTelemetry } from '@xyo-network/chain-telemetry'
|
|
7
7
|
import { AbstractModule, LoggerModuleStatusReporter } from '@xyo-network/module-abstract'
|
|
@@ -11,8 +11,8 @@ import type { WithStorageMeta } from '@xyo-network/payload-model'
|
|
|
11
11
|
import { MemorySentinel } from '@xyo-network/sentinel-memory'
|
|
12
12
|
import type {
|
|
13
13
|
BalancesStepSummary, MapType, TransfersStepSummary,
|
|
14
|
-
} from '@xyo-network/xl1-
|
|
15
|
-
import { hasMongoConfig } from '@xyo-network/xl1-
|
|
14
|
+
} from '@xyo-network/xl1-sdk'
|
|
15
|
+
import { hasMongoConfig } from '@xyo-network/xl1-sdk'
|
|
16
16
|
|
|
17
17
|
import type { ConfigContext } from '../ConfigContext.ts'
|
|
18
18
|
|
|
@@ -55,6 +55,7 @@ export const getLocator = async ({ config, logger}: ConfigContext<{
|
|
|
55
55
|
}
|
|
56
56
|
// Register the MongoDB Archivist as the default
|
|
57
57
|
locator.register(MongoDBArchivistV2.factory(params), undefined, true)
|
|
58
|
+
locator.register(MongoDBArchivistV2Deletable.factory(params), { 'network.xyo.storage.capabilities.delete': 'enabled' }, false)
|
|
58
59
|
}
|
|
59
60
|
|
|
60
61
|
locator.register(MemoryArchivist.factory({
|
package/src/manifest/loadNode.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { WithStorageMeta } from '@xyo-network/payload-model'
|
|
|
3
3
|
import type { WalletInstance } from '@xyo-network/wallet-model'
|
|
4
4
|
import type {
|
|
5
5
|
BalancesStepSummary, MapType, TransfersStepSummary,
|
|
6
|
-
} from '@xyo-network/xl1-
|
|
6
|
+
} from '@xyo-network/xl1-sdk'
|
|
7
7
|
|
|
8
8
|
import type { ConfigContext } from '../ConfigContext.ts'
|
|
9
9
|
import { getLocator } from './getLocator.ts'
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"maxEntries": 5000
|
|
20
20
|
},
|
|
21
21
|
"labels": {
|
|
22
|
+
"network.xyo.storage.capabilities.delete": "enabled",
|
|
22
23
|
"network.xyo.storage.class": "mongodb"
|
|
23
24
|
},
|
|
24
25
|
"payloadSdkConfig": {
|
|
@@ -35,6 +36,10 @@
|
|
|
35
36
|
"enabled": true,
|
|
36
37
|
"maxEntries": 5000
|
|
37
38
|
},
|
|
39
|
+
"labels": {
|
|
40
|
+
"network.xyo.storage.capabilities.delete": "enabled",
|
|
41
|
+
"network.xyo.storage.class": "mongodb"
|
|
42
|
+
},
|
|
38
43
|
"payloadSdkConfig": {
|
|
39
44
|
"collection": "pending_block_bundles"
|
|
40
45
|
},
|
|
@@ -46,4 +51,4 @@
|
|
|
46
51
|
}
|
|
47
52
|
],
|
|
48
53
|
"schema": "network.xyo.manifest"
|
|
49
|
-
}
|
|
54
|
+
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { CreatableInstance } from '@xylabs/sdk-js'
|
|
2
2
|
import { AbstractCreatable, creatable } from '@xylabs/sdk-js'
|
|
3
|
-
|
|
4
|
-
import type { ActorInstance } from '../actor/index.ts'
|
|
3
|
+
import { ActorInstance } from '@xyo-network/xl1-sdk'
|
|
5
4
|
|
|
6
5
|
export interface OrchestratorInstance extends CreatableInstance {
|
|
7
6
|
registerActor(actor: ActorInstance): Promise<void>
|