Documentation
¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func NewQueryServerImpl(k Keeper) types.QueryServer
- type Keeper
- func (k *Keeper) Exists(ctx context.Context, tokenId util.HexAddress) (bool, error)
- func (k *Keeper) ExportGenesis(ctx context.Context) (*types.GenesisState, error)
- func (k *Keeper) Handle(ctx context.Context, mailboxId util.HexAddress, message util.HyperlaneMessage) error
- func (k *Keeper) InitGenesis(ctx context.Context, data *types.GenesisState) error
- func (k *Keeper) ReceiverIsmId(ctx context.Context, recipient util.HexAddress) (*util.HexAddress, error)
- func (k *Keeper) RemoteReceiveCollateral(ctx context.Context, token types.HypToken, payload types.WarpPayload) error
- func (k *Keeper) RemoteReceiveSynthetic(ctx context.Context, token types.HypToken, payload types.WarpPayload) error
- func (k *Keeper) RemoteTransferCollateral(ctx sdk.Context, token types.HypToken, cosmosSender string, ...) (messageId util.HexAddress, err error)
- func (k *Keeper) RemoteTransferSynthetic(ctx sdk.Context, token types.HypToken, cosmosSender string, ...) (messageId util.HexAddress, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the module MsgServer interface.
func NewQueryServerImpl ¶
func NewQueryServerImpl(k Keeper) types.QueryServer
NewQueryServerImpl returns an implementation of the module QueryServer.
Types ¶
type Keeper ¶
type Keeper struct { Params collections.Item[types.Params] // state management Schema collections.Schema // <tokenId> -> Token HypTokens collections.Map[uint64, types.HypToken] // <tokenId> <domain> -> Router EnrolledRouters collections.Map[collections.Pair[uint64, uint32], types.RemoteRouter] // contains filtered or unexported fields }
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, addressCodec address.Codec, storeService storetypes.KVStoreService, authority string, bankKeeper types.BankKeeper, coreKeeper types.CoreKeeper, enabledTokens []int32, ) Keeper
NewKeeper creates a new Keeper instance
func (*Keeper) ExportGenesis ¶
ExportGenesis exports the module state to a genesis state.
func (*Keeper) Handle ¶
func (k *Keeper) Handle(ctx context.Context, mailboxId util.HexAddress, message util.HyperlaneMessage) error
func (*Keeper) InitGenesis ¶
InitGenesis initializes the module state from a genesis state.
func (*Keeper) ReceiverIsmId ¶
func (k *Keeper) ReceiverIsmId(ctx context.Context, recipient util.HexAddress) (*util.HexAddress, error)
func (*Keeper) RemoteReceiveCollateral ¶
func (*Keeper) RemoteReceiveSynthetic ¶
func (*Keeper) RemoteTransferCollateral ¶
func (k *Keeper) RemoteTransferCollateral(ctx sdk.Context, token types.HypToken, cosmosSender string, destinationDomain uint32, externalRecipient util.HexAddress, amount math.Int, customHookId *util.HexAddress, gasLimit math.Int, maxFee sdk.Coin, customHookMetadata []byte) (messageId util.HexAddress, err error)
func (*Keeper) RemoteTransferSynthetic ¶
func (k *Keeper) RemoteTransferSynthetic(ctx sdk.Context, token types.HypToken, cosmosSender string, destinationDomain uint32, recipient util.HexAddress, amount math.Int, customHookId *util.HexAddress, gasLimit math.Int, maxFee sdk.Coin, customHookMetadata []byte) (messageId util.HexAddress, err error)
Click to show internal directories.
Click to hide internal directories.