cross

package
v0.0.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

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

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

func NewHandler(keeper Keeper) sdk.Handler

NewHandler returns a 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, 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

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

func (AppModule) Name() string

Name returns module name

func (AppModule) NewHandler

func (am AppModule) NewHandler() sdk.Handler

NewHandler returns new Handler

func (AppModule) NewQuerierHandler

func (am AppModule) NewQuerierHandler() sdk.Querier

NewQuerierHandler returns new Querier

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 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 (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 (am AppModule) QuerierRoute() string

QuerierRoute returns module name

func (AppModule) RegisterInvariants

func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)

RegisterInvariants is empty

func (AppModule) Route

func (am AppModule) Route() string

Route returns RouterKey

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

func (AppModuleBasic) Name() string

Name returns module name

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 ChannelInfo

type ChannelInfo = types.ChannelInfo

nolint

type Committer

type Committer = types.Committer

nolint

type ContractCallInfo added in v0.0.3

type ContractCallInfo = types.ContractCallInfo

nolint

type ContractCallResult

type ContractCallResult = types.ContractCallResult

nolint

type ContractHandler

type ContractHandler = types.ContractHandler

nolint

type ContractHandlerResult

type ContractHandlerResult = types.ContractHandlerResult

nolint

type ContractTransaction

type ContractTransaction = types.ContractTransaction

nolint

type ContractTransactions

type ContractTransactions = types.ContractTransactions

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 Keeper

type Keeper = keeper.Keeper

nolint

type MsgInitiate

type MsgInitiate = types.MsgInitiate

nolint

type OP

type OP = types.OP

nolint

type OPs

type OPs = types.OPs

nolint

type PacketAcknowledgement

type PacketAcknowledgement = types.PacketAcknowledgement

nolint

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 PacketData

type PacketData = types.PacketData

nolint

type PacketDataCommit

type PacketDataCommit = types.PacketDataCommit

nolint

type PacketDataPrepare

type PacketDataPrepare = types.PacketDataPrepare

nolint

type PacketPrepareAcknowledgement

type PacketPrepareAcknowledgement = types.PacketPrepareAcknowledgement

nolint

type PacketReceiver

type PacketReceiver func(ctx sdk.Context, packet channeltypes.Packet) (*sdk.Result, error)

func NewPacketReceiver

func NewPacketReceiver(keeper Keeper, contractHandler ContractHandler) PacketReceiver

type State

type State = types.State

nolint

type StateConstraint added in v0.0.3

type StateConstraint = types.StateConstraint

nolint

type StateConstraintType added in v0.0.3

type StateConstraintType = types.StateConstraintType

nolint

type Store

type Store = types.Store

nolint

type TxID

type TxID = types.TxID

nolint

type TxIndex

type TxIndex = types.TxIndex

nolint

Directories

Path Synopsis
client
cli

Jump to

Keyboard shortcuts

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