Documentation ¶
Index ¶
- Constants
- Variables
- type ChannelOrder
- type ChannelState
- type MockProver
- type MsgChannelOpenAck
- type MsgChannelOpenConfirm
- type MsgChannelOpenInit
- type MsgChannelOpenTry
- type MsgConnectionOpenAck
- type MsgConnectionOpenConfirm
- type MsgConnectionOpenInit
- type MsgConnectionOpenTry
- type MsgCreateClient
- type MsgUpdateClient
- type Proof
- type TestChainI
Constants ¶
View Source
const ( // Default params constants used to create a TM client TrustingPeriod time.Duration = time.Hour * 24 * 7 * 2 UnbondingPeriod time.Duration = time.Hour * 24 * 7 * 3 MaxClockDrift time.Duration = time.Second * 10 DefaultDelayPeriod uint64 = 0 DefaultChannelVersion = ibctransfertypes.Version DefaultPrefix = "ibc" TransferPort = ibctransfertypes.ModuleName RelayerKeyIndex uint32 = 0 )
Variables ¶
View Source
var ( DefaultOpenInitVersion *connectiontypes.Version // Default params variables used to create a TM client DefaultTrustLevel ibctmtypes.Fraction = ibctmtypes.DefaultTrustLevel TestCoin = sdk.NewCoin(sdk.DefaultBondDenom, sdk.NewInt(100)) UpgradePath = []string{"upgrade", "upgradedIBCState"} ConnectionVersion = connectiontypes.ExportedVersionsToProto(connectiontypes.GetCompatibleVersions())[0] )
Functions ¶
This section is empty.
Types ¶
type ChannelOrder ¶
type ChannelOrder int32
const ( NONE ChannelOrder = 0 UNORDERED ChannelOrder = 1 ORDERED ChannelOrder = 2 )
type ChannelState ¶
type ChannelState int32
const ( UNINITIALIZED ChannelState = 0 INIT ChannelState = 1 TRYOPEN ChannelState = 2 OPEN ChannelState = 3 CLOSED ChannelState = 4 )
type MockProver ¶
type MockProver interface { MockConnectionProof(connectionID string, proof *Proof) (*Proof, error) MockChannelProof(portID string, channelID string, proof *Proof) (*Proof, error) MockPacketProof(packet exported.PacketI, proof *Proof) (*Proof, error) MockAcknowledgementProof(ack []byte, proof *Proof) (*Proof, error) }
type MsgChannelOpenAck ¶
type MsgChannelOpenConfirm ¶
type MsgChannelOpenInit ¶
type MsgChannelOpenTry ¶
type MsgConnectionOpenAck ¶
type MsgConnectionOpenInit ¶
type MsgConnectionOpenTry ¶
type MsgConnectionOpenTry struct { ClientID string PreviousConnectionID string ClientStateBytes []byte CounterpartyClientID string CounterpartyConnectionID string CounterpartyKeyPrefix []byte DelayPeriod uint64 Versions []exported.Version ProofInit *Proof ProofClient *Proof ProofConsensus *Proof ConsensusHeight exported.Height Signer string }
type MsgCreateClient ¶
type MsgUpdateClient ¶
type TestChainI ¶
type TestChainI interface { T() *testing.T Init(chainID string) error ChainID() string GetCommitmentPrefix() []byte GetSenderAddress() string NextBlock() GetClientStateBytes(counterpartyClientID string) []byte GetLatestHeight(counterpartyClientID string, clientType string) exported.Height ConstructTendermintMsgCreateClient( trustLevel ibctmtypes.Fraction, trustingPeriod, unbondingPeriod, maxClockDrift time.Duration, upgradePath []string, allowUpdateAfterExpiry, allowUpdateAfterMisbehaviour bool) MsgCreateClient ConstructMockMsgCreateClient() MsgCreateClient ConstructTrustedEthereumMsgCreateClient(publicKey cryptotypes.PubKey, diversifier string) MsgCreateClient CreateClient(ctx context.Context, msg MsgCreateClient) (string, error) ConstructTendermintUpdateTMClientHeader(counterparty TestChainI, clientID string) MsgUpdateClient ConstructMockMsgUpdateClient(clientID string) MsgUpdateClient ConstructTrustedEthereumMsgUpdateClient(clientID string, privateKey cryptotypes.PrivKey, divisifier string) MsgUpdateClient UpdateClient(ctx context.Context, msg MsgUpdateClient) error ConnectionOpenInit(ctx context.Context, msg MsgConnectionOpenInit) (string, error) ConnectionOpenTry(ctx context.Context, msg MsgConnectionOpenTry) (string, error) ConnectionOpenAck(ctx context.Context, msg MsgConnectionOpenAck) error ConnectionOpenConfirm(ctx context.Context, msg MsgConnectionOpenConfirm) error ChannelOpenInit(ctx context.Context, msg MsgChannelOpenInit) (string, error) ChannelOpenTry(ctx context.Context, msg MsgChannelOpenTry) (string, error) ChannelOpenAck(ctx context.Context, msg MsgChannelOpenAck) error ChannelOpenConfirm(ctx context.Context, msg MsgChannelOpenConfirm) error HandlePacketRecv(ctx context.Context, packet exported.PacketI, proof *Proof) error HandlePacketAcknowledgement( ctx context.Context, packet exported.PacketI, acknowledgement []byte, proof *Proof, ) error ClientStateCommitmentKey(clientID string) []byte ConsensusStateCommitmentKey(clientID string, height exported.Height) []byte ConnectionStateCommitmentKey(connectionID string) []byte ChannelStateCommitmentKey(portID, channelID string) []byte PacketCommitmentKey(portID, channelID string, sequence uint64) []byte PacketAcknowledgementCommitmentKey(portID, channelID string, sequence uint64) []byte QueryProofAtHeight(key []byte, height exported.Height, clientType string) (*Proof, error) }
Click to show internal directories.
Click to hide internal directories.