cross

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: Apache-2.0 Imports: 26 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

	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

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

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 ChannelInfoResolver added in v0.0.6

type ChannelInfoResolver = types.ChannelInfoResolver

nolint

type ChannelResolver added in v0.0.6

type ChannelResolver = types.ChannelResolver

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 ContractRuntimeInfo added in v0.0.5

type ContractRuntimeInfo = types.ContractRuntimeInfo

nolint

type ContractTransaction

type ContractTransaction = types.ContractTransaction

nolint

type ContractTransactionInfo added in v0.0.5

type ContractTransactionInfo = types.ContractTransactionInfo

nolint

type ContractTransactions

type ContractTransactions = types.ContractTransactions

nolint

type FakeResolver added in v0.0.5

type FakeResolver = types.FakeResolver

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 Link = types.Link

nolint

type LinkType added in v0.0.5

type LinkType = types.LinkType

nolint

type MsgInitiate

type MsgInitiate = types.MsgInitiate

nolint

type OP

type OP = types.OP

nolint

type OPs

type OPs = types.OPs

nolint

type Object added in v0.0.5

type Object = types.Object

nolint

type ObjectResolver added in v0.0.5

type ObjectResolver = types.ObjectResolver

nolint

type ObjectResolverProvider added in v0.0.5

type ObjectResolverProvider = types.ObjectResolverProvider

nolint

type ObjectType added in v0.0.5

type ObjectType = types.ObjectType

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 PacketDataPayload added in v0.0.6

type PacketDataPayload = types.PacketDataPayload

nolint

type PacketReceiver

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

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 SequentialResolver added in v0.0.5

type SequentialResolver = types.SequentialResolver

nolint

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

Jump to

Keyboard shortcuts

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