Documentation ¶
Index ¶
- Constants
- func ExtractMethodID(input []byte) ([]byte, error)
- func GetRemainingGas(ctx sdk.Context, evmKeeper EVMKeeper) uint64
- func HandlePaymentUsei(ctx sdk.Context, precompileAddr sdk.AccAddress, payer sdk.AccAddress, ...) (sdk.Coin, error)
- func HandlePaymentUseiWei(ctx sdk.Context, precompileAddr sdk.AccAddress, payer sdk.AccAddress, ...) (sdk.Int, sdk.Int, error)
- func ValidateArgsLength(args []interface{}, length int) error
- func ValidateNonPayable(value *big.Int) error
- type BankKeeper
- type ChannelKeeper
- type ClientKeeper
- type ConnectionKeeper
- type Contexter
- type DistributionKeeper
- type EVMKeeper
- type GovKeeper
- type OracleKeeper
- type Precompile
- type StakingKeeper
- type TransferKeeper
- type WasmdKeeper
- type WasmdViewKeeper
Constants ¶
View Source
const UnknownMethodCallGas uint64 = 3000
Variables ¶
This section is empty.
Functions ¶
func ExtractMethodID ¶
func GetRemainingGas ¶
* sei gas = evm gas * multiplier sei gas price = fee / sei gas = fee / (evm gas * multiplier) = evm gas / multiplier
func HandlePaymentUsei ¶
func HandlePaymentUsei(ctx sdk.Context, precompileAddr sdk.AccAddress, payer sdk.AccAddress, value *big.Int, bankKeeper BankKeeper) (sdk.Coin, error)
func HandlePaymentUseiWei ¶
func HandlePaymentUseiWei(ctx sdk.Context, precompileAddr sdk.AccAddress, payer sdk.AccAddress, value *big.Int, bankKeeper BankKeeper) (sdk.Int, sdk.Int, error)
func ValidateArgsLength ¶
func ValidateNonPayable ¶
Types ¶
type BankKeeper ¶
type BankKeeper interface { SendCoins(sdk.Context, sdk.AccAddress, sdk.AccAddress, sdk.Coins) error SendCoinsAndWei(ctx sdk.Context, from sdk.AccAddress, to sdk.AccAddress, amt sdk.Int, wei sdk.Int) error GetBalance(sdk.Context, sdk.AccAddress, string) sdk.Coin GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins GetWeiBalance(ctx sdk.Context, addr sdk.AccAddress) sdk.Int GetDenomMetaData(ctx sdk.Context, denom string) (banktypes.Metadata, bool) GetSupply(ctx sdk.Context, denom string) sdk.Coin }
type ChannelKeeper ¶
type ClientKeeper ¶
type ConnectionKeeper ¶
type ConnectionKeeper interface {
GetConnection(ctx sdk.Context, connectionID string) (connectiontypes.ConnectionEnd, bool)
}
type DistributionKeeper ¶
type DistributionKeeper interface { SetWithdrawAddr(ctx sdk.Context, delegatorAddr sdk.AccAddress, withdrawAddr sdk.AccAddress) error WithdrawDelegationRewards(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (sdk.Coins, error) }
type EVMKeeper ¶
type EVMKeeper interface { GetSeiAddress(sdk.Context, common.Address) (sdk.AccAddress, bool) GetSeiAddressOrDefault(ctx sdk.Context, evmAddress common.Address) sdk.AccAddress // only used for getting precompile Sei addresses GetEVMAddress(sdk.Context, sdk.AccAddress) (common.Address, bool) GetCodeHash(sdk.Context, common.Address) common.Hash GetPriorityNormalizer(ctx sdk.Context) sdk.Dec GetBaseDenom(ctx sdk.Context) string SetERC20NativePointer(ctx sdk.Context, token string, addr common.Address) error GetERC20NativePointer(ctx sdk.Context, token string) (addr common.Address, version uint16, exists bool) SetERC20CW20Pointer(ctx sdk.Context, cw20Address string, addr common.Address) error GetERC20CW20Pointer(ctx sdk.Context, cw20Address string) (addr common.Address, version uint16, exists bool) SetERC721CW721Pointer(ctx sdk.Context, cw721Address string, addr common.Address) error GetERC721CW721Pointer(ctx sdk.Context, cw721Address string) (addr common.Address, version uint16, exists bool) }
type OracleKeeper ¶
type OracleKeeper interface { IterateBaseExchangeRates(ctx sdk.Context, handler func(denom string, exchangeRate oracletypes.OracleExchangeRate) (stop bool)) CalculateTwaps(ctx sdk.Context, lookbackSeconds uint64) (oracletypes.OracleTwaps, error) }
type Precompile ¶
func (Precompile) GetABI ¶
func (p Precompile) GetABI() abi.ABI
func (Precompile) RequiredGas ¶
func (p Precompile) RequiredGas(input []byte, isTransaction bool) uint64
type StakingKeeper ¶
type StakingKeeper interface { Delegate(goCtx context.Context, msg *stakingtypes.MsgDelegate) (*stakingtypes.MsgDelegateResponse, error) BeginRedelegate(goCtx context.Context, msg *stakingtypes.MsgBeginRedelegate) (*stakingtypes.MsgBeginRedelegateResponse, error) Undelegate(goCtx context.Context, msg *stakingtypes.MsgUndelegate) (*stakingtypes.MsgUndelegateResponse, error) }
type TransferKeeper ¶
type TransferKeeper interface {
Transfer(goCtx context.Context, msg *ibctypes.MsgTransfer) (*ibctypes.MsgTransferResponse, error)
}
type WasmdKeeper ¶
type WasmdKeeper interface { Instantiate(ctx sdk.Context, codeID uint64, creator, admin sdk.AccAddress, initMsg []byte, label string, deposit sdk.Coins) (sdk.AccAddress, []byte, error) Execute(ctx sdk.Context, contractAddress sdk.AccAddress, caller sdk.AccAddress, msg []byte, coins sdk.Coins) ([]byte, error) }
type WasmdViewKeeper ¶
Click to show internal directories.
Click to hide internal directories.