Documentation ¶
Index ¶
- Constants
- Variables
- func ExportGenesis(ctx sdk.Context, keeper Keeper) types.GenesisState
- func InitGenesis(ctx sdk.Context, keeper Keeper, state types.GenesisState)
- func NewHandler(k Keeper) sdk.Handler
- type AppModule
- func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock)
- func (am AppModule) EndBlock(ctx sdk.Context, req abci.RequestEndBlock) []abci.ValidatorUpdate
- func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONMarshaler) json.RawMessage
- func (AppModule) GenerateGenesisState(simState *module.SimulationState)
- func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONMarshaler, data json.RawMessage) []abci.ValidatorUpdate
- func (am AppModule) NewHandler() sdk.Handler
- func (am AppModule) NewQuerierHandler() sdk.Querier
- func (am AppModule) OnAcknowledgementPacket(ctx sdk.Context, packet channeltypes.Packet, acknowledgement []byte) (*sdk.Result, error)
- func (am AppModule) OnChanCloseConfirm(ctx sdk.Context, portID, channelID string) error
- func (am AppModule) OnChanCloseInit(ctx sdk.Context, portID, channelID string) error
- func (am AppModule) OnChanOpenAck(ctx sdk.Context, portID, channelID string, counterpartyVersion string) error
- func (am AppModule) OnChanOpenConfirm(ctx sdk.Context, portID, channelID string) error
- func (am AppModule) OnChanOpenInit(ctx sdk.Context, order channeltypes.Order, connectionHops []string, ...) error
- func (am AppModule) OnChanOpenTry(ctx sdk.Context, order channeltypes.Order, connectionHops []string, ...) error
- func (am AppModule) OnRecvPacket(ctx sdk.Context, packet channeltypes.Packet) (*sdk.Result, error)
- func (am AppModule) OnTimeoutPacket(ctx sdk.Context, packet channeltypes.Packet) (*sdk.Result, error)
- func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedProposalContent
- func (AppModule) QuerierRoute() string
- func (AppModule) RandomizedParams(_ *rand.Rand) []simtypes.ParamChange
- func (AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
- func (am AppModule) RegisterStoreDecoder(_ sdk.StoreDecoderRegistry)
- func (AppModule) Route() string
- func (am AppModule) WeightedOperations(_ module.SimulationState) []simtypes.WeightedOperation
- type AppModuleBasic
- func (AppModuleBasic) DefaultGenesis(cdc codec.JSONMarshaler) json.RawMessage
- func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) GetTxCmd(ctx context.CLIContext) *cobra.Command
- func (AppModuleBasic) Name() string
- func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
- func (AppModuleBasic) RegisterInterfaceTypes(registry cdctypes.InterfaceRegistry)
- func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
- func (AppModuleBasic) ValidateGenesis(cdc codec.JSONMarshaler, bz json.RawMessage) error
- type BankKeeper
- type ChannelKeeper
- type ClientKeeper
- type ConnectionKeeper
- type FungibleTokenPacketAcknowledgement
- type FungibleTokenPacketData
- type Keeper
- type MsgTransfer
Constants ¶
const ( DefaultPacketTimeoutHeight = keeper.DefaultPacketTimeoutHeight DefaultPacketTimeoutTimestamp = keeper.DefaultPacketTimeoutTimestamp EventTypeTimeout = types.EventTypeTimeout EventTypePacket = types.EventTypePacket EventTypeChannelClose = types.EventTypeChannelClose AttributeKeyReceiver = types.AttributeKeyReceiver AttributeKeyValue = types.AttributeKeyValue AttributeKeyRefundReceiver = types.AttributeKeyRefundReceiver AttributeKeyRefundValue = types.AttributeKeyRefundValue AttributeKeyAckSuccess = types.AttributeKeyAckSuccess AttributeKeyAckError = types.AttributeKeyAckError ModuleName = types.ModuleName StoreKey = types.StoreKey RouterKey = types.RouterKey QuerierRoute = types.QuerierRoute )
Variables ¶
var ( // functions aliases NewKeeper = keeper.NewKeeper RegisterCodec = types.RegisterCodec GetEscrowAddress = types.GetEscrowAddress GetDenomPrefix = types.GetDenomPrefix NewMsgTransfer = types.NewMsgTransfer RegisterInterfaces = types.RegisterInterfaces // variable aliases ModuleCdc = types.ModuleCdc AttributeValueCategory = types.AttributeValueCategory )
Functions ¶
func ExportGenesis ¶
func ExportGenesis(ctx sdk.Context, keeper Keeper) types.GenesisState
ExportGenesis exports transfer module's portID into its geneis state
func InitGenesis ¶
func InitGenesis(ctx sdk.Context, keeper Keeper, state types.GenesisState)
InitGenesis binds to portid from genesis state
func NewHandler ¶
NewHandler returns sdk.Handler for IBC token transfer module messages
Types ¶
type AppModule ¶
type AppModule struct { AppModuleBasic // contains filtered or unexported fields }
AppModule represents the AppModule for this module
func NewAppModule ¶
NewAppModule creates a new 20-transfer module
func (AppModule) BeginBlock ¶
func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock)
BeginBlock implements the AppModule interface
func (AppModule) EndBlock ¶
func (am AppModule) EndBlock(ctx sdk.Context, req abci.RequestEndBlock) []abci.ValidatorUpdate
EndBlock implements the AppModule interface
func (AppModule) ExportGenesis ¶
func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONMarshaler) json.RawMessage
func (AppModule) GenerateGenesisState ¶
func (AppModule) GenerateGenesisState(simState *module.SimulationState)
GenerateGenesisState creates a randomized GenState of the transfer module.
func (AppModule) InitGenesis ¶
func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONMarshaler, data json.RawMessage) []abci.ValidatorUpdate
InitGenesis performs genesis initialization for the ibc transfer module. It returns no validator updates.
func (AppModule) NewHandler ¶
NewHandler implements the AppModule interface
func (AppModule) NewQuerierHandler ¶
NewQuerierHandler implements the AppModule interface
func (AppModule) OnAcknowledgementPacket ¶
func (AppModule) OnChanCloseConfirm ¶
func (AppModule) OnChanCloseInit ¶
func (AppModule) OnChanOpenAck ¶
func (AppModule) OnChanOpenConfirm ¶
func (AppModule) OnChanOpenInit ¶
func (am AppModule) OnChanOpenInit( ctx sdk.Context, order channeltypes.Order, connectionHops []string, portID string, channelID string, chanCap *capability.Capability, counterparty channeltypes.Counterparty, version string, ) error
Implement IBCModule callbacks
func (AppModule) OnChanOpenTry ¶
func (am AppModule) OnChanOpenTry( ctx sdk.Context, order channeltypes.Order, connectionHops []string, portID, channelID string, chanCap *capability.Capability, counterparty channeltypes.Counterparty, version, counterpartyVersion string, ) error
func (AppModule) OnRecvPacket ¶
func (AppModule) OnTimeoutPacket ¶
func (AppModule) ProposalContents ¶
func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedProposalContent
ProposalContents doesn't return any content functions for governance proposals.
func (AppModule) QuerierRoute ¶
QuerierRoute implements the AppModule interface
func (AppModule) RandomizedParams ¶
func (AppModule) RandomizedParams(_ *rand.Rand) []simtypes.ParamChange
RandomizedParams returns nil.
func (AppModule) RegisterInvariants ¶
func (AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
RegisterInvariants implements the AppModule interface
func (AppModule) RegisterStoreDecoder ¶
func (am AppModule) RegisterStoreDecoder(_ sdk.StoreDecoderRegistry)
RegisterStoreDecoder registers a decoder for transfer module's types
func (AppModule) WeightedOperations ¶
func (am AppModule) WeightedOperations(_ module.SimulationState) []simtypes.WeightedOperation
WeightedOperations returns the all the transfer module operations with their respective weights.
type AppModuleBasic ¶
type AppModuleBasic struct{}
AppModuleBasic is the 20-transfer appmodulebasic
func (AppModuleBasic) DefaultGenesis ¶
func (AppModuleBasic) DefaultGenesis(cdc codec.JSONMarshaler) json.RawMessage
DefaultGenesis returns default genesis state as raw bytes for the ibc transfer module.
func (AppModuleBasic) GetQueryCmd ¶
func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
GetQueryCmd implements AppModuleBasic interface
func (AppModuleBasic) GetTxCmd ¶
func (AppModuleBasic) GetTxCmd(ctx context.CLIContext) *cobra.Command
GetTxCmd implements AppModuleBasic interface
func (AppModuleBasic) Name ¶
func (AppModuleBasic) Name() string
Name implements AppModuleBasic interface
func (AppModuleBasic) RegisterCodec ¶
func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
RegisterCodec implements AppModuleBasic interface
func (AppModuleBasic) RegisterInterfaceTypes ¶
func (AppModuleBasic) RegisterInterfaceTypes(registry cdctypes.InterfaceRegistry)
RegisterInterfaceTypes registers module concrete types into protobuf Any.
func (AppModuleBasic) RegisterRESTRoutes ¶
func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
RegisterRESTRoutes implements AppModuleBasic interface
func (AppModuleBasic) ValidateGenesis ¶
func (AppModuleBasic) ValidateGenesis(cdc codec.JSONMarshaler, bz json.RawMessage) error
ValidateGenesis performs genesis state validation for the ibc transfer module.
type BankKeeper ¶
type BankKeeper = types.BankKeeper
type ChannelKeeper ¶
type ChannelKeeper = types.ChannelKeeper
type ClientKeeper ¶
type ClientKeeper = types.ClientKeeper
type ConnectionKeeper ¶
type ConnectionKeeper = types.ConnectionKeeper
type FungibleTokenPacketAcknowledgement ¶
type FungibleTokenPacketAcknowledgement = types.FungibleTokenPacketAcknowledgement
type FungibleTokenPacketData ¶
type FungibleTokenPacketData = types.FungibleTokenPacketData
type MsgTransfer ¶
type MsgTransfer = types.MsgTransfer