dequanto 0.0.1 → 0.1.3
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/.circleci/config.yml +51 -0
- package/.github/workflows/npm-publish.yml +32 -0
- package/.vscode/settings.json +42 -11
- package/actions/chains.act.ts +136 -0
- package/actions/contracts.act.ts +178 -0
- package/actions/gen.act.ts +38 -38
- package/actions/logs.act.ts +7 -0
- package/actions/rpc.act.ts +918 -0
- package/actions/safe.act.ts +7 -0
- package/actions/tokens.act.ts +41 -12
- package/configs/defi.yml +28 -0
- package/configs/dequanto.yml +377 -51
- package/data/cex/eth.csv +356 -356
- package/data/chainlink/feeds.json +3674 -0
- package/data/chains/chains.json +972 -0
- package/data/evm/eventHashes.json +19314 -0
- package/data/evm/events.json +19314 -0
- package/data/evm/functionHashes.json +121138 -0
- package/data/evm/functions.json +121140 -0
- package/data/rpc/coregeth.json +1786 -0
- package/data/rpc/eth.json +5873 -0
- package/data/rpc/flashbots.json +662 -0
- package/data/rpc/metamask.json +3673 -0
- package/data/rpc/overrides.json +104 -0
- package/data/tokens/1inch.json +11107 -4733
- package/data/tokens/arbitrum.json +1 -1
- package/data/tokens/coingecko.json +118642 -0
- package/data/tokens/sushi.json +6067 -48632
- package/exports/core.lib.ts +103 -0
- package/hardhat.config.js +41 -1
- package/importmap.json +27 -0
- package/package-bundler.json +181 -0
- package/package.json +121 -49
- package/readme.md +22 -4
- package/src/ChainAccountService.ts +216 -0
- package/src/abi/$abiCoder.ts +62 -0
- package/src/abi/$rlp.ts +126 -0
- package/src/abi/Logger.ts +24 -0
- package/src/abi/_version.ts +1 -0
- package/src/abi/abi-coder-packed.ts +90 -0
- package/src/abi/abi-coder.ts +163 -0
- package/src/abi/coders/abstract-coder.ts +455 -0
- package/src/abi/coders/address.ts +39 -0
- package/src/abi/coders/anonymous.ts +29 -0
- package/src/abi/coders/array.ts +190 -0
- package/src/abi/coders/boolean.ts +25 -0
- package/src/abi/coders/bytes.ts +41 -0
- package/src/abi/coders/fixed-bytes.ts +36 -0
- package/src/abi/coders/null.ts +28 -0
- package/src/abi/coders/number.ts +59 -0
- package/src/abi/coders/string.ts +23 -0
- package/src/abi/coders/tuple.ts +61 -0
- package/src/abi/fragments.ts +1632 -0
- package/src/blocks/BlockDateResolver.ts +159 -149
- package/src/bridges/BridgeFactory.ts +16 -16
- package/src/bridges/hop/HopAddresses.ts +1 -1
- package/src/bridges/hop/HopBridge.ts +437 -430
- package/src/bridges/hop/contracts/gen.act.ts +51 -50
- package/src/bridges/models/IBridge.ts +44 -43
- package/src/chains/PlatformFactory.ts +46 -45
- package/src/chains/arbitrum/ArbTokenProvider.ts +39 -39
- package/src/chains/arbitrum/ArbWeb3Client.ts +21 -39
- package/src/chains/arbitrum/Arbiscan.ts +21 -24
- package/src/chains/arbitrum/TokensServiceArbitrum.ts +19 -0
- package/src/chains/boba/BobaWeb3Client.ts +21 -49
- package/src/chains/boba/Bobascan.ts +22 -25
- package/src/chains/xdai/XDaiWeb3Client.ts +56 -82
- package/src/chains/xdai/XDaiscan.ts +21 -24
- package/src/class/PackedRanges.ts +213 -0
- package/src/class/PromiseEvent.ts +21 -0
- package/src/class/SubjectKind.ts +5 -0
- package/src/class/SubjectStream.ts +137 -0
- package/src/class/Subscription.ts +7 -0
- package/src/clients/BscWeb3Client.ts +21 -38
- package/src/clients/ClientEventsStream.ts +95 -33
- package/src/clients/ClientPool.ts +616 -207
- package/src/clients/ClientPoolStats.ts +70 -64
- package/src/clients/EthWeb3Client.ts +23 -36
- package/src/clients/EvmWeb3Client.ts +26 -0
- package/src/clients/PolyWeb3Client.ts +42 -91
- package/src/clients/Web3BatchRequests.ts +119 -0
- package/src/clients/Web3Client.ts +700 -134
- package/src/clients/Web3ClientFactory.ts +31 -1
- package/src/clients/compatibility/Web3.ts +186 -0
- package/src/clients/debug/ClientDebugMethods.ts +100 -0
- package/src/clients/handlers/RateLimitGuard.ts +353 -0
- package/src/clients/interfaces/IWeb3Client.ts +63 -14
- package/src/clients/interfaces/IWeb3ClientStatus.ts +21 -23
- package/src/clients/interfaces/IWeb3EndpointOptions.ts +16 -9
- package/src/clients/model/ClientStatus.ts +6 -5
- package/src/clients/model/PromiEventWrap.ts +62 -61
- package/src/clients/model/SubscriptionWrap.ts +53 -53
- package/src/clients/utils/$web3Abi.ts +29 -0
- package/src/clients/utils/ClientEndpoints.ts +32 -26
- package/src/clients/utils/ClientErrorUtil.ts +29 -26
- package/src/clients/utils/TxFactory.ts +5 -17
- package/src/config/AConfigBase.ts +35 -0
- package/src/config/Config.ts +45 -0
- package/src/config/ConfigProvider.ts +4 -0
- package/src/config/ConfigProviderBrowser.ts +21 -0
- package/src/config/ConfigProviderIsoPlatform.ts +90 -0
- package/src/config/dequanto.d.ts +5 -0
- package/src/config/interface/IConfigData.ts +63 -0
- package/src/contracts/BscContract.ts +28 -28
- package/src/contracts/Contract.ts +120 -126
- package/src/contracts/ContractAbiProvider.ts +69 -0
- package/src/contracts/ContractBase.ts +496 -60
- package/src/contracts/ContractClassFactory.ts +114 -0
- package/src/contracts/ContractCreationResolver.ts +85 -0
- package/src/contracts/ContractProvider.ts +55 -55
- package/src/contracts/ContractReader.ts +339 -87
- package/src/contracts/ContractStorageReaderBase.ts +29 -0
- package/src/contracts/ContractStream.ts +34 -18
- package/src/contracts/ContractWriter.ts +139 -97
- package/src/contracts/EthContract.ts +29 -29
- package/src/contracts/TxContract.ts +39 -43
- package/src/contracts/deploy/ContractDeployer.ts +155 -0
- package/src/contracts/deploy/ContractDeployment.ts +53 -0
- package/src/contracts/deploy/ContractSource.ts +3 -0
- package/src/contracts/deploy/Deployments.ts +672 -0
- package/src/contracts/deploy/proxy/$proxyDeploy.ts +302 -0
- package/src/contracts/deploy/proxy/ProxyDeployment.ts +401 -0
- package/src/contracts/deploy/storage/DeploymentsStorage.ts +368 -0
- package/src/contracts/utils/AbiDeserializer.ts +111 -98
- package/src/contracts/utils/ContractBaseUtils.ts +105 -0
- package/src/contracts/utils/ConvertUtils.ts +16 -16
- package/src/contracts/utils/InputDataUtils.ts +32 -93
- package/src/contracts/utils/TypeUtils.ts +21 -21
- package/src/contracts/wrappers/FnRequestWrapper.ts +15 -0
- package/src/contracts/wrappers/FnSignedWrapper.ts +42 -0
- package/src/env/BigIntSerializer.ts +19 -18
- package/src/erc4337/Erc4337Factory.ts +54 -0
- package/src/erc4337/Erc4337Service.ts +219 -0
- package/src/erc4337/Erc4337TxWriter.ts +169 -0
- package/src/erc4337/models/Erc4337Abi.ts +7 -0
- package/src/erc4337/models/IErc4337Info.ts +8 -0
- package/src/erc4337/models/UserOperation.ts +18 -0
- package/src/erc4337/utils/$erc4337.ts +31 -0
- package/src/evm/EvmBytecode.ts +298 -0
- package/src/evm/OpcodesInfo.ts +211 -0
- package/src/evm/OpcodesWalker.ts +156 -0
- package/src/evm/Stack.ts +58 -0
- package/src/evm/functions/$opcodes.ts +122 -0
- package/src/evm/functions/opcodes.spec.ts +47 -0
- package/src/evm/interfaces/IJumps.ts +3 -0
- package/src/evm/interfaces/IMemory.ts +3 -0
- package/src/evm/interfaces/IOpcode.ts +11 -0
- package/src/evm/interfaces/IStorage.ts +3 -0
- package/src/evm/opcodes/add.ts +49 -0
- package/src/evm/opcodes/addmod.ts +19 -0
- package/src/evm/opcodes/address.ts +22 -0
- package/src/evm/opcodes/and.ts +58 -0
- package/src/evm/opcodes/balance.ts +25 -0
- package/src/evm/opcodes/blockhash.ts +25 -0
- package/src/evm/opcodes/byte.ts +34 -0
- package/src/evm/opcodes/call.ts +69 -0
- package/src/evm/opcodes/callcode.ts +69 -0
- package/src/evm/opcodes/calldatacopy.ts +36 -0
- package/src/evm/opcodes/calldataload.ts +40 -0
- package/src/evm/opcodes/calldatasize.ts +21 -0
- package/src/evm/opcodes/caller.ts +22 -0
- package/src/evm/opcodes/callvalue.ts +21 -0
- package/src/evm/opcodes/codecopy.ts +37 -0
- package/src/evm/opcodes/codesize.ts +21 -0
- package/src/evm/opcodes/coinbase.ts +21 -0
- package/src/evm/opcodes/create.ts +42 -0
- package/src/evm/opcodes/create2.ts +41 -0
- package/src/evm/opcodes/delegatecall.ts +63 -0
- package/src/evm/opcodes/difficulty.ts +21 -0
- package/src/evm/opcodes/div.ts +35 -0
- package/src/evm/opcodes/dup.ts +7 -0
- package/src/evm/opcodes/eq.ts +92 -0
- package/src/evm/opcodes/exp.ts +34 -0
- package/src/evm/opcodes/extcodecopy.ts +42 -0
- package/src/evm/opcodes/extcodehash.ts +25 -0
- package/src/evm/opcodes/extcodesize.ts +25 -0
- package/src/evm/opcodes/gas.ts +21 -0
- package/src/evm/opcodes/gaslimit.ts +21 -0
- package/src/evm/opcodes/gasprice.ts +21 -0
- package/src/evm/opcodes/gt.ts +39 -0
- package/src/evm/opcodes/invalid.ts +24 -0
- package/src/evm/opcodes/iszero.ts +48 -0
- package/src/evm/opcodes/jump.ts +66 -0
- package/src/evm/opcodes/jumpdest.ts +6 -0
- package/src/evm/opcodes/jumpi.ts +367 -0
- package/src/evm/opcodes/log.ts +89 -0
- package/src/evm/opcodes/lt.ts +39 -0
- package/src/evm/opcodes/mload.ts +30 -0
- package/src/evm/opcodes/mod.ts +33 -0
- package/src/evm/opcodes/msize.ts +21 -0
- package/src/evm/opcodes/mstore.ts +33 -0
- package/src/evm/opcodes/mul.ts +38 -0
- package/src/evm/opcodes/mulmod.ts +19 -0
- package/src/evm/opcodes/not.ts +30 -0
- package/src/evm/opcodes/number.ts +21 -0
- package/src/evm/opcodes/or.ts +33 -0
- package/src/evm/opcodes/origin.ts +21 -0
- package/src/evm/opcodes/pc.ts +7 -0
- package/src/evm/opcodes/pop.ts +6 -0
- package/src/evm/opcodes/push.ts +8 -0
- package/src/evm/opcodes/return.ts +78 -0
- package/src/evm/opcodes/returndatacopy.ts +37 -0
- package/src/evm/opcodes/returndatasize.ts +21 -0
- package/src/evm/opcodes/revert.ts +64 -0
- package/src/evm/opcodes/sar.ts +33 -0
- package/src/evm/opcodes/selfdestruct.ts +26 -0
- package/src/evm/opcodes/sha3.ts +63 -0
- package/src/evm/opcodes/shl.ts +42 -0
- package/src/evm/opcodes/shr.ts +33 -0
- package/src/evm/opcodes/signextend.ts +25 -0
- package/src/evm/opcodes/sload.ts +190 -0
- package/src/evm/opcodes/sstore.ts +259 -0
- package/src/evm/opcodes/staticcall.ts +63 -0
- package/src/evm/opcodes/stop.ts +22 -0
- package/src/evm/opcodes/sub.ts +33 -0
- package/src/evm/opcodes/swap.ts +7 -0
- package/src/evm/opcodes/timestamp.ts +21 -0
- package/src/evm/opcodes/xor.ts +33 -0
- package/src/evm/utils/$bytecode.ts +76 -0
- package/src/evm/utils/BigNumber.ts +9 -0
- package/src/evm/utils/hex.ts +37 -0
- package/src/evm/utils/opcodes.ts +213 -0
- package/src/evm/utils/stringify.ts +12 -0
- package/src/evm/utils/stringifyEvents.ts +37 -0
- package/src/evm/utils/stringifyFunctions.ts +41 -0
- package/src/evm/utils/stringifyInstructions.ts +38 -0
- package/src/evm/utils/stringifyMappings.ts +65 -0
- package/src/evm/utils/stringifyStructs.ts +16 -0
- package/src/evm/utils/stringifyVariables.ts +32 -0
- package/src/explorer/BlockChainExplorerFactory.ts +644 -0
- package/src/explorer/BlockChainExplorerProvider.ts +57 -0
- package/src/explorer/BlockChainExplorerStorage.ts +124 -0
- package/src/explorer/BlockNumberCache.ts +47 -0
- package/src/explorer/Bscscan.ts +24 -0
- package/src/explorer/ContractVerifier.ts +289 -0
- package/src/explorer/ContractVerifierHtml.ts +207 -0
- package/src/explorer/Etherscan.ts +37 -0
- package/src/explorer/Evmscan.ts +8 -0
- package/src/explorer/IAbiProvider.ts +5 -0
- package/src/explorer/IBlockChainExplorer.ts +69 -0
- package/src/explorer/Polyscan.ts +24 -0
- package/src/explorer/verifiers/FsHtmlVerifier.ts +195 -0
- package/src/explorer/verifiers/IVerifier.ts +14 -0
- package/src/flashbots/FlashbotWeb3Client.ts +24 -0
- package/src/flashbots/FlashbotsProvider.ts +163 -0
- package/src/gen/Ast.ts +12 -12
- package/src/gen/ContractStorageReaderTemplate.ts +18 -0
- package/src/gen/ContractTemplate.ts +134 -36
- package/src/gen/Generator.ts +414 -227
- package/src/gen/GeneratorFromAbi.ts +451 -128
- package/src/gen/GeneratorStorageReader.ts +114 -0
- package/src/gen/utils/$gen.ts +11 -0
- package/src/gen/utils/Str.ts +40 -0
- package/src/handlers/TokenHandler.ts +77 -78
- package/src/hardhat/HardhatProvider.ts +469 -0
- package/src/hardhat/HardhatWeb3Client.ts +66 -0
- package/src/indexer/BlocksTxIndexer.ts +116 -69
- package/src/indexer/EventsIndexer.ts +379 -0
- package/src/indexer/PendingTxIndexer.ts +123 -124
- package/src/indexer/handlers/BlocksWalker.ts +420 -390
- package/src/indexer/handlers/TxQueueLoader.ts +144 -143
- package/src/indexer/storage/FsEventsIndexerStore.ts +182 -0
- package/src/indexer/storage/FsEventsMetaStore.ts +65 -0
- package/src/indexer/storage/FsEventsStoreUtils.ts +43 -0
- package/src/indexer/storage/interfaces.ts +25 -0
- package/src/json/JsonArrayMultiStore.ts +219 -0
- package/src/json/JsonArrayStore.ts +193 -310
- package/src/json/JsonObjectStore.ts +78 -239
- package/src/json/JsonStoreFs.ts +187 -0
- package/src/loggers/ILogger.ts +6 -3
- package/src/loggers/LoggerService.ts +83 -39
- package/src/loggers/TxLoggerService.ts +144 -146
- package/src/models/IContractDetails.ts +10 -8
- package/src/models/IToken.ts +35 -11
- package/src/models/ITokenGlob.ts +14 -14
- package/src/models/ITransactionDetails.ts +10 -11
- package/src/models/TAccount.ts +53 -0
- package/src/models/TAddress.ts +2 -1
- package/src/models/TBufferLike.ts +2 -2
- package/src/models/TError.ts +4 -0
- package/src/models/TEth.ts +223 -0
- package/src/models/THex.ts +1 -1
- package/src/models/TPlatform.ts +16 -1
- package/src/models/TResult.ts +6 -6
- package/src/models/TTx.ts +42 -0
- package/src/ns/NameService.ts +54 -21
- package/src/ns/providers/ANsProvider.ts +110 -0
- package/src/ns/providers/EnsProvider.ts +109 -45
- package/src/ns/providers/INsProvider.ts +31 -6
- package/src/ns/providers/SpaceIdProvider.ts +17 -0
- package/src/ns/providers/UDProvider.ts +77 -49
- package/src/ns/utils/$ns.ts +27 -15
- package/src/prebuilt/1inch/OneInchRouterContract/OneInchRouterContract.ts +313 -0
- package/src/prebuilt/amm/AmmFactoryV2Contract/AmmFactoryV2Contract.ts +298 -0
- package/src/prebuilt/amm/AmmMasterChefV2Contract/AmmMasterChefV2Contract.ts +642 -0
- package/src/prebuilt/amm/AmmPairV2Contract/AmmPairV2Contract.ts +700 -0
- package/src/prebuilt/amm/AmmPairV3Contract/AmmPairV3Contract.ts +686 -0
- package/src/prebuilt/amm/AmmRouterV2Contract/AmmRouterV2Contract.ts +404 -0
- package/src/prebuilt/amm/AmmVaultV2Contract/AmmVaultV2Contract.ts +818 -0
- package/src/prebuilt/ens/EnsBaseRegistrar/EnsBaseRegistrar.ts +711 -0
- package/src/prebuilt/ens/EnsDnsRegistrar/EnsDnsRegistrar.ts +333 -0
- package/src/prebuilt/ens/EnsEthRegistrarController/EnsEthRegistrarController.ts +477 -0
- package/src/prebuilt/ens/EnsNameWrapper/EnsNameWrapper.ts +1003 -0
- package/src/prebuilt/ens/EnsPublicResolver/EnsPublicResolver.ts +873 -0
- package/src/prebuilt/ens/EnsRegistry/EnsRegistry.ts +415 -0
- package/src/prebuilt/ens/EnsReverseRegistrar/EnsReverseRegistrar.ts +407 -0
- package/src/prebuilt/erc4337/EntryPoint/EntryPoint.ts +640 -0
- package/src/prebuilt/erc4337/SimpleAccount/SimpleAccount.ts +501 -0
- package/src/prebuilt/erc4337/SimpleAccountFactory/SimpleAccountFactory.ts +184 -0
- package/src/prebuilt/openzeppelin/AccessControl.json +206 -0
- package/src/prebuilt/openzeppelin/AccessControl.ts +257 -0
- package/src/prebuilt/openzeppelin/AccessControlCrossChain.json +219 -0
- package/src/prebuilt/openzeppelin/AccessControlCrossChain.ts +266 -0
- package/src/prebuilt/openzeppelin/AccessControlDefaultAdminRules.json +391 -0
- package/src/prebuilt/openzeppelin/AccessControlDefaultAdminRules.ts +450 -0
- package/src/prebuilt/openzeppelin/AccessControlEnumerable.json +249 -0
- package/src/prebuilt/openzeppelin/AccessControlEnumerable.ts +275 -0
- package/src/prebuilt/openzeppelin/ConditionalEscrow.json +156 -0
- package/src/prebuilt/openzeppelin/ConditionalEscrow.ts +259 -0
- package/src/prebuilt/openzeppelin/CrossChainEnabledPolygonChild.json +30 -0
- package/src/prebuilt/openzeppelin/CrossChainEnabledPolygonChild.ts +150 -0
- package/src/prebuilt/openzeppelin/EIP712.json +67 -0
- package/src/prebuilt/openzeppelin/EIP712.ts +170 -0
- package/src/prebuilt/openzeppelin/ERC1155.json +325 -0
- package/src/prebuilt/openzeppelin/ERC1155.ts +291 -0
- package/src/prebuilt/openzeppelin/ERC1155Burnable.json +360 -0
- package/src/prebuilt/openzeppelin/ERC1155Burnable.ts +309 -0
- package/src/prebuilt/openzeppelin/ERC1155Holder.json +99 -0
- package/src/prebuilt/openzeppelin/ERC1155Holder.ts +163 -0
- package/src/prebuilt/openzeppelin/ERC1155Pausable.json +353 -0
- package/src/prebuilt/openzeppelin/ERC1155Pausable.ts +338 -0
- package/src/prebuilt/openzeppelin/ERC1155PresetMinterPauser.json +734 -0
- package/src/prebuilt/openzeppelin/ERC1155PresetMinterPauser.ts +567 -0
- package/src/prebuilt/openzeppelin/ERC1155Receiver.json +99 -0
- package/src/prebuilt/openzeppelin/ERC1155Receiver.ts +163 -0
- package/src/prebuilt/openzeppelin/ERC1155Supply.json +352 -0
- package/src/prebuilt/openzeppelin/ERC1155Supply.ts +305 -0
- package/src/prebuilt/openzeppelin/ERC1155URIStorage.json +314 -0
- package/src/prebuilt/openzeppelin/ERC1155URIStorage.ts +287 -0
- package/src/prebuilt/openzeppelin/ERC165.json +21 -0
- package/src/prebuilt/openzeppelin/ERC165.ts +143 -0
- package/src/prebuilt/openzeppelin/ERC165Storage.json +21 -0
- package/src/prebuilt/openzeppelin/ERC165Storage.ts +143 -0
- package/src/prebuilt/openzeppelin/ERC1820Implementer.json +26 -0
- package/src/prebuilt/openzeppelin/ERC1820Implementer.ts +143 -0
- package/src/prebuilt/openzeppelin/ERC20.json +288 -0
- package/src/prebuilt/openzeppelin/ERC20.ts +280 -0
- package/src/prebuilt/openzeppelin/ERC20Burnable.json +303 -0
- package/src/prebuilt/openzeppelin/ERC20Burnable.ts +298 -0
- package/src/prebuilt/openzeppelin/ERC20Capped.json +285 -0
- package/src/prebuilt/openzeppelin/ERC20Capped.ts +285 -0
- package/src/prebuilt/openzeppelin/ERC20FlashMint.json +349 -0
- package/src/prebuilt/openzeppelin/ERC20FlashMint.ts +305 -0
- package/src/prebuilt/openzeppelin/ERC20Pausable.json +311 -0
- package/src/prebuilt/openzeppelin/ERC20Pausable.ts +327 -0
- package/src/prebuilt/openzeppelin/ERC20Permit.json +412 -0
- package/src/prebuilt/openzeppelin/ERC20Permit.ts +348 -0
- package/src/prebuilt/openzeppelin/ERC20PresetFixedSupply.json +329 -0
- package/src/prebuilt/openzeppelin/ERC20PresetFixedSupply.ts +302 -0
- package/src/prebuilt/openzeppelin/ERC20PresetMinterPauser.json +663 -0
- package/src/prebuilt/openzeppelin/ERC20PresetMinterPauser.ts +554 -0
- package/src/prebuilt/openzeppelin/ERC20Snapshot.json +328 -0
- package/src/prebuilt/openzeppelin/ERC20Snapshot.ts +315 -0
- package/src/prebuilt/openzeppelin/ERC20Votes.json +675 -0
- package/src/prebuilt/openzeppelin/ERC20Votes.ts +484 -0
- package/src/prebuilt/openzeppelin/ERC20VotesComp.json +718 -0
- package/src/prebuilt/openzeppelin/ERC20VotesComp.ts +502 -0
- package/src/prebuilt/openzeppelin/ERC20Wrapper.json +333 -0
- package/src/prebuilt/openzeppelin/ERC20Wrapper.ts +307 -0
- package/src/prebuilt/openzeppelin/ERC2771Context.json +21 -0
- package/src/prebuilt/openzeppelin/ERC2771Context.ts +143 -0
- package/src/prebuilt/openzeppelin/ERC2981.json +50 -0
- package/src/prebuilt/openzeppelin/ERC2981.ts +152 -0
- package/src/prebuilt/openzeppelin/ERC4626.json +662 -0
- package/src/prebuilt/openzeppelin/ERC4626.ts +470 -0
- package/src/prebuilt/openzeppelin/ERC721.json +348 -0
- package/src/prebuilt/openzeppelin/ERC721.ts +314 -0
- package/src/prebuilt/openzeppelin/ERC721Burnable.json +345 -0
- package/src/prebuilt/openzeppelin/ERC721Burnable.ts +321 -0
- package/src/prebuilt/openzeppelin/ERC721Consecutive.json +363 -0
- package/src/prebuilt/openzeppelin/ERC721Consecutive.ts +331 -0
- package/src/prebuilt/openzeppelin/ERC721Enumerable.json +388 -0
- package/src/prebuilt/openzeppelin/ERC721Enumerable.ts +337 -0
- package/src/prebuilt/openzeppelin/ERC721Holder.json +36 -0
- package/src/prebuilt/openzeppelin/ERC721Holder.ts +143 -0
- package/src/prebuilt/openzeppelin/ERC721Pausable.json +371 -0
- package/src/prebuilt/openzeppelin/ERC721Pausable.ts +361 -0
- package/src/prebuilt/openzeppelin/ERC721PresetMinterPauserAutoId.json +742 -0
- package/src/prebuilt/openzeppelin/ERC721PresetMinterPauserAutoId.ts +595 -0
- package/src/prebuilt/openzeppelin/ERC721Royalty.json +361 -0
- package/src/prebuilt/openzeppelin/ERC721Royalty.ts +319 -0
- package/src/prebuilt/openzeppelin/ERC721URIStorage.json +364 -0
- package/src/prebuilt/openzeppelin/ERC721URIStorage.ts +352 -0
- package/src/prebuilt/openzeppelin/ERC721Votes.json +637 -0
- package/src/prebuilt/openzeppelin/ERC721Votes.ts +489 -0
- package/src/prebuilt/openzeppelin/ERC721Wrapper.json +427 -0
- package/src/prebuilt/openzeppelin/ERC721Wrapper.ts +352 -0
- package/src/prebuilt/openzeppelin/ERC777.json +578 -0
- package/src/prebuilt/openzeppelin/ERC777.ts +456 -0
- package/src/prebuilt/openzeppelin/ERC777PresetFixedSupply.json +588 -0
- package/src/prebuilt/openzeppelin/ERC777PresetFixedSupply.ts +456 -0
- package/src/prebuilt/openzeppelin/Escrow.json +137 -0
- package/src/prebuilt/openzeppelin/Escrow.ts +250 -0
- package/src/prebuilt/openzeppelin/Governor.json +1010 -0
- package/src/prebuilt/openzeppelin/Governor.ts +590 -0
- package/src/prebuilt/openzeppelin/GovernorCompatibilityBravo.json +1325 -0
- package/src/prebuilt/openzeppelin/GovernorCompatibilityBravo.ts +700 -0
- package/src/prebuilt/openzeppelin/GovernorCountingSimple.json +1039 -0
- package/src/prebuilt/openzeppelin/GovernorCountingSimple.ts +599 -0
- package/src/prebuilt/openzeppelin/GovernorPreventLateQuorum.json +1074 -0
- package/src/prebuilt/openzeppelin/GovernorPreventLateQuorum.ts +652 -0
- package/src/prebuilt/openzeppelin/GovernorProposalThreshold.json +1010 -0
- package/src/prebuilt/openzeppelin/GovernorProposalThreshold.ts +590 -0
- package/src/prebuilt/openzeppelin/GovernorSettings.json +1106 -0
- package/src/prebuilt/openzeppelin/GovernorSettings.ts +686 -0
- package/src/prebuilt/openzeppelin/GovernorTimelockCompound.json +1134 -0
- package/src/prebuilt/openzeppelin/GovernorTimelockCompound.ts +683 -0
- package/src/prebuilt/openzeppelin/GovernorTimelockControl.json +1127 -0
- package/src/prebuilt/openzeppelin/GovernorTimelockControl.ts +672 -0
- package/src/prebuilt/openzeppelin/GovernorVotes.json +1023 -0
- package/src/prebuilt/openzeppelin/GovernorVotes.ts +599 -0
- package/src/prebuilt/openzeppelin/GovernorVotesComp.json +1023 -0
- package/src/prebuilt/openzeppelin/GovernorVotesComp.ts +599 -0
- package/src/prebuilt/openzeppelin/GovernorVotesQuorumFraction.json +1100 -0
- package/src/prebuilt/openzeppelin/GovernorVotesQuorumFraction.ts +653 -0
- package/src/prebuilt/openzeppelin/IAMB.json +327 -0
- package/src/prebuilt/openzeppelin/IAMB.ts +330 -0
- package/src/prebuilt/openzeppelin/IAccessControl.json +174 -0
- package/src/prebuilt/openzeppelin/IAccessControl.ts +239 -0
- package/src/prebuilt/openzeppelin/IAccessControlDefaultAdminRules.json +346 -0
- package/src/prebuilt/openzeppelin/IAccessControlDefaultAdminRules.ts +423 -0
- package/src/prebuilt/openzeppelin/IAccessControlEnumerable.json +217 -0
- package/src/prebuilt/openzeppelin/IAccessControlEnumerable.ts +257 -0
- package/src/prebuilt/openzeppelin/IArbSys.json +355 -0
- package/src/prebuilt/openzeppelin/IArbSys.ts +300 -0
- package/src/prebuilt/openzeppelin/IBeacon.json +15 -0
- package/src/prebuilt/openzeppelin/IBeacon.ts +143 -0
- package/src/prebuilt/openzeppelin/IBridge.json +529 -0
- package/src/prebuilt/openzeppelin/IBridge.ts +430 -0
- package/src/prebuilt/openzeppelin/ICompoundTimelock.json +415 -0
- package/src/prebuilt/openzeppelin/ICompoundTimelock.ts +380 -0
- package/src/prebuilt/openzeppelin/ICrossDomainMessenger.json +101 -0
- package/src/prebuilt/openzeppelin/ICrossDomainMessenger.ts +208 -0
- package/src/prebuilt/openzeppelin/IERC1155.json +295 -0
- package/src/prebuilt/openzeppelin/IERC1155.ts +278 -0
- package/src/prebuilt/openzeppelin/IERC1155MetadataURI.json +314 -0
- package/src/prebuilt/openzeppelin/IERC1155MetadataURI.ts +287 -0
- package/src/prebuilt/openzeppelin/IERC1155Receiver.json +99 -0
- package/src/prebuilt/openzeppelin/IERC1155Receiver.ts +163 -0
- package/src/prebuilt/openzeppelin/IERC1271.json +26 -0
- package/src/prebuilt/openzeppelin/IERC1271.ts +143 -0
- package/src/prebuilt/openzeppelin/IERC1363.json +373 -0
- package/src/prebuilt/openzeppelin/IERC1363.ts +287 -0
- package/src/prebuilt/openzeppelin/IERC1363Receiver.json +36 -0
- package/src/prebuilt/openzeppelin/IERC1363Receiver.ts +143 -0
- package/src/prebuilt/openzeppelin/IERC1363Spender.json +31 -0
- package/src/prebuilt/openzeppelin/IERC1363Spender.ts +143 -0
- package/src/prebuilt/openzeppelin/IERC165.json +21 -0
- package/src/prebuilt/openzeppelin/IERC165.ts +143 -0
- package/src/prebuilt/openzeppelin/IERC1820Implementer.json +26 -0
- package/src/prebuilt/openzeppelin/IERC1820Implementer.ts +143 -0
- package/src/prebuilt/openzeppelin/IERC1820Registry.json +215 -0
- package/src/prebuilt/openzeppelin/IERC1820Registry.ts +245 -0
- package/src/prebuilt/openzeppelin/IERC1822Proxiable.json +15 -0
- package/src/prebuilt/openzeppelin/IERC1822Proxiable.ts +143 -0
- package/src/prebuilt/openzeppelin/IERC20.json +185 -0
- package/src/prebuilt/openzeppelin/IERC20.ts +227 -0
- package/src/prebuilt/openzeppelin/IERC20Metadata.json +224 -0
- package/src/prebuilt/openzeppelin/IERC20Metadata.ts +254 -0
- package/src/prebuilt/openzeppelin/IERC20Permit.json +77 -0
- package/src/prebuilt/openzeppelin/IERC20Permit.ts +161 -0
- package/src/prebuilt/openzeppelin/IERC2612.json +77 -0
- package/src/prebuilt/openzeppelin/IERC2612.ts +161 -0
- package/src/prebuilt/openzeppelin/IERC2981.json +50 -0
- package/src/prebuilt/openzeppelin/IERC2981.ts +152 -0
- package/src/prebuilt/openzeppelin/IERC3156FlashBorrower.json +41 -0
- package/src/prebuilt/openzeppelin/IERC3156FlashBorrower.ts +143 -0
- package/src/prebuilt/openzeppelin/IERC3156FlashLender.json +79 -0
- package/src/prebuilt/openzeppelin/IERC3156FlashLender.ts +161 -0
- package/src/prebuilt/openzeppelin/IERC4626.json +614 -0
- package/src/prebuilt/openzeppelin/IERC4626.ts +448 -0
- package/src/prebuilt/openzeppelin/IERC4906.json +319 -0
- package/src/prebuilt/openzeppelin/IERC4906.ts +325 -0
- package/src/prebuilt/openzeppelin/IERC5267.json +51 -0
- package/src/prebuilt/openzeppelin/IERC5267.ts +157 -0
- package/src/prebuilt/openzeppelin/IERC5313.json +15 -0
- package/src/prebuilt/openzeppelin/IERC5313.ts +143 -0
- package/src/prebuilt/openzeppelin/IERC5805.json +210 -0
- package/src/prebuilt/openzeppelin/IERC5805.ts +243 -0
- package/src/prebuilt/openzeppelin/IERC6372.json +28 -0
- package/src/prebuilt/openzeppelin/IERC6372.ts +152 -0
- package/src/prebuilt/openzeppelin/IERC721.json +287 -0
- package/src/prebuilt/openzeppelin/IERC721.ts +283 -0
- package/src/prebuilt/openzeppelin/IERC721Enumerable.json +343 -0
- package/src/prebuilt/openzeppelin/IERC721Enumerable.ts +310 -0
- package/src/prebuilt/openzeppelin/IERC721Metadata.json +332 -0
- package/src/prebuilt/openzeppelin/IERC721Metadata.ts +310 -0
- package/src/prebuilt/openzeppelin/IERC721Receiver.json +36 -0
- package/src/prebuilt/openzeppelin/IERC721Receiver.ts +143 -0
- package/src/prebuilt/openzeppelin/IERC777.json +393 -0
- package/src/prebuilt/openzeppelin/IERC777.ts +359 -0
- package/src/prebuilt/openzeppelin/IERC777Recipient.json +40 -0
- package/src/prebuilt/openzeppelin/IERC777Recipient.ts +143 -0
- package/src/prebuilt/openzeppelin/IERC777Sender.json +40 -0
- package/src/prebuilt/openzeppelin/IERC777Sender.ts +143 -0
- package/src/prebuilt/openzeppelin/IFxMessageProcessor.json +25 -0
- package/src/prebuilt/openzeppelin/IFxMessageProcessor.ts +143 -0
- package/src/prebuilt/openzeppelin/IGovernor.json +762 -0
- package/src/prebuilt/openzeppelin/IGovernor.ts +471 -0
- package/src/prebuilt/openzeppelin/IGovernorCompatibilityBravo.json +992 -0
- package/src/prebuilt/openzeppelin/IGovernorCompatibilityBravo.ts +536 -0
- package/src/prebuilt/openzeppelin/IGovernorTimelock.json +847 -0
- package/src/prebuilt/openzeppelin/IGovernorTimelock.ts +521 -0
- package/src/prebuilt/openzeppelin/IInbox.json +444 -0
- package/src/prebuilt/openzeppelin/IInbox.ts +337 -0
- package/src/prebuilt/openzeppelin/IOutbox.json +410 -0
- package/src/prebuilt/openzeppelin/IOutbox.ts +317 -0
- package/src/prebuilt/openzeppelin/ITransparentUpgradeableProxy.json +117 -0
- package/src/prebuilt/openzeppelin/ITransparentUpgradeableProxy.ts +239 -0
- package/src/prebuilt/openzeppelin/IVotes.json +184 -0
- package/src/prebuilt/openzeppelin/IVotes.ts +225 -0
- package/src/prebuilt/openzeppelin/LibArbitrumL2.json +15 -0
- package/src/prebuilt/openzeppelin/LibArbitrumL2.ts +143 -0
- package/src/prebuilt/openzeppelin/MinimalForwarder.json +208 -0
- package/src/prebuilt/openzeppelin/MinimalForwarder.ts +201 -0
- package/src/prebuilt/openzeppelin/Multicall.json +21 -0
- package/src/prebuilt/openzeppelin/Multicall.ts +143 -0
- package/src/prebuilt/openzeppelin/Ownable.json +54 -0
- package/src/prebuilt/openzeppelin/Ownable.ts +177 -0
- package/src/prebuilt/openzeppelin/Ownable2Step.json +93 -0
- package/src/prebuilt/openzeppelin/Ownable2Step.ts +218 -0
- package/src/prebuilt/openzeppelin/Pausable.json +41 -0
- package/src/prebuilt/openzeppelin/Pausable.ts +178 -0
- package/src/prebuilt/openzeppelin/PaymentSplitter.json +304 -0
- package/src/prebuilt/openzeppelin/PaymentSplitter.ts +296 -0
- package/src/prebuilt/openzeppelin/ProxyAdmin.json +151 -0
- package/src/prebuilt/openzeppelin/ProxyAdmin.ts +228 -0
- package/src/prebuilt/openzeppelin/PullPayment.json +34 -0
- package/src/prebuilt/openzeppelin/PullPayment.ts +152 -0
- package/src/prebuilt/openzeppelin/RefundEscrow.json +226 -0
- package/src/prebuilt/openzeppelin/RefundEscrow.ts +356 -0
- package/src/prebuilt/openzeppelin/TimelockController.json +891 -0
- package/src/prebuilt/openzeppelin/TimelockController.ts +573 -0
- package/src/prebuilt/openzeppelin/TokenTimelock.json +69 -0
- package/src/prebuilt/openzeppelin/TokenTimelock.ts +174 -0
- package/src/prebuilt/openzeppelin/UUPSUpgradeable.json +91 -0
- package/src/prebuilt/openzeppelin/UUPSUpgradeable.ts +219 -0
- package/src/prebuilt/openzeppelin/UpgradeableBeacon.json +104 -0
- package/src/prebuilt/openzeppelin/UpgradeableBeacon.ts +222 -0
- package/src/prebuilt/openzeppelin/VestingWallet.json +225 -0
- package/src/prebuilt/openzeppelin/VestingWallet.ts +254 -0
- package/src/prebuilt/openzeppelin/Votes.json +307 -0
- package/src/prebuilt/openzeppelin/Votes.ts +304 -0
- package/src/prebuilt/openzeppelin/compiled/TransparentUpgradeableProxy/TransparentUpgradeableProxy.ts +214 -0
- package/src/prebuilt/safe/CreateCall.ts +168 -0
- package/src/prebuilt/safe/GnosisSafe.ts +683 -0
- package/src/prebuilt/safe/MultiSend.ts +147 -0
- package/src/prebuilt/safe/Safe.ts +742 -0
- package/src/prebuilt/safe/SafeL2.ts +780 -0
- package/src/prebuilt/safe/SafeProxyFactory.ts +197 -0
- package/src/prebuilt/weth/WETH/WETH.ts +390 -0
- package/src/rpc/$rpc.ts +124 -0
- package/src/rpc/Rpc.ts +3010 -0
- package/src/rpc/RpcBase.ts +154 -0
- package/src/rpc/RpcContract.ts +179 -0
- package/src/rpc/RpcError.ts +41 -0
- package/src/rpc/RpcFunction.ts +42 -0
- package/src/rpc/RpcHandler.ts +3 -0
- package/src/rpc/RpcModelMiddleware.ts +110 -0
- package/src/rpc/RpcSubscription.ts +46 -0
- package/src/rpc/transports/HttpTransport.ts +54 -0
- package/src/rpc/transports/ITransport.ts +87 -0
- package/src/rpc/transports/MessageBasedTransport.ts +133 -0
- package/src/rpc/transports/RpcTransport.ts +66 -0
- package/src/rpc/transports/WsTransport.ts +87 -0
- package/src/rpc/transports/WsTransportIsomorphic.ts +26 -0
- package/src/rpc/transports/compatibility/EIP1193Transport.ts +38 -0
- package/src/rpc/transports/compatibility/Web3Transport.ts +35 -0
- package/src/safe/$gnosis.ts +7 -0
- package/src/safe/GnosisSafeFactory.ts +104 -0
- package/src/safe/GnosisSafeHandler.ts +472 -0
- package/src/safe/GnosisSafeService.ts +86 -0
- package/src/safe/SafeTx.ts +93 -0
- package/src/safe/abi/GnosisSafe.json +979 -0
- package/src/safe/abi/v1_4_1/CreateCall.json +68 -0
- package/src/safe/abi/v1_4_1/MultiSend.json +20 -0
- package/src/safe/abi/v1_4_1/Safe.json +999 -0
- package/src/safe/abi/v1_4_1/SafeL2.json +1104 -0
- package/src/safe/abi/v1_4_1/SafeProxyFactory.json +139 -0
- package/src/safe/transport/FileServiceTransport.ts +109 -0
- package/src/safe/transport/ISafeServiceTransport.ts +20 -0
- package/src/safe/transport/InMemoryServiceTransport.ts +84 -0
- package/src/safe/transport/SafeServiceTransport.ts +148 -0
- package/src/safe/types/SafeServiceTypes.ts +326 -0
- package/src/services/TimelockService.ts +666 -0
- package/src/solidity/SlotsDump.ts +245 -0
- package/src/solidity/SlotsParser/Ast.ts +601 -0
- package/src/solidity/SlotsParser/MappingSettersResolver.ts +681 -0
- package/src/solidity/SlotsParser/SourceFile.ts +240 -0
- package/src/solidity/SlotsParser/models.ts +32 -0
- package/src/solidity/SlotsParser.ts +497 -0
- package/src/solidity/SlotsStorage.ts +209 -0
- package/src/solidity/SolidityParser.ts +108 -0
- package/src/solidity/SourceCodeProvider.ts +83 -0
- package/src/solidity/storage/Accessor.spec.ts +45 -0
- package/src/solidity/storage/Accessor.ts +136 -0
- package/src/solidity/storage/MappingKeysLoader.ts +112 -0
- package/src/solidity/storage/SlotDynamicArray.ts +46 -0
- package/src/solidity/storage/SlotFixedArray.ts +31 -0
- package/src/solidity/storage/SlotsStorageHandler.ts +18 -0
- package/src/solidity/storage/SlotsStorageTransport.ts +215 -0
- package/src/solidity/storage/handlers/SlotBytesHandler.ts +135 -0
- package/src/solidity/storage/handlers/SlotDynamicArrayHandler.ts +58 -0
- package/src/solidity/storage/handlers/SlotFixedArrayHandler.ts +58 -0
- package/src/solidity/storage/handlers/SlotMappingHandler.ts +75 -0
- package/src/solidity/storage/handlers/SlotStringHandler.ts +27 -0
- package/src/solidity/storage/handlers/SlotStructHandler.ts +47 -0
- package/src/solidity/storage/handlers/SlotValueConstantHandler.ts +30 -0
- package/src/solidity/storage/handlers/SlotValueHandler.ts +36 -0
- package/src/solidity/storage/handlers/SlotValueImmutableHandler.ts +49 -0
- package/src/solidity/utils/$str.ts +73 -0
- package/src/solidity/utils/$types.ts +61 -0
- package/src/tokens/TokenDataProvider.ts +284 -0
- package/src/tokens/TokenExchangeService.ts +129 -126
- package/src/tokens/TokenExchanges/AmmBase/AmmUtilts.ts +16 -16
- package/src/tokens/TokenExchanges/AmmBase/V2/AmmPairV2Service.ts +228 -208
- package/src/tokens/TokenExchanges/AmmV2ExchangeBase.ts +242 -242
- package/src/tokens/TokenExchanges/AmmV2PriceQuote.ts +433 -0
- package/src/tokens/TokenExchanges/OneInchExchange.ts +114 -111
- package/src/tokens/TokenExchanges/PancakeswapExchange.ts +25 -30
- package/src/tokens/TokenExchanges/SushiswapPolygonExchange.ts +33 -30
- package/src/tokens/TokenExchanges/UniswapV2Exchange.ts +28 -0
- package/src/tokens/TokenOracles/IOracle.ts +36 -0
- package/src/tokens/TokenOracles/TokenPriceStore.ts +130 -129
- package/src/tokens/TokenOracles/amm/AmmV1Oracle.ts +219 -0
- package/src/tokens/TokenOracles/amm/AmmV2Oracle.ts +57 -0
- package/src/tokens/TokenOracles/chainlink/ChainlinkFeedProvider.ts +133 -0
- package/src/tokens/TokenOracles/chainlink/ChainlinkOracle.ts +135 -0
- package/src/tokens/TokenOracles/coingecko/CoingeckoOracle.ts +121 -0
- package/src/tokens/TokenOracles/coingecko/CoingeckoTokenProvider.ts +51 -0
- package/src/tokens/TokenPriceService.ts +273 -276
- package/src/tokens/TokenPriceServiceProvider.ts +36 -36
- package/src/tokens/TokenProviders/ITokenProvider.ts +9 -9
- package/src/tokens/TokenProviders/TPChain.ts +53 -41
- package/src/tokens/TokenProviders/TPCoingecko.ts +177 -0
- package/src/tokens/TokenProviders/TPCoinmarketcap.ts +82 -82
- package/src/tokens/TokenProviders/TPConfig.ts +53 -0
- package/src/tokens/TokenProviders/TPExplorer.ts +41 -0
- package/src/tokens/TokenProviders/TPOneInch.ts +71 -71
- package/src/tokens/TokenProviders/TPSushiswap.ts +88 -96
- package/src/tokens/TokenProviders/TPUniswap.ts +87 -85
- package/src/tokens/TokenService.ts +142 -128
- package/src/tokens/TokenSwapService.ts +44 -47
- package/src/tokens/TokenTransferService.ts +233 -216
- package/src/tokens/TokensService.ts +42 -186
- package/src/tokens/TokensServiceBsc.ts +17 -17
- package/src/tokens/TokensServiceEth.ts +9 -9
- package/src/tokens/TokensServiceFactory.ts +15 -1
- package/src/tokens/TokensServicePolygon.ts +17 -17
- package/src/tokens/TokensServiceXDai.ts +26 -26
- package/src/tokens/defi/ISwapService.ts +12 -12
- package/src/tokens/defi/paraswap/Paraswap.ts +242 -244
- package/src/tokens/utils/TokenUtils.ts +63 -63
- package/src/txs/ITxBuilderOptions.ts +41 -0
- package/src/txs/TxDataBuilder.ts +308 -207
- package/src/txs/TxLogger.ts +120 -121
- package/src/txs/TxNonceManager.ts +86 -0
- package/src/txs/TxProvider.ts +70 -68
- package/src/txs/TxService.ts +20 -19
- package/src/txs/TxWriter.ts +342 -78
- package/src/txs/agents/Erc4337Agent.ts +32 -0
- package/src/txs/agents/SafeAgent.ts +20 -0
- package/src/txs/agents/TxWriterAccountAgents.ts +27 -0
- package/src/txs/conditional/GasWatcherLogger.ts +57 -57
- package/src/txs/conditional/GasWatcherService.ts +116 -117
- package/src/txs/conditional/GasWatcherStore.ts +41 -40
- package/src/txs/conditional/GasWatcherTx.ts +142 -143
- package/src/txs/receipt/ITxLogItem.ts +31 -25
- package/src/txs/receipt/TxLogParser.ts +56 -29
- package/src/txs/receipt/TxLogsTransfer.ts +61 -61
- package/src/txs/receipt/TxTopicInMemoryProvider.ts +45 -45
- package/src/txs/receipt/TxTopicProvider.ts +29 -29
- package/src/txs/sig-transports/SigFileTransport.ts +49 -0
- package/src/types/TAbi.ts +32 -0
- package/src/utils/$abiParser.ts +245 -179
- package/src/utils/$abiType.ts +277 -85
- package/src/utils/$abiUtils.ts +332 -38
- package/src/utils/$account.ts +48 -0
- package/src/utils/$address.ts +71 -37
- package/src/utils/$array.ts +113 -57
- package/src/utils/$base.ts +67 -0
- package/src/utils/$bigfloat.ts +562 -0
- package/src/utils/$bigint.ts +238 -127
- package/src/utils/$block.ts +20 -7
- package/src/utils/$bloom.ts +43 -0
- package/src/utils/$buffer.ts +196 -0
- package/src/utils/$cache.ts +7 -0
- package/src/utils/$class.ts +8 -8
- package/src/utils/$cli.ts +42 -0
- package/src/utils/$color.ts +213 -0
- package/src/utils/$config.ts +80 -17
- package/src/utils/$const.ts +1 -0
- package/src/utils/$contract.ts +309 -67
- package/src/utils/$crypto.ts +223 -0
- package/src/utils/$csv.ts +70 -54
- package/src/utils/$date.ts +697 -473
- package/src/utils/$error.ts +16 -0
- package/src/utils/$fn.ts +134 -134
- package/src/utils/$gas.ts +26 -0
- package/src/utils/$hex.ts +133 -0
- package/src/utils/$http.ts +219 -0
- package/src/utils/$is.ts +73 -37
- package/src/utils/$logger.ts +216 -10
- package/src/utils/$machine.ts +85 -0
- package/src/utils/$number.ts +135 -89
- package/src/utils/$object.ts +95 -95
- package/src/utils/$path.ts +76 -32
- package/src/utils/$perf.ts +20 -0
- package/src/utils/$platform.ts +5 -0
- package/src/utils/$promise.ts +154 -7
- package/src/utils/$regexp.ts +16 -0
- package/src/utils/$require.ts +212 -118
- package/src/utils/$secret.ts +27 -0
- package/src/utils/$semver.ts +27 -0
- package/src/utils/$sig.ts +722 -0
- package/src/utils/$sign.ts +136 -36
- package/src/utils/$signRaw.ts +50 -0
- package/src/utils/$signRawNative.ts +105 -0
- package/src/utils/$signSerializer.ts +27 -21
- package/src/utils/$txData.ts +23 -0
- package/src/utils/$wallet.ts +3 -10
- package/src/utils/types.ts +58 -29
- package/src/wallets/Wallet.ts +33 -33
- package/src/wallets/WalletBsc.ts +13 -13
- package/src/wallets/WalletService.ts +43 -43
- package/test/Batch.spec.ts +89 -0
- package/test/BlockChainExplorer.spec.ts +24 -0
- package/test/ChainAccount.spec.ts +52 -9
- package/test/Fixtures.ts +36 -0
- package/test/Web3Client.spec.ts +81 -0
- package/test/browser/block.spec.ts +9 -0
- package/test/client/block.spec.ts +19 -0
- package/test/config.js +68 -0
- package/test/config.spec.ts +31 -0
- package/test/config.yml +4 -0
- package/test/contracts/ContractCreationResolver.spec.ts +26 -0
- package/test/ecrecover.spec.ts +63 -0
- package/test/erc2612/PermitToken.sol +10 -0
- package/test/erc4337/erc4337.spec.ts +407 -0
- package/test/fixtures/DaiTokenContract.ts +13 -13
- package/test/fixtures/abi/deployments.json +105 -0
- package/test/fixtures/abi/encode.json +23798 -0
- package/test/fixtures/abi/encodePacked.json +34586 -0
- package/test/fixtures/artifacts/AnyERC20/AnyERC20.json +340 -0
- package/test/fixtures/artifacts/AnyERC20/AnyERC20.sol +15 -0
- package/test/fixtures/contracts/AlphaKlimaSimple.sol +36 -0
- package/test/fixtures/contracts/Counter.sol +25 -0
- package/test/fixtures/contracts/Ecrecover.sol +33 -0
- package/test/fixtures/contracts/Foo.sol +49 -0
- package/test/fixtures/contracts/FooErc20.sol +7 -0
- package/test/fixtures/contracts/FooNestedModel.sol +6 -0
- package/test/fixtures/contracts/FreeToken.sol +263 -0
- package/test/fixtures/deployments/DeploymentsFoo.sol +14 -0
- package/test/fixtures/deployments/DeploymentsFooV2.sol +11 -0
- package/test/fixtures/deployments/DeploymentsFooV3.sol +12 -0
- package/test/fixtures/erc4337/core/BaseAccount.sol +107 -0
- package/test/fixtures/erc4337/core/BasePaymaster.sol +112 -0
- package/test/fixtures/erc4337/core/EntryPoint.sol +631 -0
- package/test/fixtures/erc4337/core/Helpers.sol +81 -0
- package/test/fixtures/erc4337/core/NonceManager.sol +40 -0
- package/test/fixtures/erc4337/core/SenderCreator.sol +28 -0
- package/test/fixtures/erc4337/core/StakeManager.sol +124 -0
- package/test/fixtures/erc4337/interfaces/IAccount.sol +34 -0
- package/test/fixtures/erc4337/interfaces/IAggregator.sol +36 -0
- package/test/fixtures/erc4337/interfaces/IEntryPoint.sol +205 -0
- package/test/fixtures/erc4337/interfaces/INonceManager.sol +27 -0
- package/test/fixtures/erc4337/interfaces/IPaymaster.sol +51 -0
- package/test/fixtures/erc4337/interfaces/IStakeManager.sol +104 -0
- package/test/fixtures/erc4337/interfaces/UserOperation.sol +91 -0
- package/test/fixtures/erc4337/samples/DepositPaymaster.sol +167 -0
- package/test/fixtures/erc4337/samples/IOracle.sol +11 -0
- package/test/fixtures/erc4337/samples/SimpleAccount.sol +138 -0
- package/test/fixtures/erc4337/samples/SimpleAccountFactory.sol +52 -0
- package/test/fixtures/erc4337/samples/TokenPaymaster.sol +113 -0
- package/test/fixtures/erc4337/samples/VerifyingPaymaster.sol +104 -0
- package/test/fixtures/erc4337/samples/bls/BLSAccount.sol +64 -0
- package/test/fixtures/erc4337/samples/bls/BLSAccountFactory.sol +61 -0
- package/test/fixtures/erc4337/samples/bls/BLSHelper.sol +232 -0
- package/test/fixtures/erc4337/samples/bls/BLSSignatureAggregator.sol +164 -0
- package/test/fixtures/erc4337/samples/bls/IBLSAccount.sol +16 -0
- package/test/fixtures/erc4337/samples/bls/lib/BLSOpen.sol +64 -0
- package/test/fixtures/erc4337/samples/bls/lib/hubble-contracts/contracts/libs/BLS.sol +440 -0
- package/test/fixtures/erc4337/samples/bls/lib/hubble-contracts/contracts/libs/BNPairingPrecompileCostEstimator.sol +108 -0
- package/test/fixtures/erc4337/samples/bls/lib/hubble-contracts/contracts/libs/ModExp.sol +652 -0
- package/test/fixtures/erc4337/samples/callback/TokenCallbackHandler.sol +61 -0
- package/test/fixtures/erc4337/utils/Exec.sol +70 -0
- package/test/fixtures/explorer/0xfbD2aa7efA2B46Ce3c58D7ab0D92C176c71499C0.html +2788 -0
- package/test/fixtures/gnosis/GnosisSafe.sol +422 -0
- package/test/fixtures/gnosis/GnosisSafeL2.sol +86 -0
- package/test/fixtures/gnosis/accessors/SimulateTxAccessor.sol +52 -0
- package/test/fixtures/gnosis/base/Executor.sol +27 -0
- package/test/fixtures/gnosis/base/FallbackManager.sol +53 -0
- package/test/fixtures/gnosis/base/GuardManager.sol +62 -0
- package/test/fixtures/gnosis/base/ModuleManager.sol +133 -0
- package/test/fixtures/gnosis/base/OwnerManager.sol +149 -0
- package/test/fixtures/gnosis/common/Enum.sol +8 -0
- package/test/fixtures/gnosis/common/EtherPaymentFallback.sol +13 -0
- package/test/fixtures/gnosis/common/SecuredTokenTransfer.sol +35 -0
- package/test/fixtures/gnosis/common/SelfAuthorized.sol +16 -0
- package/test/fixtures/gnosis/common/SignatureDecoder.sol +36 -0
- package/test/fixtures/gnosis/common/Singleton.sol +11 -0
- package/test/fixtures/gnosis/common/StorageAccessible.sol +47 -0
- package/test/fixtures/gnosis/external/GnosisSafeMath.sol +54 -0
- package/test/fixtures/gnosis/interfaces/ERC1155TokenReceiver.sol +49 -0
- package/test/fixtures/gnosis/interfaces/ERC721TokenReceiver.sol +24 -0
- package/test/fixtures/gnosis/interfaces/ERC777TokensRecipient.sol +13 -0
- package/test/fixtures/gnosis/interfaces/IERC165.sol +15 -0
- package/test/fixtures/gnosis/interfaces/ISignatureValidator.sol +20 -0
- package/test/fixtures/gnosis/interfaces/ViewStorageAccessible.sol +11 -0
- package/test/fixtures/gnosis/libraries/CreateCall.sol +30 -0
- package/test/fixtures/gnosis/libraries/GnosisSafeStorage.sol +21 -0
- package/test/fixtures/gnosis/libraries/MultiSend.sol +66 -0
- package/test/fixtures/gnosis/libraries/MultiSendCallOnly.sol +61 -0
- package/test/fixtures/gnosis/libraries/SignMessageLib.sol +34 -0
- package/test/fixtures/gnosis/proxies/GnosisSafeProxy.sol +44 -0
- package/test/fixtures/gnosis/proxies/GnosisSafeProxyFactory.sol +107 -0
- package/test/fixtures/gnosis/proxies/IProxyCreationCallback.sol +12 -0
- package/test/fixtures/mapping-setters/GTC.sol +611 -0
- package/test/fixtures/mapping-setters/UniswapV3Staker/Address.sol +189 -0
- package/test/fixtures/mapping-setters/UniswapV3Staker/FullMath.sol +124 -0
- package/test/fixtures/mapping-setters/UniswapV3Staker/IERC165.sol +24 -0
- package/test/fixtures/mapping-setters/UniswapV3Staker/IERC20.sol +77 -0
- package/test/fixtures/mapping-setters/UniswapV3Staker/IERC20Minimal.sol +52 -0
- package/test/fixtures/mapping-setters/UniswapV3Staker/IERC721.sol +129 -0
- package/test/fixtures/mapping-setters/UniswapV3Staker/IERC721Enumerable.sol +29 -0
- package/test/fixtures/mapping-setters/UniswapV3Staker/IERC721Metadata.sol +27 -0
- package/test/fixtures/mapping-setters/UniswapV3Staker/IERC721Permit.sol +32 -0
- package/test/fixtures/mapping-setters/UniswapV3Staker/IERC721Receiver.sol +21 -0
- package/test/fixtures/mapping-setters/UniswapV3Staker/IMulticall.sol +13 -0
- package/test/fixtures/mapping-setters/UniswapV3Staker/INonfungiblePositionManager.sol +180 -0
- package/test/fixtures/mapping-setters/UniswapV3Staker/IPeripheryImmutableState.sol +12 -0
- package/test/fixtures/mapping-setters/UniswapV3Staker/IPeripheryPayments.sol +28 -0
- package/test/fixtures/mapping-setters/UniswapV3Staker/IPoolInitializer.sol +22 -0
- package/test/fixtures/mapping-setters/UniswapV3Staker/IUniswapV3Factory.sol +78 -0
- package/test/fixtures/mapping-setters/UniswapV3Staker/IUniswapV3Pool.sol +24 -0
- package/test/fixtures/mapping-setters/UniswapV3Staker/IUniswapV3PoolActions.sol +103 -0
- package/test/fixtures/mapping-setters/UniswapV3Staker/IUniswapV3PoolDerivedState.sol +40 -0
- package/test/fixtures/mapping-setters/UniswapV3Staker/IUniswapV3PoolEvents.sol +121 -0
- package/test/fixtures/mapping-setters/UniswapV3Staker/IUniswapV3PoolImmutables.sol +35 -0
- package/test/fixtures/mapping-setters/UniswapV3Staker/IUniswapV3PoolOwnerActions.sol +23 -0
- package/test/fixtures/mapping-setters/UniswapV3Staker/IUniswapV3PoolState.sol +116 -0
- package/test/fixtures/mapping-setters/UniswapV3Staker/IUniswapV3Staker.sol +183 -0
- package/test/fixtures/mapping-setters/UniswapV3Staker/IncentiveId.sol +14 -0
- package/test/fixtures/mapping-setters/UniswapV3Staker/Math.sol +31 -0
- package/test/fixtures/mapping-setters/UniswapV3Staker/Multicall.sol +28 -0
- package/test/fixtures/mapping-setters/UniswapV3Staker/NFTPositionInfo.sol +47 -0
- package/test/fixtures/mapping-setters/UniswapV3Staker/PoolAddress.sol +48 -0
- package/test/fixtures/mapping-setters/UniswapV3Staker/RewardMath.sol +42 -0
- package/test/fixtures/mapping-setters/UniswapV3Staker/TransferHelper.sol +60 -0
- package/test/fixtures/mapping-setters/UniswapV3Staker/TransferHelperExtended.sol +39 -0
- package/test/fixtures/mapping-setters/UniswapV3Staker/UniswapV3Staker.sol +350 -0
- package/test/fixtures/openzeppelin/Proxy.sol +11 -0
- package/test/fixtures/openzeppelin/ProxyAdmin.sol +11 -0
- package/test/fixtures/openzeppelin/beacon/BeaconProxy.sol +11 -0
- package/test/fixtures/openzeppelin/beacon/UpgradeableBeacon.sol +11 -0
- package/test/fixtures/parser/AlphaKlima.sol +36 -0
- package/test/fixtures/parser/CToken/CErc20.sol +228 -0
- package/test/fixtures/parser/CToken/CErc20Delegate.sol +44 -0
- package/test/fixtures/parser/CToken/CErc20Delegator.sol +476 -0
- package/test/fixtures/parser/CToken/CToken.sol +1156 -0
- package/test/fixtures/parser/CToken/CTokenInterfaces.sol +293 -0
- package/test/fixtures/parser/CToken/ComptrollerInterface.sol +72 -0
- package/test/fixtures/parser/CToken/EIP20Interface.sol +63 -0
- package/test/fixtures/parser/CToken/EIP20NonStandardInterface.sol +71 -0
- package/test/fixtures/parser/CToken/ErrorReporter.sol +127 -0
- package/test/fixtures/parser/CToken/ExponentialNoError.sol +171 -0
- package/test/fixtures/parser/CToken/InterestRateModel.sol +30 -0
- package/test/fixtures/parser/DAI.sol +194 -0
- package/test/fixtures/parser/PriceOracle.sol +1964 -0
- package/test/fixtures/parser/SAFE/Context.sol +24 -0
- package/test/fixtures/parser/SAFE/ERC20.sol +383 -0
- package/test/fixtures/parser/SAFE/IERC20.sol +82 -0
- package/test/fixtures/parser/SAFE/IERC20Metadata.sol +28 -0
- package/test/fixtures/parser/SAFE/Ownable.sol +76 -0
- package/test/fixtures/parser/SAFE/Pausable.sol +91 -0
- package/test/fixtures/parser/SAFE/SafeToken.sol +48 -0
- package/test/fixtures/parser/SAFE/TokenRescuer.sol +29 -0
- package/test/fixtures/parser/SomeERC20/Context.sol +24 -0
- package/test/fixtures/parser/SomeERC20/ERC20.sol +389 -0
- package/test/fixtures/parser/SomeERC20/IERC20.sol +82 -0
- package/test/fixtures/parser/SomeERC20/IERC20Metadata.sol +28 -0
- package/test/fixtures/parser/SomeERC20/Ownable.sol +83 -0
- package/test/fixtures/parser/SomeERC20/SomeToken.sol +210 -0
- package/test/fixtures/parser/TetherToken.sol +447 -0
- package/test/fixtures/parser/USDC.sol +2231 -0
- package/test/fixtures/parser/v04/ENJToken.sol +493 -0
- package/test/fixtures/parser/v04/MultiSigWallet.sol +371 -0
- package/test/fixtures/receipts/swap.json +93 -93
- package/test/fixtures/scan/WETH.sol +1533 -0
- package/test/fixtures/slots/FooStorage.sol +8 -0
- package/test/fixtures/slots/FooStorageBase.sol +6 -0
- package/test/fixtures/slots/Vault.sol +85 -0
- package/test/flashbots/flashbots.spec.ts +79 -0
- package/test/generate/class.spec.ts +293 -5
- package/test/generate/evm.spec.ts +71 -0
- package/test/generate/gen.spec.ts +69 -0
- package/test/generate/openzeppelin.spec.ts +22 -0
- package/test/generate/slotreader.spec.ts +34 -0
- package/test/hardhat/TestNode.ts +76 -61
- package/test/hardhat/compile.spec.ts +22 -0
- package/test/hardhat/deploy.spec.ts +579 -0
- package/test/hardhat/deployments/deployments.spec.ts +233 -0
- package/test/hardhat/deployments/proxy-layout.spec.ts +296 -0
- package/test/hardhat/forked.spec.ts +56 -0
- package/test/hardhat/gas.spec.ts +40 -0
- package/test/hardhat/permit.ts +33 -0
- package/test/hardhat/revert.spec.ts +30 -0
- package/test/indexer/BlocksWalker.spec.ts +51 -0
- package/test/indexer/EventsIndexer.spec.ts +170 -0
- package/test/json/JsonStore.spec.ts +170 -0
- package/test/node/block.spec.ts +11 -0
- package/test/ns.spec.ts +67 -30
- package/test/perf/calldata.spec.ts +93 -0
- package/test/receipt.spec.ts +52 -27
- package/test/rpc/rpc.spec.ts +353 -0
- package/test/rpc/rpcUtil.spec.ts +31 -0
- package/test/safe/safe.spec.ts +352 -0
- package/test/services/timelock.spec.ts +97 -0
- package/test/solidity/AbiExtractor.spec.ts +468 -0
- package/test/solidity/MappingSettersResolver.spec.ts +516 -0
- package/test/solidity/SlotsDump.spec.ts +154 -0
- package/test/solidity/SlotsParser.spec.ts +536 -0
- package/test/solidity/SlotsReader.spec.ts +388 -0
- package/test/solidity/Storage.spec.ts +404 -0
- package/test/structs/PackedRanges.spec.ts +56 -0
- package/test/subscriptions.spec.ts +127 -0
- package/test/token.spec.ts +17 -0
- package/test/tokens/oracles.spec.ts +51 -0
- package/test/utils/abi-parser-args.spec.ts +143 -0
- package/test/utils/abi-parser.spec.ts +141 -117
- package/test/utils/abi-types.spec.ts +31 -0
- package/test/utils/abi-utils.spec.ts +23 -0
- package/test/utils/abi.spec.ts +178 -0
- package/test/utils/address.spec.ts +66 -0
- package/test/utils/bigfloat/div.spec.ts +1919 -0
- package/test/utils/bigfloat/mod.spec.ts +1745 -0
- package/test/utils/bigfloat/mul.spec.ts +2085 -0
- package/test/utils/bigfloat/round.spec.ts +174 -0
- package/test/utils/bigfloat/sqrt.spec.ts +420 -0
- package/test/utils/bigint.spec.ts +39 -40
- package/test/utils/bytecode.spec.ts +107 -0
- package/test/utils/crypto.spec.ts +37 -0
- package/test/utils/date.spec.ts +9 -8
- package/test/utils/fn.spec.ts +39 -39
- package/test/utils/logbloom.spec.ts +17 -0
- package/test/utils/number.spec.ts +52 -41
- package/test/utils/rlp.spec.ts +142 -0
- package/test/utils/sign.spec.ts +327 -22
- package/tools/build-dts.ts +111 -0
- package/tools/copy-dts.ts +48 -0
- package/tsconfig-build.json +24 -24
- package/tsconfig-src.json +44 -36
- package/tsconfig.esm.json +12 -0
- package/tsconfig.json +34 -27
- package/tsconfig.umd.json +28 -0
- package/typings/globals/axios/index.d.ts +6 -6
- package/typings.json +6 -6
- package/contracts/abi/erc20.abi.json +0 -222
- package/contracts/gen/amm/AmmFactoryV2ContractBase.ts +0 -66
- package/contracts/gen/amm/AmmMasterChefV2ContractBase.ts +0 -158
- package/contracts/gen/amm/AmmPairContractV2Base.ts +0 -158
- package/contracts/gen/amm/AmmPairContractV3Base.ts +0 -125
- package/contracts/gen/amm/AmmRouterV2ContractBase.ts +0 -124
- package/contracts/gen/amm/AmmVaultV2ContractBase.ts +0 -214
- package/contracts/gen/base/ERC20Base.ts +0 -90
- package/contracts/gen/bsc/OneInchRouterV3Base.ts +0 -57
- package/contracts/gen/eth/WETHBase/WETHBase.sol +0 -756
- package/contracts/gen/eth/WETHBase.ts +0 -136
- package/contracts/gen/polygon/ERC20PolygonBase.ts +0 -305
- package/contracts/gen/polygon/WormholeBridgeContractBase/Address.sol +0 -216
- package/contracts/gen/polygon/WormholeBridgeContractBase/BeaconProxy.sol +0 -61
- package/contracts/gen/polygon/WormholeBridgeContractBase/Bridge.sol +0 -437
- package/contracts/gen/polygon/WormholeBridgeContractBase/BridgeGetters.sol +0 -70
- package/contracts/gen/polygon/WormholeBridgeContractBase/BridgeGovernance.sol +0 -142
- package/contracts/gen/polygon/WormholeBridgeContractBase/BridgeImplementation.sol +0 -34
- package/contracts/gen/polygon/WormholeBridgeContractBase/BridgeSetters.sol +0 -57
- package/contracts/gen/polygon/WormholeBridgeContractBase/BridgeState.sol +0 -52
- package/contracts/gen/polygon/WormholeBridgeContractBase/BridgeStructs.sol +0 -66
- package/contracts/gen/polygon/WormholeBridgeContractBase/BytesLib.sol +0 -510
- package/contracts/gen/polygon/WormholeBridgeContractBase/Context.sol +0 -23
- package/contracts/gen/polygon/WormholeBridgeContractBase/ERC1967Proxy.sol +0 -32
- package/contracts/gen/polygon/WormholeBridgeContractBase/ERC1967Upgrade.sol +0 -193
- package/contracts/gen/polygon/WormholeBridgeContractBase/IBeacon.sol +0 -15
- package/contracts/gen/polygon/WormholeBridgeContractBase/IERC20.sol +0 -81
- package/contracts/gen/polygon/WormholeBridgeContractBase/IWormhole.sol +0 -42
- package/contracts/gen/polygon/WormholeBridgeContractBase/Ownable.sol +0 -71
- package/contracts/gen/polygon/WormholeBridgeContractBase/Proxy.sol +0 -85
- package/contracts/gen/polygon/WormholeBridgeContractBase/SafeERC20.sol +0 -98
- package/contracts/gen/polygon/WormholeBridgeContractBase/StorageSlot.sol +0 -83
- package/contracts/gen/polygon/WormholeBridgeContractBase/Structs.sol +0 -40
- package/contracts/gen/polygon/WormholeBridgeContractBase/Token.sol +0 -12
- package/contracts/gen/polygon/WormholeBridgeContractBase/TokenBridge.sol +0 -15
- package/contracts/gen/polygon/WormholeBridgeContractBase/TokenImplementation.sol +0 -177
- package/contracts/gen/polygon/WormholeBridgeContractBase/TokenState.sol +0 -31
- package/contracts/gen/polygon/WormholeBridgeContractBase.ts +0 -231
- package/contracts/gen/xdai/WXDaiTokenContractBase.ts +0 -136
- package/dist/contracts/gen/amm/AmmFactoryV2ContractBase.js +0 -53
- package/dist/contracts/gen/amm/AmmMasterChefV2ContractBase.js +0 -122
- package/dist/contracts/gen/amm/AmmPairContractV2Base.js +0 -122
- package/dist/contracts/gen/amm/AmmPairContractV3Base.js +0 -98
- package/dist/contracts/gen/amm/AmmRouterV2ContractBase.js +0 -95
- package/dist/contracts/gen/amm/AmmVaultV2ContractBase.js +0 -164
- package/dist/contracts/gen/base/ERC20Base.js +0 -64
- package/dist/contracts/gen/bsc/OneInchRouterV3Base.js +0 -47
- package/dist/contracts/gen/eth/WETHBase.js +0 -96
- package/dist/contracts/gen/polygon/ERC20PolygonBase.js +0 -233
- package/dist/contracts/gen/polygon/WormholeBridgeContractBase.js +0 -172
- package/dist/contracts/gen/xdai/WXDaiTokenContractBase.js +0 -96
- package/dist/src/BlockchainExplorer/BlockChainExplorerFactory.js +0 -227
- package/dist/src/BlockchainExplorer/BlockChainExplorerProvider.js +0 -32
- package/dist/src/BlockchainExplorer/BlockNumberCache.js +0 -33
- package/dist/src/BlockchainExplorer/Bscscan.js +0 -27
- package/dist/src/BlockchainExplorer/Etherscan.js +0 -27
- package/dist/src/BlockchainExplorer/IAbiProvider.js +0 -2
- package/dist/src/BlockchainExplorer/IBlockChainExplorer.js +0 -2
- package/dist/src/BlockchainExplorer/Polyscan.js +0 -27
- package/dist/src/ChainAccounts.js +0 -69
- package/dist/src/ChainAccountsService.js +0 -75
- package/dist/src/Config.js +0 -7
- package/dist/src/blocks/BlockDateResolver.js +0 -125
- package/dist/src/bridges/BridgeFactory.js +0 -19
- package/dist/src/bridges/hop/HopAddresses.js +0 -520
- package/dist/src/bridges/hop/HopBridge.js +0 -327
- package/dist/src/bridges/hop/contracts/gen.act.js +0 -43
- package/dist/src/bridges/hop/contracts/polygon/Dai_l2AmmWrapperContract.js +0 -52
- package/dist/src/bridges/hop/contracts/polygon/Dai_l2BridgeContract.js +0 -319
- package/dist/src/bridges/hop/contracts/polygon/Dai_l2SaddleSwapContract.js +0 -178
- package/dist/src/bridges/hop/contracts/polygon/Eth_l2AmmWrapperContract.js +0 -52
- package/dist/src/bridges/hop/contracts/polygon/Eth_l2BridgeContract.js +0 -319
- package/dist/src/bridges/hop/contracts/polygon/Eth_l2SaddleSwapContract.js +0 -178
- package/dist/src/bridges/hop/contracts/polygon/Matic_l2AmmWrapperContract.js +0 -52
- package/dist/src/bridges/hop/contracts/polygon/Matic_l2BridgeContract.js +0 -319
- package/dist/src/bridges/hop/contracts/polygon/Matic_l2SaddleSwapContract.js +0 -178
- package/dist/src/bridges/hop/contracts/polygon/Usdc_l2AmmWrapperContract.js +0 -52
- package/dist/src/bridges/hop/contracts/polygon/Usdc_l2BridgeContract.js +0 -319
- package/dist/src/bridges/hop/contracts/polygon/Usdc_l2SaddleSwapContract.js +0 -178
- package/dist/src/bridges/hop/contracts/polygon/Usdt_l2AmmWrapperContract.js +0 -52
- package/dist/src/bridges/hop/contracts/polygon/Usdt_l2BridgeContract.js +0 -319
- package/dist/src/bridges/hop/contracts/polygon/Usdt_l2SaddleSwapContract.js +0 -178
- package/dist/src/bridges/hop/contracts/polygon/Wbtc_l2AmmWrapperContract.js +0 -52
- package/dist/src/bridges/hop/contracts/polygon/Wbtc_l2BridgeContract.js +0 -319
- package/dist/src/bridges/hop/contracts/polygon/Wbtc_l2SaddleSwapContract.js +0 -178
- package/dist/src/bridges/models/IBridge.js +0 -2
- package/dist/src/bridges/wormhole/contracts/WormholeBridgeContract.js +0 -15
- package/dist/src/chains/PlatformFactory.js +0 -42
- package/dist/src/chains/arbitrum/ArbTokenProvider.js +0 -40
- package/dist/src/chains/arbitrum/ArbWeb3Client.js +0 -39
- package/dist/src/chains/arbitrum/Arbiscan.js +0 -27
- package/dist/src/chains/boba/BobaWeb3Client.js +0 -47
- package/dist/src/chains/boba/Bobascan.js +0 -28
- package/dist/src/chains/xdai/XDaiWeb3Client.js +0 -87
- package/dist/src/chains/xdai/XDaiscan.js +0 -27
- package/dist/src/chains/xdai/tokens/WXDaiTokenContract.js +0 -15
- package/dist/src/clients/BscWeb3Client.js +0 -38
- package/dist/src/clients/ClientEventsStream.js +0 -34
- package/dist/src/clients/ClientPool.js +0 -560
- package/dist/src/clients/ClientPoolStats.js +0 -52
- package/dist/src/clients/EthWeb3Client.js +0 -35
- package/dist/src/clients/HardhatWeb3Client.js +0 -56
- package/dist/src/clients/PolyWeb3Client.js +0 -77
- package/dist/src/clients/Web3Client.js +0 -186
- package/dist/src/clients/Web3ClientFactory.js +0 -32
- package/dist/src/clients/interfaces/IWeb3Client.js +0 -2
- package/dist/src/clients/interfaces/IWeb3ClientStatus.js +0 -2
- package/dist/src/clients/interfaces/IWeb3EndpointOptions.js +0 -2
- package/dist/src/clients/model/ClientStatus.js +0 -9
- package/dist/src/clients/model/PromiEventWrap.js +0 -52
- package/dist/src/clients/model/SubscriptionWrap.js +0 -42
- package/dist/src/clients/utils/ClientEndpoints.js +0 -27
- package/dist/src/clients/utils/ClientErrorUtil.js +0 -30
- package/dist/src/clients/utils/TxFactory.js +0 -14
- package/dist/src/contracts/BscContract.js +0 -30
- package/dist/src/contracts/Contract.js +0 -90
- package/dist/src/contracts/ContractBase.js +0 -139
- package/dist/src/contracts/ContractFactory.js +0 -17
- package/dist/src/contracts/ContractProvider.js +0 -40
- package/dist/src/contracts/ContractReader.js +0 -76
- package/dist/src/contracts/ContractStream.js +0 -20
- package/dist/src/contracts/ContractWriter.js +0 -62
- package/dist/src/contracts/EthContract.js +0 -31
- package/dist/src/contracts/TxContract.js +0 -37
- package/dist/src/contracts/common/ERC20.js +0 -14
- package/dist/src/contracts/common/ERC20Polygon.js +0 -14
- package/dist/src/contracts/common/PoolPair.js +0 -23
- package/dist/src/contracts/utils/AbiDeserializer.js +0 -89
- package/dist/src/contracts/utils/ConvertUtils.js +0 -21
- package/dist/src/contracts/utils/InputDataUtils.js +0 -87
- package/dist/src/contracts/utils/TypeUtils.js +0 -24
- package/dist/src/defi/OneInch/OneInchRouter.js +0 -14
- package/dist/src/env/BigIntSerializer.js +0 -19
- package/dist/src/gen/Ast.js +0 -12
- package/dist/src/gen/ContractTemplate.js +0 -27
- package/dist/src/gen/Generator.js +0 -180
- package/dist/src/gen/GeneratorFromAbi.js +0 -361
- package/dist/src/handlers/TokenHandler.js +0 -69
- package/dist/src/indexer/BlocksTxIndexer.js +0 -52
- package/dist/src/indexer/PendingTxIndexer.js +0 -96
- package/dist/src/indexer/handlers/BlocksWalker.js +0 -306
- package/dist/src/indexer/handlers/TxQueueLoader.js +0 -117
- package/dist/src/json/JsonArrayStore.js +0 -296
- package/dist/src/json/JsonObjectStore.js +0 -214
- package/dist/src/json/JsonStore.spec.js +0 -83
- package/dist/src/loggers/ILogger.js +0 -2
- package/dist/src/loggers/LoggerService.js +0 -34
- package/dist/src/loggers/TxLoggerService.js +0 -122
- package/dist/src/models/IContractDetails.js +0 -2
- package/dist/src/models/IToken.js +0 -2
- package/dist/src/models/ITokenGlob.js +0 -6
- package/dist/src/models/ITransactionDetails.js +0 -2
- package/dist/src/models/TAddress.js +0 -2
- package/dist/src/models/TBufferLike.js +0 -2
- package/dist/src/models/THex.js +0 -2
- package/dist/src/models/TPlatform.js +0 -2
- package/dist/src/models/TResult.js +0 -2
- package/dist/src/ns/NameService.js +0 -19
- package/dist/src/ns/providers/EnsProvider.js +0 -41
- package/dist/src/ns/providers/INsProvider.js +0 -2
- package/dist/src/ns/providers/UDProvider.js +0 -39
- package/dist/src/ns/utils/$ns.js +0 -17
- package/dist/src/structs/PackedRanges.js +0 -186
- package/dist/src/structs/PackedRanges.spec.js +0 -30
- package/dist/src/tokens/TokenExchangeService.js +0 -110
- package/dist/src/tokens/TokenExchanges/AmmBase/AmmUtilts.js +0 -17
- package/dist/src/tokens/TokenExchanges/AmmBase/V2/AmmFactoryV2Contract.js +0 -15
- package/dist/src/tokens/TokenExchanges/AmmBase/V2/AmmMasterChefV2Contract.js +0 -15
- package/dist/src/tokens/TokenExchanges/AmmBase/V2/AmmPairV2Contract.js +0 -16
- package/dist/src/tokens/TokenExchanges/AmmBase/V2/AmmPairV2Service.js +0 -144
- package/dist/src/tokens/TokenExchanges/AmmBase/V2/AmmRouterV2Contract.js +0 -15
- package/dist/src/tokens/TokenExchanges/AmmBase/V2/AmmVaultV2Contract.js +0 -15
- package/dist/src/tokens/TokenExchanges/AmmBase/V3/AmmPairV3Contract.js +0 -22
- package/dist/src/tokens/TokenExchanges/AmmV2ExchangeBase.js +0 -194
- package/dist/src/tokens/TokenExchanges/OneInchExchange.js +0 -92
- package/dist/src/tokens/TokenExchanges/PancakeswapExchange.js +0 -28
- package/dist/src/tokens/TokenExchanges/SushiswapPolygonExchange.js +0 -28
- package/dist/src/tokens/TokenExchanges/UniswapExchange.js +0 -28
- package/dist/src/tokens/TokenOracles/AmmPriceV2Oracle.js +0 -319
- package/dist/src/tokens/TokenOracles/TokenPriceStore.js +0 -108
- package/dist/src/tokens/TokenPriceService.js +0 -196
- package/dist/src/tokens/TokenPriceServiceProvider.js +0 -31
- package/dist/src/tokens/TokenProviders/ATokenProvider.js +0 -38
- package/dist/src/tokens/TokenProviders/ITokenProvider.js +0 -2
- package/dist/src/tokens/TokenProviders/TPChain.js +0 -35
- package/dist/src/tokens/TokenProviders/TPCoinmarketcap.js +0 -63
- package/dist/src/tokens/TokenProviders/TPOneInch.js +0 -65
- package/dist/src/tokens/TokenProviders/TPSushiswap.js +0 -89
- package/dist/src/tokens/TokenProviders/TPUniswap.js +0 -84
- package/dist/src/tokens/TokenService.js +0 -115
- package/dist/src/tokens/TokenSwapService.js +0 -37
- package/dist/src/tokens/TokenTransferService.js +0 -189
- package/dist/src/tokens/TokensService.js +0 -236
- package/dist/src/tokens/TokensServiceBsc.js +0 -18
- package/dist/src/tokens/TokensServiceEth.js +0 -15
- package/dist/src/tokens/TokensServiceFactory.js +0 -29
- package/dist/src/tokens/TokensServicePolygon.js +0 -18
- package/dist/src/tokens/TokensServiceXDai.js +0 -24
- package/dist/src/tokens/defi/ISwapService.js +0 -2
- package/dist/src/tokens/defi/paraswap/Paraswap.js +0 -135
- package/dist/src/tokens/erc20/eth/WETH.js +0 -14
- package/dist/src/tokens/utils/TokenUtils.js +0 -66
- package/dist/src/txs/ITxConfig.js +0 -2
- package/dist/src/txs/TxDataBuilder.js +0 -159
- package/dist/src/txs/TxLogger.js +0 -119
- package/dist/src/txs/TxProvider.js +0 -73
- package/dist/src/txs/TxService.js +0 -19
- package/dist/src/txs/TxWriter.js +0 -287
- package/dist/src/txs/conditional/GasWatcherLogger.js +0 -61
- package/dist/src/txs/conditional/GasWatcherService.js +0 -103
- package/dist/src/txs/conditional/GasWatcherStore.js +0 -25
- package/dist/src/txs/conditional/GasWatcherTx.js +0 -126
- package/dist/src/txs/receipt/ITxLogItem.js +0 -2
- package/dist/src/txs/receipt/TxLogParser.js +0 -27
- package/dist/src/txs/receipt/TxLogsTransfer.js +0 -50
- package/dist/src/txs/receipt/TxTopicInMemoryProvider.js +0 -41
- package/dist/src/txs/receipt/TxTopicProvider.js +0 -25
- package/dist/src/utils/$abiParser.js +0 -159
- package/dist/src/utils/$abiType.js +0 -77
- package/dist/src/utils/$abiUtils.js +0 -43
- package/dist/src/utils/$address.js +0 -41
- package/dist/src/utils/$array.js +0 -60
- package/dist/src/utils/$bigint.js +0 -130
- package/dist/src/utils/$block.js +0 -10
- package/dist/src/utils/$class.js +0 -13
- package/dist/src/utils/$config.js +0 -18
- package/dist/src/utils/$contract.js +0 -67
- package/dist/src/utils/$csv.js +0 -79
- package/dist/src/utils/$date.js +0 -496
- package/dist/src/utils/$fn.js +0 -117
- package/dist/src/utils/$is.js +0 -40
- package/dist/src/utils/$logger.js +0 -15
- package/dist/src/utils/$number.js +0 -95
- package/dist/src/utils/$object.js +0 -82
- package/dist/src/utils/$path.js +0 -33
- package/dist/src/utils/$promise.js +0 -13
- package/dist/src/utils/$require.js +0 -127
- package/dist/src/utils/$sign.js +0 -35
- package/dist/src/utils/$signSerializer.js +0 -264
- package/dist/src/utils/$wallet.js +0 -13
- package/dist/src/utils/types.js +0 -2
- package/dist/src/wallets/Wallet.js +0 -26
- package/dist/src/wallets/WalletBsc.js +0 -17
- package/dist/src/wallets/WalletService.js +0 -35
- package/dist/src/www/utils/BlockChainExplorerFormatter.js +0 -15
- package/src/BlockchainExplorer/BlockChainExplorerFactory.ts +0 -273
- package/src/BlockchainExplorer/BlockChainExplorerProvider.ts +0 -26
- package/src/BlockchainExplorer/BlockNumberCache.ts +0 -46
- package/src/BlockchainExplorer/Bscscan.ts +0 -23
- package/src/BlockchainExplorer/Etherscan.ts +0 -25
- package/src/BlockchainExplorer/IAbiProvider.ts +0 -5
- package/src/BlockchainExplorer/IBlockChainExplorer.ts +0 -37
- package/src/BlockchainExplorer/Polyscan.ts +0 -23
- package/src/ChainAccounts.ts +0 -72
- package/src/ChainAccountsService.ts +0 -74
- package/src/Config.ts +0 -34
- package/src/bridges/hop/contracts/polygon/Dai_l2AmmWrapperContract.ts +0 -69
- package/src/bridges/hop/contracts/polygon/Dai_l2BridgeContract.ts +0 -453
- package/src/bridges/hop/contracts/polygon/Dai_l2SaddleSwapContract.ts +0 -264
- package/src/bridges/hop/contracts/polygon/Eth_l2AmmWrapperContract.ts +0 -69
- package/src/bridges/hop/contracts/polygon/Eth_l2BridgeContract.ts +0 -453
- package/src/bridges/hop/contracts/polygon/Eth_l2SaddleSwapContract.ts +0 -264
- package/src/bridges/hop/contracts/polygon/Matic_l2AmmWrapperContract.ts +0 -69
- package/src/bridges/hop/contracts/polygon/Matic_l2BridgeContract.ts +0 -453
- package/src/bridges/hop/contracts/polygon/Matic_l2SaddleSwapContract.ts +0 -264
- package/src/bridges/hop/contracts/polygon/Usdc_l2AmmWrapperContract.ts +0 -69
- package/src/bridges/hop/contracts/polygon/Usdc_l2BridgeContract.ts +0 -453
- package/src/bridges/hop/contracts/polygon/Usdc_l2SaddleSwapContract.ts +0 -264
- package/src/bridges/hop/contracts/polygon/Usdt_l2AmmWrapperContract.ts +0 -69
- package/src/bridges/hop/contracts/polygon/Usdt_l2BridgeContract.ts +0 -453
- package/src/bridges/hop/contracts/polygon/Usdt_l2SaddleSwapContract.ts +0 -264
- package/src/bridges/hop/contracts/polygon/Wbtc_l2AmmWrapperContract.ts +0 -69
- package/src/bridges/hop/contracts/polygon/Wbtc_l2BridgeContract.ts +0 -453
- package/src/bridges/hop/contracts/polygon/Wbtc_l2SaddleSwapContract.ts +0 -264
- package/src/bridges/wormhole/contracts/WormholeBridgeContract.ts +0 -14
- package/src/chains/xdai/tokens/WXDaiTokenContract.json +0 -279
- package/src/chains/xdai/tokens/WXDaiTokenContract.ts +0 -14
- package/src/clients/HardhatWeb3Client.ts +0 -60
- package/src/contracts/ContractFactory.ts +0 -19
- package/src/contracts/common/ERC20.ts +0 -13
- package/src/contracts/common/ERC20Polygon.ts +0 -13
- package/src/contracts/common/PoolPair.ts +0 -22
- package/src/defi/OneInch/OneInchRouter.ts +0 -13
- package/src/json/JsonStore.spec.ts +0 -98
- package/src/structs/PackedRanges.spec.ts +0 -38
- package/src/structs/PackedRanges.ts +0 -207
- package/src/tokens/TokenExchanges/AmmBase/V2/AmmFactoryV2Contract.ts +0 -15
- package/src/tokens/TokenExchanges/AmmBase/V2/AmmMasterChefV2Contract.ts +0 -15
- package/src/tokens/TokenExchanges/AmmBase/V2/AmmPairV2Contract.ts +0 -17
- package/src/tokens/TokenExchanges/AmmBase/V2/AmmRouterV2Contract.ts +0 -15
- package/src/tokens/TokenExchanges/AmmBase/V2/AmmVaultV2Contract.ts +0 -15
- package/src/tokens/TokenExchanges/AmmBase/V3/AmmPairV3Contract.ts +0 -24
- package/src/tokens/TokenExchanges/UniswapExchange.ts +0 -31
- package/src/tokens/TokenOracles/AmmPriceV2Oracle.ts +0 -440
- package/src/tokens/erc20/eth/WETH.ts +0 -13
- package/src/txs/ITxConfig.ts +0 -27
- package/src/www/utils/BlockChainExplorerFormatter.ts +0 -13
- package/test/client.spec.ts +0 -59
|
@@ -0,0 +1,1786 @@
|
|
|
1
|
+
{
|
|
2
|
+
"openrpc": "1.0.0",
|
|
3
|
+
"info": {
|
|
4
|
+
"version": "1.0.10",
|
|
5
|
+
"title": "Ethereum JSON-RPC",
|
|
6
|
+
"description": "This API lets you interact with an EVM-based client via JSON-RPC",
|
|
7
|
+
"license": {
|
|
8
|
+
"name": "Apache 2.0",
|
|
9
|
+
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"methods": [
|
|
13
|
+
{
|
|
14
|
+
"name": "web3_clientVersion",
|
|
15
|
+
"description": "Returns the version of the current client",
|
|
16
|
+
"summary": "current client version",
|
|
17
|
+
"params": [],
|
|
18
|
+
"result": {
|
|
19
|
+
"name": "clientVersion",
|
|
20
|
+
"description": "client version",
|
|
21
|
+
"schema": {
|
|
22
|
+
"title": "clientVersion",
|
|
23
|
+
"type": "string"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "web3_sha3",
|
|
29
|
+
"summary": "Hashes data",
|
|
30
|
+
"description": "Hashes data using the Keccak-256 algorithm",
|
|
31
|
+
"params": [
|
|
32
|
+
{
|
|
33
|
+
"name": "data",
|
|
34
|
+
"description": "data to hash using the Keccak-256 algorithm",
|
|
35
|
+
"summary": "data to hash",
|
|
36
|
+
"schema": {
|
|
37
|
+
"title": "data",
|
|
38
|
+
"type": "string",
|
|
39
|
+
"pattern": "^0x[a-fA-F\\d]+$"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"result": {
|
|
44
|
+
"name": "hashedData",
|
|
45
|
+
"description": "Keccak-256 hash of the given data",
|
|
46
|
+
"schema": {
|
|
47
|
+
"$ref": "#/components/schemas/Keccak"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"examples": [
|
|
51
|
+
{
|
|
52
|
+
"name": "sha3Example",
|
|
53
|
+
"params": [
|
|
54
|
+
{
|
|
55
|
+
"name": "sha3ParamExample",
|
|
56
|
+
"value": "0x68656c6c6f20776f726c64"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"result": {
|
|
60
|
+
"name": "sha3ResultExample",
|
|
61
|
+
"value": "0x47173285a8d7341e5e972fc677286384f802f8ef42a5ec5f03bbfa254cb01fad"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "net_listening",
|
|
68
|
+
"summary": "returns listening status",
|
|
69
|
+
"description": "Determines if this client is listening for new network connections.",
|
|
70
|
+
"params": [],
|
|
71
|
+
"result": {
|
|
72
|
+
"name": "netListeningResult",
|
|
73
|
+
"description": "`true` if listening is active or `false` if listening is not active",
|
|
74
|
+
"schema": {
|
|
75
|
+
"title": "isNetListening",
|
|
76
|
+
"type": "boolean"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"examples": [
|
|
80
|
+
{
|
|
81
|
+
"name": "netListeningTrueExample",
|
|
82
|
+
"description": "example of true result for net_listening",
|
|
83
|
+
"params": [],
|
|
84
|
+
"result": {
|
|
85
|
+
"name": "netListeningExampleFalseResult",
|
|
86
|
+
"value": true
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "net_peerCount",
|
|
93
|
+
"summary": "number of peers",
|
|
94
|
+
"description": "Returns the number of peers currently connected to this client.",
|
|
95
|
+
"params": [],
|
|
96
|
+
"result": {
|
|
97
|
+
"name": "quantity",
|
|
98
|
+
"description": "number of connected peers.",
|
|
99
|
+
"schema": {
|
|
100
|
+
"title": "numConnectedPeers",
|
|
101
|
+
"description": "Hex representation of number of connected peers",
|
|
102
|
+
"type": "string"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "net_version",
|
|
108
|
+
"summary": "Network identifier associated with network",
|
|
109
|
+
"description": "Returns the network ID associated with the current network.",
|
|
110
|
+
"params": [],
|
|
111
|
+
"result": {
|
|
112
|
+
"name": "networkId",
|
|
113
|
+
"description": "Network ID associated with the current network",
|
|
114
|
+
"schema": {
|
|
115
|
+
"title": "networkId",
|
|
116
|
+
"type": "string",
|
|
117
|
+
"pattern": "^[\\d]+$"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"name": "eth_blockNumber",
|
|
123
|
+
"summary": "Returns the number of most recent block.",
|
|
124
|
+
"params": [],
|
|
125
|
+
"result": {
|
|
126
|
+
"$ref": "#/components/contentDescriptors/BlockNumber"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"name": "eth_call",
|
|
131
|
+
"summary": "Executes a new message call (locally) immediately without creating a transaction on the block chain.",
|
|
132
|
+
"params": [
|
|
133
|
+
{
|
|
134
|
+
"$ref": "#/components/contentDescriptors/Transaction"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"$ref": "#/components/contentDescriptors/BlockNumber"
|
|
138
|
+
}
|
|
139
|
+
],
|
|
140
|
+
"result": {
|
|
141
|
+
"name": "returnValue",
|
|
142
|
+
"description": "The return value of the executed contract",
|
|
143
|
+
"schema": {
|
|
144
|
+
"$ref": "#/components/schemas/Bytes"
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "eth_chainId",
|
|
150
|
+
"summary": "Returns the currently configured chain id",
|
|
151
|
+
"description": "Returns the currently configured chain id, a value used in replay-protected transaction signing as introduced by [EIP-155](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-155.md).",
|
|
152
|
+
"params": [],
|
|
153
|
+
"result": {
|
|
154
|
+
"name": "chainId",
|
|
155
|
+
"description": "hex format integer of the current chain id. Defaults are ETC=61, ETH=1, Morden=62.",
|
|
156
|
+
"schema": {
|
|
157
|
+
"title": "chainId",
|
|
158
|
+
"type": "string",
|
|
159
|
+
"pattern": "^0x[a-fA-F\\d]+$"
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"name": "eth_coinbase",
|
|
165
|
+
"summary": "Returns the client coinbase address.",
|
|
166
|
+
"params": [],
|
|
167
|
+
"result": {
|
|
168
|
+
"name": "address",
|
|
169
|
+
"description": "The address owned by the client that is used as default for things like the mining reward",
|
|
170
|
+
"schema": {
|
|
171
|
+
"$ref": "#/components/schemas/Address"
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"name": "eth_estimateGas",
|
|
177
|
+
"summary": "Generates and returns an estimate of how much gas is necessary to allow the transaction to complete. The transaction will not be added to the blockchain. Note that the estimate may be significantly more than the amount of gas actually used by the transaction, for a variety of reasons including EVM mechanics and node performance.",
|
|
178
|
+
"params": [
|
|
179
|
+
{
|
|
180
|
+
"$ref": "#/components/contentDescriptors/Transaction"
|
|
181
|
+
}
|
|
182
|
+
],
|
|
183
|
+
"result": {
|
|
184
|
+
"name": "gasUsed",
|
|
185
|
+
"description": "The amount of gas used",
|
|
186
|
+
"schema": {
|
|
187
|
+
"$ref": "#/components/schemas/Integer"
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"name": "eth_gasPrice",
|
|
193
|
+
"summary": "Returns the current price per gas in wei",
|
|
194
|
+
"params": [],
|
|
195
|
+
"result": {
|
|
196
|
+
"$ref": "#/components/contentDescriptors/GasPrice"
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"name": "eth_getBalance",
|
|
201
|
+
"summary": "Returns Ether balance of a given or account or contract",
|
|
202
|
+
"params": [
|
|
203
|
+
{
|
|
204
|
+
"name": "address",
|
|
205
|
+
"required": true,
|
|
206
|
+
"description": "The address of the account or contract",
|
|
207
|
+
"schema": {
|
|
208
|
+
"$ref": "#/components/schemas/Address"
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"name": "blockNumber",
|
|
213
|
+
"description": "A BlockNumber at which to request the balance",
|
|
214
|
+
"schema": {
|
|
215
|
+
"$ref": "#/components/schemas/BlockNumber"
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
],
|
|
219
|
+
"result": {
|
|
220
|
+
"name": "getBalanceResult",
|
|
221
|
+
"schema": {
|
|
222
|
+
"$ref": "#/components/schemas/IntegerOrNull"
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"name": "eth_getBlockByHash",
|
|
228
|
+
"summary": "Gets a block for a given hash",
|
|
229
|
+
"params": [
|
|
230
|
+
{
|
|
231
|
+
"name": "blockHash",
|
|
232
|
+
"required": true,
|
|
233
|
+
"schema": {
|
|
234
|
+
"$ref": "#/components/schemas/BlockHash"
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"name": "includeTransactions",
|
|
239
|
+
"description": "If `true` it returns the full transaction objects, if `false` only the hashes of the transactions.",
|
|
240
|
+
"required": true,
|
|
241
|
+
"schema": {
|
|
242
|
+
"title": "isTransactionsIncluded",
|
|
243
|
+
"type": "boolean"
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
],
|
|
247
|
+
"result": {
|
|
248
|
+
"name": "getBlockByHashResult",
|
|
249
|
+
"schema": {
|
|
250
|
+
"$ref": "#/components/schemas/BlockOrNull"
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"name": "eth_getBlockByNumber",
|
|
256
|
+
"summary": "Gets a block for a given number",
|
|
257
|
+
"params": [
|
|
258
|
+
{
|
|
259
|
+
"$ref": "#/components/contentDescriptors/BlockNumber"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"name": "includeTransactions",
|
|
263
|
+
"description": "If `true` it returns the full transaction objects, if `false` only the hashes of the transactions.",
|
|
264
|
+
"required": true,
|
|
265
|
+
"schema": {
|
|
266
|
+
"title": "isTransactionsIncluded",
|
|
267
|
+
"type": "boolean"
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
],
|
|
271
|
+
"result": {
|
|
272
|
+
"name": "getBlockByNumberResult",
|
|
273
|
+
"schema": {
|
|
274
|
+
"$ref": "#/components/schemas/BlockOrNull"
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"name": "eth_getBlockTransactionCountByHash",
|
|
280
|
+
"summary": "Returns the number of transactions in a block from a block matching the given block hash.",
|
|
281
|
+
"params": [
|
|
282
|
+
{
|
|
283
|
+
"$ref": "#/components/contentDescriptors/BlockHash"
|
|
284
|
+
}
|
|
285
|
+
],
|
|
286
|
+
"result": {
|
|
287
|
+
"name": "blockTransactionCountByHash",
|
|
288
|
+
"description": "The Number of total transactions in the given block",
|
|
289
|
+
"schema": {
|
|
290
|
+
"$ref": "#/components/schemas/IntegerOrNull"
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"name": "eth_getBlockTransactionCountByNumber",
|
|
296
|
+
"summary": "Returns the number of transactions in a block from a block matching the given block number.",
|
|
297
|
+
"params": [
|
|
298
|
+
{
|
|
299
|
+
"$ref": "#/components/contentDescriptors/BlockNumber"
|
|
300
|
+
}
|
|
301
|
+
],
|
|
302
|
+
"result": {
|
|
303
|
+
"name": "blockTransactionCountByHash",
|
|
304
|
+
"description": "The Number of total transactions in the given block",
|
|
305
|
+
"schema": {
|
|
306
|
+
"$ref": "#/components/schemas/IntegerOrNull"
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"name": "eth_getCode",
|
|
312
|
+
"summary": "Returns code at a given contract address",
|
|
313
|
+
"params": [
|
|
314
|
+
{
|
|
315
|
+
"name": "address",
|
|
316
|
+
"required": true,
|
|
317
|
+
"description": "The address of the contract",
|
|
318
|
+
"schema": {
|
|
319
|
+
"$ref": "#/components/schemas/Address"
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"name": "blockNumber",
|
|
324
|
+
"description": "A BlockNumber of which the code existed",
|
|
325
|
+
"schema": {
|
|
326
|
+
"$ref": "#/components/schemas/BlockNumber"
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
],
|
|
330
|
+
"result": {
|
|
331
|
+
"name": "bytes",
|
|
332
|
+
"schema": {
|
|
333
|
+
"$ref": "#/components/schemas/Bytes"
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"name": "eth_getFilterChanges",
|
|
339
|
+
"summary": "Polling method for a filter, which returns an array of logs which occurred since last poll.",
|
|
340
|
+
"params": [
|
|
341
|
+
{
|
|
342
|
+
"name": "filterId",
|
|
343
|
+
"required": true,
|
|
344
|
+
"schema": {
|
|
345
|
+
"$ref": "#/components/schemas/FilterId"
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
],
|
|
349
|
+
"result": {
|
|
350
|
+
"name": "logResult",
|
|
351
|
+
"schema": {
|
|
352
|
+
"title": "logResult",
|
|
353
|
+
"type": "array",
|
|
354
|
+
"items": {
|
|
355
|
+
"$ref": "#/components/schemas/Log"
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"name": "eth_getFilterLogs",
|
|
362
|
+
"summary": "Returns an array of all logs matching filter with given id.",
|
|
363
|
+
"params": [
|
|
364
|
+
{
|
|
365
|
+
"name": "filterId",
|
|
366
|
+
"required": true,
|
|
367
|
+
"schema": {
|
|
368
|
+
"$ref": "#/components/schemas/FilterId"
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
],
|
|
372
|
+
"result": {
|
|
373
|
+
"$ref": "#/components/contentDescriptors/Logs"
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"name": "eth_getRawTransactionByHash",
|
|
378
|
+
"summary": "Returns raw transaction data of a transaction with the given hash.",
|
|
379
|
+
"params": [
|
|
380
|
+
{
|
|
381
|
+
"$ref": "#/components/contentDescriptors/TransactionHash"
|
|
382
|
+
}
|
|
383
|
+
],
|
|
384
|
+
"result": {
|
|
385
|
+
"name": "rawTransactionByHash",
|
|
386
|
+
"description": "The raw transaction data",
|
|
387
|
+
"schema": {
|
|
388
|
+
"$ref": "#/components/schemas/Bytes"
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"name": "eth_getRawTransactionByBlockHashAndIndex",
|
|
394
|
+
"summary": "Returns raw transaction data of a transaction with the block hash and index of which it was mined.",
|
|
395
|
+
"params": [
|
|
396
|
+
{
|
|
397
|
+
"$ref": "#/components/contentDescriptors/BlockHash"
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"name": "index",
|
|
401
|
+
"description": "The ordering in which a transaction is mined within its block.",
|
|
402
|
+
"required": true,
|
|
403
|
+
"schema": {
|
|
404
|
+
"$ref": "#/components/schemas/Integer"
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
],
|
|
408
|
+
"result": {
|
|
409
|
+
"name": "rawTransaction",
|
|
410
|
+
"description": "The raw transaction data",
|
|
411
|
+
"schema": {
|
|
412
|
+
"$ref": "#/components/schemas/Bytes"
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
"name": "eth_getRawTransactionByBlockNumberAndIndex",
|
|
418
|
+
"summary": "Returns raw transaction data of a transaction with the block number and index of which it was mined.",
|
|
419
|
+
"params": [
|
|
420
|
+
{
|
|
421
|
+
"$ref": "#/components/contentDescriptors/BlockNumber"
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"name": "index",
|
|
425
|
+
"description": "The ordering in which a transaction is mined within its block.",
|
|
426
|
+
"required": true,
|
|
427
|
+
"schema": {
|
|
428
|
+
"$ref": "#/components/schemas/Integer"
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
],
|
|
432
|
+
"result": {
|
|
433
|
+
"name": "rawTransaction",
|
|
434
|
+
"description": "The raw transaction data",
|
|
435
|
+
"schema": {
|
|
436
|
+
"$ref": "#/components/schemas/Bytes"
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
"name": "eth_getLogs",
|
|
442
|
+
"summary": "Returns an array of all logs matching a given filter object.",
|
|
443
|
+
"params": [
|
|
444
|
+
{
|
|
445
|
+
"$ref": "#/components/contentDescriptors/Filter"
|
|
446
|
+
}
|
|
447
|
+
],
|
|
448
|
+
"result": {
|
|
449
|
+
"$ref": "#/components/contentDescriptors/Logs"
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
"name": "eth_getStorageAt",
|
|
454
|
+
"summary": "Gets a storage value from a contract address, a position, and an optional blockNumber",
|
|
455
|
+
"params": [
|
|
456
|
+
{
|
|
457
|
+
"$ref": "#/components/contentDescriptors/Address"
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
"$ref": "#/components/contentDescriptors/Position"
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"$ref": "#/components/contentDescriptors/BlockNumber"
|
|
464
|
+
}
|
|
465
|
+
],
|
|
466
|
+
"result": {
|
|
467
|
+
"name": "dataWord",
|
|
468
|
+
"schema": {
|
|
469
|
+
"$ref": "#/components/schemas/DataWord"
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"name": "eth_getTransactionByBlockHashAndIndex",
|
|
475
|
+
"summary": "Returns the information about a transaction requested by the block hash and index of which it was mined.",
|
|
476
|
+
"params": [
|
|
477
|
+
{
|
|
478
|
+
"$ref": "#/components/contentDescriptors/BlockHash"
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
"name": "index",
|
|
482
|
+
"description": "The ordering in which a transaction is mined within its block.",
|
|
483
|
+
"required": true,
|
|
484
|
+
"schema": {
|
|
485
|
+
"$ref": "#/components/schemas/Integer"
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
],
|
|
489
|
+
"result": {
|
|
490
|
+
"$ref": "#/components/contentDescriptors/TransactionResult"
|
|
491
|
+
},
|
|
492
|
+
"examples": [
|
|
493
|
+
{
|
|
494
|
+
"name": "nullExample",
|
|
495
|
+
"params": [
|
|
496
|
+
{
|
|
497
|
+
"name": "blockHashExample",
|
|
498
|
+
"value": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
"name": "indexExample",
|
|
502
|
+
"value": "0x0"
|
|
503
|
+
}
|
|
504
|
+
],
|
|
505
|
+
"result": {
|
|
506
|
+
"name": "nullResultExample",
|
|
507
|
+
"value": null
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
]
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
"name": "eth_getTransactionByBlockNumberAndIndex",
|
|
514
|
+
"summary": "Returns the information about a transaction requested by the block number and index of which it was mined.",
|
|
515
|
+
"params": [
|
|
516
|
+
{
|
|
517
|
+
"$ref": "#/components/contentDescriptors/BlockNumber"
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
"name": "index",
|
|
521
|
+
"description": "The ordering in which a transaction is mined within its block.",
|
|
522
|
+
"required": true,
|
|
523
|
+
"schema": {
|
|
524
|
+
"$ref": "#/components/schemas/Integer"
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
],
|
|
528
|
+
"result": {
|
|
529
|
+
"$ref": "#/components/contentDescriptors/TransactionResult"
|
|
530
|
+
}
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
"name": "eth_getTransactionByHash",
|
|
534
|
+
"summary": "Returns the information about a transaction requested by transaction hash.",
|
|
535
|
+
"params": [
|
|
536
|
+
{
|
|
537
|
+
"$ref": "#/components/contentDescriptors/TransactionHash"
|
|
538
|
+
}
|
|
539
|
+
],
|
|
540
|
+
"result": {
|
|
541
|
+
"$ref": "#/components/contentDescriptors/TransactionResult"
|
|
542
|
+
}
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
"name": "eth_getTransactionCount",
|
|
546
|
+
"summary": "Returns the number of transactions sent from an address",
|
|
547
|
+
"params": [
|
|
548
|
+
{
|
|
549
|
+
"$ref": "#/components/contentDescriptors/Address"
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
"$ref": "#/components/contentDescriptors/BlockNumber"
|
|
553
|
+
}
|
|
554
|
+
],
|
|
555
|
+
"result": {
|
|
556
|
+
"name": "transactionCount",
|
|
557
|
+
"schema": {
|
|
558
|
+
"title": "nonceOrNull",
|
|
559
|
+
"oneOf": [
|
|
560
|
+
{
|
|
561
|
+
"$ref": "#/components/schemas/Nonce"
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
"$ref": "#/components/schemas/Null"
|
|
565
|
+
}
|
|
566
|
+
]
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
"name": "eth_getTransactionReceipt",
|
|
572
|
+
"summary": "Returns the receipt information of a transaction by its hash.",
|
|
573
|
+
"params": [
|
|
574
|
+
{
|
|
575
|
+
"$ref": "#/components/contentDescriptors/TransactionHash"
|
|
576
|
+
}
|
|
577
|
+
],
|
|
578
|
+
"result": {
|
|
579
|
+
"name": "transactionReceiptResult",
|
|
580
|
+
"description": "returns either a receipt or null",
|
|
581
|
+
"schema": {
|
|
582
|
+
"title": "transactionReceiptOrNull",
|
|
583
|
+
"oneOf": [
|
|
584
|
+
{
|
|
585
|
+
"$ref": "#/components/schemas/Receipt"
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
"$ref": "#/components/schemas/Null"
|
|
589
|
+
}
|
|
590
|
+
]
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
"name": "eth_getUncleByBlockHashAndIndex",
|
|
596
|
+
"summary": "Returns information about a uncle of a block by hash and uncle index position.",
|
|
597
|
+
"params": [
|
|
598
|
+
{
|
|
599
|
+
"$ref": "#/components/contentDescriptors/BlockHash"
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
"name": "index",
|
|
603
|
+
"description": "The ordering in which a uncle is included within its block.",
|
|
604
|
+
"required": true,
|
|
605
|
+
"schema": {
|
|
606
|
+
"$ref": "#/components/schemas/Integer"
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
],
|
|
610
|
+
"result": {
|
|
611
|
+
"name": "uncle",
|
|
612
|
+
"schema": {
|
|
613
|
+
"$ref": "#/components/schemas/BlockOrNull"
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
"name": "eth_getUncleByBlockNumberAndIndex",
|
|
619
|
+
"summary": "Returns information about a uncle of a block by hash and uncle index position.",
|
|
620
|
+
"params": [
|
|
621
|
+
{
|
|
622
|
+
"name": "uncleBlockNumber",
|
|
623
|
+
"description": "The block in which the uncle was included",
|
|
624
|
+
"required": true,
|
|
625
|
+
"schema": {
|
|
626
|
+
"$ref": "#/components/schemas/BlockNumber"
|
|
627
|
+
}
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
"name": "index",
|
|
631
|
+
"description": "The ordering in which a uncle is included within its block.",
|
|
632
|
+
"required": true,
|
|
633
|
+
"schema": {
|
|
634
|
+
"$ref": "#/components/schemas/Integer"
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
],
|
|
638
|
+
"result": {
|
|
639
|
+
"name": "uncleResult",
|
|
640
|
+
"description": "returns an uncle block or null",
|
|
641
|
+
"schema": {
|
|
642
|
+
"$ref": "#/components/schemas/BlockOrNull"
|
|
643
|
+
}
|
|
644
|
+
},
|
|
645
|
+
"examples": [
|
|
646
|
+
{
|
|
647
|
+
"name": "nullResultExample",
|
|
648
|
+
"params": [
|
|
649
|
+
{
|
|
650
|
+
"name": "uncleBlockNumberExample",
|
|
651
|
+
"value": "0x0"
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
"name": "uncleBlockNumberIndexExample",
|
|
655
|
+
"value": "0x0"
|
|
656
|
+
}
|
|
657
|
+
],
|
|
658
|
+
"result": {
|
|
659
|
+
"name": "nullResultExample",
|
|
660
|
+
"value": null
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
]
|
|
664
|
+
},
|
|
665
|
+
{
|
|
666
|
+
"name": "eth_getUncleCountByBlockHash",
|
|
667
|
+
"summary": "Returns the number of uncles in a block from a block matching the given block hash.",
|
|
668
|
+
"params": [
|
|
669
|
+
{
|
|
670
|
+
"$ref": "#/components/contentDescriptors/BlockHash"
|
|
671
|
+
}
|
|
672
|
+
],
|
|
673
|
+
"result": {
|
|
674
|
+
"name": "uncleCountResult",
|
|
675
|
+
"description": "The Number of total uncles in the given block",
|
|
676
|
+
"schema": {
|
|
677
|
+
"$ref": "#/components/schemas/IntegerOrNull"
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
"name": "eth_getUncleCountByBlockNumber",
|
|
683
|
+
"summary": "Returns the number of uncles in a block from a block matching the given block number.",
|
|
684
|
+
"params": [
|
|
685
|
+
{
|
|
686
|
+
"$ref": "#/components/contentDescriptors/BlockNumber"
|
|
687
|
+
}
|
|
688
|
+
],
|
|
689
|
+
"result": {
|
|
690
|
+
"$ref": "#/components/contentDescriptors/UncleCountResult"
|
|
691
|
+
}
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
"name": "eth_getProof",
|
|
695
|
+
"summary": "Returns the account- and storage-values of the specified account including the Merkle-proof.",
|
|
696
|
+
"params": [
|
|
697
|
+
{
|
|
698
|
+
"name": "address",
|
|
699
|
+
"description": "The address of the account or contract",
|
|
700
|
+
"required": true,
|
|
701
|
+
"schema": {
|
|
702
|
+
"$ref": "#/components/schemas/Address"
|
|
703
|
+
}
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
"name": "storageKeys",
|
|
707
|
+
"required": true,
|
|
708
|
+
"schema": {
|
|
709
|
+
"title": "storageKeys",
|
|
710
|
+
"description": "A storage key is indexed from the solidity compiler by the order it is declared. For mappings it uses the keccak of the mapping key with its position (and recursively for X-dimensional mappings)",
|
|
711
|
+
"items": {
|
|
712
|
+
"$ref": "#/components/schemas/StorageProofKey"
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
"$ref": "#/components/contentDescriptors/BlockNumber"
|
|
718
|
+
}
|
|
719
|
+
],
|
|
720
|
+
"result": {
|
|
721
|
+
"name": "account",
|
|
722
|
+
"schema": {
|
|
723
|
+
"title": "proofAccountOrNull",
|
|
724
|
+
"oneOf": [
|
|
725
|
+
{
|
|
726
|
+
"title": "proofAccount",
|
|
727
|
+
"type": "object",
|
|
728
|
+
"description": "The merkle proofs of the specified account connecting them to the blockhash of the block specified",
|
|
729
|
+
"properties": {
|
|
730
|
+
"address": {
|
|
731
|
+
"title": "proofAccountAddress",
|
|
732
|
+
"description": "The address of the account or contract of the request",
|
|
733
|
+
"$ref": "#/components/schemas/Address"
|
|
734
|
+
},
|
|
735
|
+
"accountProof": {
|
|
736
|
+
"$ref": "#/components/schemas/ProofNodes"
|
|
737
|
+
},
|
|
738
|
+
"balance": {
|
|
739
|
+
"title": "proofAccountBalance",
|
|
740
|
+
"description": "The Ether balance of the account or contract of the request",
|
|
741
|
+
"$ref": "#/components/schemas/Integer"
|
|
742
|
+
},
|
|
743
|
+
"codeHash": {
|
|
744
|
+
"title": "proofAccountCodeHash",
|
|
745
|
+
"description": "The code hash of the contract of the request (keccak(NULL) if external account)",
|
|
746
|
+
"$ref": "#/components/schemas/Keccak"
|
|
747
|
+
},
|
|
748
|
+
"nonce": {
|
|
749
|
+
"title": "proofAccountNonce",
|
|
750
|
+
"description": "The transaction count of the account or contract of the request",
|
|
751
|
+
"$ref": "#/components/schemas/Nonce"
|
|
752
|
+
},
|
|
753
|
+
"storageHash": {
|
|
754
|
+
"title": "proofAccountStorageHash",
|
|
755
|
+
"description": "The storage hash of the contract of the request (keccak(rlp(NULL)) if external account)",
|
|
756
|
+
"$ref": "#/components/schemas/Keccak"
|
|
757
|
+
},
|
|
758
|
+
"storageProof": {
|
|
759
|
+
"$ref": "#/components/schemas/StorageProof"
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
"$ref": "#/components/schemas/Null"
|
|
765
|
+
}
|
|
766
|
+
]
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
},
|
|
770
|
+
{
|
|
771
|
+
"name": "eth_getWork",
|
|
772
|
+
"summary": "Returns the hash of the current block, the seedHash, and the boundary condition to be met ('target').",
|
|
773
|
+
"params": [],
|
|
774
|
+
"result": {
|
|
775
|
+
"name": "work",
|
|
776
|
+
"schema": {
|
|
777
|
+
"title": "getWorkResults",
|
|
778
|
+
"type": "array",
|
|
779
|
+
"items": [
|
|
780
|
+
{
|
|
781
|
+
"$ref": "#/components/schemas/PowHash"
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
"$ref": "#/components/schemas/SeedHash"
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
"$ref": "#/components/schemas/Difficulty"
|
|
788
|
+
}
|
|
789
|
+
]
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
},
|
|
793
|
+
{
|
|
794
|
+
"name": "eth_hashrate",
|
|
795
|
+
"summary": "Returns the number of hashes per second that the node is mining with.",
|
|
796
|
+
"params": [],
|
|
797
|
+
"result": {
|
|
798
|
+
"name": "hashesPerSecond",
|
|
799
|
+
"description": "Integer of the number of hashes per second",
|
|
800
|
+
"schema": {
|
|
801
|
+
"$ref": "#/components/schemas/Integer"
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
"name": "eth_mining",
|
|
807
|
+
"summary": "Returns true if client is actively mining new blocks.",
|
|
808
|
+
"params": [],
|
|
809
|
+
"result": {
|
|
810
|
+
"name": "mining",
|
|
811
|
+
"description": "Whether or not the client is mining",
|
|
812
|
+
"schema": {
|
|
813
|
+
"type": "boolean"
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
"name": "eth_newBlockFilter",
|
|
819
|
+
"summary": "Creates a filter in the node, to notify when a new block arrives. To check if the state has changed, call eth_getFilterChanges.",
|
|
820
|
+
"params": [],
|
|
821
|
+
"result": {
|
|
822
|
+
"$ref": "#/components/contentDescriptors/FilterId"
|
|
823
|
+
}
|
|
824
|
+
},
|
|
825
|
+
{
|
|
826
|
+
"name": "eth_newFilter",
|
|
827
|
+
"summary": "Creates a filter object, based on filter options, to notify when the state changes (logs). To check if the state has changed, call eth_getFilterChanges.",
|
|
828
|
+
"params": [
|
|
829
|
+
{
|
|
830
|
+
"$ref": "#/components/contentDescriptors/Filter"
|
|
831
|
+
}
|
|
832
|
+
],
|
|
833
|
+
"result": {
|
|
834
|
+
"name": "filterId",
|
|
835
|
+
"description": "The filter ID for use in `eth_getFilterChanges`",
|
|
836
|
+
"schema": {
|
|
837
|
+
"$ref": "#/components/schemas/Integer"
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
"name": "eth_newPendingTransactionFilter",
|
|
843
|
+
"summary": "Creates a filter in the node, to notify when new pending transactions arrive. To check if the state has changed, call eth_getFilterChanges.",
|
|
844
|
+
"params": [],
|
|
845
|
+
"result": {
|
|
846
|
+
"$ref": "#/components/contentDescriptors/FilterId"
|
|
847
|
+
}
|
|
848
|
+
},
|
|
849
|
+
{
|
|
850
|
+
"name": "eth_pendingTransactions",
|
|
851
|
+
"summary": "Returns the transactions that are pending in the transaction pool and have a from address that is one of the accounts this node manages.",
|
|
852
|
+
"params": [],
|
|
853
|
+
"result": {
|
|
854
|
+
"name": "pendingTransactions",
|
|
855
|
+
"schema": {
|
|
856
|
+
"$ref": "#/components/schemas/Transactions"
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
},
|
|
860
|
+
{
|
|
861
|
+
"name": "eth_protocolVersion",
|
|
862
|
+
"summary": "Returns the current ethereum protocol version.",
|
|
863
|
+
"params": [],
|
|
864
|
+
"result": {
|
|
865
|
+
"name": "protocolVersion",
|
|
866
|
+
"description": "The current ethereum protocol version",
|
|
867
|
+
"schema": {
|
|
868
|
+
"$ref": "#/components/schemas/Integer"
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
"name": "eth_sendRawTransaction",
|
|
874
|
+
"summary": "Creates new message call transaction or a contract creation for signed transactions.",
|
|
875
|
+
"params": [
|
|
876
|
+
{
|
|
877
|
+
"name": "signedTransactionData",
|
|
878
|
+
"required": true,
|
|
879
|
+
"description": "The signed transaction data",
|
|
880
|
+
"schema": {
|
|
881
|
+
"$ref": "#/components/schemas/Bytes"
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
],
|
|
885
|
+
"result": {
|
|
886
|
+
"name": "transactionHash",
|
|
887
|
+
"description": "The transaction hash, or the zero hash if the transaction is not yet available.",
|
|
888
|
+
"schema": {
|
|
889
|
+
"$ref": "#/components/schemas/Keccak"
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
},
|
|
893
|
+
{
|
|
894
|
+
"name": "eth_submitHashrate",
|
|
895
|
+
"deprecated": true,
|
|
896
|
+
"summary": "Used for submitting mining hashrate.",
|
|
897
|
+
"params": [
|
|
898
|
+
{
|
|
899
|
+
"name": "hashRate",
|
|
900
|
+
"required": true,
|
|
901
|
+
"schema": {
|
|
902
|
+
"$ref": "#/components/schemas/DataWord"
|
|
903
|
+
}
|
|
904
|
+
},
|
|
905
|
+
{
|
|
906
|
+
"name": "id",
|
|
907
|
+
"required": true,
|
|
908
|
+
"description": "String identifying the client",
|
|
909
|
+
"schema": {
|
|
910
|
+
"$ref": "#/components/schemas/DataWord"
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
],
|
|
914
|
+
"result": {
|
|
915
|
+
"name": "submitHashRateSuccess",
|
|
916
|
+
"description": "whether of not submitting went through successfully",
|
|
917
|
+
"schema": {
|
|
918
|
+
"type": "boolean"
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
"name": "eth_submitWork",
|
|
924
|
+
"summary": "Used for submitting a proof-of-work solution.",
|
|
925
|
+
"params": [
|
|
926
|
+
{
|
|
927
|
+
"$ref": "#/components/contentDescriptors/Nonce"
|
|
928
|
+
},
|
|
929
|
+
{
|
|
930
|
+
"name": "powHash",
|
|
931
|
+
"required": true,
|
|
932
|
+
"schema": {
|
|
933
|
+
"$ref": "#/components/schemas/PowHash"
|
|
934
|
+
}
|
|
935
|
+
},
|
|
936
|
+
{
|
|
937
|
+
"name": "mixHash",
|
|
938
|
+
"required": true,
|
|
939
|
+
"schema": {
|
|
940
|
+
"$ref": "#/components/schemas/MixHash"
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
],
|
|
944
|
+
"result": {
|
|
945
|
+
"name": "solutionValid",
|
|
946
|
+
"description": "returns true if the provided solution is valid, otherwise false.",
|
|
947
|
+
"schema": {
|
|
948
|
+
"type": "boolean"
|
|
949
|
+
}
|
|
950
|
+
},
|
|
951
|
+
"examples": [
|
|
952
|
+
{
|
|
953
|
+
"name": "submitWorkExample",
|
|
954
|
+
"params": [
|
|
955
|
+
{
|
|
956
|
+
"name": "nonceExample",
|
|
957
|
+
"description": "example of a number only used once",
|
|
958
|
+
"value": "0x0000000000000001"
|
|
959
|
+
},
|
|
960
|
+
{
|
|
961
|
+
"name": "powHashExample",
|
|
962
|
+
"description": "proof of work to submit",
|
|
963
|
+
"value": "0x6bf2cAE0dE3ec3ecA5E194a6C6e02cf42aADfe1C2c4Fff12E5D36C3Cf7297F22"
|
|
964
|
+
},
|
|
965
|
+
{
|
|
966
|
+
"name": "mixHashExample",
|
|
967
|
+
"description": "the mix digest example",
|
|
968
|
+
"value": "0xD1FE5700000000000000000000000000D1FE5700000000000000000000000000"
|
|
969
|
+
}
|
|
970
|
+
],
|
|
971
|
+
"result": {
|
|
972
|
+
"name": "solutionInvalidExample",
|
|
973
|
+
"description": "this example should return `false` as it is not a valid pow to submit",
|
|
974
|
+
"value": false
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
]
|
|
978
|
+
},
|
|
979
|
+
{
|
|
980
|
+
"name": "eth_syncing",
|
|
981
|
+
"summary": "Returns an object with data about the sync status or false.",
|
|
982
|
+
"params": [],
|
|
983
|
+
"result": {
|
|
984
|
+
"name": "syncing",
|
|
985
|
+
"schema": {
|
|
986
|
+
"title": "isSyncingResult",
|
|
987
|
+
"oneOf": [
|
|
988
|
+
{
|
|
989
|
+
"title": "syncingData",
|
|
990
|
+
"description": "An object with sync status data",
|
|
991
|
+
"type": "object",
|
|
992
|
+
"properties": {
|
|
993
|
+
"startingBlock": {
|
|
994
|
+
"title": "syncingDataStartingBlock",
|
|
995
|
+
"description": "Block at which the import started (will only be reset, after the sync reached his head)",
|
|
996
|
+
"$ref": "#/components/schemas/Integer"
|
|
997
|
+
},
|
|
998
|
+
"currentBlock": {
|
|
999
|
+
"title": "syncingDataCurrentBlock",
|
|
1000
|
+
"description": "The current block, same as eth_blockNumber",
|
|
1001
|
+
"$ref": "#/components/schemas/Integer"
|
|
1002
|
+
},
|
|
1003
|
+
"highestBlock": {
|
|
1004
|
+
"title": "syncingDataHighestBlock",
|
|
1005
|
+
"description": "The estimated highest block",
|
|
1006
|
+
"$ref": "#/components/schemas/Integer"
|
|
1007
|
+
},
|
|
1008
|
+
"knownStates": {
|
|
1009
|
+
"title": "syncingDataKnownStates",
|
|
1010
|
+
"description": "The known states",
|
|
1011
|
+
"$ref": "#/components/schemas/Integer"
|
|
1012
|
+
},
|
|
1013
|
+
"pulledStates": {
|
|
1014
|
+
"title": "syncingDataPulledStates",
|
|
1015
|
+
"description": "The pulled states",
|
|
1016
|
+
"$ref": "#/components/schemas/Integer"
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
},
|
|
1020
|
+
{
|
|
1021
|
+
"type": "boolean"
|
|
1022
|
+
}
|
|
1023
|
+
]
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
"name": "eth_uninstallFilter",
|
|
1029
|
+
"summary": "Uninstalls a filter with given id. Should always be called when watch is no longer needed. Additionally Filters timeout when they aren't requested with eth_getFilterChanges for a period of time.",
|
|
1030
|
+
"params": [
|
|
1031
|
+
{
|
|
1032
|
+
"name": "filterId",
|
|
1033
|
+
"required": true,
|
|
1034
|
+
"schema": {
|
|
1035
|
+
"$ref": "#/components/schemas/FilterId"
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
],
|
|
1039
|
+
"result": {
|
|
1040
|
+
"name": "filterUninstalledSuccess",
|
|
1041
|
+
"description": "returns true if the filter was successfully uninstalled, false otherwise.",
|
|
1042
|
+
"schema": {
|
|
1043
|
+
"type": "boolean"
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
],
|
|
1048
|
+
"components": {
|
|
1049
|
+
"schemas": {
|
|
1050
|
+
"ProofNode": {
|
|
1051
|
+
"title": "proofNode",
|
|
1052
|
+
"description": "An individual node used to prove a path down a merkle-patricia-tree",
|
|
1053
|
+
"$ref": "#/components/schemas/Bytes"
|
|
1054
|
+
},
|
|
1055
|
+
"StorageProofKey": {
|
|
1056
|
+
"title": "storageProofKey",
|
|
1057
|
+
"description": "The key used to get the storage slot in its account tree.",
|
|
1058
|
+
"$ref": "#/components/schemas/Integer"
|
|
1059
|
+
},
|
|
1060
|
+
"StorageProof": {
|
|
1061
|
+
"title": "storageProofSet",
|
|
1062
|
+
"type": "array",
|
|
1063
|
+
"description": "Current block header PoW hash.",
|
|
1064
|
+
"items": {
|
|
1065
|
+
"title": "storageProof",
|
|
1066
|
+
"type": "object",
|
|
1067
|
+
"description": "Object proving a relationship of a storage value to an account's storageHash.",
|
|
1068
|
+
"properties": {
|
|
1069
|
+
"key": {
|
|
1070
|
+
"$ref": "#/components/schemas/StorageProofKey"
|
|
1071
|
+
},
|
|
1072
|
+
"value": {
|
|
1073
|
+
"title": "storageProofValue",
|
|
1074
|
+
"description": "The value of the storage slot in its account tree",
|
|
1075
|
+
"$ref": "#/components/schemas/Integer"
|
|
1076
|
+
},
|
|
1077
|
+
"proof": {
|
|
1078
|
+
"$ref": "#/components/schemas/ProofNodes"
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
},
|
|
1083
|
+
"ProofNodes": {
|
|
1084
|
+
"title": "proofNodes",
|
|
1085
|
+
"type": "array",
|
|
1086
|
+
"description": "The set of node values needed to traverse a patricia merkle tree (from root to leaf) to retrieve a value",
|
|
1087
|
+
"items": {
|
|
1088
|
+
"$ref": "#/components/schemas/ProofNode"
|
|
1089
|
+
}
|
|
1090
|
+
},
|
|
1091
|
+
"PowHash": {
|
|
1092
|
+
"title": "powHash",
|
|
1093
|
+
"description": "Current block header PoW hash.",
|
|
1094
|
+
"$ref": "#/components/schemas/DataWord"
|
|
1095
|
+
},
|
|
1096
|
+
"SeedHash": {
|
|
1097
|
+
"title": "seedHash",
|
|
1098
|
+
"description": "The seed hash used for the DAG.",
|
|
1099
|
+
"$ref": "#/components/schemas/DataWord"
|
|
1100
|
+
},
|
|
1101
|
+
"MixHash": {
|
|
1102
|
+
"title": "mixHash",
|
|
1103
|
+
"description": "The mix digest.",
|
|
1104
|
+
"$ref": "#/components/schemas/DataWord"
|
|
1105
|
+
},
|
|
1106
|
+
"Difficulty": {
|
|
1107
|
+
"title": "difficulty",
|
|
1108
|
+
"description": "The boundary condition ('target'), 2^256 / difficulty.",
|
|
1109
|
+
"$ref": "#/components/schemas/DataWord"
|
|
1110
|
+
},
|
|
1111
|
+
"FilterId": {
|
|
1112
|
+
"title": "filterId",
|
|
1113
|
+
"type": "string",
|
|
1114
|
+
"description": "An identifier used to reference the filter."
|
|
1115
|
+
},
|
|
1116
|
+
"BlockHash": {
|
|
1117
|
+
"title": "blockHash",
|
|
1118
|
+
"type": "string",
|
|
1119
|
+
"pattern": "^0x[a-fA-F\\d]{64}$",
|
|
1120
|
+
"description": "The hex representation of the Keccak 256 of the RLP encoded block"
|
|
1121
|
+
},
|
|
1122
|
+
"BlockNumber": {
|
|
1123
|
+
"title": "blockNumber",
|
|
1124
|
+
"type": "string",
|
|
1125
|
+
"description": "The hex representation of the block's height",
|
|
1126
|
+
"$ref": "#/components/schemas/Integer"
|
|
1127
|
+
},
|
|
1128
|
+
"BlockNumberTag": {
|
|
1129
|
+
"title": "blockNumberTag",
|
|
1130
|
+
"type": "string",
|
|
1131
|
+
"description": "The optional block height description",
|
|
1132
|
+
"enum": [
|
|
1133
|
+
"earliest",
|
|
1134
|
+
"latest",
|
|
1135
|
+
"pending"
|
|
1136
|
+
]
|
|
1137
|
+
},
|
|
1138
|
+
"BlockOrNull": {
|
|
1139
|
+
"title": "blockOrNull",
|
|
1140
|
+
"oneOf": [
|
|
1141
|
+
{
|
|
1142
|
+
"$ref": "#/components/schemas/Block"
|
|
1143
|
+
},
|
|
1144
|
+
{
|
|
1145
|
+
"$ref": "#/components/schemas/Null"
|
|
1146
|
+
}
|
|
1147
|
+
]
|
|
1148
|
+
},
|
|
1149
|
+
"IntegerOrNull": {
|
|
1150
|
+
"title": "integerOrNull",
|
|
1151
|
+
"oneOf": [
|
|
1152
|
+
{
|
|
1153
|
+
"$ref": "#/components/schemas/Integer"
|
|
1154
|
+
},
|
|
1155
|
+
{
|
|
1156
|
+
"$ref": "#/components/schemas/Null"
|
|
1157
|
+
}
|
|
1158
|
+
]
|
|
1159
|
+
},
|
|
1160
|
+
"AddressOrNull": {
|
|
1161
|
+
"title": "addressOrNull",
|
|
1162
|
+
"oneOf": [
|
|
1163
|
+
{
|
|
1164
|
+
"$ref": "#/components/schemas/Address"
|
|
1165
|
+
},
|
|
1166
|
+
{
|
|
1167
|
+
"$ref": "#/components/schemas/Null"
|
|
1168
|
+
}
|
|
1169
|
+
]
|
|
1170
|
+
},
|
|
1171
|
+
"Receipt": {
|
|
1172
|
+
"title": "receipt",
|
|
1173
|
+
"type": "object",
|
|
1174
|
+
"description": "The receipt of a transaction",
|
|
1175
|
+
"required": [
|
|
1176
|
+
"blockHash",
|
|
1177
|
+
"blockNumber",
|
|
1178
|
+
"contractAddress",
|
|
1179
|
+
"cumulativeGasUsed",
|
|
1180
|
+
"from",
|
|
1181
|
+
"gasUsed",
|
|
1182
|
+
"logs",
|
|
1183
|
+
"logsBloom",
|
|
1184
|
+
"to",
|
|
1185
|
+
"transactionHash",
|
|
1186
|
+
"transactionIndex"
|
|
1187
|
+
],
|
|
1188
|
+
"properties": {
|
|
1189
|
+
"blockHash": {
|
|
1190
|
+
"$ref": "#/components/schemas/BlockHash"
|
|
1191
|
+
},
|
|
1192
|
+
"blockNumber": {
|
|
1193
|
+
"$ref": "#/components/schemas/BlockNumber"
|
|
1194
|
+
},
|
|
1195
|
+
"contractAddress": {
|
|
1196
|
+
"title": "ReceiptContractAddress",
|
|
1197
|
+
"description": "The contract address created, if the transaction was a contract creation, otherwise null",
|
|
1198
|
+
"$ref": "#/components/schemas/AddressOrNull"
|
|
1199
|
+
},
|
|
1200
|
+
"cumulativeGasUsed": {
|
|
1201
|
+
"title": "ReceiptCumulativeGasUsed",
|
|
1202
|
+
"description": "The gas units used by the transaction",
|
|
1203
|
+
"$ref": "#/components/schemas/Integer"
|
|
1204
|
+
},
|
|
1205
|
+
"from": {
|
|
1206
|
+
"$ref": "#/components/schemas/From"
|
|
1207
|
+
},
|
|
1208
|
+
"gasUsed": {
|
|
1209
|
+
"title": "ReceiptGasUsed",
|
|
1210
|
+
"description": "The total gas used by the transaction",
|
|
1211
|
+
"$ref": "#/components/schemas/Integer"
|
|
1212
|
+
},
|
|
1213
|
+
"logs": {
|
|
1214
|
+
"title": "logs",
|
|
1215
|
+
"type": "array",
|
|
1216
|
+
"description": "An array of all the logs triggered during the transaction",
|
|
1217
|
+
"items": {
|
|
1218
|
+
"$ref": "#/components/schemas/Log"
|
|
1219
|
+
}
|
|
1220
|
+
},
|
|
1221
|
+
"logsBloom": {
|
|
1222
|
+
"$ref": "#/components/schemas/BloomFilter"
|
|
1223
|
+
},
|
|
1224
|
+
"to": {
|
|
1225
|
+
"$ref": "#/components/schemas/To"
|
|
1226
|
+
},
|
|
1227
|
+
"transactionHash": {
|
|
1228
|
+
"$ref": "#/components/schemas/TransactionHash"
|
|
1229
|
+
},
|
|
1230
|
+
"transactionIndex": {
|
|
1231
|
+
"$ref": "#/components/schemas/TransactionIndex"
|
|
1232
|
+
},
|
|
1233
|
+
"postTransactionState": {
|
|
1234
|
+
"title": "ReceiptPostTransactionState",
|
|
1235
|
+
"description": "The intermediate stateRoot directly after transaction execution.",
|
|
1236
|
+
"$ref": "#/components/schemas/Keccak"
|
|
1237
|
+
},
|
|
1238
|
+
"status": {
|
|
1239
|
+
"title": "ReceiptStatus",
|
|
1240
|
+
"description": "Whether or not the transaction threw an error.",
|
|
1241
|
+
"type": "boolean"
|
|
1242
|
+
}
|
|
1243
|
+
}
|
|
1244
|
+
},
|
|
1245
|
+
"BloomFilter": {
|
|
1246
|
+
"title": "bloomFilter",
|
|
1247
|
+
"type": "string",
|
|
1248
|
+
"description": "A 2048 bit bloom filter from the logs of the transaction. Each log sets 3 bits though taking the low-order 11 bits of each of the first three pairs of bytes in a Keccak 256 hash of the log's byte series"
|
|
1249
|
+
},
|
|
1250
|
+
"Log": {
|
|
1251
|
+
"title": "log",
|
|
1252
|
+
"type": "object",
|
|
1253
|
+
"description": "An indexed event generated during a transaction",
|
|
1254
|
+
"properties": {
|
|
1255
|
+
"address": {
|
|
1256
|
+
"title": "LogAddress",
|
|
1257
|
+
"description": "Sender of the transaction",
|
|
1258
|
+
"$ref": "#/components/schemas/Address"
|
|
1259
|
+
},
|
|
1260
|
+
"blockHash": {
|
|
1261
|
+
"$ref": "#/components/schemas/BlockHash"
|
|
1262
|
+
},
|
|
1263
|
+
"blockNumber": {
|
|
1264
|
+
"$ref": "#/components/schemas/BlockNumber"
|
|
1265
|
+
},
|
|
1266
|
+
"data": {
|
|
1267
|
+
"title": "LogData",
|
|
1268
|
+
"description": "The data/input string sent along with the transaction",
|
|
1269
|
+
"$ref": "#/components/schemas/Bytes"
|
|
1270
|
+
},
|
|
1271
|
+
"logIndex": {
|
|
1272
|
+
"title": "LogIndex",
|
|
1273
|
+
"description": "The index of the event within its transaction, null when its pending",
|
|
1274
|
+
"$ref": "#/components/schemas/Integer"
|
|
1275
|
+
},
|
|
1276
|
+
"removed": {
|
|
1277
|
+
"title": "logIsRemoved",
|
|
1278
|
+
"description": "Whether or not the log was orphaned off the main chain",
|
|
1279
|
+
"type": "boolean"
|
|
1280
|
+
},
|
|
1281
|
+
"topics": {
|
|
1282
|
+
"$ref": "#/components/schemas/Topics"
|
|
1283
|
+
},
|
|
1284
|
+
"transactionHash": {
|
|
1285
|
+
"$ref": "#/components/schemas/TransactionHash"
|
|
1286
|
+
},
|
|
1287
|
+
"transactionIndex": {
|
|
1288
|
+
"$ref": "#/components/schemas/TransactionIndex"
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
},
|
|
1292
|
+
"Topics": {
|
|
1293
|
+
"title": "LogTopics",
|
|
1294
|
+
"description": "Topics are order-dependent. Each topic can also be an array of DATA with 'or' options.",
|
|
1295
|
+
"type": "array",
|
|
1296
|
+
"items": {
|
|
1297
|
+
"$ref": "#/components/schemas/Topic"
|
|
1298
|
+
}
|
|
1299
|
+
},
|
|
1300
|
+
"Topic": {
|
|
1301
|
+
"title": "topic",
|
|
1302
|
+
"description": "32 Bytes DATA of indexed log arguments. (In solidity: The first topic is the hash of the signature of the event (e.g. Deposit(address,bytes32,uint256))",
|
|
1303
|
+
"$ref": "#/components/schemas/DataWord"
|
|
1304
|
+
},
|
|
1305
|
+
"TransactionIndex": {
|
|
1306
|
+
"title": "transactionIndex",
|
|
1307
|
+
"description": "The index of the transaction. null when its pending",
|
|
1308
|
+
"$ref": "#/components/schemas/IntegerOrNull"
|
|
1309
|
+
},
|
|
1310
|
+
"BlockNumberOrNull": {
|
|
1311
|
+
"title": "blockNumberOrNull",
|
|
1312
|
+
"description": "The block number or null when its the pending block",
|
|
1313
|
+
"oneOf": [
|
|
1314
|
+
{
|
|
1315
|
+
"$ref": "#/components/schemas/BlockNumber"
|
|
1316
|
+
},
|
|
1317
|
+
{
|
|
1318
|
+
"$ref": "#/components/schemas/Null"
|
|
1319
|
+
}
|
|
1320
|
+
]
|
|
1321
|
+
},
|
|
1322
|
+
"BlockHashOrNull": {
|
|
1323
|
+
"title": "blockHashOrNull",
|
|
1324
|
+
"description": "The block hash or null when its the pending block",
|
|
1325
|
+
"$ref": "#/components/schemas/KeccakOrPending"
|
|
1326
|
+
},
|
|
1327
|
+
"NonceOrNull": {
|
|
1328
|
+
"title": "nonceOrNull",
|
|
1329
|
+
"description": "Randomly selected number to satisfy the proof-of-work or null when its the pending block",
|
|
1330
|
+
"oneOf": [
|
|
1331
|
+
{
|
|
1332
|
+
"$ref": "#/components/schemas/Nonce"
|
|
1333
|
+
},
|
|
1334
|
+
{
|
|
1335
|
+
"$ref": "#/components/schemas/Null"
|
|
1336
|
+
}
|
|
1337
|
+
]
|
|
1338
|
+
},
|
|
1339
|
+
"From": {
|
|
1340
|
+
"title": "From",
|
|
1341
|
+
"description": "The sender of the transaction",
|
|
1342
|
+
"$ref": "#/components/schemas/Address"
|
|
1343
|
+
},
|
|
1344
|
+
"To": {
|
|
1345
|
+
"title": "To",
|
|
1346
|
+
"description": "Destination address of the transaction. Null if it was a contract create.",
|
|
1347
|
+
"oneOf": [
|
|
1348
|
+
{
|
|
1349
|
+
"$ref": "#/components/schemas/Address"
|
|
1350
|
+
},
|
|
1351
|
+
{
|
|
1352
|
+
"$ref": "#/components/schemas/Null"
|
|
1353
|
+
}
|
|
1354
|
+
]
|
|
1355
|
+
},
|
|
1356
|
+
"Block": {
|
|
1357
|
+
"title": "Block",
|
|
1358
|
+
"description": "The Block is the collection of relevant pieces of information (known as the block header), together with information corresponding to the comprised transactions, and a set of other block headers that are known to have a parent equal to the present block’s parent’s parent.",
|
|
1359
|
+
"type": "object",
|
|
1360
|
+
"properties": {
|
|
1361
|
+
"number": {
|
|
1362
|
+
"$ref": "#/components/schemas/BlockNumberOrNull"
|
|
1363
|
+
},
|
|
1364
|
+
"hash": {
|
|
1365
|
+
"$ref": "#/components/schemas/BlockHashOrNull"
|
|
1366
|
+
},
|
|
1367
|
+
"parentHash": {
|
|
1368
|
+
"$ref": "#/components/schemas/BlockHash"
|
|
1369
|
+
},
|
|
1370
|
+
"nonce": {
|
|
1371
|
+
"$ref": "#/components/schemas/NonceOrNull"
|
|
1372
|
+
},
|
|
1373
|
+
"sha3Uncles": {
|
|
1374
|
+
"title": "blockShaUncles",
|
|
1375
|
+
"description": "Keccak hash of the uncles data in the block",
|
|
1376
|
+
"$ref": "#/components/schemas/Keccak"
|
|
1377
|
+
},
|
|
1378
|
+
"logsBloom": {
|
|
1379
|
+
"title": "blockLogsBloom",
|
|
1380
|
+
"type": "string",
|
|
1381
|
+
"description": "The bloom filter for the logs of the block or null when its the pending block",
|
|
1382
|
+
"pattern": "^0x[a-fA-F\\d]+$"
|
|
1383
|
+
},
|
|
1384
|
+
"transactionsRoot": {
|
|
1385
|
+
"title": "blockTransactionsRoot",
|
|
1386
|
+
"description": "The root of the transactions trie of the block.",
|
|
1387
|
+
"$ref": "#/components/schemas/Keccak"
|
|
1388
|
+
},
|
|
1389
|
+
"stateRoot": {
|
|
1390
|
+
"title": "blockStateRoot",
|
|
1391
|
+
"description": "The root of the final state trie of the block",
|
|
1392
|
+
"$ref": "#/components/schemas/Keccak"
|
|
1393
|
+
},
|
|
1394
|
+
"receiptsRoot": {
|
|
1395
|
+
"title": "blockReceiptsRoot",
|
|
1396
|
+
"description": "The root of the receipts trie of the block",
|
|
1397
|
+
"$ref": "#/components/schemas/Keccak"
|
|
1398
|
+
},
|
|
1399
|
+
"miner": {
|
|
1400
|
+
"$ref": "#/components/schemas/AddressOrNull"
|
|
1401
|
+
},
|
|
1402
|
+
"difficulty": {
|
|
1403
|
+
"title": "blockDifficulty",
|
|
1404
|
+
"type": "string",
|
|
1405
|
+
"description": "Integer of the difficulty for this block"
|
|
1406
|
+
},
|
|
1407
|
+
"totalDifficulty": {
|
|
1408
|
+
"title": "blockTotalDifficulty",
|
|
1409
|
+
"description": "Integer of the total difficulty of the chain until this block",
|
|
1410
|
+
"$ref": "#/components/schemas/IntegerOrNull"
|
|
1411
|
+
},
|
|
1412
|
+
"extraData": {
|
|
1413
|
+
"title": "blockExtraData",
|
|
1414
|
+
"type": "string",
|
|
1415
|
+
"description": "The 'extra data' field of this block"
|
|
1416
|
+
},
|
|
1417
|
+
"size": {
|
|
1418
|
+
"title": "blockSize",
|
|
1419
|
+
"type": "string",
|
|
1420
|
+
"description": "Integer the size of this block in bytes"
|
|
1421
|
+
},
|
|
1422
|
+
"gasLimit": {
|
|
1423
|
+
"title": "blockGasLimit",
|
|
1424
|
+
"type": "string",
|
|
1425
|
+
"description": "The maximum gas allowed in this block"
|
|
1426
|
+
},
|
|
1427
|
+
"gasUsed": {
|
|
1428
|
+
"title": "blockGasUsed",
|
|
1429
|
+
"type": "string",
|
|
1430
|
+
"description": "The total used gas by all transactions in this block"
|
|
1431
|
+
},
|
|
1432
|
+
"timestamp": {
|
|
1433
|
+
"title": "blockTimeStamp",
|
|
1434
|
+
"type": "string",
|
|
1435
|
+
"description": "The unix timestamp for when the block was collated"
|
|
1436
|
+
},
|
|
1437
|
+
"transactions": {
|
|
1438
|
+
"title": "transactionsOrHashes",
|
|
1439
|
+
"description": "Array of transaction objects, or 32 Bytes transaction hashes depending on the last given parameter",
|
|
1440
|
+
"type": "array",
|
|
1441
|
+
"items": {
|
|
1442
|
+
"title": "transactionOrTransactionHash",
|
|
1443
|
+
"oneOf": [
|
|
1444
|
+
{
|
|
1445
|
+
"$ref": "#/components/schemas/Transaction"
|
|
1446
|
+
},
|
|
1447
|
+
{
|
|
1448
|
+
"$ref": "#/components/schemas/TransactionHash"
|
|
1449
|
+
}
|
|
1450
|
+
]
|
|
1451
|
+
}
|
|
1452
|
+
},
|
|
1453
|
+
"uncles": {
|
|
1454
|
+
"title": "uncleHashes",
|
|
1455
|
+
"description": "Array of uncle hashes",
|
|
1456
|
+
"type": "array",
|
|
1457
|
+
"items": {
|
|
1458
|
+
"title": "uncleHash",
|
|
1459
|
+
"description": "Block hash of the RLP encoding of an uncle block",
|
|
1460
|
+
"$ref": "#/components/schemas/Keccak"
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
}
|
|
1464
|
+
},
|
|
1465
|
+
"Transaction": {
|
|
1466
|
+
"title": "transaction",
|
|
1467
|
+
"type": "object",
|
|
1468
|
+
"required": [
|
|
1469
|
+
"gas",
|
|
1470
|
+
"gasPrice",
|
|
1471
|
+
"nonce"
|
|
1472
|
+
],
|
|
1473
|
+
"properties": {
|
|
1474
|
+
"blockHash": {
|
|
1475
|
+
"$ref": "#/components/schemas/BlockHashOrNull"
|
|
1476
|
+
},
|
|
1477
|
+
"blockNumber": {
|
|
1478
|
+
"$ref": "#/components/schemas/BlockNumberOrNull"
|
|
1479
|
+
},
|
|
1480
|
+
"from": {
|
|
1481
|
+
"$ref": "#/components/schemas/From"
|
|
1482
|
+
},
|
|
1483
|
+
"gas": {
|
|
1484
|
+
"title": "transactionGas",
|
|
1485
|
+
"type": "string",
|
|
1486
|
+
"description": "The gas limit provided by the sender in Wei"
|
|
1487
|
+
},
|
|
1488
|
+
"gasPrice": {
|
|
1489
|
+
"title": "transactionGasPrice",
|
|
1490
|
+
"type": "string",
|
|
1491
|
+
"description": "The gas price willing to be paid by the sender in Wei"
|
|
1492
|
+
},
|
|
1493
|
+
"hash": {
|
|
1494
|
+
"$ref": "#/components/schemas/TransactionHash"
|
|
1495
|
+
},
|
|
1496
|
+
"input": {
|
|
1497
|
+
"title": "transactionInput",
|
|
1498
|
+
"type": "string",
|
|
1499
|
+
"description": "The data field sent with the transaction"
|
|
1500
|
+
},
|
|
1501
|
+
"nonce": {
|
|
1502
|
+
"title": "transactionNonce",
|
|
1503
|
+
"description": "The total number of prior transactions made by the sender",
|
|
1504
|
+
"$ref": "#/components/schemas/Nonce"
|
|
1505
|
+
},
|
|
1506
|
+
"to": {
|
|
1507
|
+
"$ref": "#/components/schemas/To"
|
|
1508
|
+
},
|
|
1509
|
+
"transactionIndex": {
|
|
1510
|
+
"$ref": "#/components/schemas/TransactionIndex"
|
|
1511
|
+
},
|
|
1512
|
+
"value": {
|
|
1513
|
+
"title": "transactionValue",
|
|
1514
|
+
"description": "Value of Ether being transferred in Wei",
|
|
1515
|
+
"$ref": "#/components/schemas/Keccak"
|
|
1516
|
+
},
|
|
1517
|
+
"v": {
|
|
1518
|
+
"title": "transactionSigV",
|
|
1519
|
+
"type": "string",
|
|
1520
|
+
"description": "ECDSA recovery id"
|
|
1521
|
+
},
|
|
1522
|
+
"r": {
|
|
1523
|
+
"title": "transactionSigR",
|
|
1524
|
+
"type": "string",
|
|
1525
|
+
"description": "ECDSA signature r"
|
|
1526
|
+
},
|
|
1527
|
+
"s": {
|
|
1528
|
+
"title": "transactionSigS",
|
|
1529
|
+
"type": "string",
|
|
1530
|
+
"description": "ECDSA signature s"
|
|
1531
|
+
}
|
|
1532
|
+
}
|
|
1533
|
+
},
|
|
1534
|
+
"Transactions": {
|
|
1535
|
+
"title": "transactions",
|
|
1536
|
+
"description": "An array of transactions",
|
|
1537
|
+
"type": "array",
|
|
1538
|
+
"items": {
|
|
1539
|
+
"$ref": "#/components/schemas/Transaction"
|
|
1540
|
+
}
|
|
1541
|
+
},
|
|
1542
|
+
"TransactionHash": {
|
|
1543
|
+
"title": "transactionHash",
|
|
1544
|
+
"type": "string",
|
|
1545
|
+
"description": "Keccak 256 Hash of the RLP encoding of a transaction",
|
|
1546
|
+
"$ref": "#/components/schemas/Keccak"
|
|
1547
|
+
},
|
|
1548
|
+
"KeccakOrPending": {
|
|
1549
|
+
"title": "keccakOrPending",
|
|
1550
|
+
"oneOf": [
|
|
1551
|
+
{
|
|
1552
|
+
"$ref": "#/components/schemas/Keccak"
|
|
1553
|
+
},
|
|
1554
|
+
{
|
|
1555
|
+
"$ref": "#/components/schemas/Null"
|
|
1556
|
+
}
|
|
1557
|
+
]
|
|
1558
|
+
},
|
|
1559
|
+
"Keccak": {
|
|
1560
|
+
"title": "keccak",
|
|
1561
|
+
"type": "string",
|
|
1562
|
+
"description": "Hex representation of a Keccak 256 hash",
|
|
1563
|
+
"pattern": "^0x[a-fA-F\\d]{64}$"
|
|
1564
|
+
},
|
|
1565
|
+
"Nonce": {
|
|
1566
|
+
"title": "nonce",
|
|
1567
|
+
"description": "A number only to be used once",
|
|
1568
|
+
"$ref": "#/components/schemas/Integer"
|
|
1569
|
+
},
|
|
1570
|
+
"Null": {
|
|
1571
|
+
"title": "null",
|
|
1572
|
+
"type": "null",
|
|
1573
|
+
"description": "Null"
|
|
1574
|
+
},
|
|
1575
|
+
"Integer": {
|
|
1576
|
+
"title": "integer",
|
|
1577
|
+
"type": "string",
|
|
1578
|
+
"pattern": "^0x[a-fA-F0-9]+$",
|
|
1579
|
+
"description": "Hex representation of the integer"
|
|
1580
|
+
},
|
|
1581
|
+
"Address": {
|
|
1582
|
+
"title": "address",
|
|
1583
|
+
"type": "string",
|
|
1584
|
+
"pattern": "^0x[a-fA-F\\d]{40}$"
|
|
1585
|
+
},
|
|
1586
|
+
"Addresses": {
|
|
1587
|
+
"title": "addresses",
|
|
1588
|
+
"type": "array",
|
|
1589
|
+
"description": "List of contract addresses from which to monitor events",
|
|
1590
|
+
"items": {
|
|
1591
|
+
"$ref": "#/components/schemas/Address"
|
|
1592
|
+
}
|
|
1593
|
+
},
|
|
1594
|
+
"Position": {
|
|
1595
|
+
"title": "position",
|
|
1596
|
+
"type": "string",
|
|
1597
|
+
"description": "Hex representation of the storage slot where the variable exists",
|
|
1598
|
+
"pattern": "^0x([a-fA-F0-9]?)+$"
|
|
1599
|
+
},
|
|
1600
|
+
"DataWord": {
|
|
1601
|
+
"title": "dataWord",
|
|
1602
|
+
"type": "string",
|
|
1603
|
+
"description": "Hex representation of a 256 bit unit of data",
|
|
1604
|
+
"pattern": "^0x([a-fA-F\\d]{64})?$"
|
|
1605
|
+
},
|
|
1606
|
+
"Bytes": {
|
|
1607
|
+
"title": "bytes",
|
|
1608
|
+
"type": "string",
|
|
1609
|
+
"description": "Hex representation of a variable length byte array",
|
|
1610
|
+
"pattern": "^0x([a-fA-F0-9]?)+$"
|
|
1611
|
+
}
|
|
1612
|
+
},
|
|
1613
|
+
"contentDescriptors": {
|
|
1614
|
+
"Block": {
|
|
1615
|
+
"name": "block",
|
|
1616
|
+
"summary": "A block",
|
|
1617
|
+
"description": "A block object",
|
|
1618
|
+
"schema": {
|
|
1619
|
+
"$ref": "#/components/schemas/Block"
|
|
1620
|
+
}
|
|
1621
|
+
},
|
|
1622
|
+
"Null": {
|
|
1623
|
+
"name": "Null",
|
|
1624
|
+
"description": "JSON Null value",
|
|
1625
|
+
"summary": "Null value",
|
|
1626
|
+
"schema": {
|
|
1627
|
+
"$ref": "#/components/schemas/Null"
|
|
1628
|
+
}
|
|
1629
|
+
},
|
|
1630
|
+
"Signature": {
|
|
1631
|
+
"name": "signature",
|
|
1632
|
+
"summary": "The signature.",
|
|
1633
|
+
"required": true,
|
|
1634
|
+
"schema": {
|
|
1635
|
+
"title": "signatureBytes",
|
|
1636
|
+
"type": "string",
|
|
1637
|
+
"description": "Hex representation of byte array between 2 and 65 chars long",
|
|
1638
|
+
"pattern": "0x^([A-Fa-f0-9]{2}){65}$"
|
|
1639
|
+
}
|
|
1640
|
+
},
|
|
1641
|
+
"GasPrice": {
|
|
1642
|
+
"name": "gasPrice",
|
|
1643
|
+
"required": true,
|
|
1644
|
+
"schema": {
|
|
1645
|
+
"title": "gasPriceResult",
|
|
1646
|
+
"description": "Integer of the current gas price",
|
|
1647
|
+
"$ref": "#/components/schemas/Integer"
|
|
1648
|
+
}
|
|
1649
|
+
},
|
|
1650
|
+
"Transaction": {
|
|
1651
|
+
"required": true,
|
|
1652
|
+
"name": "transaction",
|
|
1653
|
+
"schema": {
|
|
1654
|
+
"$ref": "#/components/schemas/Transaction"
|
|
1655
|
+
}
|
|
1656
|
+
},
|
|
1657
|
+
"TransactionResult": {
|
|
1658
|
+
"name": "transactionResult",
|
|
1659
|
+
"description": "Returns a transaction or null",
|
|
1660
|
+
"schema": {
|
|
1661
|
+
"title": "TransactionOrNull",
|
|
1662
|
+
"oneOf": [
|
|
1663
|
+
{
|
|
1664
|
+
"$ref": "#/components/schemas/Transaction"
|
|
1665
|
+
},
|
|
1666
|
+
{
|
|
1667
|
+
"$ref": "#/components/schemas/Null"
|
|
1668
|
+
}
|
|
1669
|
+
]
|
|
1670
|
+
}
|
|
1671
|
+
},
|
|
1672
|
+
"UncleCountResult": {
|
|
1673
|
+
"name": "uncleCountResult",
|
|
1674
|
+
"description": "The Number of total uncles in the given block",
|
|
1675
|
+
"schema": {
|
|
1676
|
+
"$ref": "#/components/schemas/IntegerOrNull"
|
|
1677
|
+
}
|
|
1678
|
+
},
|
|
1679
|
+
"Message": {
|
|
1680
|
+
"name": "message",
|
|
1681
|
+
"required": true,
|
|
1682
|
+
"schema": {
|
|
1683
|
+
"$ref": "#/components/schemas/Bytes"
|
|
1684
|
+
}
|
|
1685
|
+
},
|
|
1686
|
+
"Filter": {
|
|
1687
|
+
"name": "filter",
|
|
1688
|
+
"required": true,
|
|
1689
|
+
"schema": {
|
|
1690
|
+
"title": "filter",
|
|
1691
|
+
"type": "object",
|
|
1692
|
+
"description": "A filter used to monitor the blockchain for log/events",
|
|
1693
|
+
"properties": {
|
|
1694
|
+
"fromBlock": {
|
|
1695
|
+
"$ref": "#/components/schemas/BlockNumber"
|
|
1696
|
+
},
|
|
1697
|
+
"toBlock": {
|
|
1698
|
+
"$ref": "#/components/schemas/BlockNumber"
|
|
1699
|
+
},
|
|
1700
|
+
"address": {
|
|
1701
|
+
"title": "oneOrArrayOfAddresses",
|
|
1702
|
+
"oneOf": [
|
|
1703
|
+
{
|
|
1704
|
+
"$ref": "#/components/schemas/Address"
|
|
1705
|
+
},
|
|
1706
|
+
{
|
|
1707
|
+
"$ref": "#/components/schemas/Addresses"
|
|
1708
|
+
}
|
|
1709
|
+
]
|
|
1710
|
+
},
|
|
1711
|
+
"topics": {
|
|
1712
|
+
"$ref": "#/components/schemas/Topics"
|
|
1713
|
+
}
|
|
1714
|
+
}
|
|
1715
|
+
}
|
|
1716
|
+
},
|
|
1717
|
+
"Address": {
|
|
1718
|
+
"name": "address",
|
|
1719
|
+
"required": true,
|
|
1720
|
+
"schema": {
|
|
1721
|
+
"$ref": "#/components/schemas/Address"
|
|
1722
|
+
}
|
|
1723
|
+
},
|
|
1724
|
+
"BlockHash": {
|
|
1725
|
+
"name": "blockHash",
|
|
1726
|
+
"required": true,
|
|
1727
|
+
"schema": {
|
|
1728
|
+
"$ref": "#/components/schemas/BlockHash"
|
|
1729
|
+
}
|
|
1730
|
+
},
|
|
1731
|
+
"Nonce": {
|
|
1732
|
+
"name": "nonce",
|
|
1733
|
+
"required": true,
|
|
1734
|
+
"schema": {
|
|
1735
|
+
"$ref": "#/components/schemas/Nonce"
|
|
1736
|
+
}
|
|
1737
|
+
},
|
|
1738
|
+
"Position": {
|
|
1739
|
+
"name": "key",
|
|
1740
|
+
"required": true,
|
|
1741
|
+
"schema": {
|
|
1742
|
+
"$ref": "#/components/schemas/Position"
|
|
1743
|
+
}
|
|
1744
|
+
},
|
|
1745
|
+
"Logs": {
|
|
1746
|
+
"name": "logs",
|
|
1747
|
+
"description": "An array of all logs matching filter with given id.",
|
|
1748
|
+
"schema": {
|
|
1749
|
+
"title": "setOfLogs",
|
|
1750
|
+
"type": "array",
|
|
1751
|
+
"items": {
|
|
1752
|
+
"$ref": "#/components/schemas/Log"
|
|
1753
|
+
}
|
|
1754
|
+
}
|
|
1755
|
+
},
|
|
1756
|
+
"FilterId": {
|
|
1757
|
+
"name": "filterId",
|
|
1758
|
+
"schema": {
|
|
1759
|
+
"$ref": "#/components/schemas/FilterId"
|
|
1760
|
+
}
|
|
1761
|
+
},
|
|
1762
|
+
"BlockNumber": {
|
|
1763
|
+
"name": "blockNumber",
|
|
1764
|
+
"required": true,
|
|
1765
|
+
"schema": {
|
|
1766
|
+
"title": "blockNumberOrTag",
|
|
1767
|
+
"oneOf": [
|
|
1768
|
+
{
|
|
1769
|
+
"$ref": "#/components/schemas/BlockNumber"
|
|
1770
|
+
},
|
|
1771
|
+
{
|
|
1772
|
+
"$ref": "#/components/schemas/BlockNumberTag"
|
|
1773
|
+
}
|
|
1774
|
+
]
|
|
1775
|
+
}
|
|
1776
|
+
},
|
|
1777
|
+
"TransactionHash": {
|
|
1778
|
+
"name": "transactionHash",
|
|
1779
|
+
"required": true,
|
|
1780
|
+
"schema": {
|
|
1781
|
+
"$ref": "#/components/schemas/TransactionHash"
|
|
1782
|
+
}
|
|
1783
|
+
}
|
|
1784
|
+
}
|
|
1785
|
+
}
|
|
1786
|
+
}
|