Documentation ¶
Index ¶
- type IChain
- type Tendermint
- func (c *Tendermint) ChainName() string
- func (c *Tendermint) ChainType() string
- func (c *Tendermint) GetBlockHeader(req *repotypes.GetBlockHeaderReq) (tibctypes.Header, error)
- func (c *Tendermint) GetBlockTimestamp(height uint64) (uint64, error)
- func (c *Tendermint) GetCommitmentsPacket(sourceChainName, destChainName string, sequence uint64) error
- func (c *Tendermint) GetLatestHeight() (uint64, error)
- func (c *Tendermint) GetLightClientConsensusState(chainName string, height uint64) (tibctypes.ConsensusState, error)
- func (c *Tendermint) GetLightClientDelayHeight(chainName string) (uint64, error)
- func (c *Tendermint) GetLightClientDelayTime(chainName string) (uint64, error)
- func (c *Tendermint) GetLightClientState(chainName string) (tibctypes.ClientState, error)
- func (c *Tendermint) GetPackets(height uint64, destChainType string) (*repotypes.Packets, error)
- func (c *Tendermint) GetProof(sourChainName, destChainName string, sequence uint64, height uint64, ...) ([]byte, error)
- func (c *Tendermint) GetReceiptPacket(sourChainName, destChianName string, sequence uint64) (bool, error)
- func (c *Tendermint) GetResult(hash string) (uint64, error)
- func (c *Tendermint) RecvPackets(msgs types.Msgs) (*repotypes.ResultTx, types.Error)
- func (c *Tendermint) UpdateClient(header tibctypes.Header, chainName string) (string, error)
- func (c *Tendermint) UpdateClientFrequency() uint64
- type TerndermintConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IChain ¶
type IChain interface { GetPackets(height uint64, destChainType string) (*repotypes.Packets, error) GetProof(sourChainName, destChainName string, sequence uint64, height uint64, typ string) ([]byte, error) RecvPackets(msgs types.Msgs) (*repotypes.ResultTx, types.Error) GetCommitmentsPacket(sourChainName, destChainName string, sequence uint64) error GetReceiptPacket(sourChainName, destChianName string, sequence uint64) (bool, error) GetBlockHeader(*repotypes.GetBlockHeaderReq) (tibctypes.Header, error) GetBlockTimestamp(height uint64) (uint64, error) GetLightClientState(string) (tibctypes.ClientState, error) GetLightClientConsensusState(string, uint64) (tibctypes.ConsensusState, error) GetLatestHeight() (uint64, error) GetLightClientDelayHeight(string) (uint64, error) GetLightClientDelayTime(string) (uint64, error) UpdateClient(header tibctypes.Header, chainName string) (string, error) GetResult(hash string) (uint64, error) ChainName() string UpdateClientFrequency() uint64 ChainType() string }
type Tendermint ¶
type Tendermint struct {
// contains filtered or unexported fields
}
func NewTendermintClient ¶
func NewTendermintClient( chainType string, chainName string, updateClientFrequency uint64, allowMapSender map[string][]string, cleanPacketEnabled bool, config *TerndermintConfig) (*Tendermint, error)
func (*Tendermint) ChainName ¶
func (c *Tendermint) ChainName() string
func (*Tendermint) ChainType ¶
func (c *Tendermint) ChainType() string
func (*Tendermint) GetBlockHeader ¶
func (c *Tendermint) GetBlockHeader(req *repotypes.GetBlockHeaderReq) (tibctypes.Header, error)
func (*Tendermint) GetBlockTimestamp ¶ added in v0.2.0
func (c *Tendermint) GetBlockTimestamp(height uint64) (uint64, error)
func (*Tendermint) GetCommitmentsPacket ¶
func (c *Tendermint) GetCommitmentsPacket(sourceChainName, destChainName string, sequence uint64) error
func (*Tendermint) GetLatestHeight ¶
func (c *Tendermint) GetLatestHeight() (uint64, error)
func (*Tendermint) GetLightClientConsensusState ¶
func (c *Tendermint) GetLightClientConsensusState(chainName string, height uint64) (tibctypes.ConsensusState, error)
func (*Tendermint) GetLightClientDelayHeight ¶
func (c *Tendermint) GetLightClientDelayHeight(chainName string) (uint64, error)
func (*Tendermint) GetLightClientDelayTime ¶
func (c *Tendermint) GetLightClientDelayTime(chainName string) (uint64, error)
func (*Tendermint) GetLightClientState ¶
func (c *Tendermint) GetLightClientState(chainName string) (tibctypes.ClientState, error)
func (*Tendermint) GetPackets ¶
func (*Tendermint) GetReceiptPacket ¶
func (c *Tendermint) GetReceiptPacket(sourChainName, destChianName string, sequence uint64) (bool, error)
func (*Tendermint) GetResult ¶ added in v0.2.0
func (c *Tendermint) GetResult(hash string) (uint64, error)
func (*Tendermint) RecvPackets ¶
func (*Tendermint) UpdateClient ¶
func (*Tendermint) UpdateClientFrequency ¶
func (c *Tendermint) UpdateClientFrequency() uint64
type TerndermintConfig ¶
type TerndermintConfig struct { Options []coretypes.Option BaseTx types.BaseTx PrivKeyArmor string Name string Password string RPCAddr string GrpcAddr string ChainID string }
func NewTerndermintConfig ¶
func NewTerndermintConfig() *TerndermintConfig
Click to show internal directories.
Click to hide internal directories.