Documentation
¶
Index ¶
- Constants
- func GetABI() abi.ABI
- type CoinBalance
- type Precompile
- func (p Precompile) Address() common.Address
- func (p Precompile) GetName() string
- func (Precompile) IsTransaction(method string) bool
- func (p Precompile) Logger(ctx sdk.Context) log.Logger
- func (p Precompile) RequiredGas(input []byte) uint64
- func (p Precompile) Run(evm *vm.EVM, caller common.Address, callingContract common.Address, ...) (bz []byte, err error)
Constants ¶
View Source
const ( SendMethod = "send" SendNativeMethod = "sendNative" BalanceMethod = "balance" AllBalancesMethod = "all_balances" NameMethod = "name" SymbolMethod = "symbol" DecimalsMethod = "decimals" SupplyMethod = "supply" )
View Source
const (
BankAddress = "0x0000000000000000000000000000000000001001"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CoinBalance ¶
type Precompile ¶
type Precompile struct {
pcommon.Precompile
SendID []byte
SendNativeID []byte
BalanceID []byte
AllBalancesID []byte
NameID []byte
SymbolID []byte
DecimalsID []byte
SupplyID []byte
// contains filtered or unexported fields
}
func NewPrecompile ¶
func NewPrecompile(bankKeeper pcommon.BankKeeper, evmKeeper pcommon.EVMKeeper) (*Precompile, error)
func (Precompile) Address ¶
func (p Precompile) Address() common.Address
func (Precompile) GetName ¶
func (p Precompile) GetName() string
func (Precompile) IsTransaction ¶
func (Precompile) IsTransaction(method string) bool
func (Precompile) RequiredGas ¶
func (p Precompile) RequiredGas(input []byte) uint64
RequiredGas returns the required bare minimum gas to execute the precompile.
Click to show internal directories.
Click to hide internal directories.