cosmos-sdk: github.com/cosmos/cosmos-sdk/x/ibc-transfer Index | Files | Directories

package transfer

import "github.com/cosmos/cosmos-sdk/x/ibc-transfer"

Index

Package Files

genesis.go handler.go module.go

func ExportGenesis Uses

func ExportGenesis(ctx sdk.Context, keeper keeper.Keeper) *types.GenesisState

ExportGenesis exports transfer module's portID into its geneis state

func InitGenesis Uses

func InitGenesis(ctx sdk.Context, keeper keeper.Keeper, state types.GenesisState)

InitGenesis binds to portid from genesis state

func NewHandler Uses

func NewHandler(k keeper.Keeper) sdk.Handler

NewHandler returns sdk.Handler for IBC token transfer module messages

type AppModule Uses

type AppModule struct {
    AppModuleBasic
    // contains filtered or unexported fields
}

AppModule represents the AppModule for this module

func NewAppModule Uses

func NewAppModule(k keeper.Keeper) AppModule

NewAppModule creates a new 20-transfer module

func (AppModule) BeginBlock Uses

func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock)

BeginBlock implements the AppModule interface

func (AppModule) EndBlock Uses

func (am AppModule) EndBlock(ctx sdk.Context, req abci.RequestEndBlock) []abci.ValidatorUpdate

EndBlock implements the AppModule interface

func (AppModule) ExportGenesis Uses

func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONMarshaler) json.RawMessage

func (AppModule) GenerateGenesisState Uses

func (AppModule) GenerateGenesisState(simState *module.SimulationState)

GenerateGenesisState creates a randomized GenState of the transfer module.

func (AppModule) InitGenesis Uses

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) LegacyQuerierHandler Uses

func (am AppModule) LegacyQuerierHandler(codec.JSONMarshaler) sdk.Querier

LegacyQuerierHandler implements the AppModule interface

func (AppModule) OnAcknowledgementPacket Uses

func (am AppModule) OnAcknowledgementPacket(
    ctx sdk.Context,
    packet channeltypes.Packet,
    acknowledgement []byte,
) (*sdk.Result, error)

func (AppModule) OnChanCloseConfirm Uses

func (am AppModule) OnChanCloseConfirm(
    ctx sdk.Context,
    portID,
    channelID string,
) error

func (AppModule) OnChanCloseInit Uses

func (am AppModule) OnChanCloseInit(
    ctx sdk.Context,
    portID,
    channelID string,
) error

func (AppModule) OnChanOpenAck Uses

func (am AppModule) OnChanOpenAck(
    ctx sdk.Context,
    portID,
    channelID string,
    counterpartyVersion string,
) error

func (AppModule) OnChanOpenConfirm Uses

func (am AppModule) OnChanOpenConfirm(
    ctx sdk.Context,
    portID,
    channelID string,
) error

func (AppModule) OnChanOpenInit Uses

func (am AppModule) OnChanOpenInit(
    ctx sdk.Context,
    order channeltypes.Order,
    connectionHops []string,
    portID string,
    channelID string,
    chanCap *capabilitytypes.Capability,
    counterparty channeltypes.Counterparty,
    version string,
) error

Implement IBCModule callbacks

func (AppModule) OnChanOpenTry Uses

func (am AppModule) OnChanOpenTry(
    ctx sdk.Context,
    order channeltypes.Order,
    connectionHops []string,
    portID,
    channelID string,
    chanCap *capabilitytypes.Capability,
    counterparty channeltypes.Counterparty,
    version,
    counterpartyVersion string,
) error

func (AppModule) OnRecvPacket Uses

func (am AppModule) OnRecvPacket(
    ctx sdk.Context,
    packet channeltypes.Packet,
) (*sdk.Result, []byte, error)

func (AppModule) OnTimeoutPacket Uses

func (am AppModule) OnTimeoutPacket(
    ctx sdk.Context,
    packet channeltypes.Packet,
) (*sdk.Result, error)

func (AppModule) ProposalContents Uses

func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedProposalContent

ProposalContents doesn't return any content functions for governance proposals.

func (AppModule) QuerierRoute Uses

func (AppModule) QuerierRoute() string

QuerierRoute implements the AppModule interface

func (AppModule) RandomizedParams Uses

func (AppModule) RandomizedParams(_ *rand.Rand) []simtypes.ParamChange

RandomizedParams returns nil.

func (AppModule) RegisterInvariants Uses

func (AppModule) RegisterInvariants(ir sdk.InvariantRegistry)

RegisterInvariants implements the AppModule interface

func (AppModule) RegisterQueryService Uses

func (am AppModule) RegisterQueryService(grpc.Server)

RegisterQueryService registers a GRPC query service to respond to the module-specific GRPC queries.

func (AppModule) RegisterStoreDecoder Uses

func (am AppModule) RegisterStoreDecoder(_ sdk.StoreDecoderRegistry)

RegisterStoreDecoder registers a decoder for transfer module's types

func (AppModule) Route Uses

func (am AppModule) Route() sdk.Route

Route implements the AppModule interface

func (AppModule) WeightedOperations Uses

func (am AppModule) WeightedOperations(_ module.SimulationState) []simtypes.WeightedOperation

WeightedOperations returns the all the transfer module operations with their respective weights.

type AppModuleBasic Uses

type AppModuleBasic struct{}

AppModuleBasic is the 20-transfer appmodulebasic

func (AppModuleBasic) DefaultGenesis Uses

func (AppModuleBasic) DefaultGenesis(cdc codec.JSONMarshaler) json.RawMessage

DefaultGenesis returns default genesis state as raw bytes for the ibc transfer module.

func (AppModuleBasic) GetQueryCmd Uses

func (AppModuleBasic) GetQueryCmd() *cobra.Command

GetQueryCmd implements AppModuleBasic interface

func (AppModuleBasic) GetTxCmd Uses

func (AppModuleBasic) GetTxCmd() *cobra.Command

GetTxCmd implements AppModuleBasic interface

func (AppModuleBasic) Name Uses

func (AppModuleBasic) Name() string

Name implements AppModuleBasic interface

func (AppModuleBasic) RegisterCodec Uses

func (AppModuleBasic) RegisterCodec(*codec.LegacyAmino)

RegisterCodec implements AppModuleBasic interface

func (AppModuleBasic) RegisterInterfaces Uses

func (AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistry)

RegisterInterfaces registers module concrete types into protobuf Any.

func (AppModuleBasic) RegisterRESTRoutes Uses

func (AppModuleBasic) RegisterRESTRoutes(clientCtx client.Context, rtr *mux.Router)

RegisterRESTRoutes implements AppModuleBasic interface

func (AppModuleBasic) ValidateGenesis Uses

func (AppModuleBasic) ValidateGenesis(cdc codec.JSONMarshaler, config client.TxEncodingConfig, bz json.RawMessage) error

ValidateGenesis performs genesis state validation for the ibc transfer module.

Directories

PathSynopsis
client/cli
client/rest
keeper
simulation
types

Package transfer imports 23 packages (graph) and is imported by 1 packages. Updated 2020-08-13. Refresh now. Tools for package owners.