laconicd-deprecated/rpc/backend
Daniel Burckhardt 9f03ca713d
tests(rpc): add backend blocks tests (#1296)
* wip

* rename GetTendermintBlockByNumber to TendermintBlockByNumber

* rename GetTendermintBlockResultByNumber to TendermintBlockResultByNumber

* rename GetTendermintBlockByHash to TendermintBlockByHash

* rename BlockByNumber to EthBlockByNumber

* rename BlockByHash to EthBlockByHash

* rename GetBlockNumberByHash to BlockNumberFromTendermintByHash

* rename GetBlockNumber to BlockNumberFromTendermint

* rename GetEthereumMsgsFromTendermintBlock to EthMsgsFromTendermintBlock

* rename GetEthBlockFromTendermint to BlockFromTendermintBlock

* rename EthBlockFromTendermint to EthBlockFromTendermintBlock

* add TestEthBlockFromTendermintBlock with no transactions. Note that this endpoint is breaking when querying a block with transactions

* add block transaction count tests

* add TendermintBlockByHash test'

* add TestBlockNumberFromTendermint tests

* add HeaderByHash and HeaderByNumber tests

* add EthBlockFromTendermintBlock test

* add TestEthBlockByNumber tests

* Specificy that the endpoints are getting Etherum transactions in comments

* Refactor shared logic into GetBlockTransactionCount

* rename BlockFromTendermintBlock to RPCBlockFromTendermintBlock

* add CHangelog
2022-09-05 16:07:56 +02:00
..
mocks ENG 119 json rpc unit tests (#1189) 2022-07-29 10:35:07 +00:00
account_info.go tests(rpc): add backend blocks tests (#1296) 2022-09-05 16:07:56 +02:00
backend_suite_test.go feat!: Store eth tx index separately (#1121) 2022-08-11 22:49:05 +02:00
backend.go tests(rpc): add backend blocks tests (#1296) 2022-09-05 16:07:56 +02:00
blocks_test.go tests(rpc): add backend blocks tests (#1296) 2022-09-05 16:07:56 +02:00
blocks.go tests(rpc): add backend blocks tests (#1296) 2022-09-05 16:07:56 +02:00
call_tx.go tests(rpc): add backend blocks tests (#1296) 2022-09-05 16:07:56 +02:00
chain_info_test.go tests(rpc): add backend blocks tests (#1296) 2022-09-05 16:07:56 +02:00
chain_info.go tests(rpc): add backend blocks tests (#1296) 2022-09-05 16:07:56 +02:00
client_test.go tests(rpc): add backend blocks tests (#1296) 2022-09-05 16:07:56 +02:00
filters.go tests(rpc): add backend blocks tests (#1296) 2022-09-05 16:07:56 +02:00
node_info.go chore: Gofumpt (#1298) 2022-08-26 10:30:55 +00:00
query_client_test.go ENG 119 json rpc unit tests (#1189) 2022-07-29 10:35:07 +00:00
sign_tx.go eth_sendTransaction returns internal trace on missing param (#1284) 2022-08-25 13:22:31 +02:00
tracing.go tests(rpc): add backend blocks tests (#1296) 2022-09-05 16:07:56 +02:00
tx_info.go tests(rpc): add backend blocks tests (#1296) 2022-09-05 16:07:56 +02:00
utils.go feat!: Store eth tx index separately (#1121) 2022-08-11 22:49:05 +02:00