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

Problem: json-rpc don't cover all on-chain activities (or full precompile coverage) #1026

Open
yihuang opened this issue May 12, 2023 · 0 comments

Comments

@yihuang
Copy link
Collaborator

yihuang commented May 12, 2023

One major issue for the current ecosystem is the json-rpc don't provide full view for all the on-chain activities, notably the cross-chain transactions go through ibc, for example the web3 explorers don't show the full transaction history of accounts.

One solution is wrapping all the native functionalities using precompiles, and enforce all the transactions to be evm transactions. It'll fully unify all the user interface in ethereum way, only ethereum wallet and ethereum transactions are allowed, json-rpc will have complete view of the chain activities.

The main chanlleges:

  • wrap all cosmos-sdk messages, and keep it up-to-date.

    • One solution is simply accept the protobuf encoded message as input, pass that directly to native handlers. In this way, it's trivial to support all messages, but the UX is not very friendly to user or contract calls.
    • The other solution is develop some toolings to convert the protobuf message definitions to solidity structs and methods automatically, not sure how hard or feasible this will be.
  • Adapt cosmos-sdk ecosystem tools to it, notably the ibc relayers, so they send evm txs instead of cosmos ones.

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

No branches or pull requests

1 participant