ibc

package
v0.8.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultCodespace sdk.CodespaceType = 3

	// IBC errors reserve 200 - 299.
	CodeInvalidSequence sdk.CodeType = 200
	CodeIdenticalChains sdk.CodeType = 201
	CodeUnknownRequest  sdk.CodeType = sdk.CodeUnknownRequest
)

IBC errors reserve 200 ~ 299.

Variables

This section is empty.

Functions

func EgressKey

func EgressKey(destChain string, index int64) []byte

Stores an outgoing IBC packet under "egress/chain_id/index".

func EgressLengthKey

func EgressLengthKey(destChain string) []byte

Stores the number of outgoing IBC packets under "egress/index".

func ErrIdenticalChains

func ErrIdenticalChains(codespace sdk.CodespaceType) sdk.Error

func ErrInvalidSequence

func ErrInvalidSequence(codespace sdk.CodespaceType) sdk.Error

nolint

func IngressSequenceKey

func IngressSequenceKey(srcChain string) []byte

Stores the sequence number of incoming IBC packet under "ingress/index".

func MarshalBinaryLengthPrefixedPanic added in v0.7.0

func MarshalBinaryLengthPrefixedPanic(cdc *codec.Codec, value interface{}) []byte

func NewHandler

func NewHandler(ibcm Mapper, ck bank.Keeper) sdk.Handler

func RegisterCodec added in v0.7.0

func RegisterCodec(cdc *codec.Codec)

Register concrete types on codec codec

Types

type IBCGetMsg

type IBCGetMsg struct {
	Addr sdk.AccAddress
}

func NewIBCGetMsg

func NewIBCGetMsg(addr sdk.AccAddress) IBCGetMsg

func (IBCGetMsg) GetSignBytes

func (msg IBCGetMsg) GetSignBytes() []byte

func (IBCGetMsg) GetSigners

func (msg IBCGetMsg) GetSigners() []sdk.AccAddress

func (IBCGetMsg) Route added in v0.7.0

func (msg IBCGetMsg) Route() string

func (IBCGetMsg) Type

func (msg IBCGetMsg) Type() string

func (IBCGetMsg) ValidateBasic

func (msg IBCGetMsg) ValidateBasic() sdk.Error

type IBCSetMsg

type IBCSetMsg struct {
	Addr sdk.AccAddress
}

func NewIBCSetMsg

func NewIBCSetMsg(addr sdk.AccAddress) IBCSetMsg

func (IBCSetMsg) GetSignBytes

func (msg IBCSetMsg) GetSignBytes() []byte

func (IBCSetMsg) GetSigners

func (msg IBCSetMsg) GetSigners() []sdk.AccAddress

func (IBCSetMsg) Route added in v0.7.0

func (msg IBCSetMsg) Route() string

func (IBCSetMsg) Type

func (msg IBCSetMsg) Type() string

func (IBCSetMsg) ValidateBasic

func (msg IBCSetMsg) ValidateBasic() sdk.Error

type Mapper

type Mapper struct {
	// contains filtered or unexported fields
}

IBC Mapper

func NewMapper

func NewMapper(cdc *codec.Codec, key sdk.StoreKey, codespace sdk.CodespaceType) Mapper

XXX: The Mapper should not take a CoinKeeper. Rather have the CoinKeeper take an Mapper.

func (Mapper) Get

func (ibcm Mapper) Get(ctx sdk.Context) (string, bool)

func (Mapper) GetIngressSequence

func (ibcm Mapper) GetIngressSequence(ctx sdk.Context, srcChain string) int64

TODO add description

func (Mapper) Set

func (ibcm Mapper) Set(ctx sdk.Context, Addr string)

func (Mapper) SetIngressSequence

func (ibcm Mapper) SetIngressSequence(ctx sdk.Context, srcChain string, sequence int64)

TODO add description

Directories

Path Synopsis
client
cli

Jump to

Keyboard shortcuts

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