transfer

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2021 License: Apache-2.0 Imports: 24 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
	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) 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

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

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

func (AppModule) QuerierRoute

func (AppModule) QuerierRoute() string

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

func (AppModule) Route() string

Route implements the AppModule interface

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

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