Documentation ¶
Index ¶
- Constants
- Variables
- func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState) []abci.ValidatorUpdate
- func NewHandler(keeper Keeper, packetMiddleware types.PacketMiddleware, ...) sdk.Handler
- func ValidateGenesis(data GenesisState) error
- type AppModule
- func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
- func (am AppModule) EndBlock(sdk.Context, abci.RequestEndBlock) []abci.ValidatorUpdate
- func (am AppModule) ExportGenesis(ctx sdk.Context, m codec.JSONMarshaler) json.RawMessage
- func (am AppModule) InitGenesis(ctx sdk.Context, m codec.JSONMarshaler, data json.RawMessage) []abci.ValidatorUpdate
- func (AppModule) Name() string
- 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 channelexported.Order, connectionHops []string, ...) error
- func (am AppModule) OnChanOpenTry(ctx sdk.Context, order channelexported.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 (am AppModule) QuerierRoute() string
- func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
- func (am AppModule) Route() string
- type AppModuleBasic
- func (AppModuleBasic) DefaultGenesis(m codec.JSONMarshaler) json.RawMessage
- func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) Name() string
- func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
- func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
- func (AppModuleBasic) ValidateGenesis(m codec.JSONMarshaler, bz json.RawMessage) error
- type ChannelInfo
- type ChannelInfoResolver
- type ChannelResolver
- type Committer
- type ContractCallInfo
- type ContractCallResult
- type ContractHandler
- type ContractHandlerResult
- type ContractRuntimeInfo
- type ContractTransaction
- type ContractTransactionInfo
- type ContractTransactions
- type FakeResolver
- type GenesisState
- type Keeper
- type Link
- type LinkType
- type MsgInitiate
- type OP
- type OPs
- type Object
- type ObjectResolver
- type ObjectResolverProvider
- type ObjectType
- type PacketAcknowledgementPayload
- type PacketAcknowledgementReceiver
- type PacketDataPayload
- type PacketReceiver
- type SequentialResolver
- type State
- type StateConstraint
- type StateConstraintType
- type Store
- type TxID
- type TxIndex
Constants ¶
const ( ModuleName = types.ModuleName RouterKey = types.RouterKey StoreKey = types.StoreKey QuerierRoute = types.QuerierRoute CO_STATUS_NONE = types.CO_STATUS_NONE CO_STATUS_INIT = types.CO_STATUS_INIT CO_STATUS_DECIDED = types.CO_STATUS_DECIDED CO_DECISION_NONE = types.CO_DECISION_NONE CO_DECISION_COMMIT = types.CO_DECISION_COMMIT CO_DECISION_ABORT = types.CO_DECISION_ABORT COMMIT_PROTOCOL_SIMPLE = types.COMMIT_PROTOCOL_SIMPLE COMMIT_PROTOCOL_TPC = types.COMMIT_PROTOCOL_TPC TX_STATUS_PREPARE = types.TX_STATUS_PREPARE TX_STATUS_COMMIT = types.TX_STATUS_COMMIT TX_STATUS_ABORT = types.TX_STATUS_ABORT TypeInitiate = types.TypeInitiate NoStateConstraint = types.NoStateConstraint ExactMatchStateConstraint = types.ExactMatchStateConstraint PreStateConstraint = types.PreStateConstraint PostStateConstraint = types.PostStateConstraint )
nolint
Variables ¶
var ( NewKeeper = keeper.NewKeeper NewQuerier = keeper.NewQuerier MakeTxID = common.MakeTxID MakeStoreTransactionID = common.MakeStoreTransactionID ModuleCdc = types.ModuleCdc RegisterCodec = types.RegisterCodec SignersFromContext = types.SignersFromContext WithSigners = types.WithSigners NewMsgInitiate = types.NewMsgInitiate NewContractTransaction = types.NewContractTransaction NewStateConstraint = types.NewStateConstraint NewReturnValue = types.NewReturnValue NewChannelInfo = types.NewChannelInfo NewCallResultLink = types.NewCallResultLink MakeObjectKey = types.MakeObjectKey DefaultResolverProvider = types.DefaultResolverProvider NewFakeResolver = types.NewFakeResolver )
nolint
Functions ¶
func InitGenesis ¶
func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState) []abci.ValidatorUpdate
InitGenesis inits genesis
func NewHandler ¶
func NewHandler(keeper Keeper, packetMiddleware types.PacketMiddleware, contractHandler ContractHandler) sdk.Handler
NewHandler returns a new sdk.Handler
func ValidateGenesis ¶
func ValidateGenesis(data GenesisState) error
ValidateGenesis checks the Genesis
Types ¶
type AppModule ¶
type AppModule struct { AppModuleBasic // contains filtered or unexported fields }
AppModule struct
func NewAppModule ¶
func NewAppModule(k Keeper, packetMiddleware types.PacketMiddleware, contractHandler ContractHandler) AppModule
NewAppModule creates a new AppModule Object
func (AppModule) BeginBlock ¶
func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
BeginBlock is a callback function
func (AppModule) EndBlock ¶
func (am AppModule) EndBlock(sdk.Context, abci.RequestEndBlock) []abci.ValidatorUpdate
EndBlock is a callback function
func (AppModule) ExportGenesis ¶
func (am AppModule) ExportGenesis(ctx sdk.Context, m codec.JSONMarshaler) json.RawMessage
ExportGenesis exports genesis
func (AppModule) InitGenesis ¶
func (am AppModule) InitGenesis(ctx sdk.Context, m codec.JSONMarshaler, data json.RawMessage) []abci.ValidatorUpdate
InitGenesis inits genesis
func (AppModule) NewHandler ¶
NewHandler returns new Handler
func (AppModule) NewQuerierHandler ¶
NewQuerierHandler returns new Querier
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 channelexported.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 channelexported.Order, connectionHops []string, portID, channelID string, chanCap *capability.Capability, counterparty channeltypes.Counterparty, version, counterpartyVersion string, ) error
func (AppModule) OnRecvPacket ¶
func (AppModule) OnTimeoutPacket ¶
func (AppModule) QuerierRoute ¶
QuerierRoute returns module name
func (AppModule) RegisterInvariants ¶
func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
RegisterInvariants is empty
type AppModuleBasic ¶
type AppModuleBasic struct{}
AppModuleBasic is an app module Basics object
func (AppModuleBasic) DefaultGenesis ¶
func (AppModuleBasic) DefaultGenesis(m codec.JSONMarshaler) json.RawMessage
DefaultGenesis returns default genesis state
func (AppModuleBasic) GetQueryCmd ¶
func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
GetQueryCmd returns the root query command of this module
func (AppModuleBasic) GetTxCmd ¶
func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
GetTxCmd returns the root tx command of this module
func (AppModuleBasic) RegisterCodec ¶
func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
RegisterCodec returns RegisterCodec
func (AppModuleBasic) RegisterRESTRoutes ¶
func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
RegisterRESTRoutes returns rest routes
func (AppModuleBasic) ValidateGenesis ¶
func (AppModuleBasic) ValidateGenesis(m codec.JSONMarshaler, bz json.RawMessage) error
ValidateGenesis checks the Genesis
type ChannelInfoResolver ¶ added in v0.0.6
type ChannelInfoResolver = types.ChannelInfoResolver
nolint
type ContractRuntimeInfo ¶ added in v0.0.5
type ContractRuntimeInfo = types.ContractRuntimeInfo
nolint
type ContractTransactionInfo ¶ added in v0.0.5
type ContractTransactionInfo = types.ContractTransactionInfo
nolint
type GenesisState ¶
type GenesisState struct { }
GenesisState is genesis state
func DefaultGenesisState ¶
func DefaultGenesisState() GenesisState
DefaultGenesisState returns default genesis state
func ExportGenesis ¶
func ExportGenesis(ctx sdk.Context, k Keeper) GenesisState
ExportGenesis exports genesis
func NewGenesisState ¶
func NewGenesisState(master string) GenesisState
NewGenesisState is a constructor of GenesisState
type ObjectResolverProvider ¶ added in v0.0.5
type ObjectResolverProvider = types.ObjectResolverProvider
nolint
type PacketAcknowledgementPayload ¶ added in v0.0.6
type PacketAcknowledgementPayload = types.PacketAcknowledgementPayload
nolint
type PacketAcknowledgementReceiver ¶
type PacketAcknowledgementReceiver func(ctx sdk.Context, packet channeltypes.Packet, ack types.IncomingPacketAcknowledgement) (*sdk.Result, error)
PacketAcknowledgementReceiver is a packet acknowledgement receiver
func NewPacketAcknowledgementReceiver ¶
func NewPacketAcknowledgementReceiver(keeper Keeper, packetMiddleware types.PacketMiddleware, contractHandler ContractHandler) PacketAcknowledgementReceiver
NewPacketAcknowledgementReceiver returns a PacketAcknowledgementReceiver
type PacketReceiver ¶
PacketReceiver is a receiver that handles a packet
func NewPacketReceiver ¶
func NewPacketReceiver(keeper Keeper, packetMiddleware types.PacketMiddleware, contractHandler ContractHandler) PacketReceiver
NewPacketReceiver returns a new PacketReceiver
type StateConstraintType ¶ added in v0.0.3
type StateConstraintType = types.StateConstraintType
nolint