Documentation ¶
Index ¶
- Constants
- func ExportDeliveredMessages(store sdk.KVStore) []*types.MessageDelivered
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type ContractMsg
- type ContractProcessMsg
- type Keeper
- func (k *Keeper) AddReceiver(receiver *receiver.Receiver)
- func (k *Keeper) AddWasmReceiver(cwKeeper *cosmwasm.Keeper)
- func (k Keeper) CurrentTree(c context.Context, req *types.QueryCurrentTreeRequest) (*types.QueryCurrentTreeResponse, error)
- func (k Keeper) CurrentTreeMetadata(c context.Context, req *types.QueryCurrentTreeMetadataRequest) (*types.QueryCurrentTreeMetadataResponse, error)
- func (k Keeper) Dispatch(goCtx context.Context, msg *types.MsgDispatch) (*types.MsgDispatchResponse, error)
- func (k Keeper) Domain(c context.Context, req *types.QueryDomainRequest) (*types.QueryDomainResponse, error)
- func (k Keeper) ExportGenesis(ctx sdk.Context) types.GenesisState
- func (k Keeper) GetDomain(c context.Context) uint32
- func (k *Keeper) GetImtTree(c context.Context) *imt.Tree
- func (k Keeper) GetMailboxAddress() []byte
- func (k *Keeper) GetTree(c context.Context) types.Tree
- func (k *Keeper) InitGenesis(ctx sdk.Context, gs types.GenesisState) error
- func (k Keeper) MsgDelivered(c context.Context, req *types.QueryMsgDeliveredRequest) (*types.QueryMsgDeliveredResponse, error)
- func (k Keeper) Process(goCtx context.Context, msg *types.MsgProcess) (*types.MsgProcessResponse, error)
- func (k Keeper) RecipientsIsmId(c context.Context, req *types.QueryRecipientsIsmIdRequest) (*types.QueryRecipientsIsmIdResponse, error)
- func (k *Keeper) SetDomain(c context.Context, domain uint32)
- func (k *Keeper) StoreImtTree(c context.Context, tree *imt.Tree)
- func (k *Keeper) StoreTree(c context.Context, tree types.Tree)
- func (k Keeper) VerifyMessage(c context.Context, messageBytes []byte) (string, error)
- type QueryIsmMsg
- type QueryIsmResponse
- type QueryMsg
- type ReadOnlyMailboxKeeper
Constants ¶
const MAX_MESSAGE_BODY_BYTES = 2_000
Variables ¶
This section is empty.
Functions ¶
func ExportDeliveredMessages ¶
func ExportDeliveredMessages(store sdk.KVStore) []*types.MessageDelivered
func NewMsgServerImpl ¶
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 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 (*Keeper) AddWasmReceiver ¶
func (Keeper) CurrentTree ¶
func (k Keeper) CurrentTree(c context.Context, req *types.QueryCurrentTreeRequest) (*types.QueryCurrentTreeResponse, error)
func (Keeper) CurrentTreeMetadata ¶
func (k Keeper) CurrentTreeMetadata(c context.Context, req *types.QueryCurrentTreeMetadataRequest) (*types.QueryCurrentTreeMetadataResponse, error)
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 ¶
func (k Keeper) Domain(c context.Context, req *types.QueryDomainRequest) (*types.QueryDomainResponse, error)
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) GetImtTree ¶
Gets the IMT type tree
func (Keeper) GetMailboxAddress ¶
Get 32 byte mailbox address, pad if necessary
func (*Keeper) InitGenesis ¶
InitGenesis initializes the hyperlane mailbox module's state from a provided genesis state.
func (Keeper) MsgDelivered ¶
func (k Keeper) MsgDelivered(c context.Context, req *types.QueryMsgDeliveredRequest) (*types.QueryMsgDeliveredResponse, error)
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 ¶
func (k Keeper) RecipientsIsmId(c context.Context, req *types.QueryRecipientsIsmIdRequest) (*types.QueryRecipientsIsmIdResponse, error)
RecipientsIsmId implements to Query/RecipientsIsmId gRPC method
func (*Keeper) StoreImtTree ¶
Stores the IMT type tree
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"`
}