@xyo-network/xl1-cli 1.6.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/LICENSE +165 -0
- package/README.md +23 -0
- package/build/commands/api/index.d.ts +2 -0
- package/build/commands/api/index.d.ts.map +1 -0
- package/build/commands/api/runApi.d.ts +2 -0
- package/build/commands/api/runApi.d.ts.map +1 -0
- package/build/commands/index.d.ts +4 -0
- package/build/commands/index.d.ts.map +1 -0
- package/build/commands/producer/createDeclaration.d.ts +2 -0
- package/build/commands/producer/createDeclaration.d.ts.map +1 -0
- package/build/commands/producer/index.d.ts +3 -0
- package/build/commands/producer/index.d.ts.map +1 -0
- package/build/commands/producer/runProducer.d.ts +3 -0
- package/build/commands/producer/runProducer.d.ts.map +1 -0
- package/build/commands/validator/index.d.ts +2 -0
- package/build/commands/validator/index.d.ts.map +1 -0
- package/build/commands/validator/runValidator.d.ts +3 -0
- package/build/commands/validator/runValidator.d.ts.map +1 -0
- package/build/index.d.ts +4 -0
- package/build/index.d.ts.map +1 -0
- package/build/initEnv.d.ts +2 -0
- package/build/initEnv.d.ts.map +1 -0
- package/build/node/index.mjs +1502 -0
- package/build/node/index.mjs.map +1 -0
- package/build/node/xl1.mjs +1474 -0
- package/build/node/xl1.mjs.map +1 -0
- package/build/orchestration/actor/implementation/BalanceActor.d.ts +17 -0
- package/build/orchestration/actor/implementation/BalanceActor.d.ts.map +1 -0
- package/build/orchestration/actor/implementation/ChainHeadUpdateActor.d.ts +16 -0
- package/build/orchestration/actor/implementation/ChainHeadUpdateActor.d.ts.map +1 -0
- package/build/orchestration/actor/implementation/ProducerActor.d.ts +25 -0
- package/build/orchestration/actor/implementation/ProducerActor.d.ts.map +1 -0
- package/build/orchestration/actor/implementation/index.d.ts +4 -0
- package/build/orchestration/actor/implementation/index.d.ts.map +1 -0
- package/build/orchestration/actor/index.d.ts +3 -0
- package/build/orchestration/actor/index.d.ts.map +1 -0
- package/build/orchestration/actor/model/Actor.d.ts +38 -0
- package/build/orchestration/actor/model/Actor.d.ts.map +1 -0
- package/build/orchestration/actor/model/Orchestrator.d.ts +24 -0
- package/build/orchestration/actor/model/Orchestrator.d.ts.map +1 -0
- package/build/orchestration/actor/model/index.d.ts +3 -0
- package/build/orchestration/actor/model/index.d.ts.map +1 -0
- package/build/orchestration/archivists/ChainFinalized/archivist.d.ts +4 -0
- package/build/orchestration/archivists/ChainFinalized/archivist.d.ts.map +1 -0
- package/build/orchestration/archivists/ChainFinalized/index.d.ts +2 -0
- package/build/orchestration/archivists/ChainFinalized/index.d.ts.map +1 -0
- package/build/orchestration/archivists/ChainFinalized/local.d.ts +4 -0
- package/build/orchestration/archivists/ChainFinalized/local.d.ts.map +1 -0
- package/build/orchestration/archivists/ChainFinalized/remote.d.ts +4 -0
- package/build/orchestration/archivists/ChainFinalized/remote.d.ts.map +1 -0
- package/build/orchestration/archivists/ChainSubmissions/archivist.d.ts +4 -0
- package/build/orchestration/archivists/ChainSubmissions/archivist.d.ts.map +1 -0
- package/build/orchestration/archivists/ChainSubmissions/index.d.ts +2 -0
- package/build/orchestration/archivists/ChainSubmissions/index.d.ts.map +1 -0
- package/build/orchestration/archivists/ChainSubmissions/remote.d.ts +4 -0
- package/build/orchestration/archivists/ChainSubmissions/remote.d.ts.map +1 -0
- package/build/orchestration/archivists/PendingTransactions/archivist.d.ts +4 -0
- package/build/orchestration/archivists/PendingTransactions/archivist.d.ts.map +1 -0
- package/build/orchestration/archivists/PendingTransactions/index.d.ts +2 -0
- package/build/orchestration/archivists/PendingTransactions/index.d.ts.map +1 -0
- package/build/orchestration/archivists/PendingTransactions/local.d.ts +4 -0
- package/build/orchestration/archivists/PendingTransactions/local.d.ts.map +1 -0
- package/build/orchestration/archivists/PendingTransactions/remote.d.ts +4 -0
- package/build/orchestration/archivists/PendingTransactions/remote.d.ts.map +1 -0
- package/build/orchestration/archivists/RejectedTransactions/archivist.d.ts +4 -0
- package/build/orchestration/archivists/RejectedTransactions/archivist.d.ts.map +1 -0
- package/build/orchestration/archivists/RejectedTransactions/index.d.ts +2 -0
- package/build/orchestration/archivists/RejectedTransactions/index.d.ts.map +1 -0
- package/build/orchestration/archivists/RejectedTransactions/local.d.ts +4 -0
- package/build/orchestration/archivists/RejectedTransactions/local.d.ts.map +1 -0
- package/build/orchestration/archivists/StakeIntentState/archivist.d.ts +4 -0
- package/build/orchestration/archivists/StakeIntentState/archivist.d.ts.map +1 -0
- package/build/orchestration/archivists/StakeIntentState/index.d.ts +2 -0
- package/build/orchestration/archivists/StakeIntentState/index.d.ts.map +1 -0
- package/build/orchestration/archivists/StakeIntentState/local.d.ts +4 -0
- package/build/orchestration/archivists/StakeIntentState/local.d.ts.map +1 -0
- package/build/orchestration/archivists/index.d.ts +6 -0
- package/build/orchestration/archivists/index.d.ts.map +1 -0
- package/build/orchestration/archivists/lib/index.d.ts +2 -0
- package/build/orchestration/archivists/lib/index.d.ts.map +1 -0
- package/build/orchestration/archivists/lib/localPersistentArchivist.d.ts +12 -0
- package/build/orchestration/archivists/lib/localPersistentArchivist.d.ts.map +1 -0
- package/build/orchestration/health/index.d.ts +2 -0
- package/build/orchestration/health/index.d.ts.map +1 -0
- package/build/orchestration/health/initHealthEndpoints.d.ts +7 -0
- package/build/orchestration/health/initHealthEndpoints.d.ts.map +1 -0
- package/build/orchestration/host/implementation/DefaultHost.d.ts +12 -0
- package/build/orchestration/host/implementation/DefaultHost.d.ts.map +1 -0
- package/build/orchestration/host/implementation/DefaultServiceCollection.d.ts +24 -0
- package/build/orchestration/host/implementation/DefaultServiceCollection.d.ts.map +1 -0
- package/build/orchestration/host/implementation/DefaultServiceProvider.d.ts +7 -0
- package/build/orchestration/host/implementation/DefaultServiceProvider.d.ts.map +1 -0
- package/build/orchestration/host/implementation/index.d.ts +3 -0
- package/build/orchestration/host/implementation/index.d.ts.map +1 -0
- package/build/orchestration/host/index.d.ts +3 -0
- package/build/orchestration/host/index.d.ts.map +1 -0
- package/build/orchestration/host/model/Host.d.ts +19 -0
- package/build/orchestration/host/model/Host.d.ts.map +1 -0
- package/build/orchestration/host/model/ServiceCollection.d.ts +20 -0
- package/build/orchestration/host/model/ServiceCollection.d.ts.map +1 -0
- package/build/orchestration/host/model/ServiceProvider.d.ts +4 -0
- package/build/orchestration/host/model/ServiceProvider.d.ts.map +1 -0
- package/build/orchestration/host/model/index.d.ts +4 -0
- package/build/orchestration/host/model/index.d.ts.map +1 -0
- package/build/orchestration/index.d.ts +6 -0
- package/build/orchestration/index.d.ts.map +1 -0
- package/build/orchestration/initServices.d.ts +4 -0
- package/build/orchestration/initServices.d.ts.map +1 -0
- package/build/orchestration/map/BalanceSummary/index.d.ts +2 -0
- package/build/orchestration/map/BalanceSummary/index.d.ts.map +1 -0
- package/build/orchestration/map/BalanceSummary/initBalanceSummaryMap.d.ts +7 -0
- package/build/orchestration/map/BalanceSummary/initBalanceSummaryMap.d.ts.map +1 -0
- package/build/orchestration/map/BalanceSummary/local.d.ts +6 -0
- package/build/orchestration/map/BalanceSummary/local.d.ts.map +1 -0
- package/build/orchestration/map/driver/index.d.ts +2 -0
- package/build/orchestration/map/driver/index.d.ts.map +1 -0
- package/build/orchestration/map/driver/lmdb/Params.d.ts +7 -0
- package/build/orchestration/map/driver/lmdb/Params.d.ts.map +1 -0
- package/build/orchestration/map/driver/lmdb/SynchronousLmdbMap.d.ts +32 -0
- package/build/orchestration/map/driver/lmdb/SynchronousLmdbMap.d.ts.map +1 -0
- package/build/orchestration/map/driver/lmdb/index.d.ts +2 -0
- package/build/orchestration/map/driver/lmdb/index.d.ts.map +1 -0
- package/build/orchestration/map/index.d.ts +3 -0
- package/build/orchestration/map/index.d.ts.map +1 -0
- package/build/orchestration/map/localPersistentMap.d.ts +12 -0
- package/build/orchestration/map/localPersistentMap.d.ts.map +1 -0
- package/build/orchestration/repository/index.d.ts +2 -0
- package/build/orchestration/repository/index.d.ts.map +1 -0
- package/build/orchestration/repository/lib/index.d.ts +2 -0
- package/build/orchestration/repository/lib/index.d.ts.map +1 -0
- package/build/orchestration/repository/lib/repositoryFromArchivist.d.ts +6 -0
- package/build/orchestration/repository/lib/repositoryFromArchivist.d.ts.map +1 -0
- package/build/orchestration/services/implementation/account.d.ts +4 -0
- package/build/orchestration/services/implementation/account.d.ts.map +1 -0
- package/build/orchestration/services/implementation/balance.d.ts +4 -0
- package/build/orchestration/services/implementation/balance.d.ts.map +1 -0
- package/build/orchestration/services/implementation/chain/evm.d.ts +6 -0
- package/build/orchestration/services/implementation/chain/evm.d.ts.map +1 -0
- package/build/orchestration/services/implementation/chain/index.d.ts +4 -0
- package/build/orchestration/services/implementation/chain/index.d.ts.map +1 -0
- package/build/orchestration/services/implementation/evm/index.d.ts +2 -0
- package/build/orchestration/services/implementation/evm/index.d.ts.map +1 -0
- package/build/orchestration/services/implementation/evm/initChainId.d.ts +3 -0
- package/build/orchestration/services/implementation/evm/initChainId.d.ts.map +1 -0
- package/build/orchestration/services/implementation/evm/initEvmProvider.d.ts +4 -0
- package/build/orchestration/services/implementation/evm/initEvmProvider.d.ts.map +1 -0
- package/build/orchestration/services/implementation/evm/initGanacheProvider.d.ts +5 -0
- package/build/orchestration/services/implementation/evm/initGanacheProvider.d.ts.map +1 -0
- package/build/orchestration/services/implementation/evm/initInfuraProvider.d.ts +5 -0
- package/build/orchestration/services/implementation/evm/initInfuraProvider.d.ts.map +1 -0
- package/build/orchestration/services/implementation/head.d.ts +10 -0
- package/build/orchestration/services/implementation/head.d.ts.map +1 -0
- package/build/orchestration/services/implementation/index.d.ts +11 -0
- package/build/orchestration/services/implementation/index.d.ts.map +1 -0
- package/build/orchestration/services/implementation/iterator.d.ts +6 -0
- package/build/orchestration/services/implementation/iterator.d.ts.map +1 -0
- package/build/orchestration/services/implementation/pendingTransactions.d.ts +4 -0
- package/build/orchestration/services/implementation/pendingTransactions.d.ts.map +1 -0
- package/build/orchestration/services/implementation/producer.d.ts +4 -0
- package/build/orchestration/services/implementation/producer.d.ts.map +1 -0
- package/build/orchestration/services/implementation/reward.d.ts +4 -0
- package/build/orchestration/services/implementation/reward.d.ts.map +1 -0
- package/build/orchestration/services/implementation/validator.d.ts +4 -0
- package/build/orchestration/services/implementation/validator.d.ts.map +1 -0
- package/build/orchestration/services/index.d.ts +2 -0
- package/build/orchestration/services/index.d.ts.map +1 -0
- package/build/orchestration/status/RuntimeStatusMonitor.d.ts +31 -0
- package/build/orchestration/status/RuntimeStatusMonitor.d.ts.map +1 -0
- package/build/orchestration/status/ServiceStatus.d.ts +9 -0
- package/build/orchestration/status/ServiceStatus.d.ts.map +1 -0
- package/build/orchestration/status/index.d.ts +3 -0
- package/build/orchestration/status/index.d.ts.map +1 -0
- package/build/orchestration/store/StoreKind.d.ts +2 -0
- package/build/orchestration/store/StoreKind.d.ts.map +1 -0
- package/build/orchestration/store/getStoreDirectory.d.ts +9 -0
- package/build/orchestration/store/getStoreDirectory.d.ts.map +1 -0
- package/build/orchestration/store/index.d.ts +3 -0
- package/build/orchestration/store/index.d.ts.map +1 -0
- package/build/runCLI.d.ts +3 -0
- package/build/runCLI.d.ts.map +1 -0
- package/build/start.d.ts +2 -0
- package/build/start.d.ts.map +1 -0
- package/build/xl1.d.ts +2 -0
- package/build/xl1.d.ts.map +1 -0
- package/dist/cli-min.mjs +400 -0
- package/nodemon.json +9 -0
- package/package.json +97 -0
- package/rollup.config.mjs +73 -0
- package/scripts/xl1.mjs +3 -0
- package/src/commands/api/index.ts +1 -0
- package/src/commands/api/runApi.ts +7 -0
- package/src/commands/index.ts +3 -0
- package/src/commands/producer/createDeclaration.ts +17 -0
- package/src/commands/producer/index.ts +2 -0
- package/src/commands/producer/runProducer.ts +25 -0
- package/src/commands/validator/index.ts +1 -0
- package/src/commands/validator/runValidator.ts +13 -0
- package/src/index.ts +3 -0
- package/src/initEnv.ts +8 -0
- package/src/orchestration/actor/implementation/BalanceActor.ts +51 -0
- package/src/orchestration/actor/implementation/ChainHeadUpdateActor.ts +65 -0
- package/src/orchestration/actor/implementation/ProducerActor.ts +250 -0
- package/src/orchestration/actor/implementation/index.ts +3 -0
- package/src/orchestration/actor/index.ts +2 -0
- package/src/orchestration/actor/model/Actor.ts +113 -0
- package/src/orchestration/actor/model/Orchestrator.ts +65 -0
- package/src/orchestration/actor/model/index.ts +2 -0
- package/src/orchestration/archivists/ChainFinalized/archivist.ts +27 -0
- package/src/orchestration/archivists/ChainFinalized/index.ts +1 -0
- package/src/orchestration/archivists/ChainFinalized/local.ts +16 -0
- package/src/orchestration/archivists/ChainFinalized/remote.ts +18 -0
- package/src/orchestration/archivists/ChainSubmissions/archivist.ts +19 -0
- package/src/orchestration/archivists/ChainSubmissions/index.ts +1 -0
- package/src/orchestration/archivists/ChainSubmissions/remote.ts +18 -0
- package/src/orchestration/archivists/PendingTransactions/archivist.ts +29 -0
- package/src/orchestration/archivists/PendingTransactions/index.ts +1 -0
- package/src/orchestration/archivists/PendingTransactions/local.ts +20 -0
- package/src/orchestration/archivists/PendingTransactions/remote.ts +18 -0
- package/src/orchestration/archivists/RejectedTransactions/archivist.ts +18 -0
- package/src/orchestration/archivists/RejectedTransactions/index.ts +1 -0
- package/src/orchestration/archivists/RejectedTransactions/local.ts +20 -0
- package/src/orchestration/archivists/StakeIntentState/archivist.ts +19 -0
- package/src/orchestration/archivists/StakeIntentState/index.ts +1 -0
- package/src/orchestration/archivists/StakeIntentState/local.ts +19 -0
- package/src/orchestration/archivists/index.ts +5 -0
- package/src/orchestration/archivists/lib/index.ts +1 -0
- package/src/orchestration/archivists/lib/localPersistentArchivist.ts +44 -0
- package/src/orchestration/health/index.ts +1 -0
- package/src/orchestration/health/initHealthEndpoints.ts +70 -0
- package/src/orchestration/host/implementation/DefaultHost.ts +25 -0
- package/src/orchestration/host/implementation/DefaultServiceCollection.ts +60 -0
- package/src/orchestration/host/implementation/DefaultServiceProvider.ts +12 -0
- package/src/orchestration/host/implementation/index.ts +2 -0
- package/src/orchestration/host/index.ts +2 -0
- package/src/orchestration/host/model/Host.ts +21 -0
- package/src/orchestration/host/model/ServiceCollection.ts +22 -0
- package/src/orchestration/host/model/ServiceProvider.ts +3 -0
- package/src/orchestration/host/model/index.ts +3 -0
- package/src/orchestration/index.ts +5 -0
- package/src/orchestration/initServices.ts +237 -0
- package/src/orchestration/map/BalanceSummary/index.ts +1 -0
- package/src/orchestration/map/BalanceSummary/initBalanceSummaryMap.ts +22 -0
- package/src/orchestration/map/BalanceSummary/local.ts +19 -0
- package/src/orchestration/map/driver/index.ts +1 -0
- package/src/orchestration/map/driver/lmdb/Params.ts +7 -0
- package/src/orchestration/map/driver/lmdb/SynchronousLmdbMap.ts +67 -0
- package/src/orchestration/map/driver/lmdb/index.ts +1 -0
- package/src/orchestration/map/index.ts +2 -0
- package/src/orchestration/map/localPersistentMap.ts +39 -0
- package/src/orchestration/repository/index.ts +1 -0
- package/src/orchestration/repository/lib/index.ts +1 -0
- package/src/orchestration/repository/lib/repositoryFromArchivist.ts +27 -0
- package/src/orchestration/services/implementation/account.ts +23 -0
- package/src/orchestration/services/implementation/balance.ts +13 -0
- package/src/orchestration/services/implementation/chain/evm.ts +35 -0
- package/src/orchestration/services/implementation/chain/index.ts +27 -0
- package/src/orchestration/services/implementation/evm/index.ts +1 -0
- package/src/orchestration/services/implementation/evm/initChainId.ts +18 -0
- package/src/orchestration/services/implementation/evm/initEvmProvider.ts +21 -0
- package/src/orchestration/services/implementation/evm/initGanacheProvider.ts +19 -0
- package/src/orchestration/services/implementation/evm/initInfuraProvider.ts +25 -0
- package/src/orchestration/services/implementation/head.ts +44 -0
- package/src/orchestration/services/implementation/index.ts +10 -0
- package/src/orchestration/services/implementation/iterator.ts +36 -0
- package/src/orchestration/services/implementation/pendingTransactions.ts +14 -0
- package/src/orchestration/services/implementation/producer.ts +13 -0
- package/src/orchestration/services/implementation/reward.ts +37 -0
- package/src/orchestration/services/implementation/validator.ts +14 -0
- package/src/orchestration/services/index.ts +1 -0
- package/src/orchestration/status/RuntimeStatusMonitor.ts +117 -0
- package/src/orchestration/status/ServiceStatus.ts +21 -0
- package/src/orchestration/status/index.ts +2 -0
- package/src/orchestration/store/StoreKind.ts +1 -0
- package/src/orchestration/store/getStoreDirectory.ts +15 -0
- package/src/orchestration/store/index.ts +2 -0
- package/src/runCLI.ts +96 -0
- package/src/spec/MultiProducer.ChainOutput.json +864 -0
- package/src/start.ts +26 -0
- package/src/xl1.ts +6 -0
- package/vitest.config.ts +11 -0
- package/xy.config.ts +11 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ArchivistInstance } from '@xyo-network/archivist-model';
|
|
2
|
+
import type { Initializable } from '@xyo-network/xl1-protocol';
|
|
3
|
+
export declare const initLocalPendingTransactionsArchivist: Initializable<void, ArchivistInstance>;
|
|
4
|
+
//# sourceMappingURL=local.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local.d.ts","sourceRoot":"","sources":["../../../../src/orchestration/archivists/PendingTransactions/local.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAM9D,eAAO,MAAM,qCAAqC,EAAE,aAAa,CAAC,IAAI,EAAE,iBAAiB,CAWxF,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ArchivistInstance } from '@xyo-network/archivist-model';
|
|
2
|
+
import type { Initializable } from '@xyo-network/xl1-protocol';
|
|
3
|
+
export declare const initRemotePendingTransactionsArchivist: Initializable<void, ArchivistInstance>;
|
|
4
|
+
//# sourceMappingURL=remote.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remote.d.ts","sourceRoot":"","sources":["../../../../src/orchestration/archivists/PendingTransactions/remote.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAErE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAO9D,eAAO,MAAM,sCAAsC,EAAE,aAAa,CAAC,IAAI,EAAE,iBAAiB,CAOzF,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { TracerProvider } from '@opentelemetry/api';
|
|
2
|
+
import type { ArchivistInstance } from '@xyo-network/archivist-model';
|
|
3
|
+
export declare function initRejectedTransactionsArchivist(_traceProvider: TracerProvider): Promise<ArchivistInstance<import("@xyo-network/archivist-model").ArchivistParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/archivist-model").ArchivistConfig>>, import("@xyo-network/archivist-model").ArchivistModuleEventData, import("@xyo-network/payload-model").Payload>>;
|
|
4
|
+
//# sourceMappingURL=archivist.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"archivist.d.ts","sourceRoot":"","sources":["../../../../src/orchestration/archivists/RejectedTransactions/archivist.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AASrE,wBAAsB,iCAAiC,CAAC,cAAc,EAAE,cAAc,kTAOrF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/orchestration/archivists/RejectedTransactions/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ArchivistInstance } from '@xyo-network/archivist-model';
|
|
2
|
+
import type { Initializable } from '@xyo-network/xl1-protocol';
|
|
3
|
+
export declare const initLocalRejectedTransactionsArchivist: Initializable<void, ArchivistInstance>;
|
|
4
|
+
//# sourceMappingURL=local.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local.d.ts","sourceRoot":"","sources":["../../../../src/orchestration/archivists/RejectedTransactions/local.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAM9D,eAAO,MAAM,sCAAsC,EAAE,aAAa,CAAC,IAAI,EAAE,iBAAiB,CAWzF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"archivist.d.ts","sourceRoot":"","sources":["../../../../src/orchestration/archivists/StakeIntentState/archivist.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAErE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAQ9D,eAAO,MAAM,6BAA6B,EAAE,aAAa,CAAC,IAAI,EAAE,iBAAiB,CAOhF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/orchestration/archivists/StakeIntentState/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local.d.ts","sourceRoot":"","sources":["../../../../src/orchestration/archivists/StakeIntentState/local.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAQ9D,eAAO,MAAM,kCAAkC,EAAE,aAAa,CAAC,IAAI,EAAE,iBAAiB,CAQrF,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './ChainFinalized/index.ts';
|
|
2
|
+
export * from './ChainSubmissions/index.ts';
|
|
3
|
+
export * from './PendingTransactions/index.ts';
|
|
4
|
+
export * from './RejectedTransactions/index.ts';
|
|
5
|
+
export * from './StakeIntentState/index.ts';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/orchestration/archivists/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,6BAA6B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/orchestration/archivists/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ArchivistInstance } from '@xyo-network/archivist-model';
|
|
2
|
+
import type { StoreKind } from '../../store/index.ts';
|
|
3
|
+
/**
|
|
4
|
+
* Returns a local persistent archivist
|
|
5
|
+
* @param dbName The name of the database
|
|
6
|
+
* @param storeName The name of the store
|
|
7
|
+
* @param kind The kind of the archivist
|
|
8
|
+
* @returns an archivist instance
|
|
9
|
+
*/
|
|
10
|
+
export declare const getLocalPersistentArchivist: (dbName: string, storeName: string, kind?: StoreKind) => Promise<ArchivistInstance>;
|
|
11
|
+
export declare const deleteLocalPersistentArchivist: (dbName: string, _storeName: string, kind?: StoreKind) => Promise<void>;
|
|
12
|
+
//# sourceMappingURL=localPersistentArchivist.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"localPersistentArchivist.d.ts","sourceRoot":"","sources":["../../../../src/orchestration/archivists/lib/localPersistentArchivist.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAErE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAGrD;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,GAAI,QAAQ,MAAM,EAAE,WAAW,MAAM,EAAE,OAAM,SAAkB,KAAG,OAAO,CAAC,iBAAiB,CAelI,CAAA;AAED,eAAO,MAAM,8BAA8B,GAAU,QAAQ,MAAM,EAAE,YAAY,MAAM,EAAE,OAAM,SAAkB,KAAG,OAAO,CAAC,IAAI,CAW/H,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/orchestration/health/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Server } from 'node:http';
|
|
2
|
+
import type { Initializable } from '@xyo-network/xl1-protocol';
|
|
3
|
+
import type { RuntimeStatusMonitor } from '../status/index.ts';
|
|
4
|
+
export declare const initHealthEndpoints: Initializable<{
|
|
5
|
+
statusReporter: RuntimeStatusMonitor;
|
|
6
|
+
}, Server | undefined>;
|
|
7
|
+
//# sourceMappingURL=initHealthEndpoints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"initHealthEndpoints.d.ts","sourceRoot":"","sources":["../../../src/orchestration/health/initHealthEndpoints.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACO,MAAM,EACxB,MAAM,WAAW,CAAA;AAKlB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAE9D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AAsD9D,eAAO,MAAM,mBAAmB,EAAE,aAAa,CAAC;IAAE,cAAc,EAAE,oBAAoB,CAAA;CAAE,EAAE,MAAM,GAAG,SAAS,CAM3G,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Host, ServiceProvider } from '../model/index.ts';
|
|
2
|
+
/**
|
|
3
|
+
* A generic host implementation that can be used as a starting point for
|
|
4
|
+
* more complex host implementations.
|
|
5
|
+
*/
|
|
6
|
+
export declare class GenericHost implements Host {
|
|
7
|
+
services: ServiceProvider;
|
|
8
|
+
constructor(services: ServiceProvider);
|
|
9
|
+
start(): Promise<void>;
|
|
10
|
+
stop(): Promise<void>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=DefaultHost.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefaultHost.d.ts","sourceRoot":"","sources":["../../../../src/orchestration/host/implementation/DefaultHost.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAE9D;;;GAGG;AACH,qBAAa,WAAY,YAAW,IAAI;IACtC,QAAQ,EAAE,eAAe,CAAA;gBAEb,QAAQ,EAAE,eAAe;IAI/B,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAMtB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAK5B"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ServiceCollection, ServiceProvider } from '../model/index.ts';
|
|
2
|
+
/**
|
|
3
|
+
* A collection of service descriptors, allowing adding/removing services before building.
|
|
4
|
+
*/
|
|
5
|
+
export declare class DefaultServiceCollection implements ServiceCollection {
|
|
6
|
+
private readonly descriptors;
|
|
7
|
+
/**
|
|
8
|
+
* Register a service as Singleton: a single instance is created and shared.
|
|
9
|
+
*/
|
|
10
|
+
addSingleton<T>(identifier: string | symbol, implementationFactory: () => T): void;
|
|
11
|
+
/**
|
|
12
|
+
* Register a service as Transient: a new instance is created on each request.
|
|
13
|
+
*/
|
|
14
|
+
addTransient<T>(_identifier: string | symbol, _implementationFactory: () => T): void;
|
|
15
|
+
/**
|
|
16
|
+
* Build a concrete, immutable service provider from the current descriptors.
|
|
17
|
+
*/
|
|
18
|
+
build(): ServiceProvider;
|
|
19
|
+
/**
|
|
20
|
+
* Removes all registrations matching the given identifier.
|
|
21
|
+
*/
|
|
22
|
+
remove(identifier: string | symbol): void;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=DefaultServiceCollection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefaultServiceCollection.d.ts","sourceRoot":"","sources":["../../../../src/orchestration/host/implementation/DefaultServiceCollection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EAAqB,eAAe,EACtD,MAAM,mBAAmB,CAAA;AAI1B;;GAEG;AACH,qBAAa,wBAAyB,YAAW,iBAAiB;IAChE,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA0B;IAEtD;;OAEG;IACH,YAAY,CAAC,CAAC,EACZ,UAAU,EAAE,MAAM,GAAG,MAAM,EAC3B,qBAAqB,EAAE,MAAM,CAAC,GAC7B,IAAI;IAQP;;OAEG;IACH,YAAY,CAAC,CAAC,EACZ,WAAW,EAAE,MAAM,GAAG,MAAM,EAC5B,sBAAsB,EAAE,MAAM,CAAC,GAC9B,IAAI;IAIP;;OAEG;IACH,KAAK,IAAI,eAAe;IAUxB;;OAEG;IACH,MAAM,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;CAO1C"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ServiceProvider } from '../model/index.ts';
|
|
2
|
+
export declare class DefaultServiceProvider implements ServiceProvider {
|
|
3
|
+
protected _services: Record<string, unknown>;
|
|
4
|
+
constructor(services: Record<string, unknown>);
|
|
5
|
+
getService<T>(serviceIdentifier: string): T | undefined;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=DefaultServiceProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefaultServiceProvider.d.ts","sourceRoot":"","sources":["../../../../src/orchestration/host/implementation/DefaultServiceProvider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAExD,qBAAa,sBAAuB,YAAW,eAAe;IAC5D,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;gBAChC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAI7C,UAAU,CAAC,CAAC,EAAE,iBAAiB,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS;CAGxD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/orchestration/host/implementation/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,6BAA6B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/orchestration/host/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ServiceProvider } from './ServiceProvider.ts';
|
|
2
|
+
/**
|
|
3
|
+
* Represents the host for an application.
|
|
4
|
+
*/
|
|
5
|
+
export interface Host {
|
|
6
|
+
/**
|
|
7
|
+
* Provides access to the application's services (for dependency injection).
|
|
8
|
+
*/
|
|
9
|
+
services: ServiceProvider;
|
|
10
|
+
/**
|
|
11
|
+
* Starts the host and any underlying services (e.g., background tasks).
|
|
12
|
+
*/
|
|
13
|
+
start(): Promise<void>;
|
|
14
|
+
/**
|
|
15
|
+
* Stops the host and attempts to gracefully shut down services.
|
|
16
|
+
*/
|
|
17
|
+
stop(): Promise<void>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=Host.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Host.d.ts","sourceRoot":"","sources":["../../../../src/orchestration/host/model/Host.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAE3D;;GAEG;AACH,MAAM,WAAW,IAAI;IACnB;;OAEG;IACH,QAAQ,EAAE,eAAe,CAAA;IAEzB;;OAEG;IACH,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;IAEtB;;OAEG;IACH,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;CACtB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ServiceProvider } from './ServiceProvider.ts';
|
|
2
|
+
export interface ServiceCollection {
|
|
3
|
+
build(): ServiceProvider;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Represents the lifetime of a service
|
|
7
|
+
*/
|
|
8
|
+
export declare const ServiceLifetime: {
|
|
9
|
+
readonly Singleton: "Singleton";
|
|
10
|
+
readonly Transient: "Transient";
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Describes a single service registration
|
|
14
|
+
*/
|
|
15
|
+
export interface ServiceDescriptor<T = unknown> {
|
|
16
|
+
identifier: string | symbol;
|
|
17
|
+
implementationFactory: () => T;
|
|
18
|
+
lifetime: keyof typeof ServiceLifetime;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=ServiceCollection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ServiceCollection.d.ts","sourceRoot":"","sources":["../../../../src/orchestration/host/model/ServiceCollection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAE3D,MAAM,WAAW,iBAAiB;IAChC,KAAK,IAAI,eAAe,CAAA;CACzB;AAED;;GAEG;AACH,eAAO,MAAM,eAAe;;;CAGlB,CAAA;AAEV;;GAEG;AACH,MAAM,WAAW,iBAAiB,CAAC,CAAC,GAAG,OAAO;IAC5C,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,qBAAqB,EAAE,MAAM,CAAC,CAAA;IAC9B,QAAQ,EAAE,MAAM,OAAO,eAAe,CAAA;CACvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ServiceProvider.d.ts","sourceRoot":"","sources":["../../../../src/orchestration/host/model/ServiceProvider.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,UAAU,CAAC,CAAC,GAAG,OAAO,EAAE,iBAAiB,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS,CAAA;CAClE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/orchestration/host/model/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,wBAAwB,CAAA;AACtC,cAAc,sBAAsB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/orchestration/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA;AACnC,cAAc,mBAAmB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"initServices.d.ts","sourceRoot":"","sources":["../../src/orchestration/initServices.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAS5C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAA;AAiC7E,eAAO,MAAM,YAAY,GAAU,SAAS,MAAM,KAAG,OAAO,CAAC,wBAAwB,CA+LpF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/orchestration/map/BalanceSummary/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TracerProvider } from '@opentelemetry/api';
|
|
2
|
+
import type { Hash } from '@xylabs/hex';
|
|
3
|
+
import type { MapType } from '@xyo-network/chain-protocol';
|
|
4
|
+
import type { WithStorageMeta } from '@xyo-network/payload-model';
|
|
5
|
+
import type { BalancesStepSummary } from '@xyo-network/xl1-protocol-sdk';
|
|
6
|
+
export declare function initBalanceSummaryMap(_traceProvider: TracerProvider): Promise<MapType<Hash, WithStorageMeta<BalancesStepSummary>>>;
|
|
7
|
+
//# sourceMappingURL=initBalanceSummaryMap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"initBalanceSummaryMap.d.ts","sourceRoot":"","sources":["../../../../src/orchestration/map/BalanceSummary/initBalanceSummaryMap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AAE1D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAA;AAQxE,wBAAsB,qBAAqB,CAAC,cAAc,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,eAAe,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAOxI"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Hash } from '@xylabs/hex';
|
|
2
|
+
import type { MapType } from '@xyo-network/chain-protocol';
|
|
3
|
+
import type { WithStorageMeta } from '@xyo-network/payload-model';
|
|
4
|
+
import type { BalancesStepSummary } from '@xyo-network/xl1-protocol-sdk';
|
|
5
|
+
export declare const initLocalBalanceSummaryMap: () => Promise<MapType<Hash, WithStorageMeta<BalancesStepSummary>>>;
|
|
6
|
+
//# sourceMappingURL=local.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local.d.ts","sourceRoot":"","sources":["../../../../src/orchestration/map/BalanceSummary/local.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AAC1D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAA;AAQxE,eAAO,MAAM,0BAA0B,QAAa,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,eAAe,CAAC,mBAAmB,CAAC,CAAC,CAM9G,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/orchestration/map/driver/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../../../../src/orchestration/map/driver/lmdb/Params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAEpE,MAAM,WAAW,aAAc,SAAQ,iBAAiB;IACtD,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;CAClB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { SynchronousMap } from '@xyo-network/chain-protocol';
|
|
2
|
+
import { BaseService } from '@xyo-network/chain-services';
|
|
3
|
+
import { Database, Key, RootDatabase } from 'lmdb';
|
|
4
|
+
import { LmdbMapParams } from './Params.ts';
|
|
5
|
+
/**
|
|
6
|
+
* A synchronous LMDB-backed Map implementation.
|
|
7
|
+
* This class provides a synchronous interface to an LMDB database, allowing for key-value storage.
|
|
8
|
+
* It allows for multi-tenancy within a single LMDB environment by using a root database (located
|
|
9
|
+
* at this.folderPath) and a specific DB within the environment (specified by this.params.storeName).
|
|
10
|
+
* @template K - The type of keys in the map.
|
|
11
|
+
* @template V - The type of values in the map.
|
|
12
|
+
*/
|
|
13
|
+
export declare class SynchronousLmdbMap<K extends Key, V> extends BaseService<LmdbMapParams> implements SynchronousMap<K, V> {
|
|
14
|
+
protected db: Database<V, K>;
|
|
15
|
+
protected rootDatabase: RootDatabase;
|
|
16
|
+
/**
|
|
17
|
+
* The path to the LMDB folder where the database is stored.
|
|
18
|
+
* This is constructed from the location and dbName parameters
|
|
19
|
+
* allowing for multiple DBs within the root (by specifying a
|
|
20
|
+
* different storeName).
|
|
21
|
+
* @returns The folder path for the LMDB database.
|
|
22
|
+
*/
|
|
23
|
+
get folderPath(): string;
|
|
24
|
+
all(): V[];
|
|
25
|
+
clear(): void;
|
|
26
|
+
delete(id: K): boolean;
|
|
27
|
+
get(id: K): V | undefined;
|
|
28
|
+
has(id: K): boolean;
|
|
29
|
+
set(id: K, data: V): this;
|
|
30
|
+
startHandler(): Promise<void>;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=SynchronousLmdbMap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SynchronousLmdbMap.d.ts","sourceRoot":"","sources":["../../../../../src/orchestration/map/driver/lmdb/SynchronousLmdbMap.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AACzD,OAAO,EACL,QAAQ,EAAE,GAAG,EAAQ,YAAY,EAClC,MAAM,MAAM,CAAA;AAEb,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAG3C;;;;;;;GAOG;AACH,qBACa,kBAAkB,CAAC,CAAC,SAAS,GAAG,EAAE,CAAC,CAAE,SAAQ,WAAW,CAAC,aAAa,CAAE,YAAW,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC;IAClH,SAAS,CAAC,EAAE,EAAG,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;IAC7B,SAAS,CAAC,YAAY,EAAG,YAAY,CAAA;IAErC;;;;;;OAMG;IACH,IAAI,UAAU,WAEb;IAED,GAAG,IAAI,CAAC,EAAE;IAIV,KAAK,IAAI,IAAI;IAIb,MAAM,CAAC,EAAE,EAAE,CAAC,GAAG,OAAO;IAItB,GAAG,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,SAAS;IAIzB,GAAG,CAAC,EAAE,EAAE,CAAC,GAAG,OAAO;IAInB,GAAG,CAAC,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,IAAI;IAKV,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;CAO7C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/orchestration/map/driver/lmdb/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/orchestration/map/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,mBAAmB,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { MapType } from '@xyo-network/chain-protocol';
|
|
2
|
+
import type { StoreKind } from '../store/index.ts';
|
|
3
|
+
/**
|
|
4
|
+
* Returns a local persistent map
|
|
5
|
+
* @param dbName The name of the database
|
|
6
|
+
* @param storeName The name of the store
|
|
7
|
+
* @param kind The kind of the map
|
|
8
|
+
* @returns a map
|
|
9
|
+
*/
|
|
10
|
+
export declare const getLocalPersistentMap: <TId, TData>(dbName: string, storeName: string, kind?: StoreKind) => Promise<MapType<TId, TData>>;
|
|
11
|
+
export declare const deleteLocalPersistentMap: (dbName: string, _storeName: string, kind?: StoreKind) => Promise<void>;
|
|
12
|
+
//# sourceMappingURL=localPersistentMap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"localPersistentMap.d.ts","sourceRoot":"","sources":["../../../src/orchestration/map/localPersistentMap.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AAE1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAIlD;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,GAAU,GAAG,EAAE,KAAK,EAAE,QAAQ,MAAM,EAAE,WAAW,MAAM,EAAE,OAAM,SAAkB,KAAG,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,CAUhJ,CAAA;AAED,eAAO,MAAM,wBAAwB,GAAU,QAAQ,MAAM,EAAE,YAAY,MAAM,EAAE,OAAM,SAAkB,KAAG,OAAO,CAAC,IAAI,CAWzH,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/orchestration/repository/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/orchestration/repository/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { AnyNonPromise } from '@xylabs/promise';
|
|
2
|
+
import type { ArchivistInstance } from '@xyo-network/archivist-model';
|
|
3
|
+
import type { Payload, WithStorageMeta } from '@xyo-network/payload-model';
|
|
4
|
+
import type { PayloadRepository } from '@xyo-network/xl1-protocol';
|
|
5
|
+
export declare const repositoryFromArchivist: <T extends Payload = Payload>(archivist: ArchivistInstance, predicate: (value: AnyNonPromise) => WithStorageMeta<T>) => PayloadRepository<Lowercase<string>, WithStorageMeta<T>>;
|
|
6
|
+
//# sourceMappingURL=repositoryFromArchivist.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repositoryFromArchivist.d.ts","sourceRoot":"","sources":["../../../../src/orchestration/repository/lib/repositoryFromArchivist.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AACpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC1E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAElE,eAAO,MAAM,uBAAuB,GAAI,CAAC,SAAS,OAAO,GAAG,OAAO,EACjE,WAAW,iBAAiB,EAC5B,WAAW,CAAC,KAAK,EAAE,aAAa,KAAK,eAAe,CAAC,CAAC,CAAC,6DAiBxD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../src/orchestration/services/implementation/account.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAI9D,eAAO,MAAM,WAAW,EAAE,aAAa,CAAC,IAAI,EAAE,cAAc,CAa3D,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { BaseAccountBalanceServiceParams } from '@xyo-network/chain-services';
|
|
2
|
+
import type { AccountBalanceServiceV2, Initializable } from '@xyo-network/xl1-protocol';
|
|
3
|
+
export declare const initBalanceService: Initializable<BaseAccountBalanceServiceParams, AccountBalanceServiceV2>;
|
|
4
|
+
//# sourceMappingURL=balance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"balance.d.ts","sourceRoot":"","sources":["../../../../src/orchestration/services/implementation/balance.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,6BAA6B,CAAA;AAElF,OAAO,KAAK,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAIvF,eAAO,MAAM,kBAAkB,EAAE,aAAa,CAAC,+BAA+B,EAAE,uBAAuB,CAKtG,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { BaseAccountableServiceParams } from '@xyo-network/chain-services';
|
|
2
|
+
import { EvmChainService } from '@xyo-network/chain-services';
|
|
3
|
+
import type { Initializable } from '@xyo-network/xl1-protocol';
|
|
4
|
+
export declare const canUseEvmContractChainService: () => boolean;
|
|
5
|
+
export declare const initEvmContractChainService: Initializable<BaseAccountableServiceParams, EvmChainService>;
|
|
6
|
+
//# sourceMappingURL=evm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evm.d.ts","sourceRoot":"","sources":["../../../../../src/orchestration/services/implementation/chain/evm.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAQ9D,eAAO,MAAM,6BAA6B,eAEzC,CAAA;AAED,eAAO,MAAM,2BAA2B,EAAE,aAAa,CAAC,4BAA4B,EAAE,eAAe,CAgBpG,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { BaseAccountableServiceParams } from '@xyo-network/chain-services';
|
|
2
|
+
import type { ChainService, Initializable } from '@xyo-network/xl1-protocol';
|
|
3
|
+
export declare const initChainService: Initializable<BaseAccountableServiceParams, ChainService>;
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/orchestration/services/implementation/chain/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAE/E,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAM5E,eAAO,MAAM,gBAAgB,EAAE,aAAa,CAAC,4BAA4B,EAAE,YAAY,CAA4D,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/orchestration/services/implementation/evm/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"initChainId.d.ts","sourceRoot":"","sources":["../../../../../src/orchestration/services/implementation/evm/initChainId.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,QAAO,OAEhC,CAAA;AAED,eAAO,MAAM,UAAU,cAUtB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"initEvmProvider.d.ts","sourceRoot":"","sources":["../../../../../src/orchestration/services/implementation/evm/initEvmProvider.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAOvD,eAAO,MAAM,eAAe,gCAQ3B,CAAA;AAED,eAAO,MAAM,iBAAiB,eAE7B,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { JsonRpcProvider } from 'ethers/providers';
|
|
2
|
+
export declare const initJsonRpcProvider: () => Promise<JsonRpcProvider>;
|
|
3
|
+
export declare const canUseJsonRpcProvider: () => boolean;
|
|
4
|
+
export declare const getJsonRpcProviderConfig: () => readonly [string, number];
|
|
5
|
+
//# sourceMappingURL=initGanacheProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"initGanacheProvider.d.ts","sourceRoot":"","sources":["../../../../../src/orchestration/services/implementation/evm/initGanacheProvider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAIlD,eAAO,MAAM,mBAAmB,gCAG/B,CAAA;AAED,eAAO,MAAM,qBAAqB,eAGjC,CAAA;AAED,eAAO,MAAM,wBAAwB,iCAGpC,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { InfuraProvider } from 'ethers/providers';
|
|
2
|
+
export declare const initInfuraProvider: () => Promise<InfuraProvider>;
|
|
3
|
+
export declare const canUseInfuraProvider: () => boolean;
|
|
4
|
+
export declare const getInfuraProviderConfig: () => readonly [number, string, string];
|
|
5
|
+
//# sourceMappingURL=initInfuraProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"initInfuraProvider.d.ts","sourceRoot":"","sources":["../../../../../src/orchestration/services/implementation/evm/initInfuraProvider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAMjD,eAAO,MAAM,kBAAkB,+BAK9B,CAAA;AAED,eAAO,MAAM,oBAAoB,QAAO,OAIvC,CAAA;AAED,eAAO,MAAM,uBAAuB,yCAInC,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ArchivistInstance } from '@xyo-network/archivist-model';
|
|
2
|
+
import type { WithStorageMeta } from '@xyo-network/payload-model';
|
|
3
|
+
import type { WalletInstance } from '@xyo-network/wallet-model';
|
|
4
|
+
import type { BlockBoundWitness, Initializable } from '@xyo-network/xl1-protocol';
|
|
5
|
+
export declare const initHead: Initializable<{
|
|
6
|
+
account: WalletInstance;
|
|
7
|
+
chainArchivist: ArchivistInstance;
|
|
8
|
+
chainSubmissionsArchivistWrite: ArchivistInstance;
|
|
9
|
+
}, WithStorageMeta<BlockBoundWitness>>;
|
|
10
|
+
//# sourceMappingURL=head.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"head.d.ts","sourceRoot":"","sources":["../../../../src/orchestration/services/implementation/head.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAErE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAsBjF,eAAO,MAAM,QAAQ,EAAE,aAAa,CAAC;IACnC,OAAO,EAAE,cAAc,CAAA;IACvB,cAAc,EAAE,iBAAiB,CAAA;IACjC,8BAA8B,EAAE,iBAAiB,CAAA;CAClD,EAAE,eAAe,CAAC,iBAAiB,CAAC,CAUnC,CAAA"}
|