Documentation ¶
Index ¶
- Constants
- Variables
- func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState) []abci.ValidatorUpdate
- func NewHandler(keeper Keeper) 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 Committer
- type ContractCallInfo
- type ContractCallResult
- type ContractHandler
- type ContractHandlerResult
- type ContractTransaction
- type ContractTransactions
- type GenesisState
- type Keeper
- type MsgInitiate
- type OP
- type OPs
- type PacketAcknowledgement
- type PacketAcknowledgementReceiver
- type PacketCommitAcknowledgement
- type PacketData
- type PacketDataCommit
- type PacketDataPrepare
- type PacketPrepareAcknowledgement
- type PacketReceiver
- 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 TX_STATUS_PREPARE = types.TX_STATUS_PREPARE TX_STATUS_COMMIT = types.TX_STATUS_COMMIT TX_STATUS_ABORT = types.TX_STATUS_ABORT PREPARE_RESULT_OK = types.PREPARE_RESULT_OK PREPARE_RESULT_FAILED = types.PREPARE_RESULT_FAILED TypeInitiate = types.TypeInitiate TypePrepare = types.TypePrepare TypePrepareResult = types.TypePrepareResult TypeCommit = types.TypeCommit NoStateConstraint = types.NoStateConstraint ExactMatchStateConstraint = types.ExactMatchStateConstraint PreStateConstraint = types.PreStateConstraint PostStateConstraint = types.PostStateConstraint )
nolint
Variables ¶
var ( NewKeeper = keeper.NewKeeper NewQuerier = keeper.NewQuerier MakeTxID = keeper.MakeTxID MakeStoreTransactionID = keeper.MakeStoreTransactionID ModuleCdc = types.ModuleCdc RegisterCodec = types.RegisterCodec SignersFromContext = types.SignersFromContext WithSigners = types.WithSigners NewMsgInitiate = types.NewMsgInitiate NewContractTransaction = types.NewContractTransaction NewStateConstraint = types.NewStateConstraint NewChannelInfo = types.NewChannelInfo NewPacketDataPrepare = types.NewPacketDataPrepare NewPacketPrepareAcknowledgement = types.NewPacketPrepareAcknowledgement NewPacketDataCommit = types.NewPacketDataCommit NewPacketCommitAcknowledgement = types.NewPacketCommitAcknowledgement )
nolint
Functions ¶
func InitGenesis ¶
func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState) []abci.ValidatorUpdate
InitGenesis inits genesis
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, 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 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 PacketAcknowledgementReceiver ¶
type PacketAcknowledgementReceiver func(ctx sdk.Context, packet channeltypes.Packet, ack PacketAcknowledgement) (*sdk.Result, error)
func NewPacketAcknowledgementReceiver ¶
func NewPacketAcknowledgementReceiver(keeper Keeper) PacketAcknowledgementReceiver
type PacketCommitAcknowledgement ¶
type PacketCommitAcknowledgement = types.PacketCommitAcknowledgement
nolint
type PacketPrepareAcknowledgement ¶
type PacketPrepareAcknowledgement = types.PacketPrepareAcknowledgement
nolint
type PacketReceiver ¶
func NewPacketReceiver ¶
func NewPacketReceiver(keeper Keeper, contractHandler ContractHandler) PacketReceiver
type StateConstraintType ¶ added in v0.0.3
type StateConstraintType = types.StateConstraintType
nolint