@xyo-network/xl1-protocol-sdk 4.0.3 → 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/capabilities/locatorFromConfig.d.ts +3 -3
- package/dist/neutral/capabilities/locatorFromConfig.d.ts.map +1 -1
- package/dist/neutral/config/LocatorConfigFields.d.ts +6 -0
- package/dist/neutral/config/LocatorConfigFields.d.ts.map +1 -1
- 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 +44 -57
- package/dist/neutral/index.mjs.map +4 -4
- package/dist/neutral/test/index.mjs +1 -0
- package/dist/neutral/test/index.mjs.map +2 -2
- 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 -356
- package/dist/neutral/getFileConfig.mjs.map +0 -7
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Position, StakeEvent, StakeEventFilter, StakeEventName, StakeEventsViewer } from '@xyo-network/xl1-protocol-lib';
|
|
2
|
+
import type { CreatableProviderParams } from '../../CreatableProvider/index.ts';
|
|
3
|
+
import { AbstractCreatableProvider } from '../../CreatableProvider/index.ts';
|
|
4
|
+
/** Parameters for SimpleStakeEvents. */
|
|
5
|
+
export interface SimpleStakeEventsParams extends CreatableProviderParams {
|
|
6
|
+
positions: Position[];
|
|
7
|
+
}
|
|
8
|
+
/** SimpleStakeEventsViewer implementation. */
|
|
9
|
+
export declare class SimpleStakeEventsViewer extends AbstractCreatableProvider<SimpleStakeEventsParams> implements StakeEventsViewer {
|
|
10
|
+
static readonly connectionTypes: readonly [];
|
|
11
|
+
static readonly defaultMoniker: "StakeEventsViewer";
|
|
12
|
+
static readonly dependencies: never[];
|
|
13
|
+
static readonly monikers: "StakeEventsViewer"[];
|
|
14
|
+
static readonly surface: "node";
|
|
15
|
+
moniker: "StakeEventsViewer";
|
|
16
|
+
protected get positions(): Position[];
|
|
17
|
+
positionCount(range: [number, number | 'latest']): number;
|
|
18
|
+
stakeEvents<TName extends StakeEventName>(range: [number, number | 'latest'], { name }?: StakeEventFilter<TName>): StakeEvent<TName>[];
|
|
19
|
+
protected startHandler(): Promise<void>;
|
|
20
|
+
private eventsFromPositions;
|
|
21
|
+
private positionsFromRange;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=SimpleStakeEventsViewer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SimpleStakeEventsViewer.d.ts","sourceRoot":"","sources":["../../../../src/simple/StakeEventsViewer/SimpleStakeEventsViewer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,QAAQ,EAAE,UAAU,EAAE,gBAAgB,EAAE,cAAc,EAAE,iBAAiB,EAC1E,MAAM,+BAA+B,CAAA;AAGtC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAA;AAC/E,OAAO,EAAE,yBAAyB,EAAqB,MAAM,kCAAkC,CAAA;AAE/F,wCAAwC;AACxC,MAAM,WAAW,uBAAwB,SAAQ,uBAAuB;IACtE,SAAS,EAAE,QAAQ,EAAE,CAAA;CACtB;AAED,8CAA8C;AAC9C,qBACa,uBAAwB,SAAQ,yBAAyB,CAAC,uBAAuB,CAAE,YAAW,iBAAiB;IAC1H,MAAM,CAAC,QAAQ,CAAC,eAAe,cAAc;IAC7C,MAAM,CAAC,QAAQ,CAAC,cAAc,sBAA2B;IACzD,MAAM,CAAC,QAAQ,CAAC,YAAY,UAAK;IACjC,MAAM,CAAC,QAAQ,CAAC,QAAQ,wBAA6B;IACrD,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAG,MAAM,CAAS;IACzC,OAAO,sBAAyC;IAEhD,SAAS,KAAK,SAAS,eAEtB;IAED,aAAa,CAAC,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,QAAQ,CAAC,GAAG,MAAM;IAIzD,WAAW,CAAC,KAAK,SAAS,cAAc,EAAE,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,QAAQ,CAAC,EAAE,EAAE,IAAI,EAAE,GAAE,gBAAgB,CAAC,KAAK,CAAM,GAAG,UAAU,CAAC,KAAK,CAAC,EAAE;cASjH,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAItD,OAAO,CAAC,mBAAmB;IAyC3B,OAAO,CAAC,kBAAkB;CAQ3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/simple/StakeEventsViewer/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type XyoAddress } from '@xyo-network/sdk-js';
|
|
2
|
+
import type { StakeTotalsViewer, StakeViewer } from '@xyo-network/xl1-protocol-lib';
|
|
3
|
+
import type { CreatableProviderParams } from '../../CreatableProvider/index.ts';
|
|
4
|
+
import { AbstractCreatableProvider } from '../../CreatableProvider/index.ts';
|
|
5
|
+
/** Parameters for SimpleStakeTotalsViewer. */
|
|
6
|
+
export interface SimpleStakeTotalsViewerParams extends CreatableProviderParams {
|
|
7
|
+
}
|
|
8
|
+
/** SimpleStakeTotalsViewer implementation. */
|
|
9
|
+
export declare class SimpleStakeTotalsViewer extends AbstractCreatableProvider<SimpleStakeTotalsViewerParams> implements StakeTotalsViewer {
|
|
10
|
+
static readonly connectionTypes: readonly ["lmdb", "mongo", "memory"];
|
|
11
|
+
static readonly defaultMoniker: "StakeTotalsViewer";
|
|
12
|
+
static readonly dependencies: "StakeViewer"[];
|
|
13
|
+
static readonly monikers: "StakeTotalsViewer"[];
|
|
14
|
+
static readonly surface: "node";
|
|
15
|
+
moniker: "StakeTotalsViewer";
|
|
16
|
+
private _stakeViewer;
|
|
17
|
+
get stakeViewer(): StakeViewer;
|
|
18
|
+
active(time?: number): Promise<bigint>;
|
|
19
|
+
activeByStaked(staked: XyoAddress, time?: number): Promise<bigint>;
|
|
20
|
+
activeByStaker(staker: XyoAddress, time?: number): Promise<bigint>;
|
|
21
|
+
createHandler(): Promise<void>;
|
|
22
|
+
pending(time?: number): Promise<bigint>;
|
|
23
|
+
pendingByStaker(staker: XyoAddress, time?: number): Promise<bigint>;
|
|
24
|
+
withdrawn(time?: number): Promise<bigint>;
|
|
25
|
+
withdrawnByStaker(staker: XyoAddress, time?: number): Promise<bigint>;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=SimpleStakeTotalsViewer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SimpleStakeTotalsViewer.d.ts","sourceRoot":"","sources":["../../../../src/simple/StakeTotalsViewer/SimpleStakeTotalsViewer.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACnE,OAAO,KAAK,EACV,iBAAiB,EACjB,WAAW,EACZ,MAAM,+BAA+B,CAAA;AAMtC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAA;AAC/E,OAAO,EAAE,yBAAyB,EAAqB,MAAM,kCAAkC,CAAA;AAE/F,8CAA8C;AAC9C,MAAM,WAAW,6BAA8B,SAAQ,uBAAuB;CAE7E;AAED,8CAA8C;AAC9C,qBACa,uBAAwB,SAAQ,yBAAyB,CAAC,6BAA6B,CAAE,YAAW,iBAAiB;IAChI,MAAM,CAAC,QAAQ,CAAC,eAAe,uCAAuC;IACtE,MAAM,CAAC,QAAQ,CAAC,cAAc,sBAA2B;IACzD,MAAM,CAAC,QAAQ,CAAC,YAAY,kBAAuB;IACnD,MAAM,CAAC,QAAQ,CAAC,QAAQ,wBAA6B;IACrD,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAG,MAAM,CAAS;IACzC,OAAO,sBAAyC;IAEhD,OAAO,CAAC,YAAY,CAAc;IAElC,IAAI,WAAW,gBAEd;IAEK,MAAM,CAAC,IAAI,SAA0B;IAWrC,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,SAA0B;IAWjE,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,SAA0B;IAWxD,aAAa;IAQtB,OAAO,CAAC,IAAI,SAA0B,GAAG,OAAO,CAAC,MAAM,CAAC;IAWxD,eAAe,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,SAA0B;IAWlE,SAAS,CAAC,IAAI,SAA0B,GAAG,OAAO,CAAC,MAAM,CAAC;IAW1D,iBAAiB,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,SAA0B,GAAG,OAAO,CAAC,MAAM,CAAC;CAU7F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/simple/StakeTotalsViewer/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { Address, Promisable } from '@xylabs/sdk';
|
|
2
|
+
import { type XyoAddress } from '@xyo-network/sdk-js';
|
|
3
|
+
import type { Position, StakeEventsViewer, StakeViewer } from '@xyo-network/xl1-protocol-lib';
|
|
4
|
+
import type { CreatableProviderParams } from '../../CreatableProvider/index.ts';
|
|
5
|
+
import { AbstractCreatableProvider } from '../../CreatableProvider/index.ts';
|
|
6
|
+
/** Parameters for SimpleStakeViewer. */
|
|
7
|
+
export interface SimpleStakeViewerParams extends CreatableProviderParams {
|
|
8
|
+
chainId?: Address;
|
|
9
|
+
minWithdrawalBlocks?: number;
|
|
10
|
+
positions: Position[];
|
|
11
|
+
}
|
|
12
|
+
/** SimpleStakeViewer implementation. */
|
|
13
|
+
export declare class SimpleStakeViewer extends AbstractCreatableProvider<SimpleStakeViewerParams> implements StakeViewer {
|
|
14
|
+
static readonly connectionTypes: readonly ["lmdb", "mongo", "memory"];
|
|
15
|
+
static readonly defaultMoniker: "StakeViewer";
|
|
16
|
+
static readonly dependencies: "StakeEventsViewer"[];
|
|
17
|
+
static readonly monikers: "StakeViewer"[];
|
|
18
|
+
static readonly surface: "node";
|
|
19
|
+
moniker: "StakeViewer";
|
|
20
|
+
private _chainStakeEventsViewer;
|
|
21
|
+
get stakeEvents(): StakeEventsViewer;
|
|
22
|
+
protected get positions(): Position[];
|
|
23
|
+
active(): Promise<bigint>;
|
|
24
|
+
activeByAddressStaked(staked: XyoAddress): Promise<bigint>;
|
|
25
|
+
activeByStaker(staker: XyoAddress): Promise<bigint>;
|
|
26
|
+
activeStakes(): Promisable<Position[]>;
|
|
27
|
+
createHandler(): Promise<void>;
|
|
28
|
+
minWithdrawalBlocks(): number;
|
|
29
|
+
pending(): Promise<bigint>;
|
|
30
|
+
pendingByStaker(staker: XyoAddress): Promise<bigint>;
|
|
31
|
+
removedStakes(): Promisable<Position[]>;
|
|
32
|
+
rewardsContract(): Address;
|
|
33
|
+
stakeById(id: number): Position;
|
|
34
|
+
stakeByStaker(staker: XyoAddress, slot: number): Position;
|
|
35
|
+
stakesByStaked(staked: XyoAddress, range?: [number, number | undefined]): Position[];
|
|
36
|
+
stakesByStaker(staker: XyoAddress, range?: [number, number | undefined]): Position[];
|
|
37
|
+
stakingTokenAddress(): Address;
|
|
38
|
+
withdrawn(): Promise<bigint>;
|
|
39
|
+
withdrawnByStaker(staker: XyoAddress): Promise<bigint>;
|
|
40
|
+
withdrawnStakes(): Promisable<Position[]>;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=SimpleStakeViewer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SimpleStakeViewer.d.ts","sourceRoot":"","sources":["../../../../src/simple/StakeViewer/SimpleStakeViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAEtD,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACnE,OAAO,KAAK,EACV,QAAQ,EAAE,iBAAiB,EAAE,WAAW,EACzC,MAA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AQ;IAIzD,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,GAAE,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAkB,GAAG,QAAQ,EAAE;IAKpG,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,GAAE,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAkB,GAAG,QAAQ,EAAE;IAKpG,mBAAmB,IAAI,OAAO;IAIxB,SAAS;IAWT,iBAAiB,CAAC,MAAM,EAAE,UAAU;IAW1C,eAAe,IAAI,UAAU,CAAC,QAAQ,EAAE,CAAC;CAG1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/simple/StakeViewer/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { Hash } from '@xylabs/sdk';
|
|
2
|
+
import type { BlockViewer, SignedHydratedTransactionWithHashMeta, TransactionViewer, XL1BlockNumber } from '@xyo-network/xl1-protocol-lib';
|
|
3
|
+
import type { CreatableProviderParams } from '../../CreatableProvider/index.ts';
|
|
4
|
+
import { AbstractCreatableProvider } from '../../CreatableProvider/index.ts';
|
|
5
|
+
/** Parameters for SimpleTransactionViewer. */
|
|
6
|
+
export interface SimpleTransactionViewerParams extends CreatableProviderParams {
|
|
7
|
+
}
|
|
8
|
+
/** SimpleTransactionViewer implementation. */
|
|
9
|
+
export declare class SimpleTransactionViewer extends AbstractCreatableProvider<SimpleTransactionViewerParams> implements TransactionViewer {
|
|
10
|
+
static readonly connectionTypes: readonly ["lmdb", "mongo", "memory"];
|
|
11
|
+
static readonly defaultMoniker: "TransactionViewer";
|
|
12
|
+
static readonly dependencies: "BlockViewer"[];
|
|
13
|
+
static readonly monikers: "TransactionViewer"[];
|
|
14
|
+
moniker: "TransactionViewer";
|
|
15
|
+
private _blockViewer;
|
|
16
|
+
protected get blockViewer(): BlockViewer<"BlockViewer">;
|
|
17
|
+
byBlockHashAndIndex(blockHash: Hash, transactionIndex: number): Promise<SignedHydratedTransactionWithHashMeta | null>;
|
|
18
|
+
byBlockNumberAndIndex(blockNumber: XL1BlockNumber, transactionIndex: number): Promise<SignedHydratedTransactionWithHashMeta | null>;
|
|
19
|
+
byHash(transactionHash: Hash): Promise<SignedHydratedTransactionWithHashMeta | null>;
|
|
20
|
+
createHandler(): Promise<void>;
|
|
21
|
+
transactionByBlockHashAndIndex(blockHash: Hash, transactionIndex?: number): Promise<SignedHydratedTransactionWithHashMeta | null>;
|
|
22
|
+
transactionByBlockNumberAndIndex(blockNumber: XL1BlockNumber, transactionIndex?: number): Promise<SignedHydratedTransactionWithHashMeta | null>;
|
|
23
|
+
transactionByHash(transactionHash: Hash): Promise<SignedHydratedTransactionWithHashMeta | null>;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=SimpleTransactionViewer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SimpleTransactionViewer.d.ts","sourceRoot":"","sources":["../../../../src/simple/TransactionViewer/SimpleTransactionViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAGvC,OAAO,KAAK,EACV,WAAW,EACX,qCAAqC,EAAE,iBAAiB,EACxD,cAAc,EACf,MAAM,+BAA+B,CAAA;AAQtC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAA;AAC/E,OAAO,EAAE,yBAAyB,EAAqB,MAAM,kCAAkC,CAAA;AAE/F,8CAA8C;AAC9C,MAAM,WAAW,6BAA8B,SAAQ,uBAAuB;CAE7E;AAED,8CAA8C;AAC9C,qBACa,uBAAwB,SAAQ,yBAAyB,CAAC,6BAA6B,CAAE,YAAW,iBAAiB;IAChI,MAAM,CAAC,QAAQ,CAAC,eAAe,uCAAuC;IACtE,MAAM,CAAC,QAAQ,CAAC,cAAc,sBAA2B;IACzD,MAAM,CAAC,QAAQ,CAAC,YAAY,kBAAuB;IACnD,MAAM,CAAC,QAAQ,CAAC,QAAQ,wBAA6B;IACrD,OAAO,sBAAyC;IAEhD,OAAO,CAAC,YAAY,CAAc;IAElC,SAAS,KAAK,WAAW,+BAExB;IAEK,mBAAmB,CAAC,SAAS,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,qCAAqC,GAAG,IAAI,CAAC;IAmBrH,qBAAqB,CAAC,WAAW,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,qCAAqC,GAAG,IAAI,CAAC;IAYnI,MAAM,CAAC,eAAe,EAAE,IAAI,GAAG,OAAO,CAAC,qCAAqC,GAAG,IAAI,CAAC;IAe3E,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;IAKvC,8BAA8B,CAAC,SAAS,EAAE,IAAI,EAAE,gBAAgB,SAAI,GAAG,OAAO,CAAC,qCAAqC,GAAG,IAAI,CAAC;IAI5H,gCAAgC,CAAC,WAAW,EAAE,cAAc,EAAE,gBAAgB,SAAI,GAAG,OAAO,CAAC,qCAAqC,GAAG,IAAI,CAAC;IAI1I,iBAAiB,CAAC,eAAe,EAAE,IAAI,GAAG,OAAO,CAAC,qCAAqC,GAAG,IAAI,CAAC;CAGtG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/simple/TransactionViewer/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import type { WithHashMeta, XyoAddress } from '@xyo-network/sdk-js';
|
|
2
|
+
import type { AccountBalanceConfig, AccountBalanceHistoryItem, AccountBalanceViewer, BlockViewer, ChainQualification, ChainQualified, MapType, XL1BlockNumber } from '@xyo-network/xl1-protocol-lib';
|
|
3
|
+
import { AttoXL1 } from '@xyo-network/xl1-protocol-lib';
|
|
4
|
+
import type { CreatableProviderParams } from '../../CreatableProvider/index.ts';
|
|
5
|
+
import { AbstractCreatableProvider } from '../../CreatableProvider/index.ts';
|
|
6
|
+
import type { BalancesStepSummary, TransfersStepSummary } from '../../summary/index.ts';
|
|
7
|
+
/** Parameters for SimpleAccountBalanceViewer. */
|
|
8
|
+
export interface SimpleAccountBalanceViewerParams extends CreatableProviderParams {
|
|
9
|
+
balancesSummaryMap: MapType<string, WithHashMeta<BalancesStepSummary>>;
|
|
10
|
+
transfersSummaryMap: MapType<string, WithHashMeta<TransfersStepSummary>>;
|
|
11
|
+
}
|
|
12
|
+
/** SimpleAccountBalanceViewer implementation. */
|
|
13
|
+
export declare class SimpleAccountBalanceViewer extends AbstractCreatableProvider<SimpleAccountBalanceViewerParams> implements AccountBalanceViewer {
|
|
14
|
+
static readonly connectionTypes: readonly ["lmdb", "mongo", "memory"];
|
|
15
|
+
static readonly defaultMoniker: "AccountBalanceViewer";
|
|
16
|
+
static readonly dependencies: "BlockViewer"[];
|
|
17
|
+
static readonly monikers: "AccountBalanceViewer"[];
|
|
18
|
+
static readonly surface: "node";
|
|
19
|
+
moniker: "AccountBalanceViewer";
|
|
20
|
+
private _balanceStepSemaphores;
|
|
21
|
+
private _blockViewer;
|
|
22
|
+
private _transferStepSemaphores;
|
|
23
|
+
get balancesSummaryMap(): MapType<string, WithHashMeta<BalancesStepSummary>>;
|
|
24
|
+
get blockViewer(): BlockViewer<"BlockViewer">;
|
|
25
|
+
get transfersSummaryMap(): MapType<string, WithHashMeta<TransfersStepSummary>>;
|
|
26
|
+
static paramsHandler(params?: Partial<SimpleAccountBalanceViewerParams>): Promise<{
|
|
27
|
+
balancesSummaryMap: import("@xyo-network/xl1-protocol-lib").SyncMap<string, WithHashMeta<BalancesStepSummary>> | import("@xyo-network/xl1-protocol-lib").AsyncMap<string, WithHashMeta<BalancesStepSummary>>;
|
|
28
|
+
transfersSummaryMap: import("@xyo-network/xl1-protocol-lib").SyncMap<string, WithHashMeta<TransfersStepSummary>> | import("@xyo-network/xl1-protocol-lib").AsyncMap<string, WithHashMeta<TransfersStepSummary>>;
|
|
29
|
+
context: import("../../index.ts").CreatableProviderContextType;
|
|
30
|
+
name?: import("@xylabs/sdk").CreatableName;
|
|
31
|
+
statusReporter?: import("@xylabs/sdk").CreatableStatusReporter<void> | undefined;
|
|
32
|
+
logger?: import("@xylabs/sdk").Logger;
|
|
33
|
+
meterProvider?: import("@opentelemetry/api").MeterProvider;
|
|
34
|
+
traceProvider?: import("@opentelemetry/api").TracerProvider;
|
|
35
|
+
}>;
|
|
36
|
+
accountBalance(address: XyoAddress, config?: AccountBalanceConfig): Promise<AttoXL1>;
|
|
37
|
+
accountBalanceHistories(addresses: XyoAddress[], config?: AccountBalanceConfig): Promise<Record<XyoAddress, AccountBalanceHistoryItem[]>>;
|
|
38
|
+
accountBalanceHistory(address: XyoAddress, config?: AccountBalanceConfig): Promise<[{
|
|
39
|
+
$epoch: number;
|
|
40
|
+
block: XL1BlockNumber;
|
|
41
|
+
chain: import("@xylabs/sdk").BrandedHex;
|
|
42
|
+
previous: import("@xylabs/sdk").BrandedHash | null;
|
|
43
|
+
schema: "network.xyo.boundwitness" & {
|
|
44
|
+
readonly __schema: true;
|
|
45
|
+
};
|
|
46
|
+
addresses: (import("@xyo-network/sdk-js").XyoQuantAddress | (Lowercase<string> & {
|
|
47
|
+
readonly __hex: true;
|
|
48
|
+
} & {
|
|
49
|
+
readonly __address: true;
|
|
50
|
+
}))[];
|
|
51
|
+
payload_hashes: import("@xylabs/sdk").BrandedHash[];
|
|
52
|
+
payload_schemas: import("@xyo-network/sdk-js").BrandedSchema<string>[];
|
|
53
|
+
previous_hashes: (import("@xylabs/sdk").BrandedHash | null)[];
|
|
54
|
+
$signatures: (import("@xylabs/sdk").BrandedHex | null)[];
|
|
55
|
+
_hash: import("@xylabs/sdk").BrandedHash;
|
|
56
|
+
_dataHash: import("@xylabs/sdk").BrandedHash;
|
|
57
|
+
protocol?: number | undefined;
|
|
58
|
+
step_hashes?: import("@xylabs/sdk").BrandedHash[] | undefined;
|
|
59
|
+
$destination?: import("@xyo-network/sdk-js").XyoQuantAddress | (Lowercase<string> & {
|
|
60
|
+
readonly __hex: true;
|
|
61
|
+
} & {
|
|
62
|
+
readonly __address: true;
|
|
63
|
+
}) | undefined;
|
|
64
|
+
$sourceQuery?: import("@xylabs/sdk").BrandedHash | undefined;
|
|
65
|
+
}, {
|
|
66
|
+
schema: "network.xyo.boundwitness" & {
|
|
67
|
+
readonly __schema: true;
|
|
68
|
+
};
|
|
69
|
+
addresses: (import("@xyo-network/sdk-js").XyoQuantAddress | (Lowercase<string> & {
|
|
70
|
+
readonly __hex: true;
|
|
71
|
+
} & {
|
|
72
|
+
readonly __address: true;
|
|
73
|
+
}))[];
|
|
74
|
+
payload_hashes: import("@xylabs/sdk").BrandedHash[];
|
|
75
|
+
payload_schemas: import("@xyo-network/sdk-js").BrandedSchema<string>[];
|
|
76
|
+
previous_hashes: (import("@xylabs/sdk").BrandedHash | null)[];
|
|
77
|
+
$signatures: (import("@xylabs/sdk").BrandedHex | null)[];
|
|
78
|
+
nbf: XL1BlockNumber;
|
|
79
|
+
exp: XL1BlockNumber;
|
|
80
|
+
fees: {
|
|
81
|
+
base: import("@xylabs/sdk").BrandedHex;
|
|
82
|
+
gasLimit: import("@xylabs/sdk").BrandedHex;
|
|
83
|
+
gasPrice: import("@xylabs/sdk").BrandedHex;
|
|
84
|
+
priority: import("@xylabs/sdk").BrandedHex;
|
|
85
|
+
};
|
|
86
|
+
chain: import("@xylabs/sdk").BrandedHex;
|
|
87
|
+
from: import("@xyo-network/sdk-js").XyoQuantAddress | (Lowercase<string> & {
|
|
88
|
+
readonly __hex: true;
|
|
89
|
+
} & {
|
|
90
|
+
readonly __address: true;
|
|
91
|
+
});
|
|
92
|
+
_hash: import("@xylabs/sdk").BrandedHash;
|
|
93
|
+
_dataHash: import("@xylabs/sdk").BrandedHash;
|
|
94
|
+
$destination?: import("@xyo-network/sdk-js").XyoQuantAddress | (Lowercase<string> & {
|
|
95
|
+
readonly __hex: true;
|
|
96
|
+
} & {
|
|
97
|
+
readonly __address: true;
|
|
98
|
+
}) | undefined;
|
|
99
|
+
$sourceQuery?: import("@xylabs/sdk").BrandedHash | undefined;
|
|
100
|
+
script?: string[] | undefined;
|
|
101
|
+
} | null, {
|
|
102
|
+
schema: "network.xyo.transfer" & {
|
|
103
|
+
readonly __schema: true;
|
|
104
|
+
};
|
|
105
|
+
epoch: number;
|
|
106
|
+
from: import("@xyo-network/sdk-js").XyoQuantAddress | (Lowercase<string> & {
|
|
107
|
+
readonly __hex: true;
|
|
108
|
+
} & {
|
|
109
|
+
readonly __address: true;
|
|
110
|
+
});
|
|
111
|
+
transfers: Record<import("@xyo-network/sdk-js").XyoQuantAddress | (Lowercase<string> & {
|
|
112
|
+
readonly __hex: true;
|
|
113
|
+
} & {
|
|
114
|
+
readonly __address: true;
|
|
115
|
+
}), import("@xylabs/sdk").BrandedHex>;
|
|
116
|
+
_hash: import("@xylabs/sdk").BrandedHash;
|
|
117
|
+
_dataHash: import("@xylabs/sdk").BrandedHash;
|
|
118
|
+
context?: Record<string, unknown> | undefined;
|
|
119
|
+
}][]>;
|
|
120
|
+
accountBalances(address: XyoAddress[], config?: AccountBalanceConfig): Promise<Record<(Lowercase<string> & {
|
|
121
|
+
readonly __hex: true;
|
|
122
|
+
} & {
|
|
123
|
+
readonly __address: true;
|
|
124
|
+
}) | import("@xyo-network/sdk-js").XyoQuantAddress, AttoXL1>>;
|
|
125
|
+
createHandler(): Promise<void>;
|
|
126
|
+
qualifiedAccountBalanceHistories(addresses: XyoAddress[], config: AccountBalanceConfig): Promise<[Record<XyoAddress, AccountBalanceHistoryItem[]>, ChainQualification]>;
|
|
127
|
+
qualifiedAccountBalances(address: XyoAddress[], config: AccountBalanceConfig): Promise<ChainQualified<Record<XyoAddress, AttoXL1>>>;
|
|
128
|
+
startHandler(): Promise<void>;
|
|
129
|
+
private distillTransferHistory;
|
|
130
|
+
private qualifiedAccountBalanceHistory;
|
|
131
|
+
}
|
|
132
|
+
//# sourceMappingURL=SimpleAccountBalanceViewer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SimpleAccountBalanceViewer.d.ts","sourceRoot":"","sources":["../../../../src/simple/accountBalance/SimpleAccountBalanceViewer.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,YAAY,EAAmB,UAAU,EAC1C,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EACV,oBAAoB,EACpB,yBAAyB,EACzB,oBAAoB,EACpB,WAAW,EACX,kBAAkB,EAClB,cAAc,EACd,OAAO,EACwC,cAAc,EAC9D,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAEuC,OAAO,EAMpD,MAAM,+BAA+B,CAAA;AAItC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAA;AAC/E,OAAO,EAAE,yBAAyB,EAAqB,MAAM,kCAAkC,CAAA;AAC/F,OAAO,KAAK,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAOvF,iDAAiD;AACjD,MAAM,WAAW,gCAAiC,SAAQ,uBAAuB;IAC/E,kBAAkB,EAAE,OAAO,CAAC,MAAM,EAAE,YAAY,CAAC,mBAAmB,CAAC,CAAC,CAAA;IACtE,mBAAmB,EAAE,OAAO,CAAC,MAAM,EAAE,YAAY,CAAC,oBAAoB,CAAC,CAAC,CAAA;CACzE;AAED,iDAAiD;AACjD,qBACa,0BAA2B,SAAQ,yBAAyB,CAAC,gCAAgC,CAAE,YAAW,oBAAoB;IACzI,MAAM,CAAC,QAAQ,CAAC,eAAe,uCAAuC;IACtE,MAAM,CAAC,QAAQ,CAAC,cAAc,yBAA8B;IAC5D,MAAM,CAAC,QAAQ,CAAC,YAAY,kBAAuB;IACnD,MAAM,CAAC,QAAQ,CAAC,QAAQ,2BAAgC;IACxD,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAG,MA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[],"mappings":"AAAA,cAAc,iCAAiC,CAAA"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import type { Hash } from '@xylabs/sdk';
|
|
2
|
+
import type { Payload, ReadArchivist, WithHashMeta } from '@xyo-network/sdk-js';
|
|
3
|
+
import { LruCacheMap } from '@xyo-network/xl1-driver-memory';
|
|
4
|
+
import type { BlockContextRead, BlockRate, BlocksStepSummary, BlockViewer, ChainContextRead, ChainId, FinalizationViewer, MapType, SignedHydratedBlockWithHashMeta, SignedHydratedBlockWithStorageMeta, SingleTimeConfig, TimeDurations, XL1BlockNumber, XL1BlockRange } from '@xyo-network/xl1-protocol-lib';
|
|
5
|
+
import type { ArchivistConnectionBinding } from '../../Archivists/index.ts';
|
|
6
|
+
import type { CreatableProviderParams } from '../../CreatableProvider/index.ts';
|
|
7
|
+
import { AbstractCreatableProvider } from '../../CreatableProvider/index.ts';
|
|
8
|
+
import type { ChainStoreRead } from '../../model/index.ts';
|
|
9
|
+
import { HydratedCache } from '../../utils/index.ts';
|
|
10
|
+
/** Parameters for SimpleBlockViewer. */
|
|
11
|
+
export interface SimpleBlockViewerParams extends CreatableProviderParams {
|
|
12
|
+
/**
|
|
13
|
+
* Optional backing store for cached per-step block summaries used by `blocksByStep`. Omit to use
|
|
14
|
+
* an in-memory LRU; inject a persistent (large-object capable) map for production.
|
|
15
|
+
*/
|
|
16
|
+
blocksSummaryMap?: MapType<string, BlocksStepSummary>;
|
|
17
|
+
/** Connection the chain store self-provisions from when finalizedArchivist is not injected. */
|
|
18
|
+
connection?: ArchivistConnectionBinding;
|
|
19
|
+
finalizedArchivist?: ReadArchivist;
|
|
20
|
+
headPollIntervalMs?: number;
|
|
21
|
+
}
|
|
22
|
+
/** SimpleBlockViewer implementation. */
|
|
23
|
+
export declare class SimpleBlockViewer extends AbstractCreatableProvider<SimpleBlockViewerParams, BlockViewer['eventData']> implements BlockViewer {
|
|
24
|
+
static readonly connectionTypes: readonly ["lmdb", "mongo", "memory"];
|
|
25
|
+
static readonly defaultMoniker: "BlockViewer";
|
|
26
|
+
static readonly dependencies: "FinalizationViewer"[];
|
|
27
|
+
static readonly monikers: "BlockViewer"[];
|
|
28
|
+
static readonly surface: "node";
|
|
29
|
+
moniker: "BlockViewer";
|
|
30
|
+
protected _store?: ChainStoreRead;
|
|
31
|
+
protected finalizationViewer: FinalizationViewer;
|
|
32
|
+
protected payloadCache: LruCacheMap<import("@xylabs/sdk").BrandedHash, WithHashMeta<Payload>, () => void>;
|
|
33
|
+
protected signedHydratedBlockWithHashMetaCache: LruCacheMap<import("@xylabs/sdk").BrandedHash, [{
|
|
34
|
+
schema: "network.xyo.boundwitness" & {
|
|
35
|
+
readonly __schema: true;
|
|
36
|
+
};
|
|
37
|
+
addresses: (import("@xyo-network/sdk-js").XyoQuantAddress | (Lowercase<string> & {
|
|
38
|
+
readonly __hex: true;
|
|
39
|
+
} & {
|
|
40
|
+
readonly __address: true;
|
|
41
|
+
}))[];
|
|
42
|
+
payload_hashes: import("@xylabs/sdk").BrandedHash[];
|
|
43
|
+
payload_schemas: import("@xyo-network/sdk-js").BrandedSchema<string>[];
|
|
44
|
+
previous_hashes: (import("@xylabs/sdk").BrandedHash | null)[];
|
|
45
|
+
$signatures: import("@xylabs/sdk").BrandedHex[];
|
|
46
|
+
block: XL1BlockNumber;
|
|
47
|
+
chain: import("@xylabs/sdk").BrandedHex;
|
|
48
|
+
previous: import("@xylabs/sdk").BrandedHash | null;
|
|
49
|
+
$epoch: number;
|
|
50
|
+
_hash: import("@xylabs/sdk").BrandedHash;
|
|
51
|
+
_dataHash: import("@xylabs/sdk").BrandedHash;
|
|
52
|
+
$destination?: import("@xyo-network/sdk-js").XyoQuantAddress | (Lowercase<string> & {
|
|
53
|
+
readonly __hex: true;
|
|
54
|
+
} & {
|
|
55
|
+
readonly __address: true;
|
|
56
|
+
}) | undefined;
|
|
57
|
+
$sourceQuery?: import("@xylabs/sdk").BrandedHash | undefined;
|
|
58
|
+
protocol?: number | undefined;
|
|
59
|
+
step_hashes?: import("@xylabs/sdk").BrandedHash[] | undefined;
|
|
60
|
+
}, {
|
|
61
|
+
[x: string]: unknown;
|
|
62
|
+
schema: import("@xyo-network/sdk-js").BrandedSchema<string>;
|
|
63
|
+
_hash: import("@xylabs/sdk").BrandedHash;
|
|
64
|
+
_dataHash: import("@xylabs/sdk").BrandedHash;
|
|
65
|
+
}[]], () => void>;
|
|
66
|
+
private _blockStepSemaphores;
|
|
67
|
+
private _blocksSummaryMap?;
|
|
68
|
+
private _headPollHash?;
|
|
69
|
+
private _headPollInProgress;
|
|
70
|
+
private _headPollTimer;
|
|
71
|
+
private _signedHydratedBlockCache;
|
|
72
|
+
get finalizedArchivist(): ReadArchivist;
|
|
73
|
+
protected get blocksSummaryMap(): MapType<string, BlocksStepSummary>;
|
|
74
|
+
protected get headPollIntervalMs(): number | undefined;
|
|
75
|
+
protected get hydratedBlockCache(): HydratedCache<SignedHydratedBlockWithStorageMeta>;
|
|
76
|
+
protected get store(): ChainStoreRead;
|
|
77
|
+
static paramsHandler(params: Partial<SimpleBlockViewerParams>): Promise<{
|
|
78
|
+
blocksSummaryMap: MapType<string, BlocksStepSummary> | undefined;
|
|
79
|
+
finalizedArchivist: ReadArchivist<Payload, import("@xylabs/sdk").BrandedHash, import("@xyo-network/sdk-js").Sequence>;
|
|
80
|
+
headPollIntervalMs: number | undefined;
|
|
81
|
+
context: import("../../model/CreatableProviderContext.zod.ts").CreatableProviderContextType;
|
|
82
|
+
name?: import("@xylabs/sdk").CreatableName;
|
|
83
|
+
statusReporter?: import("@xylabs/sdk").CreatableStatusReporter<void> | undefined;
|
|
84
|
+
logger?: import("@xylabs/sdk").Logger;
|
|
85
|
+
meterProvider?: import("@opentelemetry/api").MeterProvider;
|
|
86
|
+
traceProvider?: import("@opentelemetry/api").TracerProvider;
|
|
87
|
+
}>;
|
|
88
|
+
blockByHash(hash: Hash): Promise<SignedHydratedBlockWithHashMeta | null>;
|
|
89
|
+
blockByNumber(blockNumber: XL1BlockNumber): Promise<SignedHydratedBlockWithHashMeta | null>;
|
|
90
|
+
blocksByHash(hash: Hash, limit?: number): Promise<SignedHydratedBlockWithHashMeta[]>;
|
|
91
|
+
blocksByNumber(blockNumber: XL1BlockNumber, limit?: number): Promise<SignedHydratedBlockWithHashMeta[]>;
|
|
92
|
+
blocksByStep(stepLevel: number, stepIndex: number): Promise<SignedHydratedBlockWithHashMeta[]>;
|
|
93
|
+
chainId(): Promise<ChainId>;
|
|
94
|
+
chainId(blockNumber: XL1BlockNumber): Promise<ChainId>;
|
|
95
|
+
chainId(blockNumber: 'latest'): Promise<ChainId>;
|
|
96
|
+
createHandler(): Promise<void>;
|
|
97
|
+
currentBlock(): Promise<SignedHydratedBlockWithHashMeta>;
|
|
98
|
+
currentBlockHash(): Promise<Hash>;
|
|
99
|
+
currentBlockNumber(): Promise<XL1BlockNumber>;
|
|
100
|
+
payloadByHash(hash: Hash): Promise<WithHashMeta<Payload> | null>;
|
|
101
|
+
payloadsByHash(hashes: Hash[]): Promise<WithHashMeta<Payload>[]>;
|
|
102
|
+
rate(range: XL1BlockRange, timeUnit?: keyof TimeDurations): Promise<BlockRate>;
|
|
103
|
+
stepSizeRate(start: XL1BlockNumber, stepIndex: number, count?: number, timeUnit?: keyof TimeDurations): Promise<BlockRate>;
|
|
104
|
+
timeDurationRate(timeConfig: SingleTimeConfig, startBlockNumber?: XL1BlockNumber, timeUnit?: keyof TimeDurations, toleranceMs?: number, maxAttempts?: number): Promise<BlockRate>;
|
|
105
|
+
protected getBlockContextRead(): BlockContextRead;
|
|
106
|
+
protected getChainContextRead(): Promise<ChainContextRead>;
|
|
107
|
+
protected startHandler(): Promise<void>;
|
|
108
|
+
protected stopHandler(): Promise<void>;
|
|
109
|
+
private blockByNumberWithContext;
|
|
110
|
+
private pollHead;
|
|
111
|
+
private startHeadPolling;
|
|
112
|
+
private stopHeadPolling;
|
|
113
|
+
}
|
|
114
|
+
//# sourceMappingURL=SimpleBlockViewer.d.ts.map
|
|
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AAmB,IAAI,OAAO,CAAC,gBAAgB,CAAC;cAQvC,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;cAO7B,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;YAMvC,wBAAwB;YAOxB,QAAQ;IAuBtB,OAAO,CAAC,gBAAgB;IAQxB,OAAO,CAAC,eAAe;CAQxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/simple/block/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
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 connectionTypes: readonly ["lmdb", "mongo", "memory"];
|
|
13
|
+
static readonly defaultMoniker: "BlockInvalidationViewer";
|
|
14
|
+
static readonly dependencies: ("BlockViewer" | "AccountBalanceViewer" | "ChainContractViewer")[];
|
|
15
|
+
static readonly monikers: "BlockInvalidationViewer"[];
|
|
16
|
+
static readonly surface: "node";
|
|
17
|
+
moniker: "BlockInvalidationViewer";
|
|
18
|
+
private _accountBalanceViewer;
|
|
19
|
+
private _blockViewer;
|
|
20
|
+
private _chainContractViewer;
|
|
21
|
+
private _uncleWindowedChainCache;
|
|
22
|
+
protected get blockViewer(): BlockViewer<"BlockViewer">;
|
|
23
|
+
protected get chainContractViewer(): ChainContractViewer;
|
|
24
|
+
protected get maxUncleWindowSize(): number;
|
|
25
|
+
static paramsHandler(params: Partial<SimpleBlockInvalidationViewerParams>): Promise<SimpleBlockInvalidationViewerParams>;
|
|
26
|
+
createHandler(): Promise<void>;
|
|
27
|
+
invalidateBlock(block: SignedHydratedBlock, config?: BlockInvalidationConfig): Promise<HydratedBlockValidationError[] | SignedHydratedBlockWithHashMeta>;
|
|
28
|
+
invalidateBlocks(blocks: SignedHydratedBlock[], config?: BlockInvalidationConfig): Promise<(HydratedBlockValidationError[] | SignedHydratedBlockWithHashMeta)[]>;
|
|
29
|
+
invalidateUncle(blocks: SignedHydratedBlock[], config?: BlockInvalidationConfig): Promise<(HydratedBlockValidationError[] | SignedHydratedBlockWithHashMeta)[]>;
|
|
30
|
+
qualifiedInvalidateBlock(block: SignedHydratedBlockWithHashMeta, config?: BlockInvalidationConfig): Promise<ChainQualified<HydratedBlockValidationError[] | SignedHydratedBlockWithHashMeta>>;
|
|
31
|
+
qualifiedInvalidateBlocks(blocks: SignedHydratedBlock[], config?: BlockInvalidationConfig): Promise<ChainQualified<(HydratedBlockValidationError[] | SignedHydratedBlockWithHashMeta)[]>>;
|
|
32
|
+
qualifiedInvalidateUncle(_blocks: SignedHydratedBlock[], _config?: BlockInvalidationConfig): Promise<ChainQualified<(HydratedBlockValidationError[] | SignedHydratedBlockWithHashMeta)[]>>;
|
|
33
|
+
private doInvalidateProtocol;
|
|
34
|
+
private doInvalidateState;
|
|
35
|
+
private updateWindowedChainCache;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=SimpleBlockInvalidationViewer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SimpleBlockInvalidationViewer.d.ts","sourceRoot":"","sources":["../../../../src/simple/blockInvalidation/SimpleBlockInvalidationViewer.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAEV,uBAAuB,EACvB,uBAAuB,EACvB,WAAW,EACX,mBAAmB,EAEnB,cAAc,EACd,oCAAoC,EACpC,4BAA4B,EAC5B,+BAA+B,EAC/B,mBAAmB,EACnB,+BAA+B,EAChC,MAAM,+BAA+B,CAAA;AAWtC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAA;AAC/E,OAAO,EAAE,yBAAyB,EAAqB,MAAM,kCAAkC,CAAA;AAG/F,oDAAoD;AACpD,MAAM,WAAW,mCAAoC,SAAQ,uBAAuB;IAClF,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,KAAK,CAAC,EAAE,oCAAoC,CAAA;IAC5C,KAAK,CAAC,EAAE,+BAA+B,CAAA;CACxC;AAED,oDAAoD;AACpD,qBACa,6BAA8B,SAAQ,yBAAyB,CAAC,mCAAmC,CAAE,YAAW,uBAAuB;IAClJ,MAAM,CAAC,QAAQ,CAAC,eAAe,uCAAuC;IACtE,MAAM,CAAC,QAAQ,CAAC,cAAc,4BAAiC;IAC/D,MAAM,CAAC,QAAQ,CAAC,YAAY,qEAAgF;IAC5G,MAAM,CAAC,QAAQ,CAAC,QAAQ,8BAAmC;IAC3D,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAG,MAAM,CAAS;IACzC,OAAO,4BAA+C;IAEtD,OAAO,CAAC,qBAAqB,CAAuB;IACpD,OAAO,CAAC,YAAY,CAAc;IAClC,OAAO,CAAC,oBAAoB,CAAsB;IAClD,OAAO,CAAC,wBAAwB,CAAiD;IAEjF,SAAS,KAAK,WAAW,+BAExB;IAED,SAAS,KAAK,mBAAmB,wBAEhC;IAED,SAAS,KAAK,kBAAkB,WAE/B;WAEqB,aAAa,CAAC,MAAM,EAAE,OAAO,CAAC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able } from '@xylabs/sdk';
|
|
2
|
+
import type { AttoXL1, BlockRewardViewer, XL1BlockNumber } from '@xyo-network/xl1-protocol-lib';
|
|
3
|
+
import type { CreatableProviderParams } from '../../CreatableProvider/index.ts';
|
|
4
|
+
import { AbstractCreatableProvider } from '../../CreatableProvider/index.ts';
|
|
5
|
+
/** Parameters for SimpleBlockRewardViewer. */
|
|
6
|
+
export interface SimpleBlockRewardViewerParams extends CreatableProviderParams {
|
|
7
|
+
}
|
|
8
|
+
/** SimpleBlockRewardViewer implementation. */
|
|
9
|
+
export declare class SimpleBlockRewardViewer extends AbstractCreatableProvider<SimpleBlockRewardViewerParams> implements BlockRewardViewer {
|
|
10
|
+
static readonly connectionTypes: readonly ["lmdb", "mongo", "memory", "rpc"];
|
|
11
|
+
static readonly defaultMoniker: "BlockRewardViewer";
|
|
12
|
+
static readonly dependencies: never[];
|
|
13
|
+
static readonly monikers: "BlockRewardViewer"[];
|
|
14
|
+
static readonly surface: "node";
|
|
15
|
+
moniker: "BlockRewardViewer";
|
|
16
|
+
allowedRewardForBlock(block: XL1BlockNumber): Promisable<AttoXL1>;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=SimpleBlockRewardViewer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SimpleBlockRewardViewer.d.ts","sourceRoot":"","sources":["../../../../src/simple/blockReward/SimpleBlockRewardViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAC7C,OAAO,KAAK,EACV,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAC3C,MAAM,+BAA+B,CAAA;AAGtC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAA;AAC/E,OAAO,EAAE,yBAAyB,EAAqB,MAAM,kCAAkC,CAAA;AAG/F,8CAA8C;AAC9C,MAAM,WAAW,6BAA8B,SAAQ,uBAAuB;CAAG;AAEjF,8CAA8C;AAC9C,qBACa,uBAAwB,SAAQ,yBAAyB,CAAC,6BAA6B,CAAE,YAAW,iBAAiB;IAChI,MAAM,CAAC,QAAQ,CAAC,eAAe,8CAA8C;IAC7E,MAAM,CAAC,QAAQ,CAAC,cAAc,sBAA2B;IACzD,MAAM,CAAC,QAAQ,CAAC,YAAY,UAAK;IACjC,MAAM,CAAC,QAAQ,CAAC,QAAQ,wBAA6B;IACrD,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAG,MAAM,CAAS;IACzC,OAAO,sBAAyC;IAEhD,qBAAqB,CAAC,KAAK,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;CAKlE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/simple/blockReward/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { BlockValidationConfig, BlockValidationViewer, BlockViewer, ChainContractViewer, ChainQualified, HydratedBlockStateValidationFunction, HydratedBlockValidationFunction, SignedHydratedBlock, SignedHydratedBlockWithHashMeta } from '@xyo-network/xl1-protocol-lib';
|
|
2
|
+
import { HydratedBlockValidationError } from '@xyo-network/xl1-protocol-lib';
|
|
3
|
+
import type { CreatableProviderParams } from '../../CreatableProvider/index.ts';
|
|
4
|
+
import { AbstractCreatableProvider } from '../../CreatableProvider/index.ts';
|
|
5
|
+
/** Parameters for SimpleBlockValidationViewer. */
|
|
6
|
+
export interface SimpleBlockValidationViewerParams extends CreatableProviderParams {
|
|
7
|
+
maxUncleWindowSize?: number;
|
|
8
|
+
protocol?: HydratedBlockValidationFunction;
|
|
9
|
+
state?: HydratedBlockStateValidationFunction;
|
|
10
|
+
}
|
|
11
|
+
/** SimpleBlockValidationViewer implementation. */
|
|
12
|
+
export declare class SimpleBlockValidationViewer extends AbstractCreatableProvider<SimpleBlockValidationViewerParams> implements BlockValidationViewer {
|
|
13
|
+
static readonly connectionTypes: readonly ["lmdb", "mongo", "memory", "rpc"];
|
|
14
|
+
static readonly defaultMoniker: "BlockValidationViewer";
|
|
15
|
+
static readonly dependencies: ("BlockViewer" | "AccountBalanceViewer" | "ChainContractViewer")[];
|
|
16
|
+
static readonly monikers: "BlockValidationViewer"[];
|
|
17
|
+
static readonly surface: "node";
|
|
18
|
+
moniker: "BlockValidationViewer";
|
|
19
|
+
private _accountBalanceViewer;
|
|
20
|
+
private _blockViewer;
|
|
21
|
+
private _chainContractViewer;
|
|
22
|
+
private _uncleWindowedChainCache;
|
|
23
|
+
protected get blockViewer(): BlockViewer<"BlockViewer">;
|
|
24
|
+
protected get chainContractViewer(): ChainContractViewer;
|
|
25
|
+
protected get maxUncleWindowSize(): number;
|
|
26
|
+
static paramsHandler(params: Partial<SimpleBlockValidationViewerParams>): Promise<SimpleBlockValidationViewerParams>;
|
|
27
|
+
createHandler(): Promise<void>;
|
|
28
|
+
qualifiedValidateBlock(block: SignedHydratedBlockWithHashMeta, config?: BlockValidationConfig): Promise<ChainQualified<HydratedBlockValidationError[] | SignedHydratedBlockWithHashMeta>>;
|
|
29
|
+
qualifiedValidateBlocks(blocks: SignedHydratedBlock[], config?: BlockValidationConfig): Promise<ChainQualified<(HydratedBlockValidationError[] | SignedHydratedBlockWithHashMeta)[]>>;
|
|
30
|
+
qualifiedValidateUncle(_blocks: SignedHydratedBlock[], _config?: BlockValidationConfig): Promise<ChainQualified<(HydratedBlockValidationError[] | SignedHydratedBlockWithHashMeta)[]>>;
|
|
31
|
+
validateBlock(block: SignedHydratedBlock, config?: BlockValidationConfig): Promise<HydratedBlockValidationError[] | SignedHydratedBlockWithHashMeta>;
|
|
32
|
+
validateBlocks(blocks: SignedHydratedBlock[], config?: BlockValidationConfig): Promise<(HydratedBlockValidationError[] | SignedHydratedBlockWithHashMeta)[]>;
|
|
33
|
+
validateUncle(blocks: SignedHydratedBlock[], config?: BlockValidationConfig): Promise<(HydratedBlockValidationError[] | SignedHydratedBlockWithHashMeta)[]>;
|
|
34
|
+
private doValidateProtocol;
|
|
35
|
+
private doValidateState;
|
|
36
|
+
private updateWindowedChainCache;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=SimpleBlockValidationViewer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SimpleBlockValidationViewer.d.ts","sourceRoot":"","sources":["../../../../src/simple/blockValidation/SimpleBlockValidationViewer.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAEV,qBAAqB,EACrB,qBAAqB,EACrB,WAAW,EACX,mBAAmB,EAEnB,cAAc,EACd,oCAAoC,EACpC,+BAA+B,EAC/B,mBAAmB,EACnB,+BAA+B,EAChC,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAML,4BAA4B,EAG7B,MAAM,+BAA+B,CAAA;AAEtC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAA;AAC/E,OAAO,EAAE,yBAAyB,EAAqB,MAAM,kCAAkC,CAAA;AAG/F,kDAAkD;AAClD,MAAM,WAAW,iCAAkC,SAAQ,uBAAuB;IAChF,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,EAAE,+BAA+B,CAAA;IAC1C,KAAK,CAAC,EAAE,oCAAoC,CAAA;CAC7C;AAED,kDAAkD;AAClD,qBACa,2BAA4B,SAAQ,yBAAyB,CAAC,iCAAiC,CAAE,YAAW,qBAAqB;IAC5I,MAAM,CAAC,QAAQ,CAAC,eAAe,8CAA8C;IAC7E,MAAM,CAAC,QAAQ,CAAC,cAAc,0BAA+B;IAC7D,MAAM,CAAC,QAAQ,CAAC,YAAY,qEAAgF;IAC5G,MAAM,CAAC,QAAQ,CAAC,QAAQ,4BAAiC;IACzD,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAG,MAAM,CAAS;IACzC,OAAO,0BAA6C;IAEpD,OAAO,CAAC,qBAAqB,CAAuB;IACpD,OAAO,CAAC,YAAY,CAAc;I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