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

[evm] Minimalist precompile for x/bank #2049

Open
3 tasks
Tracked by #1836
Unique-Divine opened this issue Sep 24, 2024 · 0 comments
Open
3 tasks
Tracked by #1836

[evm] Minimalist precompile for x/bank #2049

Unique-Divine opened this issue Sep 24, 2024 · 0 comments
Labels
S-triage Status: This issue is waiting on initial triage. More Info: https://tinyurl.com/25uty9w5

Comments

@Unique-Divine
Copy link
Member

Unique-Divine commented Sep 24, 2024

Desired Behavior

As a user of an EVM wallet, I should be able to:

  • Make an EVM call that calls "/cosmos.bank.v1beta1.MsgSend" using
    a given to_address, denom, and amount. The to_address can be either a
    bech32 or hexadecimal, similar to precompile for fungible token mappings.
  • Query the balance of the coin with denomination denom for some address, returning 0 if the account
    does not exist. The `address can be either a bech32 or hexadecimal.
  • Query the addresses for a Nibiru account. Given some address (either the
    Bech32 or Ethereum hex), return both hexadecimal and bech32 representation. This
    method isn't related to the Bank Module, however it allows future developers to
    easily build on top of the functionality in x/bank and programmatically grab
    nibi-prefixed addresses corresponding to Ethereum address types in other
    smart contracts.

We can add these as methods to FunToken.sol

Related

@github-actions github-actions bot added the S-triage Status: This issue is waiting on initial triage. More Info: https://tinyurl.com/25uty9w5 label Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-triage Status: This issue is waiting on initial triage. More Info: https://tinyurl.com/25uty9w5
Projects
Status: ⚡ Building 🧱
Development

No branches or pull requests

1 participant