dequanto 0.2.37 → 0.2.40
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/hardhat.config.js +10 -1
- package/lib/cjs/abi/$abiCoder.js +1 -1
- package/lib/cjs/abi/$abiCoder.js.map +1 -1
- package/lib/cjs/abi/Logger.js +1 -1
- package/lib/cjs/abi/abi-coder-packed.js +3 -3
- package/lib/cjs/abi/abi-coder.js +16 -16
- package/lib/cjs/abi/coders/abstract-coder.js +31 -31
- package/lib/cjs/abi/coders/abstract-coder.js.map +1 -1
- package/lib/cjs/abi/fragments.js +90 -90
- package/lib/cjs/abi/fragments.js.map +1 -1
- package/lib/cjs/blocks/BlockDateResolver.js +9 -9
- package/lib/cjs/blocks/BlockDateResolver.js.map +1 -1
- package/lib/cjs/class/PackedRanges.js +46 -46
- package/lib/cjs/class/PackedRanges.js.map +1 -1
- package/lib/cjs/clients/ClientEventsStream.js +1 -1
- package/lib/cjs/clients/ClientEventsStream.js.map +1 -1
- package/lib/cjs/clients/ClientPool.js +23 -23
- package/lib/cjs/clients/ClientPool.js.map +1 -1
- package/lib/cjs/clients/WalletClient.js +3 -3
- package/lib/cjs/clients/WalletClient.js.map +1 -1
- package/lib/cjs/clients/Web3Client.js +14 -14
- package/lib/cjs/clients/Web3Client.js.map +1 -1
- package/lib/cjs/clients/Web3ClientFactory.js +1 -1
- package/lib/cjs/clients/Web3ClientFactory.js.map +1 -1
- package/lib/cjs/clients/compatibility/Web3.js +2 -2
- package/lib/cjs/clients/compatibility/Web3.js.map +1 -1
- package/lib/cjs/clients/handlers/RateLimitGuard.js +16 -16
- package/lib/cjs/clients/handlers/RateLimitGuard.js.map +1 -1
- package/lib/cjs/clients/model/PromiEventWrap.js +1 -1
- package/lib/cjs/clients/model/PromiEventWrap.js.map +1 -1
- package/lib/cjs/clients/utils/$web3Abi.js +2 -2
- package/lib/cjs/clients/utils/$web3Abi.js.map +1 -1
- package/lib/cjs/clients/utils/ClientErrorUtil.js +4 -0
- package/lib/cjs/clients/utils/ClientErrorUtil.js.map +1 -1
- package/lib/cjs/config/Config.js.map +1 -1
- package/lib/cjs/contracts/Contract.js +1 -1
- package/lib/cjs/contracts/Contract.js.map +1 -1
- package/lib/cjs/contracts/ContractAbiProvider.js +6 -6
- package/lib/cjs/contracts/ContractAbiProvider.js.map +1 -1
- package/lib/cjs/contracts/ContractBase.js +10 -10
- package/lib/cjs/contracts/ContractBase.js.map +1 -1
- package/lib/cjs/contracts/ContractProvider.js +1 -1
- package/lib/cjs/contracts/ContractProvider.js.map +1 -1
- package/lib/cjs/contracts/ContractReader.js +5 -5
- package/lib/cjs/contracts/ContractReader.js.map +1 -1
- package/lib/cjs/contracts/ContractWriter.js +4 -4
- package/lib/cjs/contracts/ContractWriter.js.map +1 -1
- package/lib/cjs/contracts/deploy/ContractDeployer.js +4 -4
- package/lib/cjs/contracts/deploy/ContractDeployer.js.map +1 -1
- package/lib/cjs/contracts/deploy/Deployments.js +68 -26
- package/lib/cjs/contracts/deploy/Deployments.js.map +1 -1
- package/lib/cjs/contracts/deploy/proxy/$proxyDeploy.js +13 -13
- package/lib/cjs/contracts/deploy/proxy/$proxyDeploy.js.map +1 -1
- package/lib/cjs/contracts/deploy/proxy/ProxyDeployment.js +58 -25
- package/lib/cjs/contracts/deploy/proxy/ProxyDeployment.js.map +1 -1
- package/lib/cjs/contracts/deploy/storage/DeploymentsStorage.js +15 -14
- package/lib/cjs/contracts/deploy/storage/DeploymentsStorage.js.map +1 -1
- package/lib/cjs/contracts/utils/AbiDeserializer.js +4 -4
- package/lib/cjs/contracts/utils/AbiDeserializer.js.map +1 -1
- package/lib/cjs/contracts/utils/ContractBaseUtils.js +3 -3
- package/lib/cjs/contracts/utils/ContractBaseUtils.js.map +1 -1
- package/lib/cjs/evm/OpcodesWalker.js +1 -1
- package/lib/cjs/evm/OpcodesWalker.js.map +1 -1
- package/lib/cjs/explorer/BlockchainExplorer.js +1 -1
- package/lib/cjs/explorer/BlockchainExplorer.js.map +1 -1
- package/lib/cjs/explorer/BlockchainExplorerFactory.js +1 -1
- package/lib/cjs/explorer/BlockchainExplorerStorage.js +12 -12
- package/lib/cjs/explorer/BlockchainExplorerStorage.js.map +1 -1
- package/lib/cjs/explorer/Evmscan.js +1 -1
- package/lib/cjs/explorer/verifiers/FsHtmlVerifier.js +7 -7
- package/lib/cjs/explorer/verifiers/FsHtmlVerifier.js.map +1 -1
- package/lib/cjs/flashbots/FlashbotWeb3Client.js +1 -1
- package/lib/cjs/flashbots/FlashbotWeb3Client.js.map +1 -1
- package/lib/cjs/gen/Generator.js +15 -0
- package/lib/cjs/gen/Generator.js.map +1 -1
- package/lib/cjs/hardhat/HardhatProvider.js +7 -7
- package/lib/cjs/hardhat/HardhatProvider.js.map +1 -1
- package/lib/cjs/indexer/BlocksTxIndexer.js +2 -2
- package/lib/cjs/indexer/BlocksTxIndexer.js.map +1 -1
- package/lib/cjs/indexer/EventsIndexer.js +11 -11
- package/lib/cjs/indexer/EventsIndexer.js.map +1 -1
- package/lib/cjs/indexer/PendingTxIndexer.js +2 -2
- package/lib/cjs/indexer/PendingTxIndexer.js.map +1 -1
- package/lib/cjs/indexer/handlers/BlocksWalker.js +9 -9
- package/lib/cjs/indexer/handlers/BlocksWalker.js.map +1 -1
- package/lib/cjs/indexer/handlers/TxQueueLoader.js +1 -1
- package/lib/cjs/indexer/storage/FsEventsIndexerStore.js +3 -3
- package/lib/cjs/indexer/storage/FsEventsIndexerStore.js.map +1 -1
- package/lib/cjs/indexer/storage/FsEventsStoreUtils.js +1 -1
- package/lib/cjs/indexer/storage/FsEventsStoreUtils.js.map +1 -1
- package/lib/cjs/json/JsonArrayMultiStore.js +1 -1
- package/lib/cjs/json/JsonArrayMultiStore.js.map +1 -1
- package/lib/cjs/json/JsonStoreFs.js +1 -1
- package/lib/cjs/json/JsonStoreFs.js.map +1 -1
- package/lib/cjs/rpc/$rpc.js +2 -2
- package/lib/cjs/rpc/$rpc.js.map +1 -1
- package/lib/cjs/rpc/Rpc.js +2 -2
- package/lib/cjs/rpc/RpcBase.js +2 -2
- package/lib/cjs/rpc/RpcBase.js.map +1 -1
- package/lib/cjs/rpc/RpcContract.js +4 -3
- package/lib/cjs/rpc/RpcContract.js.map +1 -1
- package/lib/cjs/rpc/RpcSubscription.js +1 -1
- package/lib/cjs/rpc/RpcSubscription.js.map +1 -1
- package/lib/cjs/rpc/transports/compatibility/EIP1193Transport.js +4 -4
- package/lib/cjs/rpc/transports/compatibility/EIP1193Transport.js.map +1 -1
- package/lib/cjs/rpc/transports/compatibility/Web3Transport.js +1 -1
- package/lib/cjs/rpc/transports/compatibility/Web3Transport.js.map +1 -1
- package/lib/cjs/services/TimelockService/TimelockService.js +2 -2
- package/lib/cjs/services/TimelockService/TimelockServiceFallbackSafe.js +2 -2
- package/lib/cjs/solidity/SlotsDump.js +1 -1
- package/lib/cjs/solidity/SlotsDump.js.map +1 -1
- package/lib/cjs/solidity/SlotsParser/MappingSettersResolver.js +3 -3
- package/lib/cjs/solidity/SlotsParser/MappingSettersResolver.js.map +1 -1
- package/lib/cjs/solidity/SlotsParser/SourceFile.js +3 -3
- package/lib/cjs/solidity/SlotsParser/SourceFile.js.map +1 -1
- package/lib/cjs/solidity/SolidityParser.js +1 -1
- package/lib/cjs/solidity/SolidityParser.js.map +1 -1
- package/lib/cjs/solidity/SourceCodeProvider.js +1 -1
- package/lib/cjs/solidity/SourceCodeProvider.js.map +1 -1
- package/lib/cjs/solidity/storage/Accessor.js +1 -1
- package/lib/cjs/solidity/storage/Accessor.js.map +1 -1
- package/lib/cjs/solidity/storage/SlotFixedArray.js +1 -1
- package/lib/cjs/solidity/storage/SlotFixedArray.js.map +1 -1
- package/lib/cjs/solidity/storage/SlotsStorageTransport.js +3 -3
- package/lib/cjs/solidity/storage/SlotsStorageTransport.js.map +1 -1
- package/lib/cjs/solidity/storage/handlers/SlotBytesHandler.js +1 -1
- package/lib/cjs/solidity/storage/handlers/SlotBytesHandler.js.map +1 -1
- package/lib/cjs/solidity/storage/handlers/SlotDynamicArrayHandler.js +1 -1
- package/lib/cjs/solidity/storage/handlers/SlotDynamicArrayHandler.js.map +1 -1
- package/lib/cjs/solidity/storage/handlers/SlotFixedArrayHandler.js +1 -1
- package/lib/cjs/solidity/storage/handlers/SlotFixedArrayHandler.js.map +1 -1
- package/lib/cjs/solidity/storage/handlers/SlotValueConstantHandler.js +1 -1
- package/lib/cjs/solidity/storage/handlers/SlotValueConstantHandler.js.map +1 -1
- package/lib/cjs/solidity/storage/handlers/SlotValueHandler.js +1 -1
- package/lib/cjs/solidity/storage/handlers/SlotValueHandler.js.map +1 -1
- package/lib/cjs/solidity/storage/handlers/SlotValueImmutableHandler.js +4 -4
- package/lib/cjs/solidity/storage/handlers/SlotValueImmutableHandler.js.map +1 -1
- package/lib/cjs/tokens/TokenDataProvider.js +2 -2
- package/lib/cjs/tokens/TokenDataProvider.js.map +1 -1
- package/lib/cjs/tokens/TokenExchangeService.js +1 -1
- package/lib/cjs/tokens/TokenExchangeService.js.map +1 -1
- package/lib/cjs/tokens/TokenExchanges/AmmBase/V2/AmmPairV2Service.js +2 -2
- package/lib/cjs/tokens/TokenExchanges/AmmBase/V2/AmmPairV2Service.js.map +1 -1
- package/lib/cjs/tokens/TokenExchanges/AmmV2PriceQuote.js +2 -2
- package/lib/cjs/tokens/TokenExchanges/AmmV2PriceQuote.js.map +1 -1
- package/lib/cjs/tokens/TokenOracles/amm/AmmV1Oracle.js +2 -2
- package/lib/cjs/tokens/TokenOracles/amm/AmmV1Oracle.js.map +1 -1
- package/lib/cjs/tokens/TokenTransferService.js +2 -2
- package/lib/cjs/tokens/TokenTransferService.js.map +1 -1
- package/lib/cjs/tokens/TokensService.js +1 -1
- package/lib/cjs/tokens/TokensService.js.map +1 -1
- package/lib/cjs/txs/TxNonceManager.js +1 -1
- package/lib/cjs/txs/TxWriter.js +9 -0
- package/lib/cjs/txs/TxWriter.js.map +1 -1
- package/lib/cjs/txs/conditional/GasWatcherTx.js +1 -1
- package/lib/cjs/txs/conditional/GasWatcherTx.js.map +1 -1
- package/lib/cjs/txs/receipt/TxLogParser.js +1 -1
- package/lib/cjs/utils/$crypto.js +1 -1
- package/lib/cjs/utils/$crypto.js.map +1 -1
- package/lib/cjs/utils/$date.js +1 -1
- package/lib/cjs/utils/$date.js.map +1 -1
- package/lib/cjs/utils/$hex.js +1 -1
- package/lib/cjs/utils/$logger.js +1 -1
- package/lib/cjs/utils/$logger.js.map +1 -1
- package/lib/cjs/utils/$machine.js +2 -2
- package/lib/cjs/utils/$machine.js.map +1 -1
- package/lib/cjs/utils/$traces.js +1 -1
- package/lib/cjs/utils/$traces.js.map +1 -1
- package/lib/esm/abi/$abiCoder.js.map +1 -1
- package/lib/esm/abi/$abiCoder.mjs +1 -1
- package/lib/esm/abi/Logger.mjs +1 -1
- package/lib/esm/abi/abi-coder-packed.mjs +3 -3
- package/lib/esm/abi/abi-coder.mjs +16 -16
- package/lib/esm/abi/coders/abstract-coder.js.map +1 -1
- package/lib/esm/abi/coders/abstract-coder.mjs +31 -31
- package/lib/esm/abi/fragments.js.map +1 -1
- package/lib/esm/abi/fragments.mjs +90 -90
- package/lib/esm/blocks/BlockDateResolver.js.map +1 -1
- package/lib/esm/blocks/BlockDateResolver.mjs +9 -9
- package/lib/esm/class/PackedRanges.js.map +1 -1
- package/lib/esm/class/PackedRanges.mjs +46 -46
- package/lib/esm/clients/ClientEventsStream.js.map +1 -1
- package/lib/esm/clients/ClientEventsStream.mjs +1 -1
- package/lib/esm/clients/ClientPool.js.map +1 -1
- package/lib/esm/clients/ClientPool.mjs +23 -23
- package/lib/esm/clients/WalletClient.js.map +1 -1
- package/lib/esm/clients/WalletClient.mjs +3 -3
- package/lib/esm/clients/Web3Client.js.map +1 -1
- package/lib/esm/clients/Web3Client.mjs +14 -14
- package/lib/esm/clients/Web3ClientFactory.js.map +1 -1
- package/lib/esm/clients/Web3ClientFactory.mjs +1 -1
- package/lib/esm/clients/compatibility/Web3.js.map +1 -1
- package/lib/esm/clients/compatibility/Web3.mjs +2 -2
- package/lib/esm/clients/handlers/RateLimitGuard.js.map +1 -1
- package/lib/esm/clients/handlers/RateLimitGuard.mjs +16 -16
- package/lib/esm/clients/model/PromiEventWrap.js.map +1 -1
- package/lib/esm/clients/model/PromiEventWrap.mjs +1 -1
- package/lib/esm/clients/utils/$web3Abi.js.map +1 -1
- package/lib/esm/clients/utils/$web3Abi.mjs +2 -2
- package/lib/esm/clients/utils/ClientErrorUtil.js.map +1 -1
- package/lib/esm/clients/utils/ClientErrorUtil.mjs +4 -0
- package/lib/esm/config/Config.js.map +1 -1
- package/lib/esm/contracts/Contract.js.map +1 -1
- package/lib/esm/contracts/Contract.mjs +1 -1
- package/lib/esm/contracts/ContractAbiProvider.js.map +1 -1
- package/lib/esm/contracts/ContractAbiProvider.mjs +6 -6
- package/lib/esm/contracts/ContractBase.js.map +1 -1
- package/lib/esm/contracts/ContractBase.mjs +10 -10
- package/lib/esm/contracts/ContractProvider.js.map +1 -1
- package/lib/esm/contracts/ContractProvider.mjs +1 -1
- package/lib/esm/contracts/ContractReader.js.map +1 -1
- package/lib/esm/contracts/ContractReader.mjs +5 -5
- package/lib/esm/contracts/ContractWriter.js.map +1 -1
- package/lib/esm/contracts/ContractWriter.mjs +4 -4
- package/lib/esm/contracts/deploy/ContractDeployer.js.map +1 -1
- package/lib/esm/contracts/deploy/ContractDeployer.mjs +4 -4
- package/lib/esm/contracts/deploy/Deployments.js.map +1 -1
- package/lib/esm/contracts/deploy/Deployments.mjs +68 -26
- package/lib/esm/contracts/deploy/proxy/$proxyDeploy.js.map +1 -1
- package/lib/esm/contracts/deploy/proxy/$proxyDeploy.mjs +13 -13
- package/lib/esm/contracts/deploy/proxy/ProxyDeployment.js.map +1 -1
- package/lib/esm/contracts/deploy/proxy/ProxyDeployment.mjs +58 -25
- package/lib/esm/contracts/deploy/storage/DeploymentsStorage.js.map +1 -1
- package/lib/esm/contracts/deploy/storage/DeploymentsStorage.mjs +15 -14
- package/lib/esm/contracts/utils/AbiDeserializer.js.map +1 -1
- package/lib/esm/contracts/utils/AbiDeserializer.mjs +4 -4
- package/lib/esm/contracts/utils/ContractBaseUtils.js.map +1 -1
- package/lib/esm/contracts/utils/ContractBaseUtils.mjs +3 -3
- package/lib/esm/evm/OpcodesWalker.js.map +1 -1
- package/lib/esm/evm/OpcodesWalker.mjs +1 -1
- package/lib/esm/explorer/BlockchainExplorer.js.map +1 -1
- package/lib/esm/explorer/BlockchainExplorer.mjs +1 -1
- package/lib/esm/explorer/BlockchainExplorerFactory.mjs +1 -1
- package/lib/esm/explorer/BlockchainExplorerStorage.js.map +1 -1
- package/lib/esm/explorer/BlockchainExplorerStorage.mjs +12 -12
- package/lib/esm/explorer/Evmscan.mjs +1 -1
- package/lib/esm/explorer/verifiers/FsHtmlVerifier.js.map +1 -1
- package/lib/esm/explorer/verifiers/FsHtmlVerifier.mjs +7 -7
- package/lib/esm/flashbots/FlashbotWeb3Client.js.map +1 -1
- package/lib/esm/flashbots/FlashbotWeb3Client.mjs +1 -1
- package/lib/esm/gen/Generator.js.map +1 -1
- package/lib/esm/gen/Generator.mjs +15 -0
- package/lib/esm/hardhat/HardhatProvider.js.map +1 -1
- package/lib/esm/hardhat/HardhatProvider.mjs +7 -7
- package/lib/esm/indexer/BlocksTxIndexer.js.map +1 -1
- package/lib/esm/indexer/BlocksTxIndexer.mjs +2 -2
- package/lib/esm/indexer/EventsIndexer.js.map +1 -1
- package/lib/esm/indexer/EventsIndexer.mjs +11 -11
- package/lib/esm/indexer/PendingTxIndexer.js.map +1 -1
- package/lib/esm/indexer/PendingTxIndexer.mjs +2 -2
- package/lib/esm/indexer/handlers/BlocksWalker.js.map +1 -1
- package/lib/esm/indexer/handlers/BlocksWalker.mjs +9 -9
- package/lib/esm/indexer/handlers/TxQueueLoader.mjs +1 -1
- package/lib/esm/indexer/storage/FsEventsIndexerStore.js.map +1 -1
- package/lib/esm/indexer/storage/FsEventsIndexerStore.mjs +3 -3
- package/lib/esm/indexer/storage/FsEventsStoreUtils.js.map +1 -1
- package/lib/esm/indexer/storage/FsEventsStoreUtils.mjs +1 -1
- package/lib/esm/json/JsonArrayMultiStore.js.map +1 -1
- package/lib/esm/json/JsonArrayMultiStore.mjs +1 -1
- package/lib/esm/json/JsonStoreFs.js.map +1 -1
- package/lib/esm/json/JsonStoreFs.mjs +1 -1
- package/lib/esm/rpc/$rpc.js.map +1 -1
- package/lib/esm/rpc/$rpc.mjs +2 -2
- package/lib/esm/rpc/Rpc.mjs +2 -2
- package/lib/esm/rpc/RpcBase.js.map +1 -1
- package/lib/esm/rpc/RpcBase.mjs +2 -2
- package/lib/esm/rpc/RpcContract.js.map +1 -1
- package/lib/esm/rpc/RpcContract.mjs +4 -3
- package/lib/esm/rpc/RpcSubscription.js.map +1 -1
- package/lib/esm/rpc/RpcSubscription.mjs +1 -1
- package/lib/esm/rpc/transports/compatibility/EIP1193Transport.js.map +1 -1
- package/lib/esm/rpc/transports/compatibility/EIP1193Transport.mjs +4 -4
- package/lib/esm/rpc/transports/compatibility/Web3Transport.js.map +1 -1
- package/lib/esm/rpc/transports/compatibility/Web3Transport.mjs +1 -1
- package/lib/esm/services/TimelockService/TimelockService.mjs +2 -2
- package/lib/esm/services/TimelockService/TimelockServiceFallbackSafe.mjs +2 -2
- package/lib/esm/solidity/SlotsDump.js.map +1 -1
- package/lib/esm/solidity/SlotsDump.mjs +1 -1
- package/lib/esm/solidity/SlotsParser/MappingSettersResolver.js.map +1 -1
- package/lib/esm/solidity/SlotsParser/MappingSettersResolver.mjs +3 -3
- package/lib/esm/solidity/SlotsParser/SourceFile.js.map +1 -1
- package/lib/esm/solidity/SlotsParser/SourceFile.mjs +3 -3
- package/lib/esm/solidity/SolidityParser.js.map +1 -1
- package/lib/esm/solidity/SolidityParser.mjs +1 -1
- package/lib/esm/solidity/SourceCodeProvider.js.map +1 -1
- package/lib/esm/solidity/SourceCodeProvider.mjs +1 -1
- package/lib/esm/solidity/storage/Accessor.js.map +1 -1
- package/lib/esm/solidity/storage/Accessor.mjs +1 -1
- package/lib/esm/solidity/storage/SlotFixedArray.js.map +1 -1
- package/lib/esm/solidity/storage/SlotFixedArray.mjs +1 -1
- package/lib/esm/solidity/storage/SlotsStorageTransport.js.map +1 -1
- package/lib/esm/solidity/storage/SlotsStorageTransport.mjs +3 -3
- package/lib/esm/solidity/storage/handlers/SlotBytesHandler.js.map +1 -1
- package/lib/esm/solidity/storage/handlers/SlotBytesHandler.mjs +1 -1
- package/lib/esm/solidity/storage/handlers/SlotDynamicArrayHandler.js.map +1 -1
- package/lib/esm/solidity/storage/handlers/SlotDynamicArrayHandler.mjs +1 -1
- package/lib/esm/solidity/storage/handlers/SlotFixedArrayHandler.js.map +1 -1
- package/lib/esm/solidity/storage/handlers/SlotFixedArrayHandler.mjs +1 -1
- package/lib/esm/solidity/storage/handlers/SlotValueConstantHandler.js.map +1 -1
- package/lib/esm/solidity/storage/handlers/SlotValueConstantHandler.mjs +1 -1
- package/lib/esm/solidity/storage/handlers/SlotValueHandler.js.map +1 -1
- package/lib/esm/solidity/storage/handlers/SlotValueHandler.mjs +1 -1
- package/lib/esm/solidity/storage/handlers/SlotValueImmutableHandler.js.map +1 -1
- package/lib/esm/solidity/storage/handlers/SlotValueImmutableHandler.mjs +4 -4
- package/lib/esm/tokens/TokenDataProvider.js.map +1 -1
- package/lib/esm/tokens/TokenDataProvider.mjs +2 -2
- package/lib/esm/tokens/TokenExchangeService.js.map +1 -1
- package/lib/esm/tokens/TokenExchangeService.mjs +1 -1
- package/lib/esm/tokens/TokenExchanges/AmmBase/V2/AmmPairV2Service.js.map +1 -1
- package/lib/esm/tokens/TokenExchanges/AmmBase/V2/AmmPairV2Service.mjs +2 -2
- package/lib/esm/tokens/TokenExchanges/AmmV2PriceQuote.js.map +1 -1
- package/lib/esm/tokens/TokenExchanges/AmmV2PriceQuote.mjs +2 -2
- package/lib/esm/tokens/TokenOracles/amm/AmmV1Oracle.js.map +1 -1
- package/lib/esm/tokens/TokenOracles/amm/AmmV1Oracle.mjs +2 -2
- package/lib/esm/tokens/TokenTransferService.js.map +1 -1
- package/lib/esm/tokens/TokenTransferService.mjs +2 -2
- package/lib/esm/tokens/TokensService.js.map +1 -1
- package/lib/esm/tokens/TokensService.mjs +1 -1
- package/lib/esm/txs/TxNonceManager.mjs +1 -1
- package/lib/esm/txs/TxWriter.js.map +1 -1
- package/lib/esm/txs/TxWriter.mjs +9 -0
- package/lib/esm/txs/conditional/GasWatcherTx.js.map +1 -1
- package/lib/esm/txs/conditional/GasWatcherTx.mjs +1 -1
- package/lib/esm/txs/receipt/TxLogParser.mjs +1 -1
- package/lib/esm/utils/$crypto.js.map +1 -1
- package/lib/esm/utils/$crypto.mjs +1 -1
- package/lib/esm/utils/$date.js.map +1 -1
- package/lib/esm/utils/$date.mjs +1 -1
- package/lib/esm/utils/$hex.mjs +1 -1
- package/lib/esm/utils/$logger.js.map +1 -1
- package/lib/esm/utils/$logger.mjs +1 -1
- package/lib/esm/utils/$machine.js.map +1 -1
- package/lib/esm/utils/$machine.mjs +2 -2
- package/lib/esm/utils/$traces.js.map +1 -1
- package/lib/esm/utils/$traces.mjs +1 -1
- package/lib/types/abi/abi-coder-packed.d.ts +1 -1
- package/lib/types/abi/abi-coder.d.ts +13 -13
- package/lib/types/abi/coders/abstract-coder.d.ts +14 -14
- package/lib/types/abi/fragments.d.ts +95 -95
- package/lib/types/blocks/BlockDateResolver.d.ts +7 -7
- package/lib/types/class/PackedRanges.d.ts +44 -44
- package/lib/types/clients/ClientPool.d.ts +10 -10
- package/lib/types/clients/WalletClient.d.ts +2 -2
- package/lib/types/clients/Web3Client.d.ts +6 -6
- package/lib/types/clients/Web3ClientFactory.d.ts +1 -1
- package/lib/types/clients/handlers/RateLimitGuard.d.ts +5 -5
- package/lib/types/clients/model/PromiEventWrap.d.ts +1 -1
- package/lib/types/clients/utils/$web3Abi.d.ts +1 -1
- package/lib/types/clients/utils/ClientErrorUtil.d.ts +1 -0
- package/lib/types/config/Config.d.ts +3 -2
- package/lib/types/contracts/ContractBase.d.ts +4 -4
- package/lib/types/contracts/ContractReader.d.ts +2 -2
- package/lib/types/contracts/ContractWriter.d.ts +3 -3
- package/lib/types/contracts/deploy/Deployments.d.ts +20 -15
- package/lib/types/contracts/deploy/proxy/ProxyDeployment.d.ts +2 -0
- package/lib/types/contracts/deploy/storage/DeploymentsStorage.d.ts +2 -0
- package/lib/types/explorer/BlockchainExplorerFactory.d.ts +1 -1
- package/lib/types/explorer/Evmscan.d.ts +1 -1
- package/lib/types/gen/Generator.d.ts +8 -0
- package/lib/types/indexer/BlocksTxIndexer.d.ts +4 -4
- package/lib/types/indexer/EventsIndexer.d.ts +4 -4
- package/lib/types/indexer/PendingTxIndexer.d.ts +1 -1
- package/lib/types/indexer/handlers/BlocksWalker.d.ts +2 -2
- package/lib/types/indexer/storage/FsEventsIndexerStore.d.ts +4 -4
- package/lib/types/ns/providers/INsProvider.d.ts +1 -1
- package/lib/types/rpc/Rpc.d.ts +2 -2
- package/lib/types/services/TimelockService/ITimelockService.d.ts +2 -2
- package/lib/types/services/TimelockService/TimelockService.d.ts +2 -2
- package/lib/types/services/TimelockService/TimelockServiceFallbackSafe.d.ts +2 -2
- package/lib/types/solidity/SlotsParser/SourceFile.d.ts +1 -1
- package/lib/types/solidity/storage/SlotFixedArray.d.ts +1 -1
- package/lib/types/tokens/TokenDataProvider.d.ts +2 -2
- package/lib/types/tokens/TokensService.d.ts +1 -1
- package/lib/types/txs/ITxBuilderOptions.d.ts +1 -1
- package/lib/types/txs/TxNonceManager.d.ts +1 -1
- package/lib/types/txs/TxWriter.d.ts +4 -4
- package/lib/types/txs/receipt/TxLogParser.d.ts +1 -1
- package/lib/types/utils/$date.d.ts +1 -1
- package/lib/types/utils/$hex.d.ts +1 -1
- package/package.json +1 -1
- package/readme.md +105 -83
- package/src/abi/$abiCoder.ts +1 -1
- package/src/abi/Logger.ts +1 -1
- package/src/abi/abi-coder-packed.ts +3 -3
- package/src/abi/abi-coder.ts +16 -16
- package/src/abi/coders/abstract-coder.ts +36 -36
- package/src/abi/fragments.ts +137 -137
- package/src/blocks/BlockDateResolver.ts +9 -9
- package/src/bridges/hop/HopBridge.ts +1 -1
- package/src/class/PackedRanges.ts +46 -46
- package/src/clients/ClientEventsStream.ts +1 -1
- package/src/clients/ClientPool.ts +38 -38
- package/src/clients/WalletClient.ts +3 -3
- package/src/clients/Web3BatchRequests.ts +3 -3
- package/src/clients/Web3Client.ts +21 -21
- package/src/clients/Web3ClientFactory.ts +1 -1
- package/src/clients/compatibility/Web3.ts +2 -2
- package/src/clients/handlers/RateLimitGuard.ts +16 -16
- package/src/clients/interfaces/IWeb3Client.ts +2 -2
- package/src/clients/model/PromiEventWrap.ts +1 -1
- package/src/clients/utils/$web3Abi.ts +2 -2
- package/src/clients/utils/ClientErrorUtil.ts +4 -0
- package/src/config/Config.ts +4 -3
- package/src/contracts/Contract.ts +1 -1
- package/src/contracts/ContractAbiProvider.ts +6 -6
- package/src/contracts/ContractBase.ts +14 -14
- package/src/contracts/ContractProvider.ts +1 -1
- package/src/contracts/ContractReader.ts +7 -7
- package/src/contracts/ContractWriter.ts +4 -4
- package/src/contracts/deploy/ContractDeployer.ts +4 -4
- package/src/contracts/deploy/ContractDeployment.ts +1 -1
- package/src/contracts/deploy/Deployments.ts +110 -53
- package/src/contracts/deploy/proxy/$proxyDeploy.ts +14 -14
- package/src/contracts/deploy/proxy/ProxyDeployment.ts +82 -37
- package/src/contracts/deploy/storage/DeploymentsStorage.ts +21 -18
- package/src/contracts/utils/AbiDeserializer.ts +4 -4
- package/src/contracts/utils/ContractBaseUtils.ts +3 -3
- package/src/erc4337/models/UserOperation.ts +2 -2
- package/src/evm/OpcodesWalker.ts +1 -1
- package/src/explorer/BlockchainExplorer.ts +1 -1
- package/src/explorer/BlockchainExplorerFactory.ts +1 -1
- package/src/explorer/BlockchainExplorerStorage.ts +12 -12
- package/src/explorer/Evmscan.ts +1 -1
- package/src/explorer/verifiers/FsHtmlVerifier.ts +7 -7
- package/src/flashbots/FlashbotWeb3Client.ts +1 -1
- package/src/gen/Generator.ts +17 -0
- package/src/hardhat/HardhatProvider.ts +7 -7
- package/src/indexer/BlocksTxIndexer.ts +6 -6
- package/src/indexer/EventsIndexer.ts +20 -20
- package/src/indexer/PendingTxIndexer.ts +3 -3
- package/src/indexer/handlers/BlocksWalker.ts +9 -9
- package/src/indexer/handlers/TxQueueLoader.ts +1 -1
- package/src/indexer/storage/FsEventsIndexerStore.ts +9 -9
- package/src/indexer/storage/FsEventsMetaStore.ts +1 -1
- package/src/indexer/storage/FsEventsStoreUtils.ts +1 -1
- package/src/json/JsonArrayMultiStore.ts +1 -1
- package/src/json/JsonStoreFs.ts +1 -1
- package/src/ns/providers/INsProvider.ts +1 -1
- package/src/rpc/$rpc.ts +2 -2
- package/src/rpc/Rpc.ts +2 -2
- package/src/rpc/RpcBase.ts +2 -2
- package/src/rpc/RpcContract.ts +6 -6
- package/src/rpc/RpcSubscription.ts +1 -1
- package/src/rpc/transports/compatibility/EIP1193Transport.ts +4 -4
- package/src/rpc/transports/compatibility/Web3Transport.ts +1 -1
- package/src/services/TimelockService/ITimelockService.ts +2 -2
- package/src/services/TimelockService/TimelockService.ts +2 -2
- package/src/services/TimelockService/TimelockServiceFallbackSafe.ts +2 -2
- package/src/solidity/SlotsDump.ts +1 -1
- package/src/solidity/SlotsParser/MappingSettersResolver.ts +3 -3
- package/src/solidity/SlotsParser/SourceFile.ts +3 -3
- package/src/solidity/SolidityParser.ts +1 -1
- package/src/solidity/SourceCodeProvider.ts +1 -1
- package/src/solidity/storage/Accessor.spec.ts +1 -1
- package/src/solidity/storage/Accessor.ts +1 -1
- package/src/solidity/storage/SlotDynamicArray.ts +1 -1
- package/src/solidity/storage/SlotFixedArray.ts +1 -1
- package/src/solidity/storage/SlotsStorageTransport.ts +3 -3
- package/src/solidity/storage/handlers/SlotBytesHandler.ts +1 -1
- package/src/solidity/storage/handlers/SlotDynamicArrayHandler.ts +1 -1
- package/src/solidity/storage/handlers/SlotFixedArrayHandler.ts +1 -1
- package/src/solidity/storage/handlers/SlotValueConstantHandler.ts +1 -1
- package/src/solidity/storage/handlers/SlotValueHandler.ts +1 -1
- package/src/solidity/storage/handlers/SlotValueImmutableHandler.ts +4 -4
- package/src/tokens/TokenDataProvider.ts +2 -2
- package/src/tokens/TokenExchangeService.ts +1 -1
- package/src/tokens/TokenExchanges/AmmBase/V2/AmmPairV2Service.ts +2 -2
- package/src/tokens/TokenExchanges/AmmV2PriceQuote.ts +2 -2
- package/src/tokens/TokenOracles/amm/AmmV1Oracle.ts +2 -2
- package/src/tokens/TokenTransferService.ts +2 -2
- package/src/tokens/TokensService.ts +1 -1
- package/src/txs/ITxBuilderOptions.ts +1 -1
- package/src/txs/TxNonceManager.ts +1 -1
- package/src/txs/TxWriter.ts +15 -4
- package/src/txs/agents/BatchAgent.ts +1 -1
- package/src/txs/conditional/GasWatcherTx.ts +1 -1
- package/src/txs/receipt/TxLogParser.ts +1 -1
- package/src/utils/$crypto.ts +1 -1
- package/src/utils/$date.ts +1 -1
- package/src/utils/$hex.ts +1 -1
- package/src/utils/$logger.ts +1 -1
- package/src/utils/$machine.ts +2 -2
- package/src/utils/$traces.ts +1 -1
- package/src/wallets/EIP6963ProviderFactory.ts +4 -4
|
@@ -10,36 +10,36 @@
|
|
|
10
10
|
* @_subsection api/abi/abi-coder:Fragments [about-fragments]
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* A Type description in a [JSON ABI format](link-solc-jsonabi)
|
|
13
|
+
* A Type description in a [JSON ABI format](link-solc-jsonabi)
|
|
14
14
|
*/
|
|
15
15
|
export interface JsonFragmentType {
|
|
16
16
|
/**
|
|
17
|
-
* The parameter name
|
|
17
|
+
* The parameter name
|
|
18
18
|
*/
|
|
19
19
|
readonly name?: string;
|
|
20
20
|
/**
|
|
21
|
-
* If the parameter is indexed
|
|
21
|
+
* If the parameter is indexed
|
|
22
22
|
*/
|
|
23
23
|
readonly indexed?: boolean;
|
|
24
24
|
/**
|
|
25
|
-
* The type of the parameter
|
|
25
|
+
* The type of the parameter
|
|
26
26
|
*/
|
|
27
27
|
readonly type?: string;
|
|
28
28
|
/**
|
|
29
|
-
* The internal Solidity type
|
|
29
|
+
* The internal Solidity type
|
|
30
30
|
*/
|
|
31
31
|
readonly internalType?: string;
|
|
32
32
|
/**
|
|
33
|
-
* The components for a tuple
|
|
33
|
+
* The components for a tuple
|
|
34
34
|
*/
|
|
35
35
|
readonly components?: ReadonlyArray<JsonFragmentType>;
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
|
-
* A fragment for a method, event or error in a [JSON ABI format](link-solc-jsonabi)
|
|
38
|
+
* A fragment for a method, event or error in a [JSON ABI format](link-solc-jsonabi)
|
|
39
39
|
*/
|
|
40
40
|
export interface JsonFragment {
|
|
41
41
|
/**
|
|
42
|
-
* The name of the error, event, function, etc
|
|
42
|
+
* The name of the error, event, function, etc
|
|
43
43
|
*/
|
|
44
44
|
readonly name?: string;
|
|
45
45
|
/**
|
|
@@ -47,63 +47,63 @@ export interface JsonFragment {
|
|
|
47
47
|
*/
|
|
48
48
|
readonly type?: string;
|
|
49
49
|
/**
|
|
50
|
-
* If the event is anonymous
|
|
50
|
+
* If the event is anonymous
|
|
51
51
|
*/
|
|
52
52
|
readonly anonymous?: boolean;
|
|
53
53
|
/**
|
|
54
|
-
* If the function is payable
|
|
54
|
+
* If the function is payable
|
|
55
55
|
*/
|
|
56
56
|
readonly payable?: boolean;
|
|
57
57
|
/**
|
|
58
|
-
* If the function is constant
|
|
58
|
+
* If the function is constant
|
|
59
59
|
*/
|
|
60
60
|
readonly constant?: boolean;
|
|
61
61
|
/**
|
|
62
|
-
* The mutability state of the function
|
|
62
|
+
* The mutability state of the function
|
|
63
63
|
*/
|
|
64
64
|
readonly stateMutability?: string;
|
|
65
65
|
/**
|
|
66
|
-
* The input parameters
|
|
66
|
+
* The input parameters
|
|
67
67
|
*/
|
|
68
68
|
readonly inputs?: ReadonlyArray<JsonFragmentType>;
|
|
69
69
|
/**
|
|
70
|
-
* The output parameters
|
|
70
|
+
* The output parameters
|
|
71
71
|
*/
|
|
72
72
|
readonly outputs?: ReadonlyArray<JsonFragmentType>;
|
|
73
73
|
/**
|
|
74
|
-
* The gas limit to use when sending a transaction for this function
|
|
74
|
+
* The gas limit to use when sending a transaction for this function
|
|
75
75
|
*/
|
|
76
76
|
readonly gas?: string;
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
|
-
* The format to serialize the output as
|
|
79
|
+
* The format to serialize the output as
|
|
80
80
|
*
|
|
81
81
|
* **``"sighash"``** - the bare formatting, used to compute the selector
|
|
82
82
|
* or topic hash; this format cannot be reversed (as it discards ``indexed``)
|
|
83
|
-
* so cannot
|
|
83
|
+
* so it cannot be used to export an [[Interface]]
|
|
84
84
|
*
|
|
85
85
|
* **``"minimal"``** - Human-Readable ABI with minimal spacing and without
|
|
86
86
|
* names, so it is compact, but will result in Result objects that cannot
|
|
87
|
-
* be accessed by name
|
|
87
|
+
* be accessed by name
|
|
88
88
|
*
|
|
89
89
|
* **``"full"``** - Full Human-Readable ABI, with readable spacing and names
|
|
90
|
-
* intact; this is generally the recommended format
|
|
90
|
+
* intact; this is generally the recommended format
|
|
91
91
|
*
|
|
92
|
-
* **``"json"``** - The [JSON ABI format](link-solc-jsonabi)
|
|
92
|
+
* **``"json"``** - The [JSON ABI format](link-solc-jsonabi)
|
|
93
93
|
*/
|
|
94
94
|
export type FormatType = "sighash" | "minimal" | "full" | "json";
|
|
95
95
|
/**
|
|
96
96
|
* When [walking](ParamType-walk) a [[ParamType]], this is called
|
|
97
|
-
* on each component
|
|
97
|
+
* on each component
|
|
98
98
|
*/
|
|
99
99
|
export type ParamTypeWalkFunc = (type: string, value: any) => any;
|
|
100
100
|
/**
|
|
101
101
|
* When [walking asynchronously](ParamType-walkAsync) a [[ParamType]],
|
|
102
|
-
* this is called on each component
|
|
102
|
+
* this is called on each component
|
|
103
103
|
*/
|
|
104
104
|
export type ParamTypeWalkAsyncFunc = (type: string, value: any) => any | Promise<any>;
|
|
105
105
|
/**
|
|
106
|
-
* Each input and output of a [[Fragment]] is an Array of **ParamType
|
|
106
|
+
* Each input and output of a [[Fragment]] is an Array of **ParamType**
|
|
107
107
|
*/
|
|
108
108
|
export declare class ParamType {
|
|
109
109
|
#private;
|
|
@@ -121,27 +121,27 @@ export declare class ParamType {
|
|
|
121
121
|
*/
|
|
122
122
|
readonly baseType: string;
|
|
123
123
|
/**
|
|
124
|
-
* True if the
|
|
124
|
+
* True if the parameter is indexed
|
|
125
125
|
*
|
|
126
|
-
* For non-indexable types this is ``null
|
|
126
|
+
* For non-indexable types this is ``null``
|
|
127
127
|
*/
|
|
128
128
|
readonly indexed: null | boolean;
|
|
129
129
|
/**
|
|
130
|
-
* The components for the tuple
|
|
130
|
+
* The components for the tuple
|
|
131
131
|
*
|
|
132
|
-
* For non-tuple types this is ``null
|
|
132
|
+
* For non-tuple types this is ``null``
|
|
133
133
|
*/
|
|
134
134
|
readonly components?: ReadonlyArray<ParamType>;
|
|
135
135
|
/**
|
|
136
|
-
* The array length, or ``-1`` for dynamic-
|
|
136
|
+
* The array length, or ``-1`` for dynamic-length arrays
|
|
137
137
|
*
|
|
138
|
-
* For non-array types this is ``null
|
|
138
|
+
* For non-array types this is ``null``
|
|
139
139
|
*/
|
|
140
140
|
readonly arrayLength?: number;
|
|
141
141
|
/**
|
|
142
|
-
* The type of each child in the array
|
|
142
|
+
* The type of each child in the array
|
|
143
143
|
*
|
|
144
|
-
* For non-array types this is ``null
|
|
144
|
+
* For non-array types this is ``null``
|
|
145
145
|
*/
|
|
146
146
|
readonly arrayChildren?: ParamType;
|
|
147
147
|
/**
|
|
@@ -149,7 +149,7 @@ export declare class ParamType {
|
|
|
149
149
|
*/
|
|
150
150
|
constructor(guard: any, name: string, type: string, baseType: string, indexed: null | boolean, components: null | ReadonlyArray<ParamType>, arrayLength: null | number, arrayChildren: null | ParamType);
|
|
151
151
|
/**
|
|
152
|
-
* Return a string representation of this type
|
|
152
|
+
* Return a string representation of this type
|
|
153
153
|
*
|
|
154
154
|
* For example,
|
|
155
155
|
*
|
|
@@ -161,72 +161,72 @@ export declare class ParamType {
|
|
|
161
161
|
*/
|
|
162
162
|
format(format?: FormatType): string;
|
|
163
163
|
/**
|
|
164
|
-
* Returns true if %%this%% is an Array type
|
|
164
|
+
* Returns true if %%this%% is an Array type
|
|
165
165
|
*
|
|
166
166
|
* This provides a type gaurd ensuring that [[arrayChildren]]
|
|
167
|
-
* and [[arrayLength]] are non-null
|
|
167
|
+
* and [[arrayLength]] are non-null
|
|
168
168
|
*/
|
|
169
169
|
isArray(): this is (ParamType & {
|
|
170
170
|
arrayChildren: ParamType;
|
|
171
171
|
arrayLength: number;
|
|
172
172
|
});
|
|
173
173
|
/**
|
|
174
|
-
* Returns true if %%this%% is a Tuple type
|
|
174
|
+
* Returns true if %%this%% is a Tuple type
|
|
175
175
|
*
|
|
176
176
|
* This provides a type gaurd ensuring that [[components]]
|
|
177
|
-
* is non-null
|
|
177
|
+
* is non-null
|
|
178
178
|
*/
|
|
179
179
|
isTuple(): this is (ParamType & {
|
|
180
180
|
components: ReadonlyArray<ParamType>;
|
|
181
181
|
});
|
|
182
182
|
/**
|
|
183
|
-
* Returns true if %%this%% is an Indexable type
|
|
183
|
+
* Returns true if %%this%% is an Indexable type
|
|
184
184
|
*
|
|
185
185
|
* This provides a type gaurd ensuring that [[indexed]]
|
|
186
|
-
* is non-null
|
|
186
|
+
* is non-null
|
|
187
187
|
*/
|
|
188
188
|
isIndexable(): this is (ParamType & {
|
|
189
189
|
indexed: boolean;
|
|
190
190
|
});
|
|
191
191
|
/**
|
|
192
192
|
* Walks the **ParamType** with %%value%%, calling %%process%%
|
|
193
|
-
* on each type, destructing the %%value%% recursively
|
|
193
|
+
* on each type, destructing the %%value%% recursively
|
|
194
194
|
*/
|
|
195
195
|
walk(value: any, process: ParamTypeWalkFunc): any;
|
|
196
196
|
/**
|
|
197
197
|
* Walks the **ParamType** with %%value%%, asynchronously calling
|
|
198
|
-
* %%process%% on each type, destructing the %%value%% recursively
|
|
198
|
+
* %%process%% on each type, destructing the %%value%% recursively
|
|
199
199
|
*
|
|
200
200
|
* This can be used to resolve ENS naes by walking and resolving each
|
|
201
|
-
* ``"address"`` type
|
|
201
|
+
* ``"address"`` type
|
|
202
202
|
*/
|
|
203
203
|
walkAsync(value: any, process: ParamTypeWalkAsyncFunc): Promise<any>;
|
|
204
204
|
/**
|
|
205
|
-
* Creates a new **ParamType** for %%obj
|
|
205
|
+
* Creates a new **ParamType** for %%obj%%
|
|
206
206
|
*
|
|
207
207
|
* If %%allowIndexed%% then the ``indexed`` keyword is permitted,
|
|
208
|
-
* otherwise the ``indexed`` keyword will throw an error
|
|
208
|
+
* otherwise the ``indexed`` keyword will throw an error
|
|
209
209
|
*/
|
|
210
210
|
static from(obj: any, allowIndexed?: boolean): ParamType;
|
|
211
211
|
/**
|
|
212
|
-
* Returns true if %%value%% is a **ParamType
|
|
212
|
+
* Returns true if %%value%% is a **ParamType**
|
|
213
213
|
*/
|
|
214
214
|
static isParamType(value: any): value is ParamType;
|
|
215
215
|
}
|
|
216
216
|
/**
|
|
217
|
-
* The type of a [[Fragment]]
|
|
217
|
+
* The type of a [[Fragment]]
|
|
218
218
|
*/
|
|
219
219
|
export type FragmentType = "constructor" | "error" | "event" | "fallback" | "function" | "struct";
|
|
220
220
|
/**
|
|
221
|
-
* An abstract class to represent An individual fragment from a parse ABI
|
|
221
|
+
* An abstract class to represent An individual fragment from a parse ABI
|
|
222
222
|
*/
|
|
223
223
|
export declare abstract class Fragment {
|
|
224
224
|
/**
|
|
225
|
-
* The type of the fragment
|
|
225
|
+
* The type of the fragment
|
|
226
226
|
*/
|
|
227
227
|
readonly type: FragmentType;
|
|
228
228
|
/**
|
|
229
|
-
* The inputs for the fragment
|
|
229
|
+
* The inputs for the fragment
|
|
230
230
|
*/
|
|
231
231
|
readonly inputs: ReadonlyArray<ParamType>;
|
|
232
232
|
/**
|
|
@@ -234,42 +234,42 @@ export declare abstract class Fragment {
|
|
|
234
234
|
*/
|
|
235
235
|
constructor(guard: any, type: FragmentType, inputs: ReadonlyArray<ParamType>);
|
|
236
236
|
/**
|
|
237
|
-
* Returns a string representation of this fragment as %%format
|
|
237
|
+
* Returns a string representation of this fragment as %%format%%
|
|
238
238
|
*/
|
|
239
239
|
abstract format(format?: FormatType): string;
|
|
240
240
|
/**
|
|
241
|
-
* Creates a new **Fragment** for %%obj%%,
|
|
242
|
-
* ABI
|
|
241
|
+
* Creates a new **Fragment** for %%obj%%, which can be any supported
|
|
242
|
+
* ABI fragment type
|
|
243
243
|
*/
|
|
244
244
|
static from(obj: any): Fragment;
|
|
245
245
|
/**
|
|
246
|
-
* Returns true if %%value%% is a [[ConstructorFragment]]
|
|
246
|
+
* Returns true if %%value%% is a [[ConstructorFragment]]
|
|
247
247
|
*/
|
|
248
248
|
static isConstructor(value: any): value is ConstructorFragment;
|
|
249
249
|
/**
|
|
250
|
-
* Returns true if %%value%% is an [[ErrorFragment]]
|
|
250
|
+
* Returns true if %%value%% is an [[ErrorFragment]]
|
|
251
251
|
*/
|
|
252
252
|
static isError(value: any): value is ErrorFragment;
|
|
253
253
|
/**
|
|
254
|
-
* Returns true if %%value%% is an [[EventFragment]]
|
|
254
|
+
* Returns true if %%value%% is an [[EventFragment]]
|
|
255
255
|
*/
|
|
256
256
|
static isEvent(value: any): value is EventFragment;
|
|
257
257
|
/**
|
|
258
|
-
* Returns true if %%value%% is a [[FunctionFragment]]
|
|
258
|
+
* Returns true if %%value%% is a [[FunctionFragment]]
|
|
259
259
|
*/
|
|
260
260
|
static isFunction(value: any): value is FunctionFragment;
|
|
261
261
|
/**
|
|
262
|
-
* Returns true if %%value%% is a [[StructFragment]]
|
|
262
|
+
* Returns true if %%value%% is a [[StructFragment]]
|
|
263
263
|
*/
|
|
264
264
|
static isStruct(value: any): value is StructFragment;
|
|
265
265
|
}
|
|
266
266
|
/**
|
|
267
267
|
* An abstract class to represent An individual fragment
|
|
268
|
-
* which has a name from a parse ABI
|
|
268
|
+
* which has a name from a parse ABI
|
|
269
269
|
*/
|
|
270
270
|
export declare abstract class NamedFragment extends Fragment {
|
|
271
271
|
/**
|
|
272
|
-
* The name of the fragment
|
|
272
|
+
* The name of the fragment
|
|
273
273
|
*/
|
|
274
274
|
readonly name: string;
|
|
275
275
|
/**
|
|
@@ -278,7 +278,7 @@ export declare abstract class NamedFragment extends Fragment {
|
|
|
278
278
|
constructor(guard: any, type: FragmentType, name: string, inputs: ReadonlyArray<ParamType>);
|
|
279
279
|
}
|
|
280
280
|
/**
|
|
281
|
-
* A Fragment which represents a //Custom Error
|
|
281
|
+
* A Fragment which represents a //Custom Error//
|
|
282
282
|
*/
|
|
283
283
|
export declare class ErrorFragment extends NamedFragment {
|
|
284
284
|
/**
|
|
@@ -286,29 +286,29 @@ export declare class ErrorFragment extends NamedFragment {
|
|
|
286
286
|
*/
|
|
287
287
|
constructor(guard: any, name: string, inputs: ReadonlyArray<ParamType>);
|
|
288
288
|
/**
|
|
289
|
-
* The Custom Error selector
|
|
289
|
+
* The Custom Error selector
|
|
290
290
|
*/
|
|
291
291
|
get selector(): string;
|
|
292
292
|
/**
|
|
293
|
-
* Returns a string representation of this fragment as %%format
|
|
293
|
+
* Returns a string representation of this fragment as %%format%%
|
|
294
294
|
*/
|
|
295
295
|
format(format?: FormatType): string;
|
|
296
296
|
/**
|
|
297
|
-
* Returns a new **ErrorFragment** for %%obj
|
|
297
|
+
* Returns a new **ErrorFragment** for %%obj%%
|
|
298
298
|
*/
|
|
299
299
|
static from(obj: any): ErrorFragment;
|
|
300
300
|
/**
|
|
301
301
|
* Returns ``true`` and provides a type guard if %%value%% is an
|
|
302
|
-
* **ErrorFragment
|
|
302
|
+
* **ErrorFragment**
|
|
303
303
|
*/
|
|
304
304
|
static isFragment(value: any): value is ErrorFragment;
|
|
305
305
|
}
|
|
306
306
|
/**
|
|
307
|
-
* A Fragment which represents an Event
|
|
307
|
+
* A Fragment which represents an Event
|
|
308
308
|
*/
|
|
309
309
|
export declare class EventFragment extends NamedFragment {
|
|
310
310
|
/**
|
|
311
|
-
* Whether this event is anonymous
|
|
311
|
+
* Whether this event is anonymous
|
|
312
312
|
*/
|
|
313
313
|
readonly anonymous: boolean;
|
|
314
314
|
/**
|
|
@@ -316,37 +316,37 @@ export declare class EventFragment extends NamedFragment {
|
|
|
316
316
|
*/
|
|
317
317
|
constructor(guard: any, name: string, inputs: ReadonlyArray<ParamType>, anonymous: boolean);
|
|
318
318
|
/**
|
|
319
|
-
* The Event topic hash
|
|
319
|
+
* The Event topic hash
|
|
320
320
|
*/
|
|
321
321
|
get topicHash(): string;
|
|
322
322
|
/**
|
|
323
|
-
* Returns a string representation of this event as %%format
|
|
323
|
+
* Returns a string representation of this event as %%format%%
|
|
324
324
|
*/
|
|
325
325
|
format(format?: FormatType): string;
|
|
326
326
|
/**
|
|
327
|
-
* Return the topic hash for an event with %%name%% and %%params
|
|
327
|
+
* Return the topic hash for an event with %%name%% and %%params%%
|
|
328
328
|
*/
|
|
329
329
|
static getTopicHash(name: string, params?: Array<any>): string;
|
|
330
330
|
/**
|
|
331
|
-
* Returns a new **EventFragment** for %%obj
|
|
331
|
+
* Returns a new **EventFragment** for %%obj%%
|
|
332
332
|
*/
|
|
333
333
|
static from(obj: any): EventFragment;
|
|
334
334
|
/**
|
|
335
335
|
* Returns ``true`` and provides a type guard if %%value%% is an
|
|
336
|
-
* **EventFragment
|
|
336
|
+
* **EventFragment**
|
|
337
337
|
*/
|
|
338
338
|
static isFragment(value: any): value is EventFragment;
|
|
339
339
|
}
|
|
340
340
|
/**
|
|
341
|
-
* A Fragment which represents a constructor
|
|
341
|
+
* A Fragment which represents a constructor
|
|
342
342
|
*/
|
|
343
343
|
export declare class ConstructorFragment extends Fragment {
|
|
344
344
|
/**
|
|
345
|
-
* Whether the constructor can receive an endowment
|
|
345
|
+
* Whether the constructor can receive an endowment
|
|
346
346
|
*/
|
|
347
347
|
readonly payable: boolean;
|
|
348
348
|
/**
|
|
349
|
-
* The recommended gas limit for deployment or ``null
|
|
349
|
+
* The recommended gas limit for deployment or ``null``
|
|
350
350
|
*/
|
|
351
351
|
readonly gas: null | bigint;
|
|
352
352
|
/**
|
|
@@ -354,52 +354,52 @@ export declare class ConstructorFragment extends Fragment {
|
|
|
354
354
|
*/
|
|
355
355
|
constructor(guard: any, type: FragmentType, inputs: ReadonlyArray<ParamType>, payable: boolean, gas: null | bigint);
|
|
356
356
|
/**
|
|
357
|
-
* Returns a string representation of this constructor as %%format
|
|
357
|
+
* Returns a string representation of this constructor as %%format%%
|
|
358
358
|
*/
|
|
359
359
|
format(format?: FormatType): string;
|
|
360
360
|
/**
|
|
361
|
-
* Returns a new **ConstructorFragment** for %%obj
|
|
361
|
+
* Returns a new **ConstructorFragment** for %%obj%%
|
|
362
362
|
*/
|
|
363
363
|
static from(obj: any): ConstructorFragment;
|
|
364
364
|
/**
|
|
365
365
|
* Returns ``true`` and provides a type guard if %%value%% is a
|
|
366
|
-
* **ConstructorFragment
|
|
366
|
+
* **ConstructorFragment**
|
|
367
367
|
*/
|
|
368
368
|
static isFragment(value: any): value is ConstructorFragment;
|
|
369
369
|
}
|
|
370
370
|
/**
|
|
371
|
-
* A Fragment which represents a method
|
|
371
|
+
* A Fragment which represents a method
|
|
372
372
|
*/
|
|
373
373
|
export declare class FallbackFragment extends Fragment {
|
|
374
374
|
/**
|
|
375
|
-
* If the function can be sent value during invocation
|
|
375
|
+
* If the function can be sent value during invocation
|
|
376
376
|
*/
|
|
377
377
|
readonly payable: boolean;
|
|
378
378
|
constructor(guard: any, inputs: ReadonlyArray<ParamType>, payable: boolean);
|
|
379
379
|
/**
|
|
380
|
-
* Returns a string representation of this fallback as %%format
|
|
380
|
+
* Returns a string representation of this fallback as %%format%%
|
|
381
381
|
*/
|
|
382
382
|
format(format?: FormatType): string;
|
|
383
383
|
/**
|
|
384
|
-
* Returns a new **FallbackFragment** for %%obj
|
|
384
|
+
* Returns a new **FallbackFragment** for %%obj%%
|
|
385
385
|
*/
|
|
386
386
|
static from(obj: any): FallbackFragment;
|
|
387
387
|
/**
|
|
388
388
|
* Returns ``true`` and provides a type guard if %%value%% is a
|
|
389
|
-
* **FallbackFragment
|
|
389
|
+
* **FallbackFragment**
|
|
390
390
|
*/
|
|
391
391
|
static isFragment(value: any): value is FallbackFragment;
|
|
392
392
|
}
|
|
393
393
|
/**
|
|
394
|
-
* A Fragment which represents a method
|
|
394
|
+
* A Fragment which represents a method
|
|
395
395
|
*/
|
|
396
396
|
export declare class FunctionFragment extends NamedFragment {
|
|
397
397
|
/**
|
|
398
|
-
* If the function is constant (e.g. ``pure`` or ``view`` functions)
|
|
398
|
+
* If the function is constant (e.g. ``pure`` or ``view`` functions)
|
|
399
399
|
*/
|
|
400
400
|
readonly constant: boolean;
|
|
401
401
|
/**
|
|
402
|
-
* The returned types for the result of calling this function
|
|
402
|
+
* The returned types for the result of calling this function
|
|
403
403
|
*/
|
|
404
404
|
readonly outputs: ReadonlyArray<ParamType>;
|
|
405
405
|
/**
|
|
@@ -408,11 +408,11 @@ export declare class FunctionFragment extends NamedFragment {
|
|
|
408
408
|
*/
|
|
409
409
|
readonly stateMutability: "payable" | "nonpayable" | "view" | "pure";
|
|
410
410
|
/**
|
|
411
|
-
* If the function can be sent value during invocation
|
|
411
|
+
* If the function can be sent value during invocation
|
|
412
412
|
*/
|
|
413
413
|
readonly payable: boolean;
|
|
414
414
|
/**
|
|
415
|
-
* The recommended gas limit to send when calling this function
|
|
415
|
+
* The recommended gas limit to send when calling this function
|
|
416
416
|
*/
|
|
417
417
|
readonly gas: null | bigint;
|
|
418
418
|
/**
|
|
@@ -420,29 +420,29 @@ export declare class FunctionFragment extends NamedFragment {
|
|
|
420
420
|
*/
|
|
421
421
|
constructor(guard: any, name: string, stateMutability: "payable" | "nonpayable" | "view" | "pure", inputs: ReadonlyArray<ParamType>, outputs: ReadonlyArray<ParamType>, gas: null | bigint);
|
|
422
422
|
/**
|
|
423
|
-
* The Function selector
|
|
423
|
+
* The Function selector
|
|
424
424
|
*/
|
|
425
425
|
get selector(): string;
|
|
426
426
|
/**
|
|
427
|
-
* Returns a string representation of this function as %%format
|
|
427
|
+
* Returns a string representation of this function as %%format%%
|
|
428
428
|
*/
|
|
429
429
|
format(format?: FormatType): string;
|
|
430
430
|
/**
|
|
431
|
-
* Return the selector for a function with %%name%% and %%params
|
|
431
|
+
* Return the selector for a function with %%name%% and %%params%%
|
|
432
432
|
*/
|
|
433
433
|
static getSelector(name: string, params?: Array<any>): string;
|
|
434
434
|
/**
|
|
435
|
-
* Returns a new **FunctionFragment** for %%obj
|
|
435
|
+
* Returns a new **FunctionFragment** for %%obj%%
|
|
436
436
|
*/
|
|
437
437
|
static from(obj: any): FunctionFragment;
|
|
438
438
|
/**
|
|
439
439
|
* Returns ``true`` and provides a type guard if %%value%% is a
|
|
440
|
-
* **FunctionFragment
|
|
440
|
+
* **FunctionFragment**
|
|
441
441
|
*/
|
|
442
442
|
static isFragment(value: any): value is FunctionFragment;
|
|
443
443
|
}
|
|
444
444
|
/**
|
|
445
|
-
* A Fragment which represents a structure
|
|
445
|
+
* A Fragment which represents a structure
|
|
446
446
|
*/
|
|
447
447
|
export declare class StructFragment extends NamedFragment {
|
|
448
448
|
/**
|
|
@@ -450,16 +450,16 @@ export declare class StructFragment extends NamedFragment {
|
|
|
450
450
|
*/
|
|
451
451
|
constructor(guard: any, name: string, inputs: ReadonlyArray<ParamType>);
|
|
452
452
|
/**
|
|
453
|
-
* Returns a string representation of this struct as %%format
|
|
453
|
+
* Returns a string representation of this struct as %%format%%
|
|
454
454
|
*/
|
|
455
455
|
format(): string;
|
|
456
456
|
/**
|
|
457
|
-
* Returns a new **StructFragment** for %%obj
|
|
457
|
+
* Returns a new **StructFragment** for %%obj%%
|
|
458
458
|
*/
|
|
459
459
|
static from(obj: any): StructFragment;
|
|
460
460
|
/**
|
|
461
461
|
* Returns ``true`` and provides a type guard if %%value%% is a
|
|
462
|
-
* **StructFragment
|
|
462
|
+
* **StructFragment**
|
|
463
463
|
*/
|
|
464
464
|
static isFragment(value: any): value is FunctionFragment;
|
|
465
465
|
}
|
|
@@ -13,21 +13,21 @@ export declare class BlockDateResolver {
|
|
|
13
13
|
}>;
|
|
14
14
|
private moveNext;
|
|
15
15
|
/**
|
|
16
|
-
* Returns index of the
|
|
16
|
+
* Returns the index of the known block nearest to the specified date. It can be before or after the specified date
|
|
17
17
|
*/
|
|
18
18
|
private getClosest;
|
|
19
19
|
private checkPoint;
|
|
20
|
-
/**
|
|
20
|
+
/** Adds a known block to the set */
|
|
21
21
|
private push;
|
|
22
|
-
/** Loads the block and
|
|
22
|
+
/** Loads the block and returns its date */
|
|
23
23
|
private getBlockDate;
|
|
24
|
-
/** Returns
|
|
24
|
+
/** Returns the signed time in milliseconds between two dates. Values are negative when t2 < t1 */
|
|
25
25
|
private diffTime;
|
|
26
|
-
/** Returns
|
|
26
|
+
/** Returns the absolute time in milliseconds between two dates */
|
|
27
27
|
private diffTimeAbs;
|
|
28
|
-
/** Returns
|
|
28
|
+
/** Returns the average block count between two dates */
|
|
29
29
|
private getAvgBlockCountBetween;
|
|
30
|
-
/** With N>1 blocks we can better
|
|
30
|
+
/** With N > 1 blocks, we can better estimate the average block time */
|
|
31
31
|
private refineAvg;
|
|
32
32
|
private getBlock;
|
|
33
33
|
}
|