Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: json rpc #22

Merged
merged 19 commits into from
Jul 12, 2024
Merged

feat: json rpc #22

merged 19 commits into from
Jul 12, 2024

Conversation

beer-1
Copy link
Collaborator

@beer-1 beer-1 commented Jun 13, 2024

No description provided.

@beer-1 beer-1 marked this pull request as draft June 13, 2024 09:45
Copy link

codecov bot commented Jun 13, 2024

Codecov Report

Attention: Patch coverage is 14.57225% with 2087 lines in your changes missing coverage. Please review.

Project coverage is 27.64%. Comparing base (44ba6a4) to head (5a13941).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #22      +/-   ##
==========================================
- Coverage   31.67%   27.64%   -4.04%     
==========================================
  Files          68       96      +28     
  Lines        8439    10795    +2356     
==========================================
+ Hits         2673     2984     +311     
- Misses       5408     7400    +1992     
- Partials      358      411      +53     
Files Coverage Δ
app/genesis.go 91.97% <100.00%> (+0.30%) ⬆️
app/test_helpers.go 79.77% <100.00%> (+0.22%) ⬆️
x/evm/contracts/counter/Counter.go 0.00% <ø> (ø)
x/evm/contracts/erc20_factory/ERC20Factory.go 0.00% <ø> (ø)
x/evm/keeper/erc721.go 43.63% <100.00%> (ø)
x/evm/keeper/genesis.go 60.49% <100.00%> (+0.49%) ⬆️
x/evm/keeper/keeper.go 66.66% <ø> (ø)
x/evm/types/params.go 77.27% <100.00%> (+1.08%) ⬆️
app/encoding.go 44.11% <33.33%> (ø)
app/ante/ante.go 56.86% <50.00%> (-2.72%) ⬇️
... and 38 more

beer-1 and others added 3 commits June 13, 2024 23:12
whenever ethereum tx is converted into cosmos tx by ConvertEthereumTxToCosmosTx, the value is converted to cosmos fee unit from wei.
so when convert the cosmos tx to back the original ethereum tx, we should convert the value back to wei to get original ethereum tx.
beer-1 and others added 5 commits June 26, 2024 22:18
* feat: new eth apis, refactor: code structures

new eth apis
- GetStorageAt
- GetCode

refactor
- Restricted the scope of access for each namespace API (instead of accessing the backend directly, now access is through a scoped wrapper)
- Also renamed files and repositioned some methods within the backend directory to better reflect their purpose

* fix: not implemented txpool api

temp disable txpool api because we don't have any implementation

* fix: change event type for extract logs

* add cap for filters

* add filter system and apis

* fix comment

Co-authored-by: zsystm <[email protected]>

* delete unused interfaces and comments

* fix varible and function naming

* add TODO comments

* delete unused functions

* add error handling

* Set websocket params to prevent timeout

* fix: change GetLogsByHeight interface

* chore: change variable names from tm to comet

* docs: add comments about websocket client params

* fix: go.mod and go.work.sum

ran the followings for this commit:
- go mod tidy
- go work sync

* update: cometbft dep

current version of cometbft which minievm uses have a bug(cometbft/cometbft#3264 (comment)) which makes transaction broadcasting unavailable.

---------

Co-authored-by: jason song <[email protected]>
Co-authored-by: jasonsong0 <[email protected]>
* change filter system to directly subscribe from indexer

* use mutex and pass logs in bulk
@beer-1 beer-1 self-assigned this Jul 12, 2024
@beer-1 beer-1 marked this pull request as ready for review July 12, 2024 06:25
@beer-1 beer-1 merged commit cbf3be3 into main Jul 12, 2024
4 of 6 checks passed
@beer-1 beer-1 deleted the feat/json-rpc branch July 12, 2024 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants