transfer

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
var (
	// functions aliases
	NewKeeper            = keeper.NewKeeper
	RegisterCodec        = types.RegisterCodec
	GetEscrowAddress     = types.GetEscrowAddress
	GetDenomPrefix       = types.GetDenomPrefix
	GetModuleAccountName = types.GetModuleAccountName
	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

func NewHandler(k Keeper) sdk.Handler

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

func NewAppModule(k Keeper) AppModule

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

func (am AppModule) NewHandler() sdk.Handler

NewHandler implements the AppModule interface

func (AppModule) NewQuerierHandler

func (am AppModule) NewQuerierHandler() sdk.Querier

NewQuerierHandler implements the AppModule interface

func (AppModule) OnAcknowledgementPacket

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

func (AppModule) OnChanCloseConfirm

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

func (AppModule) OnChanCloseInit

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

func (AppModule) OnChanOpenAck

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

func (AppModule) OnChanOpenConfirm

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

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 (am AppModule) OnRecvPacket(
	ctx sdk.Context,
	packet channeltypes.Packet,
) (*sdk.Result, error)

func (AppModule) OnTimeoutPacket

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

func (AppModule) QuerierRoute

func (AppModule) QuerierRoute() string

QuerierRoute implements the AppModule interface

func (AppModule) RegisterInvariants

func (AppModule) RegisterInvariants(ir sdk.InvariantRegistry)

RegisterInvariants implements the AppModule interface

func (AppModule) Route

func (AppModule) Route() string

Route implements the AppModule interface

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(cdc *codec.Codec) *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(_ codec.JSONMarshaler, _ 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 Keeper

type Keeper = keeper.Keeper

type MsgTransfer

type MsgTransfer = types.MsgTransfer

Directories

Path Synopsis
client
cli

Jump to

Keyboard shortcuts

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