* test: add preliminary unit tests and additional mocks for chain_info, account_info and filters
* tests: added additional mocked client calls
* tests: bumped coverage of call_tx to 56% and chain_info to 77%
* tests: bumped call_tx coverage to 70.2% and added additional mock client calls
* tests: tx_info preliminary tests added for debugging.
* tests: added test coverage for sign_tx and additional mocks
* tests: tx_info test coverage bumped to 60.3%
* test: coverage for tracing_tests now at 72%
* tests: added fee makert query client mocks and bumped chain_info to 87.6% coverage.
* tests: failing Cosmos auth module account query.
* tests: added FeeMarket Params mock to call_tx_test
* cleanup some unused code
* tests: added helper function to test suite for signing a Tx and bumped coverage of tx_info to 71.2%
* test: commented GetAccount error case and bumped chain_info to 90.3% coverage
* test: cleanup of tests in node_info, sign_tx and account_info
* Clean up print
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
* Apply suggestions from code review
* fix import issues
Co-authored-by: Vladislav Varadinov <vlad@evmos.org>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Freddy Caceres <facs95@gmail.com>
* 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
* Store eth tx index separately
Closes: #1075
Solution:
- run a optional indexer service
- adapt the json-rpc to the more efficient query
changelog
changelog
fix lint
fix backward compatibility
fix lint
timeout
better strconv
fix linter
fix package name
add cli command to index old tx
fix for loop
indexer cmd don't have access to local rpc
workaround exceed block gas limit situation
add unit tests for indexer
refactor
polish the indexer module
Update server/config/toml.go
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
improve comments
share code between GetTxByEthHash and GetTxByIndex
fix unit test
Update server/indexer.go
Co-authored-by: Freddy Caceres <facs95@gmail.com>
* Apply suggestions from code review
* test enable-indexer in integration test
* fix go lint
* address review suggestions
* fix linter
* address review suggestions
- test indexer in backend unit test
- add comments
* fix build
* fix test
* service name
Co-authored-by: Freddy Caceres <facs95@gmail.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
* fix json-rpc failures for pruned nodes
Closes: #1123
Solution:
- try to parse base fee from events if grpc query failed
- use a `nil` base fee if failed to parse base fee from events
- use zero address if query validator address failed
- optimize some json-rpc apis by the way.
* changelog
* fix lint
* use GetTendermintBlockResultByNumber
* refactor
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>