keeper

package
v0.0.0-...-eab7081 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl return an implementation of the igp MsgServer interface for the provided keeper

Types

type Keeper

type Keeper struct {
	// implements gRPC QueryServer interface
	types.QueryServer
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(cdc codec.BinaryCodec, key storetypes.StoreKey, sendKeeper bankTypes.SendKeeper, stakingKeeper types.StakingKeeper, beneficiary string) Keeper

func (Keeper) CreateIgp

func (k Keeper) CreateIgp(goCtx context.Context, msg *types.MsgCreateIgp) (*types.MsgCreateIgpResponse, error)

func (Keeper) ExportGenesis

func (k Keeper) ExportGenesis(ctx sdk.Context) types.GenesisState

ExportGenesis returns the hyperlane IGP module's exported genesis.

func (Keeper) GetBeneficiary

GetBeneficiary returns the beneficiary for the given IGP

func (Keeper) GetExchangeRateAndGasPrice

GetExchangeRateAndGasPrice implements the Query

func (Keeper) InitGenesis

func (k Keeper) InitGenesis(ctx sdk.Context, gs types.GenesisState) error

InitGenesis initializes the hyperlane IGP module's state from a provided genesis state.

func (Keeper) PayForGas

func (k Keeper) PayForGas(goCtx context.Context, msg *types.MsgPayForGas) (*types.MsgPayForGasResponse, error)

PayForGas Make payments for relayer to deliver message to a destination domain

func (Keeper) QuoteGasPayment

QuoteGasPayment implements the Query

func (Keeper) SetBeneficiary

SetBeneficiary updates the IGP's beneficiary (account sent relayer gas payments)

func (Keeper) SetGasOracles

SetGasOracles defines a rpc handler method for MsgSetGasOracles

func (Keeper) SetRemoteGasData

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL