Documentation
¶
Index ¶
- Variables
- type AccountKeeper
- type MethodAuth
- type PrecompiledAuth
- func (p PrecompiledAuth) Execute(ctx sdk.Context, stateDB vm.StateDB, contract *vm.Contract, readOnly bool) ([]byte, error)
- func (p PrecompiledAuth) IsTransaction(method *abi.Method) bool
- func (p PrecompiledAuth) Logger(ctx sdk.Context) log.Logger
- func (p PrecompiledAuth) RequiredGas(input []byte) uint64
- func (p PrecompiledAuth) Run(evm *vm.EVM, contract *vm.Contract, readonly bool) (bz []byte, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Address = common.HexToAddress(hexAddress) ABI = abi.ABI{} )
Functions ¶
This section is empty.
Types ¶
type AccountKeeper ¶
type MethodAuth ¶
type MethodAuth string
const ( Account MethodAuth = "account" ModuleAccountByName MethodAuth = "moduleAccountByName" Bech32Prefix MethodAuth = "bech32Prefix" AddressBytesToString MethodAuth = "addressBytesToString" AddressStringToBytes MethodAuth = "addressStringToBytes" )
type PrecompiledAuth ¶
type PrecompiledAuth struct {
cmn.Precompile
abi.ABI
// contains filtered or unexported fields
}
func NewPrecompiledAuth ¶
func NewPrecompiledAuth(ak AccountKeeper) PrecompiledAuth
func (PrecompiledAuth) IsTransaction ¶
func (p PrecompiledAuth) IsTransaction(method *abi.Method) bool
func (PrecompiledAuth) RequiredGas ¶
func (p PrecompiledAuth) RequiredGas(input []byte) uint64
Click to show internal directories.
Click to hide internal directories.