You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Method IFunToken.sendToBank: Send ERC20 tokens to the bank state as Bank Coins
Method IFunToken.sendToEvm: Send Bank Coins to the EVM state as ERC20 tokens
Method IFunToken.bankMsgSend: 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.
Method IFunToken.bankBalance: 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.
Method IFunToken.whoAmI: 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.
Unique-Divine
added
x: evm
Relates to Nibiru EVM or the EVM Module
and removed
S-triage
Status: This issue is waiting on initial triage. More Info: https://tinyurl.com/25uty9w5
labels
Nov 12, 2024
Desired Behavior
As a user of an EVM wallet, I should be able to:
IFunToken.sendToBank
: Send ERC20 tokens to the bank state as Bank CoinsIFunToken.sendToEvm
: Send Bank Coins to the EVM state as ERC20 tokensIFunToken.bankMsgSend
: Make an EVM call that calls "/cosmos.bank.v1beta1.MsgSend" usinga given
to_address
,denom
, andamount
. Theto_address
can be either abech32 or hexadecimal, similar to precompile for fungible token mappings.
IFunToken.bankBalance
: Query the balance of the coin with denominationdenom
for someaddress
, returning 0 if the accountdoes not exist. The `address can be either a bech32 or hexadecimal.
IFunToken.whoAmI
: Query the addresses for a Nibiru account. Given someaddress
(either theBech32 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
The text was updated successfully, but these errors were encountered: