From 24ce9c2610c890b1b5a350f4b89e5fdad696eabd Mon Sep 17 00:00:00 2001 From: jsvisa Date: Fri, 15 Sep 2023 19:40:12 +0800 Subject: [PATCH 01/29] graphql: add schema from go-ethereum Signed-off-by: jsvisa --- graphql/schemas/schema.gql | 375 +++++++++++++++++++++++++++++++++++++ 1 file changed, 375 insertions(+) create mode 100644 graphql/schemas/schema.gql diff --git a/graphql/schemas/schema.gql b/graphql/schemas/schema.gql new file mode 100644 index 00000000..7d9e9507 --- /dev/null +++ b/graphql/schemas/schema.gql @@ -0,0 +1,375 @@ +# Copy from https://github.com/ethereum/go-ethereum/blob/master/graphql/schema.go +# Bytes32 is a 32 byte binary string, represented as 0x-prefixed hexadecimal. +scalar Bytes32 +# Address is a 20 byte Ethereum address, represented as 0x-prefixed hexadecimal. +scalar Address +# Bytes is an arbitrary length binary string, represented as 0x-prefixed hexadecimal. +# An empty byte string is represented as '0x'. Byte strings must have an even number of hexadecimal nybbles. +scalar Bytes +# BigInt is a large integer. Input is accepted as either a JSON number or as a string. +# Strings may be either decimal or 0x-prefixed hexadecimal. Output values are all +# 0x-prefixed hexadecimal. +scalar BigInt +# Long is a 64 bit unsigned integer. Input is accepted as either a JSON number or as a string. +# Strings may be either decimal or 0x-prefixed hexadecimal. Output values are all +# 0x-prefixed hexadecimal. +scalar Long + +schema { + query: Query + mutation: Mutation +} + +# Account is an Ethereum account at a particular block. +type Account { + # Address is the address owning the account. + address: Address! + # Balance is the balance of the account, in wei. + balance: BigInt! + # TransactionCount is the number of transactions sent from this account, + # or in the case of a contract, the number of contracts created. Otherwise + # known as the nonce. + transactionCount: Long! + # Code contains the smart contract code for this account, if the account + # is a (non-self-destructed) contract. + code: Bytes! + # Storage provides access to the storage of a contract account, indexed + # by its 32 byte slot identifier. + storage(slot: Bytes32!): Bytes32! +} + +# Log is an Ethereum event log. +type Log { + # Index is the index of this log in the block. + index: Long! + # Account is the account which generated this log - this will always + # be a contract account. + account(block: Long): Account! + # Topics is a list of 0-4 indexed topics for the log. + topics: [Bytes32!]! + # Data is unindexed data for this log. + data: Bytes! + # Transaction is the transaction that generated this log entry. + transaction: Transaction! +} + +# EIP-2718 +type AccessTuple { + address: Address! + storageKeys: [Bytes32!]! +} + +# EIP-4895 +type Withdrawal { + # Index is a monotonically increasing identifier issued by consensus layer. + index: Long! + # Validator is index of the validator associated with withdrawal. + validator: Long! + # Recipient address of the withdrawn amount. + address: Address! + # Amount is the withdrawal value in Gwei. + amount: Long! +} + +# Transaction is an Ethereum transaction. +type Transaction { + # Hash is the hash of this transaction. + hash: Bytes32! + # Nonce is the nonce of the account this transaction was generated with. + nonce: Long! + # Index is the index of this transaction in the parent block. This will + # be null if the transaction has not yet been mined. + index: Long + # From is the account that sent this transaction - this will always be + # an externally owned account. + from(block: Long): Account! + # To is the account the transaction was sent to. This is null for + # contract-creating transactions. + to(block: Long): Account + # Value is the value, in wei, sent along with this transaction. + value: BigInt! + # GasPrice is the price offered to miners for gas, in wei per unit. + gasPrice: BigInt! + # MaxFeePerGas is the maximum fee per gas offered to include a transaction, in wei. + maxFeePerGas: BigInt + # MaxPriorityFeePerGas is the maximum miner tip per gas offered to include a transaction, in wei. + maxPriorityFeePerGas: BigInt + # MaxFeePerBlobGas is the maximum blob gas fee cap per blob the sender is willing to pay for blob transaction, in wei. + maxFeePerBlobGas: BigInt + # EffectiveTip is the actual amount of reward going to miner after considering the max fee cap. + effectiveTip: BigInt + # Gas is the maximum amount of gas this transaction can consume. + gas: Long! + # InputData is the data supplied to the target of the transaction. + inputData: Bytes! + # Block is the block this transaction was mined in. This will be null if + # the transaction has not yet been mined. + block: Block + + # Status is the return status of the transaction. This will be 1 if the + # transaction succeeded, or 0 if it failed (due to a revert, or due to + # running out of gas). If the transaction has not yet been mined, this + # field will be null. + status: Long + # GasUsed is the amount of gas that was used processing this transaction. + # If the transaction has not yet been mined, this field will be null. + gasUsed: Long + # CumulativeGasUsed is the total gas used in the block up to and including + # this transaction. If the transaction has not yet been mined, this field + # will be null. + cumulativeGasUsed: Long + # EffectiveGasPrice is actual value per gas deducted from the sender's + # account. Before EIP-1559, this is equal to the transaction's gas price. + # After EIP-1559, it is baseFeePerGas + min(maxFeePerGas - baseFeePerGas, + # maxPriorityFeePerGas). Legacy transactions and EIP-2930 transactions are + # coerced into the EIP-1559 format by setting both maxFeePerGas and + # maxPriorityFeePerGas as the transaction's gas price. + effectiveGasPrice: BigInt + # BlobGasUsed is the amount of blob gas used by this transaction. + blobGasUsed: Long + # blobGasPrice is the actual value per blob gas deducted from the senders account. + blobGasPrice: BigInt + # CreatedContract is the account that was created by a contract creation + # transaction. If the transaction was not a contract creation transaction, + # or it has not yet been mined, this field will be null. + createdContract(block: Long): Account + # Logs is a list of log entries emitted by this transaction. If the + # transaction has not yet been mined, this field will be null. + logs: [Log!] + r: BigInt! + s: BigInt! + v: BigInt! + yParity: Long + # Envelope transaction support + type: Long + accessList: [AccessTuple!] + # Raw is the canonical encoding of the transaction. + # For legacy transactions, it returns the RLP encoding. + # For EIP-2718 typed transactions, it returns the type and payload. + raw: Bytes! + # RawReceipt is the canonical encoding of the receipt. For post EIP-2718 typed transactions + # this is equivalent to TxType || ReceiptEncoding. + rawReceipt: Bytes! + # BlobVersionedHashes is a set of hash outputs from the blobs in the transaction. + blobVersionedHashes: [Bytes32!] +} + +# BlockFilterCriteria encapsulates log filter criteria for a filter applied +# to a single block. +input BlockFilterCriteria { + # Addresses is list of addresses that are of interest. If this list is + # empty, results will not be filtered by address. + addresses: [Address!] + # Topics list restricts matches to particular event topics. Each event has a list + # of topics. Topics matches a prefix of that list. An empty element array matches any + # topic. Non-empty elements represent an alternative that matches any of the + # contained topics. + # + # Examples: + # - [] or nil matches any topic list + # - [[A]] matches topic A in first position + # - [[], [B]] matches any topic in first position, B in second position + # - [[A], [B]] matches topic A in first position, B in second position + # - [[A, B]], [C, D]] matches topic (A OR B) in first position, (C OR D) in second position + topics: [[Bytes32!]!] +} + +# Block is an Ethereum block. +type Block { + # Number is the number of this block, starting at 0 for the genesis block. + number: Long! + # Hash is the block hash of this block. + hash: Bytes32! + # Parent is the parent block of this block. + parent: Block + # Nonce is the block nonce, an 8 byte sequence determined by the miner. + nonce: Bytes! + # TransactionsRoot is the keccak256 hash of the root of the trie of transactions in this block. + transactionsRoot: Bytes32! + # TransactionCount is the number of transactions in this block. if + # transactions are not available for this block, this field will be null. + transactionCount: Long + # StateRoot is the keccak256 hash of the state trie after this block was processed. + stateRoot: Bytes32! + # ReceiptsRoot is the keccak256 hash of the trie of transaction receipts in this block. + receiptsRoot: Bytes32! + # Miner is the account that mined this block. + miner(block: Long): Account! + # ExtraData is an arbitrary data field supplied by the miner. + extraData: Bytes! + # GasLimit is the maximum amount of gas that was available to transactions in this block. + gasLimit: Long! + # GasUsed is the amount of gas that was used executing transactions in this block. + gasUsed: Long! + # BaseFeePerGas is the fee per unit of gas burned by the protocol in this block. + baseFeePerGas: BigInt + # NextBaseFeePerGas is the fee per unit of gas which needs to be burned in the next block. + nextBaseFeePerGas: BigInt + # Timestamp is the unix timestamp at which this block was mined. + timestamp: Long! + # LogsBloom is a bloom filter that can be used to check if a block may + # contain log entries matching a filter. + logsBloom: Bytes! + # MixHash is the hash that was used as an input to the PoW process. + mixHash: Bytes32! + # Difficulty is a measure of the difficulty of mining this block. + difficulty: BigInt! + # TotalDifficulty is the sum of all difficulty values up to and including + # this block. + totalDifficulty: BigInt! + # OmmerCount is the number of ommers (AKA uncles) associated with this + # block. If ommers are unavailable, this field will be null. + ommerCount: Long + # Ommers is a list of ommer (AKA uncle) blocks associated with this block. + # If ommers are unavailable, this field will be null. Depending on your + # node, the transactions, transactionAt, transactionCount, ommers, + # ommerCount and ommerAt fields may not be available on any ommer blocks. + ommers: [Block] + # OmmerAt returns the ommer (AKA uncle) at the specified index. If ommers + # are unavailable, or the index is out of bounds, this field will be null. + ommerAt(index: Long!): Block + # OmmerHash is the keccak256 hash of all the ommers (AKA uncles) + # associated with this block. + ommerHash: Bytes32! + # Transactions is a list of transactions associated with this block. If + # transactions are unavailable for this block, this field will be null. + transactions: [Transaction!] + # TransactionAt returns the transaction at the specified index. If + # transactions are unavailable for this block, or if the index is out of + # bounds, this field will be null. + transactionAt(index: Long!): Transaction + # Logs returns a filtered set of logs from this block. + logs(filter: BlockFilterCriteria!): [Log!]! + # Account fetches an Ethereum account at the current block's state. + account(address: Address!): Account! + # Call executes a local call operation at the current block's state. + call(data: CallData!): CallResult + # EstimateGas estimates the amount of gas that will be required for + # successful execution of a transaction at the current block's state. + estimateGas(data: CallData!): Long! + # RawHeader is the RLP encoding of the block's header. + rawHeader: Bytes! + # Raw is the RLP encoding of the block. + raw: Bytes! + # WithdrawalsRoot is the withdrawals trie root in this block. + # If withdrawals are unavailable for this block, this field will be null. + withdrawalsRoot: Bytes32 + # Withdrawals is a list of withdrawals associated with this block. If + # withdrawals are unavailable for this block, this field will be null. + withdrawals: [Withdrawal!] + # BlobGasUsed is the total amount of gas used by the transactions. + blobGasUsed: Long + # ExcessBlobGas is a running total of blob gas consumed in excess of the target, prior to the block. + excessBlobGas: Long +} + +# CallData represents the data associated with a local contract call. +# All fields are optional. +input CallData { + # From is the address making the call. + from: Address + # To is the address the call is sent to. + to: Address + # Gas is the amount of gas sent with the call. + gas: Long + # GasPrice is the price, in wei, offered for each unit of gas. + gasPrice: BigInt + # MaxFeePerGas is the maximum fee per gas offered, in wei. + maxFeePerGas: BigInt + # MaxPriorityFeePerGas is the maximum miner tip per gas offered, in wei. + maxPriorityFeePerGas: BigInt + # Value is the value, in wei, sent along with the call. + value: BigInt + # Data is the data sent to the callee. + data: Bytes +} + +# CallResult is the result of a local call operation. +type CallResult { + # Data is the return data of the called contract. + data: Bytes! + # GasUsed is the amount of gas used by the call, after any refunds. + gasUsed: Long! + # Status is the result of the call - 1 for success or 0 for failure. + status: Long! +} + +# FilterCriteria encapsulates log filter criteria for searching log entries. +input FilterCriteria { + # FromBlock is the block at which to start searching, inclusive. Defaults + # to the latest block if not supplied. + fromBlock: Long + # ToBlock is the block at which to stop searching, inclusive. Defaults + # to the latest block if not supplied. + toBlock: Long + # Addresses is a list of addresses that are of interest. If this list is + # empty, results will not be filtered by address. + addresses: [Address!] + # Topics list restricts matches to particular event topics. Each event has a list + # of topics. Topics matches a prefix of that list. An empty element array matches any + # topic. Non-empty elements represent an alternative that matches any of the + # contained topics. + # + # Examples: + # - [] or nil matches any topic list + # - [[A]] matches topic A in first position + # - [[], [B]] matches any topic in first position, B in second position + # - [[A], [B]] matches topic A in first position, B in second position + # - [[A, B]], [C, D]] matches topic (A OR B) in first position, (C OR D) in second position + topics: [[Bytes32!]!] +} + +# SyncState contains the current synchronisation state of the client. +type SyncState { + # StartingBlock is the block number at which synchronisation started. + startingBlock: Long! + # CurrentBlock is the point at which synchronisation has presently reached. + currentBlock: Long! + # HighestBlock is the latest known block number. + highestBlock: Long! +} + +# Pending represents the current pending state. +type Pending { + # TransactionCount is the number of transactions in the pending state. + transactionCount: Long! + # Transactions is a list of transactions in the current pending state. + transactions: [Transaction!] + # Account fetches an Ethereum account for the pending state. + account(address: Address!): Account! + # Call executes a local call operation for the pending state. + call(data: CallData!): CallResult + # EstimateGas estimates the amount of gas that will be required for + # successful execution of a transaction for the pending state. + estimateGas(data: CallData!): Long! +} + +type Query { + # Block fetches an Ethereum block by number or by hash. If neither is + # supplied, the most recent known block is returned. + block(number: Long, hash: Bytes32): Block + # Blocks returns all the blocks between two numbers, inclusive. If + # to is not supplied, it defaults to the most recent known block. + blocks(from: Long, to: Long): [Block!]! + # Pending returns the current pending state. + pending: Pending! + # Transaction returns a transaction specified by its hash. + transaction(hash: Bytes32!): Transaction + # Logs returns log entries matching the provided filter. + logs(filter: FilterCriteria!): [Log!]! + # GasPrice returns the node's estimate of a gas price sufficient to + # ensure a transaction is mined in a timely fashion. + gasPrice: BigInt! + # MaxPriorityFeePerGas returns the node's estimate of a gas tip sufficient + # to ensure a transaction is mined in a timely fashion. + maxPriorityFeePerGas: BigInt! + # Syncing returns information on the current synchronisation state. + syncing: SyncState + # ChainID returns the current chain ID for transaction replay protection. + chainID: BigInt! +} + +type Mutation { + # SendRawTransaction sends an RLP-encoded transaction to the network. + sendRawTransaction(data: Bytes!): Bytes32! +} From a7823092be4dbc0fcbe1168f0197cb2e56b465af Mon Sep 17 00:00:00 2001 From: jsvisa Date: Fri, 15 Sep 2023 19:40:39 +0800 Subject: [PATCH 02/29] tests: add graphql tests Signed-off-by: jsvisa --- graphql/tests/01_eth_blockNumber/query.gql | 5 ++ .../tests/01_eth_blockNumber/response.json | 12 ++++ graphql/tests/02_eth_call_Block8/query.gql | 15 +++++ .../tests/02_eth_call_Block8/response.json | 16 +++++ .../tests/03_eth_call_BlockLatest/query.gql | 15 +++++ .../03_eth_call_BlockLatest/response.json | 16 +++++ .../query.gql | 10 +++ .../response.json | 12 ++++ .../05_eth_estimateGas_noParams/query.gql | 5 ++ .../05_eth_estimateGas_noParams/response.json | 12 ++++ .../06_eth_estimateGas_transfer/query.gql | 10 +++ .../06_eth_estimateGas_transfer/response.json | 12 ++++ graphql/tests/07_eth_gasPrice/query.gql | 3 + graphql/tests/07_eth_gasPrice/response.json | 15 +++++ .../tests/08_eth_getBalance_0x19/query.gql | 7 +++ .../08_eth_getBalance_0x19/response.json | 14 +++++ .../query.gql | 7 +++ .../response.json | 14 +++++ .../query.gql | 7 +++ .../response.json | 14 +++++ .../tests/11_eth_getBalance_latest/query.gql | 7 +++ .../11_eth_getBalance_latest/response.json | 14 +++++ .../12_eth_getBalance_toobig_bn/query.gql | 7 +++ .../12_eth_getBalance_toobig_bn/response.json | 30 +++++++++ .../13_eth_getBalance_without_addr/query.gql | 7 +++ .../response.json | 21 +++++++ .../tests/14_eth_getBlock_byHash/query.gql | 26 ++++++++ .../14_eth_getBlock_byHash/response.json | 33 ++++++++++ .../15_eth_getBlock_byHashInvalid/query.gql | 7 +++ .../response.json | 23 +++++++ .../tests/16_eth_getBlock_byNumber/query.gql | 38 +++++++++++ .../16_eth_getBlock_byNumber/response.json | 43 +++++++++++++ .../17_eth_getBlock_byNumberInvalid/query.gql | 5 ++ .../response.json | 28 +++++++++ .../18_eth_getBlock_wrongParams/query.gql | 27 ++++++++ .../18_eth_getBlock_wrongParams/response.json | 25 ++++++++ .../query.gql | 7 +++ .../response.json | 12 ++++ .../query.gql | 23 +++++++ .../response.json | 32 ++++++++++ graphql/tests/21_eth_getCode_noCode/query.gql | 7 +++ .../tests/21_eth_getCode_noCode/response.json | 14 +++++ graphql/tests/22_eth_getCode/query.gql | 7 +++ graphql/tests/22_eth_getCode/response.json | 14 +++++ .../tests/23_eth_getLogs_matchTopic/query.gql | 24 +++++++ .../23_eth_getLogs_matchTopic/response.json | 26 ++++++++ graphql/tests/24_eth_getLogs_range/query.gql | 16 +++++ .../tests/24_eth_getLogs_range/response.json | 41 ++++++++++++ .../query.gql | 9 +++ .../response.json | 14 +++++ graphql/tests/26_eth_getStorageAt/query.gql | 9 +++ .../tests/26_eth_getStorageAt/response.json | 14 +++++ .../query.gql | 12 ++++ .../response.json | 17 +++++ .../query.gql | 10 +++ .../response.json | 17 +++++ .../query.gql | 10 +++ .../response.json | 12 ++++ .../30_eth_getTransaction_byHash/query.gql | 29 +++++++++ .../response.json | 63 +++++++++++++++++++ .../query.gql | 16 +++++ .../response.json | 10 +++ .../32_eth_getTransactionCount/query.gql | 7 +++ .../32_eth_getTransactionCount/response.json | 14 +++++ .../33_eth_getTransactionReceipt/query.gql | 27 ++++++++ .../response.json | 51 +++++++++++++++ .../query.gql | 5 ++ .../response.json | 10 +++ graphql/tests/35_graphql_pending/query.gql | 23 +++++++ .../tests/35_graphql_pending/response.json | 26 ++++++++ .../query.gql | 5 ++ .../response.json | 10 +++ .../query.gql | 5 ++ .../response.json | 25 ++++++++ .../query.gql | 5 ++ .../response.json | 10 +++ .../query.gql | 5 ++ .../response.json | 25 ++++++++ graphql/tests/40_eth_syncing/query.gql | 7 +++ graphql/tests/40_eth_syncing/response.json | 10 +++ .../tests/41_graphql_blocks_byFrom/query.gql | 5 ++ .../41_graphql_blocks_byFrom/response.json | 23 +++++++ .../tests/42_graphql_blocks_byRange/query.gql | 12 ++++ .../42_graphql_blocks_byRange/response.json | 41 ++++++++++++ .../43_graphql_blocks_byWrongRange/query.gql | 12 ++++ .../response.json | 25 ++++++++ .../tests/44_getBlock_byHexNumber/query.gql | 7 +++ .../44_getBlock_byHexNumber/response.json | 14 +++++ .../tests/45_eth_getLogs_range_hex/query.gql | 10 +++ .../45_eth_getLogs_range_hex/response.json | 23 +++++++ .../query.gql | 12 ++++ .../response.json | 17 +++++ .../query.gql | 10 +++ .../response.json | 14 +++++ graphql/tests/48_block_withdrawals/query.gql | 12 ++++ .../tests/48_block_withdrawals/response.json | 21 +++++++ .../tests/49_get_type2Transaction/query.gql | 15 +++++ .../49_get_type2Transaction/response.json | 24 +++++++ .../tests/50_eth_getBlock_shanghai/query.gql | 21 +++++++ .../50_eth_getBlock_shanghai/response.json | 30 +++++++++ 100 files changed, 1645 insertions(+) create mode 100644 graphql/tests/01_eth_blockNumber/query.gql create mode 100644 graphql/tests/01_eth_blockNumber/response.json create mode 100644 graphql/tests/02_eth_call_Block8/query.gql create mode 100644 graphql/tests/02_eth_call_Block8/response.json create mode 100644 graphql/tests/03_eth_call_BlockLatest/query.gql create mode 100644 graphql/tests/03_eth_call_BlockLatest/response.json create mode 100644 graphql/tests/04_eth_estimateGas_contractDeploy/query.gql create mode 100644 graphql/tests/04_eth_estimateGas_contractDeploy/response.json create mode 100644 graphql/tests/05_eth_estimateGas_noParams/query.gql create mode 100644 graphql/tests/05_eth_estimateGas_noParams/response.json create mode 100644 graphql/tests/06_eth_estimateGas_transfer/query.gql create mode 100644 graphql/tests/06_eth_estimateGas_transfer/response.json create mode 100644 graphql/tests/07_eth_gasPrice/query.gql create mode 100644 graphql/tests/07_eth_gasPrice/response.json create mode 100644 graphql/tests/08_eth_getBalance_0x19/query.gql create mode 100644 graphql/tests/08_eth_getBalance_0x19/response.json create mode 100644 graphql/tests/09_eth_getBalance_invalidAccountBlockNumber/query.gql create mode 100644 graphql/tests/09_eth_getBalance_invalidAccountBlockNumber/response.json create mode 100644 graphql/tests/10_eth_getBalance_invalidAccountLatest/query.gql create mode 100644 graphql/tests/10_eth_getBalance_invalidAccountLatest/response.json create mode 100644 graphql/tests/11_eth_getBalance_latest/query.gql create mode 100644 graphql/tests/11_eth_getBalance_latest/response.json create mode 100644 graphql/tests/12_eth_getBalance_toobig_bn/query.gql create mode 100644 graphql/tests/12_eth_getBalance_toobig_bn/response.json create mode 100644 graphql/tests/13_eth_getBalance_without_addr/query.gql create mode 100644 graphql/tests/13_eth_getBalance_without_addr/response.json create mode 100644 graphql/tests/14_eth_getBlock_byHash/query.gql create mode 100644 graphql/tests/14_eth_getBlock_byHash/response.json create mode 100644 graphql/tests/15_eth_getBlock_byHashInvalid/query.gql create mode 100644 graphql/tests/15_eth_getBlock_byHashInvalid/response.json create mode 100644 graphql/tests/16_eth_getBlock_byNumber/query.gql create mode 100644 graphql/tests/16_eth_getBlock_byNumber/response.json create mode 100644 graphql/tests/17_eth_getBlock_byNumberInvalid/query.gql create mode 100644 graphql/tests/17_eth_getBlock_byNumberInvalid/response.json create mode 100644 graphql/tests/18_eth_getBlock_wrongParams/query.gql create mode 100644 graphql/tests/18_eth_getBlock_wrongParams/response.json create mode 100644 graphql/tests/19_eth_getBlockTransactionCount_byHash/query.gql create mode 100644 graphql/tests/19_eth_getBlockTransactionCount_byHash/response.json create mode 100644 graphql/tests/20_eth_getBlockTransactionCount_byNumber/query.gql create mode 100644 graphql/tests/20_eth_getBlockTransactionCount_byNumber/response.json create mode 100644 graphql/tests/21_eth_getCode_noCode/query.gql create mode 100644 graphql/tests/21_eth_getCode_noCode/response.json create mode 100644 graphql/tests/22_eth_getCode/query.gql create mode 100644 graphql/tests/22_eth_getCode/response.json create mode 100644 graphql/tests/23_eth_getLogs_matchTopic/query.gql create mode 100644 graphql/tests/23_eth_getLogs_matchTopic/response.json create mode 100644 graphql/tests/24_eth_getLogs_range/query.gql create mode 100644 graphql/tests/24_eth_getLogs_range/response.json create mode 100644 graphql/tests/25_eth_getStorageAt_illegalRangeGreaterThan/query.gql create mode 100644 graphql/tests/25_eth_getStorageAt_illegalRangeGreaterThan/response.json create mode 100644 graphql/tests/26_eth_getStorageAt/query.gql create mode 100644 graphql/tests/26_eth_getStorageAt/response.json create mode 100644 graphql/tests/27_eth_getTransaction_byBlockHashAndIndex/query.gql create mode 100644 graphql/tests/27_eth_getTransaction_byBlockHashAndIndex/response.json create mode 100644 graphql/tests/28_eth_getTransaction_byBlockNumberAndIndex/query.gql create mode 100644 graphql/tests/28_eth_getTransaction_byBlockNumberAndIndex/response.json create mode 100644 graphql/tests/29_eth_getTransaction_byBlockNumberAndInvalidIndex/query.gql create mode 100644 graphql/tests/29_eth_getTransaction_byBlockNumberAndInvalidIndex/response.json create mode 100644 graphql/tests/30_eth_getTransaction_byHash/query.gql create mode 100644 graphql/tests/30_eth_getTransaction_byHash/response.json create mode 100644 graphql/tests/31_eth_getTransaction_byHashNull/query.gql create mode 100644 graphql/tests/31_eth_getTransaction_byHashNull/response.json create mode 100644 graphql/tests/32_eth_getTransactionCount/query.gql create mode 100644 graphql/tests/32_eth_getTransactionCount/response.json create mode 100644 graphql/tests/33_eth_getTransactionReceipt/query.gql create mode 100644 graphql/tests/33_eth_getTransactionReceipt/response.json create mode 100644 graphql/tests/34_eth_sendRawTransaction_contractCreation/query.gql create mode 100644 graphql/tests/34_eth_sendRawTransaction_contractCreation/response.json create mode 100644 graphql/tests/35_graphql_pending/query.gql create mode 100644 graphql/tests/35_graphql_pending/response.json create mode 100644 graphql/tests/36_eth_sendRawTransaction_messageCall/query.gql create mode 100644 graphql/tests/36_eth_sendRawTransaction_messageCall/response.json create mode 100644 graphql/tests/37_eth_sendRawTransaction_nonceTooLow/query.gql create mode 100644 graphql/tests/37_eth_sendRawTransaction_nonceTooLow/response.json create mode 100644 graphql/tests/38_eth_sendRawTransaction_transferEther/query.gql create mode 100644 graphql/tests/38_eth_sendRawTransaction_transferEther/response.json create mode 100644 graphql/tests/39_eth_sendRawTransaction_unsignedTransaction/query.gql create mode 100644 graphql/tests/39_eth_sendRawTransaction_unsignedTransaction/response.json create mode 100644 graphql/tests/40_eth_syncing/query.gql create mode 100644 graphql/tests/40_eth_syncing/response.json create mode 100644 graphql/tests/41_graphql_blocks_byFrom/query.gql create mode 100644 graphql/tests/41_graphql_blocks_byFrom/response.json create mode 100644 graphql/tests/42_graphql_blocks_byRange/query.gql create mode 100644 graphql/tests/42_graphql_blocks_byRange/response.json create mode 100644 graphql/tests/43_graphql_blocks_byWrongRange/query.gql create mode 100644 graphql/tests/43_graphql_blocks_byWrongRange/response.json create mode 100644 graphql/tests/44_getBlock_byHexNumber/query.gql create mode 100644 graphql/tests/44_getBlock_byHexNumber/response.json create mode 100644 graphql/tests/45_eth_getLogs_range_hex/query.gql create mode 100644 graphql/tests/45_eth_getLogs_range_hex/response.json create mode 100644 graphql/tests/46_transaction_fromByHexBlockNumber/query.gql create mode 100644 graphql/tests/46_transaction_fromByHexBlockNumber/response.json create mode 100644 graphql/tests/47_block_withdrawals_pre_shanghai/query.gql create mode 100644 graphql/tests/47_block_withdrawals_pre_shanghai/response.json create mode 100644 graphql/tests/48_block_withdrawals/query.gql create mode 100644 graphql/tests/48_block_withdrawals/response.json create mode 100644 graphql/tests/49_get_type2Transaction/query.gql create mode 100644 graphql/tests/49_get_type2Transaction/response.json create mode 100644 graphql/tests/50_eth_getBlock_shanghai/query.gql create mode 100644 graphql/tests/50_eth_getBlock_shanghai/response.json diff --git a/graphql/tests/01_eth_blockNumber/query.gql b/graphql/tests/01_eth_blockNumber/query.gql new file mode 100644 index 00000000..b3c0bdbe --- /dev/null +++ b/graphql/tests/01_eth_blockNumber/query.gql @@ -0,0 +1,5 @@ +{ + block { + number + } +} diff --git a/graphql/tests/01_eth_blockNumber/response.json b/graphql/tests/01_eth_blockNumber/response.json new file mode 100644 index 00000000..3c839b57 --- /dev/null +++ b/graphql/tests/01_eth_blockNumber/response.json @@ -0,0 +1,12 @@ +{ + "responses": [ + { + "data": { + "block": { + "number": "0x21" + } + } + } + ], + "statusCode": 200 +} diff --git a/graphql/tests/02_eth_call_Block8/query.gql b/graphql/tests/02_eth_call_Block8/query.gql new file mode 100644 index 00000000..13023241 --- /dev/null +++ b/graphql/tests/02_eth_call_Block8/query.gql @@ -0,0 +1,15 @@ +{ + block(number: 8) { + number + call( + data: { + from: "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" + to: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f" + data: "0x12a7b914" + } + ) { + data + status + } + } +} diff --git a/graphql/tests/02_eth_call_Block8/response.json b/graphql/tests/02_eth_call_Block8/response.json new file mode 100644 index 00000000..637490f7 --- /dev/null +++ b/graphql/tests/02_eth_call_Block8/response.json @@ -0,0 +1,16 @@ +{ + "responses": [ + { + "data": { + "block": { + "number": "0x8", + "call": { + "data": "0x0000000000000000000000000000000000000000000000000000000000000000", + "status": "0x1" + } + } + } + } + ], + "statusCode": 200 +} diff --git a/graphql/tests/03_eth_call_BlockLatest/query.gql b/graphql/tests/03_eth_call_BlockLatest/query.gql new file mode 100644 index 00000000..e6778632 --- /dev/null +++ b/graphql/tests/03_eth_call_BlockLatest/query.gql @@ -0,0 +1,15 @@ +{ + block { + number + call( + data: { + from: "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" + to: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f" + data: "0x12a7b914" + } + ) { + data + status + } + } +} diff --git a/graphql/tests/03_eth_call_BlockLatest/response.json b/graphql/tests/03_eth_call_BlockLatest/response.json new file mode 100644 index 00000000..85a1e039 --- /dev/null +++ b/graphql/tests/03_eth_call_BlockLatest/response.json @@ -0,0 +1,16 @@ +{ + "responses": [ + { + "data": { + "block": { + "number": "0x21", + "call": { + "data": "0x0000000000000000000000000000000000000000000000000000000000000001", + "status": "0x1" + } + } + } + } + ], + "statusCode": 200 +} diff --git a/graphql/tests/04_eth_estimateGas_contractDeploy/query.gql b/graphql/tests/04_eth_estimateGas_contractDeploy/query.gql new file mode 100644 index 00000000..5c204309 --- /dev/null +++ b/graphql/tests/04_eth_estimateGas_contractDeploy/query.gql @@ -0,0 +1,10 @@ +{ + block(number: 32) { + estimateGas( + data: { + from: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f" + data: "0x608060405234801561001057600080fd5b50610157806100206000396000f30060806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680633bdab8bf146100515780639ae97baa14610068575b600080fd5b34801561005d57600080fd5b5061006661007f565b005b34801561007457600080fd5b5061007d6100b9565b005b7fa53887c1eed04528e23301f55ad49a91634ef5021aa83a97d07fd16ed71c039a60016040518082815260200191505060405180910390a1565b7fa53887c1eed04528e23301f55ad49a91634ef5021aa83a97d07fd16ed71c039a60026040518082815260200191505060405180910390a17fa53887c1eed04528e23301f55ad49a91634ef5021aa83a97d07fd16ed71c039a60036040518082815260200191505060405180910390a15600a165627a7a7230582010ddaa52e73a98c06dbcd22b234b97206c1d7ed64a7c048e10c2043a3d2309cb0029" + } + ) + } +} diff --git a/graphql/tests/04_eth_estimateGas_contractDeploy/response.json b/graphql/tests/04_eth_estimateGas_contractDeploy/response.json new file mode 100644 index 00000000..0c2ee251 --- /dev/null +++ b/graphql/tests/04_eth_estimateGas_contractDeploy/response.json @@ -0,0 +1,12 @@ +{ + "responses": [ + { + "data": { + "block": { + "estimateGas": "0x1b551" + } + } + } + ], + "statusCode": 200 +} diff --git a/graphql/tests/05_eth_estimateGas_noParams/query.gql b/graphql/tests/05_eth_estimateGas_noParams/query.gql new file mode 100644 index 00000000..98866e9d --- /dev/null +++ b/graphql/tests/05_eth_estimateGas_noParams/query.gql @@ -0,0 +1,5 @@ +{ + block(number: 32) { + estimateGas(data: {}) + } +} diff --git a/graphql/tests/05_eth_estimateGas_noParams/response.json b/graphql/tests/05_eth_estimateGas_noParams/response.json new file mode 100644 index 00000000..6092da08 --- /dev/null +++ b/graphql/tests/05_eth_estimateGas_noParams/response.json @@ -0,0 +1,12 @@ +{ + "responses": [ + { + "data": { + "block": { + "estimateGas": "0x5208" + } + } + } + ], + "statusCode": 200 +} diff --git a/graphql/tests/06_eth_estimateGas_transfer/query.gql b/graphql/tests/06_eth_estimateGas_transfer/query.gql new file mode 100644 index 00000000..e470f721 --- /dev/null +++ b/graphql/tests/06_eth_estimateGas_transfer/query.gql @@ -0,0 +1,10 @@ +{ + block { + estimateGas( + data: { + from: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f" + to: "0x8888f1f195afa192cfee860698584c030f4c9db1" + } + ) + } +} diff --git a/graphql/tests/06_eth_estimateGas_transfer/response.json b/graphql/tests/06_eth_estimateGas_transfer/response.json new file mode 100644 index 00000000..6092da08 --- /dev/null +++ b/graphql/tests/06_eth_estimateGas_transfer/response.json @@ -0,0 +1,12 @@ +{ + "responses": [ + { + "data": { + "block": { + "estimateGas": "0x5208" + } + } + } + ], + "statusCode": 200 +} diff --git a/graphql/tests/07_eth_gasPrice/query.gql b/graphql/tests/07_eth_gasPrice/query.gql new file mode 100644 index 00000000..8ed549c6 --- /dev/null +++ b/graphql/tests/07_eth_gasPrice/query.gql @@ -0,0 +1,3 @@ +{ + gasPrice +} diff --git a/graphql/tests/07_eth_gasPrice/response.json b/graphql/tests/07_eth_gasPrice/response.json new file mode 100644 index 00000000..194af6d2 --- /dev/null +++ b/graphql/tests/07_eth_gasPrice/response.json @@ -0,0 +1,15 @@ +{ + "responses": [ + { + "data": { + "gasPrice": "0x10" + } + }, + { + "data": { + "gasPrice": "0x1" + } + } + ], + "statusCode": 200 +} diff --git a/graphql/tests/08_eth_getBalance_0x19/query.gql b/graphql/tests/08_eth_getBalance_0x19/query.gql new file mode 100644 index 00000000..ab7d662e --- /dev/null +++ b/graphql/tests/08_eth_getBalance_0x19/query.gql @@ -0,0 +1,7 @@ +{ + block(number: 25) { + account(address: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f") { + balance + } + } +} diff --git a/graphql/tests/08_eth_getBalance_0x19/response.json b/graphql/tests/08_eth_getBalance_0x19/response.json new file mode 100644 index 00000000..359aaa6a --- /dev/null +++ b/graphql/tests/08_eth_getBalance_0x19/response.json @@ -0,0 +1,14 @@ +{ + "responses": [ + { + "data": { + "block": { + "account": { + "balance": "0xfa" + } + } + } + } + ], + "statusCode": 200 +} diff --git a/graphql/tests/09_eth_getBalance_invalidAccountBlockNumber/query.gql b/graphql/tests/09_eth_getBalance_invalidAccountBlockNumber/query.gql new file mode 100644 index 00000000..f6a33f8e --- /dev/null +++ b/graphql/tests/09_eth_getBalance_invalidAccountBlockNumber/query.gql @@ -0,0 +1,7 @@ +{ + block(number: 25) { + account(address: "0xdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef") { + balance + } + } +} diff --git a/graphql/tests/09_eth_getBalance_invalidAccountBlockNumber/response.json b/graphql/tests/09_eth_getBalance_invalidAccountBlockNumber/response.json new file mode 100644 index 00000000..8c2e6953 --- /dev/null +++ b/graphql/tests/09_eth_getBalance_invalidAccountBlockNumber/response.json @@ -0,0 +1,14 @@ +{ + "responses": [ + { + "data": { + "block": { + "account": { + "balance": "0x0" + } + } + } + } + ], + "statusCode": 200 +} diff --git a/graphql/tests/10_eth_getBalance_invalidAccountLatest/query.gql b/graphql/tests/10_eth_getBalance_invalidAccountLatest/query.gql new file mode 100644 index 00000000..3fb32dca --- /dev/null +++ b/graphql/tests/10_eth_getBalance_invalidAccountLatest/query.gql @@ -0,0 +1,7 @@ +{ + block { + account(address: "0xdeaff00ddeaff00ddeaff00ddeaff00ddeaff00d") { + balance + } + } +} diff --git a/graphql/tests/10_eth_getBalance_invalidAccountLatest/response.json b/graphql/tests/10_eth_getBalance_invalidAccountLatest/response.json new file mode 100644 index 00000000..8c2e6953 --- /dev/null +++ b/graphql/tests/10_eth_getBalance_invalidAccountLatest/response.json @@ -0,0 +1,14 @@ +{ + "responses": [ + { + "data": { + "block": { + "account": { + "balance": "0x0" + } + } + } + } + ], + "statusCode": 200 +} diff --git a/graphql/tests/11_eth_getBalance_latest/query.gql b/graphql/tests/11_eth_getBalance_latest/query.gql new file mode 100644 index 00000000..7cec83e8 --- /dev/null +++ b/graphql/tests/11_eth_getBalance_latest/query.gql @@ -0,0 +1,7 @@ +{ + block { + account(address: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f") { + balance + } + } +} diff --git a/graphql/tests/11_eth_getBalance_latest/response.json b/graphql/tests/11_eth_getBalance_latest/response.json new file mode 100644 index 00000000..c6ebe366 --- /dev/null +++ b/graphql/tests/11_eth_getBalance_latest/response.json @@ -0,0 +1,14 @@ +{ + "responses": [ + { + "data": { + "block": { + "account": { + "balance": "0x140" + } + } + } + } + ], + "statusCode": 200 +} diff --git a/graphql/tests/12_eth_getBalance_toobig_bn/query.gql b/graphql/tests/12_eth_getBalance_toobig_bn/query.gql new file mode 100644 index 00000000..b4ccf75a --- /dev/null +++ b/graphql/tests/12_eth_getBalance_toobig_bn/query.gql @@ -0,0 +1,7 @@ +{ + block(number: 33) { + account(address: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f") { + balance + } + } +} diff --git a/graphql/tests/12_eth_getBalance_toobig_bn/response.json b/graphql/tests/12_eth_getBalance_toobig_bn/response.json new file mode 100644 index 00000000..ea57eb54 --- /dev/null +++ b/graphql/tests/12_eth_getBalance_toobig_bn/response.json @@ -0,0 +1,30 @@ +{ + "responses": [ + { + "errors": [ + { + "message": "Exception while fetching data (/account) : Invalid params", + "locations": [ + { + "line": 1, + "column": 2 + } + ], + "path": ["account"], + "extensions": { + "errorCode": -32602, + "errorMessage": "Invalid params", + "classification": "DataFetchingException" + } + } + ], + "data": null + }, + { + "data": { + "block": null + } + } + ], + "statusCode": 400 +} diff --git a/graphql/tests/13_eth_getBalance_without_addr/query.gql b/graphql/tests/13_eth_getBalance_without_addr/query.gql new file mode 100644 index 00000000..4ed8640b --- /dev/null +++ b/graphql/tests/13_eth_getBalance_without_addr/query.gql @@ -0,0 +1,7 @@ +{ + block { + account { + balance + } + } +} diff --git a/graphql/tests/13_eth_getBalance_without_addr/response.json b/graphql/tests/13_eth_getBalance_without_addr/response.json new file mode 100644 index 00000000..cf163705 --- /dev/null +++ b/graphql/tests/13_eth_getBalance_without_addr/response.json @@ -0,0 +1,21 @@ +{ + "responses": [ + { + "errors": [ + { + "message": "Validation error of type MissingFieldArgument: Missing field argument address @ 'account'", + "locations": [ + { + "line": 1, + "column": 2 + } + ], + "extensions": { + "classification": "ValidationError" + } + } + ] + } + ], + "statusCode": 400 +} diff --git a/graphql/tests/14_eth_getBlock_byHash/query.gql b/graphql/tests/14_eth_getBlock_byHash/query.gql new file mode 100644 index 00000000..59d648bf --- /dev/null +++ b/graphql/tests/14_eth_getBlock_byHash/query.gql @@ -0,0 +1,26 @@ +{ + block( + hash: "0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6" + ) { + number + transactions { + hash + } + timestamp + difficulty + totalDifficulty + gasUsed + gasLimit + hash + nonce + ommerCount + logsBloom + mixHash + ommerHash + extraData + stateRoot + receiptsRoot + transactionCount + transactionsRoot + } +} diff --git a/graphql/tests/14_eth_getBlock_byHash/response.json b/graphql/tests/14_eth_getBlock_byHash/response.json new file mode 100644 index 00000000..06b0e92b --- /dev/null +++ b/graphql/tests/14_eth_getBlock_byHash/response.json @@ -0,0 +1,33 @@ +{ + "responses": [ + { + "data": { + "block": { + "number": "0x1e", + "transactions": [ + { + "hash": "0x9cc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4" + } + ], + "timestamp": "0x561bc336", + "difficulty": "0x20740", + "totalDifficulty": "0x3e6cc0", + "gasUsed": "0x5c21", + "gasLimit": "0x2fefd8", + "hash": "0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6", + "nonce": "0x5c321bd9e9f040f1", + "ommerCount": "0x0", + "logsBloom": "0x00000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000080000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000400000000000000000200000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000800000000040000000000000000000000000000000000000000010000000000000000000000000", + "mixHash": "0x6ce1c4afb4f85fefd1b0ed966b20cd248f08d9a5b0df773f75c6c2f5cc237b7c", + "ommerHash": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "extraData": "0x", + "stateRoot": "0xdb46d6bb168130fe2cb60b4b24346137b5741f11283e0d7edace65c5f5466b2e", + "receiptsRoot": "0x88b3b304b058b39791c26fdb94a05cc16ce67cf8f84f7348cb3c60c0ff342d0d", + "transactionCount": "0x1", + "transactionsRoot": "0x5a8d5d966b48e1331ae19eb459eb28882cdc7654e615d37774b79204e875dc01" + } + } + } + ], + "statusCode": 200 +} diff --git a/graphql/tests/15_eth_getBlock_byHashInvalid/query.gql b/graphql/tests/15_eth_getBlock_byHashInvalid/query.gql new file mode 100644 index 00000000..99adcbe8 --- /dev/null +++ b/graphql/tests/15_eth_getBlock_byHashInvalid/query.gql @@ -0,0 +1,7 @@ +{ + block( + hash: "0x123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0" + ) { + number + } +} diff --git a/graphql/tests/15_eth_getBlock_byHashInvalid/response.json b/graphql/tests/15_eth_getBlock_byHashInvalid/response.json new file mode 100644 index 00000000..f7541074 --- /dev/null +++ b/graphql/tests/15_eth_getBlock_byHashInvalid/response.json @@ -0,0 +1,23 @@ +{ + "responses": [ + { + "errors": [ + { + "message": "Exception while fetching data (/block) : Block hash 0x123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0 was not found", + "locations": [ + { + "line": 1, + "column": 2 + } + ], + "path": ["block"], + "extensions": { + "classification": "DataFetchingException" + } + } + ], + "data": null + } + ], + "statusCode": 400 +} diff --git a/graphql/tests/16_eth_getBlock_byNumber/query.gql b/graphql/tests/16_eth_getBlock_byNumber/query.gql new file mode 100644 index 00000000..d54c7349 --- /dev/null +++ b/graphql/tests/16_eth_getBlock_byNumber/query.gql @@ -0,0 +1,38 @@ +{ + block(number: 30) { + transactions { + hash + } + timestamp + difficulty + totalDifficulty + gasUsed + gasLimit + hash + nonce + ommerCount + logsBloom + mixHash + ommerHash + extraData + stateRoot + receiptsRoot + transactionCount + transactionsRoot + ommers { + hash + } + ommerAt(index: 1) { + hash + } + miner { + address + } + account(address: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f") { + balance + } + parent { + hash + } + } +} diff --git a/graphql/tests/16_eth_getBlock_byNumber/response.json b/graphql/tests/16_eth_getBlock_byNumber/response.json new file mode 100644 index 00000000..eaa766a9 --- /dev/null +++ b/graphql/tests/16_eth_getBlock_byNumber/response.json @@ -0,0 +1,43 @@ +{ + "responses": [ + { + "data": { + "block": { + "transactions": [ + { + "hash": "0x9cc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4" + } + ], + "timestamp": "0x561bc336", + "difficulty": "0x20740", + "totalDifficulty": "0x3e6cc0", + "gasUsed": "0x5c21", + "gasLimit": "0x2fefd8", + "hash": "0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6", + "nonce": "0x5c321bd9e9f040f1", + "ommerCount": "0x0", + "logsBloom": "0x00000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000080000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000400000000000000000200000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000800000000040000000000000000000000000000000000000000010000000000000000000000000", + "mixHash": "0x6ce1c4afb4f85fefd1b0ed966b20cd248f08d9a5b0df773f75c6c2f5cc237b7c", + "ommerHash": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "extraData": "0x", + "stateRoot": "0xdb46d6bb168130fe2cb60b4b24346137b5741f11283e0d7edace65c5f5466b2e", + "receiptsRoot": "0x88b3b304b058b39791c26fdb94a05cc16ce67cf8f84f7348cb3c60c0ff342d0d", + "transactionCount": "0x1", + "transactionsRoot": "0x5a8d5d966b48e1331ae19eb459eb28882cdc7654e615d37774b79204e875dc01", + "ommers": [], + "ommerAt": null, + "miner": { + "address": "0x8888f1f195afa192cfee860698584c030f4c9db1" + }, + "account": { + "balance": "0x12c" + }, + "parent": { + "hash": "0xf8cfa377bd766cdf22edb388dd08cc149e85d24f2796678c835f3c54ab930803" + } + } + } + } + ], + "statusCode": 200 +} diff --git a/graphql/tests/17_eth_getBlock_byNumberInvalid/query.gql b/graphql/tests/17_eth_getBlock_byNumberInvalid/query.gql new file mode 100644 index 00000000..bb8a2809 --- /dev/null +++ b/graphql/tests/17_eth_getBlock_byNumberInvalid/query.gql @@ -0,0 +1,5 @@ +{ + block(number: 88888888) { + number + } +} diff --git a/graphql/tests/17_eth_getBlock_byNumberInvalid/response.json b/graphql/tests/17_eth_getBlock_byNumberInvalid/response.json new file mode 100644 index 00000000..c457f826 --- /dev/null +++ b/graphql/tests/17_eth_getBlock_byNumberInvalid/response.json @@ -0,0 +1,28 @@ +{ + "responses": [ + { + "errors": [ + { + "message": "Exception while fetching data (/block) : Block number 88888888 was not found", + "locations": [ + { + "line": 1, + "column": 2 + } + ], + "path": ["block"], + "extensions": { + "classification": "DataFetchingException" + } + } + ], + "data": null + }, + { + "data": { + "block": null + } + } + ], + "statusCode": 400 +} diff --git a/graphql/tests/18_eth_getBlock_wrongParams/query.gql b/graphql/tests/18_eth_getBlock_wrongParams/query.gql new file mode 100644 index 00000000..e3da7bcd --- /dev/null +++ b/graphql/tests/18_eth_getBlock_wrongParams/query.gql @@ -0,0 +1,27 @@ +{ + block( + number: "0x03" + hash: "0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6" + ) { + number + transactions { + hash + } + timestamp + difficulty + totalDifficulty + gasUsed + gasLimit + hash + nonce + ommerCount + logsBloom + mixHash + ommerHash + extraData + stateRoot + receiptsRoot + transactionCount + transactionsRoot + } +} diff --git a/graphql/tests/18_eth_getBlock_wrongParams/response.json b/graphql/tests/18_eth_getBlock_wrongParams/response.json new file mode 100644 index 00000000..7974b8d3 --- /dev/null +++ b/graphql/tests/18_eth_getBlock_wrongParams/response.json @@ -0,0 +1,25 @@ +{ + "responses": [ + { + "errors": [ + { + "message": "Exception while fetching data (/block) : Invalid params", + "locations": [ + { + "line": 1, + "column": 2 + } + ], + "path": ["block"], + "extensions": { + "errorCode": -32602, + "errorMessage": "Invalid params", + "classification": "DataFetchingException" + } + } + ], + "data": null + } + ], + "statusCode": 400 +} diff --git a/graphql/tests/19_eth_getBlockTransactionCount_byHash/query.gql b/graphql/tests/19_eth_getBlockTransactionCount_byHash/query.gql new file mode 100644 index 00000000..473262a8 --- /dev/null +++ b/graphql/tests/19_eth_getBlockTransactionCount_byHash/query.gql @@ -0,0 +1,7 @@ +{ + block( + hash: "0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6" + ) { + transactionCount + } +} diff --git a/graphql/tests/19_eth_getBlockTransactionCount_byHash/response.json b/graphql/tests/19_eth_getBlockTransactionCount_byHash/response.json new file mode 100644 index 00000000..87356cea --- /dev/null +++ b/graphql/tests/19_eth_getBlockTransactionCount_byHash/response.json @@ -0,0 +1,12 @@ +{ + "responses": [ + { + "data": { + "block": { + "transactionCount": "0x1" + } + } + } + ], + "statusCode": 200 +} diff --git a/graphql/tests/20_eth_getBlockTransactionCount_byNumber/query.gql b/graphql/tests/20_eth_getBlockTransactionCount_byNumber/query.gql new file mode 100644 index 00000000..faa2d081 --- /dev/null +++ b/graphql/tests/20_eth_getBlockTransactionCount_byNumber/query.gql @@ -0,0 +1,23 @@ +{ + block(number: 30) { + transactions { + hash + } + timestamp + difficulty + totalDifficulty + gasUsed + gasLimit + hash + nonce + ommerCount + logsBloom + mixHash + ommerHash + extraData + stateRoot + receiptsRoot + transactionCount + transactionsRoot + } +} diff --git a/graphql/tests/20_eth_getBlockTransactionCount_byNumber/response.json b/graphql/tests/20_eth_getBlockTransactionCount_byNumber/response.json new file mode 100644 index 00000000..2871eca5 --- /dev/null +++ b/graphql/tests/20_eth_getBlockTransactionCount_byNumber/response.json @@ -0,0 +1,32 @@ +{ + "responses": [ + { + "data": { + "block": { + "transactions": [ + { + "hash": "0x9cc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4" + } + ], + "timestamp": "0x561bc336", + "difficulty": "0x20740", + "totalDifficulty": "0x3e6cc0", + "gasUsed": "0x5c21", + "gasLimit": "0x2fefd8", + "hash": "0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6", + "nonce": "0x5c321bd9e9f040f1", + "ommerCount": "0x0", + "logsBloom": "0x00000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000080000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000400000000000000000200000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000800000000040000000000000000000000000000000000000000010000000000000000000000000", + "mixHash": "0x6ce1c4afb4f85fefd1b0ed966b20cd248f08d9a5b0df773f75c6c2f5cc237b7c", + "ommerHash": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "extraData": "0x", + "stateRoot": "0xdb46d6bb168130fe2cb60b4b24346137b5741f11283e0d7edace65c5f5466b2e", + "receiptsRoot": "0x88b3b304b058b39791c26fdb94a05cc16ce67cf8f84f7348cb3c60c0ff342d0d", + "transactionCount": "0x1", + "transactionsRoot": "0x5a8d5d966b48e1331ae19eb459eb28882cdc7654e615d37774b79204e875dc01" + } + } + } + ], + "statusCode": 200 +} diff --git a/graphql/tests/21_eth_getCode_noCode/query.gql b/graphql/tests/21_eth_getCode_noCode/query.gql new file mode 100644 index 00000000..debf49b8 --- /dev/null +++ b/graphql/tests/21_eth_getCode_noCode/query.gql @@ -0,0 +1,7 @@ +{ + block { + account(address: "0x8888f1f195afa192cfee860698584c030f4c9db1") { + code + } + } +} diff --git a/graphql/tests/21_eth_getCode_noCode/response.json b/graphql/tests/21_eth_getCode_noCode/response.json new file mode 100644 index 00000000..726376ab --- /dev/null +++ b/graphql/tests/21_eth_getCode_noCode/response.json @@ -0,0 +1,14 @@ +{ + "responses": [ + { + "data": { + "block": { + "account": { + "code": "0x" + } + } + } + } + ], + "statusCode": 200 +} diff --git a/graphql/tests/22_eth_getCode/query.gql b/graphql/tests/22_eth_getCode/query.gql new file mode 100644 index 00000000..2960fc49 --- /dev/null +++ b/graphql/tests/22_eth_getCode/query.gql @@ -0,0 +1,7 @@ +{ + block { + account(address: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f") { + code + } + } +} diff --git a/graphql/tests/22_eth_getCode/response.json b/graphql/tests/22_eth_getCode/response.json new file mode 100644 index 00000000..4d19db2e --- /dev/null +++ b/graphql/tests/22_eth_getCode/response.json @@ -0,0 +1,14 @@ +{ + "responses": [ + { + "data": { + "block": { + "account": { + "code": "0x6000357c010000000000000000000000000000000000000000000000000000000090048063102accc11461012c57806312a7b9141461013a5780631774e6461461014c5780631e26fd331461015d5780631f9030371461016e578063343a875d1461018057806338cc4831146101955780634e7ad367146101bd57806357cb2fc4146101cb57806365538c73146101e057806368895979146101ee57806376bc21d9146102005780639a19a9531461020e5780639dc2c8f51461021f578063a53b1c1e1461022d578063a67808571461023e578063b61c05031461024c578063c2b12a731461025a578063d2282dc51461026b578063e30081a01461027c578063e8beef5b1461028d578063f38b06001461029b578063f5b53e17146102a9578063fd408767146102bb57005b6101346104d6565b60006000f35b61014261039b565b8060005260206000f35b610157600435610326565b60006000f35b6101686004356102c9565b60006000f35b610176610442565b8060005260206000f35b6101886103d3565b8060ff1660005260206000f35b61019d610413565b8073ffffffffffffffffffffffffffffffffffffffff1660005260206000f35b6101c56104c5565b60006000f35b6101d36103b7565b8060000b60005260206000f35b6101e8610454565b60006000f35b6101f6610401565b8060005260206000f35b61020861051f565b60006000f35b6102196004356102e5565b60006000f35b610227610693565b60006000f35b610238600435610342565b60006000f35b610246610484565b60006000f35b610254610493565b60006000f35b61026560043561038d565b60006000f35b610276600435610350565b60006000f35b61028760043561035e565b60006000f35b6102956105b4565b60006000f35b6102a3610547565b60006000f35b6102b16103ef565b8060005260206000f35b6102c3610600565b60006000f35b80600060006101000a81548160ff021916908302179055505b50565b80600060016101000a81548160ff02191690837f01000000000000000000000000000000000000000000000000000000000000009081020402179055505b50565b80600060026101000a81548160ff021916908302179055505b50565b806001600050819055505b50565b806002600050819055505b50565b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908302179055505b50565b806004600050819055505b50565b6000600060009054906101000a900460ff1690506103b4565b90565b6000600060019054906101000a900460000b90506103d0565b90565b6000600060029054906101000a900460ff1690506103ec565b90565b600060016000505490506103fe565b90565b60006002600050549050610410565b90565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905061043f565b90565b60006004600050549050610451565b90565b7f65c9ac8011e286e89d02a269890f41d67ca2cc597b2c76c7c69321ff492be5806000602a81526020016000a15b565b6000602a81526020016000a05b565b60017f81933b308056e7e85668661dcd102b1f22795b4431f9cf4625794f381c271c6b6000602a81526020016000a25b565b60016000602a81526020016000a15b565b3373ffffffffffffffffffffffffffffffffffffffff1660017f0e216b62efbb97e751a2ce09f607048751720397ecfb9eef1e48a6644948985b6000602a81526020016000a35b565b3373ffffffffffffffffffffffffffffffffffffffff1660016000602a81526020016000a25b565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6001023373ffffffffffffffffffffffffffffffffffffffff1660017f317b31292193c2a4f561cc40a95ea0d97a2733f14af6d6d59522473e1f3ae65f6000602a81526020016000a45b565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6001023373ffffffffffffffffffffffffffffffffffffffff1660016000602a81526020016000a35b565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6001023373ffffffffffffffffffffffffffffffffffffffff1660017fd5f0a30e4be0c6be577a71eceb7464245a796a7e6a55c0d971837b250de05f4e60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe98152602001602a81526020016000a45b565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6001023373ffffffffffffffffffffffffffffffffffffffff16600160007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe98152602001602a81526020016000a35b56" + } + } + } + } + ], + "statusCode": 200 +} diff --git a/graphql/tests/23_eth_getLogs_matchTopic/query.gql b/graphql/tests/23_eth_getLogs_matchTopic/query.gql new file mode 100644 index 00000000..d7853716 --- /dev/null +++ b/graphql/tests/23_eth_getLogs_matchTopic/query.gql @@ -0,0 +1,24 @@ +{ + block(number: 23) { + logs( + filter: { + topics: [ + [ + "0x000000000000000000000000a94f5374fce5edbc8e2a8697c15331677e6ebf0b" + "0x65c9ac8011e286e89d02a269890f41d67ca2cc597b2c76c7c69321ff492be580" + ] + ] + } + ) { + index + topics + data + account { + address + } + transaction { + hash + } + } + } +} diff --git a/graphql/tests/23_eth_getLogs_matchTopic/response.json b/graphql/tests/23_eth_getLogs_matchTopic/response.json new file mode 100644 index 00000000..07c98efb --- /dev/null +++ b/graphql/tests/23_eth_getLogs_matchTopic/response.json @@ -0,0 +1,26 @@ +{ + "responses": [ + { + "data": { + "block": { + "logs": [ + { + "index": "0x0", + "topics": [ + "0x65c9ac8011e286e89d02a269890f41d67ca2cc597b2c76c7c69321ff492be580" + ], + "data": "0x000000000000000000000000000000000000000000000000000000000000002a", + "account": { + "address": "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f" + }, + "transaction": { + "hash": "0x97a385bf570ced7821c6495b3877ddd2afd5c452f350f0d4876e98d9161389c6" + } + } + ] + } + } + } + ], + "statusCode": 200 +} diff --git a/graphql/tests/24_eth_getLogs_range/query.gql b/graphql/tests/24_eth_getLogs_range/query.gql new file mode 100644 index 00000000..f501bc7c --- /dev/null +++ b/graphql/tests/24_eth_getLogs_range/query.gql @@ -0,0 +1,16 @@ +{ + logs(filter: { fromBlock: 20, toBlock: 24, topics: [], addresses: [] }) { + index + topics + data + account { + address + } + transaction { + hash + block { + number + } + } + } +} diff --git a/graphql/tests/24_eth_getLogs_range/response.json b/graphql/tests/24_eth_getLogs_range/response.json new file mode 100644 index 00000000..895c3a83 --- /dev/null +++ b/graphql/tests/24_eth_getLogs_range/response.json @@ -0,0 +1,41 @@ +{ + "responses": [ + { + "data": { + "logs": [ + { + "index": "0x0", + "topics": [ + "0x65c9ac8011e286e89d02a269890f41d67ca2cc597b2c76c7c69321ff492be580" + ], + "data": "0x000000000000000000000000000000000000000000000000000000000000002a", + "account": { + "address": "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f" + }, + "transaction": { + "hash": "0x97a385bf570ced7821c6495b3877ddd2afd5c452f350f0d4876e98d9161389c6", + "block": { + "number": "0x17" + } + } + }, + { + "index": "0x0", + "topics": [], + "data": "0x000000000000000000000000000000000000000000000000000000000000002a", + "account": { + "address": "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f" + }, + "transaction": { + "hash": "0x5ecd942096ab3f70c5bcc8f3a98f88c4ff0a3bd986417df9948eb1819db76d0e", + "block": { + "number": "0x18" + } + } + } + ] + } + } + ], + "statusCode": 200 +} diff --git a/graphql/tests/25_eth_getStorageAt_illegalRangeGreaterThan/query.gql b/graphql/tests/25_eth_getStorageAt_illegalRangeGreaterThan/query.gql new file mode 100644 index 00000000..e4a19dc5 --- /dev/null +++ b/graphql/tests/25_eth_getStorageAt_illegalRangeGreaterThan/query.gql @@ -0,0 +1,9 @@ +{ + block { + account(address: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f") { + storage( + slot: "0x0000000000000000000000000000000000000000000000000000000000000021" + ) + } + } +} diff --git a/graphql/tests/25_eth_getStorageAt_illegalRangeGreaterThan/response.json b/graphql/tests/25_eth_getStorageAt_illegalRangeGreaterThan/response.json new file mode 100644 index 00000000..05754213 --- /dev/null +++ b/graphql/tests/25_eth_getStorageAt_illegalRangeGreaterThan/response.json @@ -0,0 +1,14 @@ +{ + "responses": [ + { + "data": { + "block": { + "account": { + "storage": "0x0000000000000000000000000000000000000000000000000000000000000000" + } + } + } + } + ], + "statusCode": 200 +} diff --git a/graphql/tests/26_eth_getStorageAt/query.gql b/graphql/tests/26_eth_getStorageAt/query.gql new file mode 100644 index 00000000..49dc3261 --- /dev/null +++ b/graphql/tests/26_eth_getStorageAt/query.gql @@ -0,0 +1,9 @@ +{ + block { + account(address: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f") { + storage( + slot: "0x0000000000000000000000000000000000000000000000000000000000000004" + ) + } + } +} diff --git a/graphql/tests/26_eth_getStorageAt/response.json b/graphql/tests/26_eth_getStorageAt/response.json new file mode 100644 index 00000000..f2da110a --- /dev/null +++ b/graphql/tests/26_eth_getStorageAt/response.json @@ -0,0 +1,14 @@ +{ + "responses": [ + { + "data": { + "block": { + "account": { + "storage": "0xaabbccffffffffffffffffffffffffffffffffffffffffffffffffffffffffee" + } + } + } + } + ], + "statusCode": 200 +} diff --git a/graphql/tests/27_eth_getTransaction_byBlockHashAndIndex/query.gql b/graphql/tests/27_eth_getTransaction_byBlockHashAndIndex/query.gql new file mode 100644 index 00000000..06d570b2 --- /dev/null +++ b/graphql/tests/27_eth_getTransaction_byBlockHashAndIndex/query.gql @@ -0,0 +1,12 @@ +{ + block( + hash: "0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6" + ) { + transactionAt(index: 0) { + block { + hash + } + hash + } + } +} diff --git a/graphql/tests/27_eth_getTransaction_byBlockHashAndIndex/response.json b/graphql/tests/27_eth_getTransaction_byBlockHashAndIndex/response.json new file mode 100644 index 00000000..77294ede --- /dev/null +++ b/graphql/tests/27_eth_getTransaction_byBlockHashAndIndex/response.json @@ -0,0 +1,17 @@ +{ + "responses": [ + { + "data": { + "block": { + "transactionAt": { + "block": { + "hash": "0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6" + }, + "hash": "0x9cc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4" + } + } + } + } + ], + "statusCode": 200 +} diff --git a/graphql/tests/28_eth_getTransaction_byBlockNumberAndIndex/query.gql b/graphql/tests/28_eth_getTransaction_byBlockNumberAndIndex/query.gql new file mode 100644 index 00000000..a93eac86 --- /dev/null +++ b/graphql/tests/28_eth_getTransaction_byBlockNumberAndIndex/query.gql @@ -0,0 +1,10 @@ +{ + block(number: 30) { + transactionAt(index: 0) { + block { + hash + } + hash + } + } +} diff --git a/graphql/tests/28_eth_getTransaction_byBlockNumberAndIndex/response.json b/graphql/tests/28_eth_getTransaction_byBlockNumberAndIndex/response.json new file mode 100644 index 00000000..77294ede --- /dev/null +++ b/graphql/tests/28_eth_getTransaction_byBlockNumberAndIndex/response.json @@ -0,0 +1,17 @@ +{ + "responses": [ + { + "data": { + "block": { + "transactionAt": { + "block": { + "hash": "0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6" + }, + "hash": "0x9cc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4" + } + } + } + } + ], + "statusCode": 200 +} diff --git a/graphql/tests/29_eth_getTransaction_byBlockNumberAndInvalidIndex/query.gql b/graphql/tests/29_eth_getTransaction_byBlockNumberAndInvalidIndex/query.gql new file mode 100644 index 00000000..ff5803d0 --- /dev/null +++ b/graphql/tests/29_eth_getTransaction_byBlockNumberAndInvalidIndex/query.gql @@ -0,0 +1,10 @@ +{ + block(number: 30) { + transactionAt(index: 1) { + block { + hash + } + hash + } + } +} diff --git a/graphql/tests/29_eth_getTransaction_byBlockNumberAndInvalidIndex/response.json b/graphql/tests/29_eth_getTransaction_byBlockNumberAndInvalidIndex/response.json new file mode 100644 index 00000000..20399b7a --- /dev/null +++ b/graphql/tests/29_eth_getTransaction_byBlockNumberAndInvalidIndex/response.json @@ -0,0 +1,12 @@ +{ + "responses": [ + { + "data": { + "block": { + "transactionAt": null + } + } + } + ], + "statusCode": 200 +} diff --git a/graphql/tests/30_eth_getTransaction_byHash/query.gql b/graphql/tests/30_eth_getTransaction_byHash/query.gql new file mode 100644 index 00000000..29ca50e7 --- /dev/null +++ b/graphql/tests/30_eth_getTransaction_byHash/query.gql @@ -0,0 +1,29 @@ +{ + transaction( + hash: "0x9cc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4" + ) { + block { + hash + } + gas + gasPrice + hash + inputData + nonce + index + value + from { + address + } + to { + address + } + logs { + index + } + status + createdContract { + address + } + } +} diff --git a/graphql/tests/30_eth_getTransaction_byHash/response.json b/graphql/tests/30_eth_getTransaction_byHash/response.json new file mode 100644 index 00000000..35082c25 --- /dev/null +++ b/graphql/tests/30_eth_getTransaction_byHash/response.json @@ -0,0 +1,63 @@ +{ + "responses": [ + { + "data": { + "transaction": { + "block": { + "hash": "0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6" + }, + "gas": "0x4cb2f", + "gasPrice": "0x1", + "hash": "0x9cc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4", + "inputData": "0xe8beef5b", + "nonce": "0x1d", + "index": "0x0", + "value": "0xa", + "from": { + "address": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" + }, + "to": { + "address": "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f" + }, + "logs": [ + { + "index": "0x0" + } + ], + "status": null, + "createdContract": null + } + } + }, + { + "data": { + "transaction": { + "block": { + "hash": "0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6" + }, + "createdContract": null, + "from": { + "address": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" + }, + "gas": "0x4cb2f", + "gasPrice": "0x1", + "hash": "0x9cc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4", + "index": 0, + "inputData": "0xe8beef5b", + "logs": [ + { + "index": 0 + } + ], + "nonce": "0x1d", + "status": "0x0", + "to": { + "address": "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f" + }, + "value": "0xa" + } + } + } + ], + "statusCode": 200 +} diff --git a/graphql/tests/31_eth_getTransaction_byHashNull/query.gql b/graphql/tests/31_eth_getTransaction_byHashNull/query.gql new file mode 100644 index 00000000..5a8e9f9c --- /dev/null +++ b/graphql/tests/31_eth_getTransaction_byHashNull/query.gql @@ -0,0 +1,16 @@ +{ + transaction( + hash: "0xffc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4" + ) { + block { + hash + } + gas + gasPrice + hash + inputData + nonce + index + value + } +} diff --git a/graphql/tests/31_eth_getTransaction_byHashNull/response.json b/graphql/tests/31_eth_getTransaction_byHashNull/response.json new file mode 100644 index 00000000..9b5c5015 --- /dev/null +++ b/graphql/tests/31_eth_getTransaction_byHashNull/response.json @@ -0,0 +1,10 @@ +{ + "responses": [ + { + "data": { + "transaction": null + } + } + ], + "statusCode": 200 +} diff --git a/graphql/tests/32_eth_getTransactionCount/query.gql b/graphql/tests/32_eth_getTransactionCount/query.gql new file mode 100644 index 00000000..ed7a002d --- /dev/null +++ b/graphql/tests/32_eth_getTransactionCount/query.gql @@ -0,0 +1,7 @@ +{ + block { + account(address: "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b") { + transactionCount + } + } +} diff --git a/graphql/tests/32_eth_getTransactionCount/response.json b/graphql/tests/32_eth_getTransactionCount/response.json new file mode 100644 index 00000000..a3f97ed1 --- /dev/null +++ b/graphql/tests/32_eth_getTransactionCount/response.json @@ -0,0 +1,14 @@ +{ + "responses": [ + { + "data": { + "block": { + "account": { + "transactionCount": "0x21" + } + } + } + } + ], + "statusCode": 200 +} diff --git a/graphql/tests/33_eth_getTransactionReceipt/query.gql b/graphql/tests/33_eth_getTransactionReceipt/query.gql new file mode 100644 index 00000000..a4006a7e --- /dev/null +++ b/graphql/tests/33_eth_getTransactionReceipt/query.gql @@ -0,0 +1,27 @@ +{ + transaction( + hash: "0x812742182a79a8e67733edc58cfa3767aa2d7ad06439d156ddbbb33e3403b4ed" + ) { + block { + hash + logsBloom + } + hash + createdContract { + address + } + cumulativeGasUsed + gas + gasUsed + logs { + topics + } + from { + address + } + to { + address + } + index + } +} diff --git a/graphql/tests/33_eth_getTransactionReceipt/response.json b/graphql/tests/33_eth_getTransactionReceipt/response.json new file mode 100644 index 00000000..9c8694de --- /dev/null +++ b/graphql/tests/33_eth_getTransactionReceipt/response.json @@ -0,0 +1,51 @@ +{ + "responses": [ + { + "data": { + "transaction": { + "block": { + "hash": "0x10aaf14a53caf27552325374429d3558398a36d3682ede6603c2c6511896e9f9", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + "createdContract": { + "address": "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f" + }, + "cumulativeGasUsed": "0x78674", + "from": { + "address": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" + }, + "gas": "0x2fefd8", + "gasUsed": "0x78674", + "hash": "0x812742182a79a8e67733edc58cfa3767aa2d7ad06439d156ddbbb33e3403b4ed", + "index": "0x0", + "logs": [], + "to": null + } + } + }, + { + "data": { + "transaction": { + "block": { + "hash": "0x10aaf14a53caf27552325374429d3558398a36d3682ede6603c2c6511896e9f9", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + "createdContract": { + "address": "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f" + }, + "cumulativeGasUsed": "0x78674", + "from": { + "address": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" + }, + "gas": "0x2fefd8", + "gasUsed": "0x78674", + "hash": "0x812742182a79a8e67733edc58cfa3767aa2d7ad06439d156ddbbb33e3403b4ed", + "index": 0, + "logs": [], + "to": null + } + } + } + ], + "statusCode": 200 +} diff --git a/graphql/tests/34_eth_sendRawTransaction_contractCreation/query.gql b/graphql/tests/34_eth_sendRawTransaction_contractCreation/query.gql new file mode 100644 index 00000000..bec03047 --- /dev/null +++ b/graphql/tests/34_eth_sendRawTransaction_contractCreation/query.gql @@ -0,0 +1,5 @@ +mutation { + sendRawTransaction( + data: "0xf901ca3285174876e800830fffff8080b90177608060405234801561001057600080fd5b50610157806100206000396000f30060806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680633bdab8bf146100515780639ae97baa14610068575b600080fd5b34801561005d57600080fd5b5061006661007f565b005b34801561007457600080fd5b5061007d6100b9565b005b7fa53887c1eed04528e23301f55ad49a91634ef5021aa83a97d07fd16ed71c039a60016040518082815260200191505060405180910390a1565b7fa53887c1eed04528e23301f55ad49a91634ef5021aa83a97d07fd16ed71c039a60026040518082815260200191505060405180910390a17fa53887c1eed04528e23301f55ad49a91634ef5021aa83a97d07fd16ed71c039a60036040518082815260200191505060405180910390a15600a165627a7a7230582010ddaa52e73a98c06dbcd22b234b97206c1d7ed64a7c048e10c2043a3d2309cb00291ca05d71c687073e23402e59853d85c587f6eebc735082f40a450e407451b42ee2a4a07d4f2db1717dc9be745b991962193fa0d5f6059b9c92350dba3efe3a99df6b52" + ) +} diff --git a/graphql/tests/34_eth_sendRawTransaction_contractCreation/response.json b/graphql/tests/34_eth_sendRawTransaction_contractCreation/response.json new file mode 100644 index 00000000..39caa6c3 --- /dev/null +++ b/graphql/tests/34_eth_sendRawTransaction_contractCreation/response.json @@ -0,0 +1,10 @@ +{ + "responses": [ + { + "data": { + "sendRawTransaction": "0xf9a25e1d6202e9ea1d984f76939e9bb3609bfb9aea2541ae8a629270343fbb2f" + } + } + ], + "statusCode": 200 +} diff --git a/graphql/tests/35_graphql_pending/query.gql b/graphql/tests/35_graphql_pending/query.gql new file mode 100644 index 00000000..1055018d --- /dev/null +++ b/graphql/tests/35_graphql_pending/query.gql @@ -0,0 +1,23 @@ +{ + pending { + transactionCount + transactions { + nonce + gas + } + account(address: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f") { + balance + } + estimateGas(data: {}) + call( + data: { + from: "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" + to: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f" + data: "0x12a7b914" + } + ) { + data + status + } + } +} diff --git a/graphql/tests/35_graphql_pending/response.json b/graphql/tests/35_graphql_pending/response.json new file mode 100644 index 00000000..19462683 --- /dev/null +++ b/graphql/tests/35_graphql_pending/response.json @@ -0,0 +1,26 @@ +{ + "responses": [ + { + "data": { + "pending": { + "transactionCount": "0x1", + "transactions": [ + { + "nonce": "0x32", + "gas": "0xfffff" + } + ], + "account": { + "balance": "0x140" + }, + "estimateGas": "0x5208", + "call": { + "data": "0x0000000000000000000000000000000000000000000000000000000000000001", + "status": "0x1" + } + } + } + } + ], + "statusCode": 200 +} diff --git a/graphql/tests/36_eth_sendRawTransaction_messageCall/query.gql b/graphql/tests/36_eth_sendRawTransaction_messageCall/query.gql new file mode 100644 index 00000000..379dd38c --- /dev/null +++ b/graphql/tests/36_eth_sendRawTransaction_messageCall/query.gql @@ -0,0 +1,5 @@ +mutation { + sendRawTransaction( + data: "0xf8693785174876e800830fffff94450b61224a7df4d8a70f3e20d4fd6a6380b920d180843bdab8bf1ba054b00220864ab58246bbe0a6f6d50166f9bd0ba3f1711912f79c073da6368ca5a04f84bc3231ee4406b8ceb8740d6d8d1900f87b67b9f4a0a38bc55062121a94c6" + ) +} diff --git a/graphql/tests/36_eth_sendRawTransaction_messageCall/response.json b/graphql/tests/36_eth_sendRawTransaction_messageCall/response.json new file mode 100644 index 00000000..54ab2d87 --- /dev/null +++ b/graphql/tests/36_eth_sendRawTransaction_messageCall/response.json @@ -0,0 +1,10 @@ +{ + "responses": [ + { + "data": { + "sendRawTransaction": "0x6ad12f495251471d1834852623c2eeb2cb04d2fb9e1a5d6cff481cfec7b233a8" + } + } + ], + "statusCode": 200 +} diff --git a/graphql/tests/37_eth_sendRawTransaction_nonceTooLow/query.gql b/graphql/tests/37_eth_sendRawTransaction_nonceTooLow/query.gql new file mode 100644 index 00000000..a2f3bdde --- /dev/null +++ b/graphql/tests/37_eth_sendRawTransaction_nonceTooLow/query.gql @@ -0,0 +1,5 @@ +mutation { + sendRawTransaction( + data: "0xf86410018304cb2f946295ee1b4f6dd65047762f924ecd367c17eabf8f0a8457cb2fc41ca0060dc80554e845b572ab6b88dab08f7491f83b4405fea2f067a80b3742127fb0a0246160f01d027a0335be590d443335ecb2cf5d9f9589c8efffa4acbda4acafea" + ) +} diff --git a/graphql/tests/37_eth_sendRawTransaction_nonceTooLow/response.json b/graphql/tests/37_eth_sendRawTransaction_nonceTooLow/response.json new file mode 100644 index 00000000..43de7cd3 --- /dev/null +++ b/graphql/tests/37_eth_sendRawTransaction_nonceTooLow/response.json @@ -0,0 +1,25 @@ +{ + "responses": [ + { + "errors": [ + { + "message": "Exception while fetching data (/sendRawTransaction) : Nonce too low", + "locations": [ + { + "line": 1, + "column": 12 + } + ], + "path": ["sendRawTransaction"], + "extensions": { + "errorCode": -32001, + "errorMessage": "Nonce too low", + "classification": "DataFetchingException" + } + } + ], + "data": null + } + ], + "statusCode": 400 +} diff --git a/graphql/tests/38_eth_sendRawTransaction_transferEther/query.gql b/graphql/tests/38_eth_sendRawTransaction_transferEther/query.gql new file mode 100644 index 00000000..59f3203b --- /dev/null +++ b/graphql/tests/38_eth_sendRawTransaction_transferEther/query.gql @@ -0,0 +1,5 @@ +mutation { + sendRawTransaction( + data: "0xf86d3785174876e801830222e0945aae326516b4f8fe08074b7e972e40a713048d628829a2241af62c0000801ca077d36666ce36d433b6f1ac62eafe7a232354c83ad2293cfcc2445a86bcd08b4da04b8bd0918d440507ab81d47cf562addaa15a1d28ac701989f5141c8da49615d0" + ) +} diff --git a/graphql/tests/38_eth_sendRawTransaction_transferEther/response.json b/graphql/tests/38_eth_sendRawTransaction_transferEther/response.json new file mode 100644 index 00000000..214fcd96 --- /dev/null +++ b/graphql/tests/38_eth_sendRawTransaction_transferEther/response.json @@ -0,0 +1,10 @@ +{ + "responses": [ + { + "data": { + "sendRawTransaction": "0x772b6d5c64b9798865d6dfa35ba44d181abd96a448f8ab7ea9e9631cabb7b290" + } + } + ], + "statusCode": 200 +} diff --git a/graphql/tests/39_eth_sendRawTransaction_unsignedTransaction/query.gql b/graphql/tests/39_eth_sendRawTransaction_unsignedTransaction/query.gql new file mode 100644 index 00000000..f3377063 --- /dev/null +++ b/graphql/tests/39_eth_sendRawTransaction_unsignedTransaction/query.gql @@ -0,0 +1,5 @@ +mutation { + sendRawTransaction( + data: "0xed0a85174876e800830222e0945aae326516b4f8fe08074b7e972e40a713048d62880de0b6b3a7640000801c8080" + ) +} diff --git a/graphql/tests/39_eth_sendRawTransaction_unsignedTransaction/response.json b/graphql/tests/39_eth_sendRawTransaction_unsignedTransaction/response.json new file mode 100644 index 00000000..5ae27c4c --- /dev/null +++ b/graphql/tests/39_eth_sendRawTransaction_unsignedTransaction/response.json @@ -0,0 +1,25 @@ +{ + "responses": [ + { + "errors": [ + { + "message": "Exception while fetching data (/sendRawTransaction) : Invalid params", + "locations": [ + { + "line": 1, + "column": 12 + } + ], + "path": ["sendRawTransaction"], + "extensions": { + "errorCode": -32602, + "errorMessage": "Invalid params", + "classification": "DataFetchingException" + } + } + ], + "data": null + } + ], + "statusCode": 400 +} diff --git a/graphql/tests/40_eth_syncing/query.gql b/graphql/tests/40_eth_syncing/query.gql new file mode 100644 index 00000000..0ebdca5e --- /dev/null +++ b/graphql/tests/40_eth_syncing/query.gql @@ -0,0 +1,7 @@ +{ + syncing { + startingBlock + currentBlock + highestBlock + } +} diff --git a/graphql/tests/40_eth_syncing/response.json b/graphql/tests/40_eth_syncing/response.json new file mode 100644 index 00000000..55df39cf --- /dev/null +++ b/graphql/tests/40_eth_syncing/response.json @@ -0,0 +1,10 @@ +{ + "responses": [ + { + "data": { + "syncing": null + } + } + ], + "statusCode": 200 +} diff --git a/graphql/tests/41_graphql_blocks_byFrom/query.gql b/graphql/tests/41_graphql_blocks_byFrom/query.gql new file mode 100644 index 00000000..28ed65c5 --- /dev/null +++ b/graphql/tests/41_graphql_blocks_byFrom/query.gql @@ -0,0 +1,5 @@ +{ + blocks(from: 30) { + number + } +} diff --git a/graphql/tests/41_graphql_blocks_byFrom/response.json b/graphql/tests/41_graphql_blocks_byFrom/response.json new file mode 100644 index 00000000..36e4c785 --- /dev/null +++ b/graphql/tests/41_graphql_blocks_byFrom/response.json @@ -0,0 +1,23 @@ +{ + "responses": [ + { + "data": { + "blocks": [ + { + "number": "0x1e" + }, + { + "number": "0x1f" + }, + { + "number": "0x20" + }, + { + "number": "0x21" + } + ] + } + } + ], + "statusCode": 200 +} diff --git a/graphql/tests/42_graphql_blocks_byRange/query.gql b/graphql/tests/42_graphql_blocks_byRange/query.gql new file mode 100644 index 00000000..4b0d96ba --- /dev/null +++ b/graphql/tests/42_graphql_blocks_byRange/query.gql @@ -0,0 +1,12 @@ +{ + blocks(from: 30, to: 32) { + number + gasUsed + gasLimit + hash + nonce + stateRoot + receiptsRoot + transactionCount + } +} diff --git a/graphql/tests/42_graphql_blocks_byRange/response.json b/graphql/tests/42_graphql_blocks_byRange/response.json new file mode 100644 index 00000000..b73404da --- /dev/null +++ b/graphql/tests/42_graphql_blocks_byRange/response.json @@ -0,0 +1,41 @@ +{ + "responses": [ + { + "data": { + "blocks": [ + { + "number": "0x1e", + "gasUsed": "0x5c21", + "gasLimit": "0x2fefd8", + "hash": "0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6", + "nonce": "0x5c321bd9e9f040f1", + "stateRoot": "0xdb46d6bb168130fe2cb60b4b24346137b5741f11283e0d7edace65c5f5466b2e", + "receiptsRoot": "0x88b3b304b058b39791c26fdb94a05cc16ce67cf8f84f7348cb3c60c0ff342d0d", + "transactionCount": "0x1" + }, + { + "number": "0x1f", + "gasUsed": "0x5eef", + "gasLimit": "0x2fefd8", + "hash": "0x0f765087745aa259d9e5ac39c367c57432a16ed98e3b0d81c5b51d10f301dc49", + "nonce": "0xd3a27a3001616468", + "stateRoot": "0xa80997cf804269d64f2479baf535cf8f9090b70fbf515741c6995564f1e678bd", + "receiptsRoot": "0x2440c44a3f75ad8b0425a73e7be2f61a5171112465cfd14e62e735b56d7178e6", + "transactionCount": "0x1" + }, + { + "number": "0x20", + "gasUsed": "0x5c99", + "gasLimit": "0x2fefd8", + "hash": "0x71d59849ddd98543bdfbe8548f5eed559b07b8aaf196369f39134500eab68e53", + "nonce": "0xdb063000b00e8026", + "stateRoot": "0xf65f3dd13f72f5fa5607a5224691419969b4f4bae7a00a6cdb853f2ca9eeb1be", + "receiptsRoot": "0xa50a7e67e833f4502524371ee462ccbcc6c6cabd2aeb1555c56150007a53183c", + "transactionCount": "0x1" + } + ] + } + } + ], + "statusCode": 200 +} diff --git a/graphql/tests/43_graphql_blocks_byWrongRange/query.gql b/graphql/tests/43_graphql_blocks_byWrongRange/query.gql new file mode 100644 index 00000000..1aa7d47d --- /dev/null +++ b/graphql/tests/43_graphql_blocks_byWrongRange/query.gql @@ -0,0 +1,12 @@ +{ + blocks(from: "0x1e", to: "0x1c") { + number + gasUsed + gasLimit + hash + nonce + stateRoot + receiptsRoot + transactionCount + } +} diff --git a/graphql/tests/43_graphql_blocks_byWrongRange/response.json b/graphql/tests/43_graphql_blocks_byWrongRange/response.json new file mode 100644 index 00000000..c618ff6f --- /dev/null +++ b/graphql/tests/43_graphql_blocks_byWrongRange/response.json @@ -0,0 +1,25 @@ +{ + "responses": [ + { + "errors": [ + { + "message": "Exception while fetching data (/blocks) : Invalid params", + "locations": [ + { + "line": 1, + "column": 2 + } + ], + "path": ["blocks"], + "extensions": { + "errorCode": -32602, + "errorMessage": "Invalid params", + "classification": "DataFetchingException" + } + } + ], + "data": null + } + ], + "statusCode": 400 +} diff --git a/graphql/tests/44_getBlock_byHexNumber/query.gql b/graphql/tests/44_getBlock_byHexNumber/query.gql new file mode 100644 index 00000000..4c29de26 --- /dev/null +++ b/graphql/tests/44_getBlock_byHexNumber/query.gql @@ -0,0 +1,7 @@ +{ + block(number: "0x1e") { + gasUsed + gasLimit + hash + } +} diff --git a/graphql/tests/44_getBlock_byHexNumber/response.json b/graphql/tests/44_getBlock_byHexNumber/response.json new file mode 100644 index 00000000..21343cf3 --- /dev/null +++ b/graphql/tests/44_getBlock_byHexNumber/response.json @@ -0,0 +1,14 @@ +{ + "responses": [ + { + "data": { + "block": { + "gasUsed": "0x5c21", + "gasLimit": "0x2fefd8", + "hash": "0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6" + } + } + } + ], + "statusCode": 200 +} diff --git a/graphql/tests/45_eth_getLogs_range_hex/query.gql b/graphql/tests/45_eth_getLogs_range_hex/query.gql new file mode 100644 index 00000000..171752fd --- /dev/null +++ b/graphql/tests/45_eth_getLogs_range_hex/query.gql @@ -0,0 +1,10 @@ +{ + logs( + filter: { fromBlock: "0x14", toBlock: "0x18", topics: [], addresses: [] } + ) { + index + transaction { + hash + } + } +} diff --git a/graphql/tests/45_eth_getLogs_range_hex/response.json b/graphql/tests/45_eth_getLogs_range_hex/response.json new file mode 100644 index 00000000..ef0495ae --- /dev/null +++ b/graphql/tests/45_eth_getLogs_range_hex/response.json @@ -0,0 +1,23 @@ +{ + "responses": [ + { + "data": { + "logs": [ + { + "index": "0x0", + "transaction": { + "hash": "0x97a385bf570ced7821c6495b3877ddd2afd5c452f350f0d4876e98d9161389c6" + } + }, + { + "index": "0x0", + "transaction": { + "hash": "0x5ecd942096ab3f70c5bcc8f3a98f88c4ff0a3bd986417df9948eb1819db76d0e" + } + } + ] + } + } + ], + "statusCode": 200 +} diff --git a/graphql/tests/46_transaction_fromByHexBlockNumber/query.gql b/graphql/tests/46_transaction_fromByHexBlockNumber/query.gql new file mode 100644 index 00000000..7f50dcef --- /dev/null +++ b/graphql/tests/46_transaction_fromByHexBlockNumber/query.gql @@ -0,0 +1,12 @@ +{ + transaction( + hash: "0x9cc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4" + ) { + block { + number + } + from(block: "0x1d") { + transactionCount + } + } +} diff --git a/graphql/tests/46_transaction_fromByHexBlockNumber/response.json b/graphql/tests/46_transaction_fromByHexBlockNumber/response.json new file mode 100644 index 00000000..5149c37c --- /dev/null +++ b/graphql/tests/46_transaction_fromByHexBlockNumber/response.json @@ -0,0 +1,17 @@ +{ + "responses": [ + { + "data": { + "transaction": { + "block": { + "number": "0x1e" + }, + "from": { + "transactionCount": "0x1d" + } + } + } + } + ], + "statusCode": 200 +} diff --git a/graphql/tests/47_block_withdrawals_pre_shanghai/query.gql b/graphql/tests/47_block_withdrawals_pre_shanghai/query.gql new file mode 100644 index 00000000..d5589bf6 --- /dev/null +++ b/graphql/tests/47_block_withdrawals_pre_shanghai/query.gql @@ -0,0 +1,10 @@ +{ + block(number: 32) { + number + withdrawalsRoot + withdrawals { + index + amount + } + } +} diff --git a/graphql/tests/47_block_withdrawals_pre_shanghai/response.json b/graphql/tests/47_block_withdrawals_pre_shanghai/response.json new file mode 100644 index 00000000..36c0d16b --- /dev/null +++ b/graphql/tests/47_block_withdrawals_pre_shanghai/response.json @@ -0,0 +1,14 @@ +{ + "responses": [ + { + "data": { + "block": { + "number": "0x20", + "withdrawalsRoot": null, + "withdrawals": null + } + } + } + ], + "statusCode": 200 +} diff --git a/graphql/tests/48_block_withdrawals/query.gql b/graphql/tests/48_block_withdrawals/query.gql new file mode 100644 index 00000000..64957154 --- /dev/null +++ b/graphql/tests/48_block_withdrawals/query.gql @@ -0,0 +1,12 @@ +{ + block(number: 33) { + number + withdrawalsRoot + withdrawals { + index + amount + validator + address + } + } +} diff --git a/graphql/tests/48_block_withdrawals/response.json b/graphql/tests/48_block_withdrawals/response.json new file mode 100644 index 00000000..5c4e59a3 --- /dev/null +++ b/graphql/tests/48_block_withdrawals/response.json @@ -0,0 +1,21 @@ +{ + "responses": [ + { + "data": { + "block": { + "number": "0x21", + "withdrawalsRoot": "0x37945ab58d2712a26df2a38d217e822694927e29b30d5993d7a53ccea618d1f3", + "withdrawals": [ + { + "index": "0x0", + "amount": "0x2540be400", + "validator": "0xa", + "address": "0x0000000000000000000000000000000000000dad" + } + ] + } + } + } + ], + "statusCode": 200 +} diff --git a/graphql/tests/49_get_type2Transaction/query.gql b/graphql/tests/49_get_type2Transaction/query.gql new file mode 100644 index 00000000..4d57f10d --- /dev/null +++ b/graphql/tests/49_get_type2Transaction/query.gql @@ -0,0 +1,15 @@ +{ + transaction( + hash: "0x3ecd2ca6cf26c864d0ea5f038a58d4cd4a46a3e242fe92f446f392fdc232dd98" + ) { + accessList { + address + storageKeys + } + maxFeePerGas + maxPriorityFeePerGas + nonce + type + status + } +} diff --git a/graphql/tests/49_get_type2Transaction/response.json b/graphql/tests/49_get_type2Transaction/response.json new file mode 100644 index 00000000..4ee3d16f --- /dev/null +++ b/graphql/tests/49_get_type2Transaction/response.json @@ -0,0 +1,24 @@ +{ + "responses": [ + { + "data": { + "transaction": { + "accessList": [ + { + "address": "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f", + "storageKeys": [ + "0x0000000000000000000000000000000000000000000000000000000000000000" + ] + } + ], + "maxFeePerGas": "0xb2d05e00", + "maxPriorityFeePerGas": "0x3b9aca00", + "nonce": "0x20", + "type": "0x2", + "status": "0x1" + } + } + } + ], + "statusCode": 200 +} diff --git a/graphql/tests/50_eth_getBlock_shanghai/query.gql b/graphql/tests/50_eth_getBlock_shanghai/query.gql new file mode 100644 index 00000000..e46ec76d --- /dev/null +++ b/graphql/tests/50_eth_getBlock_shanghai/query.gql @@ -0,0 +1,21 @@ +{ + block(number: 33) { + baseFeePerGas + difficulty + extraData + miner { + address + } + mixHash + nonce + stateRoot + totalDifficulty + withdrawalsRoot + withdrawals { + address + amount + index + validator + } + } +} diff --git a/graphql/tests/50_eth_getBlock_shanghai/response.json b/graphql/tests/50_eth_getBlock_shanghai/response.json new file mode 100644 index 00000000..7c752a34 --- /dev/null +++ b/graphql/tests/50_eth_getBlock_shanghai/response.json @@ -0,0 +1,30 @@ +{ + "responses": [ + { + "data": { + "block": { + "baseFeePerGas": "0x3b9aca00", + "difficulty": "0x0", + "extraData": "0x", + "miner": { + "address": "0x0000000000000000000000000000000000000000" + }, + "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000", + "nonce": "0x0000000000000000", + "stateRoot": "0x0d3c456bb68669bad05da3a1a766daab236c9df1da8f74edf5ebe9383f00084c", + "totalDifficulty": "0x427c00", + "withdrawalsRoot": "0x37945ab58d2712a26df2a38d217e822694927e29b30d5993d7a53ccea618d1f3", + "withdrawals": [ + { + "address": "0x0000000000000000000000000000000000000dad", + "amount": "0x2540be400", + "index": "0x0", + "validator": "0xa" + } + ] + } + } + } + ], + "statusCode": 200 +} From cb71baab83393a08075eb3f8977c8ec1bd50f73d Mon Sep 17 00:00:00 2001 From: jsvisa Date: Fri, 15 Sep 2023 20:10:49 +0800 Subject: [PATCH 03/29] graphql/tests: rename query.gql to request.gql Signed-off-by: jsvisa --- graphql/tests/01_eth_blockNumber/{query.gql => request.gql} | 0 graphql/tests/02_eth_call_Block8/{query.gql => request.gql} | 0 graphql/tests/03_eth_call_BlockLatest/{query.gql => request.gql} | 0 .../04_eth_estimateGas_contractDeploy/{query.gql => request.gql} | 0 .../tests/05_eth_estimateGas_noParams/{query.gql => request.gql} | 0 .../tests/06_eth_estimateGas_transfer/{query.gql => request.gql} | 0 graphql/tests/07_eth_gasPrice/{query.gql => request.gql} | 0 graphql/tests/08_eth_getBalance_0x19/{query.gql => request.gql} | 0 .../{query.gql => request.gql} | 0 .../{query.gql => request.gql} | 0 graphql/tests/11_eth_getBalance_latest/{query.gql => request.gql} | 0 .../tests/12_eth_getBalance_toobig_bn/{query.gql => request.gql} | 0 .../13_eth_getBalance_without_addr/{query.gql => request.gql} | 0 graphql/tests/14_eth_getBlock_byHash/{query.gql => request.gql} | 0 .../15_eth_getBlock_byHashInvalid/{query.gql => request.gql} | 0 graphql/tests/16_eth_getBlock_byNumber/{query.gql => request.gql} | 0 .../17_eth_getBlock_byNumberInvalid/{query.gql => request.gql} | 0 .../tests/18_eth_getBlock_wrongParams/{query.gql => request.gql} | 0 .../{query.gql => request.gql} | 0 .../{query.gql => request.gql} | 0 graphql/tests/21_eth_getCode_noCode/{query.gql => request.gql} | 0 graphql/tests/22_eth_getCode/{query.gql => request.gql} | 0 .../tests/23_eth_getLogs_matchTopic/{query.gql => request.gql} | 0 graphql/tests/24_eth_getLogs_range/{query.gql => request.gql} | 0 .../{query.gql => request.gql} | 0 graphql/tests/26_eth_getStorageAt/{query.gql => request.gql} | 0 .../{query.gql => request.gql} | 0 .../{query.gql => request.gql} | 0 .../{query.gql => request.gql} | 0 .../tests/30_eth_getTransaction_byHash/{query.gql => request.gql} | 0 .../31_eth_getTransaction_byHashNull/{query.gql => request.gql} | 0 .../tests/32_eth_getTransactionCount/{query.gql => request.gql} | 0 .../tests/33_eth_getTransactionReceipt/{query.gql => request.gql} | 0 .../{query.gql => request.gql} | 0 graphql/tests/35_graphql_pending/{query.gql => request.gql} | 0 .../{query.gql => request.gql} | 0 .../{query.gql => request.gql} | 0 .../{query.gql => request.gql} | 0 .../{query.gql => request.gql} | 0 graphql/tests/40_eth_syncing/{query.gql => request.gql} | 0 graphql/tests/41_graphql_blocks_byFrom/{query.gql => request.gql} | 0 .../tests/42_graphql_blocks_byRange/{query.gql => request.gql} | 0 .../43_graphql_blocks_byWrongRange/{query.gql => request.gql} | 0 graphql/tests/44_getBlock_byHexNumber/{query.gql => request.gql} | 0 graphql/tests/45_eth_getLogs_range_hex/{query.gql => request.gql} | 0 .../{query.gql => request.gql} | 0 .../47_block_withdrawals_pre_shanghai/{query.gql => request.gql} | 0 graphql/tests/48_block_withdrawals/{query.gql => request.gql} | 0 graphql/tests/49_get_type2Transaction/{query.gql => request.gql} | 0 graphql/tests/50_eth_getBlock_shanghai/{query.gql => request.gql} | 0 50 files changed, 0 insertions(+), 0 deletions(-) rename graphql/tests/01_eth_blockNumber/{query.gql => request.gql} (100%) rename graphql/tests/02_eth_call_Block8/{query.gql => request.gql} (100%) rename graphql/tests/03_eth_call_BlockLatest/{query.gql => request.gql} (100%) rename graphql/tests/04_eth_estimateGas_contractDeploy/{query.gql => request.gql} (100%) rename graphql/tests/05_eth_estimateGas_noParams/{query.gql => request.gql} (100%) rename graphql/tests/06_eth_estimateGas_transfer/{query.gql => request.gql} (100%) rename graphql/tests/07_eth_gasPrice/{query.gql => request.gql} (100%) rename graphql/tests/08_eth_getBalance_0x19/{query.gql => request.gql} (100%) rename graphql/tests/09_eth_getBalance_invalidAccountBlockNumber/{query.gql => request.gql} (100%) rename graphql/tests/10_eth_getBalance_invalidAccountLatest/{query.gql => request.gql} (100%) rename graphql/tests/11_eth_getBalance_latest/{query.gql => request.gql} (100%) rename graphql/tests/12_eth_getBalance_toobig_bn/{query.gql => request.gql} (100%) rename graphql/tests/13_eth_getBalance_without_addr/{query.gql => request.gql} (100%) rename graphql/tests/14_eth_getBlock_byHash/{query.gql => request.gql} (100%) rename graphql/tests/15_eth_getBlock_byHashInvalid/{query.gql => request.gql} (100%) rename graphql/tests/16_eth_getBlock_byNumber/{query.gql => request.gql} (100%) rename graphql/tests/17_eth_getBlock_byNumberInvalid/{query.gql => request.gql} (100%) rename graphql/tests/18_eth_getBlock_wrongParams/{query.gql => request.gql} (100%) rename graphql/tests/19_eth_getBlockTransactionCount_byHash/{query.gql => request.gql} (100%) rename graphql/tests/20_eth_getBlockTransactionCount_byNumber/{query.gql => request.gql} (100%) rename graphql/tests/21_eth_getCode_noCode/{query.gql => request.gql} (100%) rename graphql/tests/22_eth_getCode/{query.gql => request.gql} (100%) rename graphql/tests/23_eth_getLogs_matchTopic/{query.gql => request.gql} (100%) rename graphql/tests/24_eth_getLogs_range/{query.gql => request.gql} (100%) rename graphql/tests/25_eth_getStorageAt_illegalRangeGreaterThan/{query.gql => request.gql} (100%) rename graphql/tests/26_eth_getStorageAt/{query.gql => request.gql} (100%) rename graphql/tests/27_eth_getTransaction_byBlockHashAndIndex/{query.gql => request.gql} (100%) rename graphql/tests/28_eth_getTransaction_byBlockNumberAndIndex/{query.gql => request.gql} (100%) rename graphql/tests/29_eth_getTransaction_byBlockNumberAndInvalidIndex/{query.gql => request.gql} (100%) rename graphql/tests/30_eth_getTransaction_byHash/{query.gql => request.gql} (100%) rename graphql/tests/31_eth_getTransaction_byHashNull/{query.gql => request.gql} (100%) rename graphql/tests/32_eth_getTransactionCount/{query.gql => request.gql} (100%) rename graphql/tests/33_eth_getTransactionReceipt/{query.gql => request.gql} (100%) rename graphql/tests/34_eth_sendRawTransaction_contractCreation/{query.gql => request.gql} (100%) rename graphql/tests/35_graphql_pending/{query.gql => request.gql} (100%) rename graphql/tests/36_eth_sendRawTransaction_messageCall/{query.gql => request.gql} (100%) rename graphql/tests/37_eth_sendRawTransaction_nonceTooLow/{query.gql => request.gql} (100%) rename graphql/tests/38_eth_sendRawTransaction_transferEther/{query.gql => request.gql} (100%) rename graphql/tests/39_eth_sendRawTransaction_unsignedTransaction/{query.gql => request.gql} (100%) rename graphql/tests/40_eth_syncing/{query.gql => request.gql} (100%) rename graphql/tests/41_graphql_blocks_byFrom/{query.gql => request.gql} (100%) rename graphql/tests/42_graphql_blocks_byRange/{query.gql => request.gql} (100%) rename graphql/tests/43_graphql_blocks_byWrongRange/{query.gql => request.gql} (100%) rename graphql/tests/44_getBlock_byHexNumber/{query.gql => request.gql} (100%) rename graphql/tests/45_eth_getLogs_range_hex/{query.gql => request.gql} (100%) rename graphql/tests/46_transaction_fromByHexBlockNumber/{query.gql => request.gql} (100%) rename graphql/tests/47_block_withdrawals_pre_shanghai/{query.gql => request.gql} (100%) rename graphql/tests/48_block_withdrawals/{query.gql => request.gql} (100%) rename graphql/tests/49_get_type2Transaction/{query.gql => request.gql} (100%) rename graphql/tests/50_eth_getBlock_shanghai/{query.gql => request.gql} (100%) diff --git a/graphql/tests/01_eth_blockNumber/query.gql b/graphql/tests/01_eth_blockNumber/request.gql similarity index 100% rename from graphql/tests/01_eth_blockNumber/query.gql rename to graphql/tests/01_eth_blockNumber/request.gql diff --git a/graphql/tests/02_eth_call_Block8/query.gql b/graphql/tests/02_eth_call_Block8/request.gql similarity index 100% rename from graphql/tests/02_eth_call_Block8/query.gql rename to graphql/tests/02_eth_call_Block8/request.gql diff --git a/graphql/tests/03_eth_call_BlockLatest/query.gql b/graphql/tests/03_eth_call_BlockLatest/request.gql similarity index 100% rename from graphql/tests/03_eth_call_BlockLatest/query.gql rename to graphql/tests/03_eth_call_BlockLatest/request.gql diff --git a/graphql/tests/04_eth_estimateGas_contractDeploy/query.gql b/graphql/tests/04_eth_estimateGas_contractDeploy/request.gql similarity index 100% rename from graphql/tests/04_eth_estimateGas_contractDeploy/query.gql rename to graphql/tests/04_eth_estimateGas_contractDeploy/request.gql diff --git a/graphql/tests/05_eth_estimateGas_noParams/query.gql b/graphql/tests/05_eth_estimateGas_noParams/request.gql similarity index 100% rename from graphql/tests/05_eth_estimateGas_noParams/query.gql rename to graphql/tests/05_eth_estimateGas_noParams/request.gql diff --git a/graphql/tests/06_eth_estimateGas_transfer/query.gql b/graphql/tests/06_eth_estimateGas_transfer/request.gql similarity index 100% rename from graphql/tests/06_eth_estimateGas_transfer/query.gql rename to graphql/tests/06_eth_estimateGas_transfer/request.gql diff --git a/graphql/tests/07_eth_gasPrice/query.gql b/graphql/tests/07_eth_gasPrice/request.gql similarity index 100% rename from graphql/tests/07_eth_gasPrice/query.gql rename to graphql/tests/07_eth_gasPrice/request.gql diff --git a/graphql/tests/08_eth_getBalance_0x19/query.gql b/graphql/tests/08_eth_getBalance_0x19/request.gql similarity index 100% rename from graphql/tests/08_eth_getBalance_0x19/query.gql rename to graphql/tests/08_eth_getBalance_0x19/request.gql diff --git a/graphql/tests/09_eth_getBalance_invalidAccountBlockNumber/query.gql b/graphql/tests/09_eth_getBalance_invalidAccountBlockNumber/request.gql similarity index 100% rename from graphql/tests/09_eth_getBalance_invalidAccountBlockNumber/query.gql rename to graphql/tests/09_eth_getBalance_invalidAccountBlockNumber/request.gql diff --git a/graphql/tests/10_eth_getBalance_invalidAccountLatest/query.gql b/graphql/tests/10_eth_getBalance_invalidAccountLatest/request.gql similarity index 100% rename from graphql/tests/10_eth_getBalance_invalidAccountLatest/query.gql rename to graphql/tests/10_eth_getBalance_invalidAccountLatest/request.gql diff --git a/graphql/tests/11_eth_getBalance_latest/query.gql b/graphql/tests/11_eth_getBalance_latest/request.gql similarity index 100% rename from graphql/tests/11_eth_getBalance_latest/query.gql rename to graphql/tests/11_eth_getBalance_latest/request.gql diff --git a/graphql/tests/12_eth_getBalance_toobig_bn/query.gql b/graphql/tests/12_eth_getBalance_toobig_bn/request.gql similarity index 100% rename from graphql/tests/12_eth_getBalance_toobig_bn/query.gql rename to graphql/tests/12_eth_getBalance_toobig_bn/request.gql diff --git a/graphql/tests/13_eth_getBalance_without_addr/query.gql b/graphql/tests/13_eth_getBalance_without_addr/request.gql similarity index 100% rename from graphql/tests/13_eth_getBalance_without_addr/query.gql rename to graphql/tests/13_eth_getBalance_without_addr/request.gql diff --git a/graphql/tests/14_eth_getBlock_byHash/query.gql b/graphql/tests/14_eth_getBlock_byHash/request.gql similarity index 100% rename from graphql/tests/14_eth_getBlock_byHash/query.gql rename to graphql/tests/14_eth_getBlock_byHash/request.gql diff --git a/graphql/tests/15_eth_getBlock_byHashInvalid/query.gql b/graphql/tests/15_eth_getBlock_byHashInvalid/request.gql similarity index 100% rename from graphql/tests/15_eth_getBlock_byHashInvalid/query.gql rename to graphql/tests/15_eth_getBlock_byHashInvalid/request.gql diff --git a/graphql/tests/16_eth_getBlock_byNumber/query.gql b/graphql/tests/16_eth_getBlock_byNumber/request.gql similarity index 100% rename from graphql/tests/16_eth_getBlock_byNumber/query.gql rename to graphql/tests/16_eth_getBlock_byNumber/request.gql diff --git a/graphql/tests/17_eth_getBlock_byNumberInvalid/query.gql b/graphql/tests/17_eth_getBlock_byNumberInvalid/request.gql similarity index 100% rename from graphql/tests/17_eth_getBlock_byNumberInvalid/query.gql rename to graphql/tests/17_eth_getBlock_byNumberInvalid/request.gql diff --git a/graphql/tests/18_eth_getBlock_wrongParams/query.gql b/graphql/tests/18_eth_getBlock_wrongParams/request.gql similarity index 100% rename from graphql/tests/18_eth_getBlock_wrongParams/query.gql rename to graphql/tests/18_eth_getBlock_wrongParams/request.gql diff --git a/graphql/tests/19_eth_getBlockTransactionCount_byHash/query.gql b/graphql/tests/19_eth_getBlockTransactionCount_byHash/request.gql similarity index 100% rename from graphql/tests/19_eth_getBlockTransactionCount_byHash/query.gql rename to graphql/tests/19_eth_getBlockTransactionCount_byHash/request.gql diff --git a/graphql/tests/20_eth_getBlockTransactionCount_byNumber/query.gql b/graphql/tests/20_eth_getBlockTransactionCount_byNumber/request.gql similarity index 100% rename from graphql/tests/20_eth_getBlockTransactionCount_byNumber/query.gql rename to graphql/tests/20_eth_getBlockTransactionCount_byNumber/request.gql diff --git a/graphql/tests/21_eth_getCode_noCode/query.gql b/graphql/tests/21_eth_getCode_noCode/request.gql similarity index 100% rename from graphql/tests/21_eth_getCode_noCode/query.gql rename to graphql/tests/21_eth_getCode_noCode/request.gql diff --git a/graphql/tests/22_eth_getCode/query.gql b/graphql/tests/22_eth_getCode/request.gql similarity index 100% rename from graphql/tests/22_eth_getCode/query.gql rename to graphql/tests/22_eth_getCode/request.gql diff --git a/graphql/tests/23_eth_getLogs_matchTopic/query.gql b/graphql/tests/23_eth_getLogs_matchTopic/request.gql similarity index 100% rename from graphql/tests/23_eth_getLogs_matchTopic/query.gql rename to graphql/tests/23_eth_getLogs_matchTopic/request.gql diff --git a/graphql/tests/24_eth_getLogs_range/query.gql b/graphql/tests/24_eth_getLogs_range/request.gql similarity index 100% rename from graphql/tests/24_eth_getLogs_range/query.gql rename to graphql/tests/24_eth_getLogs_range/request.gql diff --git a/graphql/tests/25_eth_getStorageAt_illegalRangeGreaterThan/query.gql b/graphql/tests/25_eth_getStorageAt_illegalRangeGreaterThan/request.gql similarity index 100% rename from graphql/tests/25_eth_getStorageAt_illegalRangeGreaterThan/query.gql rename to graphql/tests/25_eth_getStorageAt_illegalRangeGreaterThan/request.gql diff --git a/graphql/tests/26_eth_getStorageAt/query.gql b/graphql/tests/26_eth_getStorageAt/request.gql similarity index 100% rename from graphql/tests/26_eth_getStorageAt/query.gql rename to graphql/tests/26_eth_getStorageAt/request.gql diff --git a/graphql/tests/27_eth_getTransaction_byBlockHashAndIndex/query.gql b/graphql/tests/27_eth_getTransaction_byBlockHashAndIndex/request.gql similarity index 100% rename from graphql/tests/27_eth_getTransaction_byBlockHashAndIndex/query.gql rename to graphql/tests/27_eth_getTransaction_byBlockHashAndIndex/request.gql diff --git a/graphql/tests/28_eth_getTransaction_byBlockNumberAndIndex/query.gql b/graphql/tests/28_eth_getTransaction_byBlockNumberAndIndex/request.gql similarity index 100% rename from graphql/tests/28_eth_getTransaction_byBlockNumberAndIndex/query.gql rename to graphql/tests/28_eth_getTransaction_byBlockNumberAndIndex/request.gql diff --git a/graphql/tests/29_eth_getTransaction_byBlockNumberAndInvalidIndex/query.gql b/graphql/tests/29_eth_getTransaction_byBlockNumberAndInvalidIndex/request.gql similarity index 100% rename from graphql/tests/29_eth_getTransaction_byBlockNumberAndInvalidIndex/query.gql rename to graphql/tests/29_eth_getTransaction_byBlockNumberAndInvalidIndex/request.gql diff --git a/graphql/tests/30_eth_getTransaction_byHash/query.gql b/graphql/tests/30_eth_getTransaction_byHash/request.gql similarity index 100% rename from graphql/tests/30_eth_getTransaction_byHash/query.gql rename to graphql/tests/30_eth_getTransaction_byHash/request.gql diff --git a/graphql/tests/31_eth_getTransaction_byHashNull/query.gql b/graphql/tests/31_eth_getTransaction_byHashNull/request.gql similarity index 100% rename from graphql/tests/31_eth_getTransaction_byHashNull/query.gql rename to graphql/tests/31_eth_getTransaction_byHashNull/request.gql diff --git a/graphql/tests/32_eth_getTransactionCount/query.gql b/graphql/tests/32_eth_getTransactionCount/request.gql similarity index 100% rename from graphql/tests/32_eth_getTransactionCount/query.gql rename to graphql/tests/32_eth_getTransactionCount/request.gql diff --git a/graphql/tests/33_eth_getTransactionReceipt/query.gql b/graphql/tests/33_eth_getTransactionReceipt/request.gql similarity index 100% rename from graphql/tests/33_eth_getTransactionReceipt/query.gql rename to graphql/tests/33_eth_getTransactionReceipt/request.gql diff --git a/graphql/tests/34_eth_sendRawTransaction_contractCreation/query.gql b/graphql/tests/34_eth_sendRawTransaction_contractCreation/request.gql similarity index 100% rename from graphql/tests/34_eth_sendRawTransaction_contractCreation/query.gql rename to graphql/tests/34_eth_sendRawTransaction_contractCreation/request.gql diff --git a/graphql/tests/35_graphql_pending/query.gql b/graphql/tests/35_graphql_pending/request.gql similarity index 100% rename from graphql/tests/35_graphql_pending/query.gql rename to graphql/tests/35_graphql_pending/request.gql diff --git a/graphql/tests/36_eth_sendRawTransaction_messageCall/query.gql b/graphql/tests/36_eth_sendRawTransaction_messageCall/request.gql similarity index 100% rename from graphql/tests/36_eth_sendRawTransaction_messageCall/query.gql rename to graphql/tests/36_eth_sendRawTransaction_messageCall/request.gql diff --git a/graphql/tests/37_eth_sendRawTransaction_nonceTooLow/query.gql b/graphql/tests/37_eth_sendRawTransaction_nonceTooLow/request.gql similarity index 100% rename from graphql/tests/37_eth_sendRawTransaction_nonceTooLow/query.gql rename to graphql/tests/37_eth_sendRawTransaction_nonceTooLow/request.gql diff --git a/graphql/tests/38_eth_sendRawTransaction_transferEther/query.gql b/graphql/tests/38_eth_sendRawTransaction_transferEther/request.gql similarity index 100% rename from graphql/tests/38_eth_sendRawTransaction_transferEther/query.gql rename to graphql/tests/38_eth_sendRawTransaction_transferEther/request.gql diff --git a/graphql/tests/39_eth_sendRawTransaction_unsignedTransaction/query.gql b/graphql/tests/39_eth_sendRawTransaction_unsignedTransaction/request.gql similarity index 100% rename from graphql/tests/39_eth_sendRawTransaction_unsignedTransaction/query.gql rename to graphql/tests/39_eth_sendRawTransaction_unsignedTransaction/request.gql diff --git a/graphql/tests/40_eth_syncing/query.gql b/graphql/tests/40_eth_syncing/request.gql similarity index 100% rename from graphql/tests/40_eth_syncing/query.gql rename to graphql/tests/40_eth_syncing/request.gql diff --git a/graphql/tests/41_graphql_blocks_byFrom/query.gql b/graphql/tests/41_graphql_blocks_byFrom/request.gql similarity index 100% rename from graphql/tests/41_graphql_blocks_byFrom/query.gql rename to graphql/tests/41_graphql_blocks_byFrom/request.gql diff --git a/graphql/tests/42_graphql_blocks_byRange/query.gql b/graphql/tests/42_graphql_blocks_byRange/request.gql similarity index 100% rename from graphql/tests/42_graphql_blocks_byRange/query.gql rename to graphql/tests/42_graphql_blocks_byRange/request.gql diff --git a/graphql/tests/43_graphql_blocks_byWrongRange/query.gql b/graphql/tests/43_graphql_blocks_byWrongRange/request.gql similarity index 100% rename from graphql/tests/43_graphql_blocks_byWrongRange/query.gql rename to graphql/tests/43_graphql_blocks_byWrongRange/request.gql diff --git a/graphql/tests/44_getBlock_byHexNumber/query.gql b/graphql/tests/44_getBlock_byHexNumber/request.gql similarity index 100% rename from graphql/tests/44_getBlock_byHexNumber/query.gql rename to graphql/tests/44_getBlock_byHexNumber/request.gql diff --git a/graphql/tests/45_eth_getLogs_range_hex/query.gql b/graphql/tests/45_eth_getLogs_range_hex/request.gql similarity index 100% rename from graphql/tests/45_eth_getLogs_range_hex/query.gql rename to graphql/tests/45_eth_getLogs_range_hex/request.gql diff --git a/graphql/tests/46_transaction_fromByHexBlockNumber/query.gql b/graphql/tests/46_transaction_fromByHexBlockNumber/request.gql similarity index 100% rename from graphql/tests/46_transaction_fromByHexBlockNumber/query.gql rename to graphql/tests/46_transaction_fromByHexBlockNumber/request.gql diff --git a/graphql/tests/47_block_withdrawals_pre_shanghai/query.gql b/graphql/tests/47_block_withdrawals_pre_shanghai/request.gql similarity index 100% rename from graphql/tests/47_block_withdrawals_pre_shanghai/query.gql rename to graphql/tests/47_block_withdrawals_pre_shanghai/request.gql diff --git a/graphql/tests/48_block_withdrawals/query.gql b/graphql/tests/48_block_withdrawals/request.gql similarity index 100% rename from graphql/tests/48_block_withdrawals/query.gql rename to graphql/tests/48_block_withdrawals/request.gql diff --git a/graphql/tests/49_get_type2Transaction/query.gql b/graphql/tests/49_get_type2Transaction/request.gql similarity index 100% rename from graphql/tests/49_get_type2Transaction/query.gql rename to graphql/tests/49_get_type2Transaction/request.gql diff --git a/graphql/tests/50_eth_getBlock_shanghai/query.gql b/graphql/tests/50_eth_getBlock_shanghai/request.gql similarity index 100% rename from graphql/tests/50_eth_getBlock_shanghai/query.gql rename to graphql/tests/50_eth_getBlock_shanghai/request.gql From bdd28dd6507a9e73156583ebb5e3eff90b0db5c5 Mon Sep 17 00:00:00 2001 From: jsvisa Date: Fri, 15 Sep 2023 20:20:33 +0800 Subject: [PATCH 04/29] scripts: graphql schema validate Signed-off-by: jsvisa --- scripts/graphql-schema-validate.js | 38 ++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 scripts/graphql-schema-validate.js diff --git a/scripts/graphql-schema-validate.js b/scripts/graphql-schema-validate.js new file mode 100644 index 00000000..cc74cb43 --- /dev/null +++ b/scripts/graphql-schema-validate.js @@ -0,0 +1,38 @@ +import fs from 'fs'; +import graphql from 'graphql'; + +// Validate JSON schema +const raw = fs.readFileSync('graphql/schemas/schema.gql', 'utf8'); +const schema = graphql.buildSchema(raw); +graphql.assertValidSchema(schema); +console.log('GraphQL schema validated successfully.'); + +fs.readdir('graphql/tests', (_, files) => { + files.forEach((file) => { + const query = graphql.parse( + fs.readFileSync(`graphql/tests/${file}/request.gql`, 'utf8') + ); + const output = JSON.parse( + fs.readFileSync(`graphql/tests/${file}/response.json`, 'utf8') + ); + if (!('statusCode' in output) || !('responses' in output)) { + throw new Error( + `GraphQL response ${file} without 'statusCode' or 'responses' keys` + ); + } + if (output['statusCode'] === 200) { + const result = graphql.validate(schema, query); + if (result.length === 0) { + console.log(`GraphQL request ${file} validated successfully.`); + } else { + throw new Error( + `GraphQL query ${file} failed validation:\n${JSON.stringify( + result, + null, + 2 + )}` + ); + } + } + }); +}); From 412fc7f08b5cd9f1ad292f4159f76505917e0760 Mon Sep 17 00:00:00 2001 From: jsvisa Date: Fri, 15 Sep 2023 20:21:30 +0800 Subject: [PATCH 05/29] package/lint: run graphql-schema-validate Signed-off-by: jsvisa --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0b150576..4b01164a 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "build": "npm run build:spec", "build:spec": "node scripts/build.js", "build:docs": "cd build/docs/gatsby && npm install --legacy-peer-deps && gatsby build --prefix-paths", - "lint": "node scripts/build.js && node scripts/validate.js && node scripts/graphql-validate.js", + "lint": "node scripts/build.js && node scripts/validate.js && node scripts/graphql-validate.js && node scripts/graphql-schema-validate.js", "clean": "rm -rf build && mkdir -p build", "generate-clients": "mkdir -p build && open-rpc-generator generate -c open-rpc-generator-config.json", "graphql:schema": "node scripts/graphql.js", From bcc830ebe54c7fca0026729092d67d97aa48346e Mon Sep 17 00:00:00 2001 From: jsvisa Date: Mon, 18 Sep 2023 22:28:39 +0800 Subject: [PATCH 06/29] graphql: regenerate Signed-off-by: jsvisa --- graphql.json | 12 ++++++++++++ schema.graphqls | 5 +++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/graphql.json b/graphql.json index 8e839114..d32ed85a 100644 --- a/graphql.json +++ b/graphql.json @@ -2093,6 +2093,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "yParity", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Long", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "type", "description": "Envelope transaction support", diff --git a/schema.graphqls b/schema.graphqls index 59ee6e33..e459ed49 100644 --- a/schema.graphqls +++ b/schema.graphqls @@ -189,7 +189,7 @@ type Block { raw: Bytes! """ - WithdrawalsRoot is withdrawals trie root in this block. + WithdrawalsRoot is the withdrawals trie root in this block. If withdrawals are unavailable for this block, this field will be null. """ withdrawalsRoot: Bytes32 @@ -535,6 +535,7 @@ type Transaction { r: BigInt! s: BigInt! v: BigInt! + yParity: Long """Envelope transaction support""" type: Long @@ -569,4 +570,4 @@ type Withdrawal { """Amount is the withdrawal value in Gwei.""" amount: Long! -} +} \ No newline at end of file From e9ea44b4ac1084112d98f7551d7afa7a77f44be9 Mon Sep 17 00:00:00 2001 From: jsvisa Date: Mon, 18 Sep 2023 22:30:36 +0800 Subject: [PATCH 07/29] scripts: validate schema testcases Signed-off-by: jsvisa --- scripts/graphql-validate.js | 56 +++++++++++++++++++++++++++++++------ 1 file changed, 47 insertions(+), 9 deletions(-) diff --git a/scripts/graphql-validate.js b/scripts/graphql-validate.js index 3bb9d19c..b3ed8fc5 100644 --- a/scripts/graphql-validate.js +++ b/scripts/graphql-validate.js @@ -1,16 +1,16 @@ import fs from 'fs'; import graphql from 'graphql'; -import { diff, DiffRule } from '@graphql-inspector/core'; +import diff frm '@graphql-inspector/core'; function ignoreDirectiveChanges(obj) { - return obj.changes.filter((change) => !change.type.startsWith('DIRECTIVE')) + return obj.changes.filter((change) => !change.type.startsWith('DIRECTIVE')); } // Validate JSON schema const raw = fs.readFileSync('graphql.json'); const schema = graphql.buildClientSchema(JSON.parse(raw)); -graphql.assertValidSchema(schema) -console.log('GraphQL JSON schema validated successfully.') +graphql.assertValidSchema(schema); +console.log('GraphQL JSON schema validated successfully.'); // Validate standard schema const rawStd = fs.readFileSync('schema.graphqls', 'utf8'); @@ -19,10 +19,48 @@ graphql.assertValidSchema(schemaStd); console.log('GraphQL standard schema validated successfully.'); // Compare and make sure JSON and standard schemas match. -diff(schema, schemaStd, [ignoreDirectiveChanges]).then((changes) => { +diff(schema, schemaStd, [ignoreDirectiveChanges]) + .then((changes) => { if (changes.length === 0) { - console.log('GraphQL schemas match.') - return + console.log('GraphQL schemas match.'); + return; } - throw new Error(`Found differences between JSON and standard:\n${JSON.stringify(changes, null, 2)}`) -}).catch(console.error); \ No newline at end of file + throw new Error( + `Found differences between JSON and standard:\n${JSON.stringify( + changes, + null, + 2 + )}` + ); + }) + .catch(console.error); + +fs.readdir('graphql/tests', (_, files) => { + files.forEach((file) => { + const query = graphql.parse( + fs.readFileSync(`graphql/tests/${file}/request.gql`, 'utf8') + ); + const output = JSON.parse( + fs.readFileSync(`graphql/tests/${file}/response.json`, 'utf8') + ); + if (!('statusCode' in output) || !('responses' in output)) { + throw new Error( + `GraphQL response ${file} without 'statusCode' or 'responses' keys` + ); + } + if (output['statusCode'] === 200) { + const result = graphql.validate(schema, query); + if (result.length === 0) { + console.log(`GraphQL request ${file} validated successfully.`); + } else { + throw new Error( + `GraphQL query ${file} failed validation:\n${JSON.stringify( + result, + null, + 2 + )}` + ); + } + } + }); +}); From c0e25cd59ecb91177c4fdf0bae4bc52bdf2108f0 Mon Sep 17 00:00:00 2001 From: jsvisa Date: Mon, 18 Sep 2023 22:30:52 +0800 Subject: [PATCH 08/29] Revert "package/lint: run graphql-schema-validate" This reverts commit 1a61f99e5916abb6731c12fa6ded79d0949e5fa2. Signed-off-by: jsvisa --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4b01164a..0b150576 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "build": "npm run build:spec", "build:spec": "node scripts/build.js", "build:docs": "cd build/docs/gatsby && npm install --legacy-peer-deps && gatsby build --prefix-paths", - "lint": "node scripts/build.js && node scripts/validate.js && node scripts/graphql-validate.js && node scripts/graphql-schema-validate.js", + "lint": "node scripts/build.js && node scripts/validate.js && node scripts/graphql-validate.js", "clean": "rm -rf build && mkdir -p build", "generate-clients": "mkdir -p build && open-rpc-generator generate -c open-rpc-generator-config.json", "graphql:schema": "node scripts/graphql.js", From 540a9e5a48f48aac1f5b46f2f689305821a6da5c Mon Sep 17 00:00:00 2001 From: jsvisa Date: Mon, 18 Sep 2023 22:31:02 +0800 Subject: [PATCH 09/29] Revert "scripts: graphql schema validate" This reverts commit 0deb40bb6850f93f7308f5b06b614b065216b1dc. Signed-off-by: jsvisa --- scripts/graphql-schema-validate.js | 38 ------------------------------ 1 file changed, 38 deletions(-) delete mode 100644 scripts/graphql-schema-validate.js diff --git a/scripts/graphql-schema-validate.js b/scripts/graphql-schema-validate.js deleted file mode 100644 index cc74cb43..00000000 --- a/scripts/graphql-schema-validate.js +++ /dev/null @@ -1,38 +0,0 @@ -import fs from 'fs'; -import graphql from 'graphql'; - -// Validate JSON schema -const raw = fs.readFileSync('graphql/schemas/schema.gql', 'utf8'); -const schema = graphql.buildSchema(raw); -graphql.assertValidSchema(schema); -console.log('GraphQL schema validated successfully.'); - -fs.readdir('graphql/tests', (_, files) => { - files.forEach((file) => { - const query = graphql.parse( - fs.readFileSync(`graphql/tests/${file}/request.gql`, 'utf8') - ); - const output = JSON.parse( - fs.readFileSync(`graphql/tests/${file}/response.json`, 'utf8') - ); - if (!('statusCode' in output) || !('responses' in output)) { - throw new Error( - `GraphQL response ${file} without 'statusCode' or 'responses' keys` - ); - } - if (output['statusCode'] === 200) { - const result = graphql.validate(schema, query); - if (result.length === 0) { - console.log(`GraphQL request ${file} validated successfully.`); - } else { - throw new Error( - `GraphQL query ${file} failed validation:\n${JSON.stringify( - result, - null, - 2 - )}` - ); - } - } - }); -}); From cd27447e2c012eda414d5c1a74f14102bf8bd758 Mon Sep 17 00:00:00 2001 From: jsvisa Date: Mon, 18 Sep 2023 22:31:17 +0800 Subject: [PATCH 10/29] Revert "graphql: add schema from go-ethereum" This reverts commit c3325fd602dfef8dcb63c3a0e7669d66fca7d4c6. Signed-off-by: jsvisa --- graphql/schemas/schema.gql | 375 ------------------------------------- 1 file changed, 375 deletions(-) delete mode 100644 graphql/schemas/schema.gql diff --git a/graphql/schemas/schema.gql b/graphql/schemas/schema.gql deleted file mode 100644 index 7d9e9507..00000000 --- a/graphql/schemas/schema.gql +++ /dev/null @@ -1,375 +0,0 @@ -# Copy from https://github.com/ethereum/go-ethereum/blob/master/graphql/schema.go -# Bytes32 is a 32 byte binary string, represented as 0x-prefixed hexadecimal. -scalar Bytes32 -# Address is a 20 byte Ethereum address, represented as 0x-prefixed hexadecimal. -scalar Address -# Bytes is an arbitrary length binary string, represented as 0x-prefixed hexadecimal. -# An empty byte string is represented as '0x'. Byte strings must have an even number of hexadecimal nybbles. -scalar Bytes -# BigInt is a large integer. Input is accepted as either a JSON number or as a string. -# Strings may be either decimal or 0x-prefixed hexadecimal. Output values are all -# 0x-prefixed hexadecimal. -scalar BigInt -# Long is a 64 bit unsigned integer. Input is accepted as either a JSON number or as a string. -# Strings may be either decimal or 0x-prefixed hexadecimal. Output values are all -# 0x-prefixed hexadecimal. -scalar Long - -schema { - query: Query - mutation: Mutation -} - -# Account is an Ethereum account at a particular block. -type Account { - # Address is the address owning the account. - address: Address! - # Balance is the balance of the account, in wei. - balance: BigInt! - # TransactionCount is the number of transactions sent from this account, - # or in the case of a contract, the number of contracts created. Otherwise - # known as the nonce. - transactionCount: Long! - # Code contains the smart contract code for this account, if the account - # is a (non-self-destructed) contract. - code: Bytes! - # Storage provides access to the storage of a contract account, indexed - # by its 32 byte slot identifier. - storage(slot: Bytes32!): Bytes32! -} - -# Log is an Ethereum event log. -type Log { - # Index is the index of this log in the block. - index: Long! - # Account is the account which generated this log - this will always - # be a contract account. - account(block: Long): Account! - # Topics is a list of 0-4 indexed topics for the log. - topics: [Bytes32!]! - # Data is unindexed data for this log. - data: Bytes! - # Transaction is the transaction that generated this log entry. - transaction: Transaction! -} - -# EIP-2718 -type AccessTuple { - address: Address! - storageKeys: [Bytes32!]! -} - -# EIP-4895 -type Withdrawal { - # Index is a monotonically increasing identifier issued by consensus layer. - index: Long! - # Validator is index of the validator associated with withdrawal. - validator: Long! - # Recipient address of the withdrawn amount. - address: Address! - # Amount is the withdrawal value in Gwei. - amount: Long! -} - -# Transaction is an Ethereum transaction. -type Transaction { - # Hash is the hash of this transaction. - hash: Bytes32! - # Nonce is the nonce of the account this transaction was generated with. - nonce: Long! - # Index is the index of this transaction in the parent block. This will - # be null if the transaction has not yet been mined. - index: Long - # From is the account that sent this transaction - this will always be - # an externally owned account. - from(block: Long): Account! - # To is the account the transaction was sent to. This is null for - # contract-creating transactions. - to(block: Long): Account - # Value is the value, in wei, sent along with this transaction. - value: BigInt! - # GasPrice is the price offered to miners for gas, in wei per unit. - gasPrice: BigInt! - # MaxFeePerGas is the maximum fee per gas offered to include a transaction, in wei. - maxFeePerGas: BigInt - # MaxPriorityFeePerGas is the maximum miner tip per gas offered to include a transaction, in wei. - maxPriorityFeePerGas: BigInt - # MaxFeePerBlobGas is the maximum blob gas fee cap per blob the sender is willing to pay for blob transaction, in wei. - maxFeePerBlobGas: BigInt - # EffectiveTip is the actual amount of reward going to miner after considering the max fee cap. - effectiveTip: BigInt - # Gas is the maximum amount of gas this transaction can consume. - gas: Long! - # InputData is the data supplied to the target of the transaction. - inputData: Bytes! - # Block is the block this transaction was mined in. This will be null if - # the transaction has not yet been mined. - block: Block - - # Status is the return status of the transaction. This will be 1 if the - # transaction succeeded, or 0 if it failed (due to a revert, or due to - # running out of gas). If the transaction has not yet been mined, this - # field will be null. - status: Long - # GasUsed is the amount of gas that was used processing this transaction. - # If the transaction has not yet been mined, this field will be null. - gasUsed: Long - # CumulativeGasUsed is the total gas used in the block up to and including - # this transaction. If the transaction has not yet been mined, this field - # will be null. - cumulativeGasUsed: Long - # EffectiveGasPrice is actual value per gas deducted from the sender's - # account. Before EIP-1559, this is equal to the transaction's gas price. - # After EIP-1559, it is baseFeePerGas + min(maxFeePerGas - baseFeePerGas, - # maxPriorityFeePerGas). Legacy transactions and EIP-2930 transactions are - # coerced into the EIP-1559 format by setting both maxFeePerGas and - # maxPriorityFeePerGas as the transaction's gas price. - effectiveGasPrice: BigInt - # BlobGasUsed is the amount of blob gas used by this transaction. - blobGasUsed: Long - # blobGasPrice is the actual value per blob gas deducted from the senders account. - blobGasPrice: BigInt - # CreatedContract is the account that was created by a contract creation - # transaction. If the transaction was not a contract creation transaction, - # or it has not yet been mined, this field will be null. - createdContract(block: Long): Account - # Logs is a list of log entries emitted by this transaction. If the - # transaction has not yet been mined, this field will be null. - logs: [Log!] - r: BigInt! - s: BigInt! - v: BigInt! - yParity: Long - # Envelope transaction support - type: Long - accessList: [AccessTuple!] - # Raw is the canonical encoding of the transaction. - # For legacy transactions, it returns the RLP encoding. - # For EIP-2718 typed transactions, it returns the type and payload. - raw: Bytes! - # RawReceipt is the canonical encoding of the receipt. For post EIP-2718 typed transactions - # this is equivalent to TxType || ReceiptEncoding. - rawReceipt: Bytes! - # BlobVersionedHashes is a set of hash outputs from the blobs in the transaction. - blobVersionedHashes: [Bytes32!] -} - -# BlockFilterCriteria encapsulates log filter criteria for a filter applied -# to a single block. -input BlockFilterCriteria { - # Addresses is list of addresses that are of interest. If this list is - # empty, results will not be filtered by address. - addresses: [Address!] - # Topics list restricts matches to particular event topics. Each event has a list - # of topics. Topics matches a prefix of that list. An empty element array matches any - # topic. Non-empty elements represent an alternative that matches any of the - # contained topics. - # - # Examples: - # - [] or nil matches any topic list - # - [[A]] matches topic A in first position - # - [[], [B]] matches any topic in first position, B in second position - # - [[A], [B]] matches topic A in first position, B in second position - # - [[A, B]], [C, D]] matches topic (A OR B) in first position, (C OR D) in second position - topics: [[Bytes32!]!] -} - -# Block is an Ethereum block. -type Block { - # Number is the number of this block, starting at 0 for the genesis block. - number: Long! - # Hash is the block hash of this block. - hash: Bytes32! - # Parent is the parent block of this block. - parent: Block - # Nonce is the block nonce, an 8 byte sequence determined by the miner. - nonce: Bytes! - # TransactionsRoot is the keccak256 hash of the root of the trie of transactions in this block. - transactionsRoot: Bytes32! - # TransactionCount is the number of transactions in this block. if - # transactions are not available for this block, this field will be null. - transactionCount: Long - # StateRoot is the keccak256 hash of the state trie after this block was processed. - stateRoot: Bytes32! - # ReceiptsRoot is the keccak256 hash of the trie of transaction receipts in this block. - receiptsRoot: Bytes32! - # Miner is the account that mined this block. - miner(block: Long): Account! - # ExtraData is an arbitrary data field supplied by the miner. - extraData: Bytes! - # GasLimit is the maximum amount of gas that was available to transactions in this block. - gasLimit: Long! - # GasUsed is the amount of gas that was used executing transactions in this block. - gasUsed: Long! - # BaseFeePerGas is the fee per unit of gas burned by the protocol in this block. - baseFeePerGas: BigInt - # NextBaseFeePerGas is the fee per unit of gas which needs to be burned in the next block. - nextBaseFeePerGas: BigInt - # Timestamp is the unix timestamp at which this block was mined. - timestamp: Long! - # LogsBloom is a bloom filter that can be used to check if a block may - # contain log entries matching a filter. - logsBloom: Bytes! - # MixHash is the hash that was used as an input to the PoW process. - mixHash: Bytes32! - # Difficulty is a measure of the difficulty of mining this block. - difficulty: BigInt! - # TotalDifficulty is the sum of all difficulty values up to and including - # this block. - totalDifficulty: BigInt! - # OmmerCount is the number of ommers (AKA uncles) associated with this - # block. If ommers are unavailable, this field will be null. - ommerCount: Long - # Ommers is a list of ommer (AKA uncle) blocks associated with this block. - # If ommers are unavailable, this field will be null. Depending on your - # node, the transactions, transactionAt, transactionCount, ommers, - # ommerCount and ommerAt fields may not be available on any ommer blocks. - ommers: [Block] - # OmmerAt returns the ommer (AKA uncle) at the specified index. If ommers - # are unavailable, or the index is out of bounds, this field will be null. - ommerAt(index: Long!): Block - # OmmerHash is the keccak256 hash of all the ommers (AKA uncles) - # associated with this block. - ommerHash: Bytes32! - # Transactions is a list of transactions associated with this block. If - # transactions are unavailable for this block, this field will be null. - transactions: [Transaction!] - # TransactionAt returns the transaction at the specified index. If - # transactions are unavailable for this block, or if the index is out of - # bounds, this field will be null. - transactionAt(index: Long!): Transaction - # Logs returns a filtered set of logs from this block. - logs(filter: BlockFilterCriteria!): [Log!]! - # Account fetches an Ethereum account at the current block's state. - account(address: Address!): Account! - # Call executes a local call operation at the current block's state. - call(data: CallData!): CallResult - # EstimateGas estimates the amount of gas that will be required for - # successful execution of a transaction at the current block's state. - estimateGas(data: CallData!): Long! - # RawHeader is the RLP encoding of the block's header. - rawHeader: Bytes! - # Raw is the RLP encoding of the block. - raw: Bytes! - # WithdrawalsRoot is the withdrawals trie root in this block. - # If withdrawals are unavailable for this block, this field will be null. - withdrawalsRoot: Bytes32 - # Withdrawals is a list of withdrawals associated with this block. If - # withdrawals are unavailable for this block, this field will be null. - withdrawals: [Withdrawal!] - # BlobGasUsed is the total amount of gas used by the transactions. - blobGasUsed: Long - # ExcessBlobGas is a running total of blob gas consumed in excess of the target, prior to the block. - excessBlobGas: Long -} - -# CallData represents the data associated with a local contract call. -# All fields are optional. -input CallData { - # From is the address making the call. - from: Address - # To is the address the call is sent to. - to: Address - # Gas is the amount of gas sent with the call. - gas: Long - # GasPrice is the price, in wei, offered for each unit of gas. - gasPrice: BigInt - # MaxFeePerGas is the maximum fee per gas offered, in wei. - maxFeePerGas: BigInt - # MaxPriorityFeePerGas is the maximum miner tip per gas offered, in wei. - maxPriorityFeePerGas: BigInt - # Value is the value, in wei, sent along with the call. - value: BigInt - # Data is the data sent to the callee. - data: Bytes -} - -# CallResult is the result of a local call operation. -type CallResult { - # Data is the return data of the called contract. - data: Bytes! - # GasUsed is the amount of gas used by the call, after any refunds. - gasUsed: Long! - # Status is the result of the call - 1 for success or 0 for failure. - status: Long! -} - -# FilterCriteria encapsulates log filter criteria for searching log entries. -input FilterCriteria { - # FromBlock is the block at which to start searching, inclusive. Defaults - # to the latest block if not supplied. - fromBlock: Long - # ToBlock is the block at which to stop searching, inclusive. Defaults - # to the latest block if not supplied. - toBlock: Long - # Addresses is a list of addresses that are of interest. If this list is - # empty, results will not be filtered by address. - addresses: [Address!] - # Topics list restricts matches to particular event topics. Each event has a list - # of topics. Topics matches a prefix of that list. An empty element array matches any - # topic. Non-empty elements represent an alternative that matches any of the - # contained topics. - # - # Examples: - # - [] or nil matches any topic list - # - [[A]] matches topic A in first position - # - [[], [B]] matches any topic in first position, B in second position - # - [[A], [B]] matches topic A in first position, B in second position - # - [[A, B]], [C, D]] matches topic (A OR B) in first position, (C OR D) in second position - topics: [[Bytes32!]!] -} - -# SyncState contains the current synchronisation state of the client. -type SyncState { - # StartingBlock is the block number at which synchronisation started. - startingBlock: Long! - # CurrentBlock is the point at which synchronisation has presently reached. - currentBlock: Long! - # HighestBlock is the latest known block number. - highestBlock: Long! -} - -# Pending represents the current pending state. -type Pending { - # TransactionCount is the number of transactions in the pending state. - transactionCount: Long! - # Transactions is a list of transactions in the current pending state. - transactions: [Transaction!] - # Account fetches an Ethereum account for the pending state. - account(address: Address!): Account! - # Call executes a local call operation for the pending state. - call(data: CallData!): CallResult - # EstimateGas estimates the amount of gas that will be required for - # successful execution of a transaction for the pending state. - estimateGas(data: CallData!): Long! -} - -type Query { - # Block fetches an Ethereum block by number or by hash. If neither is - # supplied, the most recent known block is returned. - block(number: Long, hash: Bytes32): Block - # Blocks returns all the blocks between two numbers, inclusive. If - # to is not supplied, it defaults to the most recent known block. - blocks(from: Long, to: Long): [Block!]! - # Pending returns the current pending state. - pending: Pending! - # Transaction returns a transaction specified by its hash. - transaction(hash: Bytes32!): Transaction - # Logs returns log entries matching the provided filter. - logs(filter: FilterCriteria!): [Log!]! - # GasPrice returns the node's estimate of a gas price sufficient to - # ensure a transaction is mined in a timely fashion. - gasPrice: BigInt! - # MaxPriorityFeePerGas returns the node's estimate of a gas tip sufficient - # to ensure a transaction is mined in a timely fashion. - maxPriorityFeePerGas: BigInt! - # Syncing returns information on the current synchronisation state. - syncing: SyncState - # ChainID returns the current chain ID for transaction replay protection. - chainID: BigInt! -} - -type Mutation { - # SendRawTransaction sends an RLP-encoded transaction to the network. - sendRawTransaction(data: Bytes!): Bytes32! -} From 6240dce0f24b696cd237470a9a386f5ce54f8955 Mon Sep 17 00:00:00 2001 From: jsvisa Date: Mon, 18 Sep 2023 23:34:35 +0800 Subject: [PATCH 11/29] scripts: typo Signed-off-by: jsvisa --- scripts/graphql-validate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/graphql-validate.js b/scripts/graphql-validate.js index b3ed8fc5..7fe4c000 100644 --- a/scripts/graphql-validate.js +++ b/scripts/graphql-validate.js @@ -1,6 +1,6 @@ import fs from 'fs'; import graphql from 'graphql'; -import diff frm '@graphql-inspector/core'; +import { diff } from '@graphql-inspector/core'; function ignoreDirectiveChanges(obj) { return obj.changes.filter((change) => !change.type.startsWith('DIRECTIVE')); From 968f95b0fb9ecd9da4a0b5b1fa5f9489e23ce438 Mon Sep 17 00:00:00 2001 From: jsvisa Date: Mon, 18 Sep 2023 23:40:20 +0800 Subject: [PATCH 12/29] graphql: add genesis.json chain.rlp Signed-off-by: jsvisa --- graphql/chain.rlp | Bin 0 -> 24039 bytes graphql/genesis.json | 16 ++++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 graphql/chain.rlp create mode 100644 graphql/genesis.json diff --git a/graphql/chain.rlp b/graphql/chain.rlp new file mode 100644 index 0000000000000000000000000000000000000000..480efc87d9fcf4bb02cebf943897e5fec7d18226 GIT binary patch literal 24039 zcmeI4cT^P1y0>SBC^-m{B&&cRL84@kAO=7{au_lKl5-mJfReKcG$0^JKtMo22@)g= zf@Dxhl7k>9;ZEaWt9yIc=VRY>@4DZz{wRL+R&{lC*E3bs-7mET-QI$J1|WYEfRk-k zXGWWJ-SYy=%$~Hpq3R)#p^go8BwbFE+L3q@BNvNAuB^lrrbTxy24N;@TtOqel3WaU zJ;mxPl}`)$2tTLq;6)Re+#x5XLYV~3fYo5i_A=E1H)iNgP`9aN?fJ`0Mb~WJ(v}~m zPO>Vfff{m_eK0Cz_}c=N(7$Q<|Nq(kFbD+U&$-l(2vB`>$5#qq53H)1G-f5jWxzgl zxy%Cdl#}11!qz^&s=FKRsalJ&NY^&<&!roxfi*Q-$IP~%Ux3YJQonU0YuG}*&z{*` zn>lxN4uOog!Q65;!QCgj3_eHf{zY}Q#JG$1!m4qOS+XW|CX}6cA~PRWBI2XT>k?#t zS_}|rtqcIN`3)3WKAahNBE31S>rQ7sl+1F)`nwYAm9)p1Bj3T zWDQ~f;qyH7Cl-m0Fd|}Wt33{fva2JENU|%BqvQpYJmEMci;`DRlJ@k@d6d*eNxDcb z0hGLjlDrp!bx{(5l7emW+$b4`lGogO%uuo#CDmIwU!r6yN}8zLaX`s&lr#^~bVJES zlyt6Q7&s1xK~VB8WsV9;5};&qUGq9h(xGIgFbyqAa-d|EE4DgHilO8a8Vod)1Y1^D z%!aBLriGH-EF29eX^D~_Aie-fdZOga^CfMR3`5Da+n5lPyoZwOWnw2#G6yAhB!W@x zg*{V;Xv3kraP+<#+6JiGwuVYc!O`yB&_)MqgroIjzRZFK8$j|!IR$&XW*DI-&2D77l^uof87I^EF3-HdrB3K{zGAt{la12vz_-1 zO5Y8^`v$%5hB!Dz>GxCy97FDVsu+&8^mEhe;h2zvd{j3WK;Tdaj<2e(!5)l~JklR_ zB2rCB8+AG`5BhVS&!N<#W|c@^82V2Yz<#dahdihOM9KG$Q^9^pq5aXQU-spn+ll_e z!QcfMKq6Hm!4pTKqX3Cif}^2sPvp02Hh_N5gW!UBUElLy-}Am5H-C@^wpJA^y?bB* zTMSyzi4H8NR{wGQFWU_^1zr50IN0j_3Y7OPJ|?g75ybCjg)1OQRP}sk36t@RAD??1(gLQbDM2;RX;C|-(io!-; zZyckX7~O>_{U1*D;GdrChq}NE{AUgCUCto5Jl^r`PMh#tCC z6naWAl>fA440}GXv1V%6)Z2cM%WPeFAXt$&XY5sd=UXP^^WqePvcQ--z(?Yf+?g!r z!pvVkFQj0Q&`KbuICs_+$Nn0vrEBA{#qqlO#8pbVBD_Zv{ z$vJaIUu)<0JTdzs0w(}mI8g%&=Lqfe+Hy~7Ggdryh6iuo9##*?Iu$k~KS7@rgR@?;zBOvoD@J&n5C$bSgAD$Qx(`m} zI7yZWUN^Xn48dkhP#rUsJhU&M?vm0Igsi?2?d#e9dG5$qARaaSTN zBD}639FPEHo4GzhqEhq-ZpptPEfA-3!)#pMRc`1B;9lD`He`^l*}~KY$1_pi3xwPE zyDsv-^A@|$l}d{kL&w4jSK`wd@3k$Hk|zO{EW6QjgXn{siLfc=i`YpVRyMCpp?%G1 zf?c9n;GahS^@{^@ggOK3HGU=f{4~8@D}Masx=ys#rOhk%0xBMLF})}Q5;9}@-@emU zUvGSNs>+H-)o3Yc)3FLWJLpDzp3Y+)L%_QqX7%}8*T-<1-V3FelXN@0LSD%L26OD5 zq=3z!hyHKQK+bB=zj3AkayE+q;`hp6 zB2T4UfOlqzVu75Y9mW~>a7P2YH!J1E>d_6G7rCshz)3N%_|jh_o~QQp@yqX=C0giD z0P=pC+oH$gN^YQu1TqAfEPLu_>s512j`g_ET<95`S>HnY1iqj8=hJ46qKf18UyYh?#y52j zv_IJ{mC%Jd(_P4lG{zvfHBq0&sRTe4`hirW18mV;Zr@> zl3;Pnnb|{jCDj|@3D<;d7$b`{dF{T~#`gYewS4Wa*%PC!ym2w_)Lt3(*n}j10W3Sl zPuHeHWo>RcXpA0l6@%w~srV7M;G^^Xw;6g>g~QmxnOv&RYD|k(%!V)v>3;(H%{XOV zAFCUG?A~d+0~0uM2q;|303A<0Q3d<_Kb}E?i2aRHF@unC&rqOUFcPV=tRJkF4Pwu)&F`)52dW3Y# zQ#Za>@J7*6t#f=!7J zwjuM8?G)}-k`e=t__T;tDd6HP);w~P9do7SbPJA@k6d%cSsUYag7%D;vPg)>MXdwQ zOs({cdf62t%FMaQ!UI|&xqLrqvOXG8l4-nTtSyP9e8lmrC~KicPH?*tdp_+w^zLOb z;cI*s0u1V~28~~LYl>d>1l~vc;^fM?xyQP6xjW@F&Ze5$WM*~IWdR#% z)_#NR&)e_M%GVGnN_{OxP{lYylIjO7A5Sw~Kk4+FGmtX`);G?KLC#hXz)orG4Q(w3 zI#%W;LO-rTH6e*E7ESMGwiuUky;O(Jhay9elNRT=)?b61VIIaA`2B+#cxr7TG%ZPd zHJQdToX$m*f#~*AA&k)540AhE*D))`Zvd8}q#dX9w4bp~P4l<&Q5SeIA>s(Mg&tg1 zd`+K6;ckAw*`kD z7twr8CV^pLexHeRa%NH4*MiFO&o+B|WHYgeXO&&ODfaRhH)ZQ@&Opv;u)lFe3Uc-d z0Z^Lss#N!!Y)7w%?CcF4Su^^m)&F&~dxLhwB|9LSI28F1Tl_Yir_v(G8P;K(fnVQf z0Q_qwW++zBSR|k7wTE0SdgFhN20JvmByS51v*wlUv6FzEx*XSH`5Azpt!9hO|8$Vp zSHnEwt75fj?)EL%7fpIUKq_Wx@1jUWu5)C2#25U=-Gh&dU$pmYQSgmmU@2 z>EiR5|z{6gb114G!>xWvTZ`|F?3teoEqGL`e1$q9!+j%TdhG3kNr~)X#j*5^SMUh!MkAs!^|Str{Xn7{3^l- zy=OHv%FPlHOzfIBgp&kzCc>XDtQ_Y!0`=e35? zaN!KoG>y?g0JEDNa#_kJ_`D~WrjJqOGxMv&#gv(q>|PCbY@UMT&Hw-$XD(qnEKdKm z3vLY(mxC0t))E1K&+hq>lguD|s_!?4AcqLteGcu=Kn}kk0M{_fYC+BFQqMUSpz~o_ zOGifT7k|BXo=N%mYc+jmZX+>Y<+CujrI~;n;vB{y=$*26c=$pMsF3MR+i1A7sK~sp zd?7|5=cw4%PN+Qpu&*)4-mA}v3Ai+ot~h0at?_F08OzNfIjOq}Cr4bjCj5(s^I$3+ zY|jrk)YNo%-xjOP;?4aeXMI;vX@}Qtt$VCFh;BsjMeSK~r6Y2fCqR}>MzT|*KkI!X z9}sYhBQAZVc3tVN_!++72|1Tf!1R_Q?1~X!&(LZ$$h>qryImH7CA=`u#S^p;TW4Q9 z3T)qX>P-_#k9Rl^dw@%2vZiCd0x5AK_~JVC&VI62s6mZ9s`E$0{Wk+Q{n}sjAl0Y3iX^| zRK}WF<)n<07$;~}D>e@}WT)s#D1kw9uVX(Q;-?EH7*1jQj5 z1b?5yylWtbdkCPTJ$U_9njxQRqSDw-!#m@6A9}_(DXzwhFV~;5liLU)4GKq>I2%Hj zKo0Q^;}G=AJA63YTciexv`*{^w5fONHh-p@x6et?y+tjT8?z*8Nb1||qpmswT>H`@ zeBA71?$TJw$9S1@g|Sv|+^?M#d>fxqr_P!AQuu(w`p0Z6xaMRK=b*JB{_b?mLB?oy zF3%Vr<~Nl7EI8FVN952oOe3rzUa6+m>{HCPNBt}wW4gjU@wF;tk&8>w!ouRfy$~OL zs~1$eop7{=UG`W-%*q$~WbQA>>5p2i!x&FT0QSy4!`#vhx!T)^}AaHYB0eMFLkxUl_>Q$&gp zt442$Xg)GKCDksFo|ypT5dSa^L7&gRY{zW$4I48Dn1Z6$eEzK+Wn2x!inw`xuOdcff@eg)-)45&5n zcK_3GNXT#(#%5rhFxGs6u+2o>;#HR;a_E=shz?&Ccfar;z165cU-^*;xtOF|T9j=8 z0&`rVr4mp)Ki$}{T43vjwl3=Bm9Hqi{p1x@_F{MCR+A3{Rx1?f!HsYT4iZ?+p0%XA zUeW7lBg??I@QK&a>O%b^L8@%Y-yDJ*A_%{6*bj1ujsTu+SyL{hK~;uM`s>`CSztsn zB8-3V*$}eP_rfT=?dt_3B%VWb+dpX@{^a~)98^83Vx)Sknsya~UD;68?O|C`z^xyve`}1-Q(KikwK@PDHK!!$U z+2of6+2nY%3Dx{b=PQkaCY+3mz1+7Y5?LMk8IfZRIJKl#ofSb22@m5Cbcg?Y4$)%2 z+?P(5O_r~WQ1lMl`CKjHUY$}nQ_EapsHsrc&<7B7@<;nGr0HL|T9gn_#%R4O4?HB? zq7ClX*eG~LO0$LHaNiq}!nJYL&h-?bs2ashmf#}i7?Y$mtO4u1&hylq%NY@PN953J zX@`XOv*g+xBsgz2a6&cqc(*vV(g|bn?1x8kRtIZ0+`_j%O_#( zXnfB#@h_g|n}6J?n;I9=ytMZqzxqLb;p_otU)bA4(EG33$eT!}h|{M(NU`(186iKV z)LJzkf1m5s=Oc2)#*3%NF-LuN{+J`9wEyb0>x+a{OqtBC&Bur2C+tv@F*l6{d3Bfy*om zs%s-9WUYHDlxCwq&WI1=?37l@t0_YYW8$v(nN6 zwxd-KP7(wp#~F`E$d9UJ9Fa5DHL7L--5aI&{D9>A5JwNyCf_ZN_0Ra|^~XZhZwh_} zfTxv-_`6}}#tYta>rk)yk77M-D{C#o2i`Ll2pE674N&D?HhLRqHJi9l0GG>tXbL;2 z=|pAzxi{MCSxi0^ROB~jAZG~Dea`m%RqBZlfDX3LLwurhNf+bE7fsYYcRRS9F?4AE z=s{d%E1$3{PJyJ>_8Oa&y0rh@jpQ)SKz|i#AmL$|7`6TgRxg>0EcICC%ZclSQm{hq zuMTF9O&({KlL4&GtS1q^i9yzb!%A~<3rOtKe0-*WB9nwSUOi=l3)2B-((J|Q($7pk z1iLz&@fxOSe(A-cI8~zV>w}rT5z*PWa74~>(gW$GFq(buwRsw5=nYK!`f(_~_IkW) zbDm&KcDg?sU=p~R7djS7Z$PTK{j$}GMHrXvHDkeWZ`Bjl;67vBX~3&0ajbTx^J4Dn zzNNF+w{I`Oq#yE1e`>kKto>}|&Pe-j&Opv;j(;1^K!25bQUp+)8)=VVGfmkjnswhw zp2fGpElYHH)fi#e*{i7jAK4AE+_L5ebn!=biaQt5U$jTtZZ1IRH(_JR&+n$ z%v1tNk{FX|&HntFM+8^i_=#7Esh zJ&*LfRZk@xCeKa4{4{@x2!kb2w5r+_vWs0BS)BWuGZbeS5VCKaf&MD>WC(z*Y0sCV zIiqvgtmaY<(LFTLW7;YK=RFX7&yB`(HEijSURyM1q6wV-AZN!9;|%myp#gN%XxR&^ zM`tdyQ)~>xwG~V56m`P=?Jexf>#6vqJx&1V7uU@0&fZjUtR}gqTxm(GVx;w9!U9i7 zW6e$qha$T9fU_4>wOw9)6c5aG9EXh`6I^wk=%ql55;=L0s z!pPek7b5{pFDb$24?lhJ4rjkSvlW%A-HF(#nKe(eoXESVUjAnIH)kMc66D`F1N~L% zDG|Ub(c>*zU8p-_#hR+j$cZa@UqsJt2dwEcLwSZ6-3L^VpRgJPm&*;Wf}D{Z#u@0Z zLJe2}lo#5L%T?LHnry!Y)FyRtjzWw&(-KdHW4F>S6^jFGHl>ewn%NzwDXRz^ds19A zG`8tr#Rl?4=uSc(m(GIU#rB^!)3bFfZ*DRYwqCUs#xpSx>pdTydXZuFjJgj&-=5}< z`4Pu6))rwQo~E!XT@OQvPC7@uyJPXZG*H;@t?*-=uj`XIJixuW!5jvwC6?zDYEniN z^mE-~F1|HM+b`R9x5#A1nr;A*(}Hs4-HFl!(*3J9)joak<0@Ofd>L5v8>qh_gl#wb z17{L{^Zn+3Ci@qyp#RI6e^KZ!Wl(!p{KEE=3AUd?afUdt&zZ(KkTYrokSh?xae<;N znNwb>#wO@yo2kxdV*1_CB2US(b%7VEO2}p3FBLDpHa-J6BR`BYaC-q7;C#$k6^(3i zG*$L^>)_U6!{Ot)5g1i>g!*MR*>2E_Rstk=>XTlzoe$s?1HH99x7s+J0Lkqa=`Z?8 zX)b3B2%J3NOhhtOs6^sHy-uA+ge#)lZJ6p=;_(8~^vq0cq)ziZ#}PSGuB0+Bg)ps# zZHb>zxWoHie}vN@QWkBCae;cse3KEjXd*9Z@`w!VT-Nsdm<+>Nw9RnU7s> zDnm}JCUIFdo^J*@J8>9i;3gE*faFw}v*EO3h~(0Xx&1 zo`6c?^B5VD7bOB`?u2~3Kh?k;J}xCu7M=SsE!n|~GFkh8Gim~QEkPrG5BPY-F}7j% z`{XlvOhXkj+4Tw!Y^&=TNRP-_XS}7jOA{~u-0LN~ek~dJcoy8+pN8Y?7u93Pis(^A zpk%^XjqA-~))gG6ZKYu_o$(p7&?`@f%{)`(h-baO<^f|>dU9A+0;OUuWA$6_Yy2!G zbJo+nqom3eD(!A)754s9&d~o&U;aD$-}b%4Un`{li|N2Z^p~6;4G1tH0Y--ge;6i& za-TCTDUdS;1W;20V0^%!?b;JJ3G(spWPDoD9n#qwOVsSzv3H**BnL_H&Mm7~+~Net z8O33ofjgW~1EC%UXmj((`3)ZCTJ%dR{|TGB9_*S-Hp}jM>VDC!bIziFYOnR@V`EHU6ezU7pdg z`giD+tw-d{K9@P8v~|V7=)*o_~S@i;58$VsoYGC~E{_L(cp#C>0Mivm1_|HWx?_|;yJ_kBXaf_VPLTsp(vC`o^yAl zn_|GDh&z3AKZVbXye`gJ})vB<#7uPr9v%5q3jvFK%QMQfMkk|)@BEo$d@h?yTL z0^PPMNG;C2aJf~(#o-JextHS+c7@&B_h#${Qq2+x02w>}4xGarFlgTG& z3|unC(SX|iJ(cGR3qjn(_>&{1o07<^?W!_)4EQR@8P#E&fjdm0zJHbsq*BY2JTtcz z?T0GscCq8S9N+EGC=u(wKz=);!WrO5^}gMKxjsrB#Oeth>^OJTBCbx$lKRQ<7c1-! zkob59oO$WVd=W2qc(_Vn?fM+!-E$p(adEY#aG_1>4;P<`JTN^XXFch{>zAd*I1TEU z6SfGE!iEnrpWf%5Yd+P$(Ed49O%qtYkQ{O=A)-HkK*7K=IYdR(Y%WMIuZ-`JN};l* z@{%Ob?#@J}oE+d97$HEr1Q;C} zP@L7!>~p3$0CL8K0FJA8HHnYbXE?rko){v>MUu>r=v`JItlFadnPHl_f)xqLmAhXV zYL^0XMtvA(;D%z3zMh> z8*W96io21f(p4UjGei4+`E(qfM$d^TuD0uPN=4LnaS>pv*z67eI?yWdI zqi&Ao7Pk91Wn^NC1C%WrxnX+1^>qYGd=Vp)_7v#SDdcET)`9J%kak z?LV7l6)|@!L*(|*4o(Bdx;-Y{n20WKbJ2C{Jz3Ky2b^toX1G*4Ta7U;lpsg2+m5FM zb}OEVH@oAnFQS?kgN=4X&W2?Bo{{@Bd{izdKL$E~Qj+js?j+?5sLP*5l$>9*sWZGzfKIK|l;`HA zqJw;^h(XOBF9-fV+awN>-|gSkLEf+a{8AeD>!O8tOZs-^2<(B(qA?e7r^dSVHYN{Gqz(`Dz{h2Y z6_B%&hj9k(UPuEFGqLA$#%NWH=xW+aM~p^}>*Dv(2jNN~Z+WQ>>nPv>qHoN~zGO`T zYjtcY@w;EN(U!e@kM~PoBRC%8aI+wc;DEE{F*;1DXIJrvJkCFmWP zwLB(+2DGz|$l1eV37rTji#|nWx2NlToe`0d<%BPk)g>E~)QnfAT&n>=`qggPytm>3 z=t+ZtDYKbL9sc+ROcNj39~i0QWaZid%n~mZ#GMLmqo2wa^LW2OrEEvcY|{Dqn&C8G znYEqk)c-Zkej?;2eCU5lfe8c{Nq`Xqx*z`$eXm6V^c%uL(Cu@kw*+!_0kzvpeS_5F zAsNl&fsLun>Y5g@0SkrbK0UbS#lFDBK`&Hbrcho=HZ;v^|uZAOqf3*eEcz4`pcVuAw7LX<=Rct23?c1KFhZdVWv2ffOi?C zE&~#ly5#}v2b>W)D+N1hrE3mM<_p!EH8}F5-5LlN#`kR~J4v(#9lmr#&NlQ#UyIwX zf4PB`$tW8onPgG=>FG3pV>J{g&YrVa{2VZF8WE!T9Mz;)aT?@|?l8{4tzD@BTWtuN*9I0=k08l7 zYXGr5^?QQM^!4+$_HoDYLrx330j@CVNLNK>ax5VgVUfjj3%?M6ZRdWIxdydDM(?L$ z3>0SzTQC~Ht~c@0$UvZU_178I2)zZhdsr2@EAjlPLZmW~*(c#Df6v*UZv~hJ@I_=S zp9EPv?b6Li%QhX%W3ozK8H{jTSfBeSC=S8C0&piA6{9tgz7)HbMB+f3VS$MimoOuL_*GB*XhR+(0)+3jKmdVQt+KE)B5_&d7k5eML_l( aDR{qTbOeDDdvJx{|Kb+}!c=i5ApZpceM=Sq literal 0 HcmV?d00001 diff --git a/graphql/genesis.json b/graphql/genesis.json new file mode 100644 index 00000000..e55ac900 --- /dev/null +++ b/graphql/genesis.json @@ -0,0 +1,16 @@ +{ + "config" : {}, + "coinbase" : "0x8888f1f195afa192cfee860698584c030f4c9db1", + "difficulty" : "0x020000", + "extraData" : "0x42", + "gasLimit" : "0x2fefd8", + "mixHash" : "0x2c85bcbce56429100b2108254bb56906257582aeafcbd682bc9af67a9f5aee46", + "nonce" : "0x78cc16f7b4f65485", + "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "timestamp" : "0x54c98c81", + "alloc" : { + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b": { + "balance" : "0x09184e72a000" + } + } +} \ No newline at end of file From 216968e754513a0e2d3f0b7aade4420d74858e73 Mon Sep 17 00:00:00 2001 From: jsvisa Date: Tue, 19 Sep 2023 15:53:03 +0800 Subject: [PATCH 13/29] graphql: move chain,genesis inside into tests Signed-off-by: jsvisa --- graphql/{ => tests}/chain.rlp | Bin graphql/{ => tests}/genesis.json | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename graphql/{ => tests}/chain.rlp (100%) rename graphql/{ => tests}/genesis.json (100%) diff --git a/graphql/chain.rlp b/graphql/tests/chain.rlp similarity index 100% rename from graphql/chain.rlp rename to graphql/tests/chain.rlp diff --git a/graphql/genesis.json b/graphql/tests/genesis.json similarity index 100% rename from graphql/genesis.json rename to graphql/tests/genesis.json From 84a2c8be1fbf2591b2cc0ad095b0a469bc50a38e Mon Sep 17 00:00:00 2001 From: jsvisa Date: Tue, 19 Sep 2023 15:59:45 +0800 Subject: [PATCH 14/29] scripts/validate: don't test file Signed-off-by: jsvisa --- scripts/graphql-validate.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/graphql-validate.js b/scripts/graphql-validate.js index 7fe4c000..c1503bcc 100644 --- a/scripts/graphql-validate.js +++ b/scripts/graphql-validate.js @@ -37,6 +37,10 @@ diff(schema, schemaStd, [ignoreDirectiveChanges]) fs.readdir('graphql/tests', (_, files) => { files.forEach((file) => { + if (!fs.lstatSync(`graphql/tests/${file}`).isDirectory()) { + return; + } + const query = graphql.parse( fs.readFileSync(`graphql/tests/${file}/request.gql`, 'utf8') ); From 0eacda27633c8016cee26de45e1ac159f1858952 Mon Sep 17 00:00:00 2001 From: jsvisa Date: Thu, 21 Sep 2023 10:20:38 +0800 Subject: [PATCH 15/29] Revert "graphql: regenerate" This reverts commit 272fa23d186182b8de32a1c6cfb32c4285d016b1. Signed-off-by: jsvisa --- graphql.json | 12 ------------ schema.graphqls | 5 ++--- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/graphql.json b/graphql.json index d32ed85a..8e839114 100644 --- a/graphql.json +++ b/graphql.json @@ -2093,18 +2093,6 @@ "isDeprecated": false, "deprecationReason": null }, - { - "name": "yParity", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Long", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, { "name": "type", "description": "Envelope transaction support", diff --git a/schema.graphqls b/schema.graphqls index e459ed49..59ee6e33 100644 --- a/schema.graphqls +++ b/schema.graphqls @@ -189,7 +189,7 @@ type Block { raw: Bytes! """ - WithdrawalsRoot is the withdrawals trie root in this block. + WithdrawalsRoot is withdrawals trie root in this block. If withdrawals are unavailable for this block, this field will be null. """ withdrawalsRoot: Bytes32 @@ -535,7 +535,6 @@ type Transaction { r: BigInt! s: BigInt! v: BigInt! - yParity: Long """Envelope transaction support""" type: Long @@ -570,4 +569,4 @@ type Withdrawal { """Amount is the withdrawal value in Gwei.""" amount: Long! -} \ No newline at end of file +} From 38cb413b9169627953bb6bd32aef6c1440c51fdf Mon Sep 17 00:00:00 2001 From: jsvisa Date: Tue, 26 Sep 2023 23:08:17 +0800 Subject: [PATCH 16/29] tests: move jsonrpc tests Signed-off-by: jsvisa --- tests/{ => jsonrpc}/README.md | 0 tests/{ => jsonrpc}/bad.rlp | Bin tests/{ => jsonrpc}/chain.rlp | Bin .../{ => jsonrpc}/debug_getRawBlock/get-block-n.io | 0 .../{ => jsonrpc}/debug_getRawBlock/get-genesis.io | 0 .../debug_getRawBlock/get-invalid-number.io | 0 .../{ => jsonrpc}/debug_getRawHeader/get-block-n.io | 0 .../{ => jsonrpc}/debug_getRawHeader/get-genesis.io | 0 .../debug_getRawHeader/get-invalid-number.io | 0 .../debug_getRawReceipts/get-block-n.io | 0 .../debug_getRawReceipts/get-genesis.io | 0 .../debug_getRawReceipts/get-invalid-number.io | 0 .../debug_getRawTransaction/get-invalid-hash.io | 0 .../{ => jsonrpc}/debug_getRawTransaction/get-tx.io | 0 tests/{ => jsonrpc}/eth_blockNumber/simple-test.io | 0 .../{ => jsonrpc}/eth_call/call-simple-contract.io | 0 .../{ => jsonrpc}/eth_call/call-simple-transfer.io | 0 tests/{ => jsonrpc}/eth_chainId/get-chain-id.io | 0 .../create-al-multiple-reads.io | 0 .../create-al-simple-contract.io | 0 .../create-al-simple-transfer.io | 0 .../eth_estimateGas/estimate-simple-contract.io | 0 .../eth_estimateGas/estimate-simple-transfer.io | 0 tests/{ => jsonrpc}/eth_feeHistory/fee-history.io | 0 .../eth_getBalance/get-balance-blockhash.io | 0 tests/{ => jsonrpc}/eth_getBalance/get-balance.io | 0 .../eth_getBlockByHash/get-block-by-empty-hash.io | 0 .../eth_getBlockByHash/get-block-by-hash.io | 0 .../get-block-by-notfound-hash.io | 0 .../eth_getBlockByNumber/get-block-n.io | 0 .../eth_getBlockByNumber/get-block-notfound.io | 0 .../eth_getBlockByNumber/get-finalized.io | 0 .../eth_getBlockByNumber/get-genesis.io | 0 .../eth_getBlockByNumber/get-latest.io | 0 .../{ => jsonrpc}/eth_getBlockByNumber/get-safe.io | 0 .../eth_getBlockReceipts/get-block-receipts-0.io | 0 .../get-block-receipts-by-hash.io | 0 .../get-block-receipts-earliest.io | 0 .../get-block-receipts-empty.io | 0 .../get-block-receipts-future.io | 0 .../get-block-receipts-latest.io | 0 .../eth_getBlockReceipts/get-block-receipts-n.io | 0 .../get-block-receipts-not-found.io | 0 .../get-block-n.io | 0 .../get-genesis.io | 0 .../get-block-n.io | 0 .../get-genesis.io | 0 tests/{ => jsonrpc}/eth_getCode/get-code.io | 0 .../eth_getProof/get-account-proof-blockhash.io | 0 .../eth_getProof/get-account-proof-with-storage.io | 0 .../{ => jsonrpc}/eth_getProof/get-account-proof.io | 0 .../get-storage-invalid-key-too-large.io | 0 .../eth_getStorage/get-storage-invalid-key.io | 0 tests/{ => jsonrpc}/eth_getStorage/get-storage.io | 0 .../get-block-n.io | 0 .../get-block-n.io | 0 .../eth_getTransactionByHash/get-access-list.io | 0 .../eth_getTransactionByHash/get-blob-tx.io | 0 .../eth_getTransactionByHash/get-dynamic-fee.io | 0 .../eth_getTransactionByHash/get-empty-tx.io | 0 .../eth_getTransactionByHash/get-legacy-create.io | 0 .../eth_getTransactionByHash/get-legacy-input.io | 0 .../eth_getTransactionByHash/get-legacy-tx.io | 0 .../eth_getTransactionByHash/get-notfound-tx.io | 0 .../eth_getTransactionCount/get-account-nonce.io | 0 .../eth_getTransactionReceipt/get-access-list.io | 0 .../eth_getTransactionReceipt/get-blob-tx.io | 0 .../eth_getTransactionReceipt/get-dynamic-fee.io | 0 .../eth_getTransactionReceipt/get-empty-tx.io | 0 .../get-legacy-contract.io | 0 .../eth_getTransactionReceipt/get-legacy-input.io | 0 .../eth_getTransactionReceipt/get-legacy-receipt.io | 0 .../eth_getTransactionReceipt/get-notfound-tx.io | 0 .../send-access-list-transaction.io | 0 .../eth_sendRawTransaction/send-blob-tx.io | 0 .../send-dynamic-fee-access-list-transaction.io | 0 .../send-dynamic-fee-transaction.io | 0 .../send-legacy-transaction.io | 0 tests/{ => jsonrpc}/eth_syncing/check-syncing.io | 0 tests/{ => jsonrpc}/genesis.json | 0 80 files changed, 0 insertions(+), 0 deletions(-) rename tests/{ => jsonrpc}/README.md (100%) rename tests/{ => jsonrpc}/bad.rlp (100%) rename tests/{ => jsonrpc}/chain.rlp (100%) rename tests/{ => jsonrpc}/debug_getRawBlock/get-block-n.io (100%) rename tests/{ => jsonrpc}/debug_getRawBlock/get-genesis.io (100%) rename tests/{ => jsonrpc}/debug_getRawBlock/get-invalid-number.io (100%) rename tests/{ => jsonrpc}/debug_getRawHeader/get-block-n.io (100%) rename tests/{ => jsonrpc}/debug_getRawHeader/get-genesis.io (100%) rename tests/{ => jsonrpc}/debug_getRawHeader/get-invalid-number.io (100%) rename tests/{ => jsonrpc}/debug_getRawReceipts/get-block-n.io (100%) rename tests/{ => jsonrpc}/debug_getRawReceipts/get-genesis.io (100%) rename tests/{ => jsonrpc}/debug_getRawReceipts/get-invalid-number.io (100%) rename tests/{ => jsonrpc}/debug_getRawTransaction/get-invalid-hash.io (100%) rename tests/{ => jsonrpc}/debug_getRawTransaction/get-tx.io (100%) rename tests/{ => jsonrpc}/eth_blockNumber/simple-test.io (100%) rename tests/{ => jsonrpc}/eth_call/call-simple-contract.io (100%) rename tests/{ => jsonrpc}/eth_call/call-simple-transfer.io (100%) rename tests/{ => jsonrpc}/eth_chainId/get-chain-id.io (100%) rename tests/{ => jsonrpc}/eth_createAccessList/create-al-multiple-reads.io (100%) rename tests/{ => jsonrpc}/eth_createAccessList/create-al-simple-contract.io (100%) rename tests/{ => jsonrpc}/eth_createAccessList/create-al-simple-transfer.io (100%) rename tests/{ => jsonrpc}/eth_estimateGas/estimate-simple-contract.io (100%) rename tests/{ => jsonrpc}/eth_estimateGas/estimate-simple-transfer.io (100%) rename tests/{ => jsonrpc}/eth_feeHistory/fee-history.io (100%) rename tests/{ => jsonrpc}/eth_getBalance/get-balance-blockhash.io (100%) rename tests/{ => jsonrpc}/eth_getBalance/get-balance.io (100%) rename tests/{ => jsonrpc}/eth_getBlockByHash/get-block-by-empty-hash.io (100%) rename tests/{ => jsonrpc}/eth_getBlockByHash/get-block-by-hash.io (100%) rename tests/{ => jsonrpc}/eth_getBlockByHash/get-block-by-notfound-hash.io (100%) rename tests/{ => jsonrpc}/eth_getBlockByNumber/get-block-n.io (100%) rename tests/{ => jsonrpc}/eth_getBlockByNumber/get-block-notfound.io (100%) rename tests/{ => jsonrpc}/eth_getBlockByNumber/get-finalized.io (100%) rename tests/{ => jsonrpc}/eth_getBlockByNumber/get-genesis.io (100%) rename tests/{ => jsonrpc}/eth_getBlockByNumber/get-latest.io (100%) rename tests/{ => jsonrpc}/eth_getBlockByNumber/get-safe.io (100%) rename tests/{ => jsonrpc}/eth_getBlockReceipts/get-block-receipts-0.io (100%) rename tests/{ => jsonrpc}/eth_getBlockReceipts/get-block-receipts-by-hash.io (100%) rename tests/{ => jsonrpc}/eth_getBlockReceipts/get-block-receipts-earliest.io (100%) rename tests/{ => jsonrpc}/eth_getBlockReceipts/get-block-receipts-empty.io (100%) rename tests/{ => jsonrpc}/eth_getBlockReceipts/get-block-receipts-future.io (100%) rename tests/{ => jsonrpc}/eth_getBlockReceipts/get-block-receipts-latest.io (100%) rename tests/{ => jsonrpc}/eth_getBlockReceipts/get-block-receipts-n.io (100%) rename tests/{ => jsonrpc}/eth_getBlockReceipts/get-block-receipts-not-found.io (100%) rename tests/{ => jsonrpc}/eth_getBlockTransactionCountByHash/get-block-n.io (100%) rename tests/{ => jsonrpc}/eth_getBlockTransactionCountByHash/get-genesis.io (100%) rename tests/{ => jsonrpc}/eth_getBlockTransactionCountByNumber/get-block-n.io (100%) rename tests/{ => jsonrpc}/eth_getBlockTransactionCountByNumber/get-genesis.io (100%) rename tests/{ => jsonrpc}/eth_getCode/get-code.io (100%) rename tests/{ => jsonrpc}/eth_getProof/get-account-proof-blockhash.io (100%) rename tests/{ => jsonrpc}/eth_getProof/get-account-proof-with-storage.io (100%) rename tests/{ => jsonrpc}/eth_getProof/get-account-proof.io (100%) rename tests/{ => jsonrpc}/eth_getStorage/get-storage-invalid-key-too-large.io (100%) rename tests/{ => jsonrpc}/eth_getStorage/get-storage-invalid-key.io (100%) rename tests/{ => jsonrpc}/eth_getStorage/get-storage.io (100%) rename tests/{ => jsonrpc}/eth_getTransactionByBlockHashAndIndex/get-block-n.io (100%) rename tests/{ => jsonrpc}/eth_getTransactionByBlockNumberAndIndex/get-block-n.io (100%) rename tests/{ => jsonrpc}/eth_getTransactionByHash/get-access-list.io (100%) rename tests/{ => jsonrpc}/eth_getTransactionByHash/get-blob-tx.io (100%) rename tests/{ => jsonrpc}/eth_getTransactionByHash/get-dynamic-fee.io (100%) rename tests/{ => jsonrpc}/eth_getTransactionByHash/get-empty-tx.io (100%) rename tests/{ => jsonrpc}/eth_getTransactionByHash/get-legacy-create.io (100%) rename tests/{ => jsonrpc}/eth_getTransactionByHash/get-legacy-input.io (100%) rename tests/{ => jsonrpc}/eth_getTransactionByHash/get-legacy-tx.io (100%) rename tests/{ => jsonrpc}/eth_getTransactionByHash/get-notfound-tx.io (100%) rename tests/{ => jsonrpc}/eth_getTransactionCount/get-account-nonce.io (100%) rename tests/{ => jsonrpc}/eth_getTransactionReceipt/get-access-list.io (100%) rename tests/{ => jsonrpc}/eth_getTransactionReceipt/get-blob-tx.io (100%) rename tests/{ => jsonrpc}/eth_getTransactionReceipt/get-dynamic-fee.io (100%) rename tests/{ => jsonrpc}/eth_getTransactionReceipt/get-empty-tx.io (100%) rename tests/{ => jsonrpc}/eth_getTransactionReceipt/get-legacy-contract.io (100%) rename tests/{ => jsonrpc}/eth_getTransactionReceipt/get-legacy-input.io (100%) rename tests/{ => jsonrpc}/eth_getTransactionReceipt/get-legacy-receipt.io (100%) rename tests/{ => jsonrpc}/eth_getTransactionReceipt/get-notfound-tx.io (100%) rename tests/{ => jsonrpc}/eth_sendRawTransaction/send-access-list-transaction.io (100%) rename tests/{ => jsonrpc}/eth_sendRawTransaction/send-blob-tx.io (100%) rename tests/{ => jsonrpc}/eth_sendRawTransaction/send-dynamic-fee-access-list-transaction.io (100%) rename tests/{ => jsonrpc}/eth_sendRawTransaction/send-dynamic-fee-transaction.io (100%) rename tests/{ => jsonrpc}/eth_sendRawTransaction/send-legacy-transaction.io (100%) rename tests/{ => jsonrpc}/eth_syncing/check-syncing.io (100%) rename tests/{ => jsonrpc}/genesis.json (100%) diff --git a/tests/README.md b/tests/jsonrpc/README.md similarity index 100% rename from tests/README.md rename to tests/jsonrpc/README.md diff --git a/tests/bad.rlp b/tests/jsonrpc/bad.rlp similarity index 100% rename from tests/bad.rlp rename to tests/jsonrpc/bad.rlp diff --git a/tests/chain.rlp b/tests/jsonrpc/chain.rlp similarity index 100% rename from tests/chain.rlp rename to tests/jsonrpc/chain.rlp diff --git a/tests/debug_getRawBlock/get-block-n.io b/tests/jsonrpc/debug_getRawBlock/get-block-n.io similarity index 100% rename from tests/debug_getRawBlock/get-block-n.io rename to tests/jsonrpc/debug_getRawBlock/get-block-n.io diff --git a/tests/debug_getRawBlock/get-genesis.io b/tests/jsonrpc/debug_getRawBlock/get-genesis.io similarity index 100% rename from tests/debug_getRawBlock/get-genesis.io rename to tests/jsonrpc/debug_getRawBlock/get-genesis.io diff --git a/tests/debug_getRawBlock/get-invalid-number.io b/tests/jsonrpc/debug_getRawBlock/get-invalid-number.io similarity index 100% rename from tests/debug_getRawBlock/get-invalid-number.io rename to tests/jsonrpc/debug_getRawBlock/get-invalid-number.io diff --git a/tests/debug_getRawHeader/get-block-n.io b/tests/jsonrpc/debug_getRawHeader/get-block-n.io similarity index 100% rename from tests/debug_getRawHeader/get-block-n.io rename to tests/jsonrpc/debug_getRawHeader/get-block-n.io diff --git a/tests/debug_getRawHeader/get-genesis.io b/tests/jsonrpc/debug_getRawHeader/get-genesis.io similarity index 100% rename from tests/debug_getRawHeader/get-genesis.io rename to tests/jsonrpc/debug_getRawHeader/get-genesis.io diff --git a/tests/debug_getRawHeader/get-invalid-number.io b/tests/jsonrpc/debug_getRawHeader/get-invalid-number.io similarity index 100% rename from tests/debug_getRawHeader/get-invalid-number.io rename to tests/jsonrpc/debug_getRawHeader/get-invalid-number.io diff --git a/tests/debug_getRawReceipts/get-block-n.io b/tests/jsonrpc/debug_getRawReceipts/get-block-n.io similarity index 100% rename from tests/debug_getRawReceipts/get-block-n.io rename to tests/jsonrpc/debug_getRawReceipts/get-block-n.io diff --git a/tests/debug_getRawReceipts/get-genesis.io b/tests/jsonrpc/debug_getRawReceipts/get-genesis.io similarity index 100% rename from tests/debug_getRawReceipts/get-genesis.io rename to tests/jsonrpc/debug_getRawReceipts/get-genesis.io diff --git a/tests/debug_getRawReceipts/get-invalid-number.io b/tests/jsonrpc/debug_getRawReceipts/get-invalid-number.io similarity index 100% rename from tests/debug_getRawReceipts/get-invalid-number.io rename to tests/jsonrpc/debug_getRawReceipts/get-invalid-number.io diff --git a/tests/debug_getRawTransaction/get-invalid-hash.io b/tests/jsonrpc/debug_getRawTransaction/get-invalid-hash.io similarity index 100% rename from tests/debug_getRawTransaction/get-invalid-hash.io rename to tests/jsonrpc/debug_getRawTransaction/get-invalid-hash.io diff --git a/tests/debug_getRawTransaction/get-tx.io b/tests/jsonrpc/debug_getRawTransaction/get-tx.io similarity index 100% rename from tests/debug_getRawTransaction/get-tx.io rename to tests/jsonrpc/debug_getRawTransaction/get-tx.io diff --git a/tests/eth_blockNumber/simple-test.io b/tests/jsonrpc/eth_blockNumber/simple-test.io similarity index 100% rename from tests/eth_blockNumber/simple-test.io rename to tests/jsonrpc/eth_blockNumber/simple-test.io diff --git a/tests/eth_call/call-simple-contract.io b/tests/jsonrpc/eth_call/call-simple-contract.io similarity index 100% rename from tests/eth_call/call-simple-contract.io rename to tests/jsonrpc/eth_call/call-simple-contract.io diff --git a/tests/eth_call/call-simple-transfer.io b/tests/jsonrpc/eth_call/call-simple-transfer.io similarity index 100% rename from tests/eth_call/call-simple-transfer.io rename to tests/jsonrpc/eth_call/call-simple-transfer.io diff --git a/tests/eth_chainId/get-chain-id.io b/tests/jsonrpc/eth_chainId/get-chain-id.io similarity index 100% rename from tests/eth_chainId/get-chain-id.io rename to tests/jsonrpc/eth_chainId/get-chain-id.io diff --git a/tests/eth_createAccessList/create-al-multiple-reads.io b/tests/jsonrpc/eth_createAccessList/create-al-multiple-reads.io similarity index 100% rename from tests/eth_createAccessList/create-al-multiple-reads.io rename to tests/jsonrpc/eth_createAccessList/create-al-multiple-reads.io diff --git a/tests/eth_createAccessList/create-al-simple-contract.io b/tests/jsonrpc/eth_createAccessList/create-al-simple-contract.io similarity index 100% rename from tests/eth_createAccessList/create-al-simple-contract.io rename to tests/jsonrpc/eth_createAccessList/create-al-simple-contract.io diff --git a/tests/eth_createAccessList/create-al-simple-transfer.io b/tests/jsonrpc/eth_createAccessList/create-al-simple-transfer.io similarity index 100% rename from tests/eth_createAccessList/create-al-simple-transfer.io rename to tests/jsonrpc/eth_createAccessList/create-al-simple-transfer.io diff --git a/tests/eth_estimateGas/estimate-simple-contract.io b/tests/jsonrpc/eth_estimateGas/estimate-simple-contract.io similarity index 100% rename from tests/eth_estimateGas/estimate-simple-contract.io rename to tests/jsonrpc/eth_estimateGas/estimate-simple-contract.io diff --git a/tests/eth_estimateGas/estimate-simple-transfer.io b/tests/jsonrpc/eth_estimateGas/estimate-simple-transfer.io similarity index 100% rename from tests/eth_estimateGas/estimate-simple-transfer.io rename to tests/jsonrpc/eth_estimateGas/estimate-simple-transfer.io diff --git a/tests/eth_feeHistory/fee-history.io b/tests/jsonrpc/eth_feeHistory/fee-history.io similarity index 100% rename from tests/eth_feeHistory/fee-history.io rename to tests/jsonrpc/eth_feeHistory/fee-history.io diff --git a/tests/eth_getBalance/get-balance-blockhash.io b/tests/jsonrpc/eth_getBalance/get-balance-blockhash.io similarity index 100% rename from tests/eth_getBalance/get-balance-blockhash.io rename to tests/jsonrpc/eth_getBalance/get-balance-blockhash.io diff --git a/tests/eth_getBalance/get-balance.io b/tests/jsonrpc/eth_getBalance/get-balance.io similarity index 100% rename from tests/eth_getBalance/get-balance.io rename to tests/jsonrpc/eth_getBalance/get-balance.io diff --git a/tests/eth_getBlockByHash/get-block-by-empty-hash.io b/tests/jsonrpc/eth_getBlockByHash/get-block-by-empty-hash.io similarity index 100% rename from tests/eth_getBlockByHash/get-block-by-empty-hash.io rename to tests/jsonrpc/eth_getBlockByHash/get-block-by-empty-hash.io diff --git a/tests/eth_getBlockByHash/get-block-by-hash.io b/tests/jsonrpc/eth_getBlockByHash/get-block-by-hash.io similarity index 100% rename from tests/eth_getBlockByHash/get-block-by-hash.io rename to tests/jsonrpc/eth_getBlockByHash/get-block-by-hash.io diff --git a/tests/eth_getBlockByHash/get-block-by-notfound-hash.io b/tests/jsonrpc/eth_getBlockByHash/get-block-by-notfound-hash.io similarity index 100% rename from tests/eth_getBlockByHash/get-block-by-notfound-hash.io rename to tests/jsonrpc/eth_getBlockByHash/get-block-by-notfound-hash.io diff --git a/tests/eth_getBlockByNumber/get-block-n.io b/tests/jsonrpc/eth_getBlockByNumber/get-block-n.io similarity index 100% rename from tests/eth_getBlockByNumber/get-block-n.io rename to tests/jsonrpc/eth_getBlockByNumber/get-block-n.io diff --git a/tests/eth_getBlockByNumber/get-block-notfound.io b/tests/jsonrpc/eth_getBlockByNumber/get-block-notfound.io similarity index 100% rename from tests/eth_getBlockByNumber/get-block-notfound.io rename to tests/jsonrpc/eth_getBlockByNumber/get-block-notfound.io diff --git a/tests/eth_getBlockByNumber/get-finalized.io b/tests/jsonrpc/eth_getBlockByNumber/get-finalized.io similarity index 100% rename from tests/eth_getBlockByNumber/get-finalized.io rename to tests/jsonrpc/eth_getBlockByNumber/get-finalized.io diff --git a/tests/eth_getBlockByNumber/get-genesis.io b/tests/jsonrpc/eth_getBlockByNumber/get-genesis.io similarity index 100% rename from tests/eth_getBlockByNumber/get-genesis.io rename to tests/jsonrpc/eth_getBlockByNumber/get-genesis.io diff --git a/tests/eth_getBlockByNumber/get-latest.io b/tests/jsonrpc/eth_getBlockByNumber/get-latest.io similarity index 100% rename from tests/eth_getBlockByNumber/get-latest.io rename to tests/jsonrpc/eth_getBlockByNumber/get-latest.io diff --git a/tests/eth_getBlockByNumber/get-safe.io b/tests/jsonrpc/eth_getBlockByNumber/get-safe.io similarity index 100% rename from tests/eth_getBlockByNumber/get-safe.io rename to tests/jsonrpc/eth_getBlockByNumber/get-safe.io diff --git a/tests/eth_getBlockReceipts/get-block-receipts-0.io b/tests/jsonrpc/eth_getBlockReceipts/get-block-receipts-0.io similarity index 100% rename from tests/eth_getBlockReceipts/get-block-receipts-0.io rename to tests/jsonrpc/eth_getBlockReceipts/get-block-receipts-0.io diff --git a/tests/eth_getBlockReceipts/get-block-receipts-by-hash.io b/tests/jsonrpc/eth_getBlockReceipts/get-block-receipts-by-hash.io similarity index 100% rename from tests/eth_getBlockReceipts/get-block-receipts-by-hash.io rename to tests/jsonrpc/eth_getBlockReceipts/get-block-receipts-by-hash.io diff --git a/tests/eth_getBlockReceipts/get-block-receipts-earliest.io b/tests/jsonrpc/eth_getBlockReceipts/get-block-receipts-earliest.io similarity index 100% rename from tests/eth_getBlockReceipts/get-block-receipts-earliest.io rename to tests/jsonrpc/eth_getBlockReceipts/get-block-receipts-earliest.io diff --git a/tests/eth_getBlockReceipts/get-block-receipts-empty.io b/tests/jsonrpc/eth_getBlockReceipts/get-block-receipts-empty.io similarity index 100% rename from tests/eth_getBlockReceipts/get-block-receipts-empty.io rename to tests/jsonrpc/eth_getBlockReceipts/get-block-receipts-empty.io diff --git a/tests/eth_getBlockReceipts/get-block-receipts-future.io b/tests/jsonrpc/eth_getBlockReceipts/get-block-receipts-future.io similarity index 100% rename from tests/eth_getBlockReceipts/get-block-receipts-future.io rename to tests/jsonrpc/eth_getBlockReceipts/get-block-receipts-future.io diff --git a/tests/eth_getBlockReceipts/get-block-receipts-latest.io b/tests/jsonrpc/eth_getBlockReceipts/get-block-receipts-latest.io similarity index 100% rename from tests/eth_getBlockReceipts/get-block-receipts-latest.io rename to tests/jsonrpc/eth_getBlockReceipts/get-block-receipts-latest.io diff --git a/tests/eth_getBlockReceipts/get-block-receipts-n.io b/tests/jsonrpc/eth_getBlockReceipts/get-block-receipts-n.io similarity index 100% rename from tests/eth_getBlockReceipts/get-block-receipts-n.io rename to tests/jsonrpc/eth_getBlockReceipts/get-block-receipts-n.io diff --git a/tests/eth_getBlockReceipts/get-block-receipts-not-found.io b/tests/jsonrpc/eth_getBlockReceipts/get-block-receipts-not-found.io similarity index 100% rename from tests/eth_getBlockReceipts/get-block-receipts-not-found.io rename to tests/jsonrpc/eth_getBlockReceipts/get-block-receipts-not-found.io diff --git a/tests/eth_getBlockTransactionCountByHash/get-block-n.io b/tests/jsonrpc/eth_getBlockTransactionCountByHash/get-block-n.io similarity index 100% rename from tests/eth_getBlockTransactionCountByHash/get-block-n.io rename to tests/jsonrpc/eth_getBlockTransactionCountByHash/get-block-n.io diff --git a/tests/eth_getBlockTransactionCountByHash/get-genesis.io b/tests/jsonrpc/eth_getBlockTransactionCountByHash/get-genesis.io similarity index 100% rename from tests/eth_getBlockTransactionCountByHash/get-genesis.io rename to tests/jsonrpc/eth_getBlockTransactionCountByHash/get-genesis.io diff --git a/tests/eth_getBlockTransactionCountByNumber/get-block-n.io b/tests/jsonrpc/eth_getBlockTransactionCountByNumber/get-block-n.io similarity index 100% rename from tests/eth_getBlockTransactionCountByNumber/get-block-n.io rename to tests/jsonrpc/eth_getBlockTransactionCountByNumber/get-block-n.io diff --git a/tests/eth_getBlockTransactionCountByNumber/get-genesis.io b/tests/jsonrpc/eth_getBlockTransactionCountByNumber/get-genesis.io similarity index 100% rename from tests/eth_getBlockTransactionCountByNumber/get-genesis.io rename to tests/jsonrpc/eth_getBlockTransactionCountByNumber/get-genesis.io diff --git a/tests/eth_getCode/get-code.io b/tests/jsonrpc/eth_getCode/get-code.io similarity index 100% rename from tests/eth_getCode/get-code.io rename to tests/jsonrpc/eth_getCode/get-code.io diff --git a/tests/eth_getProof/get-account-proof-blockhash.io b/tests/jsonrpc/eth_getProof/get-account-proof-blockhash.io similarity index 100% rename from tests/eth_getProof/get-account-proof-blockhash.io rename to tests/jsonrpc/eth_getProof/get-account-proof-blockhash.io diff --git a/tests/eth_getProof/get-account-proof-with-storage.io b/tests/jsonrpc/eth_getProof/get-account-proof-with-storage.io similarity index 100% rename from tests/eth_getProof/get-account-proof-with-storage.io rename to tests/jsonrpc/eth_getProof/get-account-proof-with-storage.io diff --git a/tests/eth_getProof/get-account-proof.io b/tests/jsonrpc/eth_getProof/get-account-proof.io similarity index 100% rename from tests/eth_getProof/get-account-proof.io rename to tests/jsonrpc/eth_getProof/get-account-proof.io diff --git a/tests/eth_getStorage/get-storage-invalid-key-too-large.io b/tests/jsonrpc/eth_getStorage/get-storage-invalid-key-too-large.io similarity index 100% rename from tests/eth_getStorage/get-storage-invalid-key-too-large.io rename to tests/jsonrpc/eth_getStorage/get-storage-invalid-key-too-large.io diff --git a/tests/eth_getStorage/get-storage-invalid-key.io b/tests/jsonrpc/eth_getStorage/get-storage-invalid-key.io similarity index 100% rename from tests/eth_getStorage/get-storage-invalid-key.io rename to tests/jsonrpc/eth_getStorage/get-storage-invalid-key.io diff --git a/tests/eth_getStorage/get-storage.io b/tests/jsonrpc/eth_getStorage/get-storage.io similarity index 100% rename from tests/eth_getStorage/get-storage.io rename to tests/jsonrpc/eth_getStorage/get-storage.io diff --git a/tests/eth_getTransactionByBlockHashAndIndex/get-block-n.io b/tests/jsonrpc/eth_getTransactionByBlockHashAndIndex/get-block-n.io similarity index 100% rename from tests/eth_getTransactionByBlockHashAndIndex/get-block-n.io rename to tests/jsonrpc/eth_getTransactionByBlockHashAndIndex/get-block-n.io diff --git a/tests/eth_getTransactionByBlockNumberAndIndex/get-block-n.io b/tests/jsonrpc/eth_getTransactionByBlockNumberAndIndex/get-block-n.io similarity index 100% rename from tests/eth_getTransactionByBlockNumberAndIndex/get-block-n.io rename to tests/jsonrpc/eth_getTransactionByBlockNumberAndIndex/get-block-n.io diff --git a/tests/eth_getTransactionByHash/get-access-list.io b/tests/jsonrpc/eth_getTransactionByHash/get-access-list.io similarity index 100% rename from tests/eth_getTransactionByHash/get-access-list.io rename to tests/jsonrpc/eth_getTransactionByHash/get-access-list.io diff --git a/tests/eth_getTransactionByHash/get-blob-tx.io b/tests/jsonrpc/eth_getTransactionByHash/get-blob-tx.io similarity index 100% rename from tests/eth_getTransactionByHash/get-blob-tx.io rename to tests/jsonrpc/eth_getTransactionByHash/get-blob-tx.io diff --git a/tests/eth_getTransactionByHash/get-dynamic-fee.io b/tests/jsonrpc/eth_getTransactionByHash/get-dynamic-fee.io similarity index 100% rename from tests/eth_getTransactionByHash/get-dynamic-fee.io rename to tests/jsonrpc/eth_getTransactionByHash/get-dynamic-fee.io diff --git a/tests/eth_getTransactionByHash/get-empty-tx.io b/tests/jsonrpc/eth_getTransactionByHash/get-empty-tx.io similarity index 100% rename from tests/eth_getTransactionByHash/get-empty-tx.io rename to tests/jsonrpc/eth_getTransactionByHash/get-empty-tx.io diff --git a/tests/eth_getTransactionByHash/get-legacy-create.io b/tests/jsonrpc/eth_getTransactionByHash/get-legacy-create.io similarity index 100% rename from tests/eth_getTransactionByHash/get-legacy-create.io rename to tests/jsonrpc/eth_getTransactionByHash/get-legacy-create.io diff --git a/tests/eth_getTransactionByHash/get-legacy-input.io b/tests/jsonrpc/eth_getTransactionByHash/get-legacy-input.io similarity index 100% rename from tests/eth_getTransactionByHash/get-legacy-input.io rename to tests/jsonrpc/eth_getTransactionByHash/get-legacy-input.io diff --git a/tests/eth_getTransactionByHash/get-legacy-tx.io b/tests/jsonrpc/eth_getTransactionByHash/get-legacy-tx.io similarity index 100% rename from tests/eth_getTransactionByHash/get-legacy-tx.io rename to tests/jsonrpc/eth_getTransactionByHash/get-legacy-tx.io diff --git a/tests/eth_getTransactionByHash/get-notfound-tx.io b/tests/jsonrpc/eth_getTransactionByHash/get-notfound-tx.io similarity index 100% rename from tests/eth_getTransactionByHash/get-notfound-tx.io rename to tests/jsonrpc/eth_getTransactionByHash/get-notfound-tx.io diff --git a/tests/eth_getTransactionCount/get-account-nonce.io b/tests/jsonrpc/eth_getTransactionCount/get-account-nonce.io similarity index 100% rename from tests/eth_getTransactionCount/get-account-nonce.io rename to tests/jsonrpc/eth_getTransactionCount/get-account-nonce.io diff --git a/tests/eth_getTransactionReceipt/get-access-list.io b/tests/jsonrpc/eth_getTransactionReceipt/get-access-list.io similarity index 100% rename from tests/eth_getTransactionReceipt/get-access-list.io rename to tests/jsonrpc/eth_getTransactionReceipt/get-access-list.io diff --git a/tests/eth_getTransactionReceipt/get-blob-tx.io b/tests/jsonrpc/eth_getTransactionReceipt/get-blob-tx.io similarity index 100% rename from tests/eth_getTransactionReceipt/get-blob-tx.io rename to tests/jsonrpc/eth_getTransactionReceipt/get-blob-tx.io diff --git a/tests/eth_getTransactionReceipt/get-dynamic-fee.io b/tests/jsonrpc/eth_getTransactionReceipt/get-dynamic-fee.io similarity index 100% rename from tests/eth_getTransactionReceipt/get-dynamic-fee.io rename to tests/jsonrpc/eth_getTransactionReceipt/get-dynamic-fee.io diff --git a/tests/eth_getTransactionReceipt/get-empty-tx.io b/tests/jsonrpc/eth_getTransactionReceipt/get-empty-tx.io similarity index 100% rename from tests/eth_getTransactionReceipt/get-empty-tx.io rename to tests/jsonrpc/eth_getTransactionReceipt/get-empty-tx.io diff --git a/tests/eth_getTransactionReceipt/get-legacy-contract.io b/tests/jsonrpc/eth_getTransactionReceipt/get-legacy-contract.io similarity index 100% rename from tests/eth_getTransactionReceipt/get-legacy-contract.io rename to tests/jsonrpc/eth_getTransactionReceipt/get-legacy-contract.io diff --git a/tests/eth_getTransactionReceipt/get-legacy-input.io b/tests/jsonrpc/eth_getTransactionReceipt/get-legacy-input.io similarity index 100% rename from tests/eth_getTransactionReceipt/get-legacy-input.io rename to tests/jsonrpc/eth_getTransactionReceipt/get-legacy-input.io diff --git a/tests/eth_getTransactionReceipt/get-legacy-receipt.io b/tests/jsonrpc/eth_getTransactionReceipt/get-legacy-receipt.io similarity index 100% rename from tests/eth_getTransactionReceipt/get-legacy-receipt.io rename to tests/jsonrpc/eth_getTransactionReceipt/get-legacy-receipt.io diff --git a/tests/eth_getTransactionReceipt/get-notfound-tx.io b/tests/jsonrpc/eth_getTransactionReceipt/get-notfound-tx.io similarity index 100% rename from tests/eth_getTransactionReceipt/get-notfound-tx.io rename to tests/jsonrpc/eth_getTransactionReceipt/get-notfound-tx.io diff --git a/tests/eth_sendRawTransaction/send-access-list-transaction.io b/tests/jsonrpc/eth_sendRawTransaction/send-access-list-transaction.io similarity index 100% rename from tests/eth_sendRawTransaction/send-access-list-transaction.io rename to tests/jsonrpc/eth_sendRawTransaction/send-access-list-transaction.io diff --git a/tests/eth_sendRawTransaction/send-blob-tx.io b/tests/jsonrpc/eth_sendRawTransaction/send-blob-tx.io similarity index 100% rename from tests/eth_sendRawTransaction/send-blob-tx.io rename to tests/jsonrpc/eth_sendRawTransaction/send-blob-tx.io diff --git a/tests/eth_sendRawTransaction/send-dynamic-fee-access-list-transaction.io b/tests/jsonrpc/eth_sendRawTransaction/send-dynamic-fee-access-list-transaction.io similarity index 100% rename from tests/eth_sendRawTransaction/send-dynamic-fee-access-list-transaction.io rename to tests/jsonrpc/eth_sendRawTransaction/send-dynamic-fee-access-list-transaction.io diff --git a/tests/eth_sendRawTransaction/send-dynamic-fee-transaction.io b/tests/jsonrpc/eth_sendRawTransaction/send-dynamic-fee-transaction.io similarity index 100% rename from tests/eth_sendRawTransaction/send-dynamic-fee-transaction.io rename to tests/jsonrpc/eth_sendRawTransaction/send-dynamic-fee-transaction.io diff --git a/tests/eth_sendRawTransaction/send-legacy-transaction.io b/tests/jsonrpc/eth_sendRawTransaction/send-legacy-transaction.io similarity index 100% rename from tests/eth_sendRawTransaction/send-legacy-transaction.io rename to tests/jsonrpc/eth_sendRawTransaction/send-legacy-transaction.io diff --git a/tests/eth_syncing/check-syncing.io b/tests/jsonrpc/eth_syncing/check-syncing.io similarity index 100% rename from tests/eth_syncing/check-syncing.io rename to tests/jsonrpc/eth_syncing/check-syncing.io diff --git a/tests/genesis.json b/tests/jsonrpc/genesis.json similarity index 100% rename from tests/genesis.json rename to tests/jsonrpc/genesis.json From 80720f455149c773dbbfa45c50401b8117eb53ff Mon Sep 17 00:00:00 2001 From: jsvisa Date: Tue, 26 Sep 2023 23:08:50 +0800 Subject: [PATCH 17/29] tests: move graphql tests Signed-off-by: jsvisa --- .../graphql}/01_eth_blockNumber/request.gql | 0 .../graphql}/01_eth_blockNumber/response.json | 0 .../graphql}/02_eth_call_Block8/request.gql | 0 .../graphql}/02_eth_call_Block8/response.json | 0 .../graphql}/03_eth_call_BlockLatest/request.gql | 0 .../graphql}/03_eth_call_BlockLatest/response.json | 0 .../04_eth_estimateGas_contractDeploy/request.gql | 0 .../04_eth_estimateGas_contractDeploy/response.json | 0 .../05_eth_estimateGas_noParams/request.gql | 0 .../05_eth_estimateGas_noParams/response.json | 0 .../06_eth_estimateGas_transfer/request.gql | 0 .../06_eth_estimateGas_transfer/response.json | 0 .../graphql}/07_eth_gasPrice/request.gql | 0 .../graphql}/07_eth_gasPrice/response.json | 0 .../graphql}/08_eth_getBalance_0x19/request.gql | 0 .../graphql}/08_eth_getBalance_0x19/response.json | 0 .../request.gql | 0 .../response.json | 0 .../request.gql | 0 .../response.json | 0 .../graphql}/11_eth_getBalance_latest/request.gql | 0 .../graphql}/11_eth_getBalance_latest/response.json | 0 .../12_eth_getBalance_toobig_bn/request.gql | 0 .../12_eth_getBalance_toobig_bn/response.json | 0 .../13_eth_getBalance_without_addr/request.gql | 0 .../13_eth_getBalance_without_addr/response.json | 0 .../graphql}/14_eth_getBlock_byHash/request.gql | 0 .../graphql}/14_eth_getBlock_byHash/response.json | 0 .../15_eth_getBlock_byHashInvalid/request.gql | 0 .../15_eth_getBlock_byHashInvalid/response.json | 0 .../graphql}/16_eth_getBlock_byNumber/request.gql | 0 .../graphql}/16_eth_getBlock_byNumber/response.json | 0 .../17_eth_getBlock_byNumberInvalid/request.gql | 0 .../17_eth_getBlock_byNumberInvalid/response.json | 0 .../18_eth_getBlock_wrongParams/request.gql | 0 .../18_eth_getBlock_wrongParams/response.json | 0 .../request.gql | 0 .../response.json | 0 .../request.gql | 0 .../response.json | 0 .../graphql}/21_eth_getCode_noCode/request.gql | 0 .../graphql}/21_eth_getCode_noCode/response.json | 0 .../graphql}/22_eth_getCode/request.gql | 0 .../graphql}/22_eth_getCode/response.json | 0 .../graphql}/23_eth_getLogs_matchTopic/request.gql | 0 .../23_eth_getLogs_matchTopic/response.json | 0 .../graphql}/24_eth_getLogs_range/request.gql | 0 .../graphql}/24_eth_getLogs_range/response.json | 0 .../request.gql | 0 .../response.json | 0 .../graphql}/26_eth_getStorageAt/request.gql | 0 .../graphql}/26_eth_getStorageAt/response.json | 0 .../request.gql | 0 .../response.json | 0 .../request.gql | 0 .../response.json | 0 .../request.gql | 0 .../response.json | 0 .../30_eth_getTransaction_byHash/request.gql | 0 .../30_eth_getTransaction_byHash/response.json | 0 .../31_eth_getTransaction_byHashNull/request.gql | 0 .../31_eth_getTransaction_byHashNull/response.json | 0 .../graphql}/32_eth_getTransactionCount/request.gql | 0 .../32_eth_getTransactionCount/response.json | 0 .../33_eth_getTransactionReceipt/request.gql | 0 .../33_eth_getTransactionReceipt/response.json | 0 .../request.gql | 0 .../response.json | 0 .../graphql}/35_graphql_pending/request.gql | 0 .../graphql}/35_graphql_pending/response.json | 0 .../request.gql | 0 .../response.json | 0 .../request.gql | 0 .../response.json | 0 .../request.gql | 0 .../response.json | 0 .../request.gql | 0 .../response.json | 0 .../graphql}/40_eth_syncing/request.gql | 0 .../graphql}/40_eth_syncing/response.json | 0 .../graphql}/41_graphql_blocks_byFrom/request.gql | 0 .../graphql}/41_graphql_blocks_byFrom/response.json | 0 .../graphql}/42_graphql_blocks_byRange/request.gql | 0 .../42_graphql_blocks_byRange/response.json | 0 .../43_graphql_blocks_byWrongRange/request.gql | 0 .../43_graphql_blocks_byWrongRange/response.json | 0 .../graphql}/44_getBlock_byHexNumber/request.gql | 0 .../graphql}/44_getBlock_byHexNumber/response.json | 0 .../graphql}/45_eth_getLogs_range_hex/request.gql | 0 .../graphql}/45_eth_getLogs_range_hex/response.json | 0 .../46_transaction_fromByHexBlockNumber/request.gql | 0 .../response.json | 0 .../47_block_withdrawals_pre_shanghai/request.gql | 0 .../47_block_withdrawals_pre_shanghai/response.json | 0 .../graphql}/48_block_withdrawals/request.gql | 0 .../graphql}/48_block_withdrawals/response.json | 0 .../graphql}/49_get_type2Transaction/request.gql | 0 .../graphql}/49_get_type2Transaction/response.json | 0 .../graphql}/50_eth_getBlock_shanghai/request.gql | 0 .../graphql}/50_eth_getBlock_shanghai/response.json | 0 {graphql/tests => tests/graphql}/chain.rlp | Bin {graphql/tests => tests/graphql}/genesis.json | 0 102 files changed, 0 insertions(+), 0 deletions(-) rename {graphql/tests => tests/graphql}/01_eth_blockNumber/request.gql (100%) rename {graphql/tests => tests/graphql}/01_eth_blockNumber/response.json (100%) rename {graphql/tests => tests/graphql}/02_eth_call_Block8/request.gql (100%) rename {graphql/tests => tests/graphql}/02_eth_call_Block8/response.json (100%) rename {graphql/tests => tests/graphql}/03_eth_call_BlockLatest/request.gql (100%) rename {graphql/tests => tests/graphql}/03_eth_call_BlockLatest/response.json (100%) rename {graphql/tests => tests/graphql}/04_eth_estimateGas_contractDeploy/request.gql (100%) rename {graphql/tests => tests/graphql}/04_eth_estimateGas_contractDeploy/response.json (100%) rename {graphql/tests => tests/graphql}/05_eth_estimateGas_noParams/request.gql (100%) rename {graphql/tests => tests/graphql}/05_eth_estimateGas_noParams/response.json (100%) rename {graphql/tests => tests/graphql}/06_eth_estimateGas_transfer/request.gql (100%) rename {graphql/tests => tests/graphql}/06_eth_estimateGas_transfer/response.json (100%) rename {graphql/tests => tests/graphql}/07_eth_gasPrice/request.gql (100%) rename {graphql/tests => tests/graphql}/07_eth_gasPrice/response.json (100%) rename {graphql/tests => tests/graphql}/08_eth_getBalance_0x19/request.gql (100%) rename {graphql/tests => tests/graphql}/08_eth_getBalance_0x19/response.json (100%) rename {graphql/tests => tests/graphql}/09_eth_getBalance_invalidAccountBlockNumber/request.gql (100%) rename {graphql/tests => tests/graphql}/09_eth_getBalance_invalidAccountBlockNumber/response.json (100%) rename {graphql/tests => tests/graphql}/10_eth_getBalance_invalidAccountLatest/request.gql (100%) rename {graphql/tests => tests/graphql}/10_eth_getBalance_invalidAccountLatest/response.json (100%) rename {graphql/tests => tests/graphql}/11_eth_getBalance_latest/request.gql (100%) rename {graphql/tests => tests/graphql}/11_eth_getBalance_latest/response.json (100%) rename {graphql/tests => tests/graphql}/12_eth_getBalance_toobig_bn/request.gql (100%) rename {graphql/tests => tests/graphql}/12_eth_getBalance_toobig_bn/response.json (100%) rename {graphql/tests => tests/graphql}/13_eth_getBalance_without_addr/request.gql (100%) rename {graphql/tests => tests/graphql}/13_eth_getBalance_without_addr/response.json (100%) rename {graphql/tests => tests/graphql}/14_eth_getBlock_byHash/request.gql (100%) rename {graphql/tests => tests/graphql}/14_eth_getBlock_byHash/response.json (100%) rename {graphql/tests => tests/graphql}/15_eth_getBlock_byHashInvalid/request.gql (100%) rename {graphql/tests => tests/graphql}/15_eth_getBlock_byHashInvalid/response.json (100%) rename {graphql/tests => tests/graphql}/16_eth_getBlock_byNumber/request.gql (100%) rename {graphql/tests => tests/graphql}/16_eth_getBlock_byNumber/response.json (100%) rename {graphql/tests => tests/graphql}/17_eth_getBlock_byNumberInvalid/request.gql (100%) rename {graphql/tests => tests/graphql}/17_eth_getBlock_byNumberInvalid/response.json (100%) rename {graphql/tests => tests/graphql}/18_eth_getBlock_wrongParams/request.gql (100%) rename {graphql/tests => tests/graphql}/18_eth_getBlock_wrongParams/response.json (100%) rename {graphql/tests => tests/graphql}/19_eth_getBlockTransactionCount_byHash/request.gql (100%) rename {graphql/tests => tests/graphql}/19_eth_getBlockTransactionCount_byHash/response.json (100%) rename {graphql/tests => tests/graphql}/20_eth_getBlockTransactionCount_byNumber/request.gql (100%) rename {graphql/tests => tests/graphql}/20_eth_getBlockTransactionCount_byNumber/response.json (100%) rename {graphql/tests => tests/graphql}/21_eth_getCode_noCode/request.gql (100%) rename {graphql/tests => tests/graphql}/21_eth_getCode_noCode/response.json (100%) rename {graphql/tests => tests/graphql}/22_eth_getCode/request.gql (100%) rename {graphql/tests => tests/graphql}/22_eth_getCode/response.json (100%) rename {graphql/tests => tests/graphql}/23_eth_getLogs_matchTopic/request.gql (100%) rename {graphql/tests => tests/graphql}/23_eth_getLogs_matchTopic/response.json (100%) rename {graphql/tests => tests/graphql}/24_eth_getLogs_range/request.gql (100%) rename {graphql/tests => tests/graphql}/24_eth_getLogs_range/response.json (100%) rename {graphql/tests => tests/graphql}/25_eth_getStorageAt_illegalRangeGreaterThan/request.gql (100%) rename {graphql/tests => tests/graphql}/25_eth_getStorageAt_illegalRangeGreaterThan/response.json (100%) rename {graphql/tests => tests/graphql}/26_eth_getStorageAt/request.gql (100%) rename {graphql/tests => tests/graphql}/26_eth_getStorageAt/response.json (100%) rename {graphql/tests => tests/graphql}/27_eth_getTransaction_byBlockHashAndIndex/request.gql (100%) rename {graphql/tests => tests/graphql}/27_eth_getTransaction_byBlockHashAndIndex/response.json (100%) rename {graphql/tests => tests/graphql}/28_eth_getTransaction_byBlockNumberAndIndex/request.gql (100%) rename {graphql/tests => tests/graphql}/28_eth_getTransaction_byBlockNumberAndIndex/response.json (100%) rename {graphql/tests => tests/graphql}/29_eth_getTransaction_byBlockNumberAndInvalidIndex/request.gql (100%) rename {graphql/tests => tests/graphql}/29_eth_getTransaction_byBlockNumberAndInvalidIndex/response.json (100%) rename {graphql/tests => tests/graphql}/30_eth_getTransaction_byHash/request.gql (100%) rename {graphql/tests => tests/graphql}/30_eth_getTransaction_byHash/response.json (100%) rename {graphql/tests => tests/graphql}/31_eth_getTransaction_byHashNull/request.gql (100%) rename {graphql/tests => tests/graphql}/31_eth_getTransaction_byHashNull/response.json (100%) rename {graphql/tests => tests/graphql}/32_eth_getTransactionCount/request.gql (100%) rename {graphql/tests => tests/graphql}/32_eth_getTransactionCount/response.json (100%) rename {graphql/tests => tests/graphql}/33_eth_getTransactionReceipt/request.gql (100%) rename {graphql/tests => tests/graphql}/33_eth_getTransactionReceipt/response.json (100%) rename {graphql/tests => tests/graphql}/34_eth_sendRawTransaction_contractCreation/request.gql (100%) rename {graphql/tests => tests/graphql}/34_eth_sendRawTransaction_contractCreation/response.json (100%) rename {graphql/tests => tests/graphql}/35_graphql_pending/request.gql (100%) rename {graphql/tests => tests/graphql}/35_graphql_pending/response.json (100%) rename {graphql/tests => tests/graphql}/36_eth_sendRawTransaction_messageCall/request.gql (100%) rename {graphql/tests => tests/graphql}/36_eth_sendRawTransaction_messageCall/response.json (100%) rename {graphql/tests => tests/graphql}/37_eth_sendRawTransaction_nonceTooLow/request.gql (100%) rename {graphql/tests => tests/graphql}/37_eth_sendRawTransaction_nonceTooLow/response.json (100%) rename {graphql/tests => tests/graphql}/38_eth_sendRawTransaction_transferEther/request.gql (100%) rename {graphql/tests => tests/graphql}/38_eth_sendRawTransaction_transferEther/response.json (100%) rename {graphql/tests => tests/graphql}/39_eth_sendRawTransaction_unsignedTransaction/request.gql (100%) rename {graphql/tests => tests/graphql}/39_eth_sendRawTransaction_unsignedTransaction/response.json (100%) rename {graphql/tests => tests/graphql}/40_eth_syncing/request.gql (100%) rename {graphql/tests => tests/graphql}/40_eth_syncing/response.json (100%) rename {graphql/tests => tests/graphql}/41_graphql_blocks_byFrom/request.gql (100%) rename {graphql/tests => tests/graphql}/41_graphql_blocks_byFrom/response.json (100%) rename {graphql/tests => tests/graphql}/42_graphql_blocks_byRange/request.gql (100%) rename {graphql/tests => tests/graphql}/42_graphql_blocks_byRange/response.json (100%) rename {graphql/tests => tests/graphql}/43_graphql_blocks_byWrongRange/request.gql (100%) rename {graphql/tests => tests/graphql}/43_graphql_blocks_byWrongRange/response.json (100%) rename {graphql/tests => tests/graphql}/44_getBlock_byHexNumber/request.gql (100%) rename {graphql/tests => tests/graphql}/44_getBlock_byHexNumber/response.json (100%) rename {graphql/tests => tests/graphql}/45_eth_getLogs_range_hex/request.gql (100%) rename {graphql/tests => tests/graphql}/45_eth_getLogs_range_hex/response.json (100%) rename {graphql/tests => tests/graphql}/46_transaction_fromByHexBlockNumber/request.gql (100%) rename {graphql/tests => tests/graphql}/46_transaction_fromByHexBlockNumber/response.json (100%) rename {graphql/tests => tests/graphql}/47_block_withdrawals_pre_shanghai/request.gql (100%) rename {graphql/tests => tests/graphql}/47_block_withdrawals_pre_shanghai/response.json (100%) rename {graphql/tests => tests/graphql}/48_block_withdrawals/request.gql (100%) rename {graphql/tests => tests/graphql}/48_block_withdrawals/response.json (100%) rename {graphql/tests => tests/graphql}/49_get_type2Transaction/request.gql (100%) rename {graphql/tests => tests/graphql}/49_get_type2Transaction/response.json (100%) rename {graphql/tests => tests/graphql}/50_eth_getBlock_shanghai/request.gql (100%) rename {graphql/tests => tests/graphql}/50_eth_getBlock_shanghai/response.json (100%) rename {graphql/tests => tests/graphql}/chain.rlp (100%) rename {graphql/tests => tests/graphql}/genesis.json (100%) diff --git a/graphql/tests/01_eth_blockNumber/request.gql b/tests/graphql/01_eth_blockNumber/request.gql similarity index 100% rename from graphql/tests/01_eth_blockNumber/request.gql rename to tests/graphql/01_eth_blockNumber/request.gql diff --git a/graphql/tests/01_eth_blockNumber/response.json b/tests/graphql/01_eth_blockNumber/response.json similarity index 100% rename from graphql/tests/01_eth_blockNumber/response.json rename to tests/graphql/01_eth_blockNumber/response.json diff --git a/graphql/tests/02_eth_call_Block8/request.gql b/tests/graphql/02_eth_call_Block8/request.gql similarity index 100% rename from graphql/tests/02_eth_call_Block8/request.gql rename to tests/graphql/02_eth_call_Block8/request.gql diff --git a/graphql/tests/02_eth_call_Block8/response.json b/tests/graphql/02_eth_call_Block8/response.json similarity index 100% rename from graphql/tests/02_eth_call_Block8/response.json rename to tests/graphql/02_eth_call_Block8/response.json diff --git a/graphql/tests/03_eth_call_BlockLatest/request.gql b/tests/graphql/03_eth_call_BlockLatest/request.gql similarity index 100% rename from graphql/tests/03_eth_call_BlockLatest/request.gql rename to tests/graphql/03_eth_call_BlockLatest/request.gql diff --git a/graphql/tests/03_eth_call_BlockLatest/response.json b/tests/graphql/03_eth_call_BlockLatest/response.json similarity index 100% rename from graphql/tests/03_eth_call_BlockLatest/response.json rename to tests/graphql/03_eth_call_BlockLatest/response.json diff --git a/graphql/tests/04_eth_estimateGas_contractDeploy/request.gql b/tests/graphql/04_eth_estimateGas_contractDeploy/request.gql similarity index 100% rename from graphql/tests/04_eth_estimateGas_contractDeploy/request.gql rename to tests/graphql/04_eth_estimateGas_contractDeploy/request.gql diff --git a/graphql/tests/04_eth_estimateGas_contractDeploy/response.json b/tests/graphql/04_eth_estimateGas_contractDeploy/response.json similarity index 100% rename from graphql/tests/04_eth_estimateGas_contractDeploy/response.json rename to tests/graphql/04_eth_estimateGas_contractDeploy/response.json diff --git a/graphql/tests/05_eth_estimateGas_noParams/request.gql b/tests/graphql/05_eth_estimateGas_noParams/request.gql similarity index 100% rename from graphql/tests/05_eth_estimateGas_noParams/request.gql rename to tests/graphql/05_eth_estimateGas_noParams/request.gql diff --git a/graphql/tests/05_eth_estimateGas_noParams/response.json b/tests/graphql/05_eth_estimateGas_noParams/response.json similarity index 100% rename from graphql/tests/05_eth_estimateGas_noParams/response.json rename to tests/graphql/05_eth_estimateGas_noParams/response.json diff --git a/graphql/tests/06_eth_estimateGas_transfer/request.gql b/tests/graphql/06_eth_estimateGas_transfer/request.gql similarity index 100% rename from graphql/tests/06_eth_estimateGas_transfer/request.gql rename to tests/graphql/06_eth_estimateGas_transfer/request.gql diff --git a/graphql/tests/06_eth_estimateGas_transfer/response.json b/tests/graphql/06_eth_estimateGas_transfer/response.json similarity index 100% rename from graphql/tests/06_eth_estimateGas_transfer/response.json rename to tests/graphql/06_eth_estimateGas_transfer/response.json diff --git a/graphql/tests/07_eth_gasPrice/request.gql b/tests/graphql/07_eth_gasPrice/request.gql similarity index 100% rename from graphql/tests/07_eth_gasPrice/request.gql rename to tests/graphql/07_eth_gasPrice/request.gql diff --git a/graphql/tests/07_eth_gasPrice/response.json b/tests/graphql/07_eth_gasPrice/response.json similarity index 100% rename from graphql/tests/07_eth_gasPrice/response.json rename to tests/graphql/07_eth_gasPrice/response.json diff --git a/graphql/tests/08_eth_getBalance_0x19/request.gql b/tests/graphql/08_eth_getBalance_0x19/request.gql similarity index 100% rename from graphql/tests/08_eth_getBalance_0x19/request.gql rename to tests/graphql/08_eth_getBalance_0x19/request.gql diff --git a/graphql/tests/08_eth_getBalance_0x19/response.json b/tests/graphql/08_eth_getBalance_0x19/response.json similarity index 100% rename from graphql/tests/08_eth_getBalance_0x19/response.json rename to tests/graphql/08_eth_getBalance_0x19/response.json diff --git a/graphql/tests/09_eth_getBalance_invalidAccountBlockNumber/request.gql b/tests/graphql/09_eth_getBalance_invalidAccountBlockNumber/request.gql similarity index 100% rename from graphql/tests/09_eth_getBalance_invalidAccountBlockNumber/request.gql rename to tests/graphql/09_eth_getBalance_invalidAccountBlockNumber/request.gql diff --git a/graphql/tests/09_eth_getBalance_invalidAccountBlockNumber/response.json b/tests/graphql/09_eth_getBalance_invalidAccountBlockNumber/response.json similarity index 100% rename from graphql/tests/09_eth_getBalance_invalidAccountBlockNumber/response.json rename to tests/graphql/09_eth_getBalance_invalidAccountBlockNumber/response.json diff --git a/graphql/tests/10_eth_getBalance_invalidAccountLatest/request.gql b/tests/graphql/10_eth_getBalance_invalidAccountLatest/request.gql similarity index 100% rename from graphql/tests/10_eth_getBalance_invalidAccountLatest/request.gql rename to tests/graphql/10_eth_getBalance_invalidAccountLatest/request.gql diff --git a/graphql/tests/10_eth_getBalance_invalidAccountLatest/response.json b/tests/graphql/10_eth_getBalance_invalidAccountLatest/response.json similarity index 100% rename from graphql/tests/10_eth_getBalance_invalidAccountLatest/response.json rename to tests/graphql/10_eth_getBalance_invalidAccountLatest/response.json diff --git a/graphql/tests/11_eth_getBalance_latest/request.gql b/tests/graphql/11_eth_getBalance_latest/request.gql similarity index 100% rename from graphql/tests/11_eth_getBalance_latest/request.gql rename to tests/graphql/11_eth_getBalance_latest/request.gql diff --git a/graphql/tests/11_eth_getBalance_latest/response.json b/tests/graphql/11_eth_getBalance_latest/response.json similarity index 100% rename from graphql/tests/11_eth_getBalance_latest/response.json rename to tests/graphql/11_eth_getBalance_latest/response.json diff --git a/graphql/tests/12_eth_getBalance_toobig_bn/request.gql b/tests/graphql/12_eth_getBalance_toobig_bn/request.gql similarity index 100% rename from graphql/tests/12_eth_getBalance_toobig_bn/request.gql rename to tests/graphql/12_eth_getBalance_toobig_bn/request.gql diff --git a/graphql/tests/12_eth_getBalance_toobig_bn/response.json b/tests/graphql/12_eth_getBalance_toobig_bn/response.json similarity index 100% rename from graphql/tests/12_eth_getBalance_toobig_bn/response.json rename to tests/graphql/12_eth_getBalance_toobig_bn/response.json diff --git a/graphql/tests/13_eth_getBalance_without_addr/request.gql b/tests/graphql/13_eth_getBalance_without_addr/request.gql similarity index 100% rename from graphql/tests/13_eth_getBalance_without_addr/request.gql rename to tests/graphql/13_eth_getBalance_without_addr/request.gql diff --git a/graphql/tests/13_eth_getBalance_without_addr/response.json b/tests/graphql/13_eth_getBalance_without_addr/response.json similarity index 100% rename from graphql/tests/13_eth_getBalance_without_addr/response.json rename to tests/graphql/13_eth_getBalance_without_addr/response.json diff --git a/graphql/tests/14_eth_getBlock_byHash/request.gql b/tests/graphql/14_eth_getBlock_byHash/request.gql similarity index 100% rename from graphql/tests/14_eth_getBlock_byHash/request.gql rename to tests/graphql/14_eth_getBlock_byHash/request.gql diff --git a/graphql/tests/14_eth_getBlock_byHash/response.json b/tests/graphql/14_eth_getBlock_byHash/response.json similarity index 100% rename from graphql/tests/14_eth_getBlock_byHash/response.json rename to tests/graphql/14_eth_getBlock_byHash/response.json diff --git a/graphql/tests/15_eth_getBlock_byHashInvalid/request.gql b/tests/graphql/15_eth_getBlock_byHashInvalid/request.gql similarity index 100% rename from graphql/tests/15_eth_getBlock_byHashInvalid/request.gql rename to tests/graphql/15_eth_getBlock_byHashInvalid/request.gql diff --git a/graphql/tests/15_eth_getBlock_byHashInvalid/response.json b/tests/graphql/15_eth_getBlock_byHashInvalid/response.json similarity index 100% rename from graphql/tests/15_eth_getBlock_byHashInvalid/response.json rename to tests/graphql/15_eth_getBlock_byHashInvalid/response.json diff --git a/graphql/tests/16_eth_getBlock_byNumber/request.gql b/tests/graphql/16_eth_getBlock_byNumber/request.gql similarity index 100% rename from graphql/tests/16_eth_getBlock_byNumber/request.gql rename to tests/graphql/16_eth_getBlock_byNumber/request.gql diff --git a/graphql/tests/16_eth_getBlock_byNumber/response.json b/tests/graphql/16_eth_getBlock_byNumber/response.json similarity index 100% rename from graphql/tests/16_eth_getBlock_byNumber/response.json rename to tests/graphql/16_eth_getBlock_byNumber/response.json diff --git a/graphql/tests/17_eth_getBlock_byNumberInvalid/request.gql b/tests/graphql/17_eth_getBlock_byNumberInvalid/request.gql similarity index 100% rename from graphql/tests/17_eth_getBlock_byNumberInvalid/request.gql rename to tests/graphql/17_eth_getBlock_byNumberInvalid/request.gql diff --git a/graphql/tests/17_eth_getBlock_byNumberInvalid/response.json b/tests/graphql/17_eth_getBlock_byNumberInvalid/response.json similarity index 100% rename from graphql/tests/17_eth_getBlock_byNumberInvalid/response.json rename to tests/graphql/17_eth_getBlock_byNumberInvalid/response.json diff --git a/graphql/tests/18_eth_getBlock_wrongParams/request.gql b/tests/graphql/18_eth_getBlock_wrongParams/request.gql similarity index 100% rename from graphql/tests/18_eth_getBlock_wrongParams/request.gql rename to tests/graphql/18_eth_getBlock_wrongParams/request.gql diff --git a/graphql/tests/18_eth_getBlock_wrongParams/response.json b/tests/graphql/18_eth_getBlock_wrongParams/response.json similarity index 100% rename from graphql/tests/18_eth_getBlock_wrongParams/response.json rename to tests/graphql/18_eth_getBlock_wrongParams/response.json diff --git a/graphql/tests/19_eth_getBlockTransactionCount_byHash/request.gql b/tests/graphql/19_eth_getBlockTransactionCount_byHash/request.gql similarity index 100% rename from graphql/tests/19_eth_getBlockTransactionCount_byHash/request.gql rename to tests/graphql/19_eth_getBlockTransactionCount_byHash/request.gql diff --git a/graphql/tests/19_eth_getBlockTransactionCount_byHash/response.json b/tests/graphql/19_eth_getBlockTransactionCount_byHash/response.json similarity index 100% rename from graphql/tests/19_eth_getBlockTransactionCount_byHash/response.json rename to tests/graphql/19_eth_getBlockTransactionCount_byHash/response.json diff --git a/graphql/tests/20_eth_getBlockTransactionCount_byNumber/request.gql b/tests/graphql/20_eth_getBlockTransactionCount_byNumber/request.gql similarity index 100% rename from graphql/tests/20_eth_getBlockTransactionCount_byNumber/request.gql rename to tests/graphql/20_eth_getBlockTransactionCount_byNumber/request.gql diff --git a/graphql/tests/20_eth_getBlockTransactionCount_byNumber/response.json b/tests/graphql/20_eth_getBlockTransactionCount_byNumber/response.json similarity index 100% rename from graphql/tests/20_eth_getBlockTransactionCount_byNumber/response.json rename to tests/graphql/20_eth_getBlockTransactionCount_byNumber/response.json diff --git a/graphql/tests/21_eth_getCode_noCode/request.gql b/tests/graphql/21_eth_getCode_noCode/request.gql similarity index 100% rename from graphql/tests/21_eth_getCode_noCode/request.gql rename to tests/graphql/21_eth_getCode_noCode/request.gql diff --git a/graphql/tests/21_eth_getCode_noCode/response.json b/tests/graphql/21_eth_getCode_noCode/response.json similarity index 100% rename from graphql/tests/21_eth_getCode_noCode/response.json rename to tests/graphql/21_eth_getCode_noCode/response.json diff --git a/graphql/tests/22_eth_getCode/request.gql b/tests/graphql/22_eth_getCode/request.gql similarity index 100% rename from graphql/tests/22_eth_getCode/request.gql rename to tests/graphql/22_eth_getCode/request.gql diff --git a/graphql/tests/22_eth_getCode/response.json b/tests/graphql/22_eth_getCode/response.json similarity index 100% rename from graphql/tests/22_eth_getCode/response.json rename to tests/graphql/22_eth_getCode/response.json diff --git a/graphql/tests/23_eth_getLogs_matchTopic/request.gql b/tests/graphql/23_eth_getLogs_matchTopic/request.gql similarity index 100% rename from graphql/tests/23_eth_getLogs_matchTopic/request.gql rename to tests/graphql/23_eth_getLogs_matchTopic/request.gql diff --git a/graphql/tests/23_eth_getLogs_matchTopic/response.json b/tests/graphql/23_eth_getLogs_matchTopic/response.json similarity index 100% rename from graphql/tests/23_eth_getLogs_matchTopic/response.json rename to tests/graphql/23_eth_getLogs_matchTopic/response.json diff --git a/graphql/tests/24_eth_getLogs_range/request.gql b/tests/graphql/24_eth_getLogs_range/request.gql similarity index 100% rename from graphql/tests/24_eth_getLogs_range/request.gql rename to tests/graphql/24_eth_getLogs_range/request.gql diff --git a/graphql/tests/24_eth_getLogs_range/response.json b/tests/graphql/24_eth_getLogs_range/response.json similarity index 100% rename from graphql/tests/24_eth_getLogs_range/response.json rename to tests/graphql/24_eth_getLogs_range/response.json diff --git a/graphql/tests/25_eth_getStorageAt_illegalRangeGreaterThan/request.gql b/tests/graphql/25_eth_getStorageAt_illegalRangeGreaterThan/request.gql similarity index 100% rename from graphql/tests/25_eth_getStorageAt_illegalRangeGreaterThan/request.gql rename to tests/graphql/25_eth_getStorageAt_illegalRangeGreaterThan/request.gql diff --git a/graphql/tests/25_eth_getStorageAt_illegalRangeGreaterThan/response.json b/tests/graphql/25_eth_getStorageAt_illegalRangeGreaterThan/response.json similarity index 100% rename from graphql/tests/25_eth_getStorageAt_illegalRangeGreaterThan/response.json rename to tests/graphql/25_eth_getStorageAt_illegalRangeGreaterThan/response.json diff --git a/graphql/tests/26_eth_getStorageAt/request.gql b/tests/graphql/26_eth_getStorageAt/request.gql similarity index 100% rename from graphql/tests/26_eth_getStorageAt/request.gql rename to tests/graphql/26_eth_getStorageAt/request.gql diff --git a/graphql/tests/26_eth_getStorageAt/response.json b/tests/graphql/26_eth_getStorageAt/response.json similarity index 100% rename from graphql/tests/26_eth_getStorageAt/response.json rename to tests/graphql/26_eth_getStorageAt/response.json diff --git a/graphql/tests/27_eth_getTransaction_byBlockHashAndIndex/request.gql b/tests/graphql/27_eth_getTransaction_byBlockHashAndIndex/request.gql similarity index 100% rename from graphql/tests/27_eth_getTransaction_byBlockHashAndIndex/request.gql rename to tests/graphql/27_eth_getTransaction_byBlockHashAndIndex/request.gql diff --git a/graphql/tests/27_eth_getTransaction_byBlockHashAndIndex/response.json b/tests/graphql/27_eth_getTransaction_byBlockHashAndIndex/response.json similarity index 100% rename from graphql/tests/27_eth_getTransaction_byBlockHashAndIndex/response.json rename to tests/graphql/27_eth_getTransaction_byBlockHashAndIndex/response.json diff --git a/graphql/tests/28_eth_getTransaction_byBlockNumberAndIndex/request.gql b/tests/graphql/28_eth_getTransaction_byBlockNumberAndIndex/request.gql similarity index 100% rename from graphql/tests/28_eth_getTransaction_byBlockNumberAndIndex/request.gql rename to tests/graphql/28_eth_getTransaction_byBlockNumberAndIndex/request.gql diff --git a/graphql/tests/28_eth_getTransaction_byBlockNumberAndIndex/response.json b/tests/graphql/28_eth_getTransaction_byBlockNumberAndIndex/response.json similarity index 100% rename from graphql/tests/28_eth_getTransaction_byBlockNumberAndIndex/response.json rename to tests/graphql/28_eth_getTransaction_byBlockNumberAndIndex/response.json diff --git a/graphql/tests/29_eth_getTransaction_byBlockNumberAndInvalidIndex/request.gql b/tests/graphql/29_eth_getTransaction_byBlockNumberAndInvalidIndex/request.gql similarity index 100% rename from graphql/tests/29_eth_getTransaction_byBlockNumberAndInvalidIndex/request.gql rename to tests/graphql/29_eth_getTransaction_byBlockNumberAndInvalidIndex/request.gql diff --git a/graphql/tests/29_eth_getTransaction_byBlockNumberAndInvalidIndex/response.json b/tests/graphql/29_eth_getTransaction_byBlockNumberAndInvalidIndex/response.json similarity index 100% rename from graphql/tests/29_eth_getTransaction_byBlockNumberAndInvalidIndex/response.json rename to tests/graphql/29_eth_getTransaction_byBlockNumberAndInvalidIndex/response.json diff --git a/graphql/tests/30_eth_getTransaction_byHash/request.gql b/tests/graphql/30_eth_getTransaction_byHash/request.gql similarity index 100% rename from graphql/tests/30_eth_getTransaction_byHash/request.gql rename to tests/graphql/30_eth_getTransaction_byHash/request.gql diff --git a/graphql/tests/30_eth_getTransaction_byHash/response.json b/tests/graphql/30_eth_getTransaction_byHash/response.json similarity index 100% rename from graphql/tests/30_eth_getTransaction_byHash/response.json rename to tests/graphql/30_eth_getTransaction_byHash/response.json diff --git a/graphql/tests/31_eth_getTransaction_byHashNull/request.gql b/tests/graphql/31_eth_getTransaction_byHashNull/request.gql similarity index 100% rename from graphql/tests/31_eth_getTransaction_byHashNull/request.gql rename to tests/graphql/31_eth_getTransaction_byHashNull/request.gql diff --git a/graphql/tests/31_eth_getTransaction_byHashNull/response.json b/tests/graphql/31_eth_getTransaction_byHashNull/response.json similarity index 100% rename from graphql/tests/31_eth_getTransaction_byHashNull/response.json rename to tests/graphql/31_eth_getTransaction_byHashNull/response.json diff --git a/graphql/tests/32_eth_getTransactionCount/request.gql b/tests/graphql/32_eth_getTransactionCount/request.gql similarity index 100% rename from graphql/tests/32_eth_getTransactionCount/request.gql rename to tests/graphql/32_eth_getTransactionCount/request.gql diff --git a/graphql/tests/32_eth_getTransactionCount/response.json b/tests/graphql/32_eth_getTransactionCount/response.json similarity index 100% rename from graphql/tests/32_eth_getTransactionCount/response.json rename to tests/graphql/32_eth_getTransactionCount/response.json diff --git a/graphql/tests/33_eth_getTransactionReceipt/request.gql b/tests/graphql/33_eth_getTransactionReceipt/request.gql similarity index 100% rename from graphql/tests/33_eth_getTransactionReceipt/request.gql rename to tests/graphql/33_eth_getTransactionReceipt/request.gql diff --git a/graphql/tests/33_eth_getTransactionReceipt/response.json b/tests/graphql/33_eth_getTransactionReceipt/response.json similarity index 100% rename from graphql/tests/33_eth_getTransactionReceipt/response.json rename to tests/graphql/33_eth_getTransactionReceipt/response.json diff --git a/graphql/tests/34_eth_sendRawTransaction_contractCreation/request.gql b/tests/graphql/34_eth_sendRawTransaction_contractCreation/request.gql similarity index 100% rename from graphql/tests/34_eth_sendRawTransaction_contractCreation/request.gql rename to tests/graphql/34_eth_sendRawTransaction_contractCreation/request.gql diff --git a/graphql/tests/34_eth_sendRawTransaction_contractCreation/response.json b/tests/graphql/34_eth_sendRawTransaction_contractCreation/response.json similarity index 100% rename from graphql/tests/34_eth_sendRawTransaction_contractCreation/response.json rename to tests/graphql/34_eth_sendRawTransaction_contractCreation/response.json diff --git a/graphql/tests/35_graphql_pending/request.gql b/tests/graphql/35_graphql_pending/request.gql similarity index 100% rename from graphql/tests/35_graphql_pending/request.gql rename to tests/graphql/35_graphql_pending/request.gql diff --git a/graphql/tests/35_graphql_pending/response.json b/tests/graphql/35_graphql_pending/response.json similarity index 100% rename from graphql/tests/35_graphql_pending/response.json rename to tests/graphql/35_graphql_pending/response.json diff --git a/graphql/tests/36_eth_sendRawTransaction_messageCall/request.gql b/tests/graphql/36_eth_sendRawTransaction_messageCall/request.gql similarity index 100% rename from graphql/tests/36_eth_sendRawTransaction_messageCall/request.gql rename to tests/graphql/36_eth_sendRawTransaction_messageCall/request.gql diff --git a/graphql/tests/36_eth_sendRawTransaction_messageCall/response.json b/tests/graphql/36_eth_sendRawTransaction_messageCall/response.json similarity index 100% rename from graphql/tests/36_eth_sendRawTransaction_messageCall/response.json rename to tests/graphql/36_eth_sendRawTransaction_messageCall/response.json diff --git a/graphql/tests/37_eth_sendRawTransaction_nonceTooLow/request.gql b/tests/graphql/37_eth_sendRawTransaction_nonceTooLow/request.gql similarity index 100% rename from graphql/tests/37_eth_sendRawTransaction_nonceTooLow/request.gql rename to tests/graphql/37_eth_sendRawTransaction_nonceTooLow/request.gql diff --git a/graphql/tests/37_eth_sendRawTransaction_nonceTooLow/response.json b/tests/graphql/37_eth_sendRawTransaction_nonceTooLow/response.json similarity index 100% rename from graphql/tests/37_eth_sendRawTransaction_nonceTooLow/response.json rename to tests/graphql/37_eth_sendRawTransaction_nonceTooLow/response.json diff --git a/graphql/tests/38_eth_sendRawTransaction_transferEther/request.gql b/tests/graphql/38_eth_sendRawTransaction_transferEther/request.gql similarity index 100% rename from graphql/tests/38_eth_sendRawTransaction_transferEther/request.gql rename to tests/graphql/38_eth_sendRawTransaction_transferEther/request.gql diff --git a/graphql/tests/38_eth_sendRawTransaction_transferEther/response.json b/tests/graphql/38_eth_sendRawTransaction_transferEther/response.json similarity index 100% rename from graphql/tests/38_eth_sendRawTransaction_transferEther/response.json rename to tests/graphql/38_eth_sendRawTransaction_transferEther/response.json diff --git a/graphql/tests/39_eth_sendRawTransaction_unsignedTransaction/request.gql b/tests/graphql/39_eth_sendRawTransaction_unsignedTransaction/request.gql similarity index 100% rename from graphql/tests/39_eth_sendRawTransaction_unsignedTransaction/request.gql rename to tests/graphql/39_eth_sendRawTransaction_unsignedTransaction/request.gql diff --git a/graphql/tests/39_eth_sendRawTransaction_unsignedTransaction/response.json b/tests/graphql/39_eth_sendRawTransaction_unsignedTransaction/response.json similarity index 100% rename from graphql/tests/39_eth_sendRawTransaction_unsignedTransaction/response.json rename to tests/graphql/39_eth_sendRawTransaction_unsignedTransaction/response.json diff --git a/graphql/tests/40_eth_syncing/request.gql b/tests/graphql/40_eth_syncing/request.gql similarity index 100% rename from graphql/tests/40_eth_syncing/request.gql rename to tests/graphql/40_eth_syncing/request.gql diff --git a/graphql/tests/40_eth_syncing/response.json b/tests/graphql/40_eth_syncing/response.json similarity index 100% rename from graphql/tests/40_eth_syncing/response.json rename to tests/graphql/40_eth_syncing/response.json diff --git a/graphql/tests/41_graphql_blocks_byFrom/request.gql b/tests/graphql/41_graphql_blocks_byFrom/request.gql similarity index 100% rename from graphql/tests/41_graphql_blocks_byFrom/request.gql rename to tests/graphql/41_graphql_blocks_byFrom/request.gql diff --git a/graphql/tests/41_graphql_blocks_byFrom/response.json b/tests/graphql/41_graphql_blocks_byFrom/response.json similarity index 100% rename from graphql/tests/41_graphql_blocks_byFrom/response.json rename to tests/graphql/41_graphql_blocks_byFrom/response.json diff --git a/graphql/tests/42_graphql_blocks_byRange/request.gql b/tests/graphql/42_graphql_blocks_byRange/request.gql similarity index 100% rename from graphql/tests/42_graphql_blocks_byRange/request.gql rename to tests/graphql/42_graphql_blocks_byRange/request.gql diff --git a/graphql/tests/42_graphql_blocks_byRange/response.json b/tests/graphql/42_graphql_blocks_byRange/response.json similarity index 100% rename from graphql/tests/42_graphql_blocks_byRange/response.json rename to tests/graphql/42_graphql_blocks_byRange/response.json diff --git a/graphql/tests/43_graphql_blocks_byWrongRange/request.gql b/tests/graphql/43_graphql_blocks_byWrongRange/request.gql similarity index 100% rename from graphql/tests/43_graphql_blocks_byWrongRange/request.gql rename to tests/graphql/43_graphql_blocks_byWrongRange/request.gql diff --git a/graphql/tests/43_graphql_blocks_byWrongRange/response.json b/tests/graphql/43_graphql_blocks_byWrongRange/response.json similarity index 100% rename from graphql/tests/43_graphql_blocks_byWrongRange/response.json rename to tests/graphql/43_graphql_blocks_byWrongRange/response.json diff --git a/graphql/tests/44_getBlock_byHexNumber/request.gql b/tests/graphql/44_getBlock_byHexNumber/request.gql similarity index 100% rename from graphql/tests/44_getBlock_byHexNumber/request.gql rename to tests/graphql/44_getBlock_byHexNumber/request.gql diff --git a/graphql/tests/44_getBlock_byHexNumber/response.json b/tests/graphql/44_getBlock_byHexNumber/response.json similarity index 100% rename from graphql/tests/44_getBlock_byHexNumber/response.json rename to tests/graphql/44_getBlock_byHexNumber/response.json diff --git a/graphql/tests/45_eth_getLogs_range_hex/request.gql b/tests/graphql/45_eth_getLogs_range_hex/request.gql similarity index 100% rename from graphql/tests/45_eth_getLogs_range_hex/request.gql rename to tests/graphql/45_eth_getLogs_range_hex/request.gql diff --git a/graphql/tests/45_eth_getLogs_range_hex/response.json b/tests/graphql/45_eth_getLogs_range_hex/response.json similarity index 100% rename from graphql/tests/45_eth_getLogs_range_hex/response.json rename to tests/graphql/45_eth_getLogs_range_hex/response.json diff --git a/graphql/tests/46_transaction_fromByHexBlockNumber/request.gql b/tests/graphql/46_transaction_fromByHexBlockNumber/request.gql similarity index 100% rename from graphql/tests/46_transaction_fromByHexBlockNumber/request.gql rename to tests/graphql/46_transaction_fromByHexBlockNumber/request.gql diff --git a/graphql/tests/46_transaction_fromByHexBlockNumber/response.json b/tests/graphql/46_transaction_fromByHexBlockNumber/response.json similarity index 100% rename from graphql/tests/46_transaction_fromByHexBlockNumber/response.json rename to tests/graphql/46_transaction_fromByHexBlockNumber/response.json diff --git a/graphql/tests/47_block_withdrawals_pre_shanghai/request.gql b/tests/graphql/47_block_withdrawals_pre_shanghai/request.gql similarity index 100% rename from graphql/tests/47_block_withdrawals_pre_shanghai/request.gql rename to tests/graphql/47_block_withdrawals_pre_shanghai/request.gql diff --git a/graphql/tests/47_block_withdrawals_pre_shanghai/response.json b/tests/graphql/47_block_withdrawals_pre_shanghai/response.json similarity index 100% rename from graphql/tests/47_block_withdrawals_pre_shanghai/response.json rename to tests/graphql/47_block_withdrawals_pre_shanghai/response.json diff --git a/graphql/tests/48_block_withdrawals/request.gql b/tests/graphql/48_block_withdrawals/request.gql similarity index 100% rename from graphql/tests/48_block_withdrawals/request.gql rename to tests/graphql/48_block_withdrawals/request.gql diff --git a/graphql/tests/48_block_withdrawals/response.json b/tests/graphql/48_block_withdrawals/response.json similarity index 100% rename from graphql/tests/48_block_withdrawals/response.json rename to tests/graphql/48_block_withdrawals/response.json diff --git a/graphql/tests/49_get_type2Transaction/request.gql b/tests/graphql/49_get_type2Transaction/request.gql similarity index 100% rename from graphql/tests/49_get_type2Transaction/request.gql rename to tests/graphql/49_get_type2Transaction/request.gql diff --git a/graphql/tests/49_get_type2Transaction/response.json b/tests/graphql/49_get_type2Transaction/response.json similarity index 100% rename from graphql/tests/49_get_type2Transaction/response.json rename to tests/graphql/49_get_type2Transaction/response.json diff --git a/graphql/tests/50_eth_getBlock_shanghai/request.gql b/tests/graphql/50_eth_getBlock_shanghai/request.gql similarity index 100% rename from graphql/tests/50_eth_getBlock_shanghai/request.gql rename to tests/graphql/50_eth_getBlock_shanghai/request.gql diff --git a/graphql/tests/50_eth_getBlock_shanghai/response.json b/tests/graphql/50_eth_getBlock_shanghai/response.json similarity index 100% rename from graphql/tests/50_eth_getBlock_shanghai/response.json rename to tests/graphql/50_eth_getBlock_shanghai/response.json diff --git a/graphql/tests/chain.rlp b/tests/graphql/chain.rlp similarity index 100% rename from graphql/tests/chain.rlp rename to tests/graphql/chain.rlp diff --git a/graphql/tests/genesis.json b/tests/graphql/genesis.json similarity index 100% rename from graphql/tests/genesis.json rename to tests/graphql/genesis.json From 3c11ca64d854beffd5cffbcb6aff6968ca8a08cc Mon Sep 17 00:00:00 2001 From: jsvisa Date: Tue, 26 Sep 2023 23:12:05 +0800 Subject: [PATCH 18/29] graphql: rm sequence in the tc name Signed-off-by: jsvisa --- .../{48_block_withdrawals => block_withdrawals}/request.gql | 0 .../{48_block_withdrawals => block_withdrawals}/response.json | 0 .../request.gql | 0 .../response.json | 0 tests/graphql/{01_eth_blockNumber => eth_blockNumber}/request.gql | 0 .../graphql/{01_eth_blockNumber => eth_blockNumber}/response.json | 0 tests/graphql/{02_eth_call_Block8 => eth_call_Block8}/request.gql | 0 .../graphql/{02_eth_call_Block8 => eth_call_Block8}/response.json | 0 .../{03_eth_call_BlockLatest => eth_call_BlockLatest}/request.gql | 0 .../response.json | 0 .../request.gql | 0 .../response.json | 0 .../request.gql | 0 .../response.json | 0 .../request.gql | 0 .../response.json | 0 tests/graphql/{07_eth_gasPrice => eth_gasPrice}/request.gql | 0 tests/graphql/{07_eth_gasPrice => eth_gasPrice}/response.json | 0 .../{08_eth_getBalance_0x19 => eth_getBalance_0x19}/request.gql | 0 .../{08_eth_getBalance_0x19 => eth_getBalance_0x19}/response.json | 0 .../request.gql | 0 .../response.json | 0 .../request.gql | 0 .../response.json | 0 .../request.gql | 0 .../response.json | 0 .../request.gql | 0 .../response.json | 0 .../request.gql | 0 .../response.json | 0 .../request.gql | 0 .../response.json | 0 .../request.gql | 0 .../response.json | 0 .../{14_eth_getBlock_byHash => eth_getBlock_byHash}/request.gql | 0 .../{14_eth_getBlock_byHash => eth_getBlock_byHash}/response.json | 0 .../request.gql | 0 .../response.json | 0 .../request.gql | 0 .../response.json | 0 .../request.gql | 0 .../response.json | 0 .../request.gql | 0 .../response.json | 0 .../request.gql | 0 .../response.json | 0 tests/graphql/{22_eth_getCode => eth_getCode}/request.gql | 0 tests/graphql/{22_eth_getCode => eth_getCode}/response.json | 0 .../{21_eth_getCode_noCode => eth_getCode_noCode}/request.gql | 0 .../{21_eth_getCode_noCode => eth_getCode_noCode}/response.json | 0 .../request.gql | 0 .../response.json | 0 .../{24_eth_getLogs_range => eth_getLogs_range}/request.gql | 0 .../{24_eth_getLogs_range => eth_getLogs_range}/response.json | 0 .../request.gql | 0 .../response.json | 0 .../graphql/{26_eth_getStorageAt => eth_getStorageAt}/request.gql | 0 .../{26_eth_getStorageAt => eth_getStorageAt}/response.json | 0 .../request.gql | 0 .../response.json | 0 .../request.gql | 0 .../response.json | 0 .../request.gql | 0 .../response.json | 0 .../request.gql | 0 .../response.json | 0 .../request.gql | 0 .../response.json | 0 .../request.gql | 0 .../response.json | 0 .../request.gql | 0 .../response.json | 0 .../request.gql | 0 .../response.json | 0 .../request.gql | 0 .../response.json | 0 .../request.gql | 0 .../response.json | 0 .../request.gql | 0 .../response.json | 0 .../request.gql | 0 .../response.json | 0 .../request.gql | 0 .../response.json | 0 tests/graphql/{40_eth_syncing => eth_syncing}/request.gql | 0 tests/graphql/{40_eth_syncing => eth_syncing}/response.json | 0 .../{44_getBlock_byHexNumber => getBlock_byHexNumber}/request.gql | 0 .../response.json | 0 .../{49_get_type2Transaction => get_type2Transaction}/request.gql | 0 .../response.json | 0 .../request.gql | 0 .../response.json | 0 .../request.gql | 0 .../response.json | 0 .../request.gql | 0 .../response.json | 0 tests/graphql/{35_graphql_pending => graphql_pending}/request.gql | 0 .../graphql/{35_graphql_pending => graphql_pending}/response.json | 0 .../request.gql | 0 .../response.json | 0 100 files changed, 0 insertions(+), 0 deletions(-) rename tests/graphql/{48_block_withdrawals => block_withdrawals}/request.gql (100%) rename tests/graphql/{48_block_withdrawals => block_withdrawals}/response.json (100%) rename tests/graphql/{47_block_withdrawals_pre_shanghai => block_withdrawals_pre_shanghai}/request.gql (100%) rename tests/graphql/{47_block_withdrawals_pre_shanghai => block_withdrawals_pre_shanghai}/response.json (100%) rename tests/graphql/{01_eth_blockNumber => eth_blockNumber}/request.gql (100%) rename tests/graphql/{01_eth_blockNumber => eth_blockNumber}/response.json (100%) rename tests/graphql/{02_eth_call_Block8 => eth_call_Block8}/request.gql (100%) rename tests/graphql/{02_eth_call_Block8 => eth_call_Block8}/response.json (100%) rename tests/graphql/{03_eth_call_BlockLatest => eth_call_BlockLatest}/request.gql (100%) rename tests/graphql/{03_eth_call_BlockLatest => eth_call_BlockLatest}/response.json (100%) rename tests/graphql/{04_eth_estimateGas_contractDeploy => eth_estimateGas_contractDeploy}/request.gql (100%) rename tests/graphql/{04_eth_estimateGas_contractDeploy => eth_estimateGas_contractDeploy}/response.json (100%) rename tests/graphql/{05_eth_estimateGas_noParams => eth_estimateGas_noParams}/request.gql (100%) rename tests/graphql/{05_eth_estimateGas_noParams => eth_estimateGas_noParams}/response.json (100%) rename tests/graphql/{06_eth_estimateGas_transfer => eth_estimateGas_transfer}/request.gql (100%) rename tests/graphql/{06_eth_estimateGas_transfer => eth_estimateGas_transfer}/response.json (100%) rename tests/graphql/{07_eth_gasPrice => eth_gasPrice}/request.gql (100%) rename tests/graphql/{07_eth_gasPrice => eth_gasPrice}/response.json (100%) rename tests/graphql/{08_eth_getBalance_0x19 => eth_getBalance_0x19}/request.gql (100%) rename tests/graphql/{08_eth_getBalance_0x19 => eth_getBalance_0x19}/response.json (100%) rename tests/graphql/{09_eth_getBalance_invalidAccountBlockNumber => eth_getBalance_invalidAccountBlockNumber}/request.gql (100%) rename tests/graphql/{09_eth_getBalance_invalidAccountBlockNumber => eth_getBalance_invalidAccountBlockNumber}/response.json (100%) rename tests/graphql/{10_eth_getBalance_invalidAccountLatest => eth_getBalance_invalidAccountLatest}/request.gql (100%) rename tests/graphql/{10_eth_getBalance_invalidAccountLatest => eth_getBalance_invalidAccountLatest}/response.json (100%) rename tests/graphql/{11_eth_getBalance_latest => eth_getBalance_latest}/request.gql (100%) rename tests/graphql/{11_eth_getBalance_latest => eth_getBalance_latest}/response.json (100%) rename tests/graphql/{12_eth_getBalance_toobig_bn => eth_getBalance_toobig_bn}/request.gql (100%) rename tests/graphql/{12_eth_getBalance_toobig_bn => eth_getBalance_toobig_bn}/response.json (100%) rename tests/graphql/{13_eth_getBalance_without_addr => eth_getBalance_without_addr}/request.gql (100%) rename tests/graphql/{13_eth_getBalance_without_addr => eth_getBalance_without_addr}/response.json (100%) rename tests/graphql/{19_eth_getBlockTransactionCount_byHash => eth_getBlockTransactionCount_byHash}/request.gql (100%) rename tests/graphql/{19_eth_getBlockTransactionCount_byHash => eth_getBlockTransactionCount_byHash}/response.json (100%) rename tests/graphql/{20_eth_getBlockTransactionCount_byNumber => eth_getBlockTransactionCount_byNumber}/request.gql (100%) rename tests/graphql/{20_eth_getBlockTransactionCount_byNumber => eth_getBlockTransactionCount_byNumber}/response.json (100%) rename tests/graphql/{14_eth_getBlock_byHash => eth_getBlock_byHash}/request.gql (100%) rename tests/graphql/{14_eth_getBlock_byHash => eth_getBlock_byHash}/response.json (100%) rename tests/graphql/{15_eth_getBlock_byHashInvalid => eth_getBlock_byHashInvalid}/request.gql (100%) rename tests/graphql/{15_eth_getBlock_byHashInvalid => eth_getBlock_byHashInvalid}/response.json (100%) rename tests/graphql/{16_eth_getBlock_byNumber => eth_getBlock_byNumber}/request.gql (100%) rename tests/graphql/{16_eth_getBlock_byNumber => eth_getBlock_byNumber}/response.json (100%) rename tests/graphql/{17_eth_getBlock_byNumberInvalid => eth_getBlock_byNumberInvalid}/request.gql (100%) rename tests/graphql/{17_eth_getBlock_byNumberInvalid => eth_getBlock_byNumberInvalid}/response.json (100%) rename tests/graphql/{50_eth_getBlock_shanghai => eth_getBlock_shanghai}/request.gql (100%) rename tests/graphql/{50_eth_getBlock_shanghai => eth_getBlock_shanghai}/response.json (100%) rename tests/graphql/{18_eth_getBlock_wrongParams => eth_getBlock_wrongParams}/request.gql (100%) rename tests/graphql/{18_eth_getBlock_wrongParams => eth_getBlock_wrongParams}/response.json (100%) rename tests/graphql/{22_eth_getCode => eth_getCode}/request.gql (100%) rename tests/graphql/{22_eth_getCode => eth_getCode}/response.json (100%) rename tests/graphql/{21_eth_getCode_noCode => eth_getCode_noCode}/request.gql (100%) rename tests/graphql/{21_eth_getCode_noCode => eth_getCode_noCode}/response.json (100%) rename tests/graphql/{23_eth_getLogs_matchTopic => eth_getLogs_matchTopic}/request.gql (100%) rename tests/graphql/{23_eth_getLogs_matchTopic => eth_getLogs_matchTopic}/response.json (100%) rename tests/graphql/{24_eth_getLogs_range => eth_getLogs_range}/request.gql (100%) rename tests/graphql/{24_eth_getLogs_range => eth_getLogs_range}/response.json (100%) rename tests/graphql/{45_eth_getLogs_range_hex => eth_getLogs_range_hex}/request.gql (100%) rename tests/graphql/{45_eth_getLogs_range_hex => eth_getLogs_range_hex}/response.json (100%) rename tests/graphql/{26_eth_getStorageAt => eth_getStorageAt}/request.gql (100%) rename tests/graphql/{26_eth_getStorageAt => eth_getStorageAt}/response.json (100%) rename tests/graphql/{25_eth_getStorageAt_illegalRangeGreaterThan => eth_getStorageAt_illegalRangeGreaterThan}/request.gql (100%) rename tests/graphql/{25_eth_getStorageAt_illegalRangeGreaterThan => eth_getStorageAt_illegalRangeGreaterThan}/response.json (100%) rename tests/graphql/{32_eth_getTransactionCount => eth_getTransactionCount}/request.gql (100%) rename tests/graphql/{32_eth_getTransactionCount => eth_getTransactionCount}/response.json (100%) rename tests/graphql/{33_eth_getTransactionReceipt => eth_getTransactionReceipt}/request.gql (100%) rename tests/graphql/{33_eth_getTransactionReceipt => eth_getTransactionReceipt}/response.json (100%) rename tests/graphql/{27_eth_getTransaction_byBlockHashAndIndex => eth_getTransaction_byBlockHashAndIndex}/request.gql (100%) rename tests/graphql/{27_eth_getTransaction_byBlockHashAndIndex => eth_getTransaction_byBlockHashAndIndex}/response.json (100%) rename tests/graphql/{28_eth_getTransaction_byBlockNumberAndIndex => eth_getTransaction_byBlockNumberAndIndex}/request.gql (100%) rename tests/graphql/{28_eth_getTransaction_byBlockNumberAndIndex => eth_getTransaction_byBlockNumberAndIndex}/response.json (100%) rename tests/graphql/{29_eth_getTransaction_byBlockNumberAndInvalidIndex => eth_getTransaction_byBlockNumberAndInvalidIndex}/request.gql (100%) rename tests/graphql/{29_eth_getTransaction_byBlockNumberAndInvalidIndex => eth_getTransaction_byBlockNumberAndInvalidIndex}/response.json (100%) rename tests/graphql/{30_eth_getTransaction_byHash => eth_getTransaction_byHash}/request.gql (100%) rename tests/graphql/{30_eth_getTransaction_byHash => eth_getTransaction_byHash}/response.json (100%) rename tests/graphql/{31_eth_getTransaction_byHashNull => eth_getTransaction_byHashNull}/request.gql (100%) rename tests/graphql/{31_eth_getTransaction_byHashNull => eth_getTransaction_byHashNull}/response.json (100%) rename tests/graphql/{34_eth_sendRawTransaction_contractCreation => eth_sendRawTransaction_contractCreation}/request.gql (100%) rename tests/graphql/{34_eth_sendRawTransaction_contractCreation => eth_sendRawTransaction_contractCreation}/response.json (100%) rename tests/graphql/{36_eth_sendRawTransaction_messageCall => eth_sendRawTransaction_messageCall}/request.gql (100%) rename tests/graphql/{36_eth_sendRawTransaction_messageCall => eth_sendRawTransaction_messageCall}/response.json (100%) rename tests/graphql/{37_eth_sendRawTransaction_nonceTooLow => eth_sendRawTransaction_nonceTooLow}/request.gql (100%) rename tests/graphql/{37_eth_sendRawTransaction_nonceTooLow => eth_sendRawTransaction_nonceTooLow}/response.json (100%) rename tests/graphql/{38_eth_sendRawTransaction_transferEther => eth_sendRawTransaction_transferEther}/request.gql (100%) rename tests/graphql/{38_eth_sendRawTransaction_transferEther => eth_sendRawTransaction_transferEther}/response.json (100%) rename tests/graphql/{39_eth_sendRawTransaction_unsignedTransaction => eth_sendRawTransaction_unsignedTransaction}/request.gql (100%) rename tests/graphql/{39_eth_sendRawTransaction_unsignedTransaction => eth_sendRawTransaction_unsignedTransaction}/response.json (100%) rename tests/graphql/{40_eth_syncing => eth_syncing}/request.gql (100%) rename tests/graphql/{40_eth_syncing => eth_syncing}/response.json (100%) rename tests/graphql/{44_getBlock_byHexNumber => getBlock_byHexNumber}/request.gql (100%) rename tests/graphql/{44_getBlock_byHexNumber => getBlock_byHexNumber}/response.json (100%) rename tests/graphql/{49_get_type2Transaction => get_type2Transaction}/request.gql (100%) rename tests/graphql/{49_get_type2Transaction => get_type2Transaction}/response.json (100%) rename tests/graphql/{41_graphql_blocks_byFrom => graphql_blocks_byFrom}/request.gql (100%) rename tests/graphql/{41_graphql_blocks_byFrom => graphql_blocks_byFrom}/response.json (100%) rename tests/graphql/{42_graphql_blocks_byRange => graphql_blocks_byRange}/request.gql (100%) rename tests/graphql/{42_graphql_blocks_byRange => graphql_blocks_byRange}/response.json (100%) rename tests/graphql/{43_graphql_blocks_byWrongRange => graphql_blocks_byWrongRange}/request.gql (100%) rename tests/graphql/{43_graphql_blocks_byWrongRange => graphql_blocks_byWrongRange}/response.json (100%) rename tests/graphql/{35_graphql_pending => graphql_pending}/request.gql (100%) rename tests/graphql/{35_graphql_pending => graphql_pending}/response.json (100%) rename tests/graphql/{46_transaction_fromByHexBlockNumber => transaction_fromByHexBlockNumber}/request.gql (100%) rename tests/graphql/{46_transaction_fromByHexBlockNumber => transaction_fromByHexBlockNumber}/response.json (100%) diff --git a/tests/graphql/48_block_withdrawals/request.gql b/tests/graphql/block_withdrawals/request.gql similarity index 100% rename from tests/graphql/48_block_withdrawals/request.gql rename to tests/graphql/block_withdrawals/request.gql diff --git a/tests/graphql/48_block_withdrawals/response.json b/tests/graphql/block_withdrawals/response.json similarity index 100% rename from tests/graphql/48_block_withdrawals/response.json rename to tests/graphql/block_withdrawals/response.json diff --git a/tests/graphql/47_block_withdrawals_pre_shanghai/request.gql b/tests/graphql/block_withdrawals_pre_shanghai/request.gql similarity index 100% rename from tests/graphql/47_block_withdrawals_pre_shanghai/request.gql rename to tests/graphql/block_withdrawals_pre_shanghai/request.gql diff --git a/tests/graphql/47_block_withdrawals_pre_shanghai/response.json b/tests/graphql/block_withdrawals_pre_shanghai/response.json similarity index 100% rename from tests/graphql/47_block_withdrawals_pre_shanghai/response.json rename to tests/graphql/block_withdrawals_pre_shanghai/response.json diff --git a/tests/graphql/01_eth_blockNumber/request.gql b/tests/graphql/eth_blockNumber/request.gql similarity index 100% rename from tests/graphql/01_eth_blockNumber/request.gql rename to tests/graphql/eth_blockNumber/request.gql diff --git a/tests/graphql/01_eth_blockNumber/response.json b/tests/graphql/eth_blockNumber/response.json similarity index 100% rename from tests/graphql/01_eth_blockNumber/response.json rename to tests/graphql/eth_blockNumber/response.json diff --git a/tests/graphql/02_eth_call_Block8/request.gql b/tests/graphql/eth_call_Block8/request.gql similarity index 100% rename from tests/graphql/02_eth_call_Block8/request.gql rename to tests/graphql/eth_call_Block8/request.gql diff --git a/tests/graphql/02_eth_call_Block8/response.json b/tests/graphql/eth_call_Block8/response.json similarity index 100% rename from tests/graphql/02_eth_call_Block8/response.json rename to tests/graphql/eth_call_Block8/response.json diff --git a/tests/graphql/03_eth_call_BlockLatest/request.gql b/tests/graphql/eth_call_BlockLatest/request.gql similarity index 100% rename from tests/graphql/03_eth_call_BlockLatest/request.gql rename to tests/graphql/eth_call_BlockLatest/request.gql diff --git a/tests/graphql/03_eth_call_BlockLatest/response.json b/tests/graphql/eth_call_BlockLatest/response.json similarity index 100% rename from tests/graphql/03_eth_call_BlockLatest/response.json rename to tests/graphql/eth_call_BlockLatest/response.json diff --git a/tests/graphql/04_eth_estimateGas_contractDeploy/request.gql b/tests/graphql/eth_estimateGas_contractDeploy/request.gql similarity index 100% rename from tests/graphql/04_eth_estimateGas_contractDeploy/request.gql rename to tests/graphql/eth_estimateGas_contractDeploy/request.gql diff --git a/tests/graphql/04_eth_estimateGas_contractDeploy/response.json b/tests/graphql/eth_estimateGas_contractDeploy/response.json similarity index 100% rename from tests/graphql/04_eth_estimateGas_contractDeploy/response.json rename to tests/graphql/eth_estimateGas_contractDeploy/response.json diff --git a/tests/graphql/05_eth_estimateGas_noParams/request.gql b/tests/graphql/eth_estimateGas_noParams/request.gql similarity index 100% rename from tests/graphql/05_eth_estimateGas_noParams/request.gql rename to tests/graphql/eth_estimateGas_noParams/request.gql diff --git a/tests/graphql/05_eth_estimateGas_noParams/response.json b/tests/graphql/eth_estimateGas_noParams/response.json similarity index 100% rename from tests/graphql/05_eth_estimateGas_noParams/response.json rename to tests/graphql/eth_estimateGas_noParams/response.json diff --git a/tests/graphql/06_eth_estimateGas_transfer/request.gql b/tests/graphql/eth_estimateGas_transfer/request.gql similarity index 100% rename from tests/graphql/06_eth_estimateGas_transfer/request.gql rename to tests/graphql/eth_estimateGas_transfer/request.gql diff --git a/tests/graphql/06_eth_estimateGas_transfer/response.json b/tests/graphql/eth_estimateGas_transfer/response.json similarity index 100% rename from tests/graphql/06_eth_estimateGas_transfer/response.json rename to tests/graphql/eth_estimateGas_transfer/response.json diff --git a/tests/graphql/07_eth_gasPrice/request.gql b/tests/graphql/eth_gasPrice/request.gql similarity index 100% rename from tests/graphql/07_eth_gasPrice/request.gql rename to tests/graphql/eth_gasPrice/request.gql diff --git a/tests/graphql/07_eth_gasPrice/response.json b/tests/graphql/eth_gasPrice/response.json similarity index 100% rename from tests/graphql/07_eth_gasPrice/response.json rename to tests/graphql/eth_gasPrice/response.json diff --git a/tests/graphql/08_eth_getBalance_0x19/request.gql b/tests/graphql/eth_getBalance_0x19/request.gql similarity index 100% rename from tests/graphql/08_eth_getBalance_0x19/request.gql rename to tests/graphql/eth_getBalance_0x19/request.gql diff --git a/tests/graphql/08_eth_getBalance_0x19/response.json b/tests/graphql/eth_getBalance_0x19/response.json similarity index 100% rename from tests/graphql/08_eth_getBalance_0x19/response.json rename to tests/graphql/eth_getBalance_0x19/response.json diff --git a/tests/graphql/09_eth_getBalance_invalidAccountBlockNumber/request.gql b/tests/graphql/eth_getBalance_invalidAccountBlockNumber/request.gql similarity index 100% rename from tests/graphql/09_eth_getBalance_invalidAccountBlockNumber/request.gql rename to tests/graphql/eth_getBalance_invalidAccountBlockNumber/request.gql diff --git a/tests/graphql/09_eth_getBalance_invalidAccountBlockNumber/response.json b/tests/graphql/eth_getBalance_invalidAccountBlockNumber/response.json similarity index 100% rename from tests/graphql/09_eth_getBalance_invalidAccountBlockNumber/response.json rename to tests/graphql/eth_getBalance_invalidAccountBlockNumber/response.json diff --git a/tests/graphql/10_eth_getBalance_invalidAccountLatest/request.gql b/tests/graphql/eth_getBalance_invalidAccountLatest/request.gql similarity index 100% rename from tests/graphql/10_eth_getBalance_invalidAccountLatest/request.gql rename to tests/graphql/eth_getBalance_invalidAccountLatest/request.gql diff --git a/tests/graphql/10_eth_getBalance_invalidAccountLatest/response.json b/tests/graphql/eth_getBalance_invalidAccountLatest/response.json similarity index 100% rename from tests/graphql/10_eth_getBalance_invalidAccountLatest/response.json rename to tests/graphql/eth_getBalance_invalidAccountLatest/response.json diff --git a/tests/graphql/11_eth_getBalance_latest/request.gql b/tests/graphql/eth_getBalance_latest/request.gql similarity index 100% rename from tests/graphql/11_eth_getBalance_latest/request.gql rename to tests/graphql/eth_getBalance_latest/request.gql diff --git a/tests/graphql/11_eth_getBalance_latest/response.json b/tests/graphql/eth_getBalance_latest/response.json similarity index 100% rename from tests/graphql/11_eth_getBalance_latest/response.json rename to tests/graphql/eth_getBalance_latest/response.json diff --git a/tests/graphql/12_eth_getBalance_toobig_bn/request.gql b/tests/graphql/eth_getBalance_toobig_bn/request.gql similarity index 100% rename from tests/graphql/12_eth_getBalance_toobig_bn/request.gql rename to tests/graphql/eth_getBalance_toobig_bn/request.gql diff --git a/tests/graphql/12_eth_getBalance_toobig_bn/response.json b/tests/graphql/eth_getBalance_toobig_bn/response.json similarity index 100% rename from tests/graphql/12_eth_getBalance_toobig_bn/response.json rename to tests/graphql/eth_getBalance_toobig_bn/response.json diff --git a/tests/graphql/13_eth_getBalance_without_addr/request.gql b/tests/graphql/eth_getBalance_without_addr/request.gql similarity index 100% rename from tests/graphql/13_eth_getBalance_without_addr/request.gql rename to tests/graphql/eth_getBalance_without_addr/request.gql diff --git a/tests/graphql/13_eth_getBalance_without_addr/response.json b/tests/graphql/eth_getBalance_without_addr/response.json similarity index 100% rename from tests/graphql/13_eth_getBalance_without_addr/response.json rename to tests/graphql/eth_getBalance_without_addr/response.json diff --git a/tests/graphql/19_eth_getBlockTransactionCount_byHash/request.gql b/tests/graphql/eth_getBlockTransactionCount_byHash/request.gql similarity index 100% rename from tests/graphql/19_eth_getBlockTransactionCount_byHash/request.gql rename to tests/graphql/eth_getBlockTransactionCount_byHash/request.gql diff --git a/tests/graphql/19_eth_getBlockTransactionCount_byHash/response.json b/tests/graphql/eth_getBlockTransactionCount_byHash/response.json similarity index 100% rename from tests/graphql/19_eth_getBlockTransactionCount_byHash/response.json rename to tests/graphql/eth_getBlockTransactionCount_byHash/response.json diff --git a/tests/graphql/20_eth_getBlockTransactionCount_byNumber/request.gql b/tests/graphql/eth_getBlockTransactionCount_byNumber/request.gql similarity index 100% rename from tests/graphql/20_eth_getBlockTransactionCount_byNumber/request.gql rename to tests/graphql/eth_getBlockTransactionCount_byNumber/request.gql diff --git a/tests/graphql/20_eth_getBlockTransactionCount_byNumber/response.json b/tests/graphql/eth_getBlockTransactionCount_byNumber/response.json similarity index 100% rename from tests/graphql/20_eth_getBlockTransactionCount_byNumber/response.json rename to tests/graphql/eth_getBlockTransactionCount_byNumber/response.json diff --git a/tests/graphql/14_eth_getBlock_byHash/request.gql b/tests/graphql/eth_getBlock_byHash/request.gql similarity index 100% rename from tests/graphql/14_eth_getBlock_byHash/request.gql rename to tests/graphql/eth_getBlock_byHash/request.gql diff --git a/tests/graphql/14_eth_getBlock_byHash/response.json b/tests/graphql/eth_getBlock_byHash/response.json similarity index 100% rename from tests/graphql/14_eth_getBlock_byHash/response.json rename to tests/graphql/eth_getBlock_byHash/response.json diff --git a/tests/graphql/15_eth_getBlock_byHashInvalid/request.gql b/tests/graphql/eth_getBlock_byHashInvalid/request.gql similarity index 100% rename from tests/graphql/15_eth_getBlock_byHashInvalid/request.gql rename to tests/graphql/eth_getBlock_byHashInvalid/request.gql diff --git a/tests/graphql/15_eth_getBlock_byHashInvalid/response.json b/tests/graphql/eth_getBlock_byHashInvalid/response.json similarity index 100% rename from tests/graphql/15_eth_getBlock_byHashInvalid/response.json rename to tests/graphql/eth_getBlock_byHashInvalid/response.json diff --git a/tests/graphql/16_eth_getBlock_byNumber/request.gql b/tests/graphql/eth_getBlock_byNumber/request.gql similarity index 100% rename from tests/graphql/16_eth_getBlock_byNumber/request.gql rename to tests/graphql/eth_getBlock_byNumber/request.gql diff --git a/tests/graphql/16_eth_getBlock_byNumber/response.json b/tests/graphql/eth_getBlock_byNumber/response.json similarity index 100% rename from tests/graphql/16_eth_getBlock_byNumber/response.json rename to tests/graphql/eth_getBlock_byNumber/response.json diff --git a/tests/graphql/17_eth_getBlock_byNumberInvalid/request.gql b/tests/graphql/eth_getBlock_byNumberInvalid/request.gql similarity index 100% rename from tests/graphql/17_eth_getBlock_byNumberInvalid/request.gql rename to tests/graphql/eth_getBlock_byNumberInvalid/request.gql diff --git a/tests/graphql/17_eth_getBlock_byNumberInvalid/response.json b/tests/graphql/eth_getBlock_byNumberInvalid/response.json similarity index 100% rename from tests/graphql/17_eth_getBlock_byNumberInvalid/response.json rename to tests/graphql/eth_getBlock_byNumberInvalid/response.json diff --git a/tests/graphql/50_eth_getBlock_shanghai/request.gql b/tests/graphql/eth_getBlock_shanghai/request.gql similarity index 100% rename from tests/graphql/50_eth_getBlock_shanghai/request.gql rename to tests/graphql/eth_getBlock_shanghai/request.gql diff --git a/tests/graphql/50_eth_getBlock_shanghai/response.json b/tests/graphql/eth_getBlock_shanghai/response.json similarity index 100% rename from tests/graphql/50_eth_getBlock_shanghai/response.json rename to tests/graphql/eth_getBlock_shanghai/response.json diff --git a/tests/graphql/18_eth_getBlock_wrongParams/request.gql b/tests/graphql/eth_getBlock_wrongParams/request.gql similarity index 100% rename from tests/graphql/18_eth_getBlock_wrongParams/request.gql rename to tests/graphql/eth_getBlock_wrongParams/request.gql diff --git a/tests/graphql/18_eth_getBlock_wrongParams/response.json b/tests/graphql/eth_getBlock_wrongParams/response.json similarity index 100% rename from tests/graphql/18_eth_getBlock_wrongParams/response.json rename to tests/graphql/eth_getBlock_wrongParams/response.json diff --git a/tests/graphql/22_eth_getCode/request.gql b/tests/graphql/eth_getCode/request.gql similarity index 100% rename from tests/graphql/22_eth_getCode/request.gql rename to tests/graphql/eth_getCode/request.gql diff --git a/tests/graphql/22_eth_getCode/response.json b/tests/graphql/eth_getCode/response.json similarity index 100% rename from tests/graphql/22_eth_getCode/response.json rename to tests/graphql/eth_getCode/response.json diff --git a/tests/graphql/21_eth_getCode_noCode/request.gql b/tests/graphql/eth_getCode_noCode/request.gql similarity index 100% rename from tests/graphql/21_eth_getCode_noCode/request.gql rename to tests/graphql/eth_getCode_noCode/request.gql diff --git a/tests/graphql/21_eth_getCode_noCode/response.json b/tests/graphql/eth_getCode_noCode/response.json similarity index 100% rename from tests/graphql/21_eth_getCode_noCode/response.json rename to tests/graphql/eth_getCode_noCode/response.json diff --git a/tests/graphql/23_eth_getLogs_matchTopic/request.gql b/tests/graphql/eth_getLogs_matchTopic/request.gql similarity index 100% rename from tests/graphql/23_eth_getLogs_matchTopic/request.gql rename to tests/graphql/eth_getLogs_matchTopic/request.gql diff --git a/tests/graphql/23_eth_getLogs_matchTopic/response.json b/tests/graphql/eth_getLogs_matchTopic/response.json similarity index 100% rename from tests/graphql/23_eth_getLogs_matchTopic/response.json rename to tests/graphql/eth_getLogs_matchTopic/response.json diff --git a/tests/graphql/24_eth_getLogs_range/request.gql b/tests/graphql/eth_getLogs_range/request.gql similarity index 100% rename from tests/graphql/24_eth_getLogs_range/request.gql rename to tests/graphql/eth_getLogs_range/request.gql diff --git a/tests/graphql/24_eth_getLogs_range/response.json b/tests/graphql/eth_getLogs_range/response.json similarity index 100% rename from tests/graphql/24_eth_getLogs_range/response.json rename to tests/graphql/eth_getLogs_range/response.json diff --git a/tests/graphql/45_eth_getLogs_range_hex/request.gql b/tests/graphql/eth_getLogs_range_hex/request.gql similarity index 100% rename from tests/graphql/45_eth_getLogs_range_hex/request.gql rename to tests/graphql/eth_getLogs_range_hex/request.gql diff --git a/tests/graphql/45_eth_getLogs_range_hex/response.json b/tests/graphql/eth_getLogs_range_hex/response.json similarity index 100% rename from tests/graphql/45_eth_getLogs_range_hex/response.json rename to tests/graphql/eth_getLogs_range_hex/response.json diff --git a/tests/graphql/26_eth_getStorageAt/request.gql b/tests/graphql/eth_getStorageAt/request.gql similarity index 100% rename from tests/graphql/26_eth_getStorageAt/request.gql rename to tests/graphql/eth_getStorageAt/request.gql diff --git a/tests/graphql/26_eth_getStorageAt/response.json b/tests/graphql/eth_getStorageAt/response.json similarity index 100% rename from tests/graphql/26_eth_getStorageAt/response.json rename to tests/graphql/eth_getStorageAt/response.json diff --git a/tests/graphql/25_eth_getStorageAt_illegalRangeGreaterThan/request.gql b/tests/graphql/eth_getStorageAt_illegalRangeGreaterThan/request.gql similarity index 100% rename from tests/graphql/25_eth_getStorageAt_illegalRangeGreaterThan/request.gql rename to tests/graphql/eth_getStorageAt_illegalRangeGreaterThan/request.gql diff --git a/tests/graphql/25_eth_getStorageAt_illegalRangeGreaterThan/response.json b/tests/graphql/eth_getStorageAt_illegalRangeGreaterThan/response.json similarity index 100% rename from tests/graphql/25_eth_getStorageAt_illegalRangeGreaterThan/response.json rename to tests/graphql/eth_getStorageAt_illegalRangeGreaterThan/response.json diff --git a/tests/graphql/32_eth_getTransactionCount/request.gql b/tests/graphql/eth_getTransactionCount/request.gql similarity index 100% rename from tests/graphql/32_eth_getTransactionCount/request.gql rename to tests/graphql/eth_getTransactionCount/request.gql diff --git a/tests/graphql/32_eth_getTransactionCount/response.json b/tests/graphql/eth_getTransactionCount/response.json similarity index 100% rename from tests/graphql/32_eth_getTransactionCount/response.json rename to tests/graphql/eth_getTransactionCount/response.json diff --git a/tests/graphql/33_eth_getTransactionReceipt/request.gql b/tests/graphql/eth_getTransactionReceipt/request.gql similarity index 100% rename from tests/graphql/33_eth_getTransactionReceipt/request.gql rename to tests/graphql/eth_getTransactionReceipt/request.gql diff --git a/tests/graphql/33_eth_getTransactionReceipt/response.json b/tests/graphql/eth_getTransactionReceipt/response.json similarity index 100% rename from tests/graphql/33_eth_getTransactionReceipt/response.json rename to tests/graphql/eth_getTransactionReceipt/response.json diff --git a/tests/graphql/27_eth_getTransaction_byBlockHashAndIndex/request.gql b/tests/graphql/eth_getTransaction_byBlockHashAndIndex/request.gql similarity index 100% rename from tests/graphql/27_eth_getTransaction_byBlockHashAndIndex/request.gql rename to tests/graphql/eth_getTransaction_byBlockHashAndIndex/request.gql diff --git a/tests/graphql/27_eth_getTransaction_byBlockHashAndIndex/response.json b/tests/graphql/eth_getTransaction_byBlockHashAndIndex/response.json similarity index 100% rename from tests/graphql/27_eth_getTransaction_byBlockHashAndIndex/response.json rename to tests/graphql/eth_getTransaction_byBlockHashAndIndex/response.json diff --git a/tests/graphql/28_eth_getTransaction_byBlockNumberAndIndex/request.gql b/tests/graphql/eth_getTransaction_byBlockNumberAndIndex/request.gql similarity index 100% rename from tests/graphql/28_eth_getTransaction_byBlockNumberAndIndex/request.gql rename to tests/graphql/eth_getTransaction_byBlockNumberAndIndex/request.gql diff --git a/tests/graphql/28_eth_getTransaction_byBlockNumberAndIndex/response.json b/tests/graphql/eth_getTransaction_byBlockNumberAndIndex/response.json similarity index 100% rename from tests/graphql/28_eth_getTransaction_byBlockNumberAndIndex/response.json rename to tests/graphql/eth_getTransaction_byBlockNumberAndIndex/response.json diff --git a/tests/graphql/29_eth_getTransaction_byBlockNumberAndInvalidIndex/request.gql b/tests/graphql/eth_getTransaction_byBlockNumberAndInvalidIndex/request.gql similarity index 100% rename from tests/graphql/29_eth_getTransaction_byBlockNumberAndInvalidIndex/request.gql rename to tests/graphql/eth_getTransaction_byBlockNumberAndInvalidIndex/request.gql diff --git a/tests/graphql/29_eth_getTransaction_byBlockNumberAndInvalidIndex/response.json b/tests/graphql/eth_getTransaction_byBlockNumberAndInvalidIndex/response.json similarity index 100% rename from tests/graphql/29_eth_getTransaction_byBlockNumberAndInvalidIndex/response.json rename to tests/graphql/eth_getTransaction_byBlockNumberAndInvalidIndex/response.json diff --git a/tests/graphql/30_eth_getTransaction_byHash/request.gql b/tests/graphql/eth_getTransaction_byHash/request.gql similarity index 100% rename from tests/graphql/30_eth_getTransaction_byHash/request.gql rename to tests/graphql/eth_getTransaction_byHash/request.gql diff --git a/tests/graphql/30_eth_getTransaction_byHash/response.json b/tests/graphql/eth_getTransaction_byHash/response.json similarity index 100% rename from tests/graphql/30_eth_getTransaction_byHash/response.json rename to tests/graphql/eth_getTransaction_byHash/response.json diff --git a/tests/graphql/31_eth_getTransaction_byHashNull/request.gql b/tests/graphql/eth_getTransaction_byHashNull/request.gql similarity index 100% rename from tests/graphql/31_eth_getTransaction_byHashNull/request.gql rename to tests/graphql/eth_getTransaction_byHashNull/request.gql diff --git a/tests/graphql/31_eth_getTransaction_byHashNull/response.json b/tests/graphql/eth_getTransaction_byHashNull/response.json similarity index 100% rename from tests/graphql/31_eth_getTransaction_byHashNull/response.json rename to tests/graphql/eth_getTransaction_byHashNull/response.json diff --git a/tests/graphql/34_eth_sendRawTransaction_contractCreation/request.gql b/tests/graphql/eth_sendRawTransaction_contractCreation/request.gql similarity index 100% rename from tests/graphql/34_eth_sendRawTransaction_contractCreation/request.gql rename to tests/graphql/eth_sendRawTransaction_contractCreation/request.gql diff --git a/tests/graphql/34_eth_sendRawTransaction_contractCreation/response.json b/tests/graphql/eth_sendRawTransaction_contractCreation/response.json similarity index 100% rename from tests/graphql/34_eth_sendRawTransaction_contractCreation/response.json rename to tests/graphql/eth_sendRawTransaction_contractCreation/response.json diff --git a/tests/graphql/36_eth_sendRawTransaction_messageCall/request.gql b/tests/graphql/eth_sendRawTransaction_messageCall/request.gql similarity index 100% rename from tests/graphql/36_eth_sendRawTransaction_messageCall/request.gql rename to tests/graphql/eth_sendRawTransaction_messageCall/request.gql diff --git a/tests/graphql/36_eth_sendRawTransaction_messageCall/response.json b/tests/graphql/eth_sendRawTransaction_messageCall/response.json similarity index 100% rename from tests/graphql/36_eth_sendRawTransaction_messageCall/response.json rename to tests/graphql/eth_sendRawTransaction_messageCall/response.json diff --git a/tests/graphql/37_eth_sendRawTransaction_nonceTooLow/request.gql b/tests/graphql/eth_sendRawTransaction_nonceTooLow/request.gql similarity index 100% rename from tests/graphql/37_eth_sendRawTransaction_nonceTooLow/request.gql rename to tests/graphql/eth_sendRawTransaction_nonceTooLow/request.gql diff --git a/tests/graphql/37_eth_sendRawTransaction_nonceTooLow/response.json b/tests/graphql/eth_sendRawTransaction_nonceTooLow/response.json similarity index 100% rename from tests/graphql/37_eth_sendRawTransaction_nonceTooLow/response.json rename to tests/graphql/eth_sendRawTransaction_nonceTooLow/response.json diff --git a/tests/graphql/38_eth_sendRawTransaction_transferEther/request.gql b/tests/graphql/eth_sendRawTransaction_transferEther/request.gql similarity index 100% rename from tests/graphql/38_eth_sendRawTransaction_transferEther/request.gql rename to tests/graphql/eth_sendRawTransaction_transferEther/request.gql diff --git a/tests/graphql/38_eth_sendRawTransaction_transferEther/response.json b/tests/graphql/eth_sendRawTransaction_transferEther/response.json similarity index 100% rename from tests/graphql/38_eth_sendRawTransaction_transferEther/response.json rename to tests/graphql/eth_sendRawTransaction_transferEther/response.json diff --git a/tests/graphql/39_eth_sendRawTransaction_unsignedTransaction/request.gql b/tests/graphql/eth_sendRawTransaction_unsignedTransaction/request.gql similarity index 100% rename from tests/graphql/39_eth_sendRawTransaction_unsignedTransaction/request.gql rename to tests/graphql/eth_sendRawTransaction_unsignedTransaction/request.gql diff --git a/tests/graphql/39_eth_sendRawTransaction_unsignedTransaction/response.json b/tests/graphql/eth_sendRawTransaction_unsignedTransaction/response.json similarity index 100% rename from tests/graphql/39_eth_sendRawTransaction_unsignedTransaction/response.json rename to tests/graphql/eth_sendRawTransaction_unsignedTransaction/response.json diff --git a/tests/graphql/40_eth_syncing/request.gql b/tests/graphql/eth_syncing/request.gql similarity index 100% rename from tests/graphql/40_eth_syncing/request.gql rename to tests/graphql/eth_syncing/request.gql diff --git a/tests/graphql/40_eth_syncing/response.json b/tests/graphql/eth_syncing/response.json similarity index 100% rename from tests/graphql/40_eth_syncing/response.json rename to tests/graphql/eth_syncing/response.json diff --git a/tests/graphql/44_getBlock_byHexNumber/request.gql b/tests/graphql/getBlock_byHexNumber/request.gql similarity index 100% rename from tests/graphql/44_getBlock_byHexNumber/request.gql rename to tests/graphql/getBlock_byHexNumber/request.gql diff --git a/tests/graphql/44_getBlock_byHexNumber/response.json b/tests/graphql/getBlock_byHexNumber/response.json similarity index 100% rename from tests/graphql/44_getBlock_byHexNumber/response.json rename to tests/graphql/getBlock_byHexNumber/response.json diff --git a/tests/graphql/49_get_type2Transaction/request.gql b/tests/graphql/get_type2Transaction/request.gql similarity index 100% rename from tests/graphql/49_get_type2Transaction/request.gql rename to tests/graphql/get_type2Transaction/request.gql diff --git a/tests/graphql/49_get_type2Transaction/response.json b/tests/graphql/get_type2Transaction/response.json similarity index 100% rename from tests/graphql/49_get_type2Transaction/response.json rename to tests/graphql/get_type2Transaction/response.json diff --git a/tests/graphql/41_graphql_blocks_byFrom/request.gql b/tests/graphql/graphql_blocks_byFrom/request.gql similarity index 100% rename from tests/graphql/41_graphql_blocks_byFrom/request.gql rename to tests/graphql/graphql_blocks_byFrom/request.gql diff --git a/tests/graphql/41_graphql_blocks_byFrom/response.json b/tests/graphql/graphql_blocks_byFrom/response.json similarity index 100% rename from tests/graphql/41_graphql_blocks_byFrom/response.json rename to tests/graphql/graphql_blocks_byFrom/response.json diff --git a/tests/graphql/42_graphql_blocks_byRange/request.gql b/tests/graphql/graphql_blocks_byRange/request.gql similarity index 100% rename from tests/graphql/42_graphql_blocks_byRange/request.gql rename to tests/graphql/graphql_blocks_byRange/request.gql diff --git a/tests/graphql/42_graphql_blocks_byRange/response.json b/tests/graphql/graphql_blocks_byRange/response.json similarity index 100% rename from tests/graphql/42_graphql_blocks_byRange/response.json rename to tests/graphql/graphql_blocks_byRange/response.json diff --git a/tests/graphql/43_graphql_blocks_byWrongRange/request.gql b/tests/graphql/graphql_blocks_byWrongRange/request.gql similarity index 100% rename from tests/graphql/43_graphql_blocks_byWrongRange/request.gql rename to tests/graphql/graphql_blocks_byWrongRange/request.gql diff --git a/tests/graphql/43_graphql_blocks_byWrongRange/response.json b/tests/graphql/graphql_blocks_byWrongRange/response.json similarity index 100% rename from tests/graphql/43_graphql_blocks_byWrongRange/response.json rename to tests/graphql/graphql_blocks_byWrongRange/response.json diff --git a/tests/graphql/35_graphql_pending/request.gql b/tests/graphql/graphql_pending/request.gql similarity index 100% rename from tests/graphql/35_graphql_pending/request.gql rename to tests/graphql/graphql_pending/request.gql diff --git a/tests/graphql/35_graphql_pending/response.json b/tests/graphql/graphql_pending/response.json similarity index 100% rename from tests/graphql/35_graphql_pending/response.json rename to tests/graphql/graphql_pending/response.json diff --git a/tests/graphql/46_transaction_fromByHexBlockNumber/request.gql b/tests/graphql/transaction_fromByHexBlockNumber/request.gql similarity index 100% rename from tests/graphql/46_transaction_fromByHexBlockNumber/request.gql rename to tests/graphql/transaction_fromByHexBlockNumber/request.gql diff --git a/tests/graphql/46_transaction_fromByHexBlockNumber/response.json b/tests/graphql/transaction_fromByHexBlockNumber/response.json similarity index 100% rename from tests/graphql/46_transaction_fromByHexBlockNumber/response.json rename to tests/graphql/transaction_fromByHexBlockNumber/response.json From 6eb390368fa7e21a98837d7d2e92a96e958d5096 Mon Sep 17 00:00:00 2001 From: jsvisa Date: Tue, 26 Sep 2023 23:14:24 +0800 Subject: [PATCH 19/29] scripts: test path changed Signed-off-by: jsvisa --- scripts/graphql-validate.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/graphql-validate.js b/scripts/graphql-validate.js index c1503bcc..b0da8d71 100644 --- a/scripts/graphql-validate.js +++ b/scripts/graphql-validate.js @@ -35,17 +35,17 @@ diff(schema, schemaStd, [ignoreDirectiveChanges]) }) .catch(console.error); -fs.readdir('graphql/tests', (_, files) => { +fs.readdir('tests/graphql', (_, files) => { files.forEach((file) => { - if (!fs.lstatSync(`graphql/tests/${file}`).isDirectory()) { + if (!fs.lstatSync(`tests/graphql/${file}`).isDirectory()) { return; } const query = graphql.parse( - fs.readFileSync(`graphql/tests/${file}/request.gql`, 'utf8') + fs.readFileSync(`tests/graphql/${file}/request.gql`, 'utf8') ); const output = JSON.parse( - fs.readFileSync(`graphql/tests/${file}/response.json`, 'utf8') + fs.readFileSync(`tests/graphql/${file}/response.json`, 'utf8') ); if (!('statusCode' in output) || !('responses' in output)) { throw new Error( From 350dc0b8aeb08c63353d0c2e9b530298cb8a52f5 Mon Sep 17 00:00:00 2001 From: jsvisa Date: Tue, 17 Oct 2023 23:14:41 +0800 Subject: [PATCH 20/29] graphql: exclude eth_gasPrice Signed-off-by: jsvisa --- tests/graphql/eth_gasPrice/request.gql | 3 --- tests/graphql/eth_gasPrice/response.json | 15 --------------- 2 files changed, 18 deletions(-) delete mode 100644 tests/graphql/eth_gasPrice/request.gql delete mode 100644 tests/graphql/eth_gasPrice/response.json diff --git a/tests/graphql/eth_gasPrice/request.gql b/tests/graphql/eth_gasPrice/request.gql deleted file mode 100644 index 8ed549c6..00000000 --- a/tests/graphql/eth_gasPrice/request.gql +++ /dev/null @@ -1,3 +0,0 @@ -{ - gasPrice -} diff --git a/tests/graphql/eth_gasPrice/response.json b/tests/graphql/eth_gasPrice/response.json deleted file mode 100644 index 194af6d2..00000000 --- a/tests/graphql/eth_gasPrice/response.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "responses": [ - { - "data": { - "gasPrice": "0x10" - } - }, - { - "data": { - "gasPrice": "0x1" - } - } - ], - "statusCode": 200 -} From 328d7e50fb73d6775e976863d0ea79affee94269 Mon Sep 17 00:00:00 2001 From: jsvisa Date: Wed, 18 Oct 2023 06:52:59 +0800 Subject: [PATCH 21/29] graphql: drop multi responses Signed-off-by: jsvisa --- .../eth_getBalance_toobig_bn/response.json | 31 +------ .../response.json | 32 ++----- .../eth_getTransactionReceipt/response.json | 73 +++++---------- .../eth_getTransaction_byHash/response.json | 91 ++++++------------- 4 files changed, 61 insertions(+), 166 deletions(-) diff --git a/tests/graphql/eth_getBalance_toobig_bn/response.json b/tests/graphql/eth_getBalance_toobig_bn/response.json index ea57eb54..ebc60ddb 100644 --- a/tests/graphql/eth_getBalance_toobig_bn/response.json +++ b/tests/graphql/eth_getBalance_toobig_bn/response.json @@ -1,30 +1 @@ -{ - "responses": [ - { - "errors": [ - { - "message": "Exception while fetching data (/account) : Invalid params", - "locations": [ - { - "line": 1, - "column": 2 - } - ], - "path": ["account"], - "extensions": { - "errorCode": -32602, - "errorMessage": "Invalid params", - "classification": "DataFetchingException" - } - } - ], - "data": null - }, - { - "data": { - "block": null - } - } - ], - "statusCode": 400 -} +{ "responses": { "error": { "code": -32000, "message": "header not found" } }, "statusCode": 400 } diff --git a/tests/graphql/eth_getBlock_byNumberInvalid/response.json b/tests/graphql/eth_getBlock_byNumberInvalid/response.json index c457f826..e0dca898 100644 --- a/tests/graphql/eth_getBlock_byNumberInvalid/response.json +++ b/tests/graphql/eth_getBlock_byNumberInvalid/response.json @@ -1,28 +1,8 @@ { - "responses": [ - { - "errors": [ - { - "message": "Exception while fetching data (/block) : Block number 88888888 was not found", - "locations": [ - { - "line": 1, - "column": 2 - } - ], - "path": ["block"], - "extensions": { - "classification": "DataFetchingException" - } - } - ], - "data": null - }, - { - "data": { - "block": null - } - } - ], - "statusCode": 400 + "responses": { + "data": { + "block": null + } + }, + "statusCode": 200 } diff --git a/tests/graphql/eth_getTransactionReceipt/response.json b/tests/graphql/eth_getTransactionReceipt/response.json index 9c8694de..5549b9c3 100644 --- a/tests/graphql/eth_getTransactionReceipt/response.json +++ b/tests/graphql/eth_getTransactionReceipt/response.json @@ -1,51 +1,26 @@ { - "responses": [ - { - "data": { - "transaction": { - "block": { - "hash": "0x10aaf14a53caf27552325374429d3558398a36d3682ede6603c2c6511896e9f9", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" - }, - "createdContract": { - "address": "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f" - }, - "cumulativeGasUsed": "0x78674", - "from": { - "address": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" - }, - "gas": "0x2fefd8", - "gasUsed": "0x78674", - "hash": "0x812742182a79a8e67733edc58cfa3767aa2d7ad06439d156ddbbb33e3403b4ed", - "index": "0x0", - "logs": [], - "to": null - } - } - }, - { - "data": { - "transaction": { - "block": { - "hash": "0x10aaf14a53caf27552325374429d3558398a36d3682ede6603c2c6511896e9f9", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" - }, - "createdContract": { - "address": "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f" - }, - "cumulativeGasUsed": "0x78674", - "from": { - "address": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" - }, - "gas": "0x2fefd8", - "gasUsed": "0x78674", - "hash": "0x812742182a79a8e67733edc58cfa3767aa2d7ad06439d156ddbbb33e3403b4ed", - "index": 0, - "logs": [], - "to": null - } - } - } - ], - "statusCode": 200 + "responses": { + "data": { + "transaction": { + "block": { + "hash": "0x10aaf14a53caf27552325374429d3558398a36d3682ede6603c2c6511896e9f9", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + "createdContract": { + "address": "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f" + }, + "cumulativeGasUsed": "0x78674", + "from": { + "address": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" + }, + "gas": "0x2fefd8", + "gasUsed": "0x78674", + "hash": "0x812742182a79a8e67733edc58cfa3767aa2d7ad06439d156ddbbb33e3403b4ed", + "index": 0, + "logs": [], + "to": null + } + } + }, + "statusCode": 200 } diff --git a/tests/graphql/eth_getTransaction_byHash/response.json b/tests/graphql/eth_getTransaction_byHash/response.json index 35082c25..04fc34db 100644 --- a/tests/graphql/eth_getTransaction_byHash/response.json +++ b/tests/graphql/eth_getTransaction_byHash/response.json @@ -1,63 +1,32 @@ { - "responses": [ - { - "data": { - "transaction": { - "block": { - "hash": "0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6" - }, - "gas": "0x4cb2f", - "gasPrice": "0x1", - "hash": "0x9cc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4", - "inputData": "0xe8beef5b", - "nonce": "0x1d", - "index": "0x0", - "value": "0xa", - "from": { - "address": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" - }, - "to": { - "address": "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f" - }, - "logs": [ - { - "index": "0x0" - } - ], - "status": null, - "createdContract": null - } - } - }, - { - "data": { - "transaction": { - "block": { - "hash": "0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6" - }, - "createdContract": null, - "from": { - "address": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" - }, - "gas": "0x4cb2f", - "gasPrice": "0x1", - "hash": "0x9cc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4", - "index": 0, - "inputData": "0xe8beef5b", - "logs": [ - { - "index": 0 - } - ], - "nonce": "0x1d", - "status": "0x0", - "to": { - "address": "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f" - }, - "value": "0xa" - } - } - } - ], - "statusCode": 200 + "responses": { + "data": { + "transaction": { + "block": { + "hash": "0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6" + }, + "createdContract": null, + "from": { + "address": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" + }, + "gas": "0x4cb2f", + "gasPrice": "0x1", + "hash": "0x9cc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4", + "index": 0, + "inputData": "0xe8beef5b", + "logs": [ + { + "index": 0 + } + ], + "nonce": "0x1d", + "status": "0x0", + "to": { + "address": "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f" + }, + "value": "0xa" + } + } + }, + "statusCode": 200 } From bd2146fc68f9b617195c67d72e9501d5d69c331f Mon Sep 17 00:00:00 2001 From: jsvisa Date: Thu, 19 Oct 2023 09:33:14 +0800 Subject: [PATCH 22/29] tests/graphql: convert into .io format Signed-off-by: jsvisa --- tests/graphql/block/block_withdrawals.io | 2 + .../block/block_withdrawals_pre_shanghai.io | 2 + tests/graphql/block/eth_blockNumber.io | 2 + tests/graphql/block/eth_call_Block8.io | 2 + tests/graphql/block/eth_call_BlockLatest.io | 2 + .../block/eth_estimateGas_contractDeploy.io | 2 + .../graphql/block/eth_estimateGas_noParams.io | 2 + .../graphql/block/eth_estimateGas_transfer.io | 2 + tests/graphql/block/eth_getBalance_0x19.io | 2 + ...th_getBalance_invalidAccountBlockNumber.io | 2 + .../eth_getBalance_invalidAccountLatest.io | 2 + tests/graphql/block/eth_getBalance_latest.io | 2 + .../graphql/block/eth_getBalance_toobig_bn.io | 2 + .../block/eth_getBalance_without_addr.io | 2 + .../eth_getBlockTransactionCount_byHash.io | 2 + .../eth_getBlockTransactionCount_byNumber.io | 2 + tests/graphql/block/eth_getBlock_byHash.io | 2 + .../block/eth_getBlock_byHashInvalid.io | 2 + tests/graphql/block/eth_getBlock_byNumber.io | 2 + .../block/eth_getBlock_byNumberInvalid.io | 2 + tests/graphql/block/eth_getBlock_shanghai.io | 2 + .../graphql/block/eth_getBlock_wrongParams.io | 2 + tests/graphql/block/eth_getCode.io | 2 + tests/graphql/block/eth_getCode_noCode.io | 2 + tests/graphql/block/eth_getLogs_matchTopic.io | 2 + tests/graphql/block/eth_getStorageAt.io | 2 + ...th_getStorageAt_illegalRangeGreaterThan.io | 2 + .../graphql/block/eth_getTransactionCount.io | 2 + .../eth_getTransaction_byBlockHashAndIndex.io | 2 + ...th_getTransaction_byBlockNumberAndIndex.io | 2 + ...ransaction_byBlockNumberAndInvalidIndex.io | 2 + tests/graphql/block/getBlock_byHexNumber.io | 2 + tests/graphql/block_withdrawals/request.gql | 12 ------ tests/graphql/block_withdrawals/response.json | 21 --------- .../request.gql | 10 ----- .../response.json | 14 ------ tests/graphql/blocks/graphql_blocks_byFrom.io | 2 + .../graphql/blocks/graphql_blocks_byRange.io | 2 + .../blocks/graphql_blocks_byWrongRange.io | 2 + tests/graphql/eth_blockNumber/request.gql | 5 --- tests/graphql/eth_blockNumber/response.json | 12 ------ tests/graphql/eth_call_Block8/request.gql | 15 ------- tests/graphql/eth_call_Block8/response.json | 16 ------- .../graphql/eth_call_BlockLatest/request.gql | 15 ------- .../eth_call_BlockLatest/response.json | 16 ------- .../request.gql | 10 ----- .../response.json | 12 ------ .../eth_estimateGas_noParams/request.gql | 5 --- .../eth_estimateGas_noParams/response.json | 12 ------ .../eth_estimateGas_transfer/request.gql | 10 ----- .../eth_estimateGas_transfer/response.json | 12 ------ tests/graphql/eth_getBalance_0x19/request.gql | 7 --- .../graphql/eth_getBalance_0x19/response.json | 14 ------ .../request.gql | 7 --- .../response.json | 14 ------ .../request.gql | 7 --- .../response.json | 14 ------ .../graphql/eth_getBalance_latest/request.gql | 7 --- .../eth_getBalance_latest/response.json | 14 ------ .../eth_getBalance_toobig_bn/request.gql | 7 --- .../eth_getBalance_toobig_bn/response.json | 1 - .../eth_getBalance_without_addr/request.gql | 7 --- .../eth_getBalance_without_addr/response.json | 21 --------- .../request.gql | 7 --- .../response.json | 12 ------ .../request.gql | 23 ---------- .../response.json | 32 -------------- tests/graphql/eth_getBlock_byHash/request.gql | 26 ----------- .../graphql/eth_getBlock_byHash/response.json | 33 -------------- .../eth_getBlock_byHashInvalid/request.gql | 7 --- .../eth_getBlock_byHashInvalid/response.json | 23 ---------- .../graphql/eth_getBlock_byNumber/request.gql | 38 ---------------- .../eth_getBlock_byNumber/response.json | 43 ------------------- .../eth_getBlock_byNumberInvalid/request.gql | 5 --- .../response.json | 8 ---- .../graphql/eth_getBlock_shanghai/request.gql | 21 --------- .../eth_getBlock_shanghai/response.json | 30 ------------- .../eth_getBlock_wrongParams/request.gql | 27 ------------ .../eth_getBlock_wrongParams/response.json | 25 ----------- tests/graphql/eth_getCode/request.gql | 7 --- tests/graphql/eth_getCode/response.json | 14 ------ tests/graphql/eth_getCode_noCode/request.gql | 7 --- .../graphql/eth_getCode_noCode/response.json | 14 ------ .../eth_getLogs_matchTopic/request.gql | 24 ----------- .../eth_getLogs_matchTopic/response.json | 26 ----------- tests/graphql/eth_getLogs_range/request.gql | 16 ------- tests/graphql/eth_getLogs_range/response.json | 41 ------------------ .../graphql/eth_getLogs_range_hex/request.gql | 10 ----- .../eth_getLogs_range_hex/response.json | 23 ---------- tests/graphql/eth_getStorageAt/request.gql | 9 ---- tests/graphql/eth_getStorageAt/response.json | 14 ------ .../request.gql | 9 ---- .../response.json | 14 ------ .../eth_getTransactionCount/request.gql | 7 --- .../eth_getTransactionCount/response.json | 14 ------ .../eth_getTransactionReceipt/request.gql | 27 ------------ .../eth_getTransactionReceipt/response.json | 26 ----------- .../request.gql | 12 ------ .../response.json | 17 -------- .../request.gql | 10 ----- .../response.json | 17 -------- .../request.gql | 10 ----- .../response.json | 12 ------ .../eth_getTransaction_byHash/request.gql | 29 ------------- .../eth_getTransaction_byHash/response.json | 32 -------------- .../eth_getTransaction_byHashNull/request.gql | 16 ------- .../response.json | 10 ----- .../request.gql | 5 --- .../response.json | 10 ----- .../request.gql | 5 --- .../response.json | 10 ----- .../request.gql | 5 --- .../response.json | 25 ----------- .../request.gql | 5 --- .../response.json | 10 ----- .../request.gql | 5 --- .../response.json | 25 ----------- tests/graphql/eth_syncing/request.gql | 7 --- tests/graphql/eth_syncing/response.json | 10 ----- .../graphql/getBlock_byHexNumber/request.gql | 7 --- .../getBlock_byHexNumber/response.json | 14 ------ .../graphql/get_type2Transaction/request.gql | 15 ------- .../get_type2Transaction/response.json | 24 ----------- .../graphql/graphql_blocks_byFrom/request.gql | 5 --- .../graphql_blocks_byFrom/response.json | 23 ---------- .../graphql_blocks_byRange/request.gql | 12 ------ .../graphql_blocks_byRange/response.json | 41 ------------------ .../graphql_blocks_byWrongRange/request.gql | 12 ------ .../graphql_blocks_byWrongRange/response.json | 25 ----------- tests/graphql/graphql_pending/request.gql | 23 ---------- tests/graphql/graphql_pending/response.json | 26 ----------- tests/graphql/pending/graphql_pending.io | 2 + ...eth_sendRawTransaction_contractCreation.io | 2 + .../eth_sendRawTransaction_messageCall.io | 2 + .../eth_sendRawTransaction_nonceTooLow.io | 2 + .../eth_sendRawTransaction_transferEther.io | 2 + ..._sendRawTransaction_unsignedTransaction.io | 2 + tests/graphql/syncing/eth_syncing.io | 2 + .../transaction/eth_getTransactionReceipt.io | 2 + .../transaction/eth_getTransaction_byHash.io | 2 + .../eth_getTransaction_byHashNull.io | 2 + .../transaction/get_type2Transaction.io | 2 + .../transaction_fromByHexBlockNumber.io | 2 + .../request.gql | 12 ------ .../response.json | 17 -------- 145 files changed, 94 insertions(+), 1522 deletions(-) create mode 100644 tests/graphql/block/block_withdrawals.io create mode 100644 tests/graphql/block/block_withdrawals_pre_shanghai.io create mode 100644 tests/graphql/block/eth_blockNumber.io create mode 100644 tests/graphql/block/eth_call_Block8.io create mode 100644 tests/graphql/block/eth_call_BlockLatest.io create mode 100644 tests/graphql/block/eth_estimateGas_contractDeploy.io create mode 100644 tests/graphql/block/eth_estimateGas_noParams.io create mode 100644 tests/graphql/block/eth_estimateGas_transfer.io create mode 100644 tests/graphql/block/eth_getBalance_0x19.io create mode 100644 tests/graphql/block/eth_getBalance_invalidAccountBlockNumber.io create mode 100644 tests/graphql/block/eth_getBalance_invalidAccountLatest.io create mode 100644 tests/graphql/block/eth_getBalance_latest.io create mode 100644 tests/graphql/block/eth_getBalance_toobig_bn.io create mode 100644 tests/graphql/block/eth_getBalance_without_addr.io create mode 100644 tests/graphql/block/eth_getBlockTransactionCount_byHash.io create mode 100644 tests/graphql/block/eth_getBlockTransactionCount_byNumber.io create mode 100644 tests/graphql/block/eth_getBlock_byHash.io create mode 100644 tests/graphql/block/eth_getBlock_byHashInvalid.io create mode 100644 tests/graphql/block/eth_getBlock_byNumber.io create mode 100644 tests/graphql/block/eth_getBlock_byNumberInvalid.io create mode 100644 tests/graphql/block/eth_getBlock_shanghai.io create mode 100644 tests/graphql/block/eth_getBlock_wrongParams.io create mode 100644 tests/graphql/block/eth_getCode.io create mode 100644 tests/graphql/block/eth_getCode_noCode.io create mode 100644 tests/graphql/block/eth_getLogs_matchTopic.io create mode 100644 tests/graphql/block/eth_getStorageAt.io create mode 100644 tests/graphql/block/eth_getStorageAt_illegalRangeGreaterThan.io create mode 100644 tests/graphql/block/eth_getTransactionCount.io create mode 100644 tests/graphql/block/eth_getTransaction_byBlockHashAndIndex.io create mode 100644 tests/graphql/block/eth_getTransaction_byBlockNumberAndIndex.io create mode 100644 tests/graphql/block/eth_getTransaction_byBlockNumberAndInvalidIndex.io create mode 100644 tests/graphql/block/getBlock_byHexNumber.io delete mode 100644 tests/graphql/block_withdrawals/request.gql delete mode 100644 tests/graphql/block_withdrawals/response.json delete mode 100644 tests/graphql/block_withdrawals_pre_shanghai/request.gql delete mode 100644 tests/graphql/block_withdrawals_pre_shanghai/response.json create mode 100644 tests/graphql/blocks/graphql_blocks_byFrom.io create mode 100644 tests/graphql/blocks/graphql_blocks_byRange.io create mode 100644 tests/graphql/blocks/graphql_blocks_byWrongRange.io delete mode 100644 tests/graphql/eth_blockNumber/request.gql delete mode 100644 tests/graphql/eth_blockNumber/response.json delete mode 100644 tests/graphql/eth_call_Block8/request.gql delete mode 100644 tests/graphql/eth_call_Block8/response.json delete mode 100644 tests/graphql/eth_call_BlockLatest/request.gql delete mode 100644 tests/graphql/eth_call_BlockLatest/response.json delete mode 100644 tests/graphql/eth_estimateGas_contractDeploy/request.gql delete mode 100644 tests/graphql/eth_estimateGas_contractDeploy/response.json delete mode 100644 tests/graphql/eth_estimateGas_noParams/request.gql delete mode 100644 tests/graphql/eth_estimateGas_noParams/response.json delete mode 100644 tests/graphql/eth_estimateGas_transfer/request.gql delete mode 100644 tests/graphql/eth_estimateGas_transfer/response.json delete mode 100644 tests/graphql/eth_getBalance_0x19/request.gql delete mode 100644 tests/graphql/eth_getBalance_0x19/response.json delete mode 100644 tests/graphql/eth_getBalance_invalidAccountBlockNumber/request.gql delete mode 100644 tests/graphql/eth_getBalance_invalidAccountBlockNumber/response.json delete mode 100644 tests/graphql/eth_getBalance_invalidAccountLatest/request.gql delete mode 100644 tests/graphql/eth_getBalance_invalidAccountLatest/response.json delete mode 100644 tests/graphql/eth_getBalance_latest/request.gql delete mode 100644 tests/graphql/eth_getBalance_latest/response.json delete mode 100644 tests/graphql/eth_getBalance_toobig_bn/request.gql delete mode 100644 tests/graphql/eth_getBalance_toobig_bn/response.json delete mode 100644 tests/graphql/eth_getBalance_without_addr/request.gql delete mode 100644 tests/graphql/eth_getBalance_without_addr/response.json delete mode 100644 tests/graphql/eth_getBlockTransactionCount_byHash/request.gql delete mode 100644 tests/graphql/eth_getBlockTransactionCount_byHash/response.json delete mode 100644 tests/graphql/eth_getBlockTransactionCount_byNumber/request.gql delete mode 100644 tests/graphql/eth_getBlockTransactionCount_byNumber/response.json delete mode 100644 tests/graphql/eth_getBlock_byHash/request.gql delete mode 100644 tests/graphql/eth_getBlock_byHash/response.json delete mode 100644 tests/graphql/eth_getBlock_byHashInvalid/request.gql delete mode 100644 tests/graphql/eth_getBlock_byHashInvalid/response.json delete mode 100644 tests/graphql/eth_getBlock_byNumber/request.gql delete mode 100644 tests/graphql/eth_getBlock_byNumber/response.json delete mode 100644 tests/graphql/eth_getBlock_byNumberInvalid/request.gql delete mode 100644 tests/graphql/eth_getBlock_byNumberInvalid/response.json delete mode 100644 tests/graphql/eth_getBlock_shanghai/request.gql delete mode 100644 tests/graphql/eth_getBlock_shanghai/response.json delete mode 100644 tests/graphql/eth_getBlock_wrongParams/request.gql delete mode 100644 tests/graphql/eth_getBlock_wrongParams/response.json delete mode 100644 tests/graphql/eth_getCode/request.gql delete mode 100644 tests/graphql/eth_getCode/response.json delete mode 100644 tests/graphql/eth_getCode_noCode/request.gql delete mode 100644 tests/graphql/eth_getCode_noCode/response.json delete mode 100644 tests/graphql/eth_getLogs_matchTopic/request.gql delete mode 100644 tests/graphql/eth_getLogs_matchTopic/response.json delete mode 100644 tests/graphql/eth_getLogs_range/request.gql delete mode 100644 tests/graphql/eth_getLogs_range/response.json delete mode 100644 tests/graphql/eth_getLogs_range_hex/request.gql delete mode 100644 tests/graphql/eth_getLogs_range_hex/response.json delete mode 100644 tests/graphql/eth_getStorageAt/request.gql delete mode 100644 tests/graphql/eth_getStorageAt/response.json delete mode 100644 tests/graphql/eth_getStorageAt_illegalRangeGreaterThan/request.gql delete mode 100644 tests/graphql/eth_getStorageAt_illegalRangeGreaterThan/response.json delete mode 100644 tests/graphql/eth_getTransactionCount/request.gql delete mode 100644 tests/graphql/eth_getTransactionCount/response.json delete mode 100644 tests/graphql/eth_getTransactionReceipt/request.gql delete mode 100644 tests/graphql/eth_getTransactionReceipt/response.json delete mode 100644 tests/graphql/eth_getTransaction_byBlockHashAndIndex/request.gql delete mode 100644 tests/graphql/eth_getTransaction_byBlockHashAndIndex/response.json delete mode 100644 tests/graphql/eth_getTransaction_byBlockNumberAndIndex/request.gql delete mode 100644 tests/graphql/eth_getTransaction_byBlockNumberAndIndex/response.json delete mode 100644 tests/graphql/eth_getTransaction_byBlockNumberAndInvalidIndex/request.gql delete mode 100644 tests/graphql/eth_getTransaction_byBlockNumberAndInvalidIndex/response.json delete mode 100644 tests/graphql/eth_getTransaction_byHash/request.gql delete mode 100644 tests/graphql/eth_getTransaction_byHash/response.json delete mode 100644 tests/graphql/eth_getTransaction_byHashNull/request.gql delete mode 100644 tests/graphql/eth_getTransaction_byHashNull/response.json delete mode 100644 tests/graphql/eth_sendRawTransaction_contractCreation/request.gql delete mode 100644 tests/graphql/eth_sendRawTransaction_contractCreation/response.json delete mode 100644 tests/graphql/eth_sendRawTransaction_messageCall/request.gql delete mode 100644 tests/graphql/eth_sendRawTransaction_messageCall/response.json delete mode 100644 tests/graphql/eth_sendRawTransaction_nonceTooLow/request.gql delete mode 100644 tests/graphql/eth_sendRawTransaction_nonceTooLow/response.json delete mode 100644 tests/graphql/eth_sendRawTransaction_transferEther/request.gql delete mode 100644 tests/graphql/eth_sendRawTransaction_transferEther/response.json delete mode 100644 tests/graphql/eth_sendRawTransaction_unsignedTransaction/request.gql delete mode 100644 tests/graphql/eth_sendRawTransaction_unsignedTransaction/response.json delete mode 100644 tests/graphql/eth_syncing/request.gql delete mode 100644 tests/graphql/eth_syncing/response.json delete mode 100644 tests/graphql/getBlock_byHexNumber/request.gql delete mode 100644 tests/graphql/getBlock_byHexNumber/response.json delete mode 100644 tests/graphql/get_type2Transaction/request.gql delete mode 100644 tests/graphql/get_type2Transaction/response.json delete mode 100644 tests/graphql/graphql_blocks_byFrom/request.gql delete mode 100644 tests/graphql/graphql_blocks_byFrom/response.json delete mode 100644 tests/graphql/graphql_blocks_byRange/request.gql delete mode 100644 tests/graphql/graphql_blocks_byRange/response.json delete mode 100644 tests/graphql/graphql_blocks_byWrongRange/request.gql delete mode 100644 tests/graphql/graphql_blocks_byWrongRange/response.json delete mode 100644 tests/graphql/graphql_pending/request.gql delete mode 100644 tests/graphql/graphql_pending/response.json create mode 100644 tests/graphql/pending/graphql_pending.io create mode 100644 tests/graphql/sendRawTransaction/eth_sendRawTransaction_contractCreation.io create mode 100644 tests/graphql/sendRawTransaction/eth_sendRawTransaction_messageCall.io create mode 100644 tests/graphql/sendRawTransaction/eth_sendRawTransaction_nonceTooLow.io create mode 100644 tests/graphql/sendRawTransaction/eth_sendRawTransaction_transferEther.io create mode 100644 tests/graphql/sendRawTransaction/eth_sendRawTransaction_unsignedTransaction.io create mode 100644 tests/graphql/syncing/eth_syncing.io create mode 100644 tests/graphql/transaction/eth_getTransactionReceipt.io create mode 100644 tests/graphql/transaction/eth_getTransaction_byHash.io create mode 100644 tests/graphql/transaction/eth_getTransaction_byHashNull.io create mode 100644 tests/graphql/transaction/get_type2Transaction.io create mode 100644 tests/graphql/transaction/transaction_fromByHexBlockNumber.io delete mode 100644 tests/graphql/transaction_fromByHexBlockNumber/request.gql delete mode 100644 tests/graphql/transaction_fromByHexBlockNumber/response.json diff --git a/tests/graphql/block/block_withdrawals.io b/tests/graphql/block/block_withdrawals.io new file mode 100644 index 00000000..0765c8cd --- /dev/null +++ b/tests/graphql/block/block_withdrawals.io @@ -0,0 +1,2 @@ +>> {block(number: 33) {number withdrawalsRoot withdrawals {index amount validator address}}} +<< {"data":{"block":{"number":"0x21","withdrawalsRoot":"0x37945ab58d2712a26df2a38d217e822694927e29b30d5993d7a53ccea618d1f3","withdrawals":[{"index":"0x0","amount":"0x2540be400","validator":"0xa","address":"0x0000000000000000000000000000000000000dad"}]}}} diff --git a/tests/graphql/block/block_withdrawals_pre_shanghai.io b/tests/graphql/block/block_withdrawals_pre_shanghai.io new file mode 100644 index 00000000..79dc85ea --- /dev/null +++ b/tests/graphql/block/block_withdrawals_pre_shanghai.io @@ -0,0 +1,2 @@ +>> {block(number: 32) {number withdrawalsRoot withdrawals {index amount}}} +<< {"data":{"block":{"number":"0x20","withdrawalsRoot":null,"withdrawals":null}}} diff --git a/tests/graphql/block/eth_blockNumber.io b/tests/graphql/block/eth_blockNumber.io new file mode 100644 index 00000000..b2b45ae0 --- /dev/null +++ b/tests/graphql/block/eth_blockNumber.io @@ -0,0 +1,2 @@ +>> {block {number}} +<< {"data":{"block":{"number":"0x21"}}} diff --git a/tests/graphql/block/eth_call_Block8.io b/tests/graphql/block/eth_call_Block8.io new file mode 100644 index 00000000..e82d121a --- /dev/null +++ b/tests/graphql/block/eth_call_Block8.io @@ -0,0 +1,2 @@ +>> {block(number: 8) {number call(data: {from: "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" to: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f" data: "0x12a7b914"}) {data status}}} +<< {"data":{"block":{"number":"0x8","call":{"data":"0x0000000000000000000000000000000000000000000000000000000000000000","status":"0x1"}}}} diff --git a/tests/graphql/block/eth_call_BlockLatest.io b/tests/graphql/block/eth_call_BlockLatest.io new file mode 100644 index 00000000..f15db13c --- /dev/null +++ b/tests/graphql/block/eth_call_BlockLatest.io @@ -0,0 +1,2 @@ +>> {block {number call(data: {from: "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" to: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f" data: "0x12a7b914"}) {data status}}} +<< {"data":{"block":{"number":"0x21","call":{"data":"0x0000000000000000000000000000000000000000000000000000000000000001","status":"0x1"}}}} diff --git a/tests/graphql/block/eth_estimateGas_contractDeploy.io b/tests/graphql/block/eth_estimateGas_contractDeploy.io new file mode 100644 index 00000000..2d7e25a9 --- /dev/null +++ b/tests/graphql/block/eth_estimateGas_contractDeploy.io @@ -0,0 +1,2 @@ +>> {block(number: 32) {estimateGas(data: {from: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f" data: "0x608060405234801561001057600080fd5b50610157806100206000396000f30060806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680633bdab8bf146100515780639ae97baa14610068575b600080fd5b34801561005d57600080fd5b5061006661007f565b005b34801561007457600080fd5b5061007d6100b9565b005b7fa53887c1eed04528e23301f55ad49a91634ef5021aa83a97d07fd16ed71c039a60016040518082815260200191505060405180910390a1565b7fa53887c1eed04528e23301f55ad49a91634ef5021aa83a97d07fd16ed71c039a60026040518082815260200191505060405180910390a17fa53887c1eed04528e23301f55ad49a91634ef5021aa83a97d07fd16ed71c039a60036040518082815260200191505060405180910390a15600a165627a7a7230582010ddaa52e73a98c06dbcd22b234b97206c1d7ed64a7c048e10c2043a3d2309cb0029"})}} +<< {"data":{"block":{"estimateGas":"0x1b551"}}} diff --git a/tests/graphql/block/eth_estimateGas_noParams.io b/tests/graphql/block/eth_estimateGas_noParams.io new file mode 100644 index 00000000..cb64ca12 --- /dev/null +++ b/tests/graphql/block/eth_estimateGas_noParams.io @@ -0,0 +1,2 @@ +>> {block(number: 32) {estimateGas(data: {})}} +<< {"data":{"block":{"estimateGas":"0x5208"}}} diff --git a/tests/graphql/block/eth_estimateGas_transfer.io b/tests/graphql/block/eth_estimateGas_transfer.io new file mode 100644 index 00000000..7d21d62e --- /dev/null +++ b/tests/graphql/block/eth_estimateGas_transfer.io @@ -0,0 +1,2 @@ +>> {block {estimateGas(data: {from: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f" to: "0x8888f1f195afa192cfee860698584c030f4c9db1"})}} +<< {"data":{"block":{"estimateGas":"0x5208"}}} diff --git a/tests/graphql/block/eth_getBalance_0x19.io b/tests/graphql/block/eth_getBalance_0x19.io new file mode 100644 index 00000000..e371ea67 --- /dev/null +++ b/tests/graphql/block/eth_getBalance_0x19.io @@ -0,0 +1,2 @@ +>> {block(number: 25) {account(address: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f") {balance}}} +<< {"data":{"block":{"account":{"balance":"0xfa"}}}} diff --git a/tests/graphql/block/eth_getBalance_invalidAccountBlockNumber.io b/tests/graphql/block/eth_getBalance_invalidAccountBlockNumber.io new file mode 100644 index 00000000..aa76d524 --- /dev/null +++ b/tests/graphql/block/eth_getBalance_invalidAccountBlockNumber.io @@ -0,0 +1,2 @@ +>> {block(number: 25) {account(address: "0xdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef") {balance}}} +<< {"data":{"block":{"account":{"balance":"0x0"}}}} diff --git a/tests/graphql/block/eth_getBalance_invalidAccountLatest.io b/tests/graphql/block/eth_getBalance_invalidAccountLatest.io new file mode 100644 index 00000000..87f660bc --- /dev/null +++ b/tests/graphql/block/eth_getBalance_invalidAccountLatest.io @@ -0,0 +1,2 @@ +>> {block {account(address: "0xdeaff00ddeaff00ddeaff00ddeaff00ddeaff00d") {balance}}} +<< {"data":{"block":{"account":{"balance":"0x0"}}}} diff --git a/tests/graphql/block/eth_getBalance_latest.io b/tests/graphql/block/eth_getBalance_latest.io new file mode 100644 index 00000000..dade195b --- /dev/null +++ b/tests/graphql/block/eth_getBalance_latest.io @@ -0,0 +1,2 @@ +>> {block {account(address: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f") {balance}}} +<< {"data":{"block":{"account":{"balance":"0x140"}}}} diff --git a/tests/graphql/block/eth_getBalance_toobig_bn.io b/tests/graphql/block/eth_getBalance_toobig_bn.io new file mode 100644 index 00000000..60540f1f --- /dev/null +++ b/tests/graphql/block/eth_getBalance_toobig_bn.io @@ -0,0 +1,2 @@ +>> {block(number: 33) {account(address: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f") {balance}}} +<< {"error":{"code":-32000,"message":"headernotfound"}} diff --git a/tests/graphql/block/eth_getBalance_without_addr.io b/tests/graphql/block/eth_getBalance_without_addr.io new file mode 100644 index 00000000..16f49c7e --- /dev/null +++ b/tests/graphql/block/eth_getBalance_without_addr.io @@ -0,0 +1,2 @@ +>> {block {account {balance}}} +<< {"errors":[{"message":"ValidationerroroftypeMissingFieldArgument:Missingfieldargumentaddress@'account'","locations":[{"line":1,"column":2}],"extensions":{"classification":"ValidationError"}}]} diff --git a/tests/graphql/block/eth_getBlockTransactionCount_byHash.io b/tests/graphql/block/eth_getBlockTransactionCount_byHash.io new file mode 100644 index 00000000..6b2cf8f3 --- /dev/null +++ b/tests/graphql/block/eth_getBlockTransactionCount_byHash.io @@ -0,0 +1,2 @@ +>> {block(hash: "0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6") {transactionCount}} +<< {"data":{"block":{"transactionCount":"0x1"}}} diff --git a/tests/graphql/block/eth_getBlockTransactionCount_byNumber.io b/tests/graphql/block/eth_getBlockTransactionCount_byNumber.io new file mode 100644 index 00000000..8a460959 --- /dev/null +++ b/tests/graphql/block/eth_getBlockTransactionCount_byNumber.io @@ -0,0 +1,2 @@ +>> {block(number: 30) {transactions {hash} timestamp difficulty totalDifficulty gasUsed gasLimit hash nonce ommerCount logsBloom mixHash ommerHash extraData stateRoot receiptsRoot transactionCount transactionsRoot}} +<< {"data":{"block":{"transactions":[{"hash":"0x9cc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4"}],"timestamp":"0x561bc336","difficulty":"0x20740","totalDifficulty":"0x3e6cc0","gasUsed":"0x5c21","gasLimit":"0x2fefd8","hash":"0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6","nonce":"0x5c321bd9e9f040f1","ommerCount":"0x0","logsBloom":"0x00000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000080000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000400000000000000000200000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000800000000040000000000000000000000000000000000000000010000000000000000000000000","mixHash":"0x6ce1c4afb4f85fefd1b0ed966b20cd248f08d9a5b0df773f75c6c2f5cc237b7c","ommerHash":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347","extraData":"0x","stateRoot":"0xdb46d6bb168130fe2cb60b4b24346137b5741f11283e0d7edace65c5f5466b2e","receiptsRoot":"0x88b3b304b058b39791c26fdb94a05cc16ce67cf8f84f7348cb3c60c0ff342d0d","transactionCount":"0x1","transactionsRoot":"0x5a8d5d966b48e1331ae19eb459eb28882cdc7654e615d37774b79204e875dc01"}}} diff --git a/tests/graphql/block/eth_getBlock_byHash.io b/tests/graphql/block/eth_getBlock_byHash.io new file mode 100644 index 00000000..3d60fa4c --- /dev/null +++ b/tests/graphql/block/eth_getBlock_byHash.io @@ -0,0 +1,2 @@ +>> {block(hash: "0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6") {number transactions {hash} timestamp difficulty totalDifficulty gasUsed gasLimit hash nonce ommerCount logsBloom mixHash ommerHash extraData stateRoot receiptsRoot transactionCount transactionsRoot}} +<< {"data":{"block":{"number":"0x1e","transactions":[{"hash":"0x9cc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4"}],"timestamp":"0x561bc336","difficulty":"0x20740","totalDifficulty":"0x3e6cc0","gasUsed":"0x5c21","gasLimit":"0x2fefd8","hash":"0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6","nonce":"0x5c321bd9e9f040f1","ommerCount":"0x0","logsBloom":"0x00000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000080000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000400000000000000000200000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000800000000040000000000000000000000000000000000000000010000000000000000000000000","mixHash":"0x6ce1c4afb4f85fefd1b0ed966b20cd248f08d9a5b0df773f75c6c2f5cc237b7c","ommerHash":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347","extraData":"0x","stateRoot":"0xdb46d6bb168130fe2cb60b4b24346137b5741f11283e0d7edace65c5f5466b2e","receiptsRoot":"0x88b3b304b058b39791c26fdb94a05cc16ce67cf8f84f7348cb3c60c0ff342d0d","transactionCount":"0x1","transactionsRoot":"0x5a8d5d966b48e1331ae19eb459eb28882cdc7654e615d37774b79204e875dc01"}}} diff --git a/tests/graphql/block/eth_getBlock_byHashInvalid.io b/tests/graphql/block/eth_getBlock_byHashInvalid.io new file mode 100644 index 00000000..29db12c0 --- /dev/null +++ b/tests/graphql/block/eth_getBlock_byHashInvalid.io @@ -0,0 +1,2 @@ +>> {block(hash: "0x123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0") {number}} +<< {"errors":[{"message":"Exceptionwhilefetchingdata(/block):Blockhash0x123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0wasnotfound","locations":[{"line":1,"column":2}],"path":["block"],"extensions":{"classification":"DataFetchingException"}}],"data":null} diff --git a/tests/graphql/block/eth_getBlock_byNumber.io b/tests/graphql/block/eth_getBlock_byNumber.io new file mode 100644 index 00000000..d89226ae --- /dev/null +++ b/tests/graphql/block/eth_getBlock_byNumber.io @@ -0,0 +1,2 @@ +>> {block(number: 30) {transactions {hash} timestamp difficulty totalDifficulty gasUsed gasLimit hash nonce ommerCount logsBloom mixHash ommerHash extraData stateRoot receiptsRoot transactionCount transactionsRoot ommers {hash} ommerAt(index: 1) {hash} miner {address} account(address: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f") {balance} parent {hash}}} +<< {"data":{"block":{"transactions":[{"hash":"0x9cc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4"}],"timestamp":"0x561bc336","difficulty":"0x20740","totalDifficulty":"0x3e6cc0","gasUsed":"0x5c21","gasLimit":"0x2fefd8","hash":"0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6","nonce":"0x5c321bd9e9f040f1","ommerCount":"0x0","logsBloom":"0x00000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000080000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000400000000000000000200000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000800000000040000000000000000000000000000000000000000010000000000000000000000000","mixHash":"0x6ce1c4afb4f85fefd1b0ed966b20cd248f08d9a5b0df773f75c6c2f5cc237b7c","ommerHash":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347","extraData":"0x","stateRoot":"0xdb46d6bb168130fe2cb60b4b24346137b5741f11283e0d7edace65c5f5466b2e","receiptsRoot":"0x88b3b304b058b39791c26fdb94a05cc16ce67cf8f84f7348cb3c60c0ff342d0d","transactionCount":"0x1","transactionsRoot":"0x5a8d5d966b48e1331ae19eb459eb28882cdc7654e615d37774b79204e875dc01","ommers":[],"ommerAt":null,"miner":{"address":"0x8888f1f195afa192cfee860698584c030f4c9db1"},"account":{"balance":"0x12c"},"parent":{"hash":"0xf8cfa377bd766cdf22edb388dd08cc149e85d24f2796678c835f3c54ab930803"}}}} diff --git a/tests/graphql/block/eth_getBlock_byNumberInvalid.io b/tests/graphql/block/eth_getBlock_byNumberInvalid.io new file mode 100644 index 00000000..93c01db7 --- /dev/null +++ b/tests/graphql/block/eth_getBlock_byNumberInvalid.io @@ -0,0 +1,2 @@ +>> {block(number: 88888888) {number}} +<< {"data":{"block":null}} diff --git a/tests/graphql/block/eth_getBlock_shanghai.io b/tests/graphql/block/eth_getBlock_shanghai.io new file mode 100644 index 00000000..6eeec1dc --- /dev/null +++ b/tests/graphql/block/eth_getBlock_shanghai.io @@ -0,0 +1,2 @@ +>> {block(number: 33) {baseFeePerGas difficulty extraData miner {address} mixHash nonce stateRoot totalDifficulty withdrawalsRoot withdrawals {address amount index validator}}} +<< {"data":{"block":{"baseFeePerGas":"0x3b9aca00","difficulty":"0x0","extraData":"0x","miner":{"address":"0x0000000000000000000000000000000000000000"},"mixHash":"0x0000000000000000000000000000000000000000000000000000000000000000","nonce":"0x0000000000000000","stateRoot":"0x0d3c456bb68669bad05da3a1a766daab236c9df1da8f74edf5ebe9383f00084c","totalDifficulty":"0x427c00","withdrawalsRoot":"0x37945ab58d2712a26df2a38d217e822694927e29b30d5993d7a53ccea618d1f3","withdrawals":[{"address":"0x0000000000000000000000000000000000000dad","amount":"0x2540be400","index":"0x0","validator":"0xa"}]}}} diff --git a/tests/graphql/block/eth_getBlock_wrongParams.io b/tests/graphql/block/eth_getBlock_wrongParams.io new file mode 100644 index 00000000..35dc4869 --- /dev/null +++ b/tests/graphql/block/eth_getBlock_wrongParams.io @@ -0,0 +1,2 @@ +>> {block(number: "0x03" hash: "0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6") {number transactions {hash} timestamp difficulty totalDifficulty gasUsed gasLimit hash nonce ommerCount logsBloom mixHash ommerHash extraData stateRoot receiptsRoot transactionCount transactionsRoot}} +<< {"errors":[{"message":"Exceptionwhilefetchingdata(/block):Invalidparams","locations":[{"line":1,"column":2}],"path":["block"],"extensions":{"errorCode":-32602,"errorMessage":"Invalidparams","classification":"DataFetchingException"}}],"data":null} diff --git a/tests/graphql/block/eth_getCode.io b/tests/graphql/block/eth_getCode.io new file mode 100644 index 00000000..0cf32fbc --- /dev/null +++ b/tests/graphql/block/eth_getCode.io @@ -0,0 +1,2 @@ +>> {block {account(address: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f") {code}}} +<< {"data":{"block":{"account":{"code":"0x6000357c010000000000000000000000000000000000000000000000000000000090048063102accc11461012c57806312a7b9141461013a5780631774e6461461014c5780631e26fd331461015d5780631f9030371461016e578063343a875d1461018057806338cc4831146101955780634e7ad367146101bd57806357cb2fc4146101cb57806365538c73146101e057806368895979146101ee57806376bc21d9146102005780639a19a9531461020e5780639dc2c8f51461021f578063a53b1c1e1461022d578063a67808571461023e578063b61c05031461024c578063c2b12a731461025a578063d2282dc51461026b578063e30081a01461027c578063e8beef5b1461028d578063f38b06001461029b578063f5b53e17146102a9578063fd408767146102bb57005b6101346104d6565b60006000f35b61014261039b565b8060005260206000f35b610157600435610326565b60006000f35b6101686004356102c9565b60006000f35b610176610442565b8060005260206000f35b6101886103d3565b8060ff1660005260206000f35b61019d610413565b8073ffffffffffffffffffffffffffffffffffffffff1660005260206000f35b6101c56104c5565b60006000f35b6101d36103b7565b8060000b60005260206000f35b6101e8610454565b60006000f35b6101f6610401565b8060005260206000f35b61020861051f565b60006000f35b6102196004356102e5565b60006000f35b610227610693565b60006000f35b610238600435610342565b60006000f35b610246610484565b60006000f35b610254610493565b60006000f35b61026560043561038d565b60006000f35b610276600435610350565b60006000f35b61028760043561035e565b60006000f35b6102956105b4565b60006000f35b6102a3610547565b60006000f35b6102b16103ef565b8060005260206000f35b6102c3610600565b60006000f35b80600060006101000a81548160ff021916908302179055505b50565b80600060016101000a81548160ff02191690837f01000000000000000000000000000000000000000000000000000000000000009081020402179055505b50565b80600060026101000a81548160ff021916908302179055505b50565b806001600050819055505b50565b806002600050819055505b50565b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908302179055505b50565b806004600050819055505b50565b6000600060009054906101000a900460ff1690506103b4565b90565b6000600060019054906101000a900460000b90506103d0565b90565b6000600060029054906101000a900460ff1690506103ec565b90565b600060016000505490506103fe565b90565b60006002600050549050610410565b90565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905061043f565b90565b60006004600050549050610451565b90565b7f65c9ac8011e286e89d02a269890f41d67ca2cc597b2c76c7c69321ff492be5806000602a81526020016000a15b565b6000602a81526020016000a05b565b60017f81933b308056e7e85668661dcd102b1f22795b4431f9cf4625794f381c271c6b6000602a81526020016000a25b565b60016000602a81526020016000a15b565b3373ffffffffffffffffffffffffffffffffffffffff1660017f0e216b62efbb97e751a2ce09f607048751720397ecfb9eef1e48a6644948985b6000602a81526020016000a35b565b3373ffffffffffffffffffffffffffffffffffffffff1660016000602a81526020016000a25b565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6001023373ffffffffffffffffffffffffffffffffffffffff1660017f317b31292193c2a4f561cc40a95ea0d97a2733f14af6d6d59522473e1f3ae65f6000602a81526020016000a45b565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6001023373ffffffffffffffffffffffffffffffffffffffff1660016000602a81526020016000a35b565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6001023373ffffffffffffffffffffffffffffffffffffffff1660017fd5f0a30e4be0c6be577a71eceb7464245a796a7e6a55c0d971837b250de05f4e60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe98152602001602a81526020016000a45b565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6001023373ffffffffffffffffffffffffffffffffffffffff16600160007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe98152602001602a81526020016000a35b56"}}}} diff --git a/tests/graphql/block/eth_getCode_noCode.io b/tests/graphql/block/eth_getCode_noCode.io new file mode 100644 index 00000000..ab9bf690 --- /dev/null +++ b/tests/graphql/block/eth_getCode_noCode.io @@ -0,0 +1,2 @@ +>> {block {account(address: "0x8888f1f195afa192cfee860698584c030f4c9db1") {code}}} +<< {"data":{"block":{"account":{"code":"0x"}}}} diff --git a/tests/graphql/block/eth_getLogs_matchTopic.io b/tests/graphql/block/eth_getLogs_matchTopic.io new file mode 100644 index 00000000..e96d6bb4 --- /dev/null +++ b/tests/graphql/block/eth_getLogs_matchTopic.io @@ -0,0 +1,2 @@ +>> {block(number: 23) {logs(filter: {topics: [ [ "0x000000000000000000000000a94f5374fce5edbc8e2a8697c15331677e6ebf0b" "0x65c9ac8011e286e89d02a269890f41d67ca2cc597b2c76c7c69321ff492be580" ] ]}) {index topics data account {address} transaction {hash}}}} +<< {"data":{"block":{"logs":[{"index":"0x0","topics":["0x65c9ac8011e286e89d02a269890f41d67ca2cc597b2c76c7c69321ff492be580"],"data":"0x000000000000000000000000000000000000000000000000000000000000002a","account":{"address":"0x6295ee1b4f6dd65047762f924ecd367c17eabf8f"},"transaction":{"hash":"0x97a385bf570ced7821c6495b3877ddd2afd5c452f350f0d4876e98d9161389c6"}}]}}} diff --git a/tests/graphql/block/eth_getStorageAt.io b/tests/graphql/block/eth_getStorageAt.io new file mode 100644 index 00000000..3ab6c7b3 --- /dev/null +++ b/tests/graphql/block/eth_getStorageAt.io @@ -0,0 +1,2 @@ +>> {block {account(address: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f") {storage(slot: "0x0000000000000000000000000000000000000000000000000000000000000004")}}} +<< {"data":{"block":{"account":{"storage":"0xaabbccffffffffffffffffffffffffffffffffffffffffffffffffffffffffee"}}}} diff --git a/tests/graphql/block/eth_getStorageAt_illegalRangeGreaterThan.io b/tests/graphql/block/eth_getStorageAt_illegalRangeGreaterThan.io new file mode 100644 index 00000000..baf6d529 --- /dev/null +++ b/tests/graphql/block/eth_getStorageAt_illegalRangeGreaterThan.io @@ -0,0 +1,2 @@ +>> {block {account(address: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f") {storage(slot: "0x0000000000000000000000000000000000000000000000000000000000000021")}}} +<< {"data":{"block":{"account":{"storage":"0x0000000000000000000000000000000000000000000000000000000000000000"}}}} diff --git a/tests/graphql/block/eth_getTransactionCount.io b/tests/graphql/block/eth_getTransactionCount.io new file mode 100644 index 00000000..323cd0a2 --- /dev/null +++ b/tests/graphql/block/eth_getTransactionCount.io @@ -0,0 +1,2 @@ +>> {block {account(address: "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b") {transactionCount}}} +<< {"data":{"block":{"account":{"transactionCount":"0x21"}}}} diff --git a/tests/graphql/block/eth_getTransaction_byBlockHashAndIndex.io b/tests/graphql/block/eth_getTransaction_byBlockHashAndIndex.io new file mode 100644 index 00000000..47fcce0b --- /dev/null +++ b/tests/graphql/block/eth_getTransaction_byBlockHashAndIndex.io @@ -0,0 +1,2 @@ +>> {block(hash: "0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6") {transactionAt(index: 0) {block {hash} hash}}} +<< {"data":{"block":{"transactionAt":{"block":{"hash":"0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6"},"hash":"0x9cc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4"}}}} diff --git a/tests/graphql/block/eth_getTransaction_byBlockNumberAndIndex.io b/tests/graphql/block/eth_getTransaction_byBlockNumberAndIndex.io new file mode 100644 index 00000000..9db42fff --- /dev/null +++ b/tests/graphql/block/eth_getTransaction_byBlockNumberAndIndex.io @@ -0,0 +1,2 @@ +>> {block(number: 30) {transactionAt(index: 0) {block {hash} hash}}} +<< {"data":{"block":{"transactionAt":{"block":{"hash":"0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6"},"hash":"0x9cc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4"}}}} diff --git a/tests/graphql/block/eth_getTransaction_byBlockNumberAndInvalidIndex.io b/tests/graphql/block/eth_getTransaction_byBlockNumberAndInvalidIndex.io new file mode 100644 index 00000000..f490f65a --- /dev/null +++ b/tests/graphql/block/eth_getTransaction_byBlockNumberAndInvalidIndex.io @@ -0,0 +1,2 @@ +>> {block(number: 30) {transactionAt(index: 1) {block {hash} hash}}} +<< {"data":{"block":{"transactionAt":null}}} diff --git a/tests/graphql/block/getBlock_byHexNumber.io b/tests/graphql/block/getBlock_byHexNumber.io new file mode 100644 index 00000000..364f3338 --- /dev/null +++ b/tests/graphql/block/getBlock_byHexNumber.io @@ -0,0 +1,2 @@ +>> {block(number: "0x1e") {gasUsed gasLimit hash}} +<< {"data":{"block":{"gasUsed":"0x5c21","gasLimit":"0x2fefd8","hash":"0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6"}}} diff --git a/tests/graphql/block_withdrawals/request.gql b/tests/graphql/block_withdrawals/request.gql deleted file mode 100644 index 64957154..00000000 --- a/tests/graphql/block_withdrawals/request.gql +++ /dev/null @@ -1,12 +0,0 @@ -{ - block(number: 33) { - number - withdrawalsRoot - withdrawals { - index - amount - validator - address - } - } -} diff --git a/tests/graphql/block_withdrawals/response.json b/tests/graphql/block_withdrawals/response.json deleted file mode 100644 index 5c4e59a3..00000000 --- a/tests/graphql/block_withdrawals/response.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "responses": [ - { - "data": { - "block": { - "number": "0x21", - "withdrawalsRoot": "0x37945ab58d2712a26df2a38d217e822694927e29b30d5993d7a53ccea618d1f3", - "withdrawals": [ - { - "index": "0x0", - "amount": "0x2540be400", - "validator": "0xa", - "address": "0x0000000000000000000000000000000000000dad" - } - ] - } - } - } - ], - "statusCode": 200 -} diff --git a/tests/graphql/block_withdrawals_pre_shanghai/request.gql b/tests/graphql/block_withdrawals_pre_shanghai/request.gql deleted file mode 100644 index d5589bf6..00000000 --- a/tests/graphql/block_withdrawals_pre_shanghai/request.gql +++ /dev/null @@ -1,10 +0,0 @@ -{ - block(number: 32) { - number - withdrawalsRoot - withdrawals { - index - amount - } - } -} diff --git a/tests/graphql/block_withdrawals_pre_shanghai/response.json b/tests/graphql/block_withdrawals_pre_shanghai/response.json deleted file mode 100644 index 36c0d16b..00000000 --- a/tests/graphql/block_withdrawals_pre_shanghai/response.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "responses": [ - { - "data": { - "block": { - "number": "0x20", - "withdrawalsRoot": null, - "withdrawals": null - } - } - } - ], - "statusCode": 200 -} diff --git a/tests/graphql/blocks/graphql_blocks_byFrom.io b/tests/graphql/blocks/graphql_blocks_byFrom.io new file mode 100644 index 00000000..5110cf0d --- /dev/null +++ b/tests/graphql/blocks/graphql_blocks_byFrom.io @@ -0,0 +1,2 @@ +>> {blocks(from: 30) {number}} +<< {"data":{"blocks":[{"number":"0x1e"},{"number":"0x1f"},{"number":"0x20"},{"number":"0x21"}]}} diff --git a/tests/graphql/blocks/graphql_blocks_byRange.io b/tests/graphql/blocks/graphql_blocks_byRange.io new file mode 100644 index 00000000..d0d5384c --- /dev/null +++ b/tests/graphql/blocks/graphql_blocks_byRange.io @@ -0,0 +1,2 @@ +>> {blocks(from: 30, to: 32) {number gasUsed gasLimit hash nonce stateRoot receiptsRoot transactionCount}} +<< {"data":{"blocks":[{"number":"0x1e","gasUsed":"0x5c21","gasLimit":"0x2fefd8","hash":"0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6","nonce":"0x5c321bd9e9f040f1","stateRoot":"0xdb46d6bb168130fe2cb60b4b24346137b5741f11283e0d7edace65c5f5466b2e","receiptsRoot":"0x88b3b304b058b39791c26fdb94a05cc16ce67cf8f84f7348cb3c60c0ff342d0d","transactionCount":"0x1"},{"number":"0x1f","gasUsed":"0x5eef","gasLimit":"0x2fefd8","hash":"0x0f765087745aa259d9e5ac39c367c57432a16ed98e3b0d81c5b51d10f301dc49","nonce":"0xd3a27a3001616468","stateRoot":"0xa80997cf804269d64f2479baf535cf8f9090b70fbf515741c6995564f1e678bd","receiptsRoot":"0x2440c44a3f75ad8b0425a73e7be2f61a5171112465cfd14e62e735b56d7178e6","transactionCount":"0x1"},{"number":"0x20","gasUsed":"0x5c99","gasLimit":"0x2fefd8","hash":"0x71d59849ddd98543bdfbe8548f5eed559b07b8aaf196369f39134500eab68e53","nonce":"0xdb063000b00e8026","stateRoot":"0xf65f3dd13f72f5fa5607a5224691419969b4f4bae7a00a6cdb853f2ca9eeb1be","receiptsRoot":"0xa50a7e67e833f4502524371ee462ccbcc6c6cabd2aeb1555c56150007a53183c","transactionCount":"0x1"}]}} diff --git a/tests/graphql/blocks/graphql_blocks_byWrongRange.io b/tests/graphql/blocks/graphql_blocks_byWrongRange.io new file mode 100644 index 00000000..e796d1fc --- /dev/null +++ b/tests/graphql/blocks/graphql_blocks_byWrongRange.io @@ -0,0 +1,2 @@ +>> {blocks(from: "0x1e", to: "0x1c") {number gasUsed gasLimit hash nonce stateRoot receiptsRoot transactionCount}} +<< {"errors":[{"message":"Exceptionwhilefetchingdata(/blocks):Invalidparams","locations":[{"line":1,"column":2}],"path":["blocks"],"extensions":{"errorCode":-32602,"errorMessage":"Invalidparams","classification":"DataFetchingException"}}],"data":null} diff --git a/tests/graphql/eth_blockNumber/request.gql b/tests/graphql/eth_blockNumber/request.gql deleted file mode 100644 index b3c0bdbe..00000000 --- a/tests/graphql/eth_blockNumber/request.gql +++ /dev/null @@ -1,5 +0,0 @@ -{ - block { - number - } -} diff --git a/tests/graphql/eth_blockNumber/response.json b/tests/graphql/eth_blockNumber/response.json deleted file mode 100644 index 3c839b57..00000000 --- a/tests/graphql/eth_blockNumber/response.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "responses": [ - { - "data": { - "block": { - "number": "0x21" - } - } - } - ], - "statusCode": 200 -} diff --git a/tests/graphql/eth_call_Block8/request.gql b/tests/graphql/eth_call_Block8/request.gql deleted file mode 100644 index 13023241..00000000 --- a/tests/graphql/eth_call_Block8/request.gql +++ /dev/null @@ -1,15 +0,0 @@ -{ - block(number: 8) { - number - call( - data: { - from: "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" - to: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f" - data: "0x12a7b914" - } - ) { - data - status - } - } -} diff --git a/tests/graphql/eth_call_Block8/response.json b/tests/graphql/eth_call_Block8/response.json deleted file mode 100644 index 637490f7..00000000 --- a/tests/graphql/eth_call_Block8/response.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "responses": [ - { - "data": { - "block": { - "number": "0x8", - "call": { - "data": "0x0000000000000000000000000000000000000000000000000000000000000000", - "status": "0x1" - } - } - } - } - ], - "statusCode": 200 -} diff --git a/tests/graphql/eth_call_BlockLatest/request.gql b/tests/graphql/eth_call_BlockLatest/request.gql deleted file mode 100644 index e6778632..00000000 --- a/tests/graphql/eth_call_BlockLatest/request.gql +++ /dev/null @@ -1,15 +0,0 @@ -{ - block { - number - call( - data: { - from: "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" - to: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f" - data: "0x12a7b914" - } - ) { - data - status - } - } -} diff --git a/tests/graphql/eth_call_BlockLatest/response.json b/tests/graphql/eth_call_BlockLatest/response.json deleted file mode 100644 index 85a1e039..00000000 --- a/tests/graphql/eth_call_BlockLatest/response.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "responses": [ - { - "data": { - "block": { - "number": "0x21", - "call": { - "data": "0x0000000000000000000000000000000000000000000000000000000000000001", - "status": "0x1" - } - } - } - } - ], - "statusCode": 200 -} diff --git a/tests/graphql/eth_estimateGas_contractDeploy/request.gql b/tests/graphql/eth_estimateGas_contractDeploy/request.gql deleted file mode 100644 index 5c204309..00000000 --- a/tests/graphql/eth_estimateGas_contractDeploy/request.gql +++ /dev/null @@ -1,10 +0,0 @@ -{ - block(number: 32) { - estimateGas( - data: { - from: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f" - data: "0x608060405234801561001057600080fd5b50610157806100206000396000f30060806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680633bdab8bf146100515780639ae97baa14610068575b600080fd5b34801561005d57600080fd5b5061006661007f565b005b34801561007457600080fd5b5061007d6100b9565b005b7fa53887c1eed04528e23301f55ad49a91634ef5021aa83a97d07fd16ed71c039a60016040518082815260200191505060405180910390a1565b7fa53887c1eed04528e23301f55ad49a91634ef5021aa83a97d07fd16ed71c039a60026040518082815260200191505060405180910390a17fa53887c1eed04528e23301f55ad49a91634ef5021aa83a97d07fd16ed71c039a60036040518082815260200191505060405180910390a15600a165627a7a7230582010ddaa52e73a98c06dbcd22b234b97206c1d7ed64a7c048e10c2043a3d2309cb0029" - } - ) - } -} diff --git a/tests/graphql/eth_estimateGas_contractDeploy/response.json b/tests/graphql/eth_estimateGas_contractDeploy/response.json deleted file mode 100644 index 0c2ee251..00000000 --- a/tests/graphql/eth_estimateGas_contractDeploy/response.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "responses": [ - { - "data": { - "block": { - "estimateGas": "0x1b551" - } - } - } - ], - "statusCode": 200 -} diff --git a/tests/graphql/eth_estimateGas_noParams/request.gql b/tests/graphql/eth_estimateGas_noParams/request.gql deleted file mode 100644 index 98866e9d..00000000 --- a/tests/graphql/eth_estimateGas_noParams/request.gql +++ /dev/null @@ -1,5 +0,0 @@ -{ - block(number: 32) { - estimateGas(data: {}) - } -} diff --git a/tests/graphql/eth_estimateGas_noParams/response.json b/tests/graphql/eth_estimateGas_noParams/response.json deleted file mode 100644 index 6092da08..00000000 --- a/tests/graphql/eth_estimateGas_noParams/response.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "responses": [ - { - "data": { - "block": { - "estimateGas": "0x5208" - } - } - } - ], - "statusCode": 200 -} diff --git a/tests/graphql/eth_estimateGas_transfer/request.gql b/tests/graphql/eth_estimateGas_transfer/request.gql deleted file mode 100644 index e470f721..00000000 --- a/tests/graphql/eth_estimateGas_transfer/request.gql +++ /dev/null @@ -1,10 +0,0 @@ -{ - block { - estimateGas( - data: { - from: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f" - to: "0x8888f1f195afa192cfee860698584c030f4c9db1" - } - ) - } -} diff --git a/tests/graphql/eth_estimateGas_transfer/response.json b/tests/graphql/eth_estimateGas_transfer/response.json deleted file mode 100644 index 6092da08..00000000 --- a/tests/graphql/eth_estimateGas_transfer/response.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "responses": [ - { - "data": { - "block": { - "estimateGas": "0x5208" - } - } - } - ], - "statusCode": 200 -} diff --git a/tests/graphql/eth_getBalance_0x19/request.gql b/tests/graphql/eth_getBalance_0x19/request.gql deleted file mode 100644 index ab7d662e..00000000 --- a/tests/graphql/eth_getBalance_0x19/request.gql +++ /dev/null @@ -1,7 +0,0 @@ -{ - block(number: 25) { - account(address: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f") { - balance - } - } -} diff --git a/tests/graphql/eth_getBalance_0x19/response.json b/tests/graphql/eth_getBalance_0x19/response.json deleted file mode 100644 index 359aaa6a..00000000 --- a/tests/graphql/eth_getBalance_0x19/response.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "responses": [ - { - "data": { - "block": { - "account": { - "balance": "0xfa" - } - } - } - } - ], - "statusCode": 200 -} diff --git a/tests/graphql/eth_getBalance_invalidAccountBlockNumber/request.gql b/tests/graphql/eth_getBalance_invalidAccountBlockNumber/request.gql deleted file mode 100644 index f6a33f8e..00000000 --- a/tests/graphql/eth_getBalance_invalidAccountBlockNumber/request.gql +++ /dev/null @@ -1,7 +0,0 @@ -{ - block(number: 25) { - account(address: "0xdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef") { - balance - } - } -} diff --git a/tests/graphql/eth_getBalance_invalidAccountBlockNumber/response.json b/tests/graphql/eth_getBalance_invalidAccountBlockNumber/response.json deleted file mode 100644 index 8c2e6953..00000000 --- a/tests/graphql/eth_getBalance_invalidAccountBlockNumber/response.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "responses": [ - { - "data": { - "block": { - "account": { - "balance": "0x0" - } - } - } - } - ], - "statusCode": 200 -} diff --git a/tests/graphql/eth_getBalance_invalidAccountLatest/request.gql b/tests/graphql/eth_getBalance_invalidAccountLatest/request.gql deleted file mode 100644 index 3fb32dca..00000000 --- a/tests/graphql/eth_getBalance_invalidAccountLatest/request.gql +++ /dev/null @@ -1,7 +0,0 @@ -{ - block { - account(address: "0xdeaff00ddeaff00ddeaff00ddeaff00ddeaff00d") { - balance - } - } -} diff --git a/tests/graphql/eth_getBalance_invalidAccountLatest/response.json b/tests/graphql/eth_getBalance_invalidAccountLatest/response.json deleted file mode 100644 index 8c2e6953..00000000 --- a/tests/graphql/eth_getBalance_invalidAccountLatest/response.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "responses": [ - { - "data": { - "block": { - "account": { - "balance": "0x0" - } - } - } - } - ], - "statusCode": 200 -} diff --git a/tests/graphql/eth_getBalance_latest/request.gql b/tests/graphql/eth_getBalance_latest/request.gql deleted file mode 100644 index 7cec83e8..00000000 --- a/tests/graphql/eth_getBalance_latest/request.gql +++ /dev/null @@ -1,7 +0,0 @@ -{ - block { - account(address: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f") { - balance - } - } -} diff --git a/tests/graphql/eth_getBalance_latest/response.json b/tests/graphql/eth_getBalance_latest/response.json deleted file mode 100644 index c6ebe366..00000000 --- a/tests/graphql/eth_getBalance_latest/response.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "responses": [ - { - "data": { - "block": { - "account": { - "balance": "0x140" - } - } - } - } - ], - "statusCode": 200 -} diff --git a/tests/graphql/eth_getBalance_toobig_bn/request.gql b/tests/graphql/eth_getBalance_toobig_bn/request.gql deleted file mode 100644 index b4ccf75a..00000000 --- a/tests/graphql/eth_getBalance_toobig_bn/request.gql +++ /dev/null @@ -1,7 +0,0 @@ -{ - block(number: 33) { - account(address: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f") { - balance - } - } -} diff --git a/tests/graphql/eth_getBalance_toobig_bn/response.json b/tests/graphql/eth_getBalance_toobig_bn/response.json deleted file mode 100644 index ebc60ddb..00000000 --- a/tests/graphql/eth_getBalance_toobig_bn/response.json +++ /dev/null @@ -1 +0,0 @@ -{ "responses": { "error": { "code": -32000, "message": "header not found" } }, "statusCode": 400 } diff --git a/tests/graphql/eth_getBalance_without_addr/request.gql b/tests/graphql/eth_getBalance_without_addr/request.gql deleted file mode 100644 index 4ed8640b..00000000 --- a/tests/graphql/eth_getBalance_without_addr/request.gql +++ /dev/null @@ -1,7 +0,0 @@ -{ - block { - account { - balance - } - } -} diff --git a/tests/graphql/eth_getBalance_without_addr/response.json b/tests/graphql/eth_getBalance_without_addr/response.json deleted file mode 100644 index cf163705..00000000 --- a/tests/graphql/eth_getBalance_without_addr/response.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "responses": [ - { - "errors": [ - { - "message": "Validation error of type MissingFieldArgument: Missing field argument address @ 'account'", - "locations": [ - { - "line": 1, - "column": 2 - } - ], - "extensions": { - "classification": "ValidationError" - } - } - ] - } - ], - "statusCode": 400 -} diff --git a/tests/graphql/eth_getBlockTransactionCount_byHash/request.gql b/tests/graphql/eth_getBlockTransactionCount_byHash/request.gql deleted file mode 100644 index 473262a8..00000000 --- a/tests/graphql/eth_getBlockTransactionCount_byHash/request.gql +++ /dev/null @@ -1,7 +0,0 @@ -{ - block( - hash: "0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6" - ) { - transactionCount - } -} diff --git a/tests/graphql/eth_getBlockTransactionCount_byHash/response.json b/tests/graphql/eth_getBlockTransactionCount_byHash/response.json deleted file mode 100644 index 87356cea..00000000 --- a/tests/graphql/eth_getBlockTransactionCount_byHash/response.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "responses": [ - { - "data": { - "block": { - "transactionCount": "0x1" - } - } - } - ], - "statusCode": 200 -} diff --git a/tests/graphql/eth_getBlockTransactionCount_byNumber/request.gql b/tests/graphql/eth_getBlockTransactionCount_byNumber/request.gql deleted file mode 100644 index faa2d081..00000000 --- a/tests/graphql/eth_getBlockTransactionCount_byNumber/request.gql +++ /dev/null @@ -1,23 +0,0 @@ -{ - block(number: 30) { - transactions { - hash - } - timestamp - difficulty - totalDifficulty - gasUsed - gasLimit - hash - nonce - ommerCount - logsBloom - mixHash - ommerHash - extraData - stateRoot - receiptsRoot - transactionCount - transactionsRoot - } -} diff --git a/tests/graphql/eth_getBlockTransactionCount_byNumber/response.json b/tests/graphql/eth_getBlockTransactionCount_byNumber/response.json deleted file mode 100644 index 2871eca5..00000000 --- a/tests/graphql/eth_getBlockTransactionCount_byNumber/response.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "responses": [ - { - "data": { - "block": { - "transactions": [ - { - "hash": "0x9cc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4" - } - ], - "timestamp": "0x561bc336", - "difficulty": "0x20740", - "totalDifficulty": "0x3e6cc0", - "gasUsed": "0x5c21", - "gasLimit": "0x2fefd8", - "hash": "0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6", - "nonce": "0x5c321bd9e9f040f1", - "ommerCount": "0x0", - "logsBloom": "0x00000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000080000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000400000000000000000200000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000800000000040000000000000000000000000000000000000000010000000000000000000000000", - "mixHash": "0x6ce1c4afb4f85fefd1b0ed966b20cd248f08d9a5b0df773f75c6c2f5cc237b7c", - "ommerHash": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", - "extraData": "0x", - "stateRoot": "0xdb46d6bb168130fe2cb60b4b24346137b5741f11283e0d7edace65c5f5466b2e", - "receiptsRoot": "0x88b3b304b058b39791c26fdb94a05cc16ce67cf8f84f7348cb3c60c0ff342d0d", - "transactionCount": "0x1", - "transactionsRoot": "0x5a8d5d966b48e1331ae19eb459eb28882cdc7654e615d37774b79204e875dc01" - } - } - } - ], - "statusCode": 200 -} diff --git a/tests/graphql/eth_getBlock_byHash/request.gql b/tests/graphql/eth_getBlock_byHash/request.gql deleted file mode 100644 index 59d648bf..00000000 --- a/tests/graphql/eth_getBlock_byHash/request.gql +++ /dev/null @@ -1,26 +0,0 @@ -{ - block( - hash: "0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6" - ) { - number - transactions { - hash - } - timestamp - difficulty - totalDifficulty - gasUsed - gasLimit - hash - nonce - ommerCount - logsBloom - mixHash - ommerHash - extraData - stateRoot - receiptsRoot - transactionCount - transactionsRoot - } -} diff --git a/tests/graphql/eth_getBlock_byHash/response.json b/tests/graphql/eth_getBlock_byHash/response.json deleted file mode 100644 index 06b0e92b..00000000 --- a/tests/graphql/eth_getBlock_byHash/response.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "responses": [ - { - "data": { - "block": { - "number": "0x1e", - "transactions": [ - { - "hash": "0x9cc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4" - } - ], - "timestamp": "0x561bc336", - "difficulty": "0x20740", - "totalDifficulty": "0x3e6cc0", - "gasUsed": "0x5c21", - "gasLimit": "0x2fefd8", - "hash": "0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6", - "nonce": "0x5c321bd9e9f040f1", - "ommerCount": "0x0", - "logsBloom": "0x00000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000080000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000400000000000000000200000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000800000000040000000000000000000000000000000000000000010000000000000000000000000", - "mixHash": "0x6ce1c4afb4f85fefd1b0ed966b20cd248f08d9a5b0df773f75c6c2f5cc237b7c", - "ommerHash": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", - "extraData": "0x", - "stateRoot": "0xdb46d6bb168130fe2cb60b4b24346137b5741f11283e0d7edace65c5f5466b2e", - "receiptsRoot": "0x88b3b304b058b39791c26fdb94a05cc16ce67cf8f84f7348cb3c60c0ff342d0d", - "transactionCount": "0x1", - "transactionsRoot": "0x5a8d5d966b48e1331ae19eb459eb28882cdc7654e615d37774b79204e875dc01" - } - } - } - ], - "statusCode": 200 -} diff --git a/tests/graphql/eth_getBlock_byHashInvalid/request.gql b/tests/graphql/eth_getBlock_byHashInvalid/request.gql deleted file mode 100644 index 99adcbe8..00000000 --- a/tests/graphql/eth_getBlock_byHashInvalid/request.gql +++ /dev/null @@ -1,7 +0,0 @@ -{ - block( - hash: "0x123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0" - ) { - number - } -} diff --git a/tests/graphql/eth_getBlock_byHashInvalid/response.json b/tests/graphql/eth_getBlock_byHashInvalid/response.json deleted file mode 100644 index f7541074..00000000 --- a/tests/graphql/eth_getBlock_byHashInvalid/response.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "responses": [ - { - "errors": [ - { - "message": "Exception while fetching data (/block) : Block hash 0x123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0 was not found", - "locations": [ - { - "line": 1, - "column": 2 - } - ], - "path": ["block"], - "extensions": { - "classification": "DataFetchingException" - } - } - ], - "data": null - } - ], - "statusCode": 400 -} diff --git a/tests/graphql/eth_getBlock_byNumber/request.gql b/tests/graphql/eth_getBlock_byNumber/request.gql deleted file mode 100644 index d54c7349..00000000 --- a/tests/graphql/eth_getBlock_byNumber/request.gql +++ /dev/null @@ -1,38 +0,0 @@ -{ - block(number: 30) { - transactions { - hash - } - timestamp - difficulty - totalDifficulty - gasUsed - gasLimit - hash - nonce - ommerCount - logsBloom - mixHash - ommerHash - extraData - stateRoot - receiptsRoot - transactionCount - transactionsRoot - ommers { - hash - } - ommerAt(index: 1) { - hash - } - miner { - address - } - account(address: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f") { - balance - } - parent { - hash - } - } -} diff --git a/tests/graphql/eth_getBlock_byNumber/response.json b/tests/graphql/eth_getBlock_byNumber/response.json deleted file mode 100644 index eaa766a9..00000000 --- a/tests/graphql/eth_getBlock_byNumber/response.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "responses": [ - { - "data": { - "block": { - "transactions": [ - { - "hash": "0x9cc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4" - } - ], - "timestamp": "0x561bc336", - "difficulty": "0x20740", - "totalDifficulty": "0x3e6cc0", - "gasUsed": "0x5c21", - "gasLimit": "0x2fefd8", - "hash": "0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6", - "nonce": "0x5c321bd9e9f040f1", - "ommerCount": "0x0", - "logsBloom": "0x00000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000080000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000400000000000000000200000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000800000000040000000000000000000000000000000000000000010000000000000000000000000", - "mixHash": "0x6ce1c4afb4f85fefd1b0ed966b20cd248f08d9a5b0df773f75c6c2f5cc237b7c", - "ommerHash": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", - "extraData": "0x", - "stateRoot": "0xdb46d6bb168130fe2cb60b4b24346137b5741f11283e0d7edace65c5f5466b2e", - "receiptsRoot": "0x88b3b304b058b39791c26fdb94a05cc16ce67cf8f84f7348cb3c60c0ff342d0d", - "transactionCount": "0x1", - "transactionsRoot": "0x5a8d5d966b48e1331ae19eb459eb28882cdc7654e615d37774b79204e875dc01", - "ommers": [], - "ommerAt": null, - "miner": { - "address": "0x8888f1f195afa192cfee860698584c030f4c9db1" - }, - "account": { - "balance": "0x12c" - }, - "parent": { - "hash": "0xf8cfa377bd766cdf22edb388dd08cc149e85d24f2796678c835f3c54ab930803" - } - } - } - } - ], - "statusCode": 200 -} diff --git a/tests/graphql/eth_getBlock_byNumberInvalid/request.gql b/tests/graphql/eth_getBlock_byNumberInvalid/request.gql deleted file mode 100644 index bb8a2809..00000000 --- a/tests/graphql/eth_getBlock_byNumberInvalid/request.gql +++ /dev/null @@ -1,5 +0,0 @@ -{ - block(number: 88888888) { - number - } -} diff --git a/tests/graphql/eth_getBlock_byNumberInvalid/response.json b/tests/graphql/eth_getBlock_byNumberInvalid/response.json deleted file mode 100644 index e0dca898..00000000 --- a/tests/graphql/eth_getBlock_byNumberInvalid/response.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "responses": { - "data": { - "block": null - } - }, - "statusCode": 200 -} diff --git a/tests/graphql/eth_getBlock_shanghai/request.gql b/tests/graphql/eth_getBlock_shanghai/request.gql deleted file mode 100644 index e46ec76d..00000000 --- a/tests/graphql/eth_getBlock_shanghai/request.gql +++ /dev/null @@ -1,21 +0,0 @@ -{ - block(number: 33) { - baseFeePerGas - difficulty - extraData - miner { - address - } - mixHash - nonce - stateRoot - totalDifficulty - withdrawalsRoot - withdrawals { - address - amount - index - validator - } - } -} diff --git a/tests/graphql/eth_getBlock_shanghai/response.json b/tests/graphql/eth_getBlock_shanghai/response.json deleted file mode 100644 index 7c752a34..00000000 --- a/tests/graphql/eth_getBlock_shanghai/response.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "responses": [ - { - "data": { - "block": { - "baseFeePerGas": "0x3b9aca00", - "difficulty": "0x0", - "extraData": "0x", - "miner": { - "address": "0x0000000000000000000000000000000000000000" - }, - "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000", - "nonce": "0x0000000000000000", - "stateRoot": "0x0d3c456bb68669bad05da3a1a766daab236c9df1da8f74edf5ebe9383f00084c", - "totalDifficulty": "0x427c00", - "withdrawalsRoot": "0x37945ab58d2712a26df2a38d217e822694927e29b30d5993d7a53ccea618d1f3", - "withdrawals": [ - { - "address": "0x0000000000000000000000000000000000000dad", - "amount": "0x2540be400", - "index": "0x0", - "validator": "0xa" - } - ] - } - } - } - ], - "statusCode": 200 -} diff --git a/tests/graphql/eth_getBlock_wrongParams/request.gql b/tests/graphql/eth_getBlock_wrongParams/request.gql deleted file mode 100644 index e3da7bcd..00000000 --- a/tests/graphql/eth_getBlock_wrongParams/request.gql +++ /dev/null @@ -1,27 +0,0 @@ -{ - block( - number: "0x03" - hash: "0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6" - ) { - number - transactions { - hash - } - timestamp - difficulty - totalDifficulty - gasUsed - gasLimit - hash - nonce - ommerCount - logsBloom - mixHash - ommerHash - extraData - stateRoot - receiptsRoot - transactionCount - transactionsRoot - } -} diff --git a/tests/graphql/eth_getBlock_wrongParams/response.json b/tests/graphql/eth_getBlock_wrongParams/response.json deleted file mode 100644 index 7974b8d3..00000000 --- a/tests/graphql/eth_getBlock_wrongParams/response.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "responses": [ - { - "errors": [ - { - "message": "Exception while fetching data (/block) : Invalid params", - "locations": [ - { - "line": 1, - "column": 2 - } - ], - "path": ["block"], - "extensions": { - "errorCode": -32602, - "errorMessage": "Invalid params", - "classification": "DataFetchingException" - } - } - ], - "data": null - } - ], - "statusCode": 400 -} diff --git a/tests/graphql/eth_getCode/request.gql b/tests/graphql/eth_getCode/request.gql deleted file mode 100644 index 2960fc49..00000000 --- a/tests/graphql/eth_getCode/request.gql +++ /dev/null @@ -1,7 +0,0 @@ -{ - block { - account(address: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f") { - code - } - } -} diff --git a/tests/graphql/eth_getCode/response.json b/tests/graphql/eth_getCode/response.json deleted file mode 100644 index 4d19db2e..00000000 --- a/tests/graphql/eth_getCode/response.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "responses": [ - { - "data": { - "block": { - "account": { - "code": "0x6000357c010000000000000000000000000000000000000000000000000000000090048063102accc11461012c57806312a7b9141461013a5780631774e6461461014c5780631e26fd331461015d5780631f9030371461016e578063343a875d1461018057806338cc4831146101955780634e7ad367146101bd57806357cb2fc4146101cb57806365538c73146101e057806368895979146101ee57806376bc21d9146102005780639a19a9531461020e5780639dc2c8f51461021f578063a53b1c1e1461022d578063a67808571461023e578063b61c05031461024c578063c2b12a731461025a578063d2282dc51461026b578063e30081a01461027c578063e8beef5b1461028d578063f38b06001461029b578063f5b53e17146102a9578063fd408767146102bb57005b6101346104d6565b60006000f35b61014261039b565b8060005260206000f35b610157600435610326565b60006000f35b6101686004356102c9565b60006000f35b610176610442565b8060005260206000f35b6101886103d3565b8060ff1660005260206000f35b61019d610413565b8073ffffffffffffffffffffffffffffffffffffffff1660005260206000f35b6101c56104c5565b60006000f35b6101d36103b7565b8060000b60005260206000f35b6101e8610454565b60006000f35b6101f6610401565b8060005260206000f35b61020861051f565b60006000f35b6102196004356102e5565b60006000f35b610227610693565b60006000f35b610238600435610342565b60006000f35b610246610484565b60006000f35b610254610493565b60006000f35b61026560043561038d565b60006000f35b610276600435610350565b60006000f35b61028760043561035e565b60006000f35b6102956105b4565b60006000f35b6102a3610547565b60006000f35b6102b16103ef565b8060005260206000f35b6102c3610600565b60006000f35b80600060006101000a81548160ff021916908302179055505b50565b80600060016101000a81548160ff02191690837f01000000000000000000000000000000000000000000000000000000000000009081020402179055505b50565b80600060026101000a81548160ff021916908302179055505b50565b806001600050819055505b50565b806002600050819055505b50565b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908302179055505b50565b806004600050819055505b50565b6000600060009054906101000a900460ff1690506103b4565b90565b6000600060019054906101000a900460000b90506103d0565b90565b6000600060029054906101000a900460ff1690506103ec565b90565b600060016000505490506103fe565b90565b60006002600050549050610410565b90565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905061043f565b90565b60006004600050549050610451565b90565b7f65c9ac8011e286e89d02a269890f41d67ca2cc597b2c76c7c69321ff492be5806000602a81526020016000a15b565b6000602a81526020016000a05b565b60017f81933b308056e7e85668661dcd102b1f22795b4431f9cf4625794f381c271c6b6000602a81526020016000a25b565b60016000602a81526020016000a15b565b3373ffffffffffffffffffffffffffffffffffffffff1660017f0e216b62efbb97e751a2ce09f607048751720397ecfb9eef1e48a6644948985b6000602a81526020016000a35b565b3373ffffffffffffffffffffffffffffffffffffffff1660016000602a81526020016000a25b565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6001023373ffffffffffffffffffffffffffffffffffffffff1660017f317b31292193c2a4f561cc40a95ea0d97a2733f14af6d6d59522473e1f3ae65f6000602a81526020016000a45b565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6001023373ffffffffffffffffffffffffffffffffffffffff1660016000602a81526020016000a35b565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6001023373ffffffffffffffffffffffffffffffffffffffff1660017fd5f0a30e4be0c6be577a71eceb7464245a796a7e6a55c0d971837b250de05f4e60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe98152602001602a81526020016000a45b565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6001023373ffffffffffffffffffffffffffffffffffffffff16600160007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe98152602001602a81526020016000a35b56" - } - } - } - } - ], - "statusCode": 200 -} diff --git a/tests/graphql/eth_getCode_noCode/request.gql b/tests/graphql/eth_getCode_noCode/request.gql deleted file mode 100644 index debf49b8..00000000 --- a/tests/graphql/eth_getCode_noCode/request.gql +++ /dev/null @@ -1,7 +0,0 @@ -{ - block { - account(address: "0x8888f1f195afa192cfee860698584c030f4c9db1") { - code - } - } -} diff --git a/tests/graphql/eth_getCode_noCode/response.json b/tests/graphql/eth_getCode_noCode/response.json deleted file mode 100644 index 726376ab..00000000 --- a/tests/graphql/eth_getCode_noCode/response.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "responses": [ - { - "data": { - "block": { - "account": { - "code": "0x" - } - } - } - } - ], - "statusCode": 200 -} diff --git a/tests/graphql/eth_getLogs_matchTopic/request.gql b/tests/graphql/eth_getLogs_matchTopic/request.gql deleted file mode 100644 index d7853716..00000000 --- a/tests/graphql/eth_getLogs_matchTopic/request.gql +++ /dev/null @@ -1,24 +0,0 @@ -{ - block(number: 23) { - logs( - filter: { - topics: [ - [ - "0x000000000000000000000000a94f5374fce5edbc8e2a8697c15331677e6ebf0b" - "0x65c9ac8011e286e89d02a269890f41d67ca2cc597b2c76c7c69321ff492be580" - ] - ] - } - ) { - index - topics - data - account { - address - } - transaction { - hash - } - } - } -} diff --git a/tests/graphql/eth_getLogs_matchTopic/response.json b/tests/graphql/eth_getLogs_matchTopic/response.json deleted file mode 100644 index 07c98efb..00000000 --- a/tests/graphql/eth_getLogs_matchTopic/response.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "responses": [ - { - "data": { - "block": { - "logs": [ - { - "index": "0x0", - "topics": [ - "0x65c9ac8011e286e89d02a269890f41d67ca2cc597b2c76c7c69321ff492be580" - ], - "data": "0x000000000000000000000000000000000000000000000000000000000000002a", - "account": { - "address": "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f" - }, - "transaction": { - "hash": "0x97a385bf570ced7821c6495b3877ddd2afd5c452f350f0d4876e98d9161389c6" - } - } - ] - } - } - } - ], - "statusCode": 200 -} diff --git a/tests/graphql/eth_getLogs_range/request.gql b/tests/graphql/eth_getLogs_range/request.gql deleted file mode 100644 index f501bc7c..00000000 --- a/tests/graphql/eth_getLogs_range/request.gql +++ /dev/null @@ -1,16 +0,0 @@ -{ - logs(filter: { fromBlock: 20, toBlock: 24, topics: [], addresses: [] }) { - index - topics - data - account { - address - } - transaction { - hash - block { - number - } - } - } -} diff --git a/tests/graphql/eth_getLogs_range/response.json b/tests/graphql/eth_getLogs_range/response.json deleted file mode 100644 index 895c3a83..00000000 --- a/tests/graphql/eth_getLogs_range/response.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "responses": [ - { - "data": { - "logs": [ - { - "index": "0x0", - "topics": [ - "0x65c9ac8011e286e89d02a269890f41d67ca2cc597b2c76c7c69321ff492be580" - ], - "data": "0x000000000000000000000000000000000000000000000000000000000000002a", - "account": { - "address": "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f" - }, - "transaction": { - "hash": "0x97a385bf570ced7821c6495b3877ddd2afd5c452f350f0d4876e98d9161389c6", - "block": { - "number": "0x17" - } - } - }, - { - "index": "0x0", - "topics": [], - "data": "0x000000000000000000000000000000000000000000000000000000000000002a", - "account": { - "address": "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f" - }, - "transaction": { - "hash": "0x5ecd942096ab3f70c5bcc8f3a98f88c4ff0a3bd986417df9948eb1819db76d0e", - "block": { - "number": "0x18" - } - } - } - ] - } - } - ], - "statusCode": 200 -} diff --git a/tests/graphql/eth_getLogs_range_hex/request.gql b/tests/graphql/eth_getLogs_range_hex/request.gql deleted file mode 100644 index 171752fd..00000000 --- a/tests/graphql/eth_getLogs_range_hex/request.gql +++ /dev/null @@ -1,10 +0,0 @@ -{ - logs( - filter: { fromBlock: "0x14", toBlock: "0x18", topics: [], addresses: [] } - ) { - index - transaction { - hash - } - } -} diff --git a/tests/graphql/eth_getLogs_range_hex/response.json b/tests/graphql/eth_getLogs_range_hex/response.json deleted file mode 100644 index ef0495ae..00000000 --- a/tests/graphql/eth_getLogs_range_hex/response.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "responses": [ - { - "data": { - "logs": [ - { - "index": "0x0", - "transaction": { - "hash": "0x97a385bf570ced7821c6495b3877ddd2afd5c452f350f0d4876e98d9161389c6" - } - }, - { - "index": "0x0", - "transaction": { - "hash": "0x5ecd942096ab3f70c5bcc8f3a98f88c4ff0a3bd986417df9948eb1819db76d0e" - } - } - ] - } - } - ], - "statusCode": 200 -} diff --git a/tests/graphql/eth_getStorageAt/request.gql b/tests/graphql/eth_getStorageAt/request.gql deleted file mode 100644 index 49dc3261..00000000 --- a/tests/graphql/eth_getStorageAt/request.gql +++ /dev/null @@ -1,9 +0,0 @@ -{ - block { - account(address: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f") { - storage( - slot: "0x0000000000000000000000000000000000000000000000000000000000000004" - ) - } - } -} diff --git a/tests/graphql/eth_getStorageAt/response.json b/tests/graphql/eth_getStorageAt/response.json deleted file mode 100644 index f2da110a..00000000 --- a/tests/graphql/eth_getStorageAt/response.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "responses": [ - { - "data": { - "block": { - "account": { - "storage": "0xaabbccffffffffffffffffffffffffffffffffffffffffffffffffffffffffee" - } - } - } - } - ], - "statusCode": 200 -} diff --git a/tests/graphql/eth_getStorageAt_illegalRangeGreaterThan/request.gql b/tests/graphql/eth_getStorageAt_illegalRangeGreaterThan/request.gql deleted file mode 100644 index e4a19dc5..00000000 --- a/tests/graphql/eth_getStorageAt_illegalRangeGreaterThan/request.gql +++ /dev/null @@ -1,9 +0,0 @@ -{ - block { - account(address: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f") { - storage( - slot: "0x0000000000000000000000000000000000000000000000000000000000000021" - ) - } - } -} diff --git a/tests/graphql/eth_getStorageAt_illegalRangeGreaterThan/response.json b/tests/graphql/eth_getStorageAt_illegalRangeGreaterThan/response.json deleted file mode 100644 index 05754213..00000000 --- a/tests/graphql/eth_getStorageAt_illegalRangeGreaterThan/response.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "responses": [ - { - "data": { - "block": { - "account": { - "storage": "0x0000000000000000000000000000000000000000000000000000000000000000" - } - } - } - } - ], - "statusCode": 200 -} diff --git a/tests/graphql/eth_getTransactionCount/request.gql b/tests/graphql/eth_getTransactionCount/request.gql deleted file mode 100644 index ed7a002d..00000000 --- a/tests/graphql/eth_getTransactionCount/request.gql +++ /dev/null @@ -1,7 +0,0 @@ -{ - block { - account(address: "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b") { - transactionCount - } - } -} diff --git a/tests/graphql/eth_getTransactionCount/response.json b/tests/graphql/eth_getTransactionCount/response.json deleted file mode 100644 index a3f97ed1..00000000 --- a/tests/graphql/eth_getTransactionCount/response.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "responses": [ - { - "data": { - "block": { - "account": { - "transactionCount": "0x21" - } - } - } - } - ], - "statusCode": 200 -} diff --git a/tests/graphql/eth_getTransactionReceipt/request.gql b/tests/graphql/eth_getTransactionReceipt/request.gql deleted file mode 100644 index a4006a7e..00000000 --- a/tests/graphql/eth_getTransactionReceipt/request.gql +++ /dev/null @@ -1,27 +0,0 @@ -{ - transaction( - hash: "0x812742182a79a8e67733edc58cfa3767aa2d7ad06439d156ddbbb33e3403b4ed" - ) { - block { - hash - logsBloom - } - hash - createdContract { - address - } - cumulativeGasUsed - gas - gasUsed - logs { - topics - } - from { - address - } - to { - address - } - index - } -} diff --git a/tests/graphql/eth_getTransactionReceipt/response.json b/tests/graphql/eth_getTransactionReceipt/response.json deleted file mode 100644 index 5549b9c3..00000000 --- a/tests/graphql/eth_getTransactionReceipt/response.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "responses": { - "data": { - "transaction": { - "block": { - "hash": "0x10aaf14a53caf27552325374429d3558398a36d3682ede6603c2c6511896e9f9", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" - }, - "createdContract": { - "address": "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f" - }, - "cumulativeGasUsed": "0x78674", - "from": { - "address": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" - }, - "gas": "0x2fefd8", - "gasUsed": "0x78674", - "hash": "0x812742182a79a8e67733edc58cfa3767aa2d7ad06439d156ddbbb33e3403b4ed", - "index": 0, - "logs": [], - "to": null - } - } - }, - "statusCode": 200 -} diff --git a/tests/graphql/eth_getTransaction_byBlockHashAndIndex/request.gql b/tests/graphql/eth_getTransaction_byBlockHashAndIndex/request.gql deleted file mode 100644 index 06d570b2..00000000 --- a/tests/graphql/eth_getTransaction_byBlockHashAndIndex/request.gql +++ /dev/null @@ -1,12 +0,0 @@ -{ - block( - hash: "0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6" - ) { - transactionAt(index: 0) { - block { - hash - } - hash - } - } -} diff --git a/tests/graphql/eth_getTransaction_byBlockHashAndIndex/response.json b/tests/graphql/eth_getTransaction_byBlockHashAndIndex/response.json deleted file mode 100644 index 77294ede..00000000 --- a/tests/graphql/eth_getTransaction_byBlockHashAndIndex/response.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "responses": [ - { - "data": { - "block": { - "transactionAt": { - "block": { - "hash": "0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6" - }, - "hash": "0x9cc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4" - } - } - } - } - ], - "statusCode": 200 -} diff --git a/tests/graphql/eth_getTransaction_byBlockNumberAndIndex/request.gql b/tests/graphql/eth_getTransaction_byBlockNumberAndIndex/request.gql deleted file mode 100644 index a93eac86..00000000 --- a/tests/graphql/eth_getTransaction_byBlockNumberAndIndex/request.gql +++ /dev/null @@ -1,10 +0,0 @@ -{ - block(number: 30) { - transactionAt(index: 0) { - block { - hash - } - hash - } - } -} diff --git a/tests/graphql/eth_getTransaction_byBlockNumberAndIndex/response.json b/tests/graphql/eth_getTransaction_byBlockNumberAndIndex/response.json deleted file mode 100644 index 77294ede..00000000 --- a/tests/graphql/eth_getTransaction_byBlockNumberAndIndex/response.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "responses": [ - { - "data": { - "block": { - "transactionAt": { - "block": { - "hash": "0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6" - }, - "hash": "0x9cc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4" - } - } - } - } - ], - "statusCode": 200 -} diff --git a/tests/graphql/eth_getTransaction_byBlockNumberAndInvalidIndex/request.gql b/tests/graphql/eth_getTransaction_byBlockNumberAndInvalidIndex/request.gql deleted file mode 100644 index ff5803d0..00000000 --- a/tests/graphql/eth_getTransaction_byBlockNumberAndInvalidIndex/request.gql +++ /dev/null @@ -1,10 +0,0 @@ -{ - block(number: 30) { - transactionAt(index: 1) { - block { - hash - } - hash - } - } -} diff --git a/tests/graphql/eth_getTransaction_byBlockNumberAndInvalidIndex/response.json b/tests/graphql/eth_getTransaction_byBlockNumberAndInvalidIndex/response.json deleted file mode 100644 index 20399b7a..00000000 --- a/tests/graphql/eth_getTransaction_byBlockNumberAndInvalidIndex/response.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "responses": [ - { - "data": { - "block": { - "transactionAt": null - } - } - } - ], - "statusCode": 200 -} diff --git a/tests/graphql/eth_getTransaction_byHash/request.gql b/tests/graphql/eth_getTransaction_byHash/request.gql deleted file mode 100644 index 29ca50e7..00000000 --- a/tests/graphql/eth_getTransaction_byHash/request.gql +++ /dev/null @@ -1,29 +0,0 @@ -{ - transaction( - hash: "0x9cc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4" - ) { - block { - hash - } - gas - gasPrice - hash - inputData - nonce - index - value - from { - address - } - to { - address - } - logs { - index - } - status - createdContract { - address - } - } -} diff --git a/tests/graphql/eth_getTransaction_byHash/response.json b/tests/graphql/eth_getTransaction_byHash/response.json deleted file mode 100644 index 04fc34db..00000000 --- a/tests/graphql/eth_getTransaction_byHash/response.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "responses": { - "data": { - "transaction": { - "block": { - "hash": "0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6" - }, - "createdContract": null, - "from": { - "address": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" - }, - "gas": "0x4cb2f", - "gasPrice": "0x1", - "hash": "0x9cc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4", - "index": 0, - "inputData": "0xe8beef5b", - "logs": [ - { - "index": 0 - } - ], - "nonce": "0x1d", - "status": "0x0", - "to": { - "address": "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f" - }, - "value": "0xa" - } - } - }, - "statusCode": 200 -} diff --git a/tests/graphql/eth_getTransaction_byHashNull/request.gql b/tests/graphql/eth_getTransaction_byHashNull/request.gql deleted file mode 100644 index 5a8e9f9c..00000000 --- a/tests/graphql/eth_getTransaction_byHashNull/request.gql +++ /dev/null @@ -1,16 +0,0 @@ -{ - transaction( - hash: "0xffc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4" - ) { - block { - hash - } - gas - gasPrice - hash - inputData - nonce - index - value - } -} diff --git a/tests/graphql/eth_getTransaction_byHashNull/response.json b/tests/graphql/eth_getTransaction_byHashNull/response.json deleted file mode 100644 index 9b5c5015..00000000 --- a/tests/graphql/eth_getTransaction_byHashNull/response.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "responses": [ - { - "data": { - "transaction": null - } - } - ], - "statusCode": 200 -} diff --git a/tests/graphql/eth_sendRawTransaction_contractCreation/request.gql b/tests/graphql/eth_sendRawTransaction_contractCreation/request.gql deleted file mode 100644 index bec03047..00000000 --- a/tests/graphql/eth_sendRawTransaction_contractCreation/request.gql +++ /dev/null @@ -1,5 +0,0 @@ -mutation { - sendRawTransaction( - data: "0xf901ca3285174876e800830fffff8080b90177608060405234801561001057600080fd5b50610157806100206000396000f30060806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680633bdab8bf146100515780639ae97baa14610068575b600080fd5b34801561005d57600080fd5b5061006661007f565b005b34801561007457600080fd5b5061007d6100b9565b005b7fa53887c1eed04528e23301f55ad49a91634ef5021aa83a97d07fd16ed71c039a60016040518082815260200191505060405180910390a1565b7fa53887c1eed04528e23301f55ad49a91634ef5021aa83a97d07fd16ed71c039a60026040518082815260200191505060405180910390a17fa53887c1eed04528e23301f55ad49a91634ef5021aa83a97d07fd16ed71c039a60036040518082815260200191505060405180910390a15600a165627a7a7230582010ddaa52e73a98c06dbcd22b234b97206c1d7ed64a7c048e10c2043a3d2309cb00291ca05d71c687073e23402e59853d85c587f6eebc735082f40a450e407451b42ee2a4a07d4f2db1717dc9be745b991962193fa0d5f6059b9c92350dba3efe3a99df6b52" - ) -} diff --git a/tests/graphql/eth_sendRawTransaction_contractCreation/response.json b/tests/graphql/eth_sendRawTransaction_contractCreation/response.json deleted file mode 100644 index 39caa6c3..00000000 --- a/tests/graphql/eth_sendRawTransaction_contractCreation/response.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "responses": [ - { - "data": { - "sendRawTransaction": "0xf9a25e1d6202e9ea1d984f76939e9bb3609bfb9aea2541ae8a629270343fbb2f" - } - } - ], - "statusCode": 200 -} diff --git a/tests/graphql/eth_sendRawTransaction_messageCall/request.gql b/tests/graphql/eth_sendRawTransaction_messageCall/request.gql deleted file mode 100644 index 379dd38c..00000000 --- a/tests/graphql/eth_sendRawTransaction_messageCall/request.gql +++ /dev/null @@ -1,5 +0,0 @@ -mutation { - sendRawTransaction( - data: "0xf8693785174876e800830fffff94450b61224a7df4d8a70f3e20d4fd6a6380b920d180843bdab8bf1ba054b00220864ab58246bbe0a6f6d50166f9bd0ba3f1711912f79c073da6368ca5a04f84bc3231ee4406b8ceb8740d6d8d1900f87b67b9f4a0a38bc55062121a94c6" - ) -} diff --git a/tests/graphql/eth_sendRawTransaction_messageCall/response.json b/tests/graphql/eth_sendRawTransaction_messageCall/response.json deleted file mode 100644 index 54ab2d87..00000000 --- a/tests/graphql/eth_sendRawTransaction_messageCall/response.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "responses": [ - { - "data": { - "sendRawTransaction": "0x6ad12f495251471d1834852623c2eeb2cb04d2fb9e1a5d6cff481cfec7b233a8" - } - } - ], - "statusCode": 200 -} diff --git a/tests/graphql/eth_sendRawTransaction_nonceTooLow/request.gql b/tests/graphql/eth_sendRawTransaction_nonceTooLow/request.gql deleted file mode 100644 index a2f3bdde..00000000 --- a/tests/graphql/eth_sendRawTransaction_nonceTooLow/request.gql +++ /dev/null @@ -1,5 +0,0 @@ -mutation { - sendRawTransaction( - data: "0xf86410018304cb2f946295ee1b4f6dd65047762f924ecd367c17eabf8f0a8457cb2fc41ca0060dc80554e845b572ab6b88dab08f7491f83b4405fea2f067a80b3742127fb0a0246160f01d027a0335be590d443335ecb2cf5d9f9589c8efffa4acbda4acafea" - ) -} diff --git a/tests/graphql/eth_sendRawTransaction_nonceTooLow/response.json b/tests/graphql/eth_sendRawTransaction_nonceTooLow/response.json deleted file mode 100644 index 43de7cd3..00000000 --- a/tests/graphql/eth_sendRawTransaction_nonceTooLow/response.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "responses": [ - { - "errors": [ - { - "message": "Exception while fetching data (/sendRawTransaction) : Nonce too low", - "locations": [ - { - "line": 1, - "column": 12 - } - ], - "path": ["sendRawTransaction"], - "extensions": { - "errorCode": -32001, - "errorMessage": "Nonce too low", - "classification": "DataFetchingException" - } - } - ], - "data": null - } - ], - "statusCode": 400 -} diff --git a/tests/graphql/eth_sendRawTransaction_transferEther/request.gql b/tests/graphql/eth_sendRawTransaction_transferEther/request.gql deleted file mode 100644 index 59f3203b..00000000 --- a/tests/graphql/eth_sendRawTransaction_transferEther/request.gql +++ /dev/null @@ -1,5 +0,0 @@ -mutation { - sendRawTransaction( - data: "0xf86d3785174876e801830222e0945aae326516b4f8fe08074b7e972e40a713048d628829a2241af62c0000801ca077d36666ce36d433b6f1ac62eafe7a232354c83ad2293cfcc2445a86bcd08b4da04b8bd0918d440507ab81d47cf562addaa15a1d28ac701989f5141c8da49615d0" - ) -} diff --git a/tests/graphql/eth_sendRawTransaction_transferEther/response.json b/tests/graphql/eth_sendRawTransaction_transferEther/response.json deleted file mode 100644 index 214fcd96..00000000 --- a/tests/graphql/eth_sendRawTransaction_transferEther/response.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "responses": [ - { - "data": { - "sendRawTransaction": "0x772b6d5c64b9798865d6dfa35ba44d181abd96a448f8ab7ea9e9631cabb7b290" - } - } - ], - "statusCode": 200 -} diff --git a/tests/graphql/eth_sendRawTransaction_unsignedTransaction/request.gql b/tests/graphql/eth_sendRawTransaction_unsignedTransaction/request.gql deleted file mode 100644 index f3377063..00000000 --- a/tests/graphql/eth_sendRawTransaction_unsignedTransaction/request.gql +++ /dev/null @@ -1,5 +0,0 @@ -mutation { - sendRawTransaction( - data: "0xed0a85174876e800830222e0945aae326516b4f8fe08074b7e972e40a713048d62880de0b6b3a7640000801c8080" - ) -} diff --git a/tests/graphql/eth_sendRawTransaction_unsignedTransaction/response.json b/tests/graphql/eth_sendRawTransaction_unsignedTransaction/response.json deleted file mode 100644 index 5ae27c4c..00000000 --- a/tests/graphql/eth_sendRawTransaction_unsignedTransaction/response.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "responses": [ - { - "errors": [ - { - "message": "Exception while fetching data (/sendRawTransaction) : Invalid params", - "locations": [ - { - "line": 1, - "column": 12 - } - ], - "path": ["sendRawTransaction"], - "extensions": { - "errorCode": -32602, - "errorMessage": "Invalid params", - "classification": "DataFetchingException" - } - } - ], - "data": null - } - ], - "statusCode": 400 -} diff --git a/tests/graphql/eth_syncing/request.gql b/tests/graphql/eth_syncing/request.gql deleted file mode 100644 index 0ebdca5e..00000000 --- a/tests/graphql/eth_syncing/request.gql +++ /dev/null @@ -1,7 +0,0 @@ -{ - syncing { - startingBlock - currentBlock - highestBlock - } -} diff --git a/tests/graphql/eth_syncing/response.json b/tests/graphql/eth_syncing/response.json deleted file mode 100644 index 55df39cf..00000000 --- a/tests/graphql/eth_syncing/response.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "responses": [ - { - "data": { - "syncing": null - } - } - ], - "statusCode": 200 -} diff --git a/tests/graphql/getBlock_byHexNumber/request.gql b/tests/graphql/getBlock_byHexNumber/request.gql deleted file mode 100644 index 4c29de26..00000000 --- a/tests/graphql/getBlock_byHexNumber/request.gql +++ /dev/null @@ -1,7 +0,0 @@ -{ - block(number: "0x1e") { - gasUsed - gasLimit - hash - } -} diff --git a/tests/graphql/getBlock_byHexNumber/response.json b/tests/graphql/getBlock_byHexNumber/response.json deleted file mode 100644 index 21343cf3..00000000 --- a/tests/graphql/getBlock_byHexNumber/response.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "responses": [ - { - "data": { - "block": { - "gasUsed": "0x5c21", - "gasLimit": "0x2fefd8", - "hash": "0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6" - } - } - } - ], - "statusCode": 200 -} diff --git a/tests/graphql/get_type2Transaction/request.gql b/tests/graphql/get_type2Transaction/request.gql deleted file mode 100644 index 4d57f10d..00000000 --- a/tests/graphql/get_type2Transaction/request.gql +++ /dev/null @@ -1,15 +0,0 @@ -{ - transaction( - hash: "0x3ecd2ca6cf26c864d0ea5f038a58d4cd4a46a3e242fe92f446f392fdc232dd98" - ) { - accessList { - address - storageKeys - } - maxFeePerGas - maxPriorityFeePerGas - nonce - type - status - } -} diff --git a/tests/graphql/get_type2Transaction/response.json b/tests/graphql/get_type2Transaction/response.json deleted file mode 100644 index 4ee3d16f..00000000 --- a/tests/graphql/get_type2Transaction/response.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "responses": [ - { - "data": { - "transaction": { - "accessList": [ - { - "address": "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f", - "storageKeys": [ - "0x0000000000000000000000000000000000000000000000000000000000000000" - ] - } - ], - "maxFeePerGas": "0xb2d05e00", - "maxPriorityFeePerGas": "0x3b9aca00", - "nonce": "0x20", - "type": "0x2", - "status": "0x1" - } - } - } - ], - "statusCode": 200 -} diff --git a/tests/graphql/graphql_blocks_byFrom/request.gql b/tests/graphql/graphql_blocks_byFrom/request.gql deleted file mode 100644 index 28ed65c5..00000000 --- a/tests/graphql/graphql_blocks_byFrom/request.gql +++ /dev/null @@ -1,5 +0,0 @@ -{ - blocks(from: 30) { - number - } -} diff --git a/tests/graphql/graphql_blocks_byFrom/response.json b/tests/graphql/graphql_blocks_byFrom/response.json deleted file mode 100644 index 36e4c785..00000000 --- a/tests/graphql/graphql_blocks_byFrom/response.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "responses": [ - { - "data": { - "blocks": [ - { - "number": "0x1e" - }, - { - "number": "0x1f" - }, - { - "number": "0x20" - }, - { - "number": "0x21" - } - ] - } - } - ], - "statusCode": 200 -} diff --git a/tests/graphql/graphql_blocks_byRange/request.gql b/tests/graphql/graphql_blocks_byRange/request.gql deleted file mode 100644 index 4b0d96ba..00000000 --- a/tests/graphql/graphql_blocks_byRange/request.gql +++ /dev/null @@ -1,12 +0,0 @@ -{ - blocks(from: 30, to: 32) { - number - gasUsed - gasLimit - hash - nonce - stateRoot - receiptsRoot - transactionCount - } -} diff --git a/tests/graphql/graphql_blocks_byRange/response.json b/tests/graphql/graphql_blocks_byRange/response.json deleted file mode 100644 index b73404da..00000000 --- a/tests/graphql/graphql_blocks_byRange/response.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "responses": [ - { - "data": { - "blocks": [ - { - "number": "0x1e", - "gasUsed": "0x5c21", - "gasLimit": "0x2fefd8", - "hash": "0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6", - "nonce": "0x5c321bd9e9f040f1", - "stateRoot": "0xdb46d6bb168130fe2cb60b4b24346137b5741f11283e0d7edace65c5f5466b2e", - "receiptsRoot": "0x88b3b304b058b39791c26fdb94a05cc16ce67cf8f84f7348cb3c60c0ff342d0d", - "transactionCount": "0x1" - }, - { - "number": "0x1f", - "gasUsed": "0x5eef", - "gasLimit": "0x2fefd8", - "hash": "0x0f765087745aa259d9e5ac39c367c57432a16ed98e3b0d81c5b51d10f301dc49", - "nonce": "0xd3a27a3001616468", - "stateRoot": "0xa80997cf804269d64f2479baf535cf8f9090b70fbf515741c6995564f1e678bd", - "receiptsRoot": "0x2440c44a3f75ad8b0425a73e7be2f61a5171112465cfd14e62e735b56d7178e6", - "transactionCount": "0x1" - }, - { - "number": "0x20", - "gasUsed": "0x5c99", - "gasLimit": "0x2fefd8", - "hash": "0x71d59849ddd98543bdfbe8548f5eed559b07b8aaf196369f39134500eab68e53", - "nonce": "0xdb063000b00e8026", - "stateRoot": "0xf65f3dd13f72f5fa5607a5224691419969b4f4bae7a00a6cdb853f2ca9eeb1be", - "receiptsRoot": "0xa50a7e67e833f4502524371ee462ccbcc6c6cabd2aeb1555c56150007a53183c", - "transactionCount": "0x1" - } - ] - } - } - ], - "statusCode": 200 -} diff --git a/tests/graphql/graphql_blocks_byWrongRange/request.gql b/tests/graphql/graphql_blocks_byWrongRange/request.gql deleted file mode 100644 index 1aa7d47d..00000000 --- a/tests/graphql/graphql_blocks_byWrongRange/request.gql +++ /dev/null @@ -1,12 +0,0 @@ -{ - blocks(from: "0x1e", to: "0x1c") { - number - gasUsed - gasLimit - hash - nonce - stateRoot - receiptsRoot - transactionCount - } -} diff --git a/tests/graphql/graphql_blocks_byWrongRange/response.json b/tests/graphql/graphql_blocks_byWrongRange/response.json deleted file mode 100644 index c618ff6f..00000000 --- a/tests/graphql/graphql_blocks_byWrongRange/response.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "responses": [ - { - "errors": [ - { - "message": "Exception while fetching data (/blocks) : Invalid params", - "locations": [ - { - "line": 1, - "column": 2 - } - ], - "path": ["blocks"], - "extensions": { - "errorCode": -32602, - "errorMessage": "Invalid params", - "classification": "DataFetchingException" - } - } - ], - "data": null - } - ], - "statusCode": 400 -} diff --git a/tests/graphql/graphql_pending/request.gql b/tests/graphql/graphql_pending/request.gql deleted file mode 100644 index 1055018d..00000000 --- a/tests/graphql/graphql_pending/request.gql +++ /dev/null @@ -1,23 +0,0 @@ -{ - pending { - transactionCount - transactions { - nonce - gas - } - account(address: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f") { - balance - } - estimateGas(data: {}) - call( - data: { - from: "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" - to: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f" - data: "0x12a7b914" - } - ) { - data - status - } - } -} diff --git a/tests/graphql/graphql_pending/response.json b/tests/graphql/graphql_pending/response.json deleted file mode 100644 index 19462683..00000000 --- a/tests/graphql/graphql_pending/response.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "responses": [ - { - "data": { - "pending": { - "transactionCount": "0x1", - "transactions": [ - { - "nonce": "0x32", - "gas": "0xfffff" - } - ], - "account": { - "balance": "0x140" - }, - "estimateGas": "0x5208", - "call": { - "data": "0x0000000000000000000000000000000000000000000000000000000000000001", - "status": "0x1" - } - } - } - } - ], - "statusCode": 200 -} diff --git a/tests/graphql/pending/graphql_pending.io b/tests/graphql/pending/graphql_pending.io new file mode 100644 index 00000000..ece12404 --- /dev/null +++ b/tests/graphql/pending/graphql_pending.io @@ -0,0 +1,2 @@ +>> {pending {transactionCount transactions {nonce gas} account(address: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f") {balance} estimateGas(data: {}) call(data: {from: "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" to: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f" data: "0x12a7b914"}) {data status}}} +<< {"data":{"pending":{"transactionCount":"0x1","transactions":[{"nonce":"0x32","gas":"0xfffff"}],"account":{"balance":"0x140"},"estimateGas":"0x5208","call":{"data":"0x0000000000000000000000000000000000000000000000000000000000000001","status":"0x1"}}}} diff --git a/tests/graphql/sendRawTransaction/eth_sendRawTransaction_contractCreation.io b/tests/graphql/sendRawTransaction/eth_sendRawTransaction_contractCreation.io new file mode 100644 index 00000000..78b2e832 --- /dev/null +++ b/tests/graphql/sendRawTransaction/eth_sendRawTransaction_contractCreation.io @@ -0,0 +1,2 @@ +>> mutation {sendRawTransaction(data: "0xf901ca3285174876e800830fffff8080b90177608060405234801561001057600080fd5b50610157806100206000396000f30060806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680633bdab8bf146100515780639ae97baa14610068575b600080fd5b34801561005d57600080fd5b5061006661007f565b005b34801561007457600080fd5b5061007d6100b9565b005b7fa53887c1eed04528e23301f55ad49a91634ef5021aa83a97d07fd16ed71c039a60016040518082815260200191505060405180910390a1565b7fa53887c1eed04528e23301f55ad49a91634ef5021aa83a97d07fd16ed71c039a60026040518082815260200191505060405180910390a17fa53887c1eed04528e23301f55ad49a91634ef5021aa83a97d07fd16ed71c039a60036040518082815260200191505060405180910390a15600a165627a7a7230582010ddaa52e73a98c06dbcd22b234b97206c1d7ed64a7c048e10c2043a3d2309cb00291ca05d71c687073e23402e59853d85c587f6eebc735082f40a450e407451b42ee2a4a07d4f2db1717dc9be745b991962193fa0d5f6059b9c92350dba3efe3a99df6b52")} +<< {"data":{"sendRawTransaction":"0xf9a25e1d6202e9ea1d984f76939e9bb3609bfb9aea2541ae8a629270343fbb2f"}} diff --git a/tests/graphql/sendRawTransaction/eth_sendRawTransaction_messageCall.io b/tests/graphql/sendRawTransaction/eth_sendRawTransaction_messageCall.io new file mode 100644 index 00000000..4b7d25e7 --- /dev/null +++ b/tests/graphql/sendRawTransaction/eth_sendRawTransaction_messageCall.io @@ -0,0 +1,2 @@ +>> mutation {sendRawTransaction(data: "0xf8693785174876e800830fffff94450b61224a7df4d8a70f3e20d4fd6a6380b920d180843bdab8bf1ba054b00220864ab58246bbe0a6f6d50166f9bd0ba3f1711912f79c073da6368ca5a04f84bc3231ee4406b8ceb8740d6d8d1900f87b67b9f4a0a38bc55062121a94c6")} +<< {"data":{"sendRawTransaction":"0x6ad12f495251471d1834852623c2eeb2cb04d2fb9e1a5d6cff481cfec7b233a8"}} diff --git a/tests/graphql/sendRawTransaction/eth_sendRawTransaction_nonceTooLow.io b/tests/graphql/sendRawTransaction/eth_sendRawTransaction_nonceTooLow.io new file mode 100644 index 00000000..0038fd22 --- /dev/null +++ b/tests/graphql/sendRawTransaction/eth_sendRawTransaction_nonceTooLow.io @@ -0,0 +1,2 @@ +>> mutation {sendRawTransaction(data: "0xf86410018304cb2f946295ee1b4f6dd65047762f924ecd367c17eabf8f0a8457cb2fc41ca0060dc80554e845b572ab6b88dab08f7491f83b4405fea2f067a80b3742127fb0a0246160f01d027a0335be590d443335ecb2cf5d9f9589c8efffa4acbda4acafea")} +<< {"errors":[{"message":"Exceptionwhilefetchingdata(/sendRawTransaction):Noncetoolow","locations":[{"line":1,"column":12}],"path":["sendRawTransaction"],"extensions":{"errorCode":-32001,"errorMessage":"Noncetoolow","classification":"DataFetchingException"}}],"data":null} diff --git a/tests/graphql/sendRawTransaction/eth_sendRawTransaction_transferEther.io b/tests/graphql/sendRawTransaction/eth_sendRawTransaction_transferEther.io new file mode 100644 index 00000000..fbf7b562 --- /dev/null +++ b/tests/graphql/sendRawTransaction/eth_sendRawTransaction_transferEther.io @@ -0,0 +1,2 @@ +>> mutation {sendRawTransaction(data: "0xf86d3785174876e801830222e0945aae326516b4f8fe08074b7e972e40a713048d628829a2241af62c0000801ca077d36666ce36d433b6f1ac62eafe7a232354c83ad2293cfcc2445a86bcd08b4da04b8bd0918d440507ab81d47cf562addaa15a1d28ac701989f5141c8da49615d0")} +<< {"data":{"sendRawTransaction":"0x772b6d5c64b9798865d6dfa35ba44d181abd96a448f8ab7ea9e9631cabb7b290"}} diff --git a/tests/graphql/sendRawTransaction/eth_sendRawTransaction_unsignedTransaction.io b/tests/graphql/sendRawTransaction/eth_sendRawTransaction_unsignedTransaction.io new file mode 100644 index 00000000..304ca918 --- /dev/null +++ b/tests/graphql/sendRawTransaction/eth_sendRawTransaction_unsignedTransaction.io @@ -0,0 +1,2 @@ +>> mutation {sendRawTransaction(data: "0xed0a85174876e800830222e0945aae326516b4f8fe08074b7e972e40a713048d62880de0b6b3a7640000801c8080")} +<< {"errors":[{"message":"Exceptionwhilefetchingdata(/sendRawTransaction):Invalidparams","locations":[{"line":1,"column":12}],"path":["sendRawTransaction"],"extensions":{"errorCode":-32602,"errorMessage":"Invalidparams","classification":"DataFetchingException"}}],"data":null} diff --git a/tests/graphql/syncing/eth_syncing.io b/tests/graphql/syncing/eth_syncing.io new file mode 100644 index 00000000..c3aff0fb --- /dev/null +++ b/tests/graphql/syncing/eth_syncing.io @@ -0,0 +1,2 @@ +>> {syncing {startingBlock currentBlock highestBlock}} +<< {"data":{"syncing":null}} diff --git a/tests/graphql/transaction/eth_getTransactionReceipt.io b/tests/graphql/transaction/eth_getTransactionReceipt.io new file mode 100644 index 00000000..fb427e02 --- /dev/null +++ b/tests/graphql/transaction/eth_getTransactionReceipt.io @@ -0,0 +1,2 @@ +>> {transaction(hash: "0x812742182a79a8e67733edc58cfa3767aa2d7ad06439d156ddbbb33e3403b4ed") {block {hash logsBloom} hash createdContract {address} cumulativeGasUsed gas gasUsed logs {topics} from {address} to {address} index}} +<< {"data":{"transaction":{"block":{"hash":"0x10aaf14a53caf27552325374429d3558398a36d3682ede6603c2c6511896e9f9","logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"},"createdContract":{"address":"0x6295ee1b4f6dd65047762f924ecd367c17eabf8f"},"cumulativeGasUsed":"0x78674","from":{"address":"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b"},"gas":"0x2fefd8","gasUsed":"0x78674","hash":"0x812742182a79a8e67733edc58cfa3767aa2d7ad06439d156ddbbb33e3403b4ed","index":0,"logs":[],"to":null}}} diff --git a/tests/graphql/transaction/eth_getTransaction_byHash.io b/tests/graphql/transaction/eth_getTransaction_byHash.io new file mode 100644 index 00000000..3bd37902 --- /dev/null +++ b/tests/graphql/transaction/eth_getTransaction_byHash.io @@ -0,0 +1,2 @@ +>> {transaction(hash: "0x9cc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4") {block {hash} gas gasPrice hash inputData nonce index value from {address} to {address} logs {index} status createdContract {address}}} +<< {"data":{"transaction":{"block":{"hash":"0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6"},"createdContract":null,"from":{"address":"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b"},"gas":"0x4cb2f","gasPrice":"0x1","hash":"0x9cc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4","index":0,"inputData":"0xe8beef5b","logs":[{"index":0}],"nonce":"0x1d","status":"0x0","to":{"address":"0x6295ee1b4f6dd65047762f924ecd367c17eabf8f"},"value":"0xa"}}} diff --git a/tests/graphql/transaction/eth_getTransaction_byHashNull.io b/tests/graphql/transaction/eth_getTransaction_byHashNull.io new file mode 100644 index 00000000..c7d712bc --- /dev/null +++ b/tests/graphql/transaction/eth_getTransaction_byHashNull.io @@ -0,0 +1,2 @@ +>> {transaction(hash: "0xffc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4") {block {hash} gas gasPrice hash inputData nonce index value}} +<< {"data":{"transaction":null}} diff --git a/tests/graphql/transaction/get_type2Transaction.io b/tests/graphql/transaction/get_type2Transaction.io new file mode 100644 index 00000000..b4e4b976 --- /dev/null +++ b/tests/graphql/transaction/get_type2Transaction.io @@ -0,0 +1,2 @@ +>> {transaction(hash: "0x3ecd2ca6cf26c864d0ea5f038a58d4cd4a46a3e242fe92f446f392fdc232dd98") {accessList {address storageKeys} maxFeePerGas maxPriorityFeePerGas nonce type status}} +<< {"data":{"transaction":{"accessList":[{"address":"0x6295ee1b4f6dd65047762f924ecd367c17eabf8f","storageKeys":["0x0000000000000000000000000000000000000000000000000000000000000000"]}],"maxFeePerGas":"0xb2d05e00","maxPriorityFeePerGas":"0x3b9aca00","nonce":"0x20","type":"0x2","status":"0x1"}}} diff --git a/tests/graphql/transaction/transaction_fromByHexBlockNumber.io b/tests/graphql/transaction/transaction_fromByHexBlockNumber.io new file mode 100644 index 00000000..e6a7cf0f --- /dev/null +++ b/tests/graphql/transaction/transaction_fromByHexBlockNumber.io @@ -0,0 +1,2 @@ +>> {transaction(hash: "0x9cc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4") {block {number} from(block: "0x1d") {transactionCount}}} +<< {"data":{"transaction":{"block":{"number":"0x1e"},"from":{"transactionCount":"0x1d"}}}} diff --git a/tests/graphql/transaction_fromByHexBlockNumber/request.gql b/tests/graphql/transaction_fromByHexBlockNumber/request.gql deleted file mode 100644 index 7f50dcef..00000000 --- a/tests/graphql/transaction_fromByHexBlockNumber/request.gql +++ /dev/null @@ -1,12 +0,0 @@ -{ - transaction( - hash: "0x9cc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4" - ) { - block { - number - } - from(block: "0x1d") { - transactionCount - } - } -} diff --git a/tests/graphql/transaction_fromByHexBlockNumber/response.json b/tests/graphql/transaction_fromByHexBlockNumber/response.json deleted file mode 100644 index 5149c37c..00000000 --- a/tests/graphql/transaction_fromByHexBlockNumber/response.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "responses": [ - { - "data": { - "transaction": { - "block": { - "number": "0x1e" - }, - "from": { - "transactionCount": "0x1d" - } - } - } - } - ], - "statusCode": 200 -} From 4a7b9a18ab861d7993ef5add937ff958e5e078ee Mon Sep 17 00:00:00 2001 From: jsvisa Date: Thu, 19 Oct 2023 10:51:53 +0800 Subject: [PATCH 23/29] scripts: validate graphql Signed-off-by: jsvisa --- scripts/graphql-validate.js | 67 +++++++++++++++++++++---------------- 1 file changed, 38 insertions(+), 29 deletions(-) diff --git a/scripts/graphql-validate.js b/scripts/graphql-validate.js index b0da8d71..fb954059 100644 --- a/scripts/graphql-validate.js +++ b/scripts/graphql-validate.js @@ -1,4 +1,5 @@ import fs from 'fs'; +import path from 'path'; import graphql from 'graphql'; import { diff } from '@graphql-inspector/core'; @@ -35,36 +36,44 @@ diff(schema, schemaStd, [ignoreDirectiveChanges]) }) .catch(console.error); -fs.readdir('tests/graphql', (_, files) => { - files.forEach((file) => { - if (!fs.lstatSync(`tests/graphql/${file}`).isDirectory()) { - return; - } +function validateGraphql(dir) { + fs.readdir(dir, (_, files) => { + files.forEach((file) => { + const filePath = path.join(dir, file); - const query = graphql.parse( - fs.readFileSync(`tests/graphql/${file}/request.gql`, 'utf8') - ); - const output = JSON.parse( - fs.readFileSync(`tests/graphql/${file}/response.json`, 'utf8') - ); - if (!('statusCode' in output) || !('responses' in output)) { - throw new Error( - `GraphQL response ${file} without 'statusCode' or 'responses' keys` - ); - } - if (output['statusCode'] === 200) { - const result = graphql.validate(schema, query); - if (result.length === 0) { - console.log(`GraphQL request ${file} validated successfully.`); + console.log(`Validating file: ${filePath}`); + if (fs.statSync(filePath).isFile()) { + const lines = fs.readFileSync(filePath, 'utf8').split('\n'); + + let prev = null; + lines.forEach((line) => { + if (prev && prev.startsWith('>> ') && line.startsWith('<< ')) { + const output = JSON.parse(line.substring(3)); + + // Validate the success Query + if (!'errors' in output) { + const query = graphql.parse(line.substring(3)); + const result = graphql.validate(schema, query); + if (result.length === 0) { + console.log(`GraphQL test ${file} validated successfully.`); + } else { + throw new Error( + `GraphQL query ${file} failed validation:\n${JSON.stringify( + result, + null, + 2 + )}` + ); + } + } + } + + prev = line; + }); } else { - throw new Error( - `GraphQL query ${file} failed validation:\n${JSON.stringify( - result, - null, - 2 - )}` - ); + validateGraphql(filePath); } - } + }); }); -}); +} +validateGraphql('tests/graphql'); From 38fdebd04f550eb5e05071af848775b4098fd62b Mon Sep 17 00:00:00 2001 From: jsvisa Date: Thu, 19 Oct 2023 15:30:34 +0800 Subject: [PATCH 24/29] github/workflows: don't check graphql spec Signed-off-by: jsvisa --- .github/workflows/test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 1be2b2f4..52644f52 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -22,4 +22,4 @@ jobs: - name: Install speccheck run: go install github.com/lightclient/rpctestgen/cmd/speccheck@latest - name: Run speccheck - run: speccheck -v + run: speccheck -v --tests tests/jsonrpc From 22dda70e0dc80358516ba63bf22231eea8265a54 Mon Sep 17 00:00:00 2001 From: jsvisa Date: Thu, 19 Oct 2023 21:24:19 +0800 Subject: [PATCH 25/29] grqphal/block/eth_getBalance_toobig_bn.io: set a larger block number(33 -> 133) Signed-off-by: jsvisa --- tests/graphql/block/eth_getBalance_toobig_bn.io | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/graphql/block/eth_getBalance_toobig_bn.io b/tests/graphql/block/eth_getBalance_toobig_bn.io index 60540f1f..fd9ef377 100644 --- a/tests/graphql/block/eth_getBalance_toobig_bn.io +++ b/tests/graphql/block/eth_getBalance_toobig_bn.io @@ -1,2 +1,2 @@ ->> {block(number: 33) {account(address: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f") {balance}}} -<< {"error":{"code":-32000,"message":"headernotfound"}} +>> {block(number: 133) {account(address: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f") {balance}}} +<< {"data":{"block":null}} From 892c15db787a555eff49ef0104396e0ac0dc2c1f Mon Sep 17 00:00:00 2001 From: jsvisa Date: Thu, 19 Oct 2023 21:24:53 +0800 Subject: [PATCH 26/29] graphql/blocks/graphql_blocks_byWrongRange.io: wrong range return empty Signed-off-by: jsvisa --- tests/graphql/blocks/graphql_blocks_byWrongRange.io | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/graphql/blocks/graphql_blocks_byWrongRange.io b/tests/graphql/blocks/graphql_blocks_byWrongRange.io index e796d1fc..d4852e8c 100644 --- a/tests/graphql/blocks/graphql_blocks_byWrongRange.io +++ b/tests/graphql/blocks/graphql_blocks_byWrongRange.io @@ -1,2 +1,2 @@ >> {blocks(from: "0x1e", to: "0x1c") {number gasUsed gasLimit hash nonce stateRoot receiptsRoot transactionCount}} -<< {"errors":[{"message":"Exceptionwhilefetchingdata(/blocks):Invalidparams","locations":[{"line":1,"column":2}],"path":["blocks"],"extensions":{"errorCode":-32602,"errorMessage":"Invalidparams","classification":"DataFetchingException"}}],"data":null} +<< {"data":{"blocks":[]}} From be8c7c1a314af7ca445357054254051b92f87411 Mon Sep 17 00:00:00 2001 From: jsvisa Date: Thu, 19 Oct 2023 21:25:35 +0800 Subject: [PATCH 27/29] graphql/pending/graphql_pending.io: pending should add send a tx first Signed-off-by: jsvisa --- tests/graphql/pending/graphql_pending.io | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/graphql/pending/graphql_pending.io b/tests/graphql/pending/graphql_pending.io index ece12404..07dd14cf 100644 --- a/tests/graphql/pending/graphql_pending.io +++ b/tests/graphql/pending/graphql_pending.io @@ -1,2 +1,5 @@ +>> mutation {sendRawTransaction(data: "0xf85021822710830186a080808200011ba01b733c6ee0c3ea21830991381618712eee6dd3a85136d3ac6c23b437ed6414e6a07709914716fb9751130f7c44f1d3ef94ceb02cbe0f6721608bb2050d96933e81")} +<< {"data":{"sendRawTransaction":"0x34b0f5643684a4379df8e81bd84207857d346eab44fd3f92cbbef9f72064fd35"}} + >> {pending {transactionCount transactions {nonce gas} account(address: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f") {balance} estimateGas(data: {}) call(data: {from: "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" to: "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f" data: "0x12a7b914"}) {data status}}} -<< {"data":{"pending":{"transactionCount":"0x1","transactions":[{"nonce":"0x32","gas":"0xfffff"}],"account":{"balance":"0x140"},"estimateGas":"0x5208","call":{"data":"0x0000000000000000000000000000000000000000000000000000000000000001","status":"0x1"}}}} +<< {"data":{"pending":{"transactionCount":"0x1","transactions":[{"nonce":"0x21","gas":"0x186a0"}],"account":{"balance":"0x140"},"estimateGas":"0xcf08","call":{"data":"0x0000000000000000000000000000000000000000000000000000000000000001","status":"0x1"}}}} From f818b47f0d56deeb958fa737dc3b7dad8b1e9db2 Mon Sep 17 00:00:00 2001 From: jsvisa Date: Thu, 19 Oct 2023 21:26:50 +0800 Subject: [PATCH 28/29] graphql/transaction/eth_getTransactionReceipt: tx.index/log.index from 0 to 0x0 Signed-off-by: jsvisa --- tests/graphql/transaction/eth_getTransactionReceipt.io | 2 +- tests/graphql/transaction/eth_getTransaction_byHash.io | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/graphql/transaction/eth_getTransactionReceipt.io b/tests/graphql/transaction/eth_getTransactionReceipt.io index fb427e02..2d11cff6 100644 --- a/tests/graphql/transaction/eth_getTransactionReceipt.io +++ b/tests/graphql/transaction/eth_getTransactionReceipt.io @@ -1,2 +1,2 @@ >> {transaction(hash: "0x812742182a79a8e67733edc58cfa3767aa2d7ad06439d156ddbbb33e3403b4ed") {block {hash logsBloom} hash createdContract {address} cumulativeGasUsed gas gasUsed logs {topics} from {address} to {address} index}} -<< {"data":{"transaction":{"block":{"hash":"0x10aaf14a53caf27552325374429d3558398a36d3682ede6603c2c6511896e9f9","logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"},"createdContract":{"address":"0x6295ee1b4f6dd65047762f924ecd367c17eabf8f"},"cumulativeGasUsed":"0x78674","from":{"address":"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b"},"gas":"0x2fefd8","gasUsed":"0x78674","hash":"0x812742182a79a8e67733edc58cfa3767aa2d7ad06439d156ddbbb33e3403b4ed","index":0,"logs":[],"to":null}}} +<< {"data":{"transaction":{"block":{"hash":"0x10aaf14a53caf27552325374429d3558398a36d3682ede6603c2c6511896e9f9","logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"},"createdContract":{"address":"0x6295ee1b4f6dd65047762f924ecd367c17eabf8f"},"cumulativeGasUsed":"0x78674","from":{"address":"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b"},"gas":"0x2fefd8","gasUsed":"0x78674","hash":"0x812742182a79a8e67733edc58cfa3767aa2d7ad06439d156ddbbb33e3403b4ed","index":"0x0","logs":[],"to":null}}} diff --git a/tests/graphql/transaction/eth_getTransaction_byHash.io b/tests/graphql/transaction/eth_getTransaction_byHash.io index 3bd37902..3e4bcaff 100644 --- a/tests/graphql/transaction/eth_getTransaction_byHash.io +++ b/tests/graphql/transaction/eth_getTransaction_byHash.io @@ -1,2 +1,2 @@ >> {transaction(hash: "0x9cc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4") {block {hash} gas gasPrice hash inputData nonce index value from {address} to {address} logs {index} status createdContract {address}}} -<< {"data":{"transaction":{"block":{"hash":"0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6"},"createdContract":null,"from":{"address":"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b"},"gas":"0x4cb2f","gasPrice":"0x1","hash":"0x9cc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4","index":0,"inputData":"0xe8beef5b","logs":[{"index":0}],"nonce":"0x1d","status":"0x0","to":{"address":"0x6295ee1b4f6dd65047762f924ecd367c17eabf8f"},"value":"0xa"}}} +<< {"data":{"transaction":{"block":{"hash":"0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6"},"createdContract":null,"from":{"address":"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b"},"gas":"0x4cb2f","gasPrice":"0x1","hash":"0x9cc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4","index":"0x0","inputData":"0xe8beef5b","logs":[{"index":"0x0"}],"nonce":"0x1d","status":"0x0","to":{"address":"0x6295ee1b4f6dd65047762f924ecd367c17eabf8f"},"value":"0xa"}}} From ba72a8d93b05ca90c43107aa985d656f235dc3be Mon Sep 17 00:00:00 2001 From: jsvisa Date: Thu, 19 Oct 2023 21:28:54 +0800 Subject: [PATCH 29/29] graphql/transaction/eth_getTransaction_byHash.io: tx.status is null before BYZANTIUM Signed-off-by: jsvisa --- tests/graphql/transaction/eth_getTransaction_byHash.io | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/graphql/transaction/eth_getTransaction_byHash.io b/tests/graphql/transaction/eth_getTransaction_byHash.io index 3e4bcaff..95adb4c7 100644 --- a/tests/graphql/transaction/eth_getTransaction_byHash.io +++ b/tests/graphql/transaction/eth_getTransaction_byHash.io @@ -1,2 +1,2 @@ >> {transaction(hash: "0x9cc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4") {block {hash} gas gasPrice hash inputData nonce index value from {address} to {address} logs {index} status createdContract {address}}} -<< {"data":{"transaction":{"block":{"hash":"0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6"},"createdContract":null,"from":{"address":"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b"},"gas":"0x4cb2f","gasPrice":"0x1","hash":"0x9cc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4","index":"0x0","inputData":"0xe8beef5b","logs":[{"index":"0x0"}],"nonce":"0x1d","status":"0x0","to":{"address":"0x6295ee1b4f6dd65047762f924ecd367c17eabf8f"},"value":"0xa"}}} +<< {"data":{"transaction":{"block":{"hash":"0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6"},"createdContract":null,"from":{"address":"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b"},"gas":"0x4cb2f","gasPrice":"0x1","hash":"0x9cc6c7e602c56aa30c554bb691377f8703d778cec8845f4b88c0f72516b304f4","index":"0x0","inputData":"0xe8beef5b","logs":[{"index":"0x0"}],"nonce":"0x1d","status":null,"to":{"address":"0x6295ee1b4f6dd65047762f924ecd367c17eabf8f"},"value":"0xa"}}}