Documentation ¶
Index ¶
- Constants
- func GetABI() abi.ABI
- func GetAdjustedHeight(latestConsensusHeight clienttypes.Height) (clienttypes.Height, error)
- type Precompile
- func (p Precompile) Address() common.Address
- func (p Precompile) GetAdjustedTimestamp(ctx sdk.Context, clientId string, height clienttypes.Height) (uint64, error)
- func (p Precompile) GetName() string
- func (Precompile) IsTransaction(method string) bool
- func (p Precompile) RequiredGas(input []byte) uint64
- func (p Precompile) Run(*vm.EVM, common.Address, common.Address, []byte, *big.Int, bool) (bz []byte, err error)
- func (p Precompile) RunAndCalculateGas(evm *vm.EVM, caller common.Address, callingContract common.Address, ...) (ret []byte, remainingGas uint64, err error)
- type ValidatedArgs
Constants ¶
View Source
const ( TransferMethod = "transfer" TransferWithDefaultTimeoutMethod = "transferWithDefaultTimeout" )
View Source
const (
IBCAddress = "0x0000000000000000000000000000000000001009"
)
Variables ¶
This section is empty.
Functions ¶
func GetAdjustedHeight ¶
func GetAdjustedHeight(latestConsensusHeight clienttypes.Height) (clienttypes.Height, error)
Types ¶
type Precompile ¶
type Precompile struct { pcommon.Precompile TransferID []byte TransferWithDefaultTimeoutID []byte // contains filtered or unexported fields }
func NewPrecompile ¶
func NewPrecompile( transferKeeper pcommon.TransferKeeper, evmKeeper pcommon.EVMKeeper, clientKeeper pcommon.ClientKeeper, connectionKeeper pcommon.ConnectionKeeper, channelKeeper pcommon.ChannelKeeper) (*Precompile, error)
func (Precompile) Address ¶
func (p Precompile) Address() common.Address
func (Precompile) GetAdjustedTimestamp ¶
func (p Precompile) GetAdjustedTimestamp(ctx sdk.Context, clientId string, height clienttypes.Height) (uint64, error)
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.
type ValidatedArgs ¶
type ValidatedArgs struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.