8000 feat: directly subscribe logs from indexer by beer-1 · Pull Request #34 · initia-labs/minievm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: directly subscribe logs from indexer #34

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

Merged
merged 2 commits into from
Jul 12, 2024

Conversation

beer-1
Copy link
Member
@beer-1 beer-1 commented Jul 12, 2024

No description provided.

@beer-1 beer-1 self-assigned this Jul 12, 2024
@beer-1 beer-1 merged commit 4488b5b into feat/json-rpc Jul 12, 2024
6 of 7 checks passed
@beer-1 beer-1 deleted the feat/directly-subscribe-from-indexer branch July 12, 2024 06:24
beer-1 added a commit that referenced this pull request Jul 12, 2024
* wip

* wip2

* feat: json-rpc signing

* direction

* add indexer

* enable jsonrpc

* add precision checking logic

* fix test

* reterive value from the msg

* fix: handle unit conversion in cosmos to ethereum tx (#24)

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.

* fix pubkey recover

* fix test

* feat: implement new apis and refactoring (#28)

* 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 <124245155+zsystm@users.noreply.github.com>

* 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 <jason.song@bharvest.io>
Co-authored-by: jasonsong0 <96075298+jasonsong0@users.noreply.github.com>

* feat: directly subscribe logs from indexer  (#34)

* change filter system to directly subscribe from indexer

* use mutex and pass logs in bulk

* fix dependency problems

* add readme

* update readme

---------

Co-authored-by: suha jin <89185836+djm07073@users.noreply.github.com>
Co-authored-by: zsystm <124245155+zsystm@users.noreply.github.com>
Co-authored-by: jason song <jason.song@bharvest.io>
Co-authored-by: jasonsong0 <96075298+jasonsong0@users.noreply.github.com>
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.

1 participant
0