@xyo-network/xl1-protocol-sdk 4.0.4 → 4.0.6
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/index-node.d.ts +3 -0
- package/dist/neutral/index-node.d.ts.map +1 -0
- package/dist/neutral/index.d.ts +0 -2
- package/dist/neutral/index.d.ts.map +1 -1
- package/dist/neutral/index.mjs +31 -60
- package/dist/neutral/index.mjs.map +4 -4
- package/dist/node/Archivists/ArchivistConnectOptions.d.ts +8 -0
- package/dist/node/Archivists/ArchivistConnectOptions.d.ts.map +1 -0
- package/dist/node/Archivists/ArchivistFactory.d.ts +31 -0
- package/dist/node/Archivists/ArchivistFactory.d.ts.map +1 -0
- package/dist/node/Archivists/MemoryArchivistFactory.d.ts +19 -0
- package/dist/node/Archivists/MemoryArchivistFactory.d.ts.map +1 -0
- package/dist/node/Archivists/archivistFactoryRegistry.d.ts +9 -0
- package/dist/node/Archivists/archivistFactoryRegistry.d.ts.map +1 -0
- package/dist/node/Archivists/archivistRoles.d.ts +12 -0
- package/dist/node/Archivists/archivistRoles.d.ts.map +1 -0
- package/dist/node/Archivists/connectArchivist.d.ts +11 -0
- package/dist/node/Archivists/connectArchivist.d.ts.map +1 -0
- package/dist/node/Archivists/index.d.ts +7 -0
- package/dist/node/Archivists/index.d.ts.map +1 -0
- package/dist/node/ChainContextHelpers.d.ts +10 -0
- package/dist/node/ChainContextHelpers.d.ts.map +1 -0
- package/dist/node/CreatableProvider/AbstractCreatableProvider.d.ts +114 -0
- package/dist/node/CreatableProvider/AbstractCreatableProvider.d.ts.map +1 -0
- package/dist/node/CreatableProvider/CreatableProvider.d.ts +67 -0
- package/dist/node/CreatableProvider/CreatableProvider.d.ts.map +1 -0
- package/dist/node/CreatableProvider/CreatableProviderRegistry.d.ts +13 -0
- package/dist/node/CreatableProvider/CreatableProviderRegistry.d.ts.map +1 -0
- package/dist/node/CreatableProvider/GetInstanceOptions.d.ts +10 -0
- package/dist/node/CreatableProvider/GetInstanceOptions.d.ts.map +1 -0
- package/dist/node/CreatableProvider/LabeledCreatableProviderFactory.d.ts +14 -0
- package/dist/node/CreatableProvider/LabeledCreatableProviderFactory.d.ts.map +1 -0
- package/dist/node/CreatableProvider/ProviderFactory.d.ts +29 -0
- package/dist/node/CreatableProvider/ProviderFactory.d.ts.map +1 -0
- package/dist/node/CreatableProvider/ProviderFactoryLocator.d.ts +61 -0
- package/dist/node/CreatableProvider/ProviderFactoryLocator.d.ts.map +1 -0
- package/dist/node/CreatableProvider/ProviderFactoryLocatorInstance.d.ts +47 -0
- package/dist/node/CreatableProvider/ProviderFactoryLocatorInstance.d.ts.map +1 -0
- package/dist/node/CreatableProvider/index.d.ts +9 -0
- package/dist/node/CreatableProvider/index.d.ts.map +1 -0
- package/dist/node/SignedBigInt.d.ts +22 -0
- package/dist/node/SignedBigInt.d.ts.map +1 -0
- package/dist/node/_internal/context/getTestProviderContext.d.ts +4 -0
- package/dist/node/_internal/context/getTestProviderContext.d.ts.map +1 -0
- package/dist/node/_internal/context/index.d.ts +2 -0
- package/dist/node/_internal/context/index.d.ts.map +1 -0
- package/dist/node/_internal/index.d.ts +2 -0
- package/dist/node/_internal/index.d.ts.map +1 -0
- package/dist/node/amount/ShiftedBigInt.d.ts +17 -0
- package/dist/node/amount/ShiftedBigInt.d.ts.map +1 -0
- package/dist/node/amount/index.d.ts +5 -0
- package/dist/node/amount/index.d.ts.map +1 -0
- package/dist/node/amount/splitOnDecimal.d.ts +3 -0
- package/dist/node/amount/splitOnDecimal.d.ts.map +1 -0
- package/dist/node/amount/splitOnDecimalToString.d.ts +3 -0
- package/dist/node/amount/splitOnDecimalToString.d.ts.map +1 -0
- package/dist/node/amount/xl1Amount.d.ts +26 -0
- package/dist/node/amount/xl1Amount.d.ts.map +1 -0
- package/dist/node/block/hydrate/BoundWitnessHydrator.d.ts +70 -0
- package/dist/node/block/hydrate/BoundWitnessHydrator.d.ts.map +1 -0
- package/dist/node/block/hydrate/allHashesPresent.d.ts +5 -0
- package/dist/node/block/hydrate/allHashesPresent.d.ts.map +1 -0
- package/dist/node/block/hydrate/blockPayloadsFromHydratedBlock.d.ts +5 -0
- package/dist/node/block/hydrate/blockPayloadsFromHydratedBlock.d.ts.map +1 -0
- package/dist/node/block/hydrate/createBlockHydrator.d.ts +6 -0
- package/dist/node/block/hydrate/createBlockHydrator.d.ts.map +1 -0
- package/dist/node/block/hydrate/createBoundWitnessHydrator.d.ts +169 -0
- package/dist/node/block/hydrate/createBoundWitnessHydrator.d.ts.map +1 -0
- package/dist/node/block/hydrate/createTransactionHydrator.d.ts +6 -0
- package/dist/node/block/hydrate/createTransactionHydrator.d.ts.map +1 -0
- package/dist/node/block/hydrate/flattenHydratedBlock.d.ts +9 -0
- package/dist/node/block/hydrate/flattenHydratedBlock.d.ts.map +1 -0
- package/dist/node/block/hydrate/flattenHydratedBlocks.d.ts +4 -0
- package/dist/node/block/hydrate/flattenHydratedBlocks.d.ts.map +1 -0
- package/dist/node/block/hydrate/hydrateBlock.d.ts +5 -0
- package/dist/node/block/hydrate/hydrateBlock.d.ts.map +1 -0
- package/dist/node/block/hydrate/index.d.ts +12 -0
- package/dist/node/block/hydrate/index.d.ts.map +1 -0
- package/dist/node/block/hydrate/transactionsFromHydratedBlock.d.ts +4 -0
- package/dist/node/block/hydrate/transactionsFromHydratedBlock.d.ts.map +1 -0
- package/dist/node/block/hydrate/tryHydrateBlock.d.ts +6 -0
- package/dist/node/block/hydrate/tryHydrateBlock.d.ts.map +1 -0
- package/dist/node/block/index.d.ts +3 -0
- package/dist/node/block/index.d.ts.map +1 -0
- package/dist/node/block/primitives/blockFromBlockNumber.d.ts +5 -0
- package/dist/node/block/primitives/blockFromBlockNumber.d.ts.map +1 -0
- package/dist/node/block/primitives/frames/calculateFramesFromRange.d.ts +7 -0
- package/dist/node/block/primitives/frames/calculateFramesFromRange.d.ts.map +1 -0
- package/dist/node/block/primitives/frames/deepCalculateFramesFromRange.d.ts +10 -0
- package/dist/node/block/primitives/frames/deepCalculateFramesFromRange.d.ts.map +1 -0
- package/dist/node/block/primitives/frames/index.d.ts +3 -0
- package/dist/node/block/primitives/frames/index.d.ts.map +1 -0
- package/dist/node/block/primitives/hashFromBlockNumber.d.ts +5 -0
- package/dist/node/block/primitives/hashFromBlockNumber.d.ts.map +1 -0
- package/dist/node/block/primitives/index.d.ts +8 -0
- package/dist/node/block/primitives/index.d.ts.map +1 -0
- package/dist/node/block/primitives/model.d.ts +8 -0
- package/dist/node/block/primitives/model.d.ts.map +1 -0
- package/dist/node/block/primitives/payloads/ChainWindow.d.ts +7 -0
- package/dist/node/block/primitives/payloads/ChainWindow.d.ts.map +1 -0
- package/dist/node/block/primitives/payloads/index.d.ts +2 -0
- package/dist/node/block/primitives/payloads/index.d.ts.map +1 -0
- package/dist/node/block/primitives/toStepIdentityString.d.ts +4 -0
- package/dist/node/block/primitives/toStepIdentityString.d.ts.map +1 -0
- package/dist/node/block/primitives/validateTransactionOpcodes.d.ts +5 -0
- package/dist/node/block/primitives/validateTransactionOpcodes.d.ts.map +1 -0
- package/dist/node/boundwitness/buildUnsignedBoundWitness.d.ts +10 -0
- package/dist/node/boundwitness/buildUnsignedBoundWitness.d.ts.map +1 -0
- package/dist/node/boundwitness/index.d.ts +2 -0
- package/dist/node/boundwitness/index.d.ts.map +1 -0
- package/dist/node/capabilities/Backing.d.ts +52 -0
- package/dist/node/capabilities/Backing.d.ts.map +1 -0
- package/dist/node/capabilities/Capability.d.ts +32 -0
- package/dist/node/capabilities/Capability.d.ts.map +1 -0
- package/dist/node/capabilities/Provider.d.ts +31 -0
- package/dist/node/capabilities/Provider.d.ts.map +1 -0
- package/dist/node/capabilities/connectionSubsetBySurface.d.ts +17 -0
- package/dist/node/capabilities/connectionSubsetBySurface.d.ts.map +1 -0
- package/dist/node/capabilities/connectionTypes.d.ts +10 -0
- package/dist/node/capabilities/connectionTypes.d.ts.map +1 -0
- package/dist/node/capabilities/factoryBrand.d.ts +46 -0
- package/dist/node/capabilities/factoryBrand.d.ts.map +1 -0
- package/dist/node/capabilities/index.d.ts +12 -0
- package/dist/node/capabilities/index.d.ts.map +1 -0
- package/dist/node/capabilities/locatorFromConfig.d.ts +29 -0
- package/dist/node/capabilities/locatorFromConfig.d.ts.map +1 -0
- package/dist/node/capabilities/needsFromProviderBindings.d.ts +8 -0
- package/dist/node/capabilities/needsFromProviderBindings.d.ts.map +1 -0
- package/dist/node/capabilities/providerCandidateFromClass.d.ts +7 -0
- package/dist/node/capabilities/providerCandidateFromClass.d.ts.map +1 -0
- package/dist/node/capabilities/resolveProviders.d.ts +56 -0
- package/dist/node/capabilities/resolveProviders.d.ts.map +1 -0
- package/dist/node/capabilities/surfaceMap.d.ts +11 -0
- package/dist/node/capabilities/surfaceMap.d.ts.map +1 -0
- package/dist/node/config/Actor.d.ts +590 -0
- package/dist/node/config/Actor.d.ts.map +1 -0
- package/dist/node/config/Actors.d.ts +107 -0
- package/dist/node/config/Actors.d.ts.map +1 -0
- package/dist/node/config/Base.d.ts +109 -0
- package/dist/node/config/Base.d.ts.map +1 -0
- package/dist/node/config/Chain.d.ts +13 -0
- package/dist/node/config/Chain.d.ts.map +1 -0
- package/dist/node/config/Config.d.ts +396 -0
- package/dist/node/config/Config.d.ts.map +1 -0
- package/dist/node/config/DeepPartial.d.ts +5 -0
- package/dist/node/config/DeepPartial.d.ts.map +1 -0
- package/dist/node/config/HostActor.d.ts +591 -0
- package/dist/node/config/HostActor.d.ts.map +1 -0
- package/dist/node/config/LocatorConfigFields.d.ts +115 -0
- package/dist/node/config/LocatorConfigFields.d.ts.map +1 -0
- package/dist/node/config/Log.d.ts +16 -0
- package/dist/node/config/Log.d.ts.map +1 -0
- package/dist/node/config/Provider.d.ts +36 -0
- package/dist/node/config/Provider.d.ts.map +1 -0
- package/dist/node/config/ProviderBinding.d.ts +17 -0
- package/dist/node/config/ProviderBinding.d.ts.map +1 -0
- package/dist/node/config/Providers.d.ts +9 -0
- package/dist/node/config/Providers.d.ts.map +1 -0
- package/dist/node/config/ResolvedLocatorConfig.d.ts +122 -0
- package/dist/node/config/ResolvedLocatorConfig.d.ts.map +1 -0
- package/dist/node/config/Telemetry.d.ts +40 -0
- package/dist/node/config/Telemetry.d.ts.map +1 -0
- package/dist/node/config/UsageMeta.d.ts +32 -0
- package/dist/node/config/UsageMeta.d.ts.map +1 -0
- package/dist/node/config/Validation.d.ts +25 -0
- package/dist/node/config/Validation.d.ts.map +1 -0
- package/dist/node/config/connections/Connection.d.ts +147 -0
- package/dist/node/config/connections/Connection.d.ts.map +1 -0
- package/dist/node/config/connections/Mongo.d.ts +12 -0
- package/dist/node/config/connections/Mongo.d.ts.map +1 -0
- package/dist/node/config/connections/RpcRemote.d.ts +34 -0
- package/dist/node/config/connections/RpcRemote.d.ts.map +1 -0
- package/dist/node/config/connections/S3.d.ts +20 -0
- package/dist/node/config/connections/S3.d.ts.map +1 -0
- package/dist/node/config/connections/index.d.ts +5 -0
- package/dist/node/config/connections/index.d.ts.map +1 -0
- package/dist/node/config/index.d.ts +18 -0
- package/dist/node/config/index.d.ts.map +1 -0
- package/dist/node/config/normalizeConnectionsConfig.d.ts +17 -0
- package/dist/node/config/normalizeConnectionsConfig.d.ts.map +1 -0
- package/dist/node/config/resolveRestConnectionEndpoint.d.ts +5 -0
- package/dist/node/config/resolveRestConnectionEndpoint.d.ts.map +1 -0
- package/dist/node/config/synthesizeRpcConnectionBindings.d.ts +8 -0
- package/dist/node/config/synthesizeRpcConnectionBindings.d.ts.map +1 -0
- package/dist/node/constants.d.ts +5 -0
- package/dist/node/constants.d.ts.map +1 -0
- package/dist/node/context/Actor.d.ts +633 -0
- package/dist/node/context/Actor.d.ts.map +1 -0
- package/dist/node/context/HostActor.d.ts +645 -0
- package/dist/node/context/HostActor.d.ts.map +1 -0
- package/dist/node/context/index.d.ts +3 -0
- package/dist/node/context/index.d.ts.map +1 -0
- package/dist/node/createDeclarationPayload.d.ts +5 -0
- package/dist/node/createDeclarationPayload.d.ts.map +1 -0
- package/dist/node/createTransferPayload.d.ts +6 -0
- package/dist/node/createTransferPayload.d.ts.map +1 -0
- package/dist/node/eip-712/Payloads/EIP712Data.d.ts +32 -0
- package/dist/node/eip-712/Payloads/EIP712Data.d.ts.map +1 -0
- package/dist/node/eip-712/Payloads/EIP712Signature.d.ts +23 -0
- package/dist/node/eip-712/Payloads/EIP712Signature.d.ts.map +1 -0
- package/dist/node/eip-712/Payloads/index.d.ts +3 -0
- package/dist/node/eip-712/Payloads/index.d.ts.map +1 -0
- package/dist/node/eip-712/Types.d.ts +35 -0
- package/dist/node/eip-712/Types.d.ts.map +1 -0
- package/dist/node/eip-712/index.d.ts +5 -0
- package/dist/node/eip-712/index.d.ts.map +1 -0
- package/dist/node/eip-712/sign.d.ts +5 -0
- package/dist/node/eip-712/sign.d.ts.map +1 -0
- package/dist/node/eip-712/verify.d.ts +4 -0
- package/dist/node/eip-712/verify.d.ts.map +1 -0
- package/dist/node/getFileConfig.d.ts +191 -0
- package/dist/node/getFileConfig.d.ts.map +1 -0
- package/dist/node/index-node.d.ts +3 -0
- package/dist/node/index-node.d.ts.map +1 -0
- package/dist/node/index-node.mjs +8324 -0
- package/dist/node/index-node.mjs.map +7 -0
- package/dist/node/index.d.ts +30 -0
- package/dist/node/index.d.ts.map +1 -0
- package/dist/node/instances/Address.d.ts +13 -0
- package/dist/node/instances/Address.d.ts.map +1 -0
- package/dist/node/instances/BoundWitness.d.ts +9 -0
- package/dist/node/instances/BoundWitness.d.ts.map +1 -0
- package/dist/node/instances/Data.d.ts +5 -0
- package/dist/node/instances/Data.d.ts.map +1 -0
- package/dist/node/instances/Fees.d.ts +9 -0
- package/dist/node/instances/Fees.d.ts.map +1 -0
- package/dist/node/instances/HydratedBoundWitness.d.ts +11 -0
- package/dist/node/instances/HydratedBoundWitness.d.ts.map +1 -0
- package/dist/node/instances/Object.d.ts +6 -0
- package/dist/node/instances/Object.d.ts.map +1 -0
- package/dist/node/instances/Payload.d.ts +7 -0
- package/dist/node/instances/Payload.d.ts.map +1 -0
- package/dist/node/instances/Signature.d.ts +10 -0
- package/dist/node/instances/Signature.d.ts.map +1 -0
- package/dist/node/instances/block/BlockFields.d.ts +12 -0
- package/dist/node/instances/block/BlockFields.d.ts.map +1 -0
- package/dist/node/instances/block/HydratedBlock.d.ts +9 -0
- package/dist/node/instances/block/HydratedBlock.d.ts.map +1 -0
- package/dist/node/instances/block/index.d.ts +2 -0
- package/dist/node/instances/block/index.d.ts.map +1 -0
- package/dist/node/instances/index.d.ts +11 -0
- package/dist/node/instances/index.d.ts.map +1 -0
- package/dist/node/instances/modifiers/BlockWindowInstance.d.ts +8 -0
- package/dist/node/instances/modifiers/BlockWindowInstance.d.ts.map +1 -0
- package/dist/node/instances/modifiers/BlockWindowState.d.ts +6 -0
- package/dist/node/instances/modifiers/BlockWindowState.d.ts.map +1 -0
- package/dist/node/instances/modifiers/Signed.d.ts +8 -0
- package/dist/node/instances/modifiers/Signed.d.ts.map +1 -0
- package/dist/node/instances/modifiers/Validatable.d.ts +6 -0
- package/dist/node/instances/modifiers/Validatable.d.ts.map +1 -0
- package/dist/node/instances/modifiers/index.d.ts +5 -0
- package/dist/node/instances/modifiers/index.d.ts.map +1 -0
- package/dist/node/instances/transaction/HydratedTransaction.d.ts +7 -0
- package/dist/node/instances/transaction/HydratedTransaction.d.ts.map +1 -0
- package/dist/node/instances/transaction/TransactionFields.d.ts +17 -0
- package/dist/node/instances/transaction/TransactionFields.d.ts.map +1 -0
- package/dist/node/instances/transaction/index.d.ts +2 -0
- package/dist/node/instances/transaction/index.d.ts.map +1 -0
- package/dist/node/isInternetAvailable.d.ts +3 -0
- package/dist/node/isInternetAvailable.d.ts.map +1 -0
- package/dist/node/model/ChainFork/ChainForkStatic.d.ts +9 -0
- package/dist/node/model/ChainFork/ChainForkStatic.d.ts.map +1 -0
- package/dist/node/model/ChainFork/index.d.ts +2 -0
- package/dist/node/model/ChainFork/index.d.ts.map +1 -0
- package/dist/node/model/ChainIdentity.d.ts +6 -0
- package/dist/node/model/ChainIdentity.d.ts.map +1 -0
- package/dist/node/model/ChainStore.d.ts +12 -0
- package/dist/node/model/ChainStore.d.ts.map +1 -0
- package/dist/node/model/CreatableProviderContext.d.ts +5 -0
- package/dist/node/model/CreatableProviderContext.d.ts.map +1 -0
- package/dist/node/model/CreatableProviderContext.zod.d.ts +714 -0
- package/dist/node/model/CreatableProviderContext.zod.d.ts.map +1 -0
- package/dist/node/model/PayloadBundle/bundledPayloadToHydratedBlock.d.ts +5 -0
- package/dist/node/model/PayloadBundle/bundledPayloadToHydratedBlock.d.ts.map +1 -0
- package/dist/node/model/PayloadBundle/bundledPayloadToHydratedTransaction.d.ts +5 -0
- package/dist/node/model/PayloadBundle/bundledPayloadToHydratedTransaction.d.ts.map +1 -0
- package/dist/node/model/PayloadBundle/hydratedBlockToPayloadBundle.d.ts +5 -0
- package/dist/node/model/PayloadBundle/hydratedBlockToPayloadBundle.d.ts.map +1 -0
- package/dist/node/model/PayloadBundle/hydratedTransactionToPayloadBundle.d.ts +5 -0
- package/dist/node/model/PayloadBundle/hydratedTransactionToPayloadBundle.d.ts.map +1 -0
- package/dist/node/model/PayloadBundle/index.d.ts +5 -0
- package/dist/node/model/PayloadBundle/index.d.ts.map +1 -0
- package/dist/node/model/index.d.ts +7 -0
- package/dist/node/model/index.d.ts.map +1 -0
- package/dist/node/multipliers.d.ts +10 -0
- package/dist/node/multipliers.d.ts.map +1 -0
- package/dist/node/payloads/AddressPairPayload.d.ts +22 -0
- package/dist/node/payloads/AddressPairPayload.d.ts.map +1 -0
- package/dist/node/payloads/index.d.ts +5 -0
- package/dist/node/payloads/index.d.ts.map +1 -0
- package/dist/node/payloads/netBalancesForPayloads.d.ts +9 -0
- package/dist/node/payloads/netBalancesForPayloads.d.ts.map +1 -0
- package/dist/node/payloads/netSchemasForPayloads.d.ts +9 -0
- package/dist/node/payloads/netSchemasForPayloads.d.ts.map +1 -0
- package/dist/node/payloads/netTransfersForPayloads.d.ts +5 -0
- package/dist/node/payloads/netTransfersForPayloads.d.ts.map +1 -0
- package/dist/node/primitives/block/index.d.ts +3 -0
- package/dist/node/primitives/block/index.d.ts.map +1 -0
- package/dist/node/primitives/block/range/blockRangeSteps.d.ts +4 -0
- package/dist/node/primitives/block/range/blockRangeSteps.d.ts.map +1 -0
- package/dist/node/primitives/block/range/index.d.ts +2 -0
- package/dist/node/primitives/block/range/index.d.ts.map +1 -0
- package/dist/node/primitives/block/rate/blockRate.d.ts +11 -0
- package/dist/node/primitives/block/rate/blockRate.d.ts.map +1 -0
- package/dist/node/primitives/block/rate/index.d.ts +5 -0
- package/dist/node/primitives/block/rate/index.d.ts.map +1 -0
- package/dist/node/primitives/block/rate/stepRate.d.ts +7 -0
- package/dist/node/primitives/block/rate/stepRate.d.ts.map +1 -0
- package/dist/node/primitives/block/rate/timeHelpers.d.ts +8 -0
- package/dist/node/primitives/block/rate/timeHelpers.d.ts.map +1 -0
- package/dist/node/primitives/block/rate/timeRate.d.ts +8 -0
- package/dist/node/primitives/block/rate/timeRate.d.ts.map +1 -0
- package/dist/node/primitives/chain/getWindowedChain.d.ts +10 -0
- package/dist/node/primitives/chain/getWindowedChain.d.ts.map +1 -0
- package/dist/node/primitives/chain/index.d.ts +4 -0
- package/dist/node/primitives/chain/index.d.ts.map +1 -0
- package/dist/node/primitives/chain/step/chainStepRewardAddress.d.ts +5 -0
- package/dist/node/primitives/chain/step/chainStepRewardAddress.d.ts.map +1 -0
- package/dist/node/primitives/chain/step/index.d.ts +5 -0
- package/dist/node/primitives/chain/step/index.d.ts.map +1 -0
- package/dist/node/primitives/chain/step/stepRewardBlock.d.ts +4 -0
- package/dist/node/primitives/chain/step/stepRewardBlock.d.ts.map +1 -0
- package/dist/node/primitives/chain/step/stepRewardTotal.d.ts +4 -0
- package/dist/node/primitives/chain/step/stepRewardTotal.d.ts.map +1 -0
- package/dist/node/primitives/chain/step/stepsRewardTotal.d.ts +8 -0
- package/dist/node/primitives/chain/step/stepsRewardTotal.d.ts.map +1 -0
- package/dist/node/primitives/chain/time/externalBlockNumberFromXl1BlockNumber.d.ts +4 -0
- package/dist/node/primitives/chain/time/externalBlockNumberFromXl1BlockNumber.d.ts.map +1 -0
- package/dist/node/primitives/chain/time/externalBlockRangeFromStep.d.ts +4 -0
- package/dist/node/primitives/chain/time/externalBlockRangeFromStep.d.ts.map +1 -0
- package/dist/node/primitives/chain/time/externalBlockRangeFromXl1BlockRange.d.ts +4 -0
- package/dist/node/primitives/chain/time/externalBlockRangeFromXl1BlockRange.d.ts.map +1 -0
- package/dist/node/primitives/chain/time/index.d.ts +4 -0
- package/dist/node/primitives/chain/time/index.d.ts.map +1 -0
- package/dist/node/primitives/datalake/NamedDataLake.d.ts +7 -0
- package/dist/node/primitives/datalake/NamedDataLake.d.ts.map +1 -0
- package/dist/node/primitives/datalake/PayloadLocator.d.ts +55 -0
- package/dist/node/primitives/datalake/PayloadLocator.d.ts.map +1 -0
- package/dist/node/primitives/datalake/addDataLakePayloads.d.ts +5 -0
- package/dist/node/primitives/datalake/addDataLakePayloads.d.ts.map +1 -0
- package/dist/node/primitives/datalake/addDataLakePayloadsToPayloads.d.ts +9 -0
- package/dist/node/primitives/datalake/addDataLakePayloadsToPayloads.d.ts.map +1 -0
- package/dist/node/primitives/datalake/index.d.ts +5 -0
- package/dist/node/primitives/datalake/index.d.ts.map +1 -0
- package/dist/node/primitives/index.d.ts +13 -0
- package/dist/node/primitives/index.d.ts.map +1 -0
- package/dist/node/primitives/mapToMapType.d.ts +4 -0
- package/dist/node/primitives/mapToMapType.d.ts.map +1 -0
- package/dist/node/primitives/payload/index.d.ts +2 -0
- package/dist/node/primitives/payload/index.d.ts.map +1 -0
- package/dist/node/primitives/payload/mergeTransfers.d.ts +5 -0
- package/dist/node/primitives/payload/mergeTransfers.d.ts.map +1 -0
- package/dist/node/primitives/readPayloadMapFromStore.d.ts +7 -0
- package/dist/node/primitives/readPayloadMapFromStore.d.ts.map +1 -0
- package/dist/node/primitives/rewardFromBlockNumber.d.ts +4 -0
- package/dist/node/primitives/rewardFromBlockNumber.d.ts.map +1 -0
- package/dist/node/primitives/rewards/index.d.ts +2 -0
- package/dist/node/primitives/rewards/index.d.ts.map +1 -0
- package/dist/node/primitives/rewards/networkStakeStepRewardPositionWeight.d.ts +4 -0
- package/dist/node/primitives/rewards/networkStakeStepRewardPositionWeight.d.ts.map +1 -0
- package/dist/node/primitives/stake/activeStakeAtTimeByAddress.d.ts +5 -0
- package/dist/node/primitives/stake/activeStakeAtTimeByAddress.d.ts.map +1 -0
- package/dist/node/primitives/stake/activeStakeAtTimeByPosition.d.ts +4 -0
- package/dist/node/primitives/stake/activeStakeAtTimeByPosition.d.ts.map +1 -0
- package/dist/node/primitives/stake/allStakersForRange.d.ts +5 -0
- package/dist/node/primitives/stake/allStakersForRange.d.ts.map +1 -0
- package/dist/node/primitives/stake/allStakersForStep.d.ts +5 -0
- package/dist/node/primitives/stake/allStakersForStep.d.ts.map +1 -0
- package/dist/node/primitives/stake/index.d.ts +7 -0
- package/dist/node/primitives/stake/index.d.ts.map +1 -0
- package/dist/node/primitives/stake/mergedAddRemoveStakeEventsByPosition.d.ts +4 -0
- package/dist/node/primitives/stake/mergedAddRemoveStakeEventsByPosition.d.ts.map +1 -0
- package/dist/node/primitives/stake/mergedAddRemoveStakeEventsByStaker.d.ts +5 -0
- package/dist/node/primitives/stake/mergedAddRemoveStakeEventsByStaker.d.ts.map +1 -0
- package/dist/node/primitives/stake/weightedStakeForRangeByPosition.d.ts +6 -0
- package/dist/node/primitives/stake/weightedStakeForRangeByPosition.d.ts.map +1 -0
- package/dist/node/primitives/state/findMostRecentBlock.d.ts +11 -0
- package/dist/node/primitives/state/findMostRecentBlock.d.ts.map +1 -0
- package/dist/node/primitives/state/hydratedBlockByNumber.d.ts +4 -0
- package/dist/node/primitives/state/hydratedBlockByNumber.d.ts.map +1 -0
- package/dist/node/primitives/state/index.d.ts +3 -0
- package/dist/node/primitives/state/index.d.ts.map +1 -0
- package/dist/node/primitives/step/derivedReceiveAddress.d.ts +2 -0
- package/dist/node/primitives/step/derivedReceiveAddress.d.ts.map +1 -0
- package/dist/node/primitives/step/index.d.ts +3 -0
- package/dist/node/primitives/step/index.d.ts.map +1 -0
- package/dist/node/primitives/step/rewardAddressFromStepIdentity.d.ts +2 -0
- package/dist/node/primitives/step/rewardAddressFromStepIdentity.d.ts.map +1 -0
- package/dist/node/primitives/step/stepBlockRange.d.ts +4 -0
- package/dist/node/primitives/step/stepBlockRange.d.ts.map +1 -0
- package/dist/node/primitives/step/stepTransferIndex.d.ts +3 -0
- package/dist/node/primitives/step/stepTransferIndex.d.ts.map +1 -0
- package/dist/node/primitives/transaction/elevatedPayloads.d.ts +2 -0
- package/dist/node/primitives/transaction/elevatedPayloads.d.ts.map +1 -0
- package/dist/node/primitives/transaction/index.d.ts +2 -0
- package/dist/node/primitives/transaction/index.d.ts.map +1 -0
- package/dist/node/primitives/uncle/findBestUncle.d.ts +17 -0
- package/dist/node/primitives/uncle/findBestUncle.d.ts.map +1 -0
- package/dist/node/primitives/uncle/findUncles.d.ts +36 -0
- package/dist/node/primitives/uncle/findUncles.d.ts.map +1 -0
- package/dist/node/primitives/uncle/getProducerKey.d.ts +4 -0
- package/dist/node/primitives/uncle/getProducerKey.d.ts.map +1 -0
- package/dist/node/primitives/uncle/index.d.ts +5 -0
- package/dist/node/primitives/uncle/index.d.ts.map +1 -0
- package/dist/node/primitives/uncle/scoreUncle.d.ts +6 -0
- package/dist/node/primitives/uncle/scoreUncle.d.ts.map +1 -0
- package/dist/node/services/AccountTransfersService.d.ts +12 -0
- package/dist/node/services/AccountTransfersService.d.ts.map +1 -0
- package/dist/node/services/BlockProducerService.d.ts +7 -0
- package/dist/node/services/BlockProducerService.d.ts.map +1 -0
- package/dist/node/services/Chain/BaseChainService.d.ts +4 -0
- package/dist/node/services/Chain/BaseChainService.d.ts.map +1 -0
- package/dist/node/services/Chain/ChainHeadService.d.ts +7 -0
- package/dist/node/services/Chain/ChainHeadService.d.ts.map +1 -0
- package/dist/node/services/Chain/ChainService.d.ts +6 -0
- package/dist/node/services/Chain/ChainService.d.ts.map +1 -0
- package/dist/node/services/Chain/index.d.ts +4 -0
- package/dist/node/services/Chain/index.d.ts.map +1 -0
- package/dist/node/services/Election.d.ts +11 -0
- package/dist/node/services/Election.d.ts.map +1 -0
- package/dist/node/services/NetworkStakeService.d.ts +5 -0
- package/dist/node/services/NetworkStakeService.d.ts.map +1 -0
- package/dist/node/services/Params.d.ts +11 -0
- package/dist/node/services/Params.d.ts.map +1 -0
- package/dist/node/services/PendingTransactionsService.d.ts +7 -0
- package/dist/node/services/PendingTransactionsService.d.ts.map +1 -0
- package/dist/node/services/SchemasService.d.ts +11 -0
- package/dist/node/services/SchemasService.d.ts.map +1 -0
- package/dist/node/services/StakeIntentService/ChainIndexingServiceStateSchema.d.ts +39 -0
- package/dist/node/services/StakeIntentService/ChainIndexingServiceStateSchema.d.ts.map +1 -0
- package/dist/node/services/StakeIntentService/StakeIntentService.d.ts +31 -0
- package/dist/node/services/StakeIntentService/StakeIntentService.d.ts.map +1 -0
- package/dist/node/services/StakeIntentService/index.d.ts +3 -0
- package/dist/node/services/StakeIntentService/index.d.ts.map +1 -0
- package/dist/node/services/index.d.ts +9 -0
- package/dist/node/services/index.d.ts.map +1 -0
- package/dist/node/simple/StakeEventsViewer/SimpleStakeEventsViewer.d.ts +23 -0
- package/dist/node/simple/StakeEventsViewer/SimpleStakeEventsViewer.d.ts.map +1 -0
- package/dist/node/simple/StakeEventsViewer/index.d.ts +2 -0
- package/dist/node/simple/StakeEventsViewer/index.d.ts.map +1 -0
- package/dist/node/simple/StakeTotalsViewer/SimpleStakeTotalsViewer.d.ts +27 -0
- package/dist/node/simple/StakeTotalsViewer/SimpleStakeTotalsViewer.d.ts.map +1 -0
- package/dist/node/simple/StakeTotalsViewer/index.d.ts +2 -0
- package/dist/node/simple/StakeTotalsViewer/index.d.ts.map +1 -0
- package/dist/node/simple/StakeViewer/SimpleStakeViewer.d.ts +42 -0
- package/dist/node/simple/StakeViewer/SimpleStakeViewer.d.ts.map +1 -0
- package/dist/node/simple/StakeViewer/index.d.ts +2 -0
- package/dist/node/simple/StakeViewer/index.d.ts.map +1 -0
- package/dist/node/simple/TransactionViewer/SimpleTransactionViewer.d.ts +25 -0
- package/dist/node/simple/TransactionViewer/SimpleTransactionViewer.d.ts.map +1 -0
- package/dist/node/simple/TransactionViewer/index.d.ts +2 -0
- package/dist/node/simple/TransactionViewer/index.d.ts.map +1 -0
- package/dist/node/simple/accountBalance/SimpleAccountBalanceViewer.d.ts +132 -0
- package/dist/node/simple/accountBalance/SimpleAccountBalanceViewer.d.ts.map +1 -0
- package/dist/node/simple/accountBalance/index.d.ts +2 -0
- package/dist/node/simple/accountBalance/index.d.ts.map +1 -0
- package/dist/node/simple/block/SimpleBlockViewer.d.ts +114 -0
- package/dist/node/simple/block/SimpleBlockViewer.d.ts.map +1 -0
- package/dist/node/simple/block/index.d.ts +2 -0
- package/dist/node/simple/block/index.d.ts.map +1 -0
- package/dist/node/simple/blockInvalidation/SimpleBlockInvalidationViewer.d.ts +37 -0
- package/dist/node/simple/blockInvalidation/SimpleBlockInvalidationViewer.d.ts.map +1 -0
- package/dist/node/simple/blockInvalidation/index.d.ts +2 -0
- package/dist/node/simple/blockInvalidation/index.d.ts.map +1 -0
- package/dist/node/simple/blockReward/SimpleBlockRewardViewer.d.ts +18 -0
- package/dist/node/simple/blockReward/SimpleBlockRewardViewer.d.ts.map +1 -0
- package/dist/node/simple/blockReward/index.d.ts +2 -0
- package/dist/node/simple/blockReward/index.d.ts.map +1 -0
- package/dist/node/simple/blockValidation/SimpleBlockValidationViewer.d.ts +38 -0
- package/dist/node/simple/blockValidation/SimpleBlockValidationViewer.d.ts.map +1 -0
- package/dist/node/simple/blockValidation/index.d.ts +2 -0
- package/dist/node/simple/blockValidation/index.d.ts.map +1 -0
- package/dist/node/simple/chainContractViewer/SimpleChainContractViewer.d.ts +47 -0
- package/dist/node/simple/chainContractViewer/SimpleChainContractViewer.d.ts.map +1 -0
- package/dist/node/simple/chainContractViewer/index.d.ts +2 -0
- package/dist/node/simple/chainContractViewer/index.d.ts.map +1 -0
- package/dist/node/simple/client/SimpleXyoClient.d.ts +9 -0
- package/dist/node/simple/client/SimpleXyoClient.d.ts.map +1 -0
- package/dist/node/simple/client/index.d.ts +2 -0
- package/dist/node/simple/client/index.d.ts.map +1 -0
- package/dist/node/simple/datalake/AbstractRestDataLake.d.ts +34 -0
- package/dist/node/simple/datalake/AbstractRestDataLake.d.ts.map +1 -0
- package/dist/node/simple/datalake/AbstractSimpleDataLake.d.ts +21 -0
- package/dist/node/simple/datalake/AbstractSimpleDataLake.d.ts.map +1 -0
- package/dist/node/simple/datalake/RestDataLakeRunner.d.ts +20 -0
- package/dist/node/simple/datalake/RestDataLakeRunner.d.ts.map +1 -0
- package/dist/node/simple/datalake/RestDataLakeViewer.d.ts +16 -0
- package/dist/node/simple/datalake/RestDataLakeViewer.d.ts.map +1 -0
- package/dist/node/simple/datalake/SimpleDataLakeRunner.d.ts +23 -0
- package/dist/node/simple/datalake/SimpleDataLakeRunner.d.ts.map +1 -0
- package/dist/node/simple/datalake/SimpleDataLakeViewer.d.ts +17 -0
- package/dist/node/simple/datalake/SimpleDataLakeViewer.d.ts.map +1 -0
- package/dist/node/simple/datalake/index.d.ts +5 -0
- package/dist/node/simple/datalake/index.d.ts.map +1 -0
- package/dist/node/simple/finalization/SimpleFinalizationRunner.d.ts +30 -0
- package/dist/node/simple/finalization/SimpleFinalizationRunner.d.ts.map +1 -0
- package/dist/node/simple/finalization/SimpleFinalizationViewer.d.ts +75 -0
- package/dist/node/simple/finalization/SimpleFinalizationViewer.d.ts.map +1 -0
- package/dist/node/simple/finalization/index.d.ts +3 -0
- package/dist/node/simple/finalization/index.d.ts.map +1 -0
- package/dist/node/simple/gateway/SimpleXyoGateway.d.ts +17 -0
- package/dist/node/simple/gateway/SimpleXyoGateway.d.ts.map +1 -0
- package/dist/node/simple/gateway/SimpleXyoGatewayRunner.d.ts +29 -0
- package/dist/node/simple/gateway/SimpleXyoGatewayRunner.d.ts.map +1 -0
- package/dist/node/simple/gateway/index.d.ts +3 -0
- package/dist/node/simple/gateway/index.d.ts.map +1 -0
- package/dist/node/simple/index.d.ts +24 -0
- package/dist/node/simple/index.d.ts.map +1 -0
- package/dist/node/simple/mempool/SimpleMempoolRunner.d.ts +84 -0
- package/dist/node/simple/mempool/SimpleMempoolRunner.d.ts.map +1 -0
- package/dist/node/simple/mempool/SimpleMempoolViewer.d.ts +82 -0
- package/dist/node/simple/mempool/SimpleMempoolViewer.d.ts.map +1 -0
- package/dist/node/simple/mempool/index.d.ts +3 -0
- package/dist/node/simple/mempool/index.d.ts.map +1 -0
- package/dist/node/simple/network/SimpleXyoNetwork.d.ts +12 -0
- package/dist/node/simple/network/SimpleXyoNetwork.d.ts.map +1 -0
- package/dist/node/simple/network/index.d.ts +2 -0
- package/dist/node/simple/network/index.d.ts.map +1 -0
- package/dist/node/simple/network/lib/FailedNetworkStatusPayloads.d.ts +6 -0
- package/dist/node/simple/network/lib/FailedNetworkStatusPayloads.d.ts.map +1 -0
- package/dist/node/simple/network/lib/StatusNetworks.d.ts +15 -0
- package/dist/node/simple/network/lib/StatusNetworks.d.ts.map +1 -0
- package/dist/node/simple/network/lib/index.d.ts +3 -0
- package/dist/node/simple/network/lib/index.d.ts.map +1 -0
- package/dist/node/simple/permissions/SimpleXyoPermissions.d.ts +17 -0
- package/dist/node/simple/permissions/SimpleXyoPermissions.d.ts.map +1 -0
- package/dist/node/simple/permissions/index.d.ts +3 -0
- package/dist/node/simple/permissions/index.d.ts.map +1 -0
- package/dist/node/simple/permissions/store/MemoryPermissions.d.ts +16 -0
- package/dist/node/simple/permissions/store/MemoryPermissions.d.ts.map +1 -0
- package/dist/node/simple/permissions/store/PermissionsStore.d.ts +14 -0
- package/dist/node/simple/permissions/store/PermissionsStore.d.ts.map +1 -0
- package/dist/node/simple/permissions/store/index.d.ts +3 -0
- package/dist/node/simple/permissions/store/index.d.ts.map +1 -0
- package/dist/node/simple/runner/SimpleXyoRunner.d.ts +21 -0
- package/dist/node/simple/runner/SimpleXyoRunner.d.ts.map +1 -0
- package/dist/node/simple/runner/index.d.ts +2 -0
- package/dist/node/simple/runner/index.d.ts.map +1 -0
- package/dist/node/simple/signer/SimpleXyoSigner.d.ts +31 -0
- package/dist/node/simple/signer/SimpleXyoSigner.d.ts.map +1 -0
- package/dist/node/simple/signer/index.d.ts +2 -0
- package/dist/node/simple/signer/index.d.ts.map +1 -0
- package/dist/node/simple/sync/RestSyncViewer.d.ts +22 -0
- package/dist/node/simple/sync/RestSyncViewer.d.ts.map +1 -0
- package/dist/node/simple/sync/index.d.ts +2 -0
- package/dist/node/simple/sync/index.d.ts.map +1 -0
- package/dist/node/simple/systemStatus/SimpleSystemStatusViewer.d.ts +27 -0
- package/dist/node/simple/systemStatus/SimpleSystemStatusViewer.d.ts.map +1 -0
- package/dist/node/simple/systemStatus/index.d.ts +2 -0
- package/dist/node/simple/systemStatus/index.d.ts.map +1 -0
- package/dist/node/simple/timeSync2/SimpleTimeSyncViewer.d.ts +27 -0
- package/dist/node/simple/timeSync2/SimpleTimeSyncViewer.d.ts.map +1 -0
- package/dist/node/simple/timeSync2/index.d.ts +2 -0
- package/dist/node/simple/timeSync2/index.d.ts.map +1 -0
- package/dist/node/simple/transactionInvalidation/SimpleTransactionInvalidationViewer.d.ts +35 -0
- package/dist/node/simple/transactionInvalidation/SimpleTransactionInvalidationViewer.d.ts.map +1 -0
- package/dist/node/simple/transactionInvalidation/index.d.ts +2 -0
- package/dist/node/simple/transactionInvalidation/index.d.ts.map +1 -0
- package/dist/node/simple/transactionValidation/SimpleTransactionValidationViewer.d.ts +34 -0
- package/dist/node/simple/transactionValidation/SimpleTransactionValidationViewer.d.ts.map +1 -0
- package/dist/node/simple/transactionValidation/index.d.ts +2 -0
- package/dist/node/simple/transactionValidation/index.d.ts.map +1 -0
- package/dist/node/simple/windowedBlock/SimpleWindowedBlockViewer.d.ts +242 -0
- package/dist/node/simple/windowedBlock/SimpleWindowedBlockViewer.d.ts.map +1 -0
- package/dist/node/simple/windowedBlock/index.d.ts +2 -0
- package/dist/node/simple/windowedBlock/index.d.ts.map +1 -0
- package/dist/node/status/ServiceStatus.d.ts +9 -0
- package/dist/node/status/ServiceStatus.d.ts.map +1 -0
- package/dist/node/status/SimpleSystemStatusRunner.d.ts +35 -0
- package/dist/node/status/SimpleSystemStatusRunner.d.ts.map +1 -0
- package/dist/node/status/index.d.ts +3 -0
- package/dist/node/status/index.d.ts.map +1 -0
- package/dist/node/summary/index.d.ts +3 -0
- package/dist/node/summary/index.d.ts.map +1 -0
- package/dist/node/summary/model/BalancesStepSummary.d.ts +26 -0
- package/dist/node/summary/model/BalancesStepSummary.d.ts.map +1 -0
- package/dist/node/summary/model/SchemasStepSummary.d.ts +25 -0
- package/dist/node/summary/model/SchemasStepSummary.d.ts.map +1 -0
- package/dist/node/summary/model/TransfersSummary.d.ts +26 -0
- package/dist/node/summary/model/TransfersSummary.d.ts.map +1 -0
- package/dist/node/summary/model/index.d.ts +4 -0
- package/dist/node/summary/model/index.d.ts.map +1 -0
- package/dist/node/summary/primitives/balances/balancesMaxStep.d.ts +9 -0
- package/dist/node/summary/primitives/balances/balancesMaxStep.d.ts.map +1 -0
- package/dist/node/summary/primitives/balances/balancesStepSummaryFromRange.d.ts +6 -0
- package/dist/node/summary/primitives/balances/balancesStepSummaryFromRange.d.ts.map +1 -0
- package/dist/node/summary/primitives/balances/balancesSummary.d.ts +7 -0
- package/dist/node/summary/primitives/balances/balancesSummary.d.ts.map +1 -0
- package/dist/node/summary/primitives/balances/index.d.ts +4 -0
- package/dist/node/summary/primitives/balances/index.d.ts.map +1 -0
- package/dist/node/summary/primitives/blocks/blocksMaxStep.d.ts +13 -0
- package/dist/node/summary/primitives/blocks/blocksMaxStep.d.ts.map +1 -0
- package/dist/node/summary/primitives/blocks/blocksStepSummaryFromRange.d.ts +12 -0
- package/dist/node/summary/primitives/blocks/blocksStepSummaryFromRange.d.ts.map +1 -0
- package/dist/node/summary/primitives/blocks/index.d.ts +3 -0
- package/dist/node/summary/primitives/blocks/index.d.ts.map +1 -0
- package/dist/node/summary/primitives/index.d.ts +5 -0
- package/dist/node/summary/primitives/index.d.ts.map +1 -0
- package/dist/node/summary/primitives/schemas/index.d.ts +4 -0
- package/dist/node/summary/primitives/schemas/index.d.ts.map +1 -0
- package/dist/node/summary/primitives/schemas/schemasMaxStep.d.ts +8 -0
- package/dist/node/summary/primitives/schemas/schemasMaxStep.d.ts.map +1 -0
- package/dist/node/summary/primitives/schemas/schemasStepSummaryFromRange.d.ts +7 -0
- package/dist/node/summary/primitives/schemas/schemasStepSummaryFromRange.d.ts.map +1 -0
- package/dist/node/summary/primitives/schemas/schemasSummary.d.ts +7 -0
- package/dist/node/summary/primitives/schemas/schemasSummary.d.ts.map +1 -0
- package/dist/node/summary/primitives/transfers/index.d.ts +4 -0
- package/dist/node/summary/primitives/transfers/index.d.ts.map +1 -0
- package/dist/node/summary/primitives/transfers/transfersMaxStep.d.ts +10 -0
- package/dist/node/summary/primitives/transfers/transfersMaxStep.d.ts.map +1 -0
- package/dist/node/summary/primitives/transfers/transfersStepSummaryFromRange.d.ts +9 -0
- package/dist/node/summary/primitives/transfers/transfersStepSummaryFromRange.d.ts.map +1 -0
- package/dist/node/summary/primitives/transfers/transfersSummary.d.ts +7 -0
- package/dist/node/summary/primitives/transfers/transfersSummary.d.ts.map +1 -0
- package/dist/node/test/BuildBlockOptions.d.ts +33 -0
- package/dist/node/test/BuildBlockOptions.d.ts.map +1 -0
- package/dist/node/test/buildBlock.d.ts +5 -0
- package/dist/node/test/buildBlock.d.ts.map +1 -0
- package/dist/node/test/buildGenesisBlock.d.ts +9 -0
- package/dist/node/test/buildGenesisBlock.d.ts.map +1 -0
- package/dist/node/test/buildNextBlock.d.ts +6 -0
- package/dist/node/test/buildNextBlock.d.ts.map +1 -0
- package/dist/node/test/buildRandomChain.d.ts +20 -0
- package/dist/node/test/buildRandomChain.d.ts.map +1 -0
- package/dist/node/test/buildRandomGenesisBlock.d.ts +13 -0
- package/dist/node/test/buildRandomGenesisBlock.d.ts.map +1 -0
- package/dist/node/test/buildRandomTransaction.d.ts +5 -0
- package/dist/node/test/buildRandomTransaction.d.ts.map +1 -0
- package/dist/node/test/createGenesisBlock.d.ts +5 -0
- package/dist/node/test/createGenesisBlock.d.ts.map +1 -0
- package/dist/node/test/createProducerChainStakeIntentTransaction.d.ts +16 -0
- package/dist/node/test/createProducerChainStakeIntentTransaction.d.ts.map +1 -0
- package/dist/node/test/getSimpleBlockViewerLocator.d.ts +15 -0
- package/dist/node/test/getSimpleBlockViewerLocator.d.ts.map +1 -0
- package/dist/node/test/getTestProviderContext.d.ts +5 -0
- package/dist/node/test/getTestProviderContext.d.ts.map +1 -0
- package/dist/node/test/index.d.ts +5 -0
- package/dist/node/test/index.d.ts.map +1 -0
- package/dist/node/time/index.d.ts +2 -0
- package/dist/node/time/index.d.ts.map +1 -0
- package/dist/node/time/primitives/index.d.ts +2 -0
- package/dist/node/time/primitives/index.d.ts.map +1 -0
- package/dist/node/time/primitives/xl1BlockNumberToEthBlockNumber.d.ts +4 -0
- package/dist/node/time/primitives/xl1BlockNumberToEthBlockNumber.d.ts.map +1 -0
- package/dist/node/transaction/TransactionBuilder.d.ts +110 -0
- package/dist/node/transaction/TransactionBuilder.d.ts.map +1 -0
- package/dist/node/transaction/buildTransaction.d.ts +5 -0
- package/dist/node/transaction/buildTransaction.d.ts.map +1 -0
- package/dist/node/transaction/buildUnsignedTransaction.d.ts +5 -0
- package/dist/node/transaction/buildUnsignedTransaction.d.ts.map +1 -0
- package/dist/node/transaction/confirmSubmittedTransaction.d.ts +11 -0
- package/dist/node/transaction/confirmSubmittedTransaction.d.ts.map +1 -0
- package/dist/node/transaction/hydrateTransaction.d.ts +21 -0
- package/dist/node/transaction/hydrateTransaction.d.ts.map +1 -0
- package/dist/node/transaction/index.d.ts +8 -0
- package/dist/node/transaction/index.d.ts.map +1 -0
- package/dist/node/transaction/primitives/index.d.ts +5 -0
- package/dist/node/transaction/primitives/index.d.ts.map +1 -0
- package/dist/node/transaction/primitives/transactionBlockByteCount.d.ts +4 -0
- package/dist/node/transaction/primitives/transactionBlockByteCount.d.ts.map +1 -0
- package/dist/node/transaction/primitives/transactionElevatedPayloads.d.ts +8 -0
- package/dist/node/transaction/primitives/transactionElevatedPayloads.d.ts.map +1 -0
- package/dist/node/transaction/primitives/transactionOperations.d.ts +5 -0
- package/dist/node/transaction/primitives/transactionOperations.d.ts.map +1 -0
- package/dist/node/transaction/primitives/transactionRequiredGas.d.ts +7 -0
- package/dist/node/transaction/primitives/transactionRequiredGas.d.ts.map +1 -0
- package/dist/node/transaction/script.d.ts +2 -0
- package/dist/node/transaction/script.d.ts.map +1 -0
- package/dist/node/transaction/signTransaction.d.ts +19 -0
- package/dist/node/transaction/signTransaction.d.ts.map +1 -0
- package/dist/node/utils/HydratedCache.d.ts +15 -0
- package/dist/node/utils/HydratedCache.d.ts.map +1 -0
- package/dist/node/utils/index.d.ts +3 -0
- package/dist/node/utils/index.d.ts.map +1 -0
- package/dist/node/utils/isZodError.d.ts +6 -0
- package/dist/node/utils/isZodError.d.ts.map +1 -0
- package/dist/node/validation/index.d.ts +3 -0
- package/dist/node/validation/index.d.ts.map +1 -0
- package/dist/node/validation/lib/getUrl.d.ts +3 -0
- package/dist/node/validation/lib/getUrl.d.ts.map +1 -0
- package/dist/node/validation/lib/index.d.ts +3 -0
- package/dist/node/validation/lib/index.d.ts.map +1 -0
- package/dist/node/validation/lib/isLocalhost.d.ts +3 -0
- package/dist/node/validation/lib/isLocalhost.d.ts.map +1 -0
- package/dist/node/validation/schema/Address.d.ts +3 -0
- package/dist/node/validation/schema/Address.d.ts.map +1 -0
- package/dist/node/validation/schema/Mnemonic.d.ts +14 -0
- package/dist/node/validation/schema/Mnemonic.d.ts.map +1 -0
- package/dist/node/validation/schema/index.d.ts +3 -0
- package/dist/node/validation/schema/index.d.ts.map +1 -0
- package/dist/node/wallet/generateXyoBaseWalletFromPhrase.d.ts +7 -0
- package/dist/node/wallet/generateXyoBaseWalletFromPhrase.d.ts.map +1 -0
- package/dist/node/wallet/index.d.ts +3 -0
- package/dist/node/wallet/index.d.ts.map +1 -0
- package/dist/node/wallet/paths.d.ts +24 -0
- package/dist/node/wallet/paths.d.ts.map +1 -0
- package/package.json +15 -13
- package/dist/neutral/getFileConfig.mjs +0 -357
- package/dist/neutral/getFileConfig.mjs.map +0 -7
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Logical archivist identity + tuning, independent of substrate. */
|
|
2
|
+
export interface ArchivistConnectOptions {
|
|
3
|
+
/** Optional maximum entry count for the underlying store. Omit to use the substrate default. */
|
|
4
|
+
max?: number;
|
|
5
|
+
/** Logical archivist name (role) within the connection — half of the cache key. */
|
|
6
|
+
name: string;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=ArchivistConnectOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArchivistConnectOptions.d.ts","sourceRoot":"","sources":["../../../src/Archivists/ArchivistConnectOptions.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,MAAM,WAAW,uBAAuB;IACtC,gGAAgG;IAChG,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,mFAAmF;IACnF,IAAI,EAAE,MAAM,CAAA;CACb"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { ArchivistInstance } from '@xyo-network/sdk-js';
|
|
2
|
+
import type { ConnectionConfig } from '../config/connections/Connection.ts';
|
|
3
|
+
import type { ArchivistConnectOptions } from './ArchivistConnectOptions.ts';
|
|
4
|
+
/** A connection binding handed to a factory: the connection's name plus its config. */
|
|
5
|
+
export interface ArchivistConnectionBinding {
|
|
6
|
+
config: ConnectionConfig;
|
|
7
|
+
name: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Contract every substrate factory implements. `connect` is a static method on the
|
|
11
|
+
* concrete class (see MemoryArchivistFactory); this interface documents the shape and
|
|
12
|
+
* lets call sites depend on the abstraction rather than a concrete factory.
|
|
13
|
+
*/
|
|
14
|
+
export interface ArchivistFactory {
|
|
15
|
+
connect(connectionName: string, config: ConnectionConfig, options: ArchivistConnectOptions): Promise<ArchivistInstance>;
|
|
16
|
+
}
|
|
17
|
+
/** Compose the cache key from the connection name and the logical archivist name. */
|
|
18
|
+
export declare function archivistCacheKey(connectionName: string, archivistName: string): string;
|
|
19
|
+
/**
|
|
20
|
+
* Per-substrate cache of archivist instances keyed by (connectionName, archivistName).
|
|
21
|
+
* A single Mutex serializes creation so concurrent callers with the same key share
|
|
22
|
+
* one instance rather than racing to create two.
|
|
23
|
+
*/
|
|
24
|
+
export declare class ArchivistInstanceCache {
|
|
25
|
+
private readonly cache;
|
|
26
|
+
private readonly mutex;
|
|
27
|
+
clear(): Promise<void>;
|
|
28
|
+
getOrCreate(connectionName: string, archivistName: string, create: () => Promise<ArchivistInstance>): Promise<ArchivistInstance>;
|
|
29
|
+
has(connectionName: string, archivistName: string): boolean;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=ArchivistFactory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArchivistFactory.d.ts","sourceRoot":"","sources":["../../../src/Archivists/ArchivistFactory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAG5D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAA;AAC3E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AAE3E,uFAAuF;AACvF,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,gBAAgB,CAAA;IACxB,IAAI,EAAE,MAAM,CAAA;CACb;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAA;CACxH;AAKD,qFAAqF;AACrF,wBAAgB,iBAAiB,CAAC,cAAc,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,MAAM,CAEvF;AAED;;;;GAIG;AACH,qBAAa,sBAAsB;IACjC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAuC;IAC7D,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAc;IAE9B,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAMtB,WAAW,CACf,cAAc,EAAE,MAAM,EACtB,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE,MAAM,OAAO,CAAC,iBAAiB,CAAC,GACvC,OAAO,CAAC,iBAAiB,CAAC;IAW7B,GAAG,CAAC,cAAc,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,OAAO;CAG5D"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ArchivistInstance } from '@xyo-network/sdk-js';
|
|
2
|
+
import type { ConnectionConfig } from '../config/connections/Connection.ts';
|
|
3
|
+
import type { ArchivistConnectOptions } from './ArchivistConnectOptions.ts';
|
|
4
|
+
/**
|
|
5
|
+
* Static, process-global factory for in-memory archivists. `connect` caches by
|
|
6
|
+
* (connectionName, archivistName) so two callers binding the same memory connection
|
|
7
|
+
* and role share one MemoryArchivist — i.e. the same physical store. Without this,
|
|
8
|
+
* each caller would create an isolated Map and silently read/write divergent data.
|
|
9
|
+
*
|
|
10
|
+
* `connect` accepts the wide `ConnectionConfig` (the memory variant carries no fields)
|
|
11
|
+
* so the class satisfies `ArchivistFactory` and can be held in the factory registry.
|
|
12
|
+
*/
|
|
13
|
+
export declare class MemoryArchivistFactory {
|
|
14
|
+
private static readonly cache;
|
|
15
|
+
static connect(connectionName: string, _config: ConnectionConfig, options: ArchivistConnectOptions): Promise<ArchivistInstance>;
|
|
16
|
+
/** Test-only: drop all cached memory archivists so a fresh process state can be simulated. */
|
|
17
|
+
static reset(): Promise<void>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=MemoryArchivistFactory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MemoryArchivistFactory.d.ts","sourceRoot":"","sources":["../../../src/Archivists/MemoryArchivistFactory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAG5D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAA;AAC3E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AAG3E;;;;;;;;GAQG;AACH,qBAAa,sBAAsB;IACjC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAA+B;WAE/C,OAAO,CAClB,cAAc,EAAE,MAAM,EACtB,OAAO,EAAE,gBAAgB,EACzB,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,iBAAiB,CAAC;IAW7B,8FAA8F;WACjF,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAGpC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ConnectionConfig } from '../config/connections/Connection.ts';
|
|
2
|
+
import type { ArchivistFactory } from './ArchivistFactory.ts';
|
|
3
|
+
/** Register the factory used to self-provision archivists for a connection type. */
|
|
4
|
+
export declare function registerArchivistFactory(type: ConnectionConfig['type'], factory: ArchivistFactory): void;
|
|
5
|
+
/** The factory registered for a connection type, or undefined if none. */
|
|
6
|
+
export declare function getArchivistFactory(type: ConnectionConfig['type']): ArchivistFactory | undefined;
|
|
7
|
+
/** Test-only: clear host-registered factories, restoring the default (memory-only) state. */
|
|
8
|
+
export declare function resetArchivistFactories(): void;
|
|
9
|
+
//# sourceMappingURL=archivistFactoryRegistry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"archivistFactoryRegistry.d.ts","sourceRoot":"","sources":["../../../src/Archivists/archivistFactoryRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAA;AAC3E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAY7D,oFAAoF;AACpF,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,gBAAgB,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAExG;AAED,0EAA0E;AAC1E,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,gBAAgB,CAAC,MAAM,CAAC,GAAG,gBAAgB,GAAG,SAAS,CAEhG;AAKD,6FAA6F;AAC7F,wBAAgB,uBAAuB,IAAI,IAAI,CAG9C"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical logical archivist names ("roles") within a connection. Providers and
|
|
3
|
+
* bootstrap genesis must agree on these strings — they form half of the
|
|
4
|
+
* ArchivistFactory cache key (connectionName, archivistName), so a mismatch would
|
|
5
|
+
* silently split a store that callers expect to share.
|
|
6
|
+
*/
|
|
7
|
+
export declare const CHAIN_ARCHIVIST_ROLE = "chain";
|
|
8
|
+
export declare const PENDING_TRANSACTIONS_ARCHIVIST_ROLE = "pending-transactions";
|
|
9
|
+
export declare const PENDING_BLOCKS_ARCHIVIST_ROLE = "pending-blocks";
|
|
10
|
+
export declare const REJECTED_BLOCKS_ARCHIVIST_ROLE = "rejected-blocks";
|
|
11
|
+
export declare const REJECTED_TRANSACTIONS_ARCHIVIST_ROLE = "rejected-transactions";
|
|
12
|
+
//# sourceMappingURL=archivistRoles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"archivistRoles.d.ts","sourceRoot":"","sources":["../../../src/Archivists/archivistRoles.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,UAAU,CAAA;AAC3C,eAAO,MAAM,mCAAmC,yBAAyB,CAAA;AACzE,eAAO,MAAM,6BAA6B,mBAAmB,CAAA;AAC7D,eAAO,MAAM,8BAA8B,oBAAoB,CAAA;AAC/D,eAAO,MAAM,oCAAoC,0BAA0B,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ArchivistInstance } from '@xyo-network/sdk-js';
|
|
2
|
+
import type { ArchivistConnectOptions } from './ArchivistConnectOptions.ts';
|
|
3
|
+
import type { ArchivistConnectionBinding } from './ArchivistFactory.ts';
|
|
4
|
+
/**
|
|
5
|
+
* Connect an archivist for a connection binding + logical role, dispatching to the
|
|
6
|
+
* factory registered for the connection's substrate type. Memory is registered by the
|
|
7
|
+
* protocol SDK; hosts register lmdb/mongo (etc.) via `registerArchivistFactory`. An
|
|
8
|
+
* unregistered type is a configuration error and throws loudly.
|
|
9
|
+
*/
|
|
10
|
+
export declare function connectArchivist(binding: ArchivistConnectionBinding, options: ArchivistConnectOptions): Promise<ArchivistInstance>;
|
|
11
|
+
//# sourceMappingURL=connectArchivist.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connectArchivist.d.ts","sourceRoot":"","sources":["../../../src/Archivists/connectArchivist.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAE5D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AAC3E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAA;AAGvE;;;;;GAKG;AACH,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,0BAA0B,EACnC,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,iBAAiB,CAAC,CAM5B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './ArchivistConnectOptions.ts';
|
|
2
|
+
export * from './ArchivistFactory.ts';
|
|
3
|
+
export * from './archivistFactoryRegistry.ts';
|
|
4
|
+
export * from './archivistRoles.ts';
|
|
5
|
+
export * from './connectArchivist.ts';
|
|
6
|
+
export * from './MemoryArchivistFactory.ts';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Archivists/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA;AAC5C,cAAc,uBAAuB,CAAA;AACrC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA;AACrC,cAAc,6BAA6B,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CachingContext, MapType } from '@xyo-network/xl1-protocol-lib';
|
|
2
|
+
/** Retrieves or creates a named cache from the caching context */
|
|
3
|
+
export declare function contextCache<TCacheValue>(context: CachingContext, name: string, create?: () => MapType<string, TCacheValue>): MapType<string, TCacheValue>;
|
|
4
|
+
/** Options for the withContextCacheResponse helper */
|
|
5
|
+
export interface withContextCacheResponseOptions {
|
|
6
|
+
max?: number;
|
|
7
|
+
}
|
|
8
|
+
/** Executes a function with LRU caching, returning the cached result if available */
|
|
9
|
+
export declare function withContextCacheResponse<T extends string | number | bigint | {}>(context: CachingContext, name: string, key: string, func: () => Promise<T extends string | number | bigint | {} ? T : never>, { max }?: withContextCacheResponseOptions): Promise<T>;
|
|
10
|
+
//# sourceMappingURL=ChainContextHelpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChainContextHelpers.d.ts","sourceRoot":"","sources":["../../src/ChainContextHelpers.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAA;AAE5E,kEAAkE;AAClE,wBAAgB,YAAY,CAAC,WAAW,EACtC,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,MAAM,EACZ,MAAM,CAAC,EAAE,MAAM,OAAO,CAAC,MAAM,EAAE,WAAW,CAAC,GAC1C,OAAO,CAAC,MAAM,EAAE,WAAW,CAAC,CAQ9B;AAED,sDAAsD;AACtD,MAAM,WAAW,+BAA+B;IAC9C,GAAG,CAAC,EAAE,MAAM,CAAA;CACb;AAED,qFAAqF;AACrF,wBAAsB,wBAAwB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,EAAE,EACpF,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,OAAO,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,EAAE,GAAG,CAAC,GAAG,KAAK,CAAC,EACxE,EAAE,GAAY,EAAE,GAAE,+BAAoC,GACrD,OAAO,CAAC,CAAC,CAAC,CAcZ"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import type { Logger } from '@xylabs/sdk';
|
|
2
|
+
import { AbstractCreatable } from '@xylabs/sdk';
|
|
3
|
+
import type { Provider, ProviderMoniker } from '@xyo-network/xl1-protocol-lib';
|
|
4
|
+
import type { CreatableProvider, CreatableProviderEventData, CreatableProviderInstance, CreatableProviderParams, ProviderMap } from './CreatableProvider.ts';
|
|
5
|
+
import { ProviderFactory } from './ProviderFactory.ts';
|
|
6
|
+
/** Abstract base class for CreatableProvider implementations. */
|
|
7
|
+
export declare abstract class AbstractCreatableProvider<TParams extends CreatableProviderParams = CreatableProviderParams, TEventData extends CreatableProviderEventData = CreatableProviderEventData> extends AbstractCreatable<TParams, TEventData> implements Omit<CreatableProviderInstance, 'moniker'> {
|
|
8
|
+
dependencies: ProviderMap;
|
|
9
|
+
protected _contextCache: TParams['context'] | undefined;
|
|
10
|
+
protected _logger: Logger | undefined | null;
|
|
11
|
+
abstract readonly moniker: ProviderMoniker;
|
|
12
|
+
get logger(): Logger | undefined;
|
|
13
|
+
get meter(): import("@opentelemetry/api").Meter | undefined;
|
|
14
|
+
get tracer(): import("@opentelemetry/api").Tracer | undefined;
|
|
15
|
+
protected get config(): {
|
|
16
|
+
chain: {
|
|
17
|
+
id?: import("@xylabs/sdk").BrandedHex | undefined;
|
|
18
|
+
genesisRewardAddress?: (Lowercase<string> & {
|
|
19
|
+
readonly __hex: true;
|
|
20
|
+
} & {
|
|
21
|
+
readonly __address: true;
|
|
22
|
+
}) | import("@xyo-network/sdk-protocol").XyoQuantAddress | undefined;
|
|
23
|
+
};
|
|
24
|
+
log: {
|
|
25
|
+
logLevel: "error" | "warn" | "info" | "log" | "debug" | "trace";
|
|
26
|
+
silent: boolean;
|
|
27
|
+
};
|
|
28
|
+
connections: Record<string, {
|
|
29
|
+
root: string;
|
|
30
|
+
type: "lmdb";
|
|
31
|
+
access?: "read" | "write" | undefined;
|
|
32
|
+
store?: string | undefined;
|
|
33
|
+
} | {
|
|
34
|
+
type: "mongo";
|
|
35
|
+
connectionString?: string | undefined;
|
|
36
|
+
database?: string | undefined;
|
|
37
|
+
domain?: string | undefined;
|
|
38
|
+
password?: string | undefined;
|
|
39
|
+
username?: string | undefined;
|
|
40
|
+
} | {
|
|
41
|
+
type: "rpc";
|
|
42
|
+
protocol: string;
|
|
43
|
+
url?: string | undefined;
|
|
44
|
+
networkId?: string | undefined;
|
|
45
|
+
sessionId?: string | undefined;
|
|
46
|
+
} | {
|
|
47
|
+
type: "rest";
|
|
48
|
+
baseUrl: string;
|
|
49
|
+
} | {
|
|
50
|
+
type: "s3";
|
|
51
|
+
bucket?: string | undefined;
|
|
52
|
+
endpoint?: string | undefined;
|
|
53
|
+
prefix?: string | undefined;
|
|
54
|
+
readUrl?: string | undefined;
|
|
55
|
+
accessKeyId?: string | undefined;
|
|
56
|
+
accountId?: string | undefined;
|
|
57
|
+
secretAccessKey?: string | undefined;
|
|
58
|
+
} | {
|
|
59
|
+
type: "evm-rpc";
|
|
60
|
+
url: string;
|
|
61
|
+
chainId?: string | undefined;
|
|
62
|
+
} | {
|
|
63
|
+
type: "memory";
|
|
64
|
+
}>;
|
|
65
|
+
providerBindings: Record<string, {
|
|
66
|
+
connection?: string | undefined;
|
|
67
|
+
provider?: string | undefined;
|
|
68
|
+
}>;
|
|
69
|
+
providers: {
|
|
70
|
+
[x: string]: unknown;
|
|
71
|
+
moniker: string;
|
|
72
|
+
labels?: string[] | undefined;
|
|
73
|
+
}[];
|
|
74
|
+
telemetry: {
|
|
75
|
+
metrics?: {
|
|
76
|
+
scrape: {
|
|
77
|
+
path: string;
|
|
78
|
+
port?: number | undefined;
|
|
79
|
+
};
|
|
80
|
+
} | undefined;
|
|
81
|
+
otel?: {
|
|
82
|
+
otlpEndpoint?: string | undefined;
|
|
83
|
+
} | undefined;
|
|
84
|
+
};
|
|
85
|
+
validation: {
|
|
86
|
+
signerAuthorizations: ({
|
|
87
|
+
type: "completedStepReward";
|
|
88
|
+
signers: (import("@xyo-network/sdk-protocol").XyoQuantAddress | (Lowercase<string> & {
|
|
89
|
+
readonly __hex: true;
|
|
90
|
+
} & {
|
|
91
|
+
readonly __address: true;
|
|
92
|
+
}))[];
|
|
93
|
+
} | {
|
|
94
|
+
type: "derivedReceive";
|
|
95
|
+
scope: string;
|
|
96
|
+
signers: (import("@xyo-network/sdk-protocol").XyoQuantAddress | (Lowercase<string> & {
|
|
97
|
+
readonly __hex: true;
|
|
98
|
+
} & {
|
|
99
|
+
readonly __address: true;
|
|
100
|
+
}))[];
|
|
101
|
+
})[];
|
|
102
|
+
minCandidates: number;
|
|
103
|
+
backoffMs: number;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
protected get context(): import("../index.ts").CreatableProviderContextType;
|
|
107
|
+
protected get locator(): import("./ProviderFactoryLocatorInstance.ts").ProviderFactoryLocatorInstance<import("../index.ts").CreatableProviderContextType>;
|
|
108
|
+
static factory<TInstance extends CreatableProviderInstance, TDependencies extends ProviderMoniker[] = ProviderMoniker[]>(this: CreatableProvider<TInstance>, dependencies: TDependencies, params: Omit<TInstance['params'], 'context'>): ProviderFactory<TInstance, TDependencies>;
|
|
109
|
+
static paramsHandler<T extends CreatableProviderInstance>(params?: Partial<T['params']>): Promise<T["params"]>;
|
|
110
|
+
createHandler(): Promise<void>;
|
|
111
|
+
locateAndCreate<TProvider extends Provider<ProviderMoniker>>(moniker: TProvider['moniker']): Promise<CreatableProviderInstance<TProvider>>;
|
|
112
|
+
tryLocateAndCreate<TProvider extends Provider<ProviderMoniker>>(moniker: TProvider['moniker']): Promise<CreatableProviderInstance<TProvider> | undefined>;
|
|
113
|
+
}
|
|
114
|
+
//# sourceMappingURL=AbstractCreatableProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AbstractCreatableProvider.d.ts","sourceRoot":"","sources":["../../../src/CreatableProvider/AbstractCreatableProvider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,EACL,iBAAiB,EAClB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAE9E,OAAO,KAAK,EACV,iBAAiB,EACjB,0BAA0B,EAAE,yBAAyB,EAAE,uBAAuB,EAC9E,WAAW,EACZ,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEtD,iEAAiE;AACjE,8BAAsB,yBAAyB,CAAC,OAAO,SAAS,uBAAuB,GAAG,uBAAuB,EAC/G,UAAU,SAAS,0BAA0B,GAAG,0BAA0B,CAAE,SAAQ,iBAAiB,CAAC,OAAO,EAAE,UAAU,CACzH,YAAW,IAAI,CAAC,yBAAyB,EAAE,SAAS,CAAC;IACrD,YAAY,EAAE,WAAW,CAAK;IAE9B,SAAS,CAAC,aAAa,EAAE,OAAO,CAAC,SAAS,CAAC,GAAG,SAAS,CAAA;IACvD,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAA;IAE5C,QAAQ,CAAC,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAA;IAE1C,IAAa,MAAM,uBAOlB;IAED,IAAa,KAAK,mDAEjB;IAED,IAAa,MAAM,oDAElB;IAED,SAAS,KAAK,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEnB;IAED,SAAS,KAAK,OAAO,uDAEpB;IAED,SAAS,KAAK,OAAO,qIAEpB;IAED,MAAM,CAAC,OAAO,CAAC,SAAS,SAAS,yBAAyB,EAAE,aAAa,SAAS,eAAe,EAAE,GAAG,eAAe,EAAE,EACrH,IAAI,EAAE,iBAAiB,CAAC,SAAS,CAAC,EAClC,YAAY,EAAE,aAAa,EAC3B,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC;WAMxB,aAAa,CAAC,CAAC,SAAS,yBAAyB,EACrE,MAAM,GAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAM;IAgBpB,aAAa;IAUtB,eAAe,CAAC,SAAS,SAAS,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,EAAE,SAAS,CAAC,SAAS,CAAC;IAI1F,kBAAkB,CAAC,SAAS,SAAS,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,EAAE,SAAS,CAAC,SAAS,CAAC;CAGpG"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { Creatable, CreatableInstance, CreatableParams, EventData, Labels, WithOptionalLabels } from '@xylabs/sdk';
|
|
2
|
+
import type { Provider, ProviderMoniker } from '@xyo-network/xl1-protocol-lib';
|
|
3
|
+
import type { Surface } from '../capabilities/Backing.ts';
|
|
4
|
+
import type { ConnectionKind } from '../config/connections/Connection.ts';
|
|
5
|
+
import type { CreatableProviderContext } from '../model/index.ts';
|
|
6
|
+
/** Connection kinds declared on creatable provider statics (connections plus wallet). */
|
|
7
|
+
export type CreatableProviderConnectionType = ConnectionKind | 'wallet';
|
|
8
|
+
import type { GetInstanceOptions } from './GetInstanceOptions.ts';
|
|
9
|
+
import type { LabeledCreatableProviderFactory } from './LabeledCreatableProviderFactory.ts';
|
|
10
|
+
/** Parameters for CreatableProvider. */
|
|
11
|
+
export interface CreatableProviderParams<TContext extends CreatableProviderContext = CreatableProviderContext> extends CreatableParams {
|
|
12
|
+
context: TContext;
|
|
13
|
+
}
|
|
14
|
+
/** CreatableProviderEventData interface. */
|
|
15
|
+
export interface CreatableProviderEventData extends EventData {
|
|
16
|
+
}
|
|
17
|
+
/** CreatableProviderInstance type. */
|
|
18
|
+
export type CreatableProviderInstance<TProvider extends Provider<ProviderMoniker> = Provider<ProviderMoniker>, TDependencies extends ProviderMoniker[] = ProviderMoniker[], TParams extends CreatableProviderParams = CreatableProviderParams, TEventData extends CreatableProviderEventData = CreatableProviderEventData> = CreatableInstance<TParams, TEventData> & TProvider & {
|
|
19
|
+
dependencies: ProviderMap<TDependencies[number]>;
|
|
20
|
+
};
|
|
21
|
+
/** ProviderFactoryScope type. */
|
|
22
|
+
export type ProviderFactoryScope = 'global' | 'context' | 'local';
|
|
23
|
+
/** CreatableProviderFactory interface. */
|
|
24
|
+
export interface CreatableProviderFactory<T extends CreatableProviderInstance = CreatableProviderInstance, TDependencies extends ProviderMoniker[] = ProviderMoniker[]> extends Omit<CreatableProvider<T>, 'create' | 'createHandler' | 'paramsHandler'> {
|
|
25
|
+
readonly connectionTypes?: readonly CreatableProviderConnectionType[];
|
|
26
|
+
creatableProvider: CreatableProvider<T>;
|
|
27
|
+
defaultParams: Omit<T['params'], 'context'>;
|
|
28
|
+
readonly dependencies: TDependencies;
|
|
29
|
+
labels?: Labels;
|
|
30
|
+
providerName: string;
|
|
31
|
+
resolvedMoniker: string;
|
|
32
|
+
scope: ProviderFactoryScope;
|
|
33
|
+
readonly surface?: Surface;
|
|
34
|
+
uniqueId: symbol;
|
|
35
|
+
getInstance(this: CreatableProviderFactory<T>, params: T['params'], options?: GetInstanceOptions): Promise<T>;
|
|
36
|
+
tryGetInstance(this: CreatableProviderFactory<T>, params: T['params'], options?: GetInstanceOptions): Promise<T | undefined>;
|
|
37
|
+
}
|
|
38
|
+
/** LabeledCreatableProvider interface. */
|
|
39
|
+
export interface LabeledCreatableProvider<T extends CreatableProviderInstance = CreatableProviderInstance, TDependencies extends ProviderMoniker[] = ProviderMoniker[]> extends CreatableProvider<T>, WithOptionalLabels {
|
|
40
|
+
factory(dependencies: TDependencies, params: Omit<T['params'], 'context'>): LabeledCreatableProviderFactory<T>;
|
|
41
|
+
}
|
|
42
|
+
/** ProviderMap type. */
|
|
43
|
+
export type ProviderMap<T extends ProviderMoniker = ProviderMoniker> = Partial<Record<T, CreatableProviderInstance<Provider<T>>>>;
|
|
44
|
+
/** CreatableProvider interface. */
|
|
45
|
+
export interface CreatableProvider<T extends CreatableProviderInstance = CreatableProviderInstance, TDependencies extends ProviderMoniker[] = ProviderMoniker[]> extends Creatable<T> {
|
|
46
|
+
readonly connectionTypes?: readonly CreatableProviderConnectionType[];
|
|
47
|
+
readonly defaultMoniker: ProviderMoniker;
|
|
48
|
+
readonly dependencies: TDependencies;
|
|
49
|
+
readonly monikers: ProviderMoniker[];
|
|
50
|
+
readonly surface?: Surface;
|
|
51
|
+
factory(dependencies: TDependencies, params: Omit<T['params'], 'context'>): CreatableProviderFactory<T>;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Class annotation to be used to decorate Providers which support
|
|
55
|
+
* an asynchronous creation pattern
|
|
56
|
+
* @returns The decorated Provider requiring it implement the members
|
|
57
|
+
* of the CreatableProvider as statics properties/methods
|
|
58
|
+
*/
|
|
59
|
+
export declare function creatableProvider<TProvider extends CreatableProviderInstance = CreatableProviderInstance>(): <U extends CreatableProvider<TProvider>>(constructor: U) => void;
|
|
60
|
+
/**
|
|
61
|
+
* Class annotation to be used to decorate Providers which support
|
|
62
|
+
* an asynchronous creation pattern
|
|
63
|
+
* @returns The decorated Provider requiring it implement the members
|
|
64
|
+
* of the CreatableProvider as statics properties/methods
|
|
65
|
+
*/
|
|
66
|
+
export declare function labeledCreatableProvider<TProvider extends CreatableProviderInstance = CreatableProviderInstance>(): <U extends LabeledCreatableProvider<TProvider>>(constructor: U) => void;
|
|
67
|
+
//# sourceMappingURL=CreatableProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreatableProvider.d.ts","sourceRoot":"","sources":["../../../src/CreatableProvider/CreatableProvider.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Labels } from '@xylabs/sdk';
|
|
2
|
+
import type { ProviderMoniker } from '@xyo-network/xl1-protocol-lib';
|
|
3
|
+
import type { CreatableProviderFactory, CreatableProviderInstance } from './CreatableProvider.ts';
|
|
4
|
+
import type { LabeledCreatableProviderFactory } from './LabeledCreatableProviderFactory.ts';
|
|
5
|
+
/** CreatableProviderRegistry type. */
|
|
6
|
+
export type CreatableProviderRegistry<TMonikers extends ProviderMoniker[] = ProviderMoniker[]> = Record<TMonikers[number], (CreatableProviderFactory | LabeledCreatableProviderFactory)[] | undefined>;
|
|
7
|
+
/** registerCreatableProviderFactory constant. */
|
|
8
|
+
export declare const registerCreatableProviderFactory: <TProvider extends CreatableProviderInstance>(registry: CreatableProviderRegistry, factory: CreatableProviderFactory<TProvider> | LabeledCreatableProviderFactory<TProvider>, labels?: Labels,
|
|
9
|
+
/** register this as the primary factory for every schema it supports */
|
|
10
|
+
primary?: boolean | ProviderMoniker | ProviderMoniker[]) => void;
|
|
11
|
+
/** registerCreatableProviderFactories constant. */
|
|
12
|
+
export declare const registerCreatableProviderFactories: (factories: (CreatableProviderFactory | LabeledCreatableProviderFactory)[], registry?: CreatableProviderRegistry, primary?: boolean) => CreatableProviderRegistry<string[]>;
|
|
13
|
+
//# sourceMappingURL=CreatableProviderRegistry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreatableProviderRegistry.d.ts","sourceRoot":"","sources":["../../../src/CreatableProvider/CreatableProviderRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEzC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAEpE,OAAO,KAAK,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAA;AACjG,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAA;AAG3F,sCAAsC;AACtC,MAAM,MAAM,yBAAyB,CAAC,SAAS,SAAS,eAAe,EAAE,GAAG,eAAe,EAAE,IACzF,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,wBAAwB,GAAG,+BAA+B,CAAC,EAAE,GAAG,SAAS,CAAC,CAAA;AA0BzG,iDAAiD;AACjD,eAAO,MAAM,gCAAgC,GAAI,SAAS,SAAS,yBAAyB,EAC1F,UAAU,yBAAyB,EACnC,SAAS,wBAAwB,CAAC,SAAS,CAAC,GAAG,+BAA+B,CAAC,SAAS,CAAC,EACzF,SAAS,MAAM;AACf,wEAAwE;AACxE,UAAS,OAAO,GAAG,eAAe,GAAG,eAAe,EAAU,SA+C/D,CAAA;AAED,mDAAmD;AACnD,eAAO,MAAM,kCAAkC,GAC7C,WAAW,CAAC,wBAAwB,GAAG,+BAA+B,CAAC,EAAE,EACzE,WAAU,yBAA8B,EACxC,iBAAe,wCAMhB,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Labels } from '@xylabs/sdk';
|
|
2
|
+
/** Options for GetInstance. */
|
|
3
|
+
export interface GetInstanceOptions {
|
|
4
|
+
start?: boolean;
|
|
5
|
+
}
|
|
6
|
+
/** Options for ProviderFactoryGetInstance. */
|
|
7
|
+
export interface ProviderFactoryGetInstanceOptions extends GetInstanceOptions {
|
|
8
|
+
labels?: Labels;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=GetInstanceOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetInstanceOptions.d.ts","sourceRoot":"","sources":["../../../src/CreatableProvider/GetInstanceOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEzC,+BAA+B;AAC/B,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED,8CAA8C;AAC9C,MAAM,WAAW,iCAAkC,SAAQ,kBAAkB;IAC3E,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { WithOptionalLabels } from '@xylabs/sdk';
|
|
2
|
+
import type { CreatableProviderFactory, CreatableProviderInstance } from './CreatableProvider.ts';
|
|
3
|
+
/** LabeledCreatableProviderFactory type. */
|
|
4
|
+
export type LabeledCreatableProviderFactory<T extends CreatableProviderInstance = CreatableProviderInstance> = CreatableProviderFactory<T> & WithOptionalLabels;
|
|
5
|
+
/** hasLabels constant. */
|
|
6
|
+
export declare const hasLabels: (factory: CreatableProviderFactory | LabeledCreatableProviderFactory) => factory is LabeledCreatableProviderFactory;
|
|
7
|
+
/**
|
|
8
|
+
* Class annotation to be used to decorate Providers which support
|
|
9
|
+
* an asynchronous labeled creation factory pattern
|
|
10
|
+
* @returns The decorated Provider requiring it implement the members
|
|
11
|
+
* of the CreatableProvider as statics properties/methods
|
|
12
|
+
*/
|
|
13
|
+
export declare function labeledCreatableProviderFactory<TProvider extends CreatableProviderInstance = CreatableProviderInstance>(): <U extends LabeledCreatableProviderFactory<TProvider>>(constructor: U) => void;
|
|
14
|
+
//# sourceMappingURL=LabeledCreatableProviderFactory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LabeledCreatableProviderFactory.d.ts","sourceRoot":"","sources":["../../../src/CreatableProvider/LabeledCreatableProviderFactory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAErD,OAAO,KAAK,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAA;AAEjG,4CAA4C;AAC5C,MAAM,MAAM,+BAA+B,CAAC,CAAC,SAAS,yBAAyB,GAAG,yBAAyB,IAAI,wBAAwB,CAAC,CAAC,CAAC,GAAG,kBAAkB,CAAA;AAE/J,0BAA0B;AAC1B,eAAO,MAAM,SAAS,GAAI,SAAS,wBAAwB,GAAG,+BAA+B,KAAG,OAAO,IAAI,+BAE1G,CAAA;AAED;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAAC,SAAS,SAAS,yBAAyB,GAAG,yBAAyB,MAC7G,CAAC,SAAS,+BAA+B,CAAC,SAAS,CAAC,EAAE,aAAa,CAAC,UAI7E"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { Labels } from '@xylabs/sdk';
|
|
2
|
+
import type { ProviderMoniker } from '@xyo-network/xl1-protocol-lib';
|
|
3
|
+
import type { CreatableProvider, CreatableProviderFactory, CreatableProviderInstance, ProviderFactoryScope } from './CreatableProvider.ts';
|
|
4
|
+
import type { GetInstanceOptions } from './GetInstanceOptions.ts';
|
|
5
|
+
declare global {
|
|
6
|
+
var xyoServiceSingletons: Record<string, unknown>;
|
|
7
|
+
}
|
|
8
|
+
/** ProviderFactoryDescription helper function. */
|
|
9
|
+
export declare function providerFactoryDescription(factory: CreatableProviderFactory, labels?: Labels): string;
|
|
10
|
+
/** ProviderFactory implementation. */
|
|
11
|
+
export declare class ProviderFactory<TProvider extends CreatableProviderInstance, TDependencies extends ProviderMoniker[]> implements CreatableProviderFactory<TProvider> {
|
|
12
|
+
creatableProvider: CreatableProvider<TProvider>;
|
|
13
|
+
defaultMoniker: CreatableProvider<TProvider>['monikers'][number];
|
|
14
|
+
defaultParams: Omit<TProvider['params'], 'context'>;
|
|
15
|
+
dependencies: TDependencies;
|
|
16
|
+
labels?: Labels;
|
|
17
|
+
monikers: CreatableProvider<TProvider>['monikers'];
|
|
18
|
+
providerName: string;
|
|
19
|
+
scope: ProviderFactoryScope;
|
|
20
|
+
private _uniqueId;
|
|
21
|
+
constructor(creatableProvider: CreatableProvider<TProvider>, dependencies: TDependencies, params: Omit<TProvider['params'], 'context'>, labels?: Labels, scope?: ProviderFactoryScope);
|
|
22
|
+
get resolvedMoniker(): string;
|
|
23
|
+
get uniqueId(): symbol;
|
|
24
|
+
static withParams<TInstance extends CreatableProviderInstance, TDependencies extends ProviderMoniker[]>(creatableProvider: CreatableProvider<TInstance>, dependencies: TDependencies, params: Omit<TInstance['params'], 'context'>, labels?: Labels): ProviderFactory<TInstance, TDependencies>;
|
|
25
|
+
factory<TInstance extends CreatableProviderInstance, TDependencies extends ProviderMoniker[]>(this: CreatableProviderFactory<TInstance, TDependencies>, dependencies: TDependencies, params: Omit<TInstance['params'], 'context'>, labels?: Labels): ProviderFactory<TInstance, TDependencies>;
|
|
26
|
+
getInstance(this: CreatableProviderFactory<TProvider>, params: TProvider['params'], { start }: GetInstanceOptions): Promise<TProvider>;
|
|
27
|
+
tryGetInstance(this: CreatableProviderFactory<TProvider>, params: TProvider['params'], options?: GetInstanceOptions): Promise<TProvider | undefined>;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=ProviderFactory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProviderFactory.d.ts","sourceRoot":"","sources":["../../../src/CreatableProvider/ProviderFactory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAsB,MAAM,aAAa,CAAA;AAE7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAEpE,OAAO,KAAK,EACV,iBAAiB,EAAE,wBAAwB,EAAE,yBAAyB,EACtE,oBAAoB,EACrB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAEjE,OAAO,CAAC,MAAM,CAAC;IACb,IAAI,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAClD;AAED,kDAAkD;AAClD,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,wBAAwB,EAAE,MAAM,CAAC,EAAE,MAAM,UAE5F;AAED,sCAAsC;AACtC,qBAAa,eAAe,CAAC,SAAS,SAAS,yBAAyB,EACtE,aAAa,SAAS,eAAe,EAAE,CAAE,YAAW,wBAAwB,CAAC,SAAS,CAAC;IACvF,iBAAiB,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAA;IAE/C,cAAc,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,CAAA;IAEhE,aAAa,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC,CAAA;IAEnD,YAAY,EAAE,aAAa,CAAA;IAE3B,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf,QAAQ,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAC,UAAU,CAAC,CAAA;IAElD,YAAY,EAAE,MAAM,CAAA;IAEpB,KAAK,EAAE,oBAAoB,CAAA;IAE3B,OAAO,CAAC,SAAS,CAAQ;gBAGvB,iBAAiB,EAAE,iBAAiB,CAAC,SAAS,CAAC,EAC/C,YAAY,EAAE,aAAa,EAC3B,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC,EAC5C,MAAM,GAAE,MAAW,EACnB,KAAK,GAAE,oBAAgC;IAczC,IAAI,eAAe,WAIlB;IAED,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,MAAM,CAAC,UAAU,CAAC,SAAS,SAAS,yBAAyB,EAAE,aAAa,SAAS,eAAe,EAAE,EACpG,iBAAiB,EAAE,iBAAiB,CAAC,SAAS,CAAC,EAC/C,YAAY,EAAE,aAAa,EAC3B,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC,EAC5C,MAAM,GAAE,MAAW;IAKrB,OAAO,CAAC,SAAS,SAAS,yBAAyB,EAAE,aAAa,SAAS,eAAe,EAAE,EAC1F,IAAI,EAAE,wBAAwB,CAAC,SAAS,EAAE,aAAa,CAAC,EACxD,YAAY,EAAE,aAAa,EAC3B,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC,EAC5C,MAAM,GAAE,MAAW;IAKf,WAAW,CAAC,IAAI,EAAE,wBAAwB,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,EAAE,EAAE,KAAY,EAAE,EAAE,kBAAkB,GAAG,OAAO,CAAC,SAAS,CAAC;IAkC7I,cAAc,CAClB,IAAI,EAAE,wBAAwB,CAAC,SAAS,CAAC,EACzC,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,EAC3B,OAAO,CAAC,EAAE,kBAAkB,GAC3B,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;CAOlC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { type Labels } from '@xylabs/sdk';
|
|
2
|
+
import type { Provider, ProviderMoniker } from '@xyo-network/xl1-protocol-lib';
|
|
3
|
+
import type { CreatableProviderContext } from '../model/index.ts';
|
|
4
|
+
import type { CreatableProviderFactory, CreatableProviderInstance } from './CreatableProvider.ts';
|
|
5
|
+
import { type CreatableProviderRegistry } from './CreatableProviderRegistry.ts';
|
|
6
|
+
import type { ProviderFactoryGetInstanceOptions } from './GetInstanceOptions.ts';
|
|
7
|
+
import { type LabeledCreatableProviderFactory } from './LabeledCreatableProviderFactory.ts';
|
|
8
|
+
import type { ProviderFactoryLocatorInstance } from './ProviderFactoryLocatorInstance.ts';
|
|
9
|
+
/**
|
|
10
|
+
* A class which encapsulates the Service Locator Pattern for Provider Factories
|
|
11
|
+
*/
|
|
12
|
+
export declare class ProviderFactoryLocator<TContext extends CreatableProviderContext = CreatableProviderContext, TMonikers extends ProviderMoniker[] = ProviderMoniker[]> implements ProviderFactoryLocatorInstance<TContext> {
|
|
13
|
+
protected readonly _context: TContext;
|
|
14
|
+
protected readonly _registry: CreatableProviderRegistry<TMonikers>;
|
|
15
|
+
private _frozen;
|
|
16
|
+
private _parent?;
|
|
17
|
+
private _validateDepsOnRegister;
|
|
18
|
+
constructor(context: (Omit<TContext, 'locator'> & {
|
|
19
|
+
locator?: TContext['locator'];
|
|
20
|
+
}), registry?: CreatableProviderRegistry, validateDepsOnRegister?: boolean);
|
|
21
|
+
get context(): TContext;
|
|
22
|
+
get logger(): import("@xylabs/sdk").Logger | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* The current registry for the module factory
|
|
25
|
+
*/
|
|
26
|
+
get registry(): Readonly<CreatableProviderRegistry>;
|
|
27
|
+
protected get validateDepsOnRegister(): boolean;
|
|
28
|
+
freeze(): void;
|
|
29
|
+
getInstance<TProvider extends Provider<ProviderMoniker>>(moniker: TProvider['moniker'], { start, labels }?: ProviderFactoryGetInstanceOptions): Promise<CreatableProviderInstance<TProvider>>;
|
|
30
|
+
has(moniker: TMonikers[number]): boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Locates a provider factory that matches the supplied moniker and labels
|
|
33
|
+
* @param moniker The config moniker for the provider
|
|
34
|
+
* @param labels The labels for the provider factory
|
|
35
|
+
* @returns A provider factory that matches the supplied moniker and labels or throws if one is not found
|
|
36
|
+
*/
|
|
37
|
+
locate<TProvider extends Provider<ProviderMoniker>>(moniker: TProvider['moniker'], labels?: Labels): CreatableProviderFactory<CreatableProviderInstance<TProvider>> | LabeledCreatableProviderFactory<CreatableProviderInstance<TProvider>>;
|
|
38
|
+
merge(locator: ProviderFactoryLocatorInstance): ProviderFactoryLocatorInstance;
|
|
39
|
+
/**
|
|
40
|
+
* Registers a single module factory (with optional tags) with the locator
|
|
41
|
+
* @param factory The factory to register
|
|
42
|
+
* @param labels The labels for the module factory
|
|
43
|
+
*/
|
|
44
|
+
register(factory: CreatableProviderFactory, labels?: Labels, primary?: boolean | ProviderMoniker | ProviderMoniker[]): this;
|
|
45
|
+
/**
|
|
46
|
+
* Registers multiple module factories with the locator
|
|
47
|
+
* @param factories The factories to register
|
|
48
|
+
*/
|
|
49
|
+
registerMany(factories: CreatableProviderFactory[]): this;
|
|
50
|
+
registered(moniker: ProviderMoniker): boolean;
|
|
51
|
+
tryGetInstance<TProvider extends Provider<ProviderMoniker>>(moniker: TProvider['moniker'], { start, labels }?: ProviderFactoryGetInstanceOptions): Promise<CreatableProviderInstance<TProvider> | undefined>;
|
|
52
|
+
/**
|
|
53
|
+
* Tries to locate a module factory that matches the supplied moniker and labels
|
|
54
|
+
* @param moniker The config moniker for the module
|
|
55
|
+
* @param labels The labels for the module factory
|
|
56
|
+
* @returns A module factory that matches the supplied moniker and labels or undefined
|
|
57
|
+
*/
|
|
58
|
+
tryLocate<TProvider extends Provider<ProviderMoniker>>(moniker: TProvider['moniker'], labels?: Labels): CreatableProviderFactory<CreatableProviderInstance<TProvider>> | LabeledCreatableProviderFactory<CreatableProviderInstance<TProvider>> | undefined;
|
|
59
|
+
validateDependencies(recursive?: boolean): void;
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=ProviderFactoryLocator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProviderFactoryLocator.d.ts","sourceRoot":"","sources":["../../../src/CreatableProvider/ProviderFactoryLocator.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { Labels } from '@xylabs/sdk';
|
|
2
|
+
import type { Provider, ProviderMoniker } from '@xyo-network/xl1-protocol-lib';
|
|
3
|
+
import type { CreatableProviderContext } from '../model/index.ts';
|
|
4
|
+
import type { CreatableProviderFactory, CreatableProviderInstance } from './CreatableProvider.ts';
|
|
5
|
+
import type { CreatableProviderRegistry } from './CreatableProviderRegistry.ts';
|
|
6
|
+
import type { ProviderFactoryGetInstanceOptions } from './GetInstanceOptions.ts';
|
|
7
|
+
import type { LabeledCreatableProviderFactory } from './LabeledCreatableProviderFactory.ts';
|
|
8
|
+
/** Interface for ProviderFactoryLocator instances. */
|
|
9
|
+
export interface ProviderFactoryLocatorInstance<T extends CreatableProviderContext = CreatableProviderContext> {
|
|
10
|
+
context: T;
|
|
11
|
+
/**
|
|
12
|
+
* The current registry for the module factory
|
|
13
|
+
*/
|
|
14
|
+
registry: Readonly<CreatableProviderRegistry>;
|
|
15
|
+
freeze(): void;
|
|
16
|
+
getInstance<TProvider extends Provider<ProviderMoniker>>(moniker: TProvider['moniker'], options?: ProviderFactoryGetInstanceOptions): Promise<CreatableProviderInstance<TProvider>>;
|
|
17
|
+
/**
|
|
18
|
+
* Locates a module factory that matches the supplied moniker and labels
|
|
19
|
+
* @param moniker The config moniker for the module
|
|
20
|
+
* @param labels The labels for the module factory
|
|
21
|
+
* @returns A module factory that matches the supplied moniker and labels or throws if one is not found
|
|
22
|
+
*/
|
|
23
|
+
locate<TProvider extends Provider<ProviderMoniker>>(moniker: ProviderMoniker, labels?: Labels): CreatableProviderFactory<CreatableProviderInstance<TProvider>> | LabeledCreatableProviderFactory<CreatableProviderInstance<TProvider>> | undefined;
|
|
24
|
+
merge(locator: ProviderFactoryLocatorInstance): ProviderFactoryLocatorInstance;
|
|
25
|
+
/**
|
|
26
|
+
* Registers a single module factory (with optional tags) with the locator
|
|
27
|
+
* @param factory The factory to register
|
|
28
|
+
* @param labels The labels for the module factory
|
|
29
|
+
*/
|
|
30
|
+
register(factory: CreatableProviderFactory, labels?: Labels, primary?: boolean | ProviderMoniker | ProviderMoniker[]): ProviderFactoryLocatorInstance;
|
|
31
|
+
/**
|
|
32
|
+
* Registers multiple module factories with the locator
|
|
33
|
+
* @param factories The factories to register
|
|
34
|
+
*/
|
|
35
|
+
registerMany(factories: CreatableProviderFactory[]): ProviderFactoryLocatorInstance;
|
|
36
|
+
registered(moniker: ProviderMoniker): boolean;
|
|
37
|
+
tryGetInstance<TProvider extends Provider<ProviderMoniker>>(moniker: TProvider['moniker'], options?: ProviderFactoryGetInstanceOptions): Promise<CreatableProviderInstance<TProvider> | undefined>;
|
|
38
|
+
/**
|
|
39
|
+
* Tries to locate a module factory that matches the supplied moniker and labels
|
|
40
|
+
* @param moniker The config moniker for the module
|
|
41
|
+
* @param labels The labels for the module factory
|
|
42
|
+
* @returns A module factory that matches the supplied moniker and labels or undefined
|
|
43
|
+
*/
|
|
44
|
+
tryLocate<TProvider extends Provider<ProviderMoniker>>(moniker: ProviderMoniker, labels?: Labels): CreatableProviderFactory<CreatableProviderInstance<TProvider>> | LabeledCreatableProviderFactory<CreatableProviderInstance<TProvider>> | undefined;
|
|
45
|
+
validateDependencies(): void;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=ProviderFactoryLocatorInstance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProviderFactoryLocatorInstance.d.ts","sourceRoot":"","sources":["../../../src/CreatableProvider/ProviderFactoryLocatorInstance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAE9E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAA;AACjE,OAAO,KAAK,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAA;AACjG,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAA;AAC/E,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAA;AAChF,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAA;AAE3F,sDAAsD;AACtD,MAAM,WAAW,8BAA8B,CAAC,CAAC,SAAS,wBAAwB,GAAG,wBAAwB;IAE3G,OAAO,EAAE,CAAC,CAAA;IAEV;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC,yBAAyB,CAAC,CAAA;IAE7C,MAAM,IAAI,IAAI,CAAA;IAEd,WAAW,CAAC,SAAS,SAAS,QAAQ,CAAC,eAAe,CAAC,EACrD,OAAO,EAAE,SAAS,CAAC,SAAS,CAAC,EAC7B,OAAO,CAAC,EAAE,iCAAiC,GAC1C,OAAO,CAAC,yBAAyB,CAAC,SAAS,CAAC,CAAC,CAAA;IAEhD;;;;;OAKG;IACH,MAAM,CAAC,SAAS,SAAS,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,CAAC,EAAE,MAAM,GAC3F,wBAAwB,CAAC,yBAAyB,CAAC,SAAS,CAAC,CAAC,GAAG,+BAA+B,CAAC,yBAAyB,CAAC,SAAS,CAAC,CAAC,GAAG,SAAS,CAAA;IAEpJ,KAAK,CAAC,OAAO,EAAE,8BAA8B,GAAG,8BAA8B,CAAA;IAE9E;;;;OAIG;IACH,QAAQ,CAAC,OAAO,EAAE,wBAAwB,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,eAAe,GAAG,eAAe,EAAE,GAAG,8BAA8B,CAAA;IAErJ;;;OAGG;IACH,YAAY,CAAC,SAAS,EAAE,wBAAwB,EAAE,GAAG,8BAA8B,CAAA;IAEnF,UAAU,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAA;IAE7C,cAAc,CAAC,SAAS,SAAS,QAAQ,CAAC,eAAe,CAAC,EACxD,OAAO,EAAE,SAAS,CAAC,SAAS,CAAC,EAC7B,OAAO,CAAC,EAAE,iCAAiC,GAC1C,OAAO,CAAC,yBAAyB,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,CAAA;IAE5D;;;;;OAKG;IACH,SAAS,CAAC,SAAS,SAAS,QAAQ,CAAC,eAAe,CAAC,EACnD,OAAO,EAAE,eAAe,EACxB,MAAM,CAAC,EAAE,MAAM,GACd,wBAAwB,CAAC,yBAAyB,CAAC,SAAS,CAAC,CAAC,GAAG,+BAA+B,CAAC,yBAAyB,CAAC,SAAS,CAAC,CAAC,GAAG,SAAS,CAAA;IAErJ,oBAAoB,IAAI,IAAI,CAAA;CAC7B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './AbstractCreatableProvider.ts';
|
|
2
|
+
export * from './CreatableProvider.ts';
|
|
3
|
+
export * from './CreatableProviderRegistry.ts';
|
|
4
|
+
export * from './GetInstanceOptions.ts';
|
|
5
|
+
export * from './LabeledCreatableProviderFactory.ts';
|
|
6
|
+
export * from './ProviderFactory.ts';
|
|
7
|
+
export * from './ProviderFactoryLocator.ts';
|
|
8
|
+
export * from './ProviderFactoryLocatorInstance.ts';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/CreatableProvider/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAA;AAC9C,cAAc,wBAAwB,CAAA;AACtC,cAAc,gCAAgC,CAAA;AAC9C,cAAc,yBAAyB,CAAA;AACvC,cAAc,sCAAsC,CAAA;AACpD,cAAc,sBAAsB,CAAA;AACpC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,qCAAqC,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type Hex } from '@xylabs/sdk';
|
|
2
|
+
/** Represents a negative bigint value stored as a hex string */
|
|
3
|
+
export interface NegativeBigInt {
|
|
4
|
+
negative: Hex;
|
|
5
|
+
}
|
|
6
|
+
/** Represents a positive bigint value stored as a hex string */
|
|
7
|
+
export interface PositiveBigInt {
|
|
8
|
+
positive: Hex;
|
|
9
|
+
}
|
|
10
|
+
/** A signed bigint value represented as either a negative or positive hex string */
|
|
11
|
+
export type SignedBigInt = NegativeBigInt | PositiveBigInt;
|
|
12
|
+
/** Type guard that checks if a value is a NegativeBigInt */
|
|
13
|
+
export declare const isNegativeBigInt: (value: unknown) => value is NegativeBigInt;
|
|
14
|
+
/** Type guard that checks if a value is a PositiveBigInt */
|
|
15
|
+
export declare const isPositiveBigInt: (value: unknown) => value is PositiveBigInt;
|
|
16
|
+
/** parseSignedBigInt constant. */
|
|
17
|
+
export declare const parseSignedBigInt: (value: SignedBigInt) => bigint;
|
|
18
|
+
/** toSignedBigInt constant. */
|
|
19
|
+
export declare const toSignedBigInt: (value: bigint) => SignedBigInt;
|
|
20
|
+
/** toPositiveBigInt constant. */
|
|
21
|
+
export declare const toPositiveBigInt: (value: unknown) => PositiveBigInt;
|
|
22
|
+
//# sourceMappingURL=SignedBigInt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SignedBigInt.d.ts","sourceRoot":"","sources":["../../src/SignedBigInt.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,GAAG,EAGT,MAAM,aAAa,CAAA;AAGpB,gEAAgE;AAChE,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,GAAG,CAAA;CACd;AAED,gEAAgE;AAChE,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,GAAG,CAAA;CACd;AAED,oFAAoF;AACpF,MAAM,MAAM,YAAY,GAAG,cAAc,GAAG,cAAc,CAAA;AAE1D,4DAA4D;AAC5D,eAAO,MAAM,gBAAgB,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,cAE1D,CAAA;AAED,4DAA4D;AAC5D,eAAO,MAAM,gBAAgB,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,cAE1D,CAAA;AAED,kCAAkC;AAClC,eAAO,MAAM,iBAAiB,GAAI,OAAO,YAAY,KAAG,MAQvD,CAAA;AAED,+BAA+B;AAC/B,eAAO,MAAM,cAAc,GAAI,OAAO,MAAM,KAAG,YAE9C,CAAA;AAED,iCAAiC;AACjC,eAAO,MAAM,gBAAgB,GAAI,OAAO,OAAO,KAAG,cAWjD,CAAA"}
|