@xyo-network/xl1-protocol-sdk 4.0.4 → 4.0.5
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 -1
- package/dist/neutral/index.d.ts.map +1 -1
- package/dist/neutral/index.mjs +31 -57
- 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 +9031 -0
- package/dist/node/index-node.mjs.map +7 -0
- package/dist/node/index.d.ts +31 -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,82 @@
|
|
|
1
|
+
import { type Hash } from '@xylabs/sdk';
|
|
2
|
+
import type { ArchivistInstance } from '@xyo-network/sdk-js';
|
|
3
|
+
import type { MempoolViewer, PendingTransactionsOptions, SignedHydratedBlockWithHashMeta, SignedHydratedTransactionWithHashMeta, WindowedBlockViewer } from '@xyo-network/xl1-protocol-lib';
|
|
4
|
+
import type { ArchivistConnectionBinding } from '../../Archivists/index.ts';
|
|
5
|
+
import type { CreatableProviderParams } from '../../CreatableProvider/index.ts';
|
|
6
|
+
import { AbstractCreatableProvider } from '../../CreatableProvider/index.ts';
|
|
7
|
+
/** Per-bundle handout statistics used to demote transactions that producers keep rejecting. */
|
|
8
|
+
export interface HandoutStats {
|
|
9
|
+
firstHandoutAt: number;
|
|
10
|
+
handouts: number;
|
|
11
|
+
}
|
|
12
|
+
/** Parameters for SimpleMempoolViewer. */
|
|
13
|
+
export interface SimpleMempoolViewerParams extends CreatableProviderParams {
|
|
14
|
+
/** Connection the mempool stores self-provision from when archivists are not injected. */
|
|
15
|
+
connection?: ArchivistConnectionBinding;
|
|
16
|
+
/** Number of handouts before a transaction is considered demoted. Defaults to 3. */
|
|
17
|
+
demotionThreshold?: number;
|
|
18
|
+
/** External mempool viewers (reserved for future use). */
|
|
19
|
+
externalMempools?: MempoolViewer[];
|
|
20
|
+
/** Maximum age (in blocks) of a handout-stats entry before it is garbage collected. Defaults to 1000. */
|
|
21
|
+
handoutStatsTtlBlocks?: number;
|
|
22
|
+
/** Maximum fraction (0–1) of mempool inclusion candidates to return. Defaults to 0.66. */
|
|
23
|
+
mempoolSelectionRatio?: number;
|
|
24
|
+
pendingBlocksArchivist?: ArchivistInstance;
|
|
25
|
+
pendingTransactionsArchivist?: ArchivistInstance;
|
|
26
|
+
}
|
|
27
|
+
/** SimpleMempoolViewer implementation. */
|
|
28
|
+
export declare class SimpleMempoolViewer extends AbstractCreatableProvider<SimpleMempoolViewerParams> implements MempoolViewer {
|
|
29
|
+
static readonly connectionTypes: readonly ["lmdb", "mongo", "memory"];
|
|
30
|
+
static readonly defaultMoniker: "MempoolViewer";
|
|
31
|
+
static readonly dependencies: "WindowedBlockViewer"[];
|
|
32
|
+
static readonly monikers: "MempoolViewer"[];
|
|
33
|
+
static readonly surface: "node";
|
|
34
|
+
moniker: "MempoolViewer";
|
|
35
|
+
private _handoutStats;
|
|
36
|
+
private _windowedBlockViewer?;
|
|
37
|
+
protected get demotionThreshold(): number;
|
|
38
|
+
protected get handoutStatsTtlBlocks(): number;
|
|
39
|
+
protected get pendingBlocksArchivist(): ArchivistInstance;
|
|
40
|
+
protected get pendingTransactionsArchivist(): ArchivistInstance;
|
|
41
|
+
protected get windowedBlockViewer(): WindowedBlockViewer<"WindowedBlockViewer">;
|
|
42
|
+
static paramsHandler(params: Partial<SimpleMempoolViewerParams>): Promise<SimpleMempoolViewerParams>;
|
|
43
|
+
createHandler(): Promise<void>;
|
|
44
|
+
/** Drop handout stats for the given bundle hashes. Called when a bundle has been evicted or otherwise removed from the pool. */
|
|
45
|
+
forget(bundleHashes: Hash[]): void;
|
|
46
|
+
/** Return the subset of the given bundle hashes that are currently considered demoted. */
|
|
47
|
+
getDemotedBundleHashes(bundleHashes: Hash[]): Hash[];
|
|
48
|
+
/**
|
|
49
|
+
* Return the bundle hashes in the order they should be evicted under size pressure.
|
|
50
|
+
* Demoted entries come first, sorted by handouts descending; the remainder is left as-is
|
|
51
|
+
* so the caller can append by FIFO sequence order.
|
|
52
|
+
*/
|
|
53
|
+
getEvictionPriorityOrder(bundleHashes: Hash[]): Hash[];
|
|
54
|
+
getHandoutStats(bundleHash: Hash): HandoutStats | undefined;
|
|
55
|
+
pendingBlocks({ cursor: providedCursor }?: PendingTransactionsOptions): Promise<SignedHydratedBlockWithHashMeta[]>;
|
|
56
|
+
pendingTransactions({ cursor: providedCursor, limit, }?: PendingTransactionsOptions): Promise<SignedHydratedTransactionWithHashMeta[]>;
|
|
57
|
+
protected isDemoted(bundleHash: Hash): boolean;
|
|
58
|
+
private deleteBundledTransaction;
|
|
59
|
+
private filterInclusionCandidates;
|
|
60
|
+
private gcHandoutStats;
|
|
61
|
+
private hydratePendingBundles;
|
|
62
|
+
/**
|
|
63
|
+
* Evaluates a transaction to determine if it should be purged from the mempool.
|
|
64
|
+
* @param tx The transaction to evaluate
|
|
65
|
+
* @param currentBlock The current block to use for evaluation
|
|
66
|
+
* @returns True if the transaction should be purged, false otherwise
|
|
67
|
+
*/
|
|
68
|
+
private isDeletable;
|
|
69
|
+
/**
|
|
70
|
+
* Evaluates a transaction to determine if is valid for inclusion in the next block. A transaction is invalid if:
|
|
71
|
+
* - The transaction is too early/expired
|
|
72
|
+
* - The transaction has already been included in a block
|
|
73
|
+
* @param tx The transaction to evaluate
|
|
74
|
+
* @param currentBlock The current block to use for evaluation
|
|
75
|
+
* @param checkForDeletable Whether to check if the transaction is deletable (default: true)
|
|
76
|
+
* @returns True if the transaction is valid for inclusion in the next block, false otherwise
|
|
77
|
+
*/
|
|
78
|
+
private isInclusionCandidate;
|
|
79
|
+
private recordHandout;
|
|
80
|
+
private selectWithRatio;
|
|
81
|
+
}
|
|
82
|
+
//# sourceMappingURL=SimpleMempoolViewer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SimpleMempoolViewer.d.ts","sourceRoot":"","sources":["../../../../src/simple/mempool/SimpleMempoolViewer.ts"],"names":[],"mappings":"AAAA,OAAO,EACa,KAAK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"index.d.ts","sourceRoot":"","sources":["../../../../src/simple/mempool/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA;AACxC,cAAc,0BAA0B,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Logger } from '@xylabs/sdk';
|
|
2
|
+
import type { GatewayName, NetworkStatus, XyoNetwork } from '@xyo-network/xl1-protocol-lib';
|
|
3
|
+
/** SimpleXyoNetwork implementation. */
|
|
4
|
+
export declare class SimpleXyoNetwork implements XyoNetwork {
|
|
5
|
+
protected readonly _logger?: Logger;
|
|
6
|
+
protected readonly _networkId: GatewayName;
|
|
7
|
+
constructor(networkId: GatewayName, logger?: Logger);
|
|
8
|
+
protected get logger(): Logger | undefined;
|
|
9
|
+
status(): Promise<NetworkStatus>;
|
|
10
|
+
private makeRequest;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=SimpleXyoNetwork.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SimpleXyoNetwork.d.ts","sourceRoot":"","sources":["../../../../src/simple/network/SimpleXyoNetwork.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEzC,OAAO,KAAK,EACV,WAAW,EACX,aAAa,EAAE,UAAU,EAC1B,MAAM,+BAA+B,CAAA;AAOtC,uCAAuC;AACvC,qBAAa,gBAAiB,YAAW,UAAU;IACjD,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACnC,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,WAAW,CAAA;gBAE9B,SAAS,EAAE,WAAW,EAAE,MAAM,CAAC,EAAE,MAAM;IAKnD,SAAS,KAAK,MAAM,uBAEnB;IAEK,MAAM,IAAI,OAAO,CAAC,aAAa,CAAC;YASxB,WAAW;CAiB1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/simple/network/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { NetworkStatus } from '@xyo-network/xl1-protocol-lib';
|
|
2
|
+
/** unknownStatus constant. */
|
|
3
|
+
export declare const unknownStatus: NetworkStatus;
|
|
4
|
+
/** errorStatus constant. */
|
|
5
|
+
export declare const errorStatus: NetworkStatus;
|
|
6
|
+
//# sourceMappingURL=FailedNetworkStatusPayloads.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FailedNetworkStatusPayloads.d.ts","sourceRoot":"","sources":["../../../../../src/simple/network/lib/FailedNetworkStatusPayloads.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAGlE,8BAA8B;AAC9B,eAAO,MAAM,aAAa,EAAE,aAI3B,CAAA;AAED,4BAA4B;AAC5B,eAAO,MAAM,WAAW,EAAE,aAIzB,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { GatewayName } from '@xyo-network/xl1-protocol-lib';
|
|
2
|
+
/** StatusNetwork type. */
|
|
3
|
+
export interface StatusNetwork {
|
|
4
|
+
id: GatewayName;
|
|
5
|
+
statusUrl: string;
|
|
6
|
+
}
|
|
7
|
+
/** MainNetworkStats constant. */
|
|
8
|
+
export declare const MainNetworkStats: StatusNetwork;
|
|
9
|
+
/** SequenceNetworkStats constant. */
|
|
10
|
+
export declare const SequenceNetworkStats: StatusNetwork;
|
|
11
|
+
/** LocalNetworkStats constant. */
|
|
12
|
+
export declare const LocalNetworkStats: StatusNetwork;
|
|
13
|
+
/** StatusNetworks constant. */
|
|
14
|
+
export declare const StatusNetworks: Record<GatewayName, StatusNetwork>;
|
|
15
|
+
//# sourceMappingURL=StatusNetworks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatusNetworks.d.ts","sourceRoot":"","sources":["../../../../../src/simple/network/lib/StatusNetworks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAEhE,0BAA0B;AAC1B,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,WAAW,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,iCAAiC;AACjC,eAAO,MAAM,gBAAgB,EAAE,aAG9B,CAAA;AAED,qCAAqC;AACrC,eAAO,MAAM,oBAAoB,EAAE,aAGlC,CAAA;AAED,kCAAkC;AAClC,eAAO,MAAM,iBAAiB,EAAE,aAG/B,CAAA;AAED,+BAA+B;AAC/B,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,WAAW,EAAE,aAAa,CAI7D,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/simple/network/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAA;AAChD,cAAc,qBAAqB,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { InvokerPermission, PermissionRequest, RequestedPermission, XyoPermissions } from '@xyo-network/xl1-protocol-lib';
|
|
2
|
+
import type { Invoker, PermissionsStore } from './store/index.ts';
|
|
3
|
+
/**
|
|
4
|
+
* In-memory implementation of XyoPermissions for testing or ephemeral use cases.
|
|
5
|
+
* Does not persist data beyond the lifetime of the instance.
|
|
6
|
+
* Assumes all permission requests are granted and revocations always succeed.
|
|
7
|
+
*/
|
|
8
|
+
export declare class SimpleXyoPermissions implements XyoPermissions {
|
|
9
|
+
invoker: Invoker;
|
|
10
|
+
private _store;
|
|
11
|
+
constructor(store: PermissionsStore);
|
|
12
|
+
get store(): PermissionsStore;
|
|
13
|
+
getPermissions(): Promise<InvokerPermission[]>;
|
|
14
|
+
requestPermissions(permissions: PermissionRequest[]): Promise<RequestedPermission[]>;
|
|
15
|
+
revokePermissions(permissions: PermissionRequest): Promise<RequestedPermission[]>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=SimpleXyoPermissions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SimpleXyoPermissions.d.ts","sourceRoot":"","sources":["../../../../src/simple/permissions/SimpleXyoPermissions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,iBAAiB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,cAAc,EAC1E,MAAM,+BAA+B,CAAA;AAEtC,OAAO,KAAK,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAEjE;;;;GAIG;AACH,qBAAa,oBAAqB,YAAW,cAAc;IACzD,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,MAAM,CAAkB;gBAEpB,KAAK,EAAE,gBAAgB;IAKnC,IAAI,KAAK,IAAI,gBAAgB,CAE5B;IAEK,cAAc,IAAI,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAK9C,kBAAkB,CAAC,WAAW,EAAE,iBAAiB,EAAE,GAAG,OAAO,CAAC,mBAAmB,EAAE,CAAC;IAmCpF,iBAAiB,CAAC,WAAW,EAAE,iBAAiB,GAAG,OAAO,CAAC,mBAAmB,EAAE,CAAC;CAexF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/simple/permissions/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { InvokerPermission } from '@xyo-network/xl1-protocol-lib';
|
|
2
|
+
import type { Invoker, PermissionsStore } from './PermissionsStore.ts';
|
|
3
|
+
/**
|
|
4
|
+
* In-memory implementation of XyoPermissions for testing or ephemeral use cases.
|
|
5
|
+
* Does not persist data beyond the lifetime of the instance.
|
|
6
|
+
* Assumes all permission requests are granted and revocations always succeed.
|
|
7
|
+
*/
|
|
8
|
+
export declare class MemoryPermissionsStore implements PermissionsStore {
|
|
9
|
+
private _invoker;
|
|
10
|
+
private permissions;
|
|
11
|
+
constructor(invoker: Invoker);
|
|
12
|
+
get invoker(): Invoker;
|
|
13
|
+
getPermissions(): Promise<InvokerPermission[]>;
|
|
14
|
+
setPermissions(permissions: InvokerPermission[]): Promise<void>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=MemoryPermissions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MemoryPermissions.d.ts","sourceRoot":"","sources":["../../../../../src/simple/permissions/store/MemoryPermissions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAA;AAEtE,OAAO,KAAK,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAEtE;;;;GAIG;AACH,qBAAa,sBAAuB,YAAW,gBAAgB;IAC7D,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,WAAW,CAA0B;gBAEjC,OAAO,EAAE,OAAO;IAI5B,IAAI,OAAO,IAAI,OAAO,CAErB;IAEK,cAAc,IAAI,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAK9C,cAAc,CAAC,WAAW,EAAE,iBAAiB,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAItE"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { InvokerPermission, PermissionsGetHandler } from '@xyo-network/xl1-protocol-lib';
|
|
2
|
+
/** Invoker type. */
|
|
3
|
+
export type Invoker = string;
|
|
4
|
+
/** ParentCapability type. */
|
|
5
|
+
export type ParentCapability = string;
|
|
6
|
+
/**
|
|
7
|
+
* Interface for a permissions store that abstracts away the storage medium.
|
|
8
|
+
* (i.e. in-memory, browser storage, database, etc.)
|
|
9
|
+
*/
|
|
10
|
+
export interface PermissionsStore extends PermissionsGetHandler {
|
|
11
|
+
readonly invoker: Invoker;
|
|
12
|
+
setPermissions(permissions: InvokerPermission[]): Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=PermissionsStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PermissionsStore.d.ts","sourceRoot":"","sources":["../../../../../src/simple/permissions/store/PermissionsStore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAA;AAE7F,oBAAoB;AACpB,MAAM,MAAM,OAAO,GAAG,MAAM,CAAA;AAC5B,6BAA6B;AAC7B,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAA;AACrC;;;GAGG;AACH,MAAM,WAAW,gBAAiB,SAAQ,qBAAqB;IAE7D,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IAGzB,cAAc,CAAC,WAAW,EAAE,iBAAiB,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAChE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/simple/permissions/store/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,uBAAuB,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type Hash } from '@xylabs/sdk';
|
|
2
|
+
import type { MempoolRunner, SignedHydratedTransactionWithStorageMeta, XyoRunner } from '@xyo-network/xl1-protocol-lib';
|
|
3
|
+
import type { CreatableProviderParams } from '../../CreatableProvider/index.ts';
|
|
4
|
+
import { AbstractCreatableProvider } from '../../CreatableProvider/index.ts';
|
|
5
|
+
/** Parameters for SimpleXyoRunner. */
|
|
6
|
+
export interface SimpleXyoRunnerParams extends CreatableProviderParams {
|
|
7
|
+
}
|
|
8
|
+
/** SimpleXyoRunner implementation. */
|
|
9
|
+
export declare class SimpleXyoRunner extends AbstractCreatableProvider<SimpleXyoRunnerParams> implements XyoRunner {
|
|
10
|
+
static readonly connectionTypes: readonly ["lmdb", "mongo", "memory"];
|
|
11
|
+
static readonly defaultMoniker: "XyoRunner";
|
|
12
|
+
static readonly dependencies: "MempoolRunner"[];
|
|
13
|
+
static readonly monikers: "XyoRunner"[];
|
|
14
|
+
static readonly surface: "node";
|
|
15
|
+
moniker: "XyoRunner";
|
|
16
|
+
private _mempoolRunner?;
|
|
17
|
+
get mempool(): MempoolRunner;
|
|
18
|
+
broadcastTransaction(transaction: SignedHydratedTransactionWithStorageMeta): Promise<Hash>;
|
|
19
|
+
createHandler(): Promise<void>;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=SimpleXyoRunner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SimpleXyoRunner.d.ts","sourceRoot":"","sources":["../../../../src/simple/runner/SimpleXyoRunner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,KAAK,EACV,aAAa,EAAE,wCAAwC,EACvD,SAAS,EACV,MAAM,+BAA+B,CAAA;AAGtC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAA;AAC/E,OAAO,EAAE,yBAAyB,EAAqB,MAAM,kCAAkC,CAAA;AAE/F,sCAAsC;AACtC,MAAM,WAAW,qBAAsB,SAAQ,uBAAuB;CACrE;AAED,sCAAsC;AACtC,qBACa,eAAgB,SAAQ,yBAAyB,CAAC,qBAAqB,CAAE,YAAW,SAAS;IACxG,MAAM,CAAC,QAAQ,CAAC,eAAe,uCAAuC;IACtE,MAAM,CAAC,QAAQ,CAAC,cAAc,cAAmB;IACjD,MAAM,CAAC,QAAQ,CAAC,YAAY,oBAAyB;IACrD,MAAM,CAAC,QAAQ,CAAC,QAAQ,gBAAqB;IAC7C,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAG,MAAM,CAAS;IACzC,OAAO,cAAiC;IAExC,OAAO,CAAC,cAAc,CAAC,CAAe;IAEtC,IAAI,OAAO,kBAEV;IAEK,oBAAoB,CAAC,WAAW,EAAE,wCAAwC,GAAG,OAAO,CAAC,IAAI,CAAC;IAOjF,aAAa;CAI7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/simple/runner/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type Promisable } from '@xylabs/sdk';
|
|
2
|
+
import type { AccountInstance, Payload, Signed, SignedHydratedBoundWitnessWithHashMeta, UnsignedBoundWitness, XyoAddress } from '@xyo-network/sdk-js';
|
|
3
|
+
import type { SignedHydratedTransactionWithHashMeta, UnsignedHydratedTransaction, XyoSigner } from '@xyo-network/xl1-protocol-lib';
|
|
4
|
+
import type { CreatableProviderParams } from '../../CreatableProvider/index.ts';
|
|
5
|
+
import { AbstractCreatableProvider } from '../../CreatableProvider/index.ts';
|
|
6
|
+
/** Parameters for SimpleXyoSigner. */
|
|
7
|
+
export interface SimpleXyoSignerParams extends CreatableProviderParams {
|
|
8
|
+
account: AccountInstance;
|
|
9
|
+
}
|
|
10
|
+
/** SimpleXyoSigner implementation. */
|
|
11
|
+
export declare class SimpleXyoSigner extends AbstractCreatableProvider<SimpleXyoSignerParams> implements XyoSigner {
|
|
12
|
+
static readonly connectionTypes: readonly ["wallet"];
|
|
13
|
+
static readonly defaultMoniker: "XyoSigner";
|
|
14
|
+
static readonly dependencies: never[];
|
|
15
|
+
static readonly monikers: "XyoSigner"[];
|
|
16
|
+
static readonly surface: "node";
|
|
17
|
+
moniker: "XyoSigner";
|
|
18
|
+
static paramsHandler(params?: Partial<SimpleXyoSignerParams>): Promise<{
|
|
19
|
+
account: AccountInstance;
|
|
20
|
+
context: import("../../index.ts").CreatableProviderContextType;
|
|
21
|
+
name?: import("@xylabs/sdk").CreatableName;
|
|
22
|
+
statusReporter?: import("@xylabs/sdk").CreatableStatusReporter<void> | undefined;
|
|
23
|
+
logger?: import("@xylabs/sdk").Logger;
|
|
24
|
+
meterProvider?: import("@opentelemetry/api").MeterProvider;
|
|
25
|
+
traceProvider?: import("@opentelemetry/api").TracerProvider;
|
|
26
|
+
}>;
|
|
27
|
+
address(): Promisable<XyoAddress>;
|
|
28
|
+
sign<T extends UnsignedBoundWitness>(bw: [T, Payload[]]): Promise<SignedHydratedBoundWitnessWithHashMeta<Signed<T>>>;
|
|
29
|
+
signTransaction(tx: UnsignedHydratedTransaction): Promise<SignedHydratedTransactionWithHashMeta>;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=SimpleXyoSigner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SimpleXyoSigner.d.ts","sourceRoot":"","sources":["../../../../src/simple/signer/SimpleXyoSigner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,UAAU,EAAE,MAAM,aAAa,CAAA;AACvD,OAAO,KAAK,EACV,eAAe,EAAE,OAAO,EAAE,MAAM,EAAE,sCAAsC,EAAE,oBAAoB,EAAE,UAAU,EAC3G,MAAM,qBAAqB,CAAA;AAE5B,OAAO,KAAK,EACV,qCAAqC,EAAE,2BAA2B,EAAE,SAAS,EAC9E,MAAM,+BAA+B,CAAA;AAGtC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAA;AAC/E,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAA;AAG5E,sCAAsC;AACtC,MAAM,WAAW,qBAAsB,SAAQ,uBAAuB;IACpE,OAAO,EAAE,eAAe,CAAA;CACzB;AAED,sCAAsC;AACtC,qBAAa,eAAgB,SAAQ,yBAAyB,CAAC,qBAAqB,CAAE,YAAW,SAAS;IACxG,MAAM,CAAC,QAAQ,CAAC,eAAe,sBAAsB;IACrD,MAAM,CAAC,QAAQ,CAAC,cAAc,cAAmB;IACjD,MAAM,CAAC,QAAQ,CAAC,YAAY,UAAK;IACjC,MAAM,CAAC,QAAQ,CAAC,QAAQ,gBAAqB;IAC7C,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAG,MAAM,CAAS;IACzC,OAAO,cAAiC;WAElB,aAAa,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC;;;;;;;;;IAe3E,OAAO,IAAI,UAAU,CAAC,UAAU,CAAC;IAI3B,IAAI,CAAC,CAAC,SAAS,oBAAoB,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC,sCAAsC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;IAQpH,eAAe,CAAC,EAAE,EAAE,2BAA2B,GAAG,OAAO,CAAC,qCAAqC,CAAC;CAIvG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/simple/signer/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FetchJsonClient } from '@xylabs/sdk';
|
|
2
|
+
import type { SignedHydratedBlockWithHashMeta, SyncStepSummaryMetadata, SyncStepSummaryStatus, SyncViewer, XL1BlockNumber } from '@xyo-network/xl1-protocol-lib';
|
|
3
|
+
import { AbstractCreatableProvider, type CreatableProviderParams } from '../../CreatableProvider/index.ts';
|
|
4
|
+
/** Parameters for RestSyncViewer. */
|
|
5
|
+
export interface RestSyncViewerParams extends CreatableProviderParams {
|
|
6
|
+
endpoint: string;
|
|
7
|
+
}
|
|
8
|
+
/** RestSyncViewer implementation for the SyncActor REST endpoint. */
|
|
9
|
+
export declare class RestSyncViewer<TParams extends RestSyncViewerParams = RestSyncViewerParams> extends AbstractCreatableProvider<TParams> implements SyncViewer {
|
|
10
|
+
static readonly defaultMoniker: "SyncViewer";
|
|
11
|
+
static readonly dependencies: never[];
|
|
12
|
+
static readonly monikers: "SyncViewer"[];
|
|
13
|
+
moniker: "SyncViewer";
|
|
14
|
+
protected get client(): FetchJsonClient;
|
|
15
|
+
protected get endpoint(): string;
|
|
16
|
+
stepSummary(step: number, block: XL1BlockNumber): Promise<SignedHydratedBlockWithHashMeta[] | null>;
|
|
17
|
+
stepSummaryMetadata(step: number, block: XL1BlockNumber): Promise<SyncStepSummaryMetadata | null>;
|
|
18
|
+
stepSummaryStatus(): Promise<SyncStepSummaryStatus>;
|
|
19
|
+
private isNotFound;
|
|
20
|
+
private url;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=RestSyncViewer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RestSyncViewer.d.ts","sourceRoot":"","sources":["../../../../src/simple/sync/RestSyncViewer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,eAAe,EAAE,MAAM,aAAa,CAAA;AAC/D,OAAO,KAAK,EACV,+BAA+B,EAC/B,uBAAuB,EACvB,qBAAqB,EACrB,UAAU,EACV,cAAc,EACf,MAAM,+BAA+B,CAAA;AAQtC,OAAO,EACL,yBAAyB,EAAqB,KAAK,uBAAuB,EAC3E,MAAM,kCAAkC,CAAA;AAEzC,qCAAqC;AACrC,MAAM,WAAW,oBAAqB,SAAQ,uBAAuB;IACnE,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,qEAAqE;AACrE,qBACa,cAAc,CAAC,OAAO,SAAS,oBAAoB,GAAG,oBAAoB,CACrF,SAAQ,yBAAyB,CAAC,OAAO,CAAE,YAAW,UAAU;IAChE,MAAM,CAAC,QAAQ,CAAC,cAAc,eAAoB;IAClD,MAAM,CAAC,QAAQ,CAAC,YAAY,UAAK;IACjC,MAAM,CAAC,QAAQ,CAAC,QAAQ,iBAAsB;IAC9C,OAAO,eAAgC;IAEvC,SAAS,KAAK,MAAM,oBAEnB;IAED,SAAS,KAAK,QAAQ,WAErB;IAEK,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,GAAG,OAAO,CAAC,+BAA+B,EAAE,GAAG,IAAI,CAAC;IAUnG,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,GAAG,OAAO,CAAC,uBAAuB,GAAG,IAAI,CAAC;IAUjG,iBAAiB,IAAI,OAAO,CAAC,qBAAqB,CAAC;IAKzD,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,GAAG;CAGZ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/simple/sync/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { CreatableName, CreatableStatus } from '@xylabs/sdk';
|
|
2
|
+
import type { SystemStatusSnapshot, SystemStatusViewer } from '@xyo-network/xl1-protocol-lib';
|
|
3
|
+
import type { CreatableProviderParams } from '../../CreatableProvider/index.ts';
|
|
4
|
+
import { AbstractCreatableProvider } from '../../CreatableProvider/index.ts';
|
|
5
|
+
/** Parameters for SimpleSystemStatusViewer. */
|
|
6
|
+
export interface SimpleSystemStatusViewerParams extends CreatableProviderParams {
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Read-only view over the process-wide `SystemStatusRunner`. The Runner is the
|
|
10
|
+
* `context.statusReporter` singleton (created before the locator), so the
|
|
11
|
+
* viewer reads it from the context rather than locating it by moniker.
|
|
12
|
+
*/
|
|
13
|
+
export declare class SimpleSystemStatusViewer extends AbstractCreatableProvider<SimpleSystemStatusViewerParams> implements SystemStatusViewer {
|
|
14
|
+
static readonly connectionTypes: readonly ["memory"];
|
|
15
|
+
static readonly defaultMoniker: "SystemStatusViewer";
|
|
16
|
+
static readonly dependencies: never[];
|
|
17
|
+
static readonly monikers: "SystemStatusViewer"[];
|
|
18
|
+
static readonly surface: "node";
|
|
19
|
+
moniker: "SystemStatusViewer";
|
|
20
|
+
private get runner();
|
|
21
|
+
getGlobalStatus(): CreatableStatus;
|
|
22
|
+
getStatus(name: CreatableName): CreatableStatus | undefined;
|
|
23
|
+
isReady(): boolean;
|
|
24
|
+
isShuttingDown(): boolean;
|
|
25
|
+
snapshot(): SystemStatusSnapshot;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=SimpleSystemStatusViewer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SimpleSystemStatusViewer.d.ts","sourceRoot":"","sources":["../../../../src/simple/systemStatus/SimpleSystemStatusViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAEjE,OAAO,KAAK,EACU,oBAAoB,EAAE,kBAAkB,EAC7D,MAAM,+BAA+B,CAAA;AAGtC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAA;AAC/E,OAAO,EAAE,yBAAyB,EAAqB,MAAM,kCAAkC,CAAA;AAE/F,+CAA+C;AAC/C,MAAM,WAAW,8BAA+B,SAAQ,uBAAuB;CAAG;AAElF;;;;GAIG;AACH,qBACa,wBAAyB,SAAQ,yBAAyB,CAAC,8BAA8B,CAAE,YAAW,kBAAkB;IACnI,MAAM,CAAC,QAAQ,CAAC,eAAe,sBAAsB;IACrD,MAAM,CAAC,QAAQ,CAAC,cAAc,uBAA4B;IAC1D,MAAM,CAAC,QAAQ,CAAC,YAAY,UAAK;IACjC,MAAM,CAAC,QAAQ,CAAC,QAAQ,yBAA8B;IACtD,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAG,MAAM,CAAS;IACzC,OAAO,uBAA0C;IAEjD,OAAO,KAAK,MAAM,GAEjB;IAED,eAAe,IAAI,eAAe;IAIlC,SAAS,CAAC,IAAI,EAAE,aAAa,GAAG,eAAe,GAAG,SAAS;IAI3D,OAAO,IAAI,OAAO;IAIlB,cAAc,IAAI,OAAO;IAIzB,QAAQ,IAAI,oBAAoB;CAGjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/simple/systemStatus/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { Hash } from '@xylabs/sdk';
|
|
2
|
+
import type { BlockViewer, TimeDomain, TimePayload, TimeSyncViewer } from '@xyo-network/xl1-protocol-lib';
|
|
3
|
+
import type { Provider } from 'ethers';
|
|
4
|
+
import type { CreatableProviderParams } from '../../CreatableProvider/index.ts';
|
|
5
|
+
import { AbstractCreatableProvider } from '../../CreatableProvider/index.ts';
|
|
6
|
+
/** Parameters for SimpleTimeSyncViewer. */
|
|
7
|
+
export interface SimpleTimeSyncViewerParams extends CreatableProviderParams {
|
|
8
|
+
ethProvider?: Provider;
|
|
9
|
+
}
|
|
10
|
+
/** SimpleTimeSyncViewer implementation. */
|
|
11
|
+
export declare class SimpleTimeSyncViewer extends AbstractCreatableProvider<SimpleTimeSyncViewerParams> implements TimeSyncViewer {
|
|
12
|
+
static readonly connectionTypes: readonly ["lmdb", "mongo", "memory"];
|
|
13
|
+
static readonly defaultMoniker: "TimeSyncViewer";
|
|
14
|
+
static readonly dependencies: "BlockViewer"[];
|
|
15
|
+
static readonly monikers: "TimeSyncViewer"[];
|
|
16
|
+
static readonly surface: "node";
|
|
17
|
+
moniker: "TimeSyncViewer";
|
|
18
|
+
private _blockViewer?;
|
|
19
|
+
protected get blockViewer(): BlockViewer<"BlockViewer">;
|
|
20
|
+
protected get ethProvider(): Provider | undefined;
|
|
21
|
+
convertTime(fromDomain: TimeDomain, toDomain: TimeDomain, from: number): Promise<number>;
|
|
22
|
+
createHandler(): Promise<void>;
|
|
23
|
+
currentTime(domain: TimeDomain): Promise<[TimeDomain, number]>;
|
|
24
|
+
currentTimeAndHash(domain: TimeDomain): Promise<[number, Hash | null]>;
|
|
25
|
+
currentTimePayload(): Promise<TimePayload>;
|
|
26
|
+
}
|
|
27
|
+
//# sour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,EAAE,MAAM,CAAC,CAAC;IAkB9D,kBAAkB,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAAC,CAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC,CAAC;IAsBtE,kBAAkB,IAAI,OAAO,CAAC,WAAW,CAAC;CAkBjD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/simple/timeSync2/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { BlockInvalidationConfig, BlockInvalidationViewer, BlockViewer, ChainContractViewer, ChainQualified, HydratedBlockStateValidationFunction, HydratedBlockValidationError, HydratedBlockValidationFunction, SignedHydratedBlock, SignedHydratedBlockWithHashMeta } from '@xyo-network/xl1-protocol-lib';
|
|
2
|
+
import type { CreatableProviderParams } from '../../CreatableProvider/index.ts';
|
|
3
|
+
import { AbstractCreatableProvider } from '../../CreatableProvider/index.ts';
|
|
4
|
+
/** Parameters for SimpleBlockInvalidationViewer. */
|
|
5
|
+
export interface SimpleBlockInvalidationViewerParams extends CreatableProviderParams {
|
|
6
|
+
maxUncleWindowSize?: number;
|
|
7
|
+
state?: HydratedBlockStateValidationFunction;
|
|
8
|
+
value?: HydratedBlockValidationFunction;
|
|
9
|
+
}
|
|
10
|
+
/** SimpleBlockInvalidationViewer implementation. */
|
|
11
|
+
export declare class SimpleBlockInvalidationViewer extends AbstractCreatableProvider<SimpleBlockInvalidationViewerParams> implements BlockInvalidationViewer {
|
|
12
|
+
static readonly defaultMoniker: "BlockInvalidationViewer";
|
|
13
|
+
static readonly dependencies: ("BlockViewer" | "AccountBalanceViewer" | "ChainContractViewer")[];
|
|
14
|
+
static readonly monikers: "BlockInvalidationViewer"[];
|
|
15
|
+
moniker: "BlockInvalidationViewer";
|
|
16
|
+
private _accountBalanceViewer;
|
|
17
|
+
private _blockViewer;
|
|
18
|
+
private _chainContractViewer;
|
|
19
|
+
private _uncleWindowedChainCache;
|
|
20
|
+
protected get blockViewer(): BlockViewer<"BlockViewer">;
|
|
21
|
+
protected get chainContractViewer(): ChainContractViewer;
|
|
22
|
+
protected get maxUncleWindowSize(): number;
|
|
23
|
+
static paramsHandler(params: Partial<SimpleBlockInvalidationViewerParams>): Promise<SimpleBlockInvalidationViewerParams>;
|
|
24
|
+
createHandler(): Promise<void>;
|
|
25
|
+
invalidateBlock(block: SignedHydratedBlock, config?: BlockInvalidationConfig): Promise<HydratedBlockValidationError[] | SignedHydratedBlockWithHashMeta>;
|
|
26
|
+
invalidateBlocks(blocks: SignedHydratedBlock[], config?: BlockInvalidationConfig): Promise<(HydratedBlockValidationError[] | SignedHydratedBlockWithHashMeta)[]>;
|
|
27
|
+
invalidateUncle(blocks: SignedHydratedBlock[], config?: BlockInvalidationConfig): Promise<(HydratedBlockValidationError[] | SignedHydratedBlockWithHashMeta)[]>;
|
|
28
|
+
qualifiedInvalidateBlock(block: SignedHydratedBlockWithHashMeta, config?: BlockInvalidationConfig): Promise<ChainQualified<HydratedBlockValidationError[] | SignedHydratedBlockWithHashMeta>>;
|
|
29
|
+
qualifiedInvalidateBlocks(blocks: SignedHydratedBlock[], config?: BlockInvalidationConfig): Promise<ChainQualified<(HydratedBlockValidationError[] | SignedHydratedBlockWithHashMeta)[]>>;
|
|
30
|
+
qualifiedInvalidateUncle(_blocks: SignedHydratedBlock[], _config?: BlockInvalidationConfig): Promise<ChainQualified<(HydratedBlockValidationError[] | SignedHydratedBlockWithHashMeta)[]>>;
|
|
31
|
+
private doInvalidateProtocol;
|
|
32
|
+
private doInvalidateState;
|
|
33
|
+
private updateWindowedChainCache;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=SimpleTransactionInvalidationViewer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SimpleTransactionInvalidationViewer.d.ts","sourceRoot":"","sources":["../../../../src/simple/transactionInvalidation/SimpleT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BAAgB,CACpB,MAAM,EAAE,mBAAmB,EAAE,EAC7B,MAAM,CAAC,EAAE,uBAAuB,GAC/B,OAAO,CAAC,CAAC,4BAA4B,EAAE,GAAG,+BAA+B,CAAC,EAAE,CAAC;IAK1E,eAAe,CACnB,MAAM,EAAE,mBAAmB,EAAE,EAC7B,MAAM,CAAC,EAAE,uBAAuB,GAC/B,OAAO,CAAC,CAAC,4BAA4B,EAAE,GAAG,+BAA+B,CAAC,EAAE,CAAC;IAK1E,wBAAwB,CAC5B,KAAK,EAAE,+BAA+B,EACtC,MAAM,CAAC,EAAE,uBAAuB,GAC/B,OAAO,CAAC,cAAc,CAAC,4BAA4B,EAAE,GAAG,+BAA+B,CAAC,CAAC;IAKtF,yBAAyB,CAC7B,MAAM,EAAE,mBAAmB,EAAE,EAC7B,MAAM,CAAC,EAAE,uBAAuB,GAC/B,OAAO,CAAC,cAAc,CAAC,CAAC,4BAA4B,EAAE,GAAG,+BAA+B,CAAC,EAAE,CAAC,CAAC;IA2ChG,wBAAwB,CACtB,OAAO,EAAE,mBAAmB,EAAE,EAC9B,OAAO,CAAC,EAAE,uBAAuB,GAChC,OAAO,CAAC,cAAc,CAAC,CAAC,4BAA4B,EAAE,GAAG,+BAA+B,CAAC,EAAE,CAAC,CAAC;YAIlF,oBAAoB;YAcpB,iBAAiB;YAyBjB,wBAAwB;CAIvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/simple/transactionInvalidation/index.ts"],"names":[],"mappings":"AAAA,cAAc,0CAA0C,CAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { BlockViewer, ChainContractViewer, ChainQualified, HydratedTransactionStateValidationFunction, HydratedTransactionValidationError, HydratedTransactionValidationFunction, SignedHydratedTransaction, SignedHydratedTransactionWithHashMeta, TransactionValidationConfig, TransactionValidationViewer } from '@xyo-network/xl1-protocol-lib';
|
|
2
|
+
import type { CreatableProviderParams } from '../../CreatableProvider/index.ts';
|
|
3
|
+
import { AbstractCreatableProvider } from '../../CreatableProvider/index.ts';
|
|
4
|
+
/** Parameters for SimpleTransactionValidationViewer. */
|
|
5
|
+
export interface SimpleTransactionValidationViewerParams extends CreatableProviderParams {
|
|
6
|
+
maxUncleWindowSize?: number;
|
|
7
|
+
protocol?: HydratedTransactionValidationFunction;
|
|
8
|
+
state?: HydratedTransactionStateValidationFunction;
|
|
9
|
+
}
|
|
10
|
+
/** SimpleTransactionValidationViewer implementation. */
|
|
11
|
+
export declare class SimpleTransactionValidationViewer extends AbstractCreatableProvider<SimpleTransactionValidationViewerParams> implements TransactionValidationViewer {
|
|
12
|
+
static readonly connectionTypes: readonly ["lmdb", "mongo", "memory", "rpc"];
|
|
13
|
+
static readonly defaultMoniker: "TransactionValidationViewer";
|
|
14
|
+
static readonly dependencies: ("BlockViewer" | "AccountBalanceViewer" | "ChainContractViewer")[];
|
|
15
|
+
static readonly monikers: "TransactionValidationViewer"[];
|
|
16
|
+
static readonly surface: "node";
|
|
17
|
+
moniker: "TransactionValidationViewer";
|
|
18
|
+
private _accountBalanceViewer;
|
|
19
|
+
private _blockViewer;
|
|
20
|
+
private _chainContractViewer;
|
|
21
|
+
protected get blockViewer(): BlockViewer<"BlockViewer">;
|
|
22
|
+
protected get chainContractViewer(): ChainContractViewer;
|
|
23
|
+
protected get maxUncleWindowSize(): number;
|
|
24
|
+
static paramsHandler(params: Partial<SimpleTransactionValidationViewerParams>): Promise<SimpleTransactionValidationViewerParams>;
|
|
25
|
+
createHandler(): Promise<void>;
|
|
26
|
+
qualifiedValidateTransaction(block: SignedHydratedTransactionWithHashMeta, config?: TransactionValidationConfig): Promise<ChainQualified<HydratedTransactionValidationError[] | SignedHydratedTransactionWithHashMeta>>;
|
|
27
|
+
qualifiedValidateTransactions(transactions: SignedHydratedTransaction[], config?: TransactionValidationConfig): Promise<ChainQualified<(HydratedTransactionValidationError[] | SignedHydratedTransactionWithHashMeta)[]>>;
|
|
28
|
+
qualifiedValidateUncle(_transactions: SignedHydratedTransaction[], _config?: TransactionValidationConfig): Promise<ChainQualified<(HydratedTransactionValidationError[] | SignedHydratedTransactionWithHashMeta)[]>>;
|
|
29
|
+
validateTransaction(block: SignedHydratedTransaction, config?: TransactionValidationConfig): Promise<HydratedTransactionValidationError[] | SignedHydratedTransactionWithHashMeta>;
|
|
30
|
+
validateTransactions(transactions: SignedHydratedTransaction[], config?: TransactionValidationConfig): Promise<(HydratedTransactionValidationError[] | SignedHydratedTransactionWithHashMeta)[]>;
|
|
31
|
+
private doValidateProtocol;
|
|
32
|
+
private doValidateState;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=SimpleTransactionValidationViewer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SimpleTransactionValidationViewer.d.ts","sourceRoot":"","sources":["../../../../src/simple/transactionValidation/SimpleTransactionValidationViewer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAEV,WAAW,EACX,mBAAmB,EAEnB,cAAc,EACd,0CAA0C,EAC1C,kCAAkC,EAClC,qCAAqC,EACrC,yBAAyB,EACzB,qCAAqC,EACrC,2BAA2B,EAC3B,2BAA2B,EAC5B,MAAM,+BAA+B,CAAA;AAWtC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAA;AAC/E,OAAO,EAAE,yBAAyB,EAAqB,MAAM,kCAAkC,CAAA;AAE/F,wDAAwD;AACxD,MAAM,WAAW,uCAAwC,SAAQ,uBAAuB;IACtF,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,EAAE,qCAAqC,CAAA;IAChD,KAAK,CAAC,EAAE,0CAA0C,CAAA;CACnD;AAED,wDAAwD;AACxD,qBACa,iCAAkC,SAC7C,yBAAyB,CAAC,uCAAuC,CAAE,YAAW,2BAA2B;IACzG,MAAM,CAAC,QAAQ,CAAC,eAAe,8CAA8C;IAC7E,MAAM,CAAC,QAAQ,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