@xyo-network/chain-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/browser/analyze.d.ts +2 -0
- package/dist/browser/analyze.d.ts.map +1 -0
- package/dist/browser/browser/telemetry.d.ts +2 -0
- package/dist/browser/browser/telemetry.d.ts.map +1 -0
- package/dist/browser/ethereum.d.ts +2 -0
- package/dist/browser/ethereum.d.ts.map +1 -0
- package/dist/browser/index.d.ts +9 -9
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.mjs +9 -9
- package/dist/browser/index.mjs.map +2 -2
- package/dist/browser/modules/analyze/BalanceAnalyzer/BalanceAnalyzer.d.ts +19 -0
- package/dist/browser/modules/analyze/BalanceAnalyzer/BalanceAnalyzer.d.ts.map +1 -0
- package/dist/browser/modules/analyze/BalanceAnalyzer/ChainSummaryBalances.d.ts +16 -0
- package/dist/browser/modules/analyze/BalanceAnalyzer/ChainSummaryBalances.d.ts.map +1 -0
- package/dist/browser/modules/analyze/BalanceAnalyzer/index.d.ts +3 -0
- package/dist/browser/modules/analyze/BalanceAnalyzer/index.d.ts.map +1 -0
- package/dist/browser/modules/analyze/ChainFinalizer.d.ts +20 -0
- package/dist/browser/modules/analyze/ChainFinalizer.d.ts.map +1 -0
- package/dist/browser/modules/analyze/ChainHeadSelector.d.ts +34 -0
- package/dist/browser/modules/analyze/ChainHeadSelector.d.ts.map +1 -0
- package/dist/browser/modules/analyze/TransferAnalyzer/ChainSummaryTransfers.d.ts +16 -0
- package/dist/browser/modules/analyze/TransferAnalyzer/ChainSummaryTransfers.d.ts.map +1 -0
- package/dist/browser/modules/analyze/TransferAnalyzer/TransferAnalyzer.d.ts +15 -0
- package/dist/browser/modules/analyze/TransferAnalyzer/TransferAnalyzer.d.ts.map +1 -0
- package/dist/browser/modules/analyze/TransferAnalyzer/index.d.ts +3 -0
- package/dist/browser/modules/analyze/TransferAnalyzer/index.d.ts.map +1 -0
- package/dist/browser/modules/analyze/analyzeChain.d.ts +5 -0
- package/dist/browser/modules/analyze/analyzeChain.d.ts.map +1 -0
- package/dist/browser/modules/analyze/index.d.ts +7 -0
- package/dist/browser/modules/analyze/index.d.ts.map +1 -0
- package/dist/browser/modules/analyze/producer/ChainProducersAnalyzer.d.ts +12 -0
- package/dist/browser/modules/analyze/producer/ChainProducersAnalyzer.d.ts.map +1 -0
- package/dist/browser/modules/analyze/producer/ChainStakeIntentAnalyzer.d.ts +14 -0
- package/dist/browser/modules/analyze/producer/ChainStakeIntentAnalyzer.d.ts.map +1 -0
- package/dist/browser/modules/analyze/producer/ChainSummaryProducers.d.ts +19 -0
- package/dist/browser/modules/analyze/producer/ChainSummaryProducers.d.ts.map +1 -0
- package/dist/browser/modules/analyze/producer/ChainSummaryStakeIntent.d.ts +15 -0
- package/dist/browser/modules/analyze/producer/ChainSummaryStakeIntent.d.ts.map +1 -0
- package/dist/browser/modules/analyze/producer/index.d.ts +5 -0
- package/dist/browser/modules/analyze/producer/index.d.ts.map +1 -0
- package/dist/browser/modules/ethereum/BaseEthProvider.d.ts +56 -0
- package/dist/browser/modules/ethereum/BaseEthProvider.d.ts.map +1 -0
- package/dist/browser/modules/ethereum/block/index.d.ts +2 -0
- package/dist/browser/modules/ethereum/block/index.d.ts.map +1 -0
- package/dist/browser/modules/ethereum/block/rate/blockRate.d.ts +9 -0
- package/dist/browser/modules/ethereum/block/rate/blockRate.d.ts.map +1 -0
- package/dist/browser/modules/ethereum/block/rate/index.d.ts +3 -0
- package/dist/browser/modules/ethereum/block/rate/index.d.ts.map +1 -0
- package/dist/browser/modules/ethereum/block/rate/timeRate.d.ts +4 -0
- package/dist/browser/modules/ethereum/block/rate/timeRate.d.ts.map +1 -0
- package/dist/browser/modules/ethereum/createChain.d.ts +11 -0
- package/dist/browser/modules/ethereum/createChain.d.ts.map +1 -0
- package/dist/browser/modules/ethereum/createChainContract.d.ts +9 -0
- package/dist/browser/modules/ethereum/createChainContract.d.ts.map +1 -0
- package/dist/browser/modules/ethereum/createChainRewardsContract.d.ts +5 -0
- package/dist/browser/modules/ethereum/createChainRewardsContract.d.ts.map +1 -0
- package/dist/browser/modules/ethereum/drivers/EvmStakeEventZod.d.ts +245 -0
- package/dist/browser/modules/ethereum/drivers/EvmStakeEventZod.d.ts.map +1 -0
- package/dist/browser/modules/ethereum/drivers/EvmStakeEventsViewer.d.ts +31 -0
- package/dist/browser/modules/ethereum/drivers/EvmStakeEventsViewer.d.ts.map +1 -0
- package/dist/browser/modules/ethereum/drivers/EvmStakeViewer.d.ts +42 -0
- package/dist/browser/modules/ethereum/drivers/EvmStakeViewer.d.ts.map +1 -0
- package/dist/browser/modules/ethereum/drivers/index.d.ts +4 -0
- package/dist/browser/modules/ethereum/drivers/index.d.ts.map +1 -0
- package/dist/browser/modules/ethereum/ethereum.d.ts +6 -0
- package/dist/browser/modules/ethereum/ethereum.d.ts.map +1 -0
- package/dist/browser/modules/ethereum/index.d.ts +10 -0
- package/dist/browser/modules/ethereum/index.d.ts.map +1 -0
- package/dist/browser/modules/ethereum/model/ReturnTypeForOverload.d.ts +12 -0
- package/dist/browser/modules/ethereum/model/ReturnTypeForOverload.d.ts.map +1 -0
- package/dist/browser/modules/ethereum/model/index.d.ts +2 -0
- package/dist/browser/modules/ethereum/model/index.d.ts.map +1 -0
- package/dist/browser/modules/ethereum/nextContractAddress.d.ts +24 -0
- package/dist/browser/modules/ethereum/nextContractAddress.d.ts.map +1 -0
- package/dist/browser/modules/ethereum/providers/AbstractEvmProvider.d.ts +15 -0
- package/dist/browser/modules/ethereum/providers/AbstractEvmProvider.d.ts.map +1 -0
- package/dist/browser/modules/ethereum/providers/AbstractEvmRunner.d.ts +10 -0
- package/dist/browser/modules/ethereum/providers/AbstractEvmRunner.d.ts.map +1 -0
- package/dist/browser/modules/ethereum/providers/AbstractEvmViewer.d.ts +8 -0
- package/dist/browser/modules/ethereum/providers/AbstractEvmViewer.d.ts.map +1 -0
- package/dist/browser/modules/ethereum/providers/EvmChainContractViewer.d.ts +37 -0
- package/dist/browser/modules/ethereum/providers/EvmChainContractViewer.d.ts.map +1 -0
- package/dist/browser/modules/ethereum/providers/EvmStakeRunner.d.ts +20 -0
- package/dist/browser/modules/ethereum/providers/EvmStakeRunner.d.ts.map +1 -0
- package/dist/browser/modules/ethereum/providers/EvmStakeTotalsViewer.d.ts +27 -0
- package/dist/browser/modules/ethereum/providers/EvmStakeTotalsViewer.d.ts.map +1 -0
- package/dist/browser/modules/ethereum/providers/index.d.ts +7 -0
- package/dist/browser/modules/ethereum/providers/index.d.ts.map +1 -0
- package/dist/browser/modules/modules/diviners/BlockReward/Abstract/Config.d.ts +10 -0
- package/dist/browser/modules/modules/diviners/BlockReward/Abstract/Config.d.ts.map +1 -0
- package/dist/browser/modules/modules/diviners/BlockReward/Abstract/Diviner.d.ts +10 -0
- package/dist/browser/modules/modules/diviners/BlockReward/Abstract/Diviner.d.ts.map +1 -0
- package/dist/browser/modules/modules/diviners/BlockReward/Abstract/Params.d.ts +5 -0
- package/dist/browser/modules/modules/diviners/BlockReward/Abstract/Params.d.ts.map +1 -0
- package/dist/browser/modules/modules/diviners/BlockReward/Abstract/Payload.d.ts +32 -0
- package/dist/browser/modules/modules/diviners/BlockReward/Abstract/Payload.d.ts.map +1 -0
- package/dist/browser/modules/modules/diviners/BlockReward/Abstract/index.d.ts +5 -0
- package/dist/browser/modules/modules/diviners/BlockReward/Abstract/index.d.ts.map +1 -0
- package/dist/browser/modules/modules/diviners/BlockReward/FixedPercentage/Config.d.ts +19 -0
- package/dist/browser/modules/modules/diviners/BlockReward/FixedPercentage/Config.d.ts.map +1 -0
- package/dist/browser/modules/modules/diviners/BlockReward/FixedPercentage/Diviner.d.ts +27 -0
- package/dist/browser/modules/modules/diviners/BlockReward/FixedPercentage/Diviner.d.ts.map +1 -0
- package/dist/browser/modules/modules/diviners/BlockReward/FixedPercentage/Params.d.ts +8 -0
- package/dist/browser/modules/modules/diviners/BlockReward/FixedPercentage/Params.d.ts.map +1 -0
- package/dist/browser/modules/modules/diviners/BlockReward/FixedPercentage/index.d.ts +4 -0
- package/dist/browser/modules/modules/diviners/BlockReward/FixedPercentage/index.d.ts.map +1 -0
- package/dist/browser/modules/modules/diviners/BlockReward/index.d.ts +3 -0
- package/dist/browser/modules/modules/diviners/BlockReward/index.d.ts.map +1 -0
- package/dist/browser/modules/modules/diviners/BlockValidationDiviner.d.ts +38 -0
- package/dist/browser/modules/modules/diviners/BlockValidationDiviner.d.ts.map +1 -0
- package/dist/browser/modules/modules/diviners/HeadValidationDiviner.d.ts +68 -0
- package/dist/browser/modules/modules/diviners/HeadValidationDiviner.d.ts.map +1 -0
- package/dist/browser/modules/modules/diviners/index.d.ts +4 -0
- package/dist/browser/modules/modules/diviners/index.d.ts.map +1 -0
- package/dist/browser/modules/modules/index.d.ts +3 -0
- package/dist/browser/modules/modules/index.d.ts.map +1 -0
- package/dist/browser/modules/modules/witnesses/ArchivistNextWitness.d.ts +20 -0
- package/dist/browser/modules/modules/witnesses/ArchivistNextWitness.d.ts.map +1 -0
- package/dist/browser/modules/modules/witnesses/NetworkStake/NetworkStake.d.ts +15 -0
- package/dist/browser/modules/modules/witnesses/NetworkStake/NetworkStake.d.ts.map +1 -0
- package/dist/browser/modules/modules/witnesses/NetworkStake/NetworkStakeObserve.d.ts +15 -0
- package/dist/browser/modules/modules/witnesses/NetworkStake/NetworkStakeObserve.d.ts.map +1 -0
- package/dist/browser/modules/modules/witnesses/NetworkStake/index.d.ts +3 -0
- package/dist/browser/modules/modules/witnesses/NetworkStake/index.d.ts.map +1 -0
- package/dist/browser/modules/modules/witnesses/index.d.ts +3 -0
- package/dist/browser/modules/modules/witnesses/index.d.ts.map +1 -0
- package/dist/browser/modules/protocol/block/BuildBlockOptions.d.ts +26 -0
- package/dist/browser/modules/protocol/block/BuildBlockOptions.d.ts.map +1 -0
- package/dist/browser/modules/protocol/block/buildBlock.d.ts +4 -0
- package/dist/browser/modules/protocol/block/buildBlock.d.ts.map +1 -0
- package/dist/browser/modules/protocol/block/buildGenesisBlock.d.ts +8 -0
- package/dist/browser/modules/protocol/block/buildGenesisBlock.d.ts.map +1 -0
- package/dist/browser/modules/protocol/block/buildNextBlock.d.ts +9 -0
- package/dist/browser/modules/protocol/block/buildNextBlock.d.ts.map +1 -0
- package/dist/browser/modules/protocol/block/createGenesisBlock.d.ts +4 -0
- package/dist/browser/modules/protocol/block/createGenesisBlock.d.ts.map +1 -0
- package/dist/browser/modules/protocol/block/createProducerChainStakeIntentTransaction.d.ts +15 -0
- package/dist/browser/modules/protocol/block/createProducerChainStakeIntentTransaction.d.ts.map +1 -0
- package/dist/browser/modules/protocol/block/index.d.ts +8 -0
- package/dist/browser/modules/protocol/block/index.d.ts.map +1 -0
- package/dist/browser/modules/protocol/block/sort.d.ts +7 -0
- package/dist/browser/modules/protocol/block/sort.d.ts.map +1 -0
- package/dist/browser/modules/protocol/frameList.d.ts +5 -0
- package/dist/browser/modules/protocol/frameList.d.ts.map +1 -0
- package/dist/browser/modules/protocol/index.d.ts +3 -0
- package/dist/browser/modules/protocol/index.d.ts.map +1 -0
- package/dist/browser/modules/protocol-test/buildRandomChain.d.ts +17 -0
- package/dist/browser/modules/protocol-test/buildRandomChain.d.ts.map +1 -0
- package/dist/browser/modules/protocol-test/buildRandomChainArchivist.d.ts +5 -0
- package/dist/browser/modules/protocol-test/buildRandomChainArchivist.d.ts.map +1 -0
- package/dist/browser/modules/protocol-test/buildRandomGenesisBlock.d.ts +12 -0
- package/dist/browser/modules/protocol-test/buildRandomGenesisBlock.d.ts.map +1 -0
- package/dist/browser/modules/protocol-test/buildRandomNextBlock.d.ts +11 -0
- package/dist/browser/modules/protocol-test/buildRandomNextBlock.d.ts.map +1 -0
- package/dist/browser/modules/protocol-test/index.d.ts +5 -0
- package/dist/browser/modules/protocol-test/index.d.ts.map +1 -0
- package/dist/browser/modules/services/BlockReward/EvmBlockRewardViewer.d.ts +22 -0
- package/dist/browser/modules/services/BlockReward/EvmBlockRewardViewer.d.ts.map +1 -0
- package/dist/browser/modules/services/BlockReward/index.d.ts +2 -0
- package/dist/browser/modules/services/BlockReward/index.d.ts.map +1 -0
- package/dist/browser/modules/services/ChainValidator/XyoValidator.d.ts +18 -0
- package/dist/browser/modules/services/ChainValidator/XyoValidator.d.ts.map +1 -0
- package/dist/browser/modules/services/ChainValidator/index.d.ts +3 -0
- package/dist/browser/modules/services/ChainValidator/index.d.ts.map +1 -0
- package/dist/browser/modules/services/ChainValidator/model/Validator.d.ts +7 -0
- package/dist/browser/modules/services/ChainValidator/model/Validator.d.ts.map +1 -0
- package/dist/browser/modules/services/ChainValidator/model/index.d.ts +2 -0
- package/dist/browser/modules/services/ChainValidator/model/index.d.ts.map +1 -0
- package/dist/browser/modules/services/Election/BaseElectionService.d.ts +21 -0
- package/dist/browser/modules/services/Election/BaseElectionService.d.ts.map +1 -0
- package/dist/browser/modules/services/Election/index.d.ts +2 -0
- package/dist/browser/modules/services/Election/index.d.ts.map +1 -0
- package/dist/browser/modules/services/NetworkStakeStepReward/BaseNetworkStakeStepRewardService.d.ts +35 -0
- package/dist/browser/modules/services/NetworkStakeStepReward/BaseNetworkStakeStepRewardService.d.ts.map +1 -0
- package/dist/browser/modules/services/NetworkStakeStepReward/index.d.ts +2 -0
- package/dist/browser/modules/services/NetworkStakeStepReward/index.d.ts.map +1 -0
- package/dist/browser/modules/services/StepStake/BaseStepStakeService.d.ts +16 -0
- package/dist/browser/modules/services/StepStake/BaseStepStakeService.d.ts.map +1 -0
- package/dist/browser/modules/services/StepStake/index.d.ts +2 -0
- package/dist/browser/modules/services/StepStake/index.d.ts.map +1 -0
- package/dist/browser/modules/services/implementation/head/createBootstrapHead.d.ts +4 -0
- package/dist/browser/modules/services/implementation/head/createBootstrapHead.d.ts.map +1 -0
- package/dist/browser/modules/services/implementation/head/index.d.ts +2 -0
- package/dist/browser/modules/services/implementation/head/index.d.ts.map +1 -0
- package/dist/browser/modules/services/implementation/index.d.ts +3 -0
- package/dist/browser/modules/services/implementation/index.d.ts.map +1 -0
- package/dist/browser/modules/services/implementation/processPendingBlocks.d.ts +48 -0
- package/dist/browser/modules/services/implementation/processPendingBlocks.d.ts.map +1 -0
- package/dist/browser/modules/services/index.d.ts +9 -0
- package/dist/browser/modules/services/index.d.ts.map +1 -0
- package/dist/browser/modules/services/model/Params.d.ts +8 -0
- package/dist/browser/modules/services/model/Params.d.ts.map +1 -0
- package/dist/browser/modules/services/model/index.d.ts +2 -0
- package/dist/browser/modules/services/model/index.d.ts.map +1 -0
- package/dist/browser/modules/services/simple/block/index.d.ts +2 -0
- package/dist/browser/modules/services/simple/block/index.d.ts.map +1 -0
- package/dist/browser/modules/services/simple/block/runner/SimpleBlockRunner.d.ts +152 -0
- package/dist/browser/modules/services/simple/block/runner/SimpleBlockRunner.d.ts.map +1 -0
- package/dist/browser/modules/services/simple/block/runner/generateTransactionFeeTransfers.d.ts +4 -0
- package/dist/browser/modules/services/simple/block/runner/generateTransactionFeeTransfers.d.ts.map +1 -0
- package/dist/browser/modules/services/simple/block/runner/identifyOffendingTransactions.d.ts +12 -0
- package/dist/browser/modules/services/simple/block/runner/identifyOffendingTransactions.d.ts.map +1 -0
- package/dist/browser/modules/services/simple/block/runner/index.d.ts +2 -0
- package/dist/browser/modules/services/simple/block/runner/index.d.ts.map +1 -0
- package/dist/browser/modules/services/simple/index.d.ts +2 -0
- package/dist/browser/modules/services/simple/index.d.ts.map +1 -0
- package/dist/browser/modules/telemetry/TelemetryProviders.d.ts +6 -0
- package/dist/browser/modules/telemetry/TelemetryProviders.d.ts.map +1 -0
- package/dist/browser/modules/telemetry/index-node.d.ts +3 -0
- package/dist/browser/modules/telemetry/index-node.d.ts.map +1 -0
- package/dist/browser/modules/telemetry/index.d.ts +3 -0
- package/dist/browser/modules/telemetry/index.d.ts.map +1 -0
- package/dist/browser/modules/telemetry/initTelemetry.d.ts +19 -0
- package/dist/browser/modules/telemetry/initTelemetry.d.ts.map +1 -0
- package/dist/browser/modules/telemetry/initTelemetryNode.d.ts +19 -0
- package/dist/browser/modules/telemetry/initTelemetryNode.d.ts.map +1 -0
- package/dist/browser/modules/utils/archivist/findFirstMatching.d.ts +11 -0
- package/dist/browser/modules/utils/archivist/findFirstMatching.d.ts.map +1 -0
- package/dist/browser/modules/utils/archivist/index.d.ts +4 -0
- package/dist/browser/modules/utils/archivist/index.d.ts.map +1 -0
- package/dist/browser/modules/utils/archivist/payloadsToArchivist.d.ts +3 -0
- package/dist/browser/modules/utils/archivist/payloadsToArchivist.d.ts.map +1 -0
- package/dist/browser/modules/utils/archivist/synchronizeArchivists.d.ts +12 -0
- package/dist/browser/modules/utils/archivist/synchronizeArchivists.d.ts.map +1 -0
- package/dist/browser/modules/utils/conversion/index.d.ts +2 -0
- package/dist/browser/modules/utils/conversion/index.d.ts.map +1 -0
- package/dist/browser/modules/utils/conversion/units.d.ts +3 -0
- package/dist/browser/modules/utils/conversion/units.d.ts.map +1 -0
- package/dist/browser/modules/utils/formatters/index.d.ts +2 -0
- package/dist/browser/modules/utils/formatters/index.d.ts.map +1 -0
- package/dist/browser/modules/utils/formatters/string/bigIntToFixedPointString.d.ts +2 -0
- package/dist/browser/modules/utils/formatters/string/bigIntToFixedPointString.d.ts.map +1 -0
- package/dist/browser/modules/utils/formatters/string/formatNumber.d.ts +8 -0
- package/dist/browser/modules/utils/formatters/string/formatNumber.d.ts.map +1 -0
- package/dist/browser/modules/utils/formatters/string/index.d.ts +4 -0
- package/dist/browser/modules/utils/formatters/string/index.d.ts.map +1 -0
- package/dist/browser/modules/utils/formatters/string/removeTrailingZeros.d.ts +2 -0
- package/dist/browser/modules/utils/formatters/string/removeTrailingZeros.d.ts.map +1 -0
- package/dist/browser/modules/utils/hex/hexToLastFourBytesInt.d.ts +3 -0
- package/dist/browser/modules/utils/hex/hexToLastFourBytesInt.d.ts.map +1 -0
- package/dist/browser/modules/utils/hex/index.d.ts +2 -0
- package/dist/browser/modules/utils/hex/index.d.ts.map +1 -0
- package/dist/browser/modules/utils/index.d.ts +9 -0
- package/dist/browser/modules/utils/index.d.ts.map +1 -0
- package/dist/browser/modules/utils/interval/IntervalMap.d.ts +14 -0
- package/dist/browser/modules/utils/interval/IntervalMap.d.ts.map +1 -0
- package/dist/browser/modules/utils/interval/IntervalTree.d.ts +89 -0
- package/dist/browser/modules/utils/interval/IntervalTree.d.ts.map +1 -0
- package/dist/browser/modules/utils/interval/index.d.ts +3 -0
- package/dist/browser/modules/utils/interval/index.d.ts.map +1 -0
- package/dist/browser/modules/utils/random/index.d.ts +2 -0
- package/dist/browser/modules/utils/random/index.d.ts.map +1 -0
- package/dist/browser/modules/utils/random/shuffleWithSeed.d.ts +2 -0
- package/dist/browser/modules/utils/random/shuffleWithSeed.d.ts.map +1 -0
- package/dist/browser/modules/utils/steps/calculator/index.d.ts +2 -0
- package/dist/browser/modules/utils/steps/calculator/index.d.ts.map +1 -0
- package/dist/browser/modules/utils/steps/calculator/window/index.d.ts +2 -0
- package/dist/browser/modules/utils/steps/calculator/window/index.d.ts.map +1 -0
- package/dist/browser/modules/utils/steps/calculator/window/stepWindowCalculatorFromBlock.d.ts +8 -0
- package/dist/browser/modules/utils/steps/calculator/window/stepWindowCalculatorFromBlock.d.ts.map +1 -0
- package/dist/browser/modules/utils/steps/index.d.ts +2 -0
- package/dist/browser/modules/utils/steps/index.d.ts.map +1 -0
- package/dist/browser/modules/utils/telemetry/XyoConsoleSpanExporter.d.ts +14 -0
- package/dist/browser/modules/utils/telemetry/XyoConsoleSpanExporter.d.ts.map +1 -0
- package/dist/browser/modules/utils/telemetry/index.d.ts +3 -0
- package/dist/browser/modules/utils/telemetry/index.d.ts.map +1 -0
- package/dist/browser/modules/utils/telemetry/startupSpanAsync.d.ts +14 -0
- package/dist/browser/modules/utils/telemetry/startupSpanAsync.d.ts.map +1 -0
- package/dist/browser/modules/validation/block/index.d.ts +3 -0
- package/dist/browser/modules/validation/block/index.d.ts.map +1 -0
- package/dist/browser/modules/validation/block/validateBlock.d.ts +4 -0
- package/dist/browser/modules/validation/block/validateBlock.d.ts.map +1 -0
- package/dist/browser/modules/validation/block/validators/AllowedPayloadSchemas.d.ts +3 -0
- package/dist/browser/modules/validation/block/validators/AllowedPayloadSchemas.d.ts.map +1 -0
- package/dist/browser/modules/validation/block/validators/BoundWitness.d.ts +11 -0
- package/dist/browser/modules/validation/block/validators/BoundWitness.d.ts.map +1 -0
- package/dist/browser/modules/validation/block/validators/Fields.d.ts +3 -0
- package/dist/browser/modules/validation/block/validators/Fields.d.ts.map +1 -0
- package/dist/browser/modules/validation/block/validators/JsonSchema.d.ts +4 -0
- package/dist/browser/modules/validation/block/validators/JsonSchema.d.ts.map +1 -0
- package/dist/browser/modules/validation/block/validators/PreviousHash.d.ts +3 -0
- package/dist/browser/modules/validation/block/validators/PreviousHash.d.ts.map +1 -0
- package/dist/browser/modules/validation/block/validators/index.d.ts +6 -0
- package/dist/browser/modules/validation/block/validators/index.d.ts.map +1 -0
- package/dist/browser/modules/validation/elevatedPayload/index.d.ts +2 -0
- package/dist/browser/modules/validation/elevatedPayload/index.d.ts.map +1 -0
- package/dist/browser/modules/validation/elevatedPayload/lib/index.d.ts +7 -0
- package/dist/browser/modules/validation/elevatedPayload/lib/index.d.ts.map +1 -0
- package/dist/browser/modules/validation/elevatedPayload/lib/isElevatedFromBlock.d.ts +4 -0
- package/dist/browser/modules/validation/elevatedPayload/lib/isElevatedFromBlock.d.ts.map +1 -0
- package/dist/browser/modules/validation/elevatedPayload/lib/validateElevatedFromBlock.d.ts +3 -0
- package/dist/browser/modules/validation/elevatedPayload/lib/validateElevatedFromBlock.d.ts.map +1 -0
- package/dist/browser/modules/validation/elevatedPayload/lib/validateElevatedFromTransaction.d.ts +3 -0
- package/dist/browser/modules/validation/elevatedPayload/lib/validateElevatedFromTransaction.d.ts.map +1 -0
- package/dist/browser/modules/validation/elevatedPayload/lib/validateIncludedInBlock.d.ts +4 -0
- package/dist/browser/modules/validation/elevatedPayload/lib/validateIncludedInBlock.d.ts.map +1 -0
- package/dist/browser/modules/validation/elevatedPayload/lib/validateTransactionInBlock.d.ts +3 -0
- package/dist/browser/modules/validation/elevatedPayload/lib/validateTransactionInBlock.d.ts.map +1 -0
- package/dist/browser/modules/validation/elevatedPayload/lib/validateTypedPayloadInBlock.d.ts +5 -0
- package/dist/browser/modules/validation/elevatedPayload/lib/validateTypedPayloadInBlock.d.ts.map +1 -0
- package/dist/browser/modules/validation/elevatedPayload/payloads/index.d.ts +9 -0
- package/dist/browser/modules/validation/elevatedPayload/payloads/index.d.ts.map +1 -0
- package/dist/browser/modules/validation/elevatedPayload/payloads/validateBridgeDestinationObservationInBlock.d.ts +3 -0
- package/dist/browser/modules/validation/elevatedPayload/payloads/validateBridgeDestinationObservationInBlock.d.ts.map +1 -0
- package/dist/browser/modules/validation/elevatedPayload/payloads/validateBridgeIntentInBlock.d.ts +3 -0
- package/dist/browser/modules/validation/elevatedPayload/payloads/validateBridgeIntentInBlock.d.ts.map +1 -0
- package/dist/browser/modules/validation/elevatedPayload/payloads/validateBridgeSourceObservationInBlock.d.ts +3 -0
- package/dist/browser/modules/validation/elevatedPayload/payloads/validateBridgeSourceObservationInBlock.d.ts.map +1 -0
- package/dist/browser/modules/validation/elevatedPayload/payloads/validateChainStakeIntentInBlock.d.ts +3 -0
- package/dist/browser/modules/validation/elevatedPayload/payloads/validateChainStakeIntentInBlock.d.ts.map +1 -0
- package/dist/browser/modules/validation/elevatedPayload/payloads/validateHashInBlock.d.ts +3 -0
- package/dist/browser/modules/validation/elevatedPayload/payloads/validateHashInBlock.d.ts.map +1 -0
- package/dist/browser/modules/validation/elevatedPayload/payloads/validateSchemaInBlock.d.ts +3 -0
- package/dist/browser/modules/validation/elevatedPayload/payloads/validateSchemaInBlock.d.ts.map +1 -0
- package/dist/browser/modules/validation/elevatedPayload/payloads/validateTimeInBlock.d.ts +3 -0
- package/dist/browser/modules/validation/elevatedPayload/payloads/validateTimeInBlock.d.ts.map +1 -0
- package/dist/browser/modules/validation/elevatedPayload/payloads/validateTransferInBlock.d.ts +3 -0
- package/dist/browser/modules/validation/elevatedPayload/payloads/validateTransferInBlock.d.ts.map +1 -0
- package/dist/browser/modules/validation/elevatedPayload/validatePayloadInBlock.d.ts +3 -0
- package/dist/browser/modules/validation/elevatedPayload/validatePayloadInBlock.d.ts.map +1 -0
- package/dist/browser/modules/validation/hydratedBlock/index.d.ts +3 -0
- package/dist/browser/modules/validation/hydratedBlock/index.d.ts.map +1 -0
- package/dist/browser/modules/validation/hydratedBlock/validateHydratedBlock.d.ts +5 -0
- package/dist/browser/modules/validation/hydratedBlock/validateHydratedBlock.d.ts.map +1 -0
- package/dist/browser/modules/validation/hydratedBlock/validators/Payloads.d.ts +3 -0
- package/dist/browser/modules/validation/hydratedBlock/validators/Payloads.d.ts.map +1 -0
- package/dist/browser/modules/validation/hydratedBlock/validators/TransactionTransfersInBlock.d.ts +10 -0
- package/dist/browser/modules/validation/hydratedBlock/validators/TransactionTransfersInBlock.d.ts.map +1 -0
- package/dist/browser/modules/validation/hydratedBlock/validators/index.d.ts +3 -0
- package/dist/browser/modules/validation/hydratedBlock/validators/index.d.ts.map +1 -0
- package/dist/browser/modules/validation/hydratedBlockState/index.d.ts +3 -0
- package/dist/browser/modules/validation/hydratedBlockState/index.d.ts.map +1 -0
- package/dist/browser/modules/validation/hydratedBlockState/validateHydratedBlockState.d.ts +3 -0
- package/dist/browser/modules/validation/hydratedBlockState/validateHydratedBlockState.d.ts.map +1 -0
- package/dist/browser/modules/validation/hydratedBlockState/validators/RequiredBalance.d.ts +3 -0
- package/dist/browser/modules/validation/hydratedBlockState/validators/RequiredBalance.d.ts.map +1 -0
- package/dist/browser/modules/validation/hydratedBlockState/validators/index.d.ts +2 -0
- package/dist/browser/modules/validation/hydratedBlockState/validators/index.d.ts.map +1 -0
- package/dist/browser/modules/validation/hydratedTransactionState/index.d.ts +3 -0
- package/dist/browser/modules/validation/hydratedTransactionState/index.d.ts.map +1 -0
- package/dist/browser/modules/validation/hydratedTransactionState/validateHydratedTransactionState.d.ts +3 -0
- package/dist/browser/modules/validation/hydratedTransactionState/validateHydratedTransactionState.d.ts.map +1 -0
- package/dist/browser/modules/validation/hydratedTransactionState/validators/RequiredBalance.d.ts +3 -0
- package/dist/browser/modules/validation/hydratedTransactionState/validators/RequiredBalance.d.ts.map +1 -0
- package/dist/browser/modules/validation/hydratedTransactionState/validators/index.d.ts +2 -0
- package/dist/browser/modules/validation/hydratedTransactionState/validators/index.d.ts.map +1 -0
- package/dist/browser/modules/validation/index.d.ts +5 -0
- package/dist/browser/modules/validation/index.d.ts.map +1 -0
- package/dist/browser/modules/wrappers/block/HydratedBlock.d.ts +34 -0
- package/dist/browser/modules/wrappers/block/HydratedBlock.d.ts.map +1 -0
- package/dist/browser/modules/wrappers/block/index.d.ts +2 -0
- package/dist/browser/modules/wrappers/block/index.d.ts.map +1 -0
- package/dist/browser/modules/wrappers/index.d.ts +3 -0
- package/dist/browser/modules/wrappers/index.d.ts.map +1 -0
- package/dist/browser/modules.d.ts +2 -0
- package/dist/browser/modules.d.ts.map +1 -0
- package/dist/browser/node/telemetry.d.ts +2 -0
- package/dist/browser/node/telemetry.d.ts.map +1 -0
- package/dist/browser/protocol-test.d.ts +2 -0
- package/dist/browser/protocol-test.d.ts.map +1 -0
- package/dist/browser/protocol.d.ts +2 -0
- package/dist/browser/protocol.d.ts.map +1 -0
- package/dist/browser/services.d.ts +2 -0
- package/dist/browser/services.d.ts.map +1 -0
- package/dist/browser/telemetry.d.ts +2 -0
- package/dist/browser/telemetry.d.ts.map +1 -0
- package/dist/browser/telemetry.mjs +120 -0
- package/dist/browser/telemetry.mjs.map +7 -0
- package/dist/browser/utils.d.ts +2 -0
- package/dist/browser/utils.d.ts.map +1 -0
- package/dist/browser/validation.d.ts +2 -0
- package/dist/browser/validation.d.ts.map +1 -0
- package/dist/browser/wrappers.d.ts +2 -0
- package/dist/browser/wrappers.d.ts.map +1 -0
- package/dist/neutral/analyze.d.ts +2 -0
- package/dist/neutral/analyze.d.ts.map +1 -0
- package/dist/neutral/analyze.mjs +381 -0
- package/dist/neutral/analyze.mjs.map +7 -0
- package/dist/neutral/browser/telemetry.d.ts +2 -0
- package/dist/neutral/browser/telemetry.d.ts.map +1 -0
- package/dist/neutral/ethereum.d.ts +2 -0
- package/dist/neutral/ethereum.d.ts.map +1 -0
- package/dist/neutral/ethereum.mjs +1104 -0
- package/dist/neutral/ethereum.mjs.map +7 -0
- package/dist/neutral/index.d.ts +9 -9
- package/dist/neutral/index.d.ts.map +1 -1
- package/dist/neutral/index.mjs +9 -9
- package/dist/neutral/index.mjs.map +2 -2
- package/dist/neutral/modules/analyze/BalanceAnalyzer/BalanceAnalyzer.d.ts +19 -0
- package/dist/neutral/modules/analyze/BalanceAnalyzer/BalanceAnalyzer.d.ts.map +1 -0
- package/dist/neutral/modules/analyze/BalanceAnalyzer/ChainSummaryBalances.d.ts +16 -0
- package/dist/neutral/modules/analyze/BalanceAnalyzer/ChainSummaryBalances.d.ts.map +1 -0
- package/dist/neutral/modules/analyze/BalanceAnalyzer/index.d.ts +3 -0
- package/dist/neutral/modules/analyze/BalanceAnalyzer/index.d.ts.map +1 -0
- package/dist/neutral/modules/analyze/ChainFinalizer.d.ts +20 -0
- package/dist/neutral/modules/analyze/ChainFinalizer.d.ts.map +1 -0
- package/dist/neutral/modules/analyze/ChainHeadSelector.d.ts +34 -0
- package/dist/neutral/modules/analyze/ChainHeadSelector.d.ts.map +1 -0
- package/dist/neutral/modules/analyze/TransferAnalyzer/ChainSummaryTransfers.d.ts +16 -0
- package/dist/neutral/modules/analyze/TransferAnalyzer/ChainSummaryTransfers.d.ts.map +1 -0
- package/dist/neutral/modules/analyze/TransferAnalyzer/TransferAnalyzer.d.ts +15 -0
- package/dist/neutral/modules/analyze/TransferAnalyzer/TransferAnalyzer.d.ts.map +1 -0
- package/dist/neutral/modules/analyze/TransferAnalyzer/index.d.ts +3 -0
- package/dist/neutral/modules/analyze/TransferAnalyzer/index.d.ts.map +1 -0
- package/dist/neutral/modules/analyze/analyzeChain.d.ts +5 -0
- package/dist/neutral/modules/analyze/analyzeChain.d.ts.map +1 -0
- package/dist/neutral/modules/analyze/index.d.ts +7 -0
- package/dist/neutral/modules/analyze/index.d.ts.map +1 -0
- package/dist/neutral/modules/analyze/producer/ChainProducersAnalyzer.d.ts +12 -0
- package/dist/neutral/modules/analyze/producer/ChainProducersAnalyzer.d.ts.map +1 -0
- package/dist/neutral/modules/analyze/producer/ChainStakeIntentAnalyzer.d.ts +14 -0
- package/dist/neutral/modules/analyze/producer/ChainStakeIntentAnalyzer.d.ts.map +1 -0
- package/dist/neutral/modules/analyze/producer/ChainSummaryProducers.d.ts +19 -0
- package/dist/neutral/modules/analyze/producer/ChainSummaryProducers.d.ts.map +1 -0
- package/dist/neutral/modules/analyze/producer/ChainSummaryStakeIntent.d.ts +15 -0
- package/dist/neutral/modules/analyze/producer/ChainSummaryStakeIntent.d.ts.map +1 -0
- package/dist/neutral/modules/analyze/producer/index.d.ts +5 -0
- package/dist/neutral/modules/analyze/producer/index.d.ts.map +1 -0
- package/dist/neutral/modules/ethereum/BaseEthProvider.d.ts +56 -0
- package/dist/neutral/modules/ethereum/BaseEthProvider.d.ts.map +1 -0
- package/dist/neutral/modules/ethereum/block/index.d.ts +2 -0
- package/dist/neutral/modules/ethereum/block/index.d.ts.map +1 -0
- package/dist/neutral/modules/ethereum/block/rate/blockRate.d.ts +9 -0
- package/dist/neutral/modules/ethereum/block/rate/blockRate.d.ts.map +1 -0
- package/dist/neutral/modules/ethereum/block/rate/index.d.ts +3 -0
- package/dist/neutral/modules/ethereum/block/rate/index.d.ts.map +1 -0
- package/dist/neutral/modules/ethereum/block/rate/timeRate.d.ts +4 -0
- package/dist/neutral/modules/ethereum/block/rate/timeRate.d.ts.map +1 -0
- package/dist/neutral/modules/ethereum/createChain.d.ts +11 -0
- package/dist/neutral/modules/ethereum/createChain.d.ts.map +1 -0
- package/dist/neutral/modules/ethereum/createChainContract.d.ts +9 -0
- package/dist/neutral/modules/ethereum/createChainContract.d.ts.map +1 -0
- package/dist/neutral/modules/ethereum/createChainRewardsContract.d.ts +5 -0
- package/dist/neutral/modules/ethereum/createChainRewardsContract.d.ts.map +1 -0
- package/dist/neutral/modules/ethereum/drivers/EvmStakeEventZod.d.ts +245 -0
- package/dist/neutral/modules/ethereum/drivers/EvmStakeEventZod.d.ts.map +1 -0
- package/dist/neutral/modules/ethereum/drivers/EvmStakeEventsViewer.d.ts +31 -0
- package/dist/neutral/modules/ethereum/drivers/EvmStakeEventsViewer.d.ts.map +1 -0
- package/dist/neutral/modules/ethereum/drivers/EvmStakeViewer.d.ts +42 -0
- package/dist/neutral/modules/ethereum/drivers/EvmStakeViewer.d.ts.map +1 -0
- package/dist/neutral/modules/ethereum/drivers/index.d.ts +4 -0
- package/dist/neutral/modules/ethereum/drivers/index.d.ts.map +1 -0
- package/dist/neutral/modules/ethereum/ethereum.d.ts +6 -0
- package/dist/neutral/modules/ethereum/ethereum.d.ts.map +1 -0
- package/dist/neutral/modules/ethereum/index.d.ts +10 -0
- package/dist/neutral/modules/ethereum/index.d.ts.map +1 -0
- package/dist/neutral/modules/ethereum/model/ReturnTypeForOverload.d.ts +12 -0
- package/dist/neutral/modules/ethereum/model/ReturnTypeForOverload.d.ts.map +1 -0
- package/dist/neutral/modules/ethereum/model/index.d.ts +2 -0
- package/dist/neutral/modules/ethereum/model/index.d.ts.map +1 -0
- package/dist/neutral/modules/ethereum/nextContractAddress.d.ts +24 -0
- package/dist/neutral/modules/ethereum/nextContractAddress.d.ts.map +1 -0
- package/dist/neutral/modules/ethereum/providers/AbstractEvmProvider.d.ts +15 -0
- package/dist/neutral/modules/ethereum/providers/AbstractEvmProvider.d.ts.map +1 -0
- package/dist/neutral/modules/ethereum/providers/AbstractEvmRunner.d.ts +10 -0
- package/dist/neutral/modules/ethereum/providers/AbstractEvmRunner.d.ts.map +1 -0
- package/dist/neutral/modules/ethereum/providers/AbstractEvmViewer.d.ts +8 -0
- package/dist/neutral/modules/ethereum/providers/AbstractEvmViewer.d.ts.map +1 -0
- package/dist/neutral/modules/ethereum/providers/EvmChainContractViewer.d.ts +37 -0
- package/dist/neutral/modules/ethereum/providers/EvmChainContractViewer.d.ts.map +1 -0
- package/dist/neutral/modules/ethereum/providers/EvmStakeRunner.d.ts +20 -0
- package/dist/neutral/modules/ethereum/providers/EvmStakeRunner.d.ts.map +1 -0
- package/dist/neutral/modules/ethereum/providers/EvmStakeTotalsViewer.d.ts +27 -0
- package/dist/neutral/modules/ethereum/providers/EvmStakeTotalsViewer.d.ts.map +1 -0
- package/dist/neutral/modules/ethereum/providers/index.d.ts +7 -0
- package/dist/neutral/modules/ethereum/providers/index.d.ts.map +1 -0
- package/dist/neutral/modules/modules/diviners/BlockReward/Abstract/Config.d.ts +10 -0
- package/dist/neutral/modules/modules/diviners/BlockReward/Abstract/Config.d.ts.map +1 -0
- package/dist/neutral/modules/modules/diviners/BlockReward/Abstract/Diviner.d.ts +10 -0
- package/dist/neutral/modules/modules/diviners/BlockReward/Abstract/Diviner.d.ts.map +1 -0
- package/dist/neutral/modules/modules/diviners/BlockReward/Abstract/Params.d.ts +5 -0
- package/dist/neutral/modules/modules/diviners/BlockReward/Abstract/Params.d.ts.map +1 -0
- package/dist/neutral/modules/modules/diviners/BlockReward/Abstract/Payload.d.ts +32 -0
- package/dist/neutral/modules/modules/diviners/BlockReward/Abstract/Payload.d.ts.map +1 -0
- package/dist/neutral/modules/modules/diviners/BlockReward/Abstract/index.d.ts +5 -0
- package/dist/neutral/modules/modules/diviners/BlockReward/Abstract/index.d.ts.map +1 -0
- package/dist/neutral/modules/modules/diviners/BlockReward/FixedPercentage/Config.d.ts +19 -0
- package/dist/neutral/modules/modules/diviners/BlockReward/FixedPercentage/Config.d.ts.map +1 -0
- package/dist/neutral/modules/modules/diviners/BlockReward/FixedPercentage/Diviner.d.ts +27 -0
- package/dist/neutral/modules/modules/diviners/BlockReward/FixedPercentage/Diviner.d.ts.map +1 -0
- package/dist/neutral/modules/modules/diviners/BlockReward/FixedPercentage/Params.d.ts +8 -0
- package/dist/neutral/modules/modules/diviners/BlockReward/FixedPercentage/Params.d.ts.map +1 -0
- package/dist/neutral/modules/modules/diviners/BlockReward/FixedPercentage/index.d.ts +4 -0
- package/dist/neutral/modules/modules/diviners/BlockReward/FixedPercentage/index.d.ts.map +1 -0
- package/dist/neutral/modules/modules/diviners/BlockReward/index.d.ts +3 -0
- package/dist/neutral/modules/modules/diviners/BlockReward/index.d.ts.map +1 -0
- package/dist/neutral/modules/modules/diviners/BlockValidationDiviner.d.ts +38 -0
- package/dist/neutral/modules/modules/diviners/BlockValidationDiviner.d.ts.map +1 -0
- package/dist/neutral/modules/modules/diviners/HeadValidationDiviner.d.ts +68 -0
- package/dist/neutral/modules/modules/diviners/HeadValidationDiviner.d.ts.map +1 -0
- package/dist/neutral/modules/modules/diviners/index.d.ts +4 -0
- package/dist/neutral/modules/modules/diviners/index.d.ts.map +1 -0
- package/dist/neutral/modules/modules/index.d.ts +3 -0
- package/dist/neutral/modules/modules/index.d.ts.map +1 -0
- package/dist/neutral/modules/modules/witnesses/ArchivistNextWitness.d.ts +20 -0
- package/dist/neutral/modules/modules/witnesses/ArchivistNextWitness.d.ts.map +1 -0
- package/dist/neutral/modules/modules/witnesses/NetworkStake/NetworkStake.d.ts +15 -0
- package/dist/neutral/modules/modules/witnesses/NetworkStake/NetworkStake.d.ts.map +1 -0
- package/dist/neutral/modules/modules/witnesses/NetworkStake/NetworkStakeObserve.d.ts +15 -0
- package/dist/neutral/modules/modules/witnesses/NetworkStake/NetworkStakeObserve.d.ts.map +1 -0
- package/dist/neutral/modules/modules/witnesses/NetworkStake/index.d.ts +3 -0
- package/dist/neutral/modules/modules/witnesses/NetworkStake/index.d.ts.map +1 -0
- package/dist/neutral/modules/modules/witnesses/index.d.ts +3 -0
- package/dist/neutral/modules/modules/witnesses/index.d.ts.map +1 -0
- package/dist/neutral/modules/protocol/block/BuildBlockOptions.d.ts +26 -0
- package/dist/neutral/modules/protocol/block/BuildBlockOptions.d.ts.map +1 -0
- package/dist/neutral/modules/protocol/block/buildBlock.d.ts +4 -0
- package/dist/neutral/modules/protocol/block/buildBlock.d.ts.map +1 -0
- package/dist/neutral/modules/protocol/block/buildGenesisBlock.d.ts +8 -0
- package/dist/neutral/modules/protocol/block/buildGenesisBlock.d.ts.map +1 -0
- package/dist/neutral/modules/protocol/block/buildNextBlock.d.ts +9 -0
- package/dist/neutral/modules/protocol/block/buildNextBlock.d.ts.map +1 -0
- package/dist/neutral/modules/protocol/block/createGenesisBlock.d.ts +4 -0
- package/dist/neutral/modules/protocol/block/createGenesisBlock.d.ts.map +1 -0
- package/dist/neutral/modules/protocol/block/createProducerChainStakeIntentTransaction.d.ts +15 -0
- package/dist/neutral/modules/protocol/block/createProducerChainStakeIntentTransaction.d.ts.map +1 -0
- package/dist/neutral/modules/protocol/block/index.d.ts +8 -0
- package/dist/neutral/modules/protocol/block/index.d.ts.map +1 -0
- package/dist/neutral/modules/protocol/block/sort.d.ts +7 -0
- package/dist/neutral/modules/protocol/block/sort.d.ts.map +1 -0
- package/dist/neutral/modules/protocol/frameList.d.ts +5 -0
- package/dist/neutral/modules/protocol/frameList.d.ts.map +1 -0
- package/dist/neutral/modules/protocol/index.d.ts +3 -0
- package/dist/neutral/modules/protocol/index.d.ts.map +1 -0
- package/dist/neutral/modules/protocol-test/buildRandomChain.d.ts +17 -0
- package/dist/neutral/modules/protocol-test/buildRandomChain.d.ts.map +1 -0
- package/dist/neutral/modules/protocol-test/buildRandomChainArchivist.d.ts +5 -0
- package/dist/neutral/modules/protocol-test/buildRandomChainArchivist.d.ts.map +1 -0
- package/dist/neutral/modules/protocol-test/buildRandomGenesisBlock.d.ts +12 -0
- package/dist/neutral/modules/protocol-test/buildRandomGenesisBlock.d.ts.map +1 -0
- package/dist/neutral/modules/protocol-test/buildRandomNextBlock.d.ts +11 -0
- package/dist/neutral/modules/protocol-test/buildRandomNextBlock.d.ts.map +1 -0
- package/dist/neutral/modules/protocol-test/index.d.ts +5 -0
- package/dist/neutral/modules/protocol-test/index.d.ts.map +1 -0
- package/dist/neutral/modules/services/BlockReward/EvmBlockRewardViewer.d.ts +22 -0
- package/dist/neutral/modules/services/BlockReward/EvmBlockRewardViewer.d.ts.map +1 -0
- package/dist/neutral/modules/services/BlockReward/index.d.ts +2 -0
- package/dist/neutral/modules/services/BlockReward/index.d.ts.map +1 -0
- package/dist/neutral/modules/services/ChainValidator/XyoValidator.d.ts +18 -0
- package/dist/neutral/modules/services/ChainValidator/XyoValidator.d.ts.map +1 -0
- package/dist/neutral/modules/services/ChainValidator/index.d.ts +3 -0
- package/dist/neutral/modules/services/ChainValidator/index.d.ts.map +1 -0
- package/dist/neutral/modules/services/ChainValidator/model/Validator.d.ts +7 -0
- package/dist/neutral/modules/services/ChainValidator/model/Validator.d.ts.map +1 -0
- package/dist/neutral/modules/services/ChainValidator/model/index.d.ts +2 -0
- package/dist/neutral/modules/services/ChainValidator/model/index.d.ts.map +1 -0
- package/dist/neutral/modules/services/Election/BaseElectionService.d.ts +21 -0
- package/dist/neutral/modules/services/Election/BaseElectionService.d.ts.map +1 -0
- package/dist/neutral/modules/services/Election/index.d.ts +2 -0
- package/dist/neutral/modules/services/Election/index.d.ts.map +1 -0
- package/dist/neutral/modules/services/NetworkStakeStepReward/BaseNetworkStakeStepRewardService.d.ts +35 -0
- package/dist/neutral/modules/services/NetworkStakeStepReward/BaseNetworkStakeStepRewardService.d.ts.map +1 -0
- package/dist/neutral/modules/services/NetworkStakeStepReward/index.d.ts +2 -0
- package/dist/neutral/modules/services/NetworkStakeStepReward/index.d.ts.map +1 -0
- package/dist/neutral/modules/services/StepStake/BaseStepStakeService.d.ts +16 -0
- package/dist/neutral/modules/services/StepStake/BaseStepStakeService.d.ts.map +1 -0
- package/dist/neutral/modules/services/StepStake/index.d.ts +2 -0
- package/dist/neutral/modules/services/StepStake/index.d.ts.map +1 -0
- package/dist/neutral/modules/services/implementation/head/createBootstrapHead.d.ts +4 -0
- package/dist/neutral/modules/services/implementation/head/createBootstrapHead.d.ts.map +1 -0
- package/dist/neutral/modules/services/implementation/head/index.d.ts +2 -0
- package/dist/neutral/modules/services/implementation/head/index.d.ts.map +1 -0
- package/dist/neutral/modules/services/implementation/index.d.ts +3 -0
- package/dist/neutral/modules/services/implementation/index.d.ts.map +1 -0
- package/dist/neutral/modules/services/implementation/processPendingBlocks.d.ts +48 -0
- package/dist/neutral/modules/services/implementation/processPendingBlocks.d.ts.map +1 -0
- package/dist/neutral/modules/services/index.d.ts +9 -0
- package/dist/neutral/modules/services/index.d.ts.map +1 -0
- package/dist/neutral/modules/services/model/Params.d.ts +8 -0
- package/dist/neutral/modules/services/model/Params.d.ts.map +1 -0
- package/dist/neutral/modules/services/model/index.d.ts +2 -0
- package/dist/neutral/modules/services/model/index.d.ts.map +1 -0
- package/dist/neutral/modules/services/simple/block/index.d.ts +2 -0
- package/dist/neutral/modules/services/simple/block/index.d.ts.map +1 -0
- package/dist/neutral/modules/services/simple/block/runner/SimpleBlockRunner.d.ts +152 -0
- package/dist/neutral/modules/services/simple/block/runner/SimpleBlockRunner.d.ts.map +1 -0
- package/dist/neutral/modules/services/simple/block/runner/generateTransactionFeeTransfers.d.ts +4 -0
- package/dist/neutral/modules/services/simple/block/runner/generateTransactionFeeTransfers.d.ts.map +1 -0
- package/dist/neutral/modules/services/simple/block/runner/identifyOffendingTransactions.d.ts +12 -0
- package/dist/neutral/modules/services/simple/block/runner/identifyOffendingTransactions.d.ts.map +1 -0
- package/dist/neutral/modules/services/simple/block/runner/index.d.ts +2 -0
- package/dist/neutral/modules/services/simple/block/runner/index.d.ts.map +1 -0
- package/dist/neutral/modules/services/simple/index.d.ts +2 -0
- package/dist/neutral/modules/services/simple/index.d.ts.map +1 -0
- package/dist/neutral/modules/telemetry/TelemetryProviders.d.ts +6 -0
- package/dist/neutral/modules/telemetry/TelemetryProviders.d.ts.map +1 -0
- package/dist/neutral/modules/telemetry/index-node.d.ts +3 -0
- package/dist/neutral/modules/telemetry/index-node.d.ts.map +1 -0
- package/dist/neutral/modules/telemetry/index.d.ts +3 -0
- package/dist/neutral/modules/telemetry/index.d.ts.map +1 -0
- package/dist/neutral/modules/telemetry/initTelemetry.d.ts +19 -0
- package/dist/neutral/modules/telemetry/initTelemetry.d.ts.map +1 -0
- package/dist/neutral/modules/telemetry/initTelemetryNode.d.ts +19 -0
- package/dist/neutral/modules/telemetry/initTelemetryNode.d.ts.map +1 -0
- package/dist/neutral/modules/utils/archivist/findFirstMatching.d.ts +11 -0
- package/dist/neutral/modules/utils/archivist/findFirstMatching.d.ts.map +1 -0
- package/dist/neutral/modules/utils/archivist/index.d.ts +4 -0
- package/dist/neutral/modules/utils/archivist/index.d.ts.map +1 -0
- package/dist/neutral/modules/utils/archivist/payloadsToArchivist.d.ts +3 -0
- package/dist/neutral/modules/utils/archivist/payloadsToArchivist.d.ts.map +1 -0
- package/dist/neutral/modules/utils/archivist/synchronizeArchivists.d.ts +12 -0
- package/dist/neutral/modules/utils/archivist/synchronizeArchivists.d.ts.map +1 -0
- package/dist/neutral/modules/utils/conversion/index.d.ts +2 -0
- package/dist/neutral/modules/utils/conversion/index.d.ts.map +1 -0
- package/dist/neutral/modules/utils/conversion/units.d.ts +3 -0
- package/dist/neutral/modules/utils/conversion/units.d.ts.map +1 -0
- package/dist/neutral/modules/utils/formatters/index.d.ts +2 -0
- package/dist/neutral/modules/utils/formatters/index.d.ts.map +1 -0
- package/dist/neutral/modules/utils/formatters/string/bigIntToFixedPointString.d.ts +2 -0
- package/dist/neutral/modules/utils/formatters/string/bigIntToFixedPointString.d.ts.map +1 -0
- package/dist/neutral/modules/utils/formatters/string/formatNumber.d.ts +8 -0
- package/dist/neutral/modules/utils/formatters/string/formatNumber.d.ts.map +1 -0
- package/dist/neutral/modules/utils/formatters/string/index.d.ts +4 -0
- package/dist/neutral/modules/utils/formatters/string/index.d.ts.map +1 -0
- package/dist/neutral/modules/utils/formatters/string/removeTrailingZeros.d.ts +2 -0
- package/dist/neutral/modules/utils/formatters/string/removeTrailingZeros.d.ts.map +1 -0
- package/dist/neutral/modules/utils/hex/hexToLastFourBytesInt.d.ts +3 -0
- package/dist/neutral/modules/utils/hex/hexToLastFourBytesInt.d.ts.map +1 -0
- package/dist/neutral/modules/utils/hex/index.d.ts +2 -0
- package/dist/neutral/modules/utils/hex/index.d.ts.map +1 -0
- package/dist/neutral/modules/utils/index.d.ts +9 -0
- package/dist/neutral/modules/utils/index.d.ts.map +1 -0
- package/dist/neutral/modules/utils/interval/IntervalMap.d.ts +14 -0
- package/dist/neutral/modules/utils/interval/IntervalMap.d.ts.map +1 -0
- package/dist/neutral/modules/utils/interval/IntervalTree.d.ts +89 -0
- package/dist/neutral/modules/utils/interval/IntervalTree.d.ts.map +1 -0
- package/dist/neutral/modules/utils/interval/index.d.ts +3 -0
- package/dist/neutral/modules/utils/interval/index.d.ts.map +1 -0
- package/dist/neutral/modules/utils/random/index.d.ts +2 -0
- package/dist/neutral/modules/utils/random/index.d.ts.map +1 -0
- package/dist/neutral/modules/utils/random/shuffleWithSeed.d.ts +2 -0
- package/dist/neutral/modules/utils/random/shuffleWithSeed.d.ts.map +1 -0
- package/dist/neutral/modules/utils/steps/calculator/index.d.ts +2 -0
- package/dist/neutral/modules/utils/steps/calculator/index.d.ts.map +1 -0
- package/dist/neutral/modules/utils/steps/calculator/window/index.d.ts +2 -0
- package/dist/neutral/modules/utils/steps/calculator/window/index.d.ts.map +1 -0
- package/dist/neutral/modules/utils/steps/calculator/window/stepWindowCalculatorFromBlock.d.ts +8 -0
- package/dist/neutral/modules/utils/steps/calculator/window/stepWindowCalculatorFromBlock.d.ts.map +1 -0
- package/dist/neutral/modules/utils/steps/index.d.ts +2 -0
- package/dist/neutral/modules/utils/steps/index.d.ts.map +1 -0
- package/dist/neutral/modules/utils/telemetry/XyoConsoleSpanExporter.d.ts +14 -0
- package/dist/neutral/modules/utils/telemetry/XyoConsoleSpanExporter.d.ts.map +1 -0
- package/dist/neutral/modules/utils/telemetry/index.d.ts +3 -0
- package/dist/neutral/modules/utils/telemetry/index.d.ts.map +1 -0
- package/dist/neutral/modules/utils/telemetry/startupSpanAsync.d.ts +14 -0
- package/dist/neutral/modules/utils/telemetry/startupSpanAsync.d.ts.map +1 -0
- package/dist/neutral/modules/validation/block/index.d.ts +3 -0
- package/dist/neutral/modules/validation/block/index.d.ts.map +1 -0
- package/dist/neutral/modules/validation/block/validateBlock.d.ts +4 -0
- package/dist/neutral/modules/validation/block/validateBlock.d.ts.map +1 -0
- package/dist/neutral/modules/validation/block/validators/AllowedPayloadSchemas.d.ts +3 -0
- package/dist/neutral/modules/validation/block/validators/AllowedPayloadSchemas.d.ts.map +1 -0
- package/dist/neutral/modules/validation/block/validators/BoundWitness.d.ts +11 -0
- package/dist/neutral/modules/validation/block/validators/BoundWitness.d.ts.map +1 -0
- package/dist/neutral/modules/validation/block/validators/Fields.d.ts +3 -0
- package/dist/neutral/modules/validation/block/validators/Fields.d.ts.map +1 -0
- package/dist/neutral/modules/validation/block/validators/JsonSchema.d.ts +4 -0
- package/dist/neutral/modules/validation/block/validators/JsonSchema.d.ts.map +1 -0
- package/dist/neutral/modules/validation/block/validators/PreviousHash.d.ts +3 -0
- package/dist/neutral/modules/validation/block/validators/PreviousHash.d.ts.map +1 -0
- package/dist/neutral/modules/validation/block/validators/index.d.ts +6 -0
- package/dist/neutral/modules/validation/block/validators/index.d.ts.map +1 -0
- package/dist/neutral/modules/validation/elevatedPayload/index.d.ts +2 -0
- package/dist/neutral/modules/validation/elevatedPayload/index.d.ts.map +1 -0
- package/dist/neutral/modules/validation/elevatedPayload/lib/index.d.ts +7 -0
- package/dist/neutral/modules/validation/elevatedPayload/lib/index.d.ts.map +1 -0
- package/dist/neutral/modules/validation/elevatedPayload/lib/isElevatedFromBlock.d.ts +4 -0
- package/dist/neutral/modules/validation/elevatedPayload/lib/isElevatedFromBlock.d.ts.map +1 -0
- package/dist/neutral/modules/validation/elevatedPayload/lib/validateElevatedFromBlock.d.ts +3 -0
- package/dist/neutral/modules/validation/elevatedPayload/lib/validateElevatedFromBlock.d.ts.map +1 -0
- package/dist/neutral/modules/validation/elevatedPayload/lib/validateElevatedFromTransaction.d.ts +3 -0
- package/dist/neutral/modules/validation/elevatedPayload/lib/validateElevatedFromTransaction.d.ts.map +1 -0
- package/dist/neutral/modules/validation/elevatedPayload/lib/validateIncludedInBlock.d.ts +4 -0
- package/dist/neutral/modules/validation/elevatedPayload/lib/validateIncludedInBlock.d.ts.map +1 -0
- package/dist/neutral/modules/validation/elevatedPayload/lib/validateTransactionInBlock.d.ts +3 -0
- package/dist/neutral/modules/validation/elevatedPayload/lib/validateTransactionInBlock.d.ts.map +1 -0
- package/dist/neutral/modules/validation/elevatedPayload/lib/validateTypedPayloadInBlock.d.ts +5 -0
- package/dist/neutral/modules/validation/elevatedPayload/lib/validateTypedPayloadInBlock.d.ts.map +1 -0
- package/dist/neutral/modules/validation/elevatedPayload/payloads/index.d.ts +9 -0
- package/dist/neutral/modules/validation/elevatedPayload/payloads/index.d.ts.map +1 -0
- package/dist/neutral/modules/validation/elevatedPayload/payloads/validateBridgeDestinationObservationInBlock.d.ts +3 -0
- package/dist/neutral/modules/validation/elevatedPayload/payloads/validateBridgeDestinationObservationInBlock.d.ts.map +1 -0
- package/dist/neutral/modules/validation/elevatedPayload/payloads/validateBridgeIntentInBlock.d.ts +3 -0
- package/dist/neutral/modules/validation/elevatedPayload/payloads/validateBridgeIntentInBlock.d.ts.map +1 -0
- package/dist/neutral/modules/validation/elevatedPayload/payloads/validateBridgeSourceObservationInBlock.d.ts +3 -0
- package/dist/neutral/modules/validation/elevatedPayload/payloads/validateBridgeSourceObservationInBlock.d.ts.map +1 -0
- package/dist/neutral/modules/validation/elevatedPayload/payloads/validateChainStakeIntentInBlock.d.ts +3 -0
- package/dist/neutral/modules/validation/elevatedPayload/payloads/validateChainStakeIntentInBlock.d.ts.map +1 -0
- package/dist/neutral/modules/validation/elevatedPayload/payloads/validateHashInBlock.d.ts +3 -0
- package/dist/neutral/modules/validation/elevatedPayload/payloads/validateHashInBlock.d.ts.map +1 -0
- package/dist/neutral/modules/validation/elevatedPayload/payloads/validateSchemaInBlock.d.ts +3 -0
- package/dist/neutral/modules/validation/elevatedPayload/payloads/validateSchemaInBlock.d.ts.map +1 -0
- package/dist/neutral/modules/validation/elevatedPayload/payloads/validateTimeInBlock.d.ts +3 -0
- package/dist/neutral/modules/validation/elevatedPayload/payloads/validateTimeInBlock.d.ts.map +1 -0
- package/dist/neutral/modules/validation/elevatedPayload/payloads/validateTransferInBlock.d.ts +3 -0
- package/dist/neutral/modules/validation/elevatedPayload/payloads/validateTransferInBlock.d.ts.map +1 -0
- package/dist/neutral/modules/validation/elevatedPayload/validatePayloadInBlock.d.ts +3 -0
- package/dist/neutral/modules/validation/elevatedPayload/validatePayloadInBlock.d.ts.map +1 -0
- package/dist/neutral/modules/validation/hydratedBlock/index.d.ts +3 -0
- package/dist/neutral/modules/validation/hydratedBlock/index.d.ts.map +1 -0
- package/dist/neutral/modules/validation/hydratedBlock/validateHydratedBlock.d.ts +5 -0
- package/dist/neutral/modules/validation/hydratedBlock/validateHydratedBlock.d.ts.map +1 -0
- package/dist/neutral/modules/validation/hydratedBlock/validators/Payloads.d.ts +3 -0
- package/dist/neutral/modules/validation/hydratedBlock/validators/Payloads.d.ts.map +1 -0
- package/dist/neutral/modules/validation/hydratedBlock/validators/TransactionTransfersInBlock.d.ts +10 -0
- package/dist/neutral/modules/validation/hydratedBlock/validators/TransactionTransfersInBlock.d.ts.map +1 -0
- package/dist/neutral/modules/validation/hydratedBlock/validators/index.d.ts +3 -0
- package/dist/neutral/modules/validation/hydratedBlock/validators/index.d.ts.map +1 -0
- package/dist/neutral/modules/validation/hydratedBlockState/index.d.ts +3 -0
- package/dist/neutral/modules/validation/hydratedBlockState/index.d.ts.map +1 -0
- package/dist/neutral/modules/validation/hydratedBlockState/validateHydratedBlockState.d.ts +3 -0
- package/dist/neutral/modules/validation/hydratedBlockState/validateHydratedBlockState.d.ts.map +1 -0
- package/dist/neutral/modules/validation/hydratedBlockState/validators/RequiredBalance.d.ts +3 -0
- package/dist/neutral/modules/validation/hydratedBlockState/validators/RequiredBalance.d.ts.map +1 -0
- package/dist/neutral/modules/validation/hydratedBlockState/validators/index.d.ts +2 -0
- package/dist/neutral/modules/validation/hydratedBlockState/validators/index.d.ts.map +1 -0
- package/dist/neutral/modules/validation/hydratedTransactionState/index.d.ts +3 -0
- package/dist/neutral/modules/validation/hydratedTransactionState/index.d.ts.map +1 -0
- package/dist/neutral/modules/validation/hydratedTransactionState/validateHydratedTransactionState.d.ts +3 -0
- package/dist/neutral/modules/validation/hydratedTransactionState/validateHydratedTransactionState.d.ts.map +1 -0
- package/dist/neutral/modules/validation/hydratedTransactionState/validators/RequiredBalance.d.ts +3 -0
- package/dist/neutral/modules/validation/hydratedTransactionState/validators/RequiredBalance.d.ts.map +1 -0
- package/dist/neutral/modules/validation/hydratedTransactionState/validators/index.d.ts +2 -0
- package/dist/neutral/modules/validation/hydratedTransactionState/validators/index.d.ts.map +1 -0
- package/dist/neutral/modules/validation/index.d.ts +5 -0
- package/dist/neutral/modules/validation/index.d.ts.map +1 -0
- package/dist/neutral/modules/wrappers/block/HydratedBlock.d.ts +34 -0
- package/dist/neutral/modules/wrappers/block/HydratedBlock.d.ts.map +1 -0
- package/dist/neutral/modules/wrappers/block/index.d.ts +2 -0
- package/dist/neutral/modules/wrappers/block/index.d.ts.map +1 -0
- package/dist/neutral/modules/wrappers/index.d.ts +3 -0
- package/dist/neutral/modules/wrappers/index.d.ts.map +1 -0
- package/dist/neutral/modules.d.ts +2 -0
- package/dist/neutral/modules.d.ts.map +1 -0
- package/dist/neutral/modules.mjs +403 -0
- package/dist/neutral/modules.mjs.map +7 -0
- package/dist/neutral/node/telemetry.d.ts +2 -0
- package/dist/neutral/node/telemetry.d.ts.map +1 -0
- package/dist/neutral/protocol-test.d.ts +2 -0
- package/dist/neutral/protocol-test.d.ts.map +1 -0
- package/dist/neutral/protocol-test.mjs +165 -0
- package/dist/neutral/protocol-test.mjs.map +7 -0
- package/dist/neutral/protocol.d.ts +2 -0
- package/dist/neutral/protocol.d.ts.map +1 -0
- package/dist/neutral/protocol.mjs +311 -0
- package/dist/neutral/protocol.mjs.map +7 -0
- package/dist/neutral/services.d.ts +2 -0
- package/dist/neutral/services.d.ts.map +1 -0
- package/dist/neutral/services.mjs +841 -0
- package/dist/neutral/services.mjs.map +7 -0
- package/dist/neutral/telemetry.d.ts +2 -0
- package/dist/neutral/telemetry.d.ts.map +1 -0
- package/dist/neutral/telemetry.mjs +120 -0
- package/dist/neutral/telemetry.mjs.map +7 -0
- package/dist/neutral/utils.d.ts +2 -0
- package/dist/neutral/utils.d.ts.map +1 -0
- package/dist/neutral/utils.mjs +991 -0
- package/dist/neutral/utils.mjs.map +7 -0
- package/dist/neutral/validation.d.ts +2 -0
- package/dist/neutral/validation.d.ts.map +1 -0
- package/dist/neutral/validation.mjs +863 -0
- package/dist/neutral/validation.mjs.map +7 -0
- package/dist/neutral/wrappers.d.ts +2 -0
- package/dist/neutral/wrappers.d.ts.map +1 -0
- package/dist/neutral/wrappers.mjs +114 -0
- package/dist/neutral/wrappers.mjs.map +7 -0
- package/dist/node/analyze.d.ts +2 -0
- package/dist/node/analyze.d.ts.map +1 -0
- package/dist/node/browser/telemetry.d.ts +2 -0
- package/dist/node/browser/telemetry.d.ts.map +1 -0
- package/dist/node/ethereum.d.ts +2 -0
- package/dist/node/ethereum.d.ts.map +1 -0
- package/dist/node/index.d.ts +9 -9
- package/dist/node/index.d.ts.map +1 -1
- package/dist/node/index.mjs +9 -9
- package/dist/node/index.mjs.map +2 -2
- package/dist/node/modules/analyze/BalanceAnalyzer/BalanceAnalyzer.d.ts +19 -0
- package/dist/node/modules/analyze/BalanceAnalyzer/BalanceAnalyzer.d.ts.map +1 -0
- package/dist/node/modules/analyze/BalanceAnalyzer/ChainSummaryBalances.d.ts +16 -0
- package/dist/node/modules/analyze/BalanceAnalyzer/ChainSummaryBalances.d.ts.map +1 -0
- package/dist/node/modules/analyze/BalanceAnalyzer/index.d.ts +3 -0
- package/dist/node/modules/analyze/BalanceAnalyzer/index.d.ts.map +1 -0
- package/dist/node/modules/analyze/ChainFinalizer.d.ts +20 -0
- package/dist/node/modules/analyze/ChainFinalizer.d.ts.map +1 -0
- package/dist/node/modules/analyze/ChainHeadSelector.d.ts +34 -0
- package/dist/node/modules/analyze/ChainHeadSelector.d.ts.map +1 -0
- package/dist/node/modules/analyze/TransferAnalyzer/ChainSummaryTransfers.d.ts +16 -0
- package/dist/node/modules/analyze/TransferAnalyzer/ChainSummaryTransfers.d.ts.map +1 -0
- package/dist/node/modules/analyze/TransferAnalyzer/TransferAnalyzer.d.ts +15 -0
- package/dist/node/modules/analyze/TransferAnalyzer/TransferAnalyzer.d.ts.map +1 -0
- package/dist/node/modules/analyze/TransferAnalyzer/index.d.ts +3 -0
- package/dist/node/modules/analyze/TransferAnalyzer/index.d.ts.map +1 -0
- package/dist/node/modules/analyze/analyzeChain.d.ts +5 -0
- package/dist/node/modules/analyze/analyzeChain.d.ts.map +1 -0
- package/dist/node/modules/analyze/index.d.ts +7 -0
- package/dist/node/modules/analyze/index.d.ts.map +1 -0
- package/dist/node/modules/analyze/producer/ChainProducersAnalyzer.d.ts +12 -0
- package/dist/node/modules/analyze/producer/ChainProducersAnalyzer.d.ts.map +1 -0
- package/dist/node/modules/analyze/producer/ChainStakeIntentAnalyzer.d.ts +14 -0
- package/dist/node/modules/analyze/producer/ChainStakeIntentAnalyzer.d.ts.map +1 -0
- package/dist/node/modules/analyze/producer/ChainSummaryProducers.d.ts +19 -0
- package/dist/node/modules/analyze/producer/ChainSummaryProducers.d.ts.map +1 -0
- package/dist/node/modules/analyze/producer/ChainSummaryStakeIntent.d.ts +15 -0
- package/dist/node/modules/analyze/producer/ChainSummaryStakeIntent.d.ts.map +1 -0
- package/dist/node/modules/analyze/producer/index.d.ts +5 -0
- package/dist/node/modules/analyze/producer/index.d.ts.map +1 -0
- package/dist/node/modules/ethereum/BaseEthProvider.d.ts +56 -0
- package/dist/node/modules/ethereum/BaseEthProvider.d.ts.map +1 -0
- package/dist/node/modules/ethereum/block/index.d.ts +2 -0
- package/dist/node/modules/ethereum/block/index.d.ts.map +1 -0
- package/dist/node/modules/ethereum/block/rate/blockRate.d.ts +9 -0
- package/dist/node/modules/ethereum/block/rate/blockRate.d.ts.map +1 -0
- package/dist/node/modules/ethereum/block/rate/index.d.ts +3 -0
- package/dist/node/modules/ethereum/block/rate/index.d.ts.map +1 -0
- package/dist/node/modules/ethereum/block/rate/timeRate.d.ts +4 -0
- package/dist/node/modules/ethereum/block/rate/timeRate.d.ts.map +1 -0
- package/dist/node/modules/ethereum/createChain.d.ts +11 -0
- package/dist/node/modules/ethereum/createChain.d.ts.map +1 -0
- package/dist/node/modules/ethereum/createChainContract.d.ts +9 -0
- package/dist/node/modules/ethereum/createChainContract.d.ts.map +1 -0
- package/dist/node/modules/ethereum/createChainRewardsContract.d.ts +5 -0
- package/dist/node/modules/ethereum/createChainRewardsContract.d.ts.map +1 -0
- package/dist/node/modules/ethereum/drivers/EvmStakeEventZod.d.ts +245 -0
- package/dist/node/modules/ethereum/drivers/EvmStakeEventZod.d.ts.map +1 -0
- package/dist/node/modules/ethereum/drivers/EvmStakeEventsViewer.d.ts +31 -0
- package/dist/node/modules/ethereum/drivers/EvmStakeEventsViewer.d.ts.map +1 -0
- package/dist/node/modules/ethereum/drivers/EvmStakeViewer.d.ts +42 -0
- package/dist/node/modules/ethereum/drivers/EvmStakeViewer.d.ts.map +1 -0
- package/dist/node/modules/ethereum/drivers/index.d.ts +4 -0
- package/dist/node/modules/ethereum/drivers/index.d.ts.map +1 -0
- package/dist/node/modules/ethereum/ethereum.d.ts +6 -0
- package/dist/node/modules/ethereum/ethereum.d.ts.map +1 -0
- package/dist/node/modules/ethereum/index.d.ts +10 -0
- package/dist/node/modules/ethereum/index.d.ts.map +1 -0
- package/dist/node/modules/ethereum/model/ReturnTypeForOverload.d.ts +12 -0
- package/dist/node/modules/ethereum/model/ReturnTypeForOverload.d.ts.map +1 -0
- package/dist/node/modules/ethereum/model/index.d.ts +2 -0
- package/dist/node/modules/ethereum/model/index.d.ts.map +1 -0
- package/dist/node/modules/ethereum/nextContractAddress.d.ts +24 -0
- package/dist/node/modules/ethereum/nextContractAddress.d.ts.map +1 -0
- package/dist/node/modules/ethereum/providers/AbstractEvmProvider.d.ts +15 -0
- package/dist/node/modules/ethereum/providers/AbstractEvmProvider.d.ts.map +1 -0
- package/dist/node/modules/ethereum/providers/AbstractEvmRunner.d.ts +10 -0
- package/dist/node/modules/ethereum/providers/AbstractEvmRunner.d.ts.map +1 -0
- package/dist/node/modules/ethereum/providers/AbstractEvmViewer.d.ts +8 -0
- package/dist/node/modules/ethereum/providers/AbstractEvmViewer.d.ts.map +1 -0
- package/dist/node/modules/ethereum/providers/EvmChainContractViewer.d.ts +37 -0
- package/dist/node/modules/ethereum/providers/EvmChainContractViewer.d.ts.map +1 -0
- package/dist/node/modules/ethereum/providers/EvmStakeRunner.d.ts +20 -0
- package/dist/node/modules/ethereum/providers/EvmStakeRunner.d.ts.map +1 -0
- package/dist/node/modules/ethereum/providers/EvmStakeTotalsViewer.d.ts +27 -0
- package/dist/node/modules/ethereum/providers/EvmStakeTotalsViewer.d.ts.map +1 -0
- package/dist/node/modules/ethereum/providers/index.d.ts +7 -0
- package/dist/node/modules/ethereum/providers/index.d.ts.map +1 -0
- package/dist/node/modules/modules/diviners/BlockReward/Abstract/Config.d.ts +10 -0
- package/dist/node/modules/modules/diviners/BlockReward/Abstract/Config.d.ts.map +1 -0
- package/dist/node/modules/modules/diviners/BlockReward/Abstract/Diviner.d.ts +10 -0
- package/dist/node/modules/modules/diviners/BlockReward/Abstract/Diviner.d.ts.map +1 -0
- package/dist/node/modules/modules/diviners/BlockReward/Abstract/Params.d.ts +5 -0
- package/dist/node/modules/modules/diviners/BlockReward/Abstract/Params.d.ts.map +1 -0
- package/dist/node/modules/modules/diviners/BlockReward/Abstract/Payload.d.ts +32 -0
- package/dist/node/modules/modules/diviners/BlockReward/Abstract/Payload.d.ts.map +1 -0
- package/dist/node/modules/modules/diviners/BlockReward/Abstract/index.d.ts +5 -0
- package/dist/node/modules/modules/diviners/BlockReward/Abstract/index.d.ts.map +1 -0
- package/dist/node/modules/modules/diviners/BlockReward/FixedPercentage/Config.d.ts +19 -0
- package/dist/node/modules/modules/diviners/BlockReward/FixedPercentage/Config.d.ts.map +1 -0
- package/dist/node/modules/modules/diviners/BlockReward/FixedPercentage/Diviner.d.ts +27 -0
- package/dist/node/modules/modules/diviners/BlockReward/FixedPercentage/Diviner.d.ts.map +1 -0
- package/dist/node/modules/modules/diviners/BlockReward/FixedPercentage/Params.d.ts +8 -0
- package/dist/node/modules/modules/diviners/BlockReward/FixedPercentage/Params.d.ts.map +1 -0
- package/dist/node/modules/modules/diviners/BlockReward/FixedPercentage/index.d.ts +4 -0
- package/dist/node/modules/modules/diviners/BlockReward/FixedPercentage/index.d.ts.map +1 -0
- package/dist/node/modules/modules/diviners/BlockReward/index.d.ts +3 -0
- package/dist/node/modules/modules/diviners/BlockReward/index.d.ts.map +1 -0
- package/dist/node/modules/modules/diviners/BlockValidationDiviner.d.ts +38 -0
- package/dist/node/modules/modules/diviners/BlockValidationDiviner.d.ts.map +1 -0
- package/dist/node/modules/modules/diviners/HeadValidationDiviner.d.ts +68 -0
- package/dist/node/modules/modules/diviners/HeadValidationDiviner.d.ts.map +1 -0
- package/dist/node/modules/modules/diviners/index.d.ts +4 -0
- package/dist/node/modules/modules/diviners/index.d.ts.map +1 -0
- package/dist/node/modules/modules/index.d.ts +3 -0
- package/dist/node/modules/modules/index.d.ts.map +1 -0
- package/dist/node/modules/modules/witnesses/ArchivistNextWitness.d.ts +20 -0
- package/dist/node/modules/modules/witnesses/ArchivistNextWitness.d.ts.map +1 -0
- package/dist/node/modules/modules/witnesses/NetworkStake/NetworkStake.d.ts +15 -0
- package/dist/node/modules/modules/witnesses/NetworkStake/NetworkStake.d.ts.map +1 -0
- package/dist/node/modules/modules/witnesses/NetworkStake/NetworkStakeObserve.d.ts +15 -0
- package/dist/node/modules/modules/witnesses/NetworkStake/NetworkStakeObserve.d.ts.map +1 -0
- package/dist/node/modules/modules/witnesses/NetworkStake/index.d.ts +3 -0
- package/dist/node/modules/modules/witnesses/NetworkStake/index.d.ts.map +1 -0
- package/dist/node/modules/modules/witnesses/index.d.ts +3 -0
- package/dist/node/modules/modules/witnesses/index.d.ts.map +1 -0
- package/dist/node/modules/protocol/block/BuildBlockOptions.d.ts +26 -0
- package/dist/node/modules/protocol/block/BuildBlockOptions.d.ts.map +1 -0
- package/dist/node/modules/protocol/block/buildBlock.d.ts +4 -0
- package/dist/node/modules/protocol/block/buildBlock.d.ts.map +1 -0
- package/dist/node/modules/protocol/block/buildGenesisBlock.d.ts +8 -0
- package/dist/node/modules/protocol/block/buildGenesisBlock.d.ts.map +1 -0
- package/dist/node/modules/protocol/block/buildNextBlock.d.ts +9 -0
- package/dist/node/modules/protocol/block/buildNextBlock.d.ts.map +1 -0
- package/dist/node/modules/protocol/block/createGenesisBlock.d.ts +4 -0
- package/dist/node/modules/protocol/block/createGenesisBlock.d.ts.map +1 -0
- package/dist/node/modules/protocol/block/createProducerChainStakeIntentTransaction.d.ts +15 -0
- package/dist/node/modules/protocol/block/createProducerChainStakeIntentTransaction.d.ts.map +1 -0
- package/dist/node/modules/protocol/block/index.d.ts +8 -0
- package/dist/node/modules/protocol/block/index.d.ts.map +1 -0
- package/dist/node/modules/protocol/block/sort.d.ts +7 -0
- package/dist/node/modules/protocol/block/sort.d.ts.map +1 -0
- package/dist/node/modules/protocol/frameList.d.ts +5 -0
- package/dist/node/modules/protocol/frameList.d.ts.map +1 -0
- package/dist/node/modules/protocol/index.d.ts +3 -0
- package/dist/node/modules/protocol/index.d.ts.map +1 -0
- package/dist/node/modules/protocol-test/buildRandomChain.d.ts +17 -0
- package/dist/node/modules/protocol-test/buildRandomChain.d.ts.map +1 -0
- package/dist/node/modules/protocol-test/buildRandomChainArchivist.d.ts +5 -0
- package/dist/node/modules/protocol-test/buildRandomChainArchivist.d.ts.map +1 -0
- package/dist/node/modules/protocol-test/buildRandomGenesisBlock.d.ts +12 -0
- package/dist/node/modules/protocol-test/buildRandomGenesisBlock.d.ts.map +1 -0
- package/dist/node/modules/protocol-test/buildRandomNextBlock.d.ts +11 -0
- package/dist/node/modules/protocol-test/buildRandomNextBlock.d.ts.map +1 -0
- package/dist/node/modules/protocol-test/index.d.ts +5 -0
- package/dist/node/modules/protocol-test/index.d.ts.map +1 -0
- package/dist/node/modules/services/BlockReward/EvmBlockRewardViewer.d.ts +22 -0
- package/dist/node/modules/services/BlockReward/EvmBlockRewardViewer.d.ts.map +1 -0
- package/dist/node/modules/services/BlockReward/index.d.ts +2 -0
- package/dist/node/modules/services/BlockReward/index.d.ts.map +1 -0
- package/dist/node/modules/services/ChainValidator/XyoValidator.d.ts +18 -0
- package/dist/node/modules/services/ChainValidator/XyoValidator.d.ts.map +1 -0
- package/dist/node/modules/services/ChainValidator/index.d.ts +3 -0
- package/dist/node/modules/services/ChainValidator/index.d.ts.map +1 -0
- package/dist/node/modules/services/ChainValidator/model/Validator.d.ts +7 -0
- package/dist/node/modules/services/ChainValidator/model/Validator.d.ts.map +1 -0
- package/dist/node/modules/services/ChainValidator/model/index.d.ts +2 -0
- package/dist/node/modules/services/ChainValidator/model/index.d.ts.map +1 -0
- package/dist/node/modules/services/Election/BaseElectionService.d.ts +21 -0
- package/dist/node/modules/services/Election/BaseElectionService.d.ts.map +1 -0
- package/dist/node/modules/services/Election/index.d.ts +2 -0
- package/dist/node/modules/services/Election/index.d.ts.map +1 -0
- package/dist/node/modules/services/NetworkStakeStepReward/BaseNetworkStakeStepRewardService.d.ts +35 -0
- package/dist/node/modules/services/NetworkStakeStepReward/BaseNetworkStakeStepRewardService.d.ts.map +1 -0
- package/dist/node/modules/services/NetworkStakeStepReward/index.d.ts +2 -0
- package/dist/node/modules/services/NetworkStakeStepReward/index.d.ts.map +1 -0
- package/dist/node/modules/services/StepStake/BaseStepStakeService.d.ts +16 -0
- package/dist/node/modules/services/StepStake/BaseStepStakeService.d.ts.map +1 -0
- package/dist/node/modules/services/StepStake/index.d.ts +2 -0
- package/dist/node/modules/services/StepStake/index.d.ts.map +1 -0
- package/dist/node/modules/services/implementation/head/createBootstrapHead.d.ts +4 -0
- package/dist/node/modules/services/implementation/head/createBootstrapHead.d.ts.map +1 -0
- package/dist/node/modules/services/implementation/head/index.d.ts +2 -0
- package/dist/node/modules/services/implementation/head/index.d.ts.map +1 -0
- package/dist/node/modules/services/implementation/index.d.ts +3 -0
- package/dist/node/modules/services/implementation/index.d.ts.map +1 -0
- package/dist/node/modules/services/implementation/processPendingBlocks.d.ts +48 -0
- package/dist/node/modules/services/implementation/processPendingBlocks.d.ts.map +1 -0
- package/dist/node/modules/services/index.d.ts +9 -0
- package/dist/node/modules/services/index.d.ts.map +1 -0
- package/dist/node/modules/services/model/Params.d.ts +8 -0
- package/dist/node/modules/services/model/Params.d.ts.map +1 -0
- package/dist/node/modules/services/model/index.d.ts +2 -0
- package/dist/node/modules/services/model/index.d.ts.map +1 -0
- package/dist/node/modules/services/simple/block/index.d.ts +2 -0
- package/dist/node/modules/services/simple/block/index.d.ts.map +1 -0
- package/dist/node/modules/services/simple/block/runner/SimpleBlockRunner.d.ts +152 -0
- package/dist/node/modules/services/simple/block/runner/SimpleBlockRunner.d.ts.map +1 -0
- package/dist/node/modules/services/simple/block/runner/generateTransactionFeeTransfers.d.ts +4 -0
- package/dist/node/modules/services/simple/block/runner/generateTransactionFeeTransfers.d.ts.map +1 -0
- package/dist/node/modules/services/simple/block/runner/identifyOffendingTransactions.d.ts +12 -0
- package/dist/node/modules/services/simple/block/runner/identifyOffendingTransactions.d.ts.map +1 -0
- package/dist/node/modules/services/simple/block/runner/index.d.ts +2 -0
- package/dist/node/modules/services/simple/block/runner/index.d.ts.map +1 -0
- package/dist/node/modules/services/simple/index.d.ts +2 -0
- package/dist/node/modules/services/simple/index.d.ts.map +1 -0
- package/dist/node/modules/telemetry/TelemetryProviders.d.ts +6 -0
- package/dist/node/modules/telemetry/TelemetryProviders.d.ts.map +1 -0
- package/dist/node/modules/telemetry/index-node.d.ts +3 -0
- package/dist/node/modules/telemetry/index-node.d.ts.map +1 -0
- package/dist/node/modules/telemetry/index.d.ts +3 -0
- package/dist/node/modules/telemetry/index.d.ts.map +1 -0
- package/dist/node/modules/telemetry/initTelemetry.d.ts +19 -0
- package/dist/node/modules/telemetry/initTelemetry.d.ts.map +1 -0
- package/dist/node/modules/telemetry/initTelemetryNode.d.ts +19 -0
- package/dist/node/modules/telemetry/initTelemetryNode.d.ts.map +1 -0
- package/dist/node/modules/utils/archivist/findFirstMatching.d.ts +11 -0
- package/dist/node/modules/utils/archivist/findFirstMatching.d.ts.map +1 -0
- package/dist/node/modules/utils/archivist/index.d.ts +4 -0
- package/dist/node/modules/utils/archivist/index.d.ts.map +1 -0
- package/dist/node/modules/utils/archivist/payloadsToArchivist.d.ts +3 -0
- package/dist/node/modules/utils/archivist/payloadsToArchivist.d.ts.map +1 -0
- package/dist/node/modules/utils/archivist/synchronizeArchivists.d.ts +12 -0
- package/dist/node/modules/utils/archivist/synchronizeArchivists.d.ts.map +1 -0
- package/dist/node/modules/utils/conversion/index.d.ts +2 -0
- package/dist/node/modules/utils/conversion/index.d.ts.map +1 -0
- package/dist/node/modules/utils/conversion/units.d.ts +3 -0
- package/dist/node/modules/utils/conversion/units.d.ts.map +1 -0
- package/dist/node/modules/utils/formatters/index.d.ts +2 -0
- package/dist/node/modules/utils/formatters/index.d.ts.map +1 -0
- package/dist/node/modules/utils/formatters/string/bigIntToFixedPointString.d.ts +2 -0
- package/dist/node/modules/utils/formatters/string/bigIntToFixedPointString.d.ts.map +1 -0
- package/dist/node/modules/utils/formatters/string/formatNumber.d.ts +8 -0
- package/dist/node/modules/utils/formatters/string/formatNumber.d.ts.map +1 -0
- package/dist/node/modules/utils/formatters/string/index.d.ts +4 -0
- package/dist/node/modules/utils/formatters/string/index.d.ts.map +1 -0
- package/dist/node/modules/utils/formatters/string/removeTrailingZeros.d.ts +2 -0
- package/dist/node/modules/utils/formatters/string/removeTrailingZeros.d.ts.map +1 -0
- package/dist/node/modules/utils/hex/hexToLastFourBytesInt.d.ts +3 -0
- package/dist/node/modules/utils/hex/hexToLastFourBytesInt.d.ts.map +1 -0
- package/dist/node/modules/utils/hex/index.d.ts +2 -0
- package/dist/node/modules/utils/hex/index.d.ts.map +1 -0
- package/dist/node/modules/utils/index.d.ts +9 -0
- package/dist/node/modules/utils/index.d.ts.map +1 -0
- package/dist/node/modules/utils/interval/IntervalMap.d.ts +14 -0
- package/dist/node/modules/utils/interval/IntervalMap.d.ts.map +1 -0
- package/dist/node/modules/utils/interval/IntervalTree.d.ts +89 -0
- package/dist/node/modules/utils/interval/IntervalTree.d.ts.map +1 -0
- package/dist/node/modules/utils/interval/index.d.ts +3 -0
- package/dist/node/modules/utils/interval/index.d.ts.map +1 -0
- package/dist/node/modules/utils/random/index.d.ts +2 -0
- package/dist/node/modules/utils/random/index.d.ts.map +1 -0
- package/dist/node/modules/utils/random/shuffleWithSeed.d.ts +2 -0
- package/dist/node/modules/utils/random/shuffleWithSeed.d.ts.map +1 -0
- package/dist/node/modules/utils/steps/calculator/index.d.ts +2 -0
- package/dist/node/modules/utils/steps/calculator/index.d.ts.map +1 -0
- package/dist/node/modules/utils/steps/calculator/window/index.d.ts +2 -0
- package/dist/node/modules/utils/steps/calculator/window/index.d.ts.map +1 -0
- package/dist/node/modules/utils/steps/calculator/window/stepWindowCalculatorFromBlock.d.ts +8 -0
- package/dist/node/modules/utils/steps/calculator/window/stepWindowCalculatorFromBlock.d.ts.map +1 -0
- package/dist/node/modules/utils/steps/index.d.ts +2 -0
- package/dist/node/modules/utils/steps/index.d.ts.map +1 -0
- package/dist/node/modules/utils/telemetry/XyoConsoleSpanExporter.d.ts +14 -0
- package/dist/node/modules/utils/telemetry/XyoConsoleSpanExporter.d.ts.map +1 -0
- package/dist/node/modules/utils/telemetry/index.d.ts +3 -0
- package/dist/node/modules/utils/telemetry/index.d.ts.map +1 -0
- package/dist/node/modules/utils/telemetry/startupSpanAsync.d.ts +14 -0
- package/dist/node/modules/utils/telemetry/startupSpanAsync.d.ts.map +1 -0
- package/dist/node/modules/validation/block/index.d.ts +3 -0
- package/dist/node/modules/validation/block/index.d.ts.map +1 -0
- package/dist/node/modules/validation/block/validateBlock.d.ts +4 -0
- package/dist/node/modules/validation/block/validateBlock.d.ts.map +1 -0
- package/dist/node/modules/validation/block/validators/AllowedPayloadSchemas.d.ts +3 -0
- package/dist/node/modules/validation/block/validators/AllowedPayloadSchemas.d.ts.map +1 -0
- package/dist/node/modules/validation/block/validators/BoundWitness.d.ts +11 -0
- package/dist/node/modules/validation/block/validators/BoundWitness.d.ts.map +1 -0
- package/dist/node/modules/validation/block/validators/Fields.d.ts +3 -0
- package/dist/node/modules/validation/block/validators/Fields.d.ts.map +1 -0
- package/dist/node/modules/validation/block/validators/JsonSchema.d.ts +4 -0
- package/dist/node/modules/validation/block/validators/JsonSchema.d.ts.map +1 -0
- package/dist/node/modules/validation/block/validators/PreviousHash.d.ts +3 -0
- package/dist/node/modules/validation/block/validators/PreviousHash.d.ts.map +1 -0
- package/dist/node/modules/validation/block/validators/index.d.ts +6 -0
- package/dist/node/modules/validation/block/validators/index.d.ts.map +1 -0
- package/dist/node/modules/validation/elevatedPayload/index.d.ts +2 -0
- package/dist/node/modules/validation/elevatedPayload/index.d.ts.map +1 -0
- package/dist/node/modules/validation/elevatedPayload/lib/index.d.ts +7 -0
- package/dist/node/modules/validation/elevatedPayload/lib/index.d.ts.map +1 -0
- package/dist/node/modules/validation/elevatedPayload/lib/isElevatedFromBlock.d.ts +4 -0
- package/dist/node/modules/validation/elevatedPayload/lib/isElevatedFromBlock.d.ts.map +1 -0
- package/dist/node/modules/validation/elevatedPayload/lib/validateElevatedFromBlock.d.ts +3 -0
- package/dist/node/modules/validation/elevatedPayload/lib/validateElevatedFromBlock.d.ts.map +1 -0
- package/dist/node/modules/validation/elevatedPayload/lib/validateElevatedFromTransaction.d.ts +3 -0
- package/dist/node/modules/validation/elevatedPayload/lib/validateElevatedFromTransaction.d.ts.map +1 -0
- package/dist/node/modules/validation/elevatedPayload/lib/validateIncludedInBlock.d.ts +4 -0
- package/dist/node/modules/validation/elevatedPayload/lib/validateIncludedInBlock.d.ts.map +1 -0
- package/dist/node/modules/validation/elevatedPayload/lib/validateTransactionInBlock.d.ts +3 -0
- package/dist/node/modules/validation/elevatedPayload/lib/validateTransactionInBlock.d.ts.map +1 -0
- package/dist/node/modules/validation/elevatedPayload/lib/validateTypedPayloadInBlock.d.ts +5 -0
- package/dist/node/modules/validation/elevatedPayload/lib/validateTypedPayloadInBlock.d.ts.map +1 -0
- package/dist/node/modules/validation/elevatedPayload/payloads/index.d.ts +9 -0
- package/dist/node/modules/validation/elevatedPayload/payloads/index.d.ts.map +1 -0
- package/dist/node/modules/validation/elevatedPayload/payloads/validateBridgeDestinationObservationInBlock.d.ts +3 -0
- package/dist/node/modules/validation/elevatedPayload/payloads/validateBridgeDestinationObservationInBlock.d.ts.map +1 -0
- package/dist/node/modules/validation/elevatedPayload/payloads/validateBridgeIntentInBlock.d.ts +3 -0
- package/dist/node/modules/validation/elevatedPayload/payloads/validateBridgeIntentInBlock.d.ts.map +1 -0
- package/dist/node/modules/validation/elevatedPayload/payloads/validateBridgeSourceObservationInBlock.d.ts +3 -0
- package/dist/node/modules/validation/elevatedPayload/payloads/validateBridgeSourceObservationInBlock.d.ts.map +1 -0
- package/dist/node/modules/validation/elevatedPayload/payloads/validateChainStakeIntentInBlock.d.ts +3 -0
- package/dist/node/modules/validation/elevatedPayload/payloads/validateChainStakeIntentInBlock.d.ts.map +1 -0
- package/dist/node/modules/validation/elevatedPayload/payloads/validateHashInBlock.d.ts +3 -0
- package/dist/node/modules/validation/elevatedPayload/payloads/validateHashInBlock.d.ts.map +1 -0
- package/dist/node/modules/validation/elevatedPayload/payloads/validateSchemaInBlock.d.ts +3 -0
- package/dist/node/modules/validation/elevatedPayload/payloads/validateSchemaInBlock.d.ts.map +1 -0
- package/dist/node/modules/validation/elevatedPayload/payloads/validateTimeInBlock.d.ts +3 -0
- package/dist/node/modules/validation/elevatedPayload/payloads/validateTimeInBlock.d.ts.map +1 -0
- package/dist/node/modules/validation/elevatedPayload/payloads/validateTransferInBlock.d.ts +3 -0
- package/dist/node/modules/validation/elevatedPayload/payloads/validateTransferInBlock.d.ts.map +1 -0
- package/dist/node/modules/validation/elevatedPayload/validatePayloadInBlock.d.ts +3 -0
- package/dist/node/modules/validation/elevatedPayload/validatePayloadInBlock.d.ts.map +1 -0
- package/dist/node/modules/validation/hydratedBlock/index.d.ts +3 -0
- package/dist/node/modules/validation/hydratedBlock/index.d.ts.map +1 -0
- package/dist/node/modules/validation/hydratedBlock/validateHydratedBlock.d.ts +5 -0
- package/dist/node/modules/validation/hydratedBlock/validateHydratedBlock.d.ts.map +1 -0
- package/dist/node/modules/validation/hydratedBlock/validators/Payloads.d.ts +3 -0
- package/dist/node/modules/validation/hydratedBlock/validators/Payloads.d.ts.map +1 -0
- package/dist/node/modules/validation/hydratedBlock/validators/TransactionTransfersInBlock.d.ts +10 -0
- package/dist/node/modules/validation/hydratedBlock/validators/TransactionTransfersInBlock.d.ts.map +1 -0
- package/dist/node/modules/validation/hydratedBlock/validators/index.d.ts +3 -0
- package/dist/node/modules/validation/hydratedBlock/validators/index.d.ts.map +1 -0
- package/dist/node/modules/validation/hydratedBlockState/index.d.ts +3 -0
- package/dist/node/modules/validation/hydratedBlockState/index.d.ts.map +1 -0
- package/dist/node/modules/validation/hydratedBlockState/validateHydratedBlockState.d.ts +3 -0
- package/dist/node/modules/validation/hydratedBlockState/validateHydratedBlockState.d.ts.map +1 -0
- package/dist/node/modules/validation/hydratedBlockState/validators/RequiredBalance.d.ts +3 -0
- package/dist/node/modules/validation/hydratedBlockState/validators/RequiredBalance.d.ts.map +1 -0
- package/dist/node/modules/validation/hydratedBlockState/validators/index.d.ts +2 -0
- package/dist/node/modules/validation/hydratedBlockState/validators/index.d.ts.map +1 -0
- package/dist/node/modules/validation/hydratedTransactionState/index.d.ts +3 -0
- package/dist/node/modules/validation/hydratedTransactionState/index.d.ts.map +1 -0
- package/dist/node/modules/validation/hydratedTransactionState/validateHydratedTransactionState.d.ts +3 -0
- package/dist/node/modules/validation/hydratedTransactionState/validateHydratedTransactionState.d.ts.map +1 -0
- package/dist/node/modules/validation/hydratedTransactionState/validators/RequiredBalance.d.ts +3 -0
- package/dist/node/modules/validation/hydratedTransactionState/validators/RequiredBalance.d.ts.map +1 -0
- package/dist/node/modules/validation/hydratedTransactionState/validators/index.d.ts +2 -0
- package/dist/node/modules/validation/hydratedTransactionState/validators/index.d.ts.map +1 -0
- package/dist/node/modules/validation/index.d.ts +5 -0
- package/dist/node/modules/validation/index.d.ts.map +1 -0
- package/dist/node/modules/wrappers/block/HydratedBlock.d.ts +34 -0
- package/dist/node/modules/wrappers/block/HydratedBlock.d.ts.map +1 -0
- package/dist/node/modules/wrappers/block/index.d.ts +2 -0
- package/dist/node/modules/wrappers/block/index.d.ts.map +1 -0
- package/dist/node/modules/wrappers/index.d.ts +3 -0
- package/dist/node/modules/wrappers/index.d.ts.map +1 -0
- package/dist/node/modules.d.ts +2 -0
- package/dist/node/modules.d.ts.map +1 -0
- package/dist/node/node/telemetry.d.ts +2 -0
- package/dist/node/node/telemetry.d.ts.map +1 -0
- package/dist/node/protocol-test.d.ts +2 -0
- package/dist/node/protocol-test.d.ts.map +1 -0
- package/dist/node/protocol.d.ts +2 -0
- package/dist/node/protocol.d.ts.map +1 -0
- package/dist/node/services.d.ts +2 -0
- package/dist/node/services.d.ts.map +1 -0
- package/dist/node/telemetry.d.ts +2 -0
- package/dist/node/telemetry.d.ts.map +1 -0
- package/dist/node/telemetry.mjs +149 -0
- package/dist/node/telemetry.mjs.map +7 -0
- package/dist/node/utils.d.ts +2 -0
- package/dist/node/utils.d.ts.map +1 -0
- package/dist/node/validation.d.ts +2 -0
- package/dist/node/validation.d.ts.map +1 -0
- package/dist/node/wrappers.d.ts +2 -0
- package/dist/node/wrappers.d.ts.map +1 -0
- package/package.json +110 -61
|
@@ -0,0 +1,991 @@
|
|
|
1
|
+
// src/modules/utils/archivist/findFirstMatching.ts
|
|
2
|
+
import { isDefined } from "@ariestools/sdk";
|
|
3
|
+
var DEFAULT_FIND_FIRST_MATCHING_NEXT_OPTIONS = {
|
|
4
|
+
limit: 100,
|
|
5
|
+
open: false,
|
|
6
|
+
order: "desc"
|
|
7
|
+
};
|
|
8
|
+
var findFirstMatching = async (archivist, predicate = () => true, nextOptions = DEFAULT_FIND_FIRST_MATCHING_NEXT_OPTIONS) => {
|
|
9
|
+
let cursor = isDefined(nextOptions.cursor) ? nextOptions.cursor : void 0;
|
|
10
|
+
let batch;
|
|
11
|
+
do {
|
|
12
|
+
batch = await archivist.next({ ...nextOptions, cursor });
|
|
13
|
+
if (batch.length === 0) break;
|
|
14
|
+
const found = batch.find((p) => predicate(p));
|
|
15
|
+
if (found) return found;
|
|
16
|
+
const updatedCursor = batch.at(-1)?._sequence;
|
|
17
|
+
if (isDefined(updatedCursor)) cursor = updatedCursor;
|
|
18
|
+
} while (batch.length > 0);
|
|
19
|
+
return void 0;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
// src/modules/utils/archivist/payloadsToArchivist.ts
|
|
23
|
+
import { Account, MemoryArchivist } from "@xyo-network/sdk";
|
|
24
|
+
var payloadsToArchivist = async (payloads) => {
|
|
25
|
+
const archivist = await MemoryArchivist.create({ account: await Account.random() });
|
|
26
|
+
await archivist.insert(payloads);
|
|
27
|
+
return archivist;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
// src/modules/utils/archivist/synchronizeArchivists.ts
|
|
31
|
+
import { isDefined as isDefined2 } from "@ariestools/sdk";
|
|
32
|
+
var synchronizeArchivists = async (source, destination, sourceCursor, predicate = () => true, filter = () => true) => {
|
|
33
|
+
const destLast = await findFirstMatching(destination, predicate);
|
|
34
|
+
const sourceLast = await findFirstMatching(source, predicate);
|
|
35
|
+
if (!sourceLast) return;
|
|
36
|
+
if (destLast) {
|
|
37
|
+
const sourcePayloadResult = await source.get([destLast._hash]);
|
|
38
|
+
const sourcePayload = sourcePayloadResult.at(0);
|
|
39
|
+
if (sourcePayload) {
|
|
40
|
+
sourceCursor = sourcePayload._sequence;
|
|
41
|
+
} else {
|
|
42
|
+
throw new Error("Local DB is out of sync with source");
|
|
43
|
+
}
|
|
44
|
+
} else {
|
|
45
|
+
const sourceFirstResult = await source.next({
|
|
46
|
+
open: false,
|
|
47
|
+
limit: 1,
|
|
48
|
+
order: "asc"
|
|
49
|
+
});
|
|
50
|
+
const sourceFirst = sourceFirstResult.at(0);
|
|
51
|
+
if (sourceFirst) {
|
|
52
|
+
await destination.insert([sourceFirst].filter(filter));
|
|
53
|
+
sourceCursor = sourceFirst._sequence;
|
|
54
|
+
} else {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
let batch;
|
|
59
|
+
do {
|
|
60
|
+
batch = await source.next({
|
|
61
|
+
open: true,
|
|
62
|
+
limit: 500,
|
|
63
|
+
order: "asc",
|
|
64
|
+
cursor: sourceCursor
|
|
65
|
+
});
|
|
66
|
+
if (batch.length === 0) break;
|
|
67
|
+
const updatedCursor = batch.at(-1)?._sequence;
|
|
68
|
+
if (isDefined2(updatedCursor)) sourceCursor = updatedCursor;
|
|
69
|
+
await destination.insert(batch.filter(filter));
|
|
70
|
+
console.log("syncing batch", sourceCursor, batch.length);
|
|
71
|
+
console.log("batch sequences", batch.map((b) => b._sequence));
|
|
72
|
+
} while (batch.length > 0);
|
|
73
|
+
return sourceCursor;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
// src/modules/utils/conversion/units.ts
|
|
77
|
+
import { XL1 } from "@xyo-network/xl1-sdk";
|
|
78
|
+
|
|
79
|
+
// src/modules/utils/formatters/string/removeTrailingZeros.ts
|
|
80
|
+
var removeTrailingZeros = (value) => {
|
|
81
|
+
let i = value.length - 1;
|
|
82
|
+
while (i >= 0 && value[i] === "0") {
|
|
83
|
+
i--;
|
|
84
|
+
}
|
|
85
|
+
return value.slice(0, i + 1);
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
// src/modules/utils/formatters/string/bigIntToFixedPointString.ts
|
|
89
|
+
var bigIntToFixedPointString = (value, decimalPlaces = 18) => {
|
|
90
|
+
const stringValue = value.toString(10);
|
|
91
|
+
const splitAtIndex = (value2, index) => {
|
|
92
|
+
const part1 = value2.slice(0, index);
|
|
93
|
+
const part2 = value2.slice(index);
|
|
94
|
+
return [part1, part2];
|
|
95
|
+
};
|
|
96
|
+
const floatable = stringValue.length > decimalPlaces;
|
|
97
|
+
if (floatable) {
|
|
98
|
+
const [whole, fraction] = splitAtIndex(stringValue, stringValue.length - decimalPlaces);
|
|
99
|
+
const cleanedFraction2 = removeTrailingZeros(fraction);
|
|
100
|
+
return cleanedFraction2.length > 0 ? `${whole}.${cleanedFraction2}` : whole;
|
|
101
|
+
}
|
|
102
|
+
if (stringValue === "0") return stringValue;
|
|
103
|
+
const cleanedFraction = removeTrailingZeros(stringValue);
|
|
104
|
+
return `0.${"0".repeat(decimalPlaces - stringValue.length)}${cleanedFraction}`;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
// src/modules/utils/formatters/string/formatNumber.ts
|
|
108
|
+
var isUnsafeInteger = (value) => {
|
|
109
|
+
try {
|
|
110
|
+
const parsedNumber = BigInt(value);
|
|
111
|
+
return parsedNumber > BigInt(Number.MAX_SAFE_INTEGER);
|
|
112
|
+
} catch (error) {
|
|
113
|
+
console.error("Failed to parse number:", error);
|
|
114
|
+
return true;
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
var safeReturnInteger = (value) => {
|
|
118
|
+
return isUnsafeInteger(value) ? {
|
|
119
|
+
unsafeInteger: true,
|
|
120
|
+
value
|
|
121
|
+
} : { value };
|
|
122
|
+
};
|
|
123
|
+
function formatNumberForDisplay(value, significantFigures = 5, bigIntShift = 18) {
|
|
124
|
+
const resolvedValue = typeof value === "bigint" ? bigIntToFixedPointString(value, bigIntShift) : value;
|
|
125
|
+
const isFloat = resolvedValue.includes(".");
|
|
126
|
+
if (!isFloat) {
|
|
127
|
+
return safeReturnInteger(resolvedValue);
|
|
128
|
+
}
|
|
129
|
+
const [whole, fraction] = resolvedValue.split(".");
|
|
130
|
+
if (whole.length >= significantFigures) {
|
|
131
|
+
return isUnsafeInteger(whole) ? {
|
|
132
|
+
unsafeInteger: true,
|
|
133
|
+
value: whole
|
|
134
|
+
} : { value: whole };
|
|
135
|
+
}
|
|
136
|
+
const cleanedFraction = fraction.at(-1) === "0" ? removeTrailingZeros(fraction) : fraction;
|
|
137
|
+
const safeWholeNumber = whole.length <= significantFigures;
|
|
138
|
+
const safeFraction = cleanedFraction.length <= significantFigures;
|
|
139
|
+
if (safeWholeNumber) {
|
|
140
|
+
if (safeFraction) {
|
|
141
|
+
const show = significantFigures - whole.length;
|
|
142
|
+
return { value: `${whole}.${cleanedFraction.slice(0, show)}` };
|
|
143
|
+
}
|
|
144
|
+
const leadingZeros = RegExp(/^0+/).exec(cleanedFraction)?.at(0)?.length ?? 0;
|
|
145
|
+
const significantPart = cleanedFraction.slice(leadingZeros, leadingZeros + significantFigures);
|
|
146
|
+
return {
|
|
147
|
+
value: `0.0...${significantPart}`,
|
|
148
|
+
truncatedFloat: true
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
return safeReturnInteger(whole);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
// src/modules/utils/conversion/units.ts
|
|
155
|
+
var parseBigIntDecimal = (value, decimal) => {
|
|
156
|
+
const valueString = typeof value === "number" || typeof value === "bigint" ? value.toString(10) : value;
|
|
157
|
+
const [intPart, fracPart = "0"] = valueString.split(".");
|
|
158
|
+
const fracPartLength = Math.min(fracPart.length, decimal);
|
|
159
|
+
const trimmedFracPart = fracPart.slice(0, fracPartLength);
|
|
160
|
+
const intPartBigInt = BigInt(Number.parseInt(intPart)) * 10n ** BigInt(decimal);
|
|
161
|
+
const fracPartBigInt = BigInt(Number.parseInt(trimmedFracPart)) * 10n ** BigInt(decimal - trimmedFracPart.length);
|
|
162
|
+
const valueBigInt = intPartBigInt + fracPartBigInt;
|
|
163
|
+
return XL1(valueBigInt);
|
|
164
|
+
};
|
|
165
|
+
var bigIntFormat = (value, decimal) => {
|
|
166
|
+
const intPart = value / 10n ** BigInt(decimal);
|
|
167
|
+
const fracPart = value - intPart * 10n ** BigInt(decimal);
|
|
168
|
+
const fracPartString = fracPart.toString().padStart(decimal, "0");
|
|
169
|
+
return removeTrailingZeros(`${intPart}.${fracPartString}`);
|
|
170
|
+
};
|
|
171
|
+
var formattedMXL1toXl1 = (value) => {
|
|
172
|
+
return bigIntFormat(parseBigIntDecimal(value, 12), 18);
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
// src/modules/utils/hex/hexToLastFourBytesInt.ts
|
|
176
|
+
import { assertEx, isHex } from "@ariestools/sdk";
|
|
177
|
+
function hexToLast4BytesInt(value) {
|
|
178
|
+
assertEx(isHex(value), () => "value must be a hex string");
|
|
179
|
+
const last4Bytes = value.slice(-8);
|
|
180
|
+
return Number.parseInt(last4Bytes, 16);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
// src/modules/utils/interval/IntervalMap.ts
|
|
184
|
+
var IntervalMap = class {
|
|
185
|
+
map;
|
|
186
|
+
constructor(data) {
|
|
187
|
+
this.map = /* @__PURE__ */ new Map();
|
|
188
|
+
if (data) {
|
|
189
|
+
for (const [key, intervals] of Object.entries(data)) {
|
|
190
|
+
for (const interval of intervals) {
|
|
191
|
+
this.insert(key, interval[0], interval[1]);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
findAllContaining(point) {
|
|
197
|
+
const result = [];
|
|
198
|
+
for (const [address, intervals] of this.map) {
|
|
199
|
+
if (intervals.some(([start, end]) => start <= point && point <= end)) {
|
|
200
|
+
result.push(address);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
return result;
|
|
204
|
+
}
|
|
205
|
+
get(key) {
|
|
206
|
+
const intervals = this.map.get(key);
|
|
207
|
+
return intervals ? Object.freeze(intervals.map((interval) => Object.freeze(interval))) : void 0;
|
|
208
|
+
}
|
|
209
|
+
insert(value, start, end) {
|
|
210
|
+
if (start > end) {
|
|
211
|
+
throw new Error("Invalid interval: start must be less than or equal to end");
|
|
212
|
+
}
|
|
213
|
+
const intervals = this.map.get(value) ?? [];
|
|
214
|
+
intervals.push([start, end]);
|
|
215
|
+
const merged = [];
|
|
216
|
+
for (const [s, e] of intervals) {
|
|
217
|
+
if (merged.length === 0 || merged[merged.length - 1][1] < s) {
|
|
218
|
+
merged.push([s, e]);
|
|
219
|
+
} else {
|
|
220
|
+
merged[merged.length - 1][1] = merged[merged.length - 1][1] > e ? merged[merged.length - 1][1] : e;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
this.map.set(value, merged);
|
|
224
|
+
}
|
|
225
|
+
serialize() {
|
|
226
|
+
const obj = {};
|
|
227
|
+
for (const [key, intervals] of this.map) {
|
|
228
|
+
obj[key] = intervals.map(([start, end]) => [start, end]);
|
|
229
|
+
}
|
|
230
|
+
return obj;
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
// src/modules/utils/interval/IntervalTree.ts
|
|
235
|
+
import isSame from "shallowequal";
|
|
236
|
+
function max(a, b) {
|
|
237
|
+
return a > b ? a : b;
|
|
238
|
+
}
|
|
239
|
+
function height(node) {
|
|
240
|
+
return node === void 0 ? -1 : node.height;
|
|
241
|
+
}
|
|
242
|
+
var Node = class _Node {
|
|
243
|
+
intervalTree;
|
|
244
|
+
key;
|
|
245
|
+
max;
|
|
246
|
+
records = [];
|
|
247
|
+
parent;
|
|
248
|
+
height = 0;
|
|
249
|
+
left;
|
|
250
|
+
right;
|
|
251
|
+
constructor(intervalTree, record) {
|
|
252
|
+
this.intervalTree = intervalTree;
|
|
253
|
+
this.key = record.low;
|
|
254
|
+
this.max = record.high;
|
|
255
|
+
this.records.push(record);
|
|
256
|
+
}
|
|
257
|
+
// Gets the highest record.high value for this node
|
|
258
|
+
getNodeHigh() {
|
|
259
|
+
let high = this.records[0].high;
|
|
260
|
+
for (let i = 1; i < this.records.length; i++) {
|
|
261
|
+
if (this.records[i].high > high) {
|
|
262
|
+
high = this.records[i].high;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
return high;
|
|
266
|
+
}
|
|
267
|
+
// Updates height value of the node. Called during insertion, rebalance, removal
|
|
268
|
+
updateHeight() {
|
|
269
|
+
this.height = max(height(this.left), height(this.right)) + 1;
|
|
270
|
+
}
|
|
271
|
+
// Updates the max value of all the parents after inserting into already existing node, as well as
|
|
272
|
+
// removing the node completely or removing the record of an already existing node. Starts with
|
|
273
|
+
// the parent of an affected node and bubbles up to root
|
|
274
|
+
updateMaxOfParents() {
|
|
275
|
+
if (this === void 0) {
|
|
276
|
+
return;
|
|
277
|
+
}
|
|
278
|
+
const thisHigh = this.getNodeHigh();
|
|
279
|
+
if (this.left !== void 0 && this.right !== void 0) {
|
|
280
|
+
this.max = max(max(this.left.max, this.right.max), thisHigh);
|
|
281
|
+
} else if (this.left !== void 0 && this.right === void 0) {
|
|
282
|
+
this.max = max(this.left.max, thisHigh);
|
|
283
|
+
} else if (this.left === void 0 && this.right !== void 0) {
|
|
284
|
+
this.max = max(this.right.max, thisHigh);
|
|
285
|
+
} else {
|
|
286
|
+
this.max = thisHigh;
|
|
287
|
+
}
|
|
288
|
+
if (this.parent) {
|
|
289
|
+
this.parent.updateMaxOfParents();
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
/*
|
|
293
|
+
Left-Left case:
|
|
294
|
+
|
|
295
|
+
z y
|
|
296
|
+
/ \ / \
|
|
297
|
+
y T4 Right Rotate (z) x z
|
|
298
|
+
/ \ - - - - - - - - -> / \ / \
|
|
299
|
+
x T3 T1 T2 T3 T4
|
|
300
|
+
/ \
|
|
301
|
+
T1 T2
|
|
302
|
+
|
|
303
|
+
Left-Right case:
|
|
304
|
+
|
|
305
|
+
z z x
|
|
306
|
+
/ \ / \ / \
|
|
307
|
+
y T4 Left Rotate (y) x T4 Right Rotate(z) y z
|
|
308
|
+
/ \ - - - - - - - - -> / \ - - - - - - - -> / \ / \
|
|
309
|
+
T1 x y T3 T1 T2 T3 T4
|
|
310
|
+
/ \ / \
|
|
311
|
+
T2 T3 T1 T2
|
|
312
|
+
*/
|
|
313
|
+
// Handles Left-Left case and Left-Right case after rebalancing AVL tree
|
|
314
|
+
_updateMaxAfterRightRotate() {
|
|
315
|
+
const parent = this.parent;
|
|
316
|
+
const left = parent.left;
|
|
317
|
+
const thisParentLeftHigh = left.getNodeHigh();
|
|
318
|
+
if (left.left === void 0 && left.right !== void 0) {
|
|
319
|
+
left.max = max(thisParentLeftHigh, left.right.max);
|
|
320
|
+
} else if (left.left !== void 0 && left.right === void 0) {
|
|
321
|
+
left.max = max(thisParentLeftHigh, left.left.max);
|
|
322
|
+
} else if (left.left === void 0 && left.right === void 0) {
|
|
323
|
+
left.max = thisParentLeftHigh;
|
|
324
|
+
} else {
|
|
325
|
+
left.max = max(max(left.left.max, left.right.max), thisParentLeftHigh);
|
|
326
|
+
}
|
|
327
|
+
const thisHigh = this.getNodeHigh();
|
|
328
|
+
if (this.left === void 0 && this.right !== void 0) {
|
|
329
|
+
this.max = max(thisHigh, this.right.max);
|
|
330
|
+
} else if (this.left !== void 0 && this.right === void 0) {
|
|
331
|
+
this.max = max(thisHigh, this.left.max);
|
|
332
|
+
} else if (this.left === void 0 && this.right === void 0) {
|
|
333
|
+
this.max = thisHigh;
|
|
334
|
+
} else {
|
|
335
|
+
this.max = max(max(this.left.max, this.right.max), thisHigh);
|
|
336
|
+
}
|
|
337
|
+
parent.max = max(max(parent.left.max, parent.right.max), parent.getNodeHigh());
|
|
338
|
+
}
|
|
339
|
+
/*
|
|
340
|
+
Right-Right case:
|
|
341
|
+
|
|
342
|
+
z y
|
|
343
|
+
/ \ / \
|
|
344
|
+
T1 y Left Rotate(z) z x
|
|
345
|
+
/ \ - - - - - - - -> / \ / \
|
|
346
|
+
T2 x T1 T2 T3 T4
|
|
347
|
+
/ \
|
|
348
|
+
T3 T4
|
|
349
|
+
|
|
350
|
+
Right-Left case:
|
|
351
|
+
|
|
352
|
+
z z x
|
|
353
|
+
/ \ / \ / \
|
|
354
|
+
T1 y Right Rotate (y) T1 x Left Rotate(z) z y
|
|
355
|
+
/ \ - - - - - - - - -> / \ - - - - - - - -> / \ / \
|
|
356
|
+
x T4 T2 y T1 T2 T3 T4
|
|
357
|
+
/ \ / \
|
|
358
|
+
T2 T3 T3 T4
|
|
359
|
+
*/
|
|
360
|
+
// Handles Right-Right case and Right-Left case in rebalancing AVL tree
|
|
361
|
+
_updateMaxAfterLeftRotate() {
|
|
362
|
+
const parent = this.parent;
|
|
363
|
+
const right = parent.right;
|
|
364
|
+
const thisParentRightHigh = right.getNodeHigh();
|
|
365
|
+
if (right.left === void 0 && right.right !== void 0) {
|
|
366
|
+
right.max = max(thisParentRightHigh, right.right.max);
|
|
367
|
+
} else if (right.left !== void 0 && right.right === void 0) {
|
|
368
|
+
right.max = max(thisParentRightHigh, right.left.max);
|
|
369
|
+
} else if (right.left === void 0 && right.right === void 0) {
|
|
370
|
+
right.max = thisParentRightHigh;
|
|
371
|
+
} else {
|
|
372
|
+
right.max = max(max(right.left.max, right.right.max), thisParentRightHigh);
|
|
373
|
+
}
|
|
374
|
+
const thisHigh = this.getNodeHigh();
|
|
375
|
+
if (this.left === void 0 && this.right !== void 0) {
|
|
376
|
+
this.max = max(thisHigh, this.right.max);
|
|
377
|
+
} else if (this.left !== void 0 && this.right === void 0) {
|
|
378
|
+
this.max = max(thisHigh, this.left.max);
|
|
379
|
+
} else if (this.left === void 0 && this.right === void 0) {
|
|
380
|
+
this.max = thisHigh;
|
|
381
|
+
} else {
|
|
382
|
+
this.max = max(max(this.left.max, this.right.max), thisHigh);
|
|
383
|
+
}
|
|
384
|
+
parent.max = max(max(parent.left.max, right.max), parent.getNodeHigh());
|
|
385
|
+
}
|
|
386
|
+
_leftRotate() {
|
|
387
|
+
const rightChild = this.right;
|
|
388
|
+
rightChild.parent = this.parent;
|
|
389
|
+
if (rightChild.parent === void 0) {
|
|
390
|
+
this.intervalTree.root = rightChild;
|
|
391
|
+
} else {
|
|
392
|
+
if (rightChild.parent.left === this) {
|
|
393
|
+
rightChild.parent.left = rightChild;
|
|
394
|
+
} else if (rightChild.parent.right === this) {
|
|
395
|
+
rightChild.parent.right = rightChild;
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
this.right = rightChild.left;
|
|
399
|
+
if (this.right !== void 0) {
|
|
400
|
+
this.right.parent = this;
|
|
401
|
+
}
|
|
402
|
+
rightChild.left = this;
|
|
403
|
+
this.parent = rightChild;
|
|
404
|
+
this.updateHeight();
|
|
405
|
+
rightChild.updateHeight();
|
|
406
|
+
}
|
|
407
|
+
_rightRotate() {
|
|
408
|
+
const leftChild = this.left;
|
|
409
|
+
leftChild.parent = this.parent;
|
|
410
|
+
if (leftChild.parent === void 0) {
|
|
411
|
+
this.intervalTree.root = leftChild;
|
|
412
|
+
} else {
|
|
413
|
+
if (leftChild.parent.left === this) {
|
|
414
|
+
leftChild.parent.left = leftChild;
|
|
415
|
+
} else if (leftChild.parent.right === this) {
|
|
416
|
+
leftChild.parent.right = leftChild;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
this.left = leftChild.right;
|
|
420
|
+
if (this.left !== void 0) {
|
|
421
|
+
this.left.parent = this;
|
|
422
|
+
}
|
|
423
|
+
leftChild.right = this;
|
|
424
|
+
this.parent = leftChild;
|
|
425
|
+
this.updateHeight();
|
|
426
|
+
leftChild.updateHeight();
|
|
427
|
+
}
|
|
428
|
+
// Rebalances the tree if the height value between two nodes of the same parent is greater than
|
|
429
|
+
// two. There are 4 cases that can happen which are outlined in the graphics above
|
|
430
|
+
_rebalance() {
|
|
431
|
+
if (height(this.left) >= 2 + height(this.right)) {
|
|
432
|
+
const left = this.left;
|
|
433
|
+
if (height(left.left) >= height(left.right)) {
|
|
434
|
+
this._rightRotate();
|
|
435
|
+
this._updateMaxAfterRightRotate();
|
|
436
|
+
} else {
|
|
437
|
+
left._leftRotate();
|
|
438
|
+
this._rightRotate();
|
|
439
|
+
this._updateMaxAfterRightRotate();
|
|
440
|
+
}
|
|
441
|
+
} else if (height(this.right) >= 2 + height(this.left)) {
|
|
442
|
+
const right = this.right;
|
|
443
|
+
if (height(right.right) >= height(right.left)) {
|
|
444
|
+
this._leftRotate();
|
|
445
|
+
this._updateMaxAfterLeftRotate();
|
|
446
|
+
} else {
|
|
447
|
+
right._rightRotate();
|
|
448
|
+
this._leftRotate();
|
|
449
|
+
this._updateMaxAfterLeftRotate();
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
insert(record) {
|
|
454
|
+
if (record.low < this.key) {
|
|
455
|
+
if (this.left === void 0) {
|
|
456
|
+
this.left = new _Node(this.intervalTree, record);
|
|
457
|
+
this.left.parent = this;
|
|
458
|
+
} else {
|
|
459
|
+
this.left.insert(record);
|
|
460
|
+
}
|
|
461
|
+
} else {
|
|
462
|
+
if (this.right === void 0) {
|
|
463
|
+
this.right = new _Node(this.intervalTree, record);
|
|
464
|
+
this.right.parent = this;
|
|
465
|
+
} else {
|
|
466
|
+
this.right.insert(record);
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
if (this.max < record.high) {
|
|
470
|
+
this.max = record.high;
|
|
471
|
+
}
|
|
472
|
+
this.updateHeight();
|
|
473
|
+
this._rebalance();
|
|
474
|
+
}
|
|
475
|
+
_getOverlappingRecords(currentNode, low, high) {
|
|
476
|
+
if (currentNode.key <= high && low <= currentNode.getNodeHigh()) {
|
|
477
|
+
const tempResults = [];
|
|
478
|
+
for (const record of currentNode.records) {
|
|
479
|
+
if (record.high >= low) {
|
|
480
|
+
tempResults.push(record);
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
return tempResults;
|
|
484
|
+
}
|
|
485
|
+
return [];
|
|
486
|
+
}
|
|
487
|
+
search(low, high) {
|
|
488
|
+
if (this === void 0) {
|
|
489
|
+
return [];
|
|
490
|
+
}
|
|
491
|
+
if (low > this.max) {
|
|
492
|
+
return [];
|
|
493
|
+
}
|
|
494
|
+
let leftSearch = [];
|
|
495
|
+
let rightSearch = [];
|
|
496
|
+
if (this.left !== void 0 && this.left.max >= low) {
|
|
497
|
+
leftSearch = this.left.search(low, high);
|
|
498
|
+
}
|
|
499
|
+
const ownSearch = this._getOverlappingRecords(this, low, high);
|
|
500
|
+
if (high < this.key) {
|
|
501
|
+
return [...leftSearch, ...ownSearch];
|
|
502
|
+
}
|
|
503
|
+
if (this.right !== void 0) {
|
|
504
|
+
rightSearch = this.right.search(low, high);
|
|
505
|
+
}
|
|
506
|
+
return [...leftSearch, ...ownSearch, ...rightSearch];
|
|
507
|
+
}
|
|
508
|
+
// Searches for a node by a `key` value
|
|
509
|
+
searchExisting(low) {
|
|
510
|
+
if (this === void 0) {
|
|
511
|
+
return void 0;
|
|
512
|
+
}
|
|
513
|
+
if (this.key === low) {
|
|
514
|
+
return this;
|
|
515
|
+
}
|
|
516
|
+
if (low < this.key) {
|
|
517
|
+
if (this.left !== void 0) {
|
|
518
|
+
return this.left.searchExisting(low);
|
|
519
|
+
}
|
|
520
|
+
} else {
|
|
521
|
+
if (this.right !== void 0) {
|
|
522
|
+
return this.right.searchExisting(low);
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
return void 0;
|
|
526
|
+
}
|
|
527
|
+
// Returns the smallest node of the subtree
|
|
528
|
+
_minValue() {
|
|
529
|
+
return this.left === void 0 ? this : this.left._minValue();
|
|
530
|
+
}
|
|
531
|
+
remove(node) {
|
|
532
|
+
if (node.key < this.key) {
|
|
533
|
+
return this.left === void 0 ? void 0 : this.left.remove(node);
|
|
534
|
+
}
|
|
535
|
+
if (node.key > this.key) {
|
|
536
|
+
return this.right === void 0 ? void 0 : this.right.remove(node);
|
|
537
|
+
}
|
|
538
|
+
if (this.left !== void 0 && this.right !== void 0) {
|
|
539
|
+
const minValue = this.right._minValue();
|
|
540
|
+
this.key = minValue.key;
|
|
541
|
+
this.records = minValue.records;
|
|
542
|
+
return this.right.remove(this);
|
|
543
|
+
}
|
|
544
|
+
const parent = this.parent;
|
|
545
|
+
if (parent.left === this) {
|
|
546
|
+
if (this.right === void 0) {
|
|
547
|
+
parent.left = this.left;
|
|
548
|
+
if (this.left !== void 0) {
|
|
549
|
+
this.left.parent = parent;
|
|
550
|
+
}
|
|
551
|
+
} else {
|
|
552
|
+
parent.left = this.right;
|
|
553
|
+
this.right.parent = parent;
|
|
554
|
+
}
|
|
555
|
+
parent.updateMaxOfParents();
|
|
556
|
+
parent.updateHeight();
|
|
557
|
+
parent._rebalance();
|
|
558
|
+
return this;
|
|
559
|
+
}
|
|
560
|
+
if (parent.right === this) {
|
|
561
|
+
if (this.right === void 0) {
|
|
562
|
+
parent.right = this.left;
|
|
563
|
+
if (this.left !== void 0) {
|
|
564
|
+
this.left.parent = parent;
|
|
565
|
+
}
|
|
566
|
+
} else {
|
|
567
|
+
parent.right = this.right;
|
|
568
|
+
this.right.parent = parent;
|
|
569
|
+
}
|
|
570
|
+
parent.updateMaxOfParents();
|
|
571
|
+
parent.updateHeight();
|
|
572
|
+
parent._rebalance();
|
|
573
|
+
return this;
|
|
574
|
+
}
|
|
575
|
+
return void 0;
|
|
576
|
+
}
|
|
577
|
+
};
|
|
578
|
+
var IntervalTree = class {
|
|
579
|
+
root;
|
|
580
|
+
count = 0;
|
|
581
|
+
insert(record) {
|
|
582
|
+
if (record.low > record.high) {
|
|
583
|
+
throw new Error("`low` value must be lower or equal to `high` value");
|
|
584
|
+
}
|
|
585
|
+
if (this.root === void 0) {
|
|
586
|
+
this.root = new Node(this, record);
|
|
587
|
+
this.count++;
|
|
588
|
+
return true;
|
|
589
|
+
}
|
|
590
|
+
const node = this.root.searchExisting(record.low);
|
|
591
|
+
if (node === void 0) {
|
|
592
|
+
this.root.insert(record);
|
|
593
|
+
this.count++;
|
|
594
|
+
return true;
|
|
595
|
+
}
|
|
596
|
+
for (const existing of node.records) {
|
|
597
|
+
if (isSame(existing, record)) {
|
|
598
|
+
return false;
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
node.records.push(record);
|
|
602
|
+
if (record.high > node.max) {
|
|
603
|
+
node.max = record.high;
|
|
604
|
+
if (node.parent) {
|
|
605
|
+
node.parent.updateMaxOfParents();
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
this.count++;
|
|
609
|
+
return true;
|
|
610
|
+
}
|
|
611
|
+
search(low, high) {
|
|
612
|
+
return this.root === void 0 ? [] : this.root.search(low, high);
|
|
613
|
+
}
|
|
614
|
+
remove(record) {
|
|
615
|
+
if (this.root === void 0) {
|
|
616
|
+
return false;
|
|
617
|
+
}
|
|
618
|
+
const node = this.root.searchExisting(record.low);
|
|
619
|
+
if (node === void 0) {
|
|
620
|
+
return false;
|
|
621
|
+
}
|
|
622
|
+
if (node.records.length > 1) {
|
|
623
|
+
const removedIndex = node.records.findIndex((r) => isSame(r, record));
|
|
624
|
+
if (removedIndex === -1) {
|
|
625
|
+
return false;
|
|
626
|
+
}
|
|
627
|
+
node.records.splice(removedIndex, 1);
|
|
628
|
+
if (record.high === node.max) {
|
|
629
|
+
const nodeHigh = node.getNodeHigh();
|
|
630
|
+
if (node.left !== void 0 && node.right !== void 0) {
|
|
631
|
+
node.max = max(max(node.left.max, node.right.max), nodeHigh);
|
|
632
|
+
} else if (node.left !== void 0 && node.right === void 0) {
|
|
633
|
+
node.max = max(node.left.max, nodeHigh);
|
|
634
|
+
} else if (node.left === void 0 && node.right !== void 0) {
|
|
635
|
+
node.max = max(node.right.max, nodeHigh);
|
|
636
|
+
} else {
|
|
637
|
+
node.max = nodeHigh;
|
|
638
|
+
}
|
|
639
|
+
if (node.parent) {
|
|
640
|
+
node.parent.updateMaxOfParents();
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
this.count--;
|
|
644
|
+
return true;
|
|
645
|
+
}
|
|
646
|
+
if (node.records.length === 1) {
|
|
647
|
+
if (isSame(node.records[0], record)) {
|
|
648
|
+
if (this.root.key === node.key) {
|
|
649
|
+
const rootParent = new Node(this, { low: record.low, high: record.low });
|
|
650
|
+
rootParent.left = this.root;
|
|
651
|
+
this.root.parent = rootParent;
|
|
652
|
+
const removedNode2 = this.root.remove(node);
|
|
653
|
+
this.root = rootParent.left;
|
|
654
|
+
if (this.root !== void 0) {
|
|
655
|
+
this.root.parent = void 0;
|
|
656
|
+
}
|
|
657
|
+
if (removedNode2) {
|
|
658
|
+
this.count--;
|
|
659
|
+
return true;
|
|
660
|
+
}
|
|
661
|
+
return false;
|
|
662
|
+
}
|
|
663
|
+
const removedNode = this.root.remove(node);
|
|
664
|
+
if (removedNode) {
|
|
665
|
+
this.count--;
|
|
666
|
+
return true;
|
|
667
|
+
}
|
|
668
|
+
return false;
|
|
669
|
+
}
|
|
670
|
+
return false;
|
|
671
|
+
}
|
|
672
|
+
return false;
|
|
673
|
+
}
|
|
674
|
+
inOrder() {
|
|
675
|
+
return new InOrder(this.root);
|
|
676
|
+
}
|
|
677
|
+
reverseInOrder() {
|
|
678
|
+
return new ReverseInOrder(this.root);
|
|
679
|
+
}
|
|
680
|
+
preOrder() {
|
|
681
|
+
return new PreOrder(this.root);
|
|
682
|
+
}
|
|
683
|
+
};
|
|
684
|
+
var DataIntervalTree = class {
|
|
685
|
+
tree = new IntervalTree();
|
|
686
|
+
insert(low, high, data) {
|
|
687
|
+
return this.tree.insert({
|
|
688
|
+
low,
|
|
689
|
+
high,
|
|
690
|
+
data
|
|
691
|
+
});
|
|
692
|
+
}
|
|
693
|
+
remove(low, high, data) {
|
|
694
|
+
return this.tree.remove({
|
|
695
|
+
low,
|
|
696
|
+
high,
|
|
697
|
+
data
|
|
698
|
+
});
|
|
699
|
+
}
|
|
700
|
+
search(low, high) {
|
|
701
|
+
return this.tree.search(low, high).map((v) => v.data);
|
|
702
|
+
}
|
|
703
|
+
inOrder() {
|
|
704
|
+
return this.tree.inOrder();
|
|
705
|
+
}
|
|
706
|
+
reverseInOrder() {
|
|
707
|
+
return this.tree.reverseInOrder();
|
|
708
|
+
}
|
|
709
|
+
preOrder() {
|
|
710
|
+
return this.tree.preOrder();
|
|
711
|
+
}
|
|
712
|
+
get count() {
|
|
713
|
+
return this.tree.count;
|
|
714
|
+
}
|
|
715
|
+
};
|
|
716
|
+
var TreeOrderIterator = class {
|
|
717
|
+
stack = [];
|
|
718
|
+
currentNode;
|
|
719
|
+
i;
|
|
720
|
+
constructor(startNode) {
|
|
721
|
+
if (startNode !== void 0) {
|
|
722
|
+
this.initialize(startNode);
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
[Symbol.iterator]() {
|
|
726
|
+
return this;
|
|
727
|
+
}
|
|
728
|
+
};
|
|
729
|
+
var InOrder = class extends TreeOrderIterator {
|
|
730
|
+
initialize(node) {
|
|
731
|
+
this.push(node);
|
|
732
|
+
}
|
|
733
|
+
next() {
|
|
734
|
+
if (this.currentNode === void 0) {
|
|
735
|
+
return {
|
|
736
|
+
done: true,
|
|
737
|
+
value: void 0
|
|
738
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
739
|
+
};
|
|
740
|
+
}
|
|
741
|
+
if (this.i !== void 0 && this.i < this.currentNode.records.length) {
|
|
742
|
+
return {
|
|
743
|
+
done: false,
|
|
744
|
+
value: this.currentNode.records[this.i++]
|
|
745
|
+
};
|
|
746
|
+
}
|
|
747
|
+
if (this.currentNode.right === void 0) {
|
|
748
|
+
this.pop();
|
|
749
|
+
} else {
|
|
750
|
+
this.push(this.currentNode.right);
|
|
751
|
+
}
|
|
752
|
+
return this.next();
|
|
753
|
+
}
|
|
754
|
+
push(node) {
|
|
755
|
+
this.currentNode = node;
|
|
756
|
+
this.i = 0;
|
|
757
|
+
while (this.currentNode.left !== void 0) {
|
|
758
|
+
this.stack.push(this.currentNode);
|
|
759
|
+
this.currentNode = this.currentNode.left;
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
pop() {
|
|
763
|
+
this.currentNode = this.stack.pop();
|
|
764
|
+
this.i = 0;
|
|
765
|
+
}
|
|
766
|
+
};
|
|
767
|
+
var ReverseInOrder = class extends TreeOrderIterator {
|
|
768
|
+
initialize(node) {
|
|
769
|
+
this.push(node);
|
|
770
|
+
}
|
|
771
|
+
next() {
|
|
772
|
+
if (this.currentNode === void 0) {
|
|
773
|
+
return {
|
|
774
|
+
done: true,
|
|
775
|
+
value: void 0
|
|
776
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
777
|
+
};
|
|
778
|
+
}
|
|
779
|
+
if (this.currentNode.records.length > 0 && this.i !== void 0 && this.i >= 0) {
|
|
780
|
+
return {
|
|
781
|
+
done: false,
|
|
782
|
+
value: this.currentNode.records[this.i--]
|
|
783
|
+
};
|
|
784
|
+
}
|
|
785
|
+
if (this.currentNode.left === void 0) {
|
|
786
|
+
this.pop();
|
|
787
|
+
} else {
|
|
788
|
+
this.push(this.currentNode.left);
|
|
789
|
+
}
|
|
790
|
+
return this.next();
|
|
791
|
+
}
|
|
792
|
+
push(node) {
|
|
793
|
+
this.currentNode = node;
|
|
794
|
+
this.i = (this.currentNode?.records.length ?? 0) - 1;
|
|
795
|
+
while (this.currentNode.right !== void 0) {
|
|
796
|
+
this.stack.push(this.currentNode);
|
|
797
|
+
this.currentNode = this.currentNode.right;
|
|
798
|
+
this.i = (this.currentNode?.records.length ?? 0) - 1;
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
pop() {
|
|
802
|
+
this.currentNode = this.stack.pop();
|
|
803
|
+
this.i = (this.currentNode?.records.length ?? 0) - 1;
|
|
804
|
+
}
|
|
805
|
+
};
|
|
806
|
+
var PreOrder = class {
|
|
807
|
+
stack = [];
|
|
808
|
+
currentNode;
|
|
809
|
+
i = 0;
|
|
810
|
+
constructor(startNode) {
|
|
811
|
+
this.currentNode = startNode;
|
|
812
|
+
}
|
|
813
|
+
[Symbol.iterator]() {
|
|
814
|
+
return this;
|
|
815
|
+
}
|
|
816
|
+
next() {
|
|
817
|
+
if (this.currentNode === void 0) {
|
|
818
|
+
return {
|
|
819
|
+
done: true,
|
|
820
|
+
value: void 0
|
|
821
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
822
|
+
};
|
|
823
|
+
}
|
|
824
|
+
if (this.i < this.currentNode.records.length) {
|
|
825
|
+
return {
|
|
826
|
+
done: false,
|
|
827
|
+
value: this.currentNode.records[this.i++]
|
|
828
|
+
};
|
|
829
|
+
}
|
|
830
|
+
if (this.currentNode.right !== void 0) {
|
|
831
|
+
this.push(this.currentNode.right);
|
|
832
|
+
}
|
|
833
|
+
if (this.currentNode.left !== void 0) {
|
|
834
|
+
this.push(this.currentNode.left);
|
|
835
|
+
}
|
|
836
|
+
this.pop();
|
|
837
|
+
return this.next();
|
|
838
|
+
}
|
|
839
|
+
push(node) {
|
|
840
|
+
this.stack.push(node);
|
|
841
|
+
}
|
|
842
|
+
pop() {
|
|
843
|
+
this.currentNode = this.stack.pop();
|
|
844
|
+
this.i = 0;
|
|
845
|
+
}
|
|
846
|
+
};
|
|
847
|
+
|
|
848
|
+
// src/modules/utils/random/shuffleWithSeed.ts
|
|
849
|
+
function seededRandom(seed) {
|
|
850
|
+
return function() {
|
|
851
|
+
const x = Math.sin(seed++) * 1e4;
|
|
852
|
+
return x - Math.floor(x);
|
|
853
|
+
};
|
|
854
|
+
}
|
|
855
|
+
function shuffleWithSeed(set, seed) {
|
|
856
|
+
const array = [...set].toSorted((a, b) => String(a).localeCompare(String(b)));
|
|
857
|
+
const random = seededRandom(seed);
|
|
858
|
+
for (let i = array.length - 1; i > 0; i--) {
|
|
859
|
+
const j = Math.floor(random() * (i + 1));
|
|
860
|
+
const swap = array[i];
|
|
861
|
+
array[i] = array[j];
|
|
862
|
+
array[j] = swap;
|
|
863
|
+
}
|
|
864
|
+
return array;
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
// src/modules/utils/steps/calculator/window/stepWindowCalculatorFromBlock.ts
|
|
868
|
+
import { asXL1BlockNumber, StepSizes } from "@xyo-network/xl1-sdk";
|
|
869
|
+
var stepWindowCalculatorFromBlock = (blockNumber) => {
|
|
870
|
+
if (blockNumber < StepSizes[0]) {
|
|
871
|
+
return [0, StepSizes[0] - 1];
|
|
872
|
+
}
|
|
873
|
+
let lower = 0;
|
|
874
|
+
for (let i = 0; i < StepSizes.length; i++) {
|
|
875
|
+
const stepSize = StepSizes[i];
|
|
876
|
+
let nextStep = StepSizes[i + 1];
|
|
877
|
+
if (i > 0) lower = stepSize;
|
|
878
|
+
if (i === StepSizes.length - 1) {
|
|
879
|
+
nextStep = asXL1BlockNumber(stepSize * 2, { name: "stepWindowCalculatorFromBlock A" });
|
|
880
|
+
while (blockNumber >= nextStep) {
|
|
881
|
+
nextStep = asXL1BlockNumber(nextStep + stepSize, { name: "stepWindowCalculatorFromBlock B" });
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
if (blockNumber >= stepSize && blockNumber <= nextStep) {
|
|
885
|
+
for (let lowerBound = lower; lowerBound < nextStep; lowerBound += stepSize) {
|
|
886
|
+
const upperBound = lowerBound + stepSize - 1;
|
|
887
|
+
if (blockNumber >= lowerBound && blockNumber <= upperBound) {
|
|
888
|
+
return [lowerBound, upperBound];
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
throw new Error(`No valid window could be calculated for Block number ${blockNumber}.`);
|
|
894
|
+
};
|
|
895
|
+
|
|
896
|
+
// src/modules/utils/telemetry/startupSpanAsync.ts
|
|
897
|
+
async function startupSpanAsync(name, fn, logger) {
|
|
898
|
+
const start = Date.now();
|
|
899
|
+
try {
|
|
900
|
+
logger?.log(`[${name}] Initializing`);
|
|
901
|
+
const result = await fn();
|
|
902
|
+
return result;
|
|
903
|
+
} finally {
|
|
904
|
+
const stop = Date.now();
|
|
905
|
+
const duration = stop - start;
|
|
906
|
+
logger?.log(`[${name}] Initialized (${duration}ms)`);
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
// src/modules/utils/telemetry/XyoConsoleSpanExporter.ts
|
|
911
|
+
import { ConsoleSpanExporter } from "@opentelemetry/sdk-trace-base";
|
|
912
|
+
import chalk from "chalk";
|
|
913
|
+
function spanDurationInMillis(span) {
|
|
914
|
+
return span.duration[0] * 1e3 + span.duration[1] / 1e6;
|
|
915
|
+
}
|
|
916
|
+
var XyoConsoleSpanExporter = class _XyoConsoleSpanExporter extends ConsoleSpanExporter {
|
|
917
|
+
static durationToLogLevel = [
|
|
918
|
+
0,
|
|
919
|
+
1,
|
|
920
|
+
10,
|
|
921
|
+
100,
|
|
922
|
+
1e3
|
|
923
|
+
];
|
|
924
|
+
static logLevelToChalkColor = [
|
|
925
|
+
chalk.grey,
|
|
926
|
+
chalk.white,
|
|
927
|
+
chalk.green,
|
|
928
|
+
chalk.yellow,
|
|
929
|
+
chalk.red
|
|
930
|
+
];
|
|
931
|
+
_logLevel;
|
|
932
|
+
constructor(logLevel = 0) {
|
|
933
|
+
super();
|
|
934
|
+
this._logLevel = logLevel;
|
|
935
|
+
}
|
|
936
|
+
get logLevel() {
|
|
937
|
+
return this._logLevel;
|
|
938
|
+
}
|
|
939
|
+
export(spans) {
|
|
940
|
+
for (const span of spans) {
|
|
941
|
+
const spanLevel = this.spanLevel(span);
|
|
942
|
+
if (spanLevel < this.logLevel) {
|
|
943
|
+
continue;
|
|
944
|
+
}
|
|
945
|
+
const duration = spanDurationInMillis(span);
|
|
946
|
+
console.log(chalk.grey([
|
|
947
|
+
`Span [${span.name}]`,
|
|
948
|
+
this.logColor(spanLevel)(`${duration}ms`),
|
|
949
|
+
`TraceId: ${span.spanContext().traceId}`
|
|
950
|
+
].join(", ")));
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
logColor(level) {
|
|
954
|
+
return _XyoConsoleSpanExporter.logLevelToChalkColor[level] ?? chalk.magenta;
|
|
955
|
+
}
|
|
956
|
+
spanLevel(span) {
|
|
957
|
+
let logLevel = 0;
|
|
958
|
+
const duration = spanDurationInMillis(span);
|
|
959
|
+
for (let x = _XyoConsoleSpanExporter.durationToLogLevel.length - 1; x >= 0; x--) {
|
|
960
|
+
if (duration > _XyoConsoleSpanExporter.durationToLogLevel[x]) {
|
|
961
|
+
logLevel = x;
|
|
962
|
+
break;
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
return logLevel;
|
|
966
|
+
}
|
|
967
|
+
};
|
|
968
|
+
export {
|
|
969
|
+
DEFAULT_FIND_FIRST_MATCHING_NEXT_OPTIONS,
|
|
970
|
+
DataIntervalTree,
|
|
971
|
+
InOrder,
|
|
972
|
+
IntervalMap,
|
|
973
|
+
IntervalTree,
|
|
974
|
+
Node,
|
|
975
|
+
PreOrder,
|
|
976
|
+
ReverseInOrder,
|
|
977
|
+
XyoConsoleSpanExporter,
|
|
978
|
+
bigIntToFixedPointString,
|
|
979
|
+
findFirstMatching,
|
|
980
|
+
formatNumberForDisplay,
|
|
981
|
+
formattedMXL1toXl1,
|
|
982
|
+
hexToLast4BytesInt,
|
|
983
|
+
payloadsToArchivist,
|
|
984
|
+
removeTrailingZeros,
|
|
985
|
+
shuffleWithSeed,
|
|
986
|
+
spanDurationInMillis,
|
|
987
|
+
startupSpanAsync,
|
|
988
|
+
stepWindowCalculatorFromBlock,
|
|
989
|
+
synchronizeArchivists
|
|
990
|
+
};
|
|
991
|
+
//# sourceMappingURL=utils.mjs.map
|