Documentation
¶
Index ¶
- type Channel
- type ChannelCounterparty
- type ConnectionCounterparty
- type ConnectionCounterpartyPrefix
- type ConnectionCounterpartyVersion
- type FungibleTokenPacketData
- type Height
- type LocalhostLightClient
- type LocalhostLightClientState
- type LocalhostLightClientStateHeight
- type MsgAcknowledgementFungibleTokenPacketData
- type MsgAcknowledgementParams
- type MsgAlreadyRelayedAcknowledgementFungibleTokenPacketData
- type MsgAlreadyRelayedAcknowledgementParams
- type MsgAlreadyRelayedRecvPacketFungibleTokenPacketData
- type MsgAlreadyRelayedRecvPacketParams
- type MsgChannelCloseConfirmParams
- type MsgChannelCloseInitParams
- type MsgChannelOpenAckParams
- type MsgChannelOpenConfirmParams
- type MsgChannelOpenInitParams
- type MsgChannelOpenTryParams
- type MsgConnectionOpenAckBaseParams
- type MsgConnectionOpenAckParams
- type MsgConnectionOpenConfirmParams
- type MsgConnectionOpenInitParams
- type MsgConnectionOpenTryBaseParams
- type MsgConnectionOpenTryParams
- type MsgCreateClientParams
- type MsgRecvPacketFungibleTokenDenominationTrace
- type MsgRecvPacketFungibleTokenPacketData
- type MsgRecvPacketPacketAck
- type MsgRecvPacketParams
- type MsgTimeoutMsgTransfer
- type MsgTimeoutOnCloseParams
- type MsgTimeoutParams
- type MsgTransferParams
- type MsgTransferToken
- type MsgUpdateClientParams
- type Packet
- type RawMsgAcknowledgement
- type RawMsgChannelCloseConfirm
- type RawMsgChannelCloseInit
- type RawMsgChannelOpenAck
- type RawMsgChannelOpenConfirm
- type RawMsgChannelOpenInit
- type RawMsgChannelOpenTry
- type RawMsgConnectionOpenAckTendermintClient
- type RawMsgConnectionOpenConfirm
- type RawMsgConnectionOpenInit
- type RawMsgConnectionOpenTryTendermintClient
- type RawMsgCreateLocalhostLightClient
- type RawMsgCreateSoloMachineLightClient
- type RawMsgCreateTendermintLightClient
- type RawMsgRecvPacket
- type RawMsgTimeout
- type RawMsgTimeoutOnClose
- type RawMsgTransfer
- type RawMsgUpdateSoloMachineLightClient
- type RawMsgUpdateTendermintLightClient
- type SoloMachineLightClient
- type SoloMachineLightClientConsensusState
- type SoloMachineLightClientConsensusStatePublicKey
- type SoloMachineLightClientHeader
- type SoloMachineLightClientPubKey
- type SoloMachineLightClientState
- type SoloMachineLightClientUpdate
- type TendermintLightClient
- type TendermintLightClientBlockID
- type TendermintLightClientCommit
- type TendermintLightClientConsensusState
- type TendermintLightClientHashOp
- type TendermintLightClientHeader
- type TendermintLightClientHeight
- type TendermintLightClientInnerSpec
- type TendermintLightClientLeafSpec
- type TendermintLightClientLengthOp
- type TendermintLightClientPartSetHeader
- type TendermintLightClientProofSpec
- type TendermintLightClientProposer
- type TendermintLightClientPubKey
- type TendermintLightClientRoot
- type TendermintLightClientSignature
- type TendermintLightClientSignedHeader
- type TendermintLightClientSignedHeaderHeader
- type TendermintLightClientState
- type TendermintLightClientTrustLevel
- type TendermintLightClientTrustedHeight
- type TendermintLightClientTrustedValidators
- type TendermintLightClientUpdate
- type TendermintLightClientVersion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct {
State string `mapstructure:"state" json:"state"`
Ordering string `mapstructure:"ordering" json:"ordering"`
Counterparty ChannelCounterparty `mapstructure:"counterparty" json:"counterparty"`
ConnectionHops []string `mapstructure:"connection_hops" json:"connectionHops"`
Version string `mapstructure:"version" json:"version"`
}
type ChannelCounterparty ¶
type ConnectionCounterparty ¶
type ConnectionCounterparty struct {
ClientID string `mapstructure:"client_id" json:"clientId"`
ConnectionID string `mapstructure:"connection_id" json:"connectionId"`
Prefix ConnectionCounterpartyPrefix `mapstructure:"prefix" json:"prefix"`
}
type ConnectionCounterpartyPrefix ¶
type ConnectionCounterpartyPrefix struct {
KeyPrefix []byte `mapstructure:"key_prefix" json:"keyPrefix"`
}
type FungibleTokenPacketData ¶
type FungibleTokenPacketData struct {
Sender string `mapstructure:"sender" json:"sender"`
Receiver string `mapstructure:"receiver" json:"receiver"`
Denom string `mapstructure:"denom" json:"denom"`
Amount *json.NumericString `mapstructure:"amount" json:"amount"`
}
type LocalhostLightClient ¶
type LocalhostLightClient struct {
LocalhostClientState LocalhostLightClientState `json:"clientState"`
}
type LocalhostLightClientState ¶
type LocalhostLightClientState struct {
Type string `mapstructure:"@type" json:"@type"`
ChainID string `mapstructure:"chain_id" json:"chainId"`
Height LocalhostLightClientStateHeight `mapstructure:"height" json:"height"`
}
type MsgAcknowledgementFungibleTokenPacketData ¶
type MsgAcknowledgementFungibleTokenPacketData struct {
FungibleTokenPacketData
Success bool `json:"success"`
Acknowledgement string `json:"acknowledgement"`
MaybeError *string `json:"error"`
}
type MsgAcknowledgementParams ¶
type MsgAcknowledgementParams struct {
RawMsgAcknowledgement
Application string `json:"application"`
MessageType string `json:"messageType"`
MaybeFungibleTokenPacketData *MsgAcknowledgementFungibleTokenPacketData `json:"maybeMsgTransfer"`
PacketSequence uint64 `json:"packetSequence,string"`
ChannelOrdering string `json:"channelOrdering"`
ConnectionID string `json:"connectionId"`
}
type MsgAlreadyRelayedAcknowledgementFungibleTokenPacketData ¶ added in v1.1.10
type MsgAlreadyRelayedAcknowledgementFungibleTokenPacketData struct {
FungibleTokenPacketData
Acknowledgement string `json:"acknowledgement"`
MaybeError *string `json:"error"`
}
type MsgAlreadyRelayedAcknowledgementParams ¶ added in v1.1.10
type MsgAlreadyRelayedAcknowledgementParams struct {
RawMsgAcknowledgement
Application string `json:"application"`
MessageType string `json:"messageType"`
MaybeFungibleTokenPacketData *MsgAlreadyRelayedAcknowledgementFungibleTokenPacketData `json:"maybeMsgTransfer"`
PacketSequence uint64 `json:"packetSequence,string"`
ChannelOrdering string `json:"channelOrdering"`
ConnectionID string `json:"connectionId"`
}
Already relayed message type
type MsgAlreadyRelayedRecvPacketFungibleTokenPacketData ¶ added in v1.1.10
type MsgAlreadyRelayedRecvPacketFungibleTokenPacketData struct {
FungibleTokenPacketData
MaybeDenominationTrace *MsgRecvPacketFungibleTokenDenominationTrace `json:"maybeDenominationTrace"`
}
type MsgAlreadyRelayedRecvPacketParams ¶ added in v1.1.10
type MsgAlreadyRelayedRecvPacketParams struct {
RawMsgRecvPacket
Application string `json:"application"`
MessageType string `json:"messageType"`
MaybeFungibleTokenPacketData *MsgAlreadyRelayedRecvPacketFungibleTokenPacketData `json:"maybeMsgTransfer"`
PacketSequence uint64 `json:"packetSequence,string"`
ChannelOrdering string `json:"channelOrdering"`
ConnectionID string `json:"connectionId"`
PacketAck MsgRecvPacketPacketAck `json:"packetAck"`
}
Already relayed message type
type MsgChannelCloseConfirmParams ¶
type MsgChannelCloseConfirmParams struct {
RawMsgChannelCloseConfirm
CounterpartyPortID string `json:"counterpartyPortId"`
CounterpartyChannelID string `json:"counterpartyChannelId"`
ConnectionID string `json:"connectionId"`
}
type MsgChannelCloseInitParams ¶
type MsgChannelCloseInitParams struct {
RawMsgChannelCloseInit
CounterpartyPortID string `json:"counterpartyPortId"`
CounterpartyChannelID string `json:"counterpartyChannelId"`
ConnectionID string `json:"connectionId"`
}
type MsgChannelOpenAckParams ¶
type MsgChannelOpenAckParams struct {
RawMsgChannelOpenAck
CounterpartyPortID string `json:"counterpartyPortId"`
ConnectionID string `json:"connectionId"`
}
type MsgChannelOpenConfirmParams ¶
type MsgChannelOpenConfirmParams struct {
RawMsgChannelOpenConfirm
CounterpartyChannelID string `json:"counterpartyChannelId"`
CounterpartyPortID string `json:"counterpartyPortId"`
ConnectionID string `json:"connectionId"`
}
type MsgChannelOpenInitParams ¶
type MsgChannelOpenInitParams struct {
RawMsgChannelOpenInit
ChannelID string `json:"channelId"`
ConnectionID string `json:"connectionId"`
}
type MsgChannelOpenTryParams ¶
type MsgChannelOpenTryParams struct {
RawMsgChannelOpenTry
ChannelID string `json:"channelId"`
ConnectionID string `json:"connectionId"`
}
type MsgConnectionOpenAckBaseParams ¶
type MsgConnectionOpenAckBaseParams struct {
ConnectionID string `mapstructure:"connection_id" json:"connectionId"`
CounterpartyConnectionID string `mapstructure:"counterparty_connection_id" json:"counterpartyConnectionId"`
Version ConnectionCounterpartyVersion `mapstructure:"version" json:"version"`
ProofHeight Height `mapstructure:"proof_height" json:"proofHeight"`
ProofTry []byte `mapstructure:"proof_try" json:"proofTry"`
ProofClient []byte `mapstructure:"proof_client" json:"proofClient"`
ProofConsensus []byte `mapstructure:"proof_consensus" json:"proofConsensus"`
ConsensusHeight Height `mapstructure:"consensus_height" json:"consensusHeight"`
Signer string `mapstructure:"signer" json:"signer"`
}
type MsgConnectionOpenAckParams ¶
type MsgConnectionOpenAckParams struct {
MsgConnectionOpenAckBaseParams
MaybeTendermintClientState *TendermintLightClientState `json:"maybeTendermintClientState"`
ClientID string `json:"clientId"`
CounterpartyClientID string `json:"counterpartyClientId"`
}
type MsgConnectionOpenConfirmParams ¶
type MsgConnectionOpenConfirmParams struct {
RawMsgConnectionOpenConfirm
ClientID string `json:"clientId"`
CounterpartyClientID string `json:"counterpartyClientId"`
CounterpartyConnectionID string `json:"counterpartyConnectionId"`
}
type MsgConnectionOpenInitParams ¶
type MsgConnectionOpenInitParams struct {
RawMsgConnectionOpenInit
ConnectionID string `json:"connectionId"`
}
type MsgConnectionOpenTryBaseParams ¶
type MsgConnectionOpenTryBaseParams struct {
ClientID string `mapstructure:"client_id" json:"clientId"`
PreviousConnectionID string `mapstructure:"previous_connection_id" json:"previousConnectionId"`
Counterparty ConnectionCounterparty `mapstructure:"counterparty" json:"counterparty"`
DelayPeriod uint64 `mapstructure:"delay_period" json:"delayPeriod,string"`
CounterpartyVersions []ConnectionCounterpartyVersion `mapstructure:"counterparty_versions" json:"counterpartyVersions"`
ProofHeight Height `mapstructure:"proof_height" json:"proofHeight"`
ProofInit string `mapstructure:"proof_init" json:"proofInit"`
ProofClient string `mapstructure:"proof_client" json:"proofClient"`
ProofConsensus string `mapstructure:"proof_consensus" json:"proofConsensus"`
ConsensusHeight Height `mapstructure:"consensus_height" json:"consensusHeight"`
Signer string `mapstructure:"signer" json:"signer"`
}
type MsgConnectionOpenTryParams ¶
type MsgConnectionOpenTryParams struct {
MsgConnectionOpenTryBaseParams
MaybeTendermintClientState *TendermintLightClientState `json:"maybeTendermintClientState"`
ConnectionID string `json:"connectionId"`
}
type MsgCreateClientParams ¶
type MsgCreateClientParams struct {
MaybeTendermintLightClient *TendermintLightClient `json:"maybeTendermintLightClient"`
MaybeSoloMachineLightClient *SoloMachineLightClient `json:"maybeSoloMachineLightClient"`
MaybeLocalhostLightClient *LocalhostLightClient `json:"maybeLocalhostLightClient"`
// TODO: Test localhost LightClient
Signer string `json:"signer"`
ClientID string `json:"clientId"`
ClientType string `json:"clientType"`
}
type MsgRecvPacketFungibleTokenPacketData ¶
type MsgRecvPacketFungibleTokenPacketData struct {
FungibleTokenPacketData
Success bool `json:"success"`
MaybeDenominationTrace *MsgRecvPacketFungibleTokenDenominationTrace `json:"maybeDenominationTrace"`
}
type MsgRecvPacketPacketAck ¶
type MsgRecvPacketParams ¶
type MsgRecvPacketParams struct {
RawMsgRecvPacket
Application string `json:"application"`
MessageType string `json:"messageType"`
MaybeFungibleTokenPacketData *MsgRecvPacketFungibleTokenPacketData `json:"maybeMsgTransfer"`
PacketSequence uint64 `json:"packetSequence,string"`
ChannelOrdering string `json:"channelOrdering"`
ConnectionID string `json:"connectionId"`
PacketAck MsgRecvPacketPacketAck `json:"packetAck"`
}
type MsgTimeoutMsgTransfer ¶
type MsgTimeoutMsgTransfer struct {
RefundReceiver string `json:"refundReceiver"`
RefundDenom string `json:"refundDenom"`
RefundAmount *json.NumericString `json:"refundAmount"`
}
type MsgTimeoutOnCloseParams ¶
type MsgTimeoutOnCloseParams struct {
RawMsgTimeoutOnClose
Application string `json:"application"`
MessageType string `json:"messageType"`
MaybeMsgTransfer *MsgTimeoutMsgTransfer `json:"maybeMsgTransfer"`
PacketTimeoutHeight Height `json:"packetTimeoutHeight"`
PacketTimeoutTimestamp uint64 `json:"packetTimeoutTimestamp,string"`
PacketSequence uint64 `json:"packetSequence,string"`
ChannelOrdering string `json:"channelOrdering"`
}
type MsgTimeoutParams ¶
type MsgTimeoutParams struct {
RawMsgTimeout
Application string `json:"application"`
MessageType string `json:"messageType"`
MaybeMsgTransfer *MsgTimeoutMsgTransfer `json:"maybeMsgTransfer"`
PacketTimeoutHeight Height `json:"packetTimeoutHeight"`
PacketTimeoutTimestamp uint64 `json:"packetTimeoutTimestamp,string"`
PacketSequence uint64 `json:"packetSequence,string"`
ChannelOrdering string `json:"channelOrdering"`
}
type MsgTransferParams ¶
type MsgTransferParams struct {
RawMsgTransfer
PacketSequence uint64 `json:"packetSequence,string"`
DestinationPort string `json:"destinationPort"`
DestinationChannel string `json:"destinationChannel"`
ChannelOrdering string `json:"channelOrdering"`
ConnectionID string `json:"connectionId"`
// `PacketData.Denom` is always in the format of <port>/<channel>/<basedenom> or <basedenom>
// While `RawMsgTransfer.Token.Denom` is possible in the format of ibc/sha256(xxx)
PacketData FungibleTokenPacketData `json:"packetData"`
}
type MsgTransferToken ¶
type MsgTransferToken struct {
Denom string `mapstructure:"denom" json:"denom"`
Amount *json.NumericString `mapstructure:"amount" json:"amount"`
}
type MsgUpdateClientParams ¶
type MsgUpdateClientParams struct {
MaybeTendermintLightClientUpdate *TendermintLightClientUpdate `json:"maybeTendermintLightClientUpdate"`
MaybeSoloMachineLightClientUpdate *SoloMachineLightClientUpdate `json:"maybeSoloMachineLightClientUpdate"`
ClientID string `json:"clientId"`
ClientType string `json:"clientType"`
ConsensusHeight Height `json:"consensusHeight"`
Signer string `json:"signer"`
}
type Packet ¶
type Packet struct {
Sequence string `mapstructure:"sequence" json:"sequence"`
SourcePort string `mapstructure:"source_port" json:"sourcePort"`
SourceChannel string `mapstructure:"source_channel" json:"sourceChannel"`
DestinationPort string `mapstructure:"destination_port" json:"destinationPort"`
DestinationChannel string `mapstructure:"destination_channel" json:"destinationChannel"`
Data string `mapstructure:"data" json:"data"`
TimeoutHeight Height `mapstructure:"timeout_height" json:"timeoutHeight"`
TimeoutTimestamp string `mapstructure:"timeout_timestamp" json:"timeoutTimestamp"`
}
type RawMsgAcknowledgement ¶
type RawMsgAcknowledgement struct {
Packet Packet `mapstructure:"packet" json:"packet"`
Acknowledgement string `mapstructure:"acknowledgement" json:"acknowledgement"`
ProofAcked string `mapstructure:"proof_acked" json:"proofAcked"`
ProofHeight Height `mapstructure:"proof_height" json:"proofHeight"`
Signer string `mapstructure:"signer" json:"signer"`
}
type RawMsgChannelCloseConfirm ¶
type RawMsgChannelCloseConfirm struct {
PortID string `mapstructure:"port_id" json:"portId"`
ChannelID string `mapstructure:"channel_id" json:"channelId"`
ProofInit []byte `mapstructure:"proof_init" json:"proofInit"`
ProofHeight Height `mapstructure:"proof_height" json:"proofHeight"`
Signer string `mapstructure:"signer" json:"signer"`
}
type RawMsgChannelCloseInit ¶
type RawMsgChannelOpenAck ¶
type RawMsgChannelOpenAck struct {
PortID string `mapstructure:"port_id" json:"portId"`
ChannelID string `mapstructure:"channel_id" json:"channelId"`
CounterpartyChannelID string `mapstructure:"counterparty_channel_id" json:"counterpartyChannelId"`
CounterpartyVersion string `mapstructure:"counterparty_version" json:"counterpartyVersion"`
ProofTry []byte `mapstructure:"proof_try" json:"proofTry"`
ProofHeight Height `mapstructure:"proof_height" json:"proofHeight"`
Signer string `mapstructure:"signer" json:"signer"`
}
type RawMsgChannelOpenConfirm ¶
type RawMsgChannelOpenConfirm struct {
PortID string `mapstructure:"port_id" json:"portId"`
ChannelID string `mapstructure:"channel_id" json:"channelId"`
ProofACK []byte `mapstructure:"proof_ack" json:"proofAck"`
ProofHeight Height `mapstructure:"proof_height" json:"proofHeight"`
Signer string `mapstructure:"signer" json:"signer"`
}
type RawMsgChannelOpenInit ¶
type RawMsgChannelOpenTry ¶
type RawMsgChannelOpenTry struct {
PortID string `mapstructure:"port_id" json:"portId"`
PreviousChannelID string `mapstructure:"previous_channel_id" json:"previousChannelId"`
Channel Channel `mapstructure:"channel" json:"channel"`
CounterpartyVersion string `mapstructure:"counterparty_version" json:"counterpartyVersion"`
ProofInit []byte `mapstructure:"proof_init" json:"proofInit"`
ProofHeight Height `mapstructure:"proof_height" json:"proofHeight"`
Signer string `mapstructure:"signer" json:"signer"`
}
type RawMsgConnectionOpenAckTendermintClient ¶
type RawMsgConnectionOpenAckTendermintClient struct {
MsgConnectionOpenAckBaseParams `mapstructure:",squash"`
TendermintClientState TendermintLightClientState `mapstructure:"client_state" json:"clientState"`
}
type RawMsgConnectionOpenInit ¶
type RawMsgConnectionOpenInit struct {
ClientID string `mapstructure:"client_id" json:"clientId"`
Counterparty ConnectionCounterparty `mapstructure:"counterparty" json:"counterparty"`
Version ConnectionCounterpartyVersion `mapstructure:"version" json:"version"`
DelayPeriod uint64 `mapstructure:"delay_period" json:"delayPeriod,string"`
Signer string `mapstructure:"signer" json:"signer"`
}
type RawMsgConnectionOpenTryTendermintClient ¶
type RawMsgConnectionOpenTryTendermintClient struct {
MsgConnectionOpenTryBaseParams `mapstructure:",squash"`
TendermintClientState TendermintLightClientState `mapstructure:"client_state" json:"clientState"`
}
type RawMsgCreateLocalhostLightClient ¶
type RawMsgCreateLocalhostLightClient struct {
Type string `mapstructure:"@type" json:"@type"`
ClientState LocalhostLightClientState `mapstructure:"client_state" json:"clientState"`
Signer string `mapstructure:"signer" json:"signer"`
}
type RawMsgCreateSoloMachineLightClient ¶
type RawMsgCreateSoloMachineLightClient struct {
Type string `mapstructure:"@type" json:"@type"`
ClientState SoloMachineLightClientState `mapstructure:"client_state" json:"clientState"`
ConsensusState SoloMachineLightClientConsensusState `mapstructure:"consensus_state" json:"consensusState"`
Signer string `mapstructure:"signer" json:"signer"`
}
type RawMsgCreateTendermintLightClient ¶
type RawMsgCreateTendermintLightClient struct {
Type string `mapstructure:"@type" json:"@type"`
ClientState TendermintLightClientState `mapstructure:"client_state" json:"clientState"`
ConsensusState TendermintLightClientConsensusState `mapstructure:"consensus_state" json:"consensusState"`
Signer string `mapstructure:"signer" json:"signer"`
}
type RawMsgRecvPacket ¶
type RawMsgTimeout ¶
type RawMsgTimeout struct {
Packet Packet `mapstructure:"packet" json:"packet"`
ProofUnreceived []byte `mapstructure:"proof_unreceived" json:"proofUnreceived"`
ProofHeight Height `mapstructure:"proof_height" json:"proofHeight"`
NextSequenceRecv uint64 `mapstructure:"next_sequence_recv" json:"nextSequenceRecv,string"`
Signer string `mapstructure:"signer" json:"signer"`
}
type RawMsgTimeoutOnClose ¶
type RawMsgTimeoutOnClose struct {
Packet Packet `mapstructure:"packet" json:"packet"`
ProofUnreceived []byte `mapstructure:"proof_unreceived" json:"proofUnreceived"`
ProofClose []byte `mapstructure:"proof_close" json:"proofClose"`
ProofHeight Height `mapstructure:"proof_height" json:"proofHeight"`
NextSequenceRecv uint64 `mapstructure:"next_sequence_recv" json:"nextSequenceRecv,string"`
Signer string `mapstructure:"signer" json:"signer"`
}
type RawMsgTransfer ¶
type RawMsgTransfer struct {
SourcePort string `mapstructure:"source_port" json:"sourcePort"`
SourceChannel string `mapstructure:"source_channel" json:"sourceChannel"`
Token MsgTransferToken `mapstructure:"token" json:"token"`
Sender string `mapstructure:"sender" json:"sender"`
Receiver string `mapstructure:"receiver" json:"receiver"`
TimeoutHeight Height `mapstructure:"timeout_height" json:"timeoutHeight"`
TimeoutTimestamp string `mapstructure:"timeout_timestamp" json:"timeoutTimestamp"`
}
type RawMsgUpdateSoloMachineLightClient ¶
type RawMsgUpdateSoloMachineLightClient struct {
Type string `mapstructure:"@type" json:"@type"`
ClientID string `mapstructure:"client_id" json:"clientId"`
Header SoloMachineLightClientHeader `mapstructure:"header" json:"header"`
Signer string `mapstructure:"signer" json:"signer"`
}
type RawMsgUpdateTendermintLightClient ¶
type RawMsgUpdateTendermintLightClient struct {
Type string `mapstructure:"@type" json:"@type"`
ClientID string `mapstructure:"client_id" json:"clientId"`
Header TendermintLightClientHeader `mapstructure:"header" json:"header"`
Signer string `mapstructure:"signer" json:"signer"`
}
type SoloMachineLightClient ¶
type SoloMachineLightClient struct {
SoloMachineClientState SoloMachineLightClientState `json:"clientState"`
SoloMachineLightClientConsensusState SoloMachineLightClientConsensusState `json:"consensusState"`
}
type SoloMachineLightClientConsensusState ¶
type SoloMachineLightClientConsensusState struct {
PublicKey SoloMachineLightClientConsensusStatePublicKey `mapstructure:"public_key" json:"publicKey"`
Diversifier string `mapstructure:"diversifier" json:"diversifier"`
Timestamp uint64 `mapstructure:"timestamp" json:"timestamp"`
}
type SoloMachineLightClientHeader ¶
type SoloMachineLightClientHeader struct {
Type string `mapstructure:"@type" json:"@type"`
Sequence uint64 `mapstructure:"sequence" json:"sequence"`
Timestamp uint64 `mapstructure:"timestamp" json:"timestamp"`
Signature []byte `mapstructure:"signature" json:"signature"`
NewPublicKey SoloMachineLightClientPubKey `mapstructure:"new_public_key" json:"newPublicKey"`
NewDiversifier string `mapstructure:"new_diversifier" json:"NewDiversifier"`
}
type SoloMachineLightClientState ¶
type SoloMachineLightClientState struct {
Type string `mapstructure:"@type" json:"@type"`
Sequence uint64 `mapstructure:"sequence" json:"sequence"`
IsFrozen bool `mapstructure:"is_frozen" json:"isFrozen"`
AllowUpdateAfterProposal bool `mapstructure:"allowUpdate_after_proposal" json:"allowUpdateAfterProposal"`
}
type SoloMachineLightClientUpdate ¶
type SoloMachineLightClientUpdate struct {
Header SoloMachineLightClientHeader `json:"header"`
}
type TendermintLightClient ¶
type TendermintLightClient struct {
TendermintClientState TendermintLightClientState `json:"clientState"`
TendermintLightClientConsensusState TendermintLightClientConsensusState `json:"consensusState"`
}
type TendermintLightClientBlockID ¶
type TendermintLightClientBlockID struct {
Hash []byte `mapstructure:"hash" json:"hash"`
PartSetHeader TendermintLightClientPartSetHeader `mapstructure:"part_set_header" json:"partSetHeader"`
}
type TendermintLightClientCommit ¶
type TendermintLightClientCommit struct {
Height int64 `mapstructure:"height" json:"height,string"`
Round int32 `mapstructure:"round" json:"round"`
BlockID TendermintLightClientBlockID `mapstructure:"block_id" json:"blockId"`
Signatures []TendermintLightClientSignature `mapstructure:"signatures" json:"signatures"`
}
type TendermintLightClientConsensusState ¶
type TendermintLightClientConsensusState struct {
Type string `mapstructure:"@type" json:"@type"`
Timestamp string `mapstructure:"timestamp" json:"timestamp"`
Root TendermintLightClientRoot `mapstructure:"root" json:"root"`
NextValidatorsHash string `mapstructure:"next_validators_hash" json:"nextValidatorsHash"`
}
type TendermintLightClientHashOp ¶
type TendermintLightClientHashOp string
type TendermintLightClientHeader ¶
type TendermintLightClientHeader struct {
Type string `mapstructure:"@type" json:"@type"`
SignedHeader TendermintLightClientSignedHeader `mapstructure:"signed_header" json:"signedHeader"`
ValidatorSet TendermintLightClientTrustedValidators `mapstructure:"validator_set" json:"validatorSet"`
TrustedHeight TendermintLightClientTrustedHeight `mapstructure:"trusted_height" json:"trustedHeight"`
TrustedValidators TendermintLightClientTrustedValidators `mapstructure:"trusted_validators" json:"trustedValidators"`
}
type TendermintLightClientInnerSpec ¶
type TendermintLightClientInnerSpec struct {
ChildOrder []int32 `mapstructure:"child_order" json:"childOrder"`
ChildSize int32 `mapstructure:"child_size" json:"childSize"`
MinPrefixLength int32 `mapstructure:"min_prefix_length" json:"minPrefixLength"`
MaxPrefixLength int32 `mapstructure:"max_prefix_length" json:"maxPrefixLength"`
EmptyChild []byte `mapstructure:"empty_child" json:"emptyChild"`
Hash TendermintLightClientHashOp `mapstructure:"hash" json:"hash"`
}
type TendermintLightClientLeafSpec ¶
type TendermintLightClientLeafSpec struct {
Hash TendermintLightClientHashOp `mapstructure:"hash" json:"hash"`
PrehashKey TendermintLightClientHashOp `mapstructure:"prehash_key" json:"prehashKey"`
PrehashValue TendermintLightClientHashOp `mapstructure:"prehash_value" json:"prehashValue"`
Length TendermintLightClientLengthOp `mapstructure:"length" json:"length"`
Prefix []byte `mapstructure:"prefix" json:"prefix"`
}
type TendermintLightClientLengthOp ¶
type TendermintLightClientLengthOp string
type TendermintLightClientProofSpec ¶
type TendermintLightClientProofSpec struct {
LeafSpec TendermintLightClientLeafSpec `mapstructure:"leaf_spec" json:"leafSpec"`
InnerSpec TendermintLightClientInnerSpec `mapstructure:"inner_spec" json:"innerSpec"`
MaxDepth int32 `mapstructure:"max_depth" json:"maxDepth"`
MinDepth int32 `mapstructure:"min_depth" json:"minDepth"`
}
type TendermintLightClientProposer ¶
type TendermintLightClientProposer struct {
Address []byte `mapstructure:"address" json:"address"`
PubKey TendermintLightClientPubKey `mapstructure:"pub_key" json:"pubKey"`
VotingPower int64 `mapstructure:"voting_power" json:"votingPower,string"`
ProposerPriority int64 `mapstructure:"proposer_priority" json:"proposerPriority,string"`
}
type TendermintLightClientRoot ¶
type TendermintLightClientRoot struct {
Hash string `mapstructure:"hash" json:"hash"`
}
type TendermintLightClientSignature ¶
type TendermintLightClientSignature struct {
BlockIDFlag string `mapstructure:"block_id_flag" json:"blockIdFlag"`
ValidatorAddress []byte `mapstructure:"validator_address" json:"validatorAddress"`
Timestamp time.Time `mapstructure:"timestamp" json:"timestamp"`
Signature []byte `mapstructure:"signature" json:"signature"`
}
type TendermintLightClientSignedHeader ¶
type TendermintLightClientSignedHeader struct {
Header TendermintLightClientSignedHeaderHeader `mapstructure:"header" json:"header"`
Commit TendermintLightClientCommit `mapstructure:"commit" json:"commit"`
}
type TendermintLightClientSignedHeaderHeader ¶
type TendermintLightClientSignedHeaderHeader struct {
Version TendermintLightClientVersion `mapstructure:"version" json:"version"`
ChainID string `mapstructure:"chain_id" json:"chainId"`
Height int64 `mapstructure:"height" json:"height,string"`
Time time.Time `mapstructure:"time" json:"time"`
LastBlockID TendermintLightClientBlockID `mapstructure:"last_block_id" json:"lastBlockId"`
LastCommitHash []byte `mapstructure:"last_commit_hash" json:"lastCommitHash"`
DataHash []byte `mapstructure:"data_hash" json:"dataHash"`
ValidatorsHash []byte `mapstructure:"validators_hash" json:"validatorsHash"`
NextValidatorsHash []byte `mapstructure:"next_validators_hash" json:"nextValidatorsHash"`
ConsensusHash []byte `mapstructure:"consensus_hash" json:"consensusHash"`
AppHash []byte `mapstructure:"app_hash" json:"appHash"`
LastResultsHash []byte `mapstructure:"last_results_hash" json:"lastResultsHash"`
EvidenceHash []byte `mapstructure:"evidence_hash" json:"evidenceHash"`
ProposerAddress []byte `mapstructure:"proposer_address" json:"proposerAddress"`
}
type TendermintLightClientState ¶
type TendermintLightClientState struct {
Type string `mapstructure:"@type" json:"@type"`
ChainID string `mapstructure:"chain_id" json:"chainId"`
TrustLevel TendermintLightClientTrustLevel `mapstructure:"trust_level" json:"trustLevel"`
TrustingPeriod model.Duration `mapstructure:"trusting_period" json:"trustingPeriod"`
UnbondingPeriod model.Duration `mapstructure:"unbonding_period" json:"unbondingPeriod"`
MaxClockDrift model.Duration `mapstructure:"max_clock_drift" json:"maxClockDrift"`
FrozenHeight TendermintLightClientHeight `mapstructure:"frozen_height" json:"frozenHeight"`
LatestHeight TendermintLightClientHeight `mapstructure:"latest_height" json:"latestHeight"`
ProofSpecs []TendermintLightClientProofSpec `mapstructure:"proof_specs" json:"proofSpecs"`
UpgradePath []string `mapstructure:"upgrade_path" json:"upgradePath"`
AllowUpdateAfterExpiry bool `mapstructure:"allow_update_after_expiry" json:"allowUpdateAfterExpiry"`
AllowUpdateAfterMisbehaviour bool `mapstructure:"allow_update_after_misbehaviour" json:"allowUpdateAfterMisbehaviour"`
}
type TendermintLightClientTrustedValidators ¶
type TendermintLightClientTrustedValidators struct {
Validators []TendermintLightClientProposer `mapstructure:"validators" json:"validators"`
Proposer TendermintLightClientProposer `mapstructure:"proposer" json:"proposer"`
TotalVotingPower string `mapstructure:"total_voting_power" json:"totalVotingPower"`
}
type TendermintLightClientUpdate ¶
type TendermintLightClientUpdate struct {
Header TendermintLightClientHeader `json:"header"`
}
Source Files
¶
- ibc.go
- localhost.go
- msg_acknowledgement.go
- msg_channel_close_confirm.go
- msg_channel_close_init.go
- msg_channel_open_ack.go
- msg_channel_open_confirm.go
- msg_channel_open_init.go
- msg_channel_open_try.go
- msg_connection_open_ack.go
- msg_connection_open_confirm.go
- msg_connection_open_init.go
- msg_connection_open_try.go
- msg_create_client.go
- msg_recv_packet.go
- msg_timeout.go
- msg_timeout_on_close.go
- msg_transfer.go
- msg_update_client.go
- solomachine.go
- tendermint.go
Click to show internal directories.
Click to hide internal directories.