@xyo-network/chain-sdk 4.0.4 → 4.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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 +109 -60
|
@@ -0,0 +1,841 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
5
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
6
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7
|
+
if (decorator = decorators[i])
|
|
8
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
9
|
+
if (kind && result) __defProp(target, key, result);
|
|
10
|
+
return result;
|
|
11
|
+
};
|
|
12
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
13
|
+
|
|
14
|
+
// src/modules/services/BlockReward/EvmBlockRewardViewer.ts
|
|
15
|
+
import {
|
|
16
|
+
AbstractCreatable,
|
|
17
|
+
assertEx,
|
|
18
|
+
creatable,
|
|
19
|
+
toEthAddress
|
|
20
|
+
} from "@ariestools/sdk";
|
|
21
|
+
import { IXyoChainRewards__factory } from "@xyo-network/typechain";
|
|
22
|
+
import {
|
|
23
|
+
asAttoXL1,
|
|
24
|
+
BlockRewardViewerMoniker
|
|
25
|
+
} from "@xyo-network/xl1-sdk";
|
|
26
|
+
var EvmBlockRewardViewer = class extends AbstractCreatable {
|
|
27
|
+
moniker = EvmBlockRewardViewer.defaultMoniker;
|
|
28
|
+
_contractAddress;
|
|
29
|
+
get chainContractViewer() {
|
|
30
|
+
return assertEx(this.params.chainContractViewer, () => "chainContractViewer is required");
|
|
31
|
+
}
|
|
32
|
+
get contractAddress() {
|
|
33
|
+
return assertEx(this._contractAddress, () => "contractAddress is required");
|
|
34
|
+
}
|
|
35
|
+
get provider() {
|
|
36
|
+
return assertEx(this.params.provider, () => "provider is required");
|
|
37
|
+
}
|
|
38
|
+
async allowedRewardForBlock(blockNumber) {
|
|
39
|
+
const contract = IXyoChainRewards__factory.connect(toEthAddress(this.contractAddress), this.provider);
|
|
40
|
+
return asAttoXL1(await contract.calcBlockReward(blockNumber));
|
|
41
|
+
}
|
|
42
|
+
async createHandler() {
|
|
43
|
+
await super.createHandler();
|
|
44
|
+
try {
|
|
45
|
+
this._contractAddress = await this.chainContractViewer.rewardsContract();
|
|
46
|
+
} catch (ex) {
|
|
47
|
+
const error = ex;
|
|
48
|
+
throw new Error(`Failed to get rewards contract address: ${error.message}`, { cause: ex });
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
__publicField(EvmBlockRewardViewer, "connectionTypes", ["evm-rpc"]);
|
|
53
|
+
__publicField(EvmBlockRewardViewer, "defaultMoniker", BlockRewardViewerMoniker);
|
|
54
|
+
__publicField(EvmBlockRewardViewer, "monikers", [BlockRewardViewerMoniker]);
|
|
55
|
+
__publicField(EvmBlockRewardViewer, "surface", "node");
|
|
56
|
+
EvmBlockRewardViewer = __decorateClass([
|
|
57
|
+
creatable()
|
|
58
|
+
], EvmBlockRewardViewer);
|
|
59
|
+
|
|
60
|
+
// src/modules/services/ChainValidator/XyoValidator.ts
|
|
61
|
+
import { AbstractCreatableProvider, BlockViewerMoniker } from "@xyo-network/xl1-sdk";
|
|
62
|
+
var XyoValidator = class extends AbstractCreatableProvider {
|
|
63
|
+
moniker = "Validator";
|
|
64
|
+
_blockViewer;
|
|
65
|
+
// get address() {
|
|
66
|
+
// return this.account.address
|
|
67
|
+
// }
|
|
68
|
+
// protected get account() {
|
|
69
|
+
// return assertEx(this.params.account, () => 'account is required')
|
|
70
|
+
// }
|
|
71
|
+
get blockViewer() {
|
|
72
|
+
return this._blockViewer;
|
|
73
|
+
}
|
|
74
|
+
// protected get chainInfo() {
|
|
75
|
+
// return assertEx(this.params.chainId, () => 'chainInfo is required')
|
|
76
|
+
// }
|
|
77
|
+
// protected get electionService() {
|
|
78
|
+
// return assertEx(this.params.electionService, () => 'electionService is required')
|
|
79
|
+
// }
|
|
80
|
+
// protected get pendingBundledTransactionsArchivist() {
|
|
81
|
+
// return assertEx(this.params.pendingBundledTransactionsArchivist, () => 'pendingBundledTransactions is required')
|
|
82
|
+
// }
|
|
83
|
+
// protected get blockRewardService() {
|
|
84
|
+
// return assertEx(this.params.blockRewardService, () => 'blockRewardService is required')
|
|
85
|
+
// }
|
|
86
|
+
async createHandler() {
|
|
87
|
+
this._blockViewer = await this.locator.getInstance(BlockViewerMoniker);
|
|
88
|
+
}
|
|
89
|
+
validatePendingBlock(_block) {
|
|
90
|
+
return [];
|
|
91
|
+
}
|
|
92
|
+
// TODO: Move to validator and inherit this class from validator
|
|
93
|
+
async validatePendingTransaction(hydratedTransaction) {
|
|
94
|
+
const [tx] = hydratedTransaction;
|
|
95
|
+
if (await this.blockViewer.blockByHash(tx._hash) !== void 0) return false;
|
|
96
|
+
return await Promise.resolve(true);
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
// src/modules/services/Election/BaseElectionService.ts
|
|
101
|
+
import { assertEx as assertEx2 } from "@ariestools/sdk";
|
|
102
|
+
import {
|
|
103
|
+
AbstractCreatableProvider as AbstractCreatableProvider2,
|
|
104
|
+
creatableProvider
|
|
105
|
+
} from "@xyo-network/xl1-sdk";
|
|
106
|
+
import { hexToLast4BytesInt, shuffleWithSeed } from "#utils";
|
|
107
|
+
var BaseElectionService = class extends AbstractCreatableProvider2 {
|
|
108
|
+
moniker = BaseElectionService.defaultMoniker;
|
|
109
|
+
get blockViewer() {
|
|
110
|
+
return assertEx2(this.params.blockViewer, () => "No block viewer");
|
|
111
|
+
}
|
|
112
|
+
get chainStakeViewer() {
|
|
113
|
+
return assertEx2(this.params.chainStakeViewer, () => "No chain stake viewer");
|
|
114
|
+
}
|
|
115
|
+
get stakeIntentService() {
|
|
116
|
+
return assertEx2(this.params.stakeIntentService, () => "No staked intent service");
|
|
117
|
+
}
|
|
118
|
+
async getCreatorCommitteeForNextBlock(current) {
|
|
119
|
+
return await this.spanAsync("getCreatorCommitteeForNextBlock", async () => {
|
|
120
|
+
const nextBlock = current.block + 1;
|
|
121
|
+
const candidates = await this.stakeIntentService.getDeclaredCandidatesForBlock(nextBlock, "producer");
|
|
122
|
+
const previousBlockHash = current._hash;
|
|
123
|
+
return this.generateCreatorCommittee(candidates, previousBlockHash);
|
|
124
|
+
}, this.context);
|
|
125
|
+
}
|
|
126
|
+
generateCreatorCommittee(candidates, previousBlockHash, maxSize = 3) {
|
|
127
|
+
const creators = new Set(candidates);
|
|
128
|
+
const seed = hexToLast4BytesInt(previousBlockHash);
|
|
129
|
+
const creatorArray = shuffleWithSeed(creators, seed);
|
|
130
|
+
return creatorArray.slice(0, maxSize);
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
__publicField(BaseElectionService, "defaultMoniker", "Election");
|
|
134
|
+
__publicField(BaseElectionService, "dependencies", []);
|
|
135
|
+
__publicField(BaseElectionService, "monikers", ["Election"]);
|
|
136
|
+
BaseElectionService = __decorateClass([
|
|
137
|
+
creatableProvider()
|
|
138
|
+
], BaseElectionService);
|
|
139
|
+
|
|
140
|
+
// src/modules/services/implementation/head/createBootstrapHead.ts
|
|
141
|
+
import { toAddress } from "@ariestools/sdk";
|
|
142
|
+
import { createDeclarationIntent } from "@xyo-network/xl1-sdk";
|
|
143
|
+
import { buildNextBlock, createGenesisBlock } from "#protocol";
|
|
144
|
+
var createBootstrapHead = async (account, chainId, genesisBlockRewardAmount, genesisBlockRewardAddress) => {
|
|
145
|
+
const chain = [];
|
|
146
|
+
const genesisBlock = await createGenesisBlock(account, chainId, genesisBlockRewardAmount, genesisBlockRewardAddress);
|
|
147
|
+
chain.push(genesisBlock);
|
|
148
|
+
const producerDeclarationPayload = createDeclarationIntent(
|
|
149
|
+
toAddress(account.address),
|
|
150
|
+
"producer",
|
|
151
|
+
genesisBlock[0].block,
|
|
152
|
+
genesisBlock[0].block + 1e4
|
|
153
|
+
);
|
|
154
|
+
const producerDeclarationBlock = await buildNextBlock(
|
|
155
|
+
genesisBlock[0],
|
|
156
|
+
[],
|
|
157
|
+
[producerDeclarationPayload],
|
|
158
|
+
[account]
|
|
159
|
+
);
|
|
160
|
+
chain.push(producerDeclarationBlock);
|
|
161
|
+
return chain;
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
// src/modules/services/implementation/processPendingBlocks.ts
|
|
165
|
+
import { assertEx as assertEx3, isDefined } from "@ariestools/sdk";
|
|
166
|
+
import { BlockRejectionSchema, isSignedHydratedBlockWithHashMeta } from "@xyo-network/xl1-sdk";
|
|
167
|
+
import { ChainHeadSelector } from "#analyze";
|
|
168
|
+
async function processPendingBlocks({
|
|
169
|
+
blockValidationViewer,
|
|
170
|
+
blockViewer,
|
|
171
|
+
context,
|
|
172
|
+
logger,
|
|
173
|
+
mempoolViewer,
|
|
174
|
+
finalizationRunner,
|
|
175
|
+
allowedProducers,
|
|
176
|
+
minCandidates,
|
|
177
|
+
deadLetterQueueRunner
|
|
178
|
+
}) {
|
|
179
|
+
const start = Date.now();
|
|
180
|
+
const currentBlock = await blockViewer.currentBlock();
|
|
181
|
+
const headSelector = new ChainHeadSelector({
|
|
182
|
+
context,
|
|
183
|
+
logger,
|
|
184
|
+
mempoolViewer,
|
|
185
|
+
blockViewer,
|
|
186
|
+
windowedFinalizedChain: [currentBlock],
|
|
187
|
+
allowedProducers,
|
|
188
|
+
minCandidates
|
|
189
|
+
});
|
|
190
|
+
const bestHeadChain = await headSelector.findBestHead();
|
|
191
|
+
if (isDefined(bestHeadChain) && bestHeadChain.length > 0) {
|
|
192
|
+
const oldHeadBlock = currentBlock[0];
|
|
193
|
+
const newHydratedHeadBlock = assertEx3(bestHeadChain.at(-1), () => "Missing best head block [processPendingBlocks]");
|
|
194
|
+
const newHeadBlock = newHydratedHeadBlock[0];
|
|
195
|
+
logger?.debug("Validating new HeadBlock head from (block) ", oldHeadBlock?.block, "to", newHeadBlock.block);
|
|
196
|
+
logger?.debug("Validating new HeadBlock head from (hash) ", oldHeadBlock?._hash, "to", newHeadBlock._hash);
|
|
197
|
+
if (newHeadBlock._hash === oldHeadBlock?._hash) {
|
|
198
|
+
logger?.debug("No new blocks found", oldHeadBlock?.block, "to", newHeadBlock.block);
|
|
199
|
+
return;
|
|
200
|
+
}
|
|
201
|
+
const candidateBlocks = bestHeadChain.filter((b) => {
|
|
202
|
+
return isDefined(oldHeadBlock) ? b[0].block > oldHeadBlock.block : true;
|
|
203
|
+
});
|
|
204
|
+
const validationResults = await Promise.all(candidateBlocks.map((candidateBlock) => Promise.resolve(blockValidationViewer.validateBlocks([candidateBlock], { value: true, state: true }))));
|
|
205
|
+
const blocksToFinalize = [];
|
|
206
|
+
for (const [i, block] of candidateBlocks.entries()) {
|
|
207
|
+
const result = validationResults[i][0];
|
|
208
|
+
if (isSignedHydratedBlockWithHashMeta(result)) {
|
|
209
|
+
blocksToFinalize.push(block);
|
|
210
|
+
} else {
|
|
211
|
+
logger?.error("Block validation failed", block[0].block, block[0]._hash, JSON.stringify(result, null, 2));
|
|
212
|
+
if (deadLetterQueueRunner) {
|
|
213
|
+
const errors = Array.isArray(result) ? result.map((e) => ({
|
|
214
|
+
hash: block[0]._hash,
|
|
215
|
+
name: "BlockValidationError",
|
|
216
|
+
message: String(e.message ?? e)
|
|
217
|
+
})) : [{ hash: block[0]._hash, name: "BlockValidationError" }];
|
|
218
|
+
await deadLetterQueueRunner.rejectBlock({
|
|
219
|
+
schema: BlockRejectionSchema,
|
|
220
|
+
block,
|
|
221
|
+
errors,
|
|
222
|
+
rejector: "validator"
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
logger?.info("Validated new HeadBlock head from (block) in", `${Date.now() - start}ms`, newHeadBlock.block, "to", oldHeadBlock?.block);
|
|
228
|
+
logger?.info("Validated new HeadBlock head from (hash) in", `${Date.now() - start}ms`, newHeadBlock._hash, "to", oldHeadBlock?._hash);
|
|
229
|
+
if (blocksToFinalize.length > 0) {
|
|
230
|
+
await finalizationRunner.finalizeBlocks(blocksToFinalize);
|
|
231
|
+
}
|
|
232
|
+
await headSelector.finalizeChainFragment(blocksToFinalize);
|
|
233
|
+
return blocksToFinalize;
|
|
234
|
+
}
|
|
235
|
+
logger?.info("No head found to validate", currentBlock?.[0]._hash);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
// src/modules/services/NetworkStakeStepReward/BaseNetworkStakeStepRewardService.ts
|
|
239
|
+
import {
|
|
240
|
+
AbstractCreatableProvider as AbstractCreatableProvider3,
|
|
241
|
+
creatableProvider as creatableProvider2,
|
|
242
|
+
NetworkStakeStepRewardViewerMoniker
|
|
243
|
+
} from "@xyo-network/xl1-sdk";
|
|
244
|
+
var BaseNetworkStakeStepRewardService = class extends AbstractCreatableProvider3 {
|
|
245
|
+
moniker = BaseNetworkStakeStepRewardService.defaultMoniker;
|
|
246
|
+
networkStakeStepRewardAddressHistory(_address) {
|
|
247
|
+
throw new Error("Method [networkStakeStepRewardAddressHistory] not implemented.");
|
|
248
|
+
}
|
|
249
|
+
networkStakeStepRewardAddressReward(_context, _address) {
|
|
250
|
+
throw new Error("Method [networkStakeStepRewardAddressReward] not implemented.");
|
|
251
|
+
}
|
|
252
|
+
networkStakeStepRewardAddressShare(_context, _address) {
|
|
253
|
+
throw new Error("Method [networkStakeStepRewardAddressShare] not implemented.");
|
|
254
|
+
}
|
|
255
|
+
networkStakeStepRewardClaimedByAddress(_address) {
|
|
256
|
+
throw new Error("Method [networkStakeStepRewardClaimedByAddress] not implemented.");
|
|
257
|
+
}
|
|
258
|
+
networkStakeStepRewardForPosition(_position, _range) {
|
|
259
|
+
throw new Error("Method [networkStakeStepRewardForPosition] not implemented.");
|
|
260
|
+
}
|
|
261
|
+
networkStakeStepRewardForStep(_context) {
|
|
262
|
+
throw new Error("Method [networkStakeStepRewardForStep] not implemented.");
|
|
263
|
+
}
|
|
264
|
+
networkStakeStepRewardForStepForPosition(_context, _position) {
|
|
265
|
+
throw new Error("Method [networkStakeStepRewardForStepForPosition] not implemented.");
|
|
266
|
+
}
|
|
267
|
+
networkStakeStepRewardPoolRewards(_context) {
|
|
268
|
+
throw new Error("Method [networkStakeStepRewardPoolRewards] not implemented.");
|
|
269
|
+
}
|
|
270
|
+
networkStakeStepRewardPoolShares(_context) {
|
|
271
|
+
throw new Error("Method [networkStakeStepRewardPoolShares] not implemented.");
|
|
272
|
+
}
|
|
273
|
+
networkStakeStepRewardPositionWeight(_context, _position) {
|
|
274
|
+
throw new Error("Method [networkStakeStepRewardPositionWeight] not implemented.");
|
|
275
|
+
}
|
|
276
|
+
networkStakeStepRewardPotentialPositionLoss(_context, _position) {
|
|
277
|
+
throw new Error("Method [networkStakeStepRewardPotentialPositionLoss] not implemented.");
|
|
278
|
+
}
|
|
279
|
+
networkStakeStepRewardRandomizer(_context) {
|
|
280
|
+
throw new Error("Method [networkStakeStepRewardRandomizer] not implemented.");
|
|
281
|
+
}
|
|
282
|
+
networkStakeStepRewardStakerCount(_context) {
|
|
283
|
+
throw new Error("Method [networkStakeStepRewardStakerCount] not implemented.");
|
|
284
|
+
}
|
|
285
|
+
networkStakeStepRewardUnclaimedByAddress(_address) {
|
|
286
|
+
throw new Error("Method [networkStakeStepRewardUnclaimedByAddress] not implemented.");
|
|
287
|
+
}
|
|
288
|
+
networkStakeStepRewardWeightForAddress(_context, _address) {
|
|
289
|
+
throw new Error("Method [networkStakeStepRewardWeightForAddress] not implemented.");
|
|
290
|
+
}
|
|
291
|
+
networkStakeStepRewardsForPosition(_position, _range) {
|
|
292
|
+
throw new Error("Method [networkStakeStepRewardsForPosition] not implemented.");
|
|
293
|
+
}
|
|
294
|
+
networkStakeStepRewardsForRange(_range) {
|
|
295
|
+
throw new Error("Method [networkStakeStepRewardsForRange] not implemented.");
|
|
296
|
+
}
|
|
297
|
+
networkStakeStepRewardsForStepLevel(_stepLevel, _range) {
|
|
298
|
+
throw new Error("Method [networkStakeStepRewardsForStepLevel] not implemented.");
|
|
299
|
+
}
|
|
300
|
+
};
|
|
301
|
+
__publicField(BaseNetworkStakeStepRewardService, "defaultMoniker", NetworkStakeStepRewardViewerMoniker);
|
|
302
|
+
__publicField(BaseNetworkStakeStepRewardService, "dependencies", []);
|
|
303
|
+
__publicField(BaseNetworkStakeStepRewardService, "monikers", [NetworkStakeStepRewardViewerMoniker]);
|
|
304
|
+
BaseNetworkStakeStepRewardService = __decorateClass([
|
|
305
|
+
creatableProvider2()
|
|
306
|
+
], BaseNetworkStakeStepRewardService);
|
|
307
|
+
|
|
308
|
+
// src/modules/services/simple/block/runner/SimpleBlockRunner.ts
|
|
309
|
+
import {
|
|
310
|
+
assertEx as assertEx5,
|
|
311
|
+
hexToBigInt,
|
|
312
|
+
isDefined as isDefined2,
|
|
313
|
+
toAddress as toAddress2
|
|
314
|
+
} from "@ariestools/sdk";
|
|
315
|
+
import {
|
|
316
|
+
MemoryArchivist,
|
|
317
|
+
PayloadBuilder as PayloadBuilder2
|
|
318
|
+
} from "@xyo-network/sdk";
|
|
319
|
+
import {
|
|
320
|
+
AbstractCreatableProvider as AbstractCreatableProvider4,
|
|
321
|
+
AccountBalanceViewerMoniker,
|
|
322
|
+
asBlockBoundWitness,
|
|
323
|
+
AttoXL1,
|
|
324
|
+
BlockNumberSchema,
|
|
325
|
+
BlockRejectionSchema as BlockRejectionSchema2,
|
|
326
|
+
BlockRewardViewerMoniker as BlockRewardViewerMoniker2,
|
|
327
|
+
BlockRunnerMoniker,
|
|
328
|
+
BlockValidationViewerMoniker,
|
|
329
|
+
creatableProvider as creatableProvider3,
|
|
330
|
+
createDeclarationIntent as createDeclarationIntent2,
|
|
331
|
+
DeadLetterQueueRunnerMoniker,
|
|
332
|
+
defaultRewardRatio,
|
|
333
|
+
FinalizationViewerMoniker,
|
|
334
|
+
isSignedHydratedBlockWithHashMeta as isSignedHydratedBlockWithHashMeta2,
|
|
335
|
+
isTransfer,
|
|
336
|
+
MempoolViewerMoniker,
|
|
337
|
+
TimeSyncViewerMoniker,
|
|
338
|
+
TransactionRejectionSchema,
|
|
339
|
+
XYO_STEP_REWARD_ADDRESS
|
|
340
|
+
} from "@xyo-network/xl1-sdk";
|
|
341
|
+
import { FixedPercentageBlockRewardDiviner, FixedPercentageBlockRewardDivinerConfigSchema } from "#modules";
|
|
342
|
+
import { buildNextBlock as buildNextBlock2 } from "#protocol";
|
|
343
|
+
|
|
344
|
+
// src/modules/services/simple/block/runner/generateTransactionFeeTransfers.ts
|
|
345
|
+
import { assertEx as assertEx4, hexFromBigInt } from "@ariestools/sdk";
|
|
346
|
+
import { PayloadBuilder } from "@xyo-network/sdk";
|
|
347
|
+
import {
|
|
348
|
+
HydratedTransactionWrapper,
|
|
349
|
+
transactionRequiredGas,
|
|
350
|
+
TransferSchema,
|
|
351
|
+
XYO_ZERO_ADDRESS
|
|
352
|
+
} from "@xyo-network/xl1-sdk";
|
|
353
|
+
async function generateTransactionFeeTransfers(address, transactions) {
|
|
354
|
+
const txs = await Promise.all(transactions.map(async (tx) => {
|
|
355
|
+
return HydratedTransactionWrapper.parse([await PayloadBuilder.addStorageMeta(tx[0]), await PayloadBuilder.addStorageMeta(tx[1])]);
|
|
356
|
+
}));
|
|
357
|
+
const txBaseFeeCosts = {};
|
|
358
|
+
for (const tx of txs) {
|
|
359
|
+
txBaseFeeCosts[tx.boundWitness.from] = (txBaseFeeCosts[tx.boundWitness.from] ?? 0n) + tx.fees.base;
|
|
360
|
+
}
|
|
361
|
+
const txGasCosts = {};
|
|
362
|
+
for (const tx of txs) {
|
|
363
|
+
const requiredGas = transactionRequiredGas(tx.data);
|
|
364
|
+
const totalGasCost = requiredGas * tx.fees.gasPrice;
|
|
365
|
+
txGasCosts[tx.boundWitness.from] = (txBaseFeeCosts[tx.boundWitness.from] ?? 0n) + totalGasCost;
|
|
366
|
+
}
|
|
367
|
+
const payloads = Object.entries(txBaseFeeCosts).map(([from, amount]) => {
|
|
368
|
+
const payload = {
|
|
369
|
+
schema: TransferSchema,
|
|
370
|
+
epoch: Date.now(),
|
|
371
|
+
from,
|
|
372
|
+
transfers: Object.fromEntries([[String(XYO_ZERO_ADDRESS), hexFromBigInt(amount)]])
|
|
373
|
+
};
|
|
374
|
+
return payload;
|
|
375
|
+
});
|
|
376
|
+
for (const [from, amount] of Object.entries(txGasCosts)) {
|
|
377
|
+
const fromPayload = assertEx4(payloads.find((p) => p.from === from), () => "from payload not found");
|
|
378
|
+
fromPayload.transfers[address] = hexFromBigInt(amount);
|
|
379
|
+
}
|
|
380
|
+
return payloads;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
// src/modules/services/simple/block/runner/identifyOffendingTransactions.ts
|
|
384
|
+
import {
|
|
385
|
+
HydratedTransactionWrapper as HydratedTransactionWrapper2,
|
|
386
|
+
netBalancesForPayloads,
|
|
387
|
+
transactionRequiredGas as transactionRequiredGas2
|
|
388
|
+
} from "@xyo-network/xl1-sdk";
|
|
389
|
+
async function scoreTransaction(tx) {
|
|
390
|
+
const wrapper = await HydratedTransactionWrapper2.parse(tx);
|
|
391
|
+
const from = wrapper.boundWitness.from;
|
|
392
|
+
const gasPrice = wrapper.fees.gasPrice;
|
|
393
|
+
const gasCost = transactionRequiredGas2(tx) * gasPrice;
|
|
394
|
+
const baseCost = wrapper.fees.base;
|
|
395
|
+
const netBalances = netBalancesForPayloads({ singletons: {} }, tx[1]);
|
|
396
|
+
const fromNet = netBalances[from] ?? 0n;
|
|
397
|
+
const transferOut = fromNet < 0n ? -fromNet : 0n;
|
|
398
|
+
return { cost: gasCost + baseCost + transferOut, gasPrice };
|
|
399
|
+
}
|
|
400
|
+
async function identifyOffendingTransactions(args) {
|
|
401
|
+
const { errors, candidateTransactions } = args;
|
|
402
|
+
const candidateHashes = new Set(candidateTransactions.map((tx) => tx[0]._hash));
|
|
403
|
+
const txInvalidHashes = /* @__PURE__ */ new Set();
|
|
404
|
+
for (const error of errors) {
|
|
405
|
+
if (candidateHashes.has(error.hash)) txInvalidHashes.add(error.hash);
|
|
406
|
+
const cause = error.cause;
|
|
407
|
+
if (cause?.hash && candidateHashes.has(cause.hash)) txInvalidHashes.add(cause.hash);
|
|
408
|
+
}
|
|
409
|
+
if (txInvalidHashes.size > 0) {
|
|
410
|
+
return { offendingHashes: [...txInvalidHashes], reason: "tx-invalid" };
|
|
411
|
+
}
|
|
412
|
+
const balanceOffenderHashes = /* @__PURE__ */ new Set();
|
|
413
|
+
for (const error of errors) {
|
|
414
|
+
const offendingHashes = error.offendingTransactionHashes ?? [];
|
|
415
|
+
for (const hash of offendingHashes) {
|
|
416
|
+
if (candidateHashes.has(hash)) balanceOffenderHashes.add(hash);
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
if (balanceOffenderHashes.size === 0) {
|
|
420
|
+
return { offendingHashes: [], reason: "unknown" };
|
|
421
|
+
}
|
|
422
|
+
const offenders = candidateTransactions.filter((tx) => balanceOffenderHashes.has(tx[0]._hash));
|
|
423
|
+
const scored = await Promise.all(offenders.map(async (tx) => ({ tx, ...await scoreTransaction(tx) })));
|
|
424
|
+
scored.sort((a, b) => {
|
|
425
|
+
if (a.cost !== b.cost) return a.cost < b.cost ? 1 : -1;
|
|
426
|
+
if (a.gasPrice !== b.gasPrice) return a.gasPrice < b.gasPrice ? -1 : 1;
|
|
427
|
+
return a.tx[0]._hash < b.tx[0]._hash ? -1 : 1;
|
|
428
|
+
});
|
|
429
|
+
return { offendingHashes: [scored[0].tx[0]._hash], reason: "block-balance" };
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
// src/modules/services/simple/block/runner/SimpleBlockRunner.ts
|
|
433
|
+
var DEFAULT_BLOCK_SIZE = 10;
|
|
434
|
+
var XYO_PRODUCER_REDECLARATION_DURATION = 100;
|
|
435
|
+
var XYO_PRODUCER_REDECLARATION_WINDOW = 100;
|
|
436
|
+
var SimpleBlockRunner = class extends AbstractCreatableProvider4 {
|
|
437
|
+
moniker = SimpleBlockRunner.defaultMoniker;
|
|
438
|
+
_blockRewardDiviner;
|
|
439
|
+
_deadLetterQueueRunner;
|
|
440
|
+
// TODO(producer-exclusion-set): uncapped for v1. If memory grows in long-running producers,
|
|
441
|
+
// add FIFO eviction or a TTL keyed off block number.
|
|
442
|
+
_excludedTransactionHashes = /* @__PURE__ */ new Set();
|
|
443
|
+
_lastRedeclarationBlock;
|
|
444
|
+
_rejectedTransactionsArchivist;
|
|
445
|
+
_account;
|
|
446
|
+
_accountBalanceViewer;
|
|
447
|
+
_address;
|
|
448
|
+
_blockRewardViewer;
|
|
449
|
+
_blockValidationViewer;
|
|
450
|
+
_finalizationViewer;
|
|
451
|
+
_mempoolViewer;
|
|
452
|
+
_rewardAddress;
|
|
453
|
+
_timeSyncViewer;
|
|
454
|
+
/**
|
|
455
|
+
* The default block size for a block
|
|
456
|
+
*/
|
|
457
|
+
static get DefaultBlockSize() {
|
|
458
|
+
return DEFAULT_BLOCK_SIZE;
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* The amount of time for which the producer will redeclare
|
|
462
|
+
* their intent to continue producing blocks
|
|
463
|
+
*/
|
|
464
|
+
static get RedeclarationDuration() {
|
|
465
|
+
return XYO_PRODUCER_REDECLARATION_DURATION;
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
* The number of blocks within which the producer will redeclare
|
|
469
|
+
* their intent to continue producing blocks
|
|
470
|
+
*/
|
|
471
|
+
static get RedeclarationWindow() {
|
|
472
|
+
return XYO_PRODUCER_REDECLARATION_WINDOW;
|
|
473
|
+
}
|
|
474
|
+
get account() {
|
|
475
|
+
return this._account;
|
|
476
|
+
}
|
|
477
|
+
get accountBalanceViewer() {
|
|
478
|
+
return this._accountBalanceViewer;
|
|
479
|
+
}
|
|
480
|
+
get address() {
|
|
481
|
+
return this._address;
|
|
482
|
+
}
|
|
483
|
+
get blockRewardViewer() {
|
|
484
|
+
return this._blockRewardViewer;
|
|
485
|
+
}
|
|
486
|
+
get blockValidationViewer() {
|
|
487
|
+
return this._blockValidationViewer;
|
|
488
|
+
}
|
|
489
|
+
get finalizationViewer() {
|
|
490
|
+
return this._finalizationViewer;
|
|
491
|
+
}
|
|
492
|
+
get heartbeatInterval() {
|
|
493
|
+
return this.params.heartbeatInterval ?? 36e5;
|
|
494
|
+
}
|
|
495
|
+
get mempoolViewer() {
|
|
496
|
+
return this._mempoolViewer;
|
|
497
|
+
}
|
|
498
|
+
// protected get pendingTransactionsService() {
|
|
499
|
+
// return assertEx(this.params.pendingTransactionsService, () => 'Missing pendingTransactionsService')
|
|
500
|
+
// }
|
|
501
|
+
get rejectedTransactionsArchivist() {
|
|
502
|
+
return this._rejectedTransactionsArchivist;
|
|
503
|
+
}
|
|
504
|
+
get rewardAddress() {
|
|
505
|
+
return this._rewardAddress;
|
|
506
|
+
}
|
|
507
|
+
// protected get stakeIntentService(): StakeIntentService {
|
|
508
|
+
// return assertEx(this.params.stakeIntentService, () => 'No StakeIntentService provided')
|
|
509
|
+
// }
|
|
510
|
+
get timeSyncViewer() {
|
|
511
|
+
return this._timeSyncViewer;
|
|
512
|
+
}
|
|
513
|
+
// protected get validateHydratedBlockState() {
|
|
514
|
+
// return assertEx(this.params.validateHydratedBlockState, () => 'validateHydratedBlockState is required')
|
|
515
|
+
// }
|
|
516
|
+
async createHandler() {
|
|
517
|
+
this._rejectedTransactionsArchivist = this.params.rejectedTransactionsArchivist ?? await MemoryArchivist.create();
|
|
518
|
+
this._account = assertEx5(this.params.account, () => "Account is required");
|
|
519
|
+
this._address = toAddress2(this.account.address);
|
|
520
|
+
this._accountBalanceViewer = await this.locateAndCreate(AccountBalanceViewerMoniker);
|
|
521
|
+
this._blockRewardViewer = await this.locateAndCreate(BlockRewardViewerMoniker2);
|
|
522
|
+
this._blockValidationViewer = await this.locator.getInstance(BlockValidationViewerMoniker);
|
|
523
|
+
this._finalizationViewer = await this.locateAndCreate(FinalizationViewerMoniker);
|
|
524
|
+
this._mempoolViewer = await this.locateAndCreate(MempoolViewerMoniker);
|
|
525
|
+
this._rewardAddress = this.params.rewardAddress;
|
|
526
|
+
this._timeSyncViewer = await this.locateAndCreate(TimeSyncViewerMoniker);
|
|
527
|
+
this._deadLetterQueueRunner = await this.locator.tryGetInstance(DeadLetterQueueRunnerMoniker);
|
|
528
|
+
}
|
|
529
|
+
async next(head) {
|
|
530
|
+
return await this.proposeNextValidBlock(head);
|
|
531
|
+
}
|
|
532
|
+
async produceNextBlock(head, force) {
|
|
533
|
+
const result = await this.proposeNextValidBlock(head);
|
|
534
|
+
return force === true ? assertEx5(result, () => "Failed to produce next block") : result;
|
|
535
|
+
}
|
|
536
|
+
async getBlockRewardTransfers(block) {
|
|
537
|
+
this._blockRewardDiviner ??= await FixedPercentageBlockRewardDiviner.create({
|
|
538
|
+
account: "random",
|
|
539
|
+
blockRewardViewer: this.blockRewardViewer,
|
|
540
|
+
config: {
|
|
541
|
+
rewardAddress: this.rewardAddress,
|
|
542
|
+
rewardPercentageRatio: defaultRewardRatio,
|
|
543
|
+
schema: FixedPercentageBlockRewardDivinerConfigSchema
|
|
544
|
+
}
|
|
545
|
+
});
|
|
546
|
+
const blockIdBuilder = new PayloadBuilder2({ schema: BlockNumberSchema });
|
|
547
|
+
const blockId = blockIdBuilder.fields({ block }).build();
|
|
548
|
+
const rewards = await this._blockRewardDiviner.divine([blockId]);
|
|
549
|
+
return rewards;
|
|
550
|
+
}
|
|
551
|
+
/**
|
|
552
|
+
* Handles the producer redeclaration logic
|
|
553
|
+
* @param head The current head block
|
|
554
|
+
* @returns chain stake intent for the producer redeclaration, or undefined if no redeclaration is needed
|
|
555
|
+
*/
|
|
556
|
+
getProducerRedeclaration(head) {
|
|
557
|
+
if (this.params.disableIntentRedeclaration === true) return;
|
|
558
|
+
const currentBlock = head.block;
|
|
559
|
+
if (isDefined2(this._lastRedeclarationBlock)) {
|
|
560
|
+
const lastDeclarationExpiry = this._lastRedeclarationBlock + SimpleBlockRunner.RedeclarationDuration;
|
|
561
|
+
if (currentBlock < lastDeclarationExpiry) return;
|
|
562
|
+
}
|
|
563
|
+
this._lastRedeclarationBlock = currentBlock;
|
|
564
|
+
return createDeclarationIntent2(this.address, "producer", currentBlock, currentBlock + SimpleBlockRunner.RedeclarationDuration);
|
|
565
|
+
}
|
|
566
|
+
// `validateBalances` resolves from (a) the explicit method argument when
|
|
567
|
+
// passed, (b) the constructor `params.validateBalances`, or (c) `true`.
|
|
568
|
+
// True is the safe default: `filterByFunded` then enforces the same
|
|
569
|
+
// cumulative-outflow rule the post-submit block validator uses
|
|
570
|
+
// (`base + priority + gasLimit + transfer amounts`). With the old default
|
|
571
|
+
// of `false`, a tx whose declared gasLimit exceeded the sender's balance
|
|
572
|
+
// would pass the producer's filter, get submitted, and then land in
|
|
573
|
+
// `rejected_blocks` — silently wedging the chain because the producer's
|
|
574
|
+
// `_lastProducedBlock` cache muted retries. Reproduced in the
|
|
575
|
+
// api-local-mongodb-beta test rig.
|
|
576
|
+
async proposeNextValidBlock(head, validateBalances, force = false) {
|
|
577
|
+
const shouldValidateBalances = validateBalances ?? this.params.validateBalances ?? true;
|
|
578
|
+
return await this.spanAsync("proposeNextValidBlock", async () => {
|
|
579
|
+
try {
|
|
580
|
+
const { block: previousBlock } = assertEx5(asBlockBoundWitness(head), () => "Invalid head block");
|
|
581
|
+
const nextBlock = previousBlock + 1;
|
|
582
|
+
const chainId = await this.finalizationViewer.chainId();
|
|
583
|
+
const pendingTransactionsRaw = await this.mempoolViewer.pendingTransactions({ limit: SimpleBlockRunner.DefaultBlockSize });
|
|
584
|
+
const pendingTransactions = pendingTransactionsRaw.filter((tx) => !this._excludedTransactionHashes.has(tx[0]._hash));
|
|
585
|
+
const nextBlockTransactions = await this.rejectWrongChainTransactions(pendingTransactions, chainId);
|
|
586
|
+
this.logger?.log(`Pending Tx Count ${nextBlockTransactions.length}`);
|
|
587
|
+
const nonTxPayloads = [];
|
|
588
|
+
const producerRedeclarationPayload = await this.getProducerRedeclaration(head);
|
|
589
|
+
if (producerRedeclarationPayload) nonTxPayloads.push(producerRedeclarationPayload);
|
|
590
|
+
if (nextBlockTransactions.length === 0 && !this.heartbeatRequired(head) && !force) return;
|
|
591
|
+
const rewardTransferPayloads = await this.getBlockRewardTransfers(nextBlock);
|
|
592
|
+
nonTxPayloads.push(...rewardTransferPayloads);
|
|
593
|
+
const transactionTransfers = await generateTransactionFeeTransfers(this.address, nextBlockTransactions);
|
|
594
|
+
const timeStart = Date.now();
|
|
595
|
+
const timePayload = await this.generateTimePayload();
|
|
596
|
+
const timeDuration = Date.now() - timeStart;
|
|
597
|
+
if (timeDuration > 100) {
|
|
598
|
+
this.logger?.warn(`[Slow] Generated time payload in ${timeDuration}ms`);
|
|
599
|
+
}
|
|
600
|
+
const [initialFundedTransactions, initialFundedTransfers] = await this.filterByFunded(head, nextBlockTransactions, transactionTransfers, shouldValidateBalances);
|
|
601
|
+
const stepRewardBalances = await this.accountBalanceViewer.accountBalances([XYO_STEP_REWARD_ADDRESS]);
|
|
602
|
+
const stepRewardPoolBalance = stepRewardBalances[String(XYO_STEP_REWARD_ADDRESS)];
|
|
603
|
+
const result = await this.runBuildValidateRetryLoop({
|
|
604
|
+
head,
|
|
605
|
+
chainId,
|
|
606
|
+
stepRewardPoolBalance,
|
|
607
|
+
nonTxPayloads,
|
|
608
|
+
timePayload,
|
|
609
|
+
initialFundedTransactions,
|
|
610
|
+
initialFundedTransfers
|
|
611
|
+
});
|
|
612
|
+
const { block: proposedBlock, errors: proposedErrors } = result;
|
|
613
|
+
if (isSignedHydratedBlockWithHashMeta2(proposedBlock)) {
|
|
614
|
+
return proposedBlock;
|
|
615
|
+
}
|
|
616
|
+
if (proposedBlock !== void 0) await this.rejectExhaustedBlock(proposedBlock, proposedErrors);
|
|
617
|
+
} catch (error) {
|
|
618
|
+
this.logger?.error(`Error proposing next valid block: ${error.message}`);
|
|
619
|
+
throw error;
|
|
620
|
+
}
|
|
621
|
+
}, this.context);
|
|
622
|
+
}
|
|
623
|
+
/**
|
|
624
|
+
* Compute the cumulative outflow a single tx would charge to its `from`
|
|
625
|
+
* address, using the same rule as `BlockCumulativeBalanceValidator`:
|
|
626
|
+
* `outflow = base + priority + gasLimit + sum(transfer amounts to addresses
|
|
627
|
+
* other than from)`. Mirroring the validator exactly here ensures the
|
|
628
|
+
* producer doesn't include a tx that the post-submit block validator will
|
|
629
|
+
* reject, which would otherwise wedge the chain because the producer's
|
|
630
|
+
* `_lastProducedBlock` cache mutes retries.
|
|
631
|
+
*/
|
|
632
|
+
addTransferOutflow(outflow, payload) {
|
|
633
|
+
let result = outflow;
|
|
634
|
+
for (const [to, amount] of Object.entries(payload.transfers)) {
|
|
635
|
+
if (to === payload.from) continue;
|
|
636
|
+
result += hexToBigInt(amount ?? "00");
|
|
637
|
+
}
|
|
638
|
+
return result;
|
|
639
|
+
}
|
|
640
|
+
computeTransactionOutflow(tx) {
|
|
641
|
+
const [bw, payloads] = tx;
|
|
642
|
+
const {
|
|
643
|
+
base,
|
|
644
|
+
gasLimit,
|
|
645
|
+
priority
|
|
646
|
+
} = bw.fees;
|
|
647
|
+
let outflow = hexToBigInt(base) + hexToBigInt(priority) + hexToBigInt(gasLimit);
|
|
648
|
+
const txPayloadHashes = new Set(bw.payload_hashes);
|
|
649
|
+
for (const payload of payloads) {
|
|
650
|
+
if (!txPayloadHashes.has(payload._hash)) continue;
|
|
651
|
+
if (!isTransfer(payload)) continue;
|
|
652
|
+
if (payload.from !== bw.from) continue;
|
|
653
|
+
outflow = this.addTransferOutflow(outflow, payload);
|
|
654
|
+
}
|
|
655
|
+
return outflow;
|
|
656
|
+
}
|
|
657
|
+
// remove unfunded transactions and block transfers
|
|
658
|
+
async filterByFunded(head, txs, transfers, validateBalances = false) {
|
|
659
|
+
const fundedTransfers = [];
|
|
660
|
+
const fundedTransactions = [];
|
|
661
|
+
const committedOutflow = /* @__PURE__ */ new Map();
|
|
662
|
+
const balanceCache = /* @__PURE__ */ new Map();
|
|
663
|
+
for (const tx of txs) {
|
|
664
|
+
const transfer = transfers.find((candidate) => candidate.from === tx[0].from);
|
|
665
|
+
if (!transfer) continue;
|
|
666
|
+
if (!validateBalances) {
|
|
667
|
+
fundedTransfers.push(transfer);
|
|
668
|
+
fundedTransactions.push(tx);
|
|
669
|
+
continue;
|
|
670
|
+
}
|
|
671
|
+
const { from } = transfer;
|
|
672
|
+
let balance = balanceCache.get(from);
|
|
673
|
+
if (balance === void 0) {
|
|
674
|
+
const accountBalances = await this.accountBalanceViewer.accountBalances([from]);
|
|
675
|
+
balance = accountBalances[String(from)] ?? AttoXL1(0n);
|
|
676
|
+
balanceCache.set(from, balance);
|
|
677
|
+
}
|
|
678
|
+
const projectedOutflow = (committedOutflow.get(from) ?? 0n) + this.computeTransactionOutflow(tx);
|
|
679
|
+
if (balance >= projectedOutflow) {
|
|
680
|
+
committedOutflow.set(from, projectedOutflow);
|
|
681
|
+
fundedTransfers.push(transfer);
|
|
682
|
+
fundedTransactions.push(tx);
|
|
683
|
+
} else {
|
|
684
|
+
this.logger?.debug(
|
|
685
|
+
`filterByFunded: dropping tx ${tx[0]._hash} from ${from} \u2014 cumulative outflow ${projectedOutflow} > balance ${balance}`
|
|
686
|
+
);
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
return [fundedTransactions, fundedTransfers];
|
|
690
|
+
}
|
|
691
|
+
async generateTimePayload() {
|
|
692
|
+
return await this.timeSyncViewer.currentTimePayload();
|
|
693
|
+
}
|
|
694
|
+
/**
|
|
695
|
+
* Check if a heartbeat block is required based on network activity.
|
|
696
|
+
* @param head The current head block
|
|
697
|
+
* @returns True if a heartbeat is required, false otherwise
|
|
698
|
+
*/
|
|
699
|
+
heartbeatRequired(head) {
|
|
700
|
+
const epoch = head.$epoch;
|
|
701
|
+
if (isDefined2(epoch) && Date.now() - epoch > this.heartbeatInterval) {
|
|
702
|
+
return true;
|
|
703
|
+
}
|
|
704
|
+
return false;
|
|
705
|
+
}
|
|
706
|
+
async rejectExhaustedBlock(block, errors) {
|
|
707
|
+
this.logger?.warn(`Validation of produced block failed: ${errors.at(0)?.message}`);
|
|
708
|
+
if (this._deadLetterQueueRunner) {
|
|
709
|
+
const rejectionErrors = errors.map((e) => ({
|
|
710
|
+
hash: block[0]._hash,
|
|
711
|
+
name: "BlockValidationError",
|
|
712
|
+
message: String(e.message ?? e)
|
|
713
|
+
}));
|
|
714
|
+
await this._deadLetterQueueRunner.rejectBlock({
|
|
715
|
+
schema: BlockRejectionSchema2,
|
|
716
|
+
block,
|
|
717
|
+
errors: rejectionErrors,
|
|
718
|
+
rejector: "producer"
|
|
719
|
+
});
|
|
720
|
+
} else {
|
|
721
|
+
await this.rejectedTransactionsArchivist.insert(block[1]);
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
// Partition pending transactions by chain-ID match; route mismatches to the transaction DLQ.
|
|
725
|
+
async rejectWrongChainTransactions(transactions, chainId) {
|
|
726
|
+
const localChain = chainId.toLowerCase();
|
|
727
|
+
const matched = [];
|
|
728
|
+
const mismatched = [];
|
|
729
|
+
for (const tx of transactions) {
|
|
730
|
+
if (tx[0].chain.toLowerCase() === localChain) {
|
|
731
|
+
matched.push(tx);
|
|
732
|
+
} else {
|
|
733
|
+
mismatched.push(tx);
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
if (mismatched.length > 0) {
|
|
737
|
+
this.logger?.warn(`Rejecting ${mismatched.length} transaction(s) targeting non-local chain`);
|
|
738
|
+
const dlq = this._deadLetterQueueRunner;
|
|
739
|
+
await (dlq ? Promise.all(mismatched.map((tx) => dlq.rejectTransaction({
|
|
740
|
+
schema: TransactionRejectionSchema,
|
|
741
|
+
transaction: tx,
|
|
742
|
+
errors: [{
|
|
743
|
+
hash: tx[0]._hash,
|
|
744
|
+
name: "TransactionChainMismatch",
|
|
745
|
+
message: `Transaction chain ${tx[0].chain} does not match local chain ${localChain}`
|
|
746
|
+
}],
|
|
747
|
+
rejector: "producer"
|
|
748
|
+
}))) : this.rejectedTransactionsArchivist.insert(mismatched.map((tx) => tx[0])));
|
|
749
|
+
}
|
|
750
|
+
return matched;
|
|
751
|
+
}
|
|
752
|
+
async runBuildValidateRetryLoop(args) {
|
|
753
|
+
const {
|
|
754
|
+
chainId,
|
|
755
|
+
head,
|
|
756
|
+
initialFundedTransactions,
|
|
757
|
+
initialFundedTransfers,
|
|
758
|
+
nonTxPayloads,
|
|
759
|
+
stepRewardPoolBalance,
|
|
760
|
+
timePayload
|
|
761
|
+
} = args;
|
|
762
|
+
const maxAttempts = Math.max(1, initialFundedTransactions.length);
|
|
763
|
+
let candidateTransactions = initialFundedTransactions;
|
|
764
|
+
let candidateTransfers = initialFundedTransfers;
|
|
765
|
+
let lastBlock;
|
|
766
|
+
let lastErrors = [];
|
|
767
|
+
for (let attempt = 0; attempt <= maxAttempts; attempt++) {
|
|
768
|
+
const blockPayloads = [...nonTxPayloads, ...candidateTransfers, timePayload];
|
|
769
|
+
this.logger?.info(`Building block ${head.block + 1}${attempt > 0 ? ` (retry ${attempt})` : ""}`);
|
|
770
|
+
lastBlock = await buildNextBlock2(
|
|
771
|
+
head,
|
|
772
|
+
candidateTransactions,
|
|
773
|
+
blockPayloads,
|
|
774
|
+
[this.account],
|
|
775
|
+
XYO_STEP_REWARD_ADDRESS,
|
|
776
|
+
stepRewardPoolBalance,
|
|
777
|
+
void 0,
|
|
778
|
+
chainId
|
|
779
|
+
);
|
|
780
|
+
const validated = await this.blockValidationViewer.validateBlock(lastBlock, { head: head._hash });
|
|
781
|
+
if (isSignedHydratedBlockWithHashMeta2(validated)) {
|
|
782
|
+
return { block: validated, errors: [] };
|
|
783
|
+
}
|
|
784
|
+
lastErrors = validated;
|
|
785
|
+
if (attempt === maxAttempts) break;
|
|
786
|
+
const { offendingHashes, reason } = await identifyOffendingTransactions({ candidateTransactions, errors: validated });
|
|
787
|
+
if (offendingHashes.length === 0 || reason === "unknown") break;
|
|
788
|
+
for (const offendingHash of offendingHashes) this._excludedTransactionHashes.add(offendingHash);
|
|
789
|
+
const offendingSet = new Set(offendingHashes);
|
|
790
|
+
candidateTransactions = candidateTransactions.filter((tx) => !offendingSet.has(tx[0]._hash));
|
|
791
|
+
const remainingFromAddresses = new Set(candidateTransactions.map((tx) => tx[0].from));
|
|
792
|
+
const feeTransfers = await generateTransactionFeeTransfers(this.address, candidateTransactions);
|
|
793
|
+
candidateTransfers = feeTransfers.filter((t) => remainingFromAddresses.has(t.from));
|
|
794
|
+
this.logger?.warn(`Block validation failed (attempt ${attempt + 1}); excluded ${offendingHashes.length} tx(s), retrying`);
|
|
795
|
+
}
|
|
796
|
+
return { block: lastBlock, errors: lastErrors };
|
|
797
|
+
}
|
|
798
|
+
};
|
|
799
|
+
__publicField(SimpleBlockRunner, "connectionTypes", ["lmdb", "mongo", "memory"]);
|
|
800
|
+
__publicField(SimpleBlockRunner, "defaultMoniker", BlockRunnerMoniker);
|
|
801
|
+
__publicField(SimpleBlockRunner, "dependencies", [
|
|
802
|
+
AccountBalanceViewerMoniker,
|
|
803
|
+
BlockRewardViewerMoniker2,
|
|
804
|
+
BlockValidationViewerMoniker,
|
|
805
|
+
FinalizationViewerMoniker,
|
|
806
|
+
MempoolViewerMoniker,
|
|
807
|
+
TimeSyncViewerMoniker
|
|
808
|
+
]);
|
|
809
|
+
__publicField(SimpleBlockRunner, "monikers", [BlockRunnerMoniker]);
|
|
810
|
+
__publicField(SimpleBlockRunner, "surface", "node");
|
|
811
|
+
SimpleBlockRunner = __decorateClass([
|
|
812
|
+
creatableProvider3()
|
|
813
|
+
], SimpleBlockRunner);
|
|
814
|
+
|
|
815
|
+
// src/modules/services/StepStake/BaseStepStakeService.ts
|
|
816
|
+
import { AbstractCreatableProvider as AbstractCreatableProvider5, StepStakeViewerMoniker } from "@xyo-network/xl1-sdk";
|
|
817
|
+
var AbstractStepStakeService = class _AbstractStepStakeService extends AbstractCreatableProvider5 {
|
|
818
|
+
static defaultMoniker = StepStakeViewerMoniker;
|
|
819
|
+
static monikers = [StepStakeViewerMoniker];
|
|
820
|
+
moniker = _AbstractStepStakeService.defaultMoniker;
|
|
821
|
+
stepStake(_step) {
|
|
822
|
+
throw new Error("Method [stepStake] not implemented.");
|
|
823
|
+
}
|
|
824
|
+
stepStakeForAddress(_address, _step) {
|
|
825
|
+
throw new Error("Method [stepStakeForAddress] not implemented.");
|
|
826
|
+
}
|
|
827
|
+
};
|
|
828
|
+
export {
|
|
829
|
+
AbstractStepStakeService,
|
|
830
|
+
BaseElectionService,
|
|
831
|
+
BaseNetworkStakeStepRewardService,
|
|
832
|
+
DEFAULT_BLOCK_SIZE,
|
|
833
|
+
EvmBlockRewardViewer,
|
|
834
|
+
SimpleBlockRunner,
|
|
835
|
+
XYO_PRODUCER_REDECLARATION_DURATION,
|
|
836
|
+
XYO_PRODUCER_REDECLARATION_WINDOW,
|
|
837
|
+
XyoValidator,
|
|
838
|
+
createBootstrapHead,
|
|
839
|
+
processPendingBlocks
|
|
840
|
+
};
|
|
841
|
+
//# sourceMappingURL=services.mjs.map
|