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: 21 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_MESSAGE_BODY_BYTES = 2_000

Variables

This section is empty.

Functions

func ExportDeliveredMessages

func ExportDeliveredMessages(store sdk.KVStore) []*types.MessageDelivered

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

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

Types

type ContractMsg

type ContractMsg struct {
	ContractProcessMsg ContractProcessMsg `json:"process_msg,omitempty"`
}

type ContractProcessMsg

type ContractProcessMsg struct {
	Origin uint32 `json:"origin"`
	Sender string `json:"sender"`
	Msg    string `json:"msg"`
}

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, ismKeeper *ismkeeper.Keeper) Keeper

func (*Keeper) AddReceiver

func (k *Keeper) AddReceiver(receiver *receiver.Receiver)

func (*Keeper) AddWasmReceiver

func (k *Keeper) AddWasmReceiver(cwKeeper *cosmwasm.Keeper)

func (Keeper) CurrentTreeMetadata

CurrentTreeMetadata implements the Query/Tree gRPC method

func (Keeper) Dispatch

func (k Keeper) Dispatch(goCtx context.Context, msg *types.MsgDispatch) (*types.MsgDispatchResponse, error)

Dispatch defines a rpc handler method for MsgDispatch

func (Keeper) Domain

Domain implements the Query/Domain gRPC method

func (Keeper) ExportGenesis

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

ExportGenesis returns the hyperlane mailbox module's exported genesis.

func (Keeper) GetDomain

func (k Keeper) GetDomain(c context.Context) uint32

func (*Keeper) GetImtTree

func (k *Keeper) GetImtTree(c context.Context) *imt.Tree

Gets the IMT type tree

func (Keeper) GetMailboxAddress

func (k Keeper) GetMailboxAddress() []byte

Get 32 byte mailbox address, pad if necessary

func (*Keeper) GetTree

func (k *Keeper) GetTree(c context.Context) types.Tree

Gets the proto type tree

func (*Keeper) InitGenesis

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

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

func (Keeper) MsgDelivered

MsgDelivered implements the Query/MsgDelivered gRPC method

func (Keeper) Process

func (k Keeper) Process(goCtx context.Context, msg *types.MsgProcess) (*types.MsgProcessResponse, error)

Process defines a rpc handler method for MsgProcess

func (Keeper) RecipientsIsmId

RecipientsIsmId implements to Query/RecipientsIsmId gRPC method

func (*Keeper) SetDomain

func (k *Keeper) SetDomain(c context.Context, domain uint32)

func (*Keeper) StoreImtTree

func (k *Keeper) StoreImtTree(c context.Context, tree *imt.Tree)

Stores the IMT type tree

func (*Keeper) StoreTree

func (k *Keeper) StoreTree(c context.Context, tree types.Tree)

Stores the proto type tree

func (Keeper) VerifyMessage

func (k Keeper) VerifyMessage(c context.Context, messageBytes []byte) (string, error)

type QueryIsmMsg

type QueryIsmMsg struct{}

type QueryIsmResponse

type QueryIsmResponse struct {
	IsmId uint32 `json:"ism_id,omitempty"`
}

type QueryMsg

type QueryMsg struct {
	QueryIsmMsg *QueryIsmMsg `json:"ism,omitempty"`
}

type ReadOnlyMailboxKeeper

type ReadOnlyMailboxKeeper interface {
	GetMailboxAddress() []byte
	GetDomain(context.Context) uint32
}

Jump to

Keyboard shortcuts

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