Giter Club home page Giter Club logo

Comments (14)

nghuyenthevinh2000 avatar nghuyenthevinh2000 commented on July 30, 2024

so far, I have changed to app, rootCmd, encoding and add Eth_Secpk251 to cmd to be recognized

from anone.

nghuyenthevinh2000 avatar nghuyenthevinh2000 commented on July 30, 2024

change to root.go in spm to include configuration for JSON RPC in app.toml:

from anone.

nghuyenthevinh2000 avatar nghuyenthevinh2000 commented on July 30, 2024

change to genesis-gen-accounts to add Eth_Secp256k1 address to genesis.json

from anone.

nghuyenthevinh2000 avatar nghuyenthevinh2000 commented on July 30, 2024

curl -X POST --data '{"jsonrpc":"2.0","method":"eth_getBalance","params":["0x471C5E8e694AfB1b2212428FD760265A28124cb0", "latest"],"id":1}' -H "Content-Type: application/json" http://localhost:8545

from anone.

nghuyenthevinh2000 avatar nghuyenthevinh2000 commented on July 30, 2024

FFFFFFFFFFFUUUUUUUUUUUUCCCCCCCCCCCCKKKKKKKKKKKKK, finally

from anone.

nghuyenthevinh2000 avatar nghuyenthevinh2000 commented on July 30, 2024

evm is mainly resposible for handling all JSON-RPC call:

  1. rpc/etherum/namespaces/eth/api.go
  2. x/evm/keeper/grpc_query.go
  3. x/evm/keeper/statedb.go

The above order is how a JSON - RPC is handled.

from anone.

nghuyenthevinh2000 avatar nghuyenthevinh2000 commented on July 30, 2024

genesis.json provides chain params (field "app_state") which will be passed to InitGenesis(). That params will then be used by evm keeper to configure its own configuration

if configuration is wrong, such as still containing aphoton denom in my case, JSON-RPC will be faulty and do not return correct balance

from anone.

nghuyenthevinh2000 avatar nghuyenthevinh2000 commented on July 30, 2024

change to ethermint crypto/hd/algorithm.go will allow eth_secp256k1 algorithm be used for Metamask and secp256k1 be used for Cosmos wallet.

Screenshot from 2022-01-12 17-45-50

from anone.

nghuyenthevinh2000 avatar nghuyenthevinh2000 commented on July 30, 2024

This one cannot be added for now because it is conflicting with air drop stuffs. The addr of airdrop like Blurt follows HDPATH of cointype 118 while default cointype of etherming is 60. I must choose one because there can only be one coinType on keplr. Thus, it has to be default 118.

The possibility of integrating ethermint is bad for all types of cosmos chain until another solution is found due to the problem above.

from anone.

nghuyenthevinh2000 avatar nghuyenthevinh2000 commented on July 30, 2024

anoned keys add temp --recover --algo secp256k1 --coin-type 118 can still generate correct seck256k1 addr

from anone.

nghuyenthevinh2000 avatar nghuyenthevinh2000 commented on July 30, 2024

sending functionalities does work. I test in Metamask and it does send from 0x addr to another 0x addr.

In Metamask, it is not possible to send to another dig1 acc since Metamask only accepts 0x format

from anone.

faddat avatar faddat commented on July 30, 2024

.....this shall be an evm chain?

Oh, my

from anone.

nghuyenthevinh2000 avatar nghuyenthevinh2000 commented on July 30, 2024

I will say that decision is still uncertain.

from anone.

nghuyenthevinh2000 avatar nghuyenthevinh2000 commented on July 30, 2024

ethermint will be changed to Gravity Bridge instead

from anone.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.