Versions in this module Expand all Collapse all v0 v0.2.7 Jun 22, 2022 Changes in this version + const CtxTimeout + const TryGetGasPriceTimeInterval + var Bytes = abi.NewType("bytes", "", nil) + var Bytes32 = abi.NewType("bytes32", "", nil) + var KeyPrefixStorage = []byte + var String = abi.NewType("string", "", nil) + var Uint64 = abi.NewType("uint64", "", nil) + type Config struct + Eth *EthChainConfig + Tendermint *TendermintConfig + func NewConfig() *Config + type ContractBindOptsCfg struct + ChainID uint64 + ClientPrivKey string + GasLimit uint64 + MaxGasPrice uint64 + PacketPrivKey string + func NewContractBindOptsCfg() *ContractBindOptsCfg + type ContractCfg struct + Addr string + OptPrivKey string + Topic string + type ContractCfgGroup struct + AckPacket ContractCfg + CleanPacket ContractCfg + Client ContractCfg + Packet ContractCfg + func NewContractCfgGroup() *ContractCfgGroup + type EthChainConfig struct + ChainURI string + ContractBindOptsCfg *ContractBindOptsCfg + ContractCfgGroup *ContractCfgGroup + Slot int64 + TipCoefficient float64 + func NewEthChainConfig() *EthChainConfig + type Ethermint struct + func NewEthermintClient(chainType string, chainName string, updateClientFrequency uint64, ...) (*Ethermint, error) + func (c *Ethermint) ChainName() string + func (c *Ethermint) ChainType() string + func (c *Ethermint) GetBlockHeader(req *repotypes.GetBlockHeaderReq) (tibctypes.Header, error) + func (c *Ethermint) GetBlockTimestamp(height uint64) (uint64, error) + func (c *Ethermint) GetLatestHeight() (uint64, error) + func (c *Ethermint) GetLightClientDelayHeight(chainName string) (uint64, error) + func (c *Ethermint) GetLightClientDelayTime(chainName string) (uint64, error) + func (c *Ethermint) GetResult(hash string) (uint64, error) + func (c *Ethermint) UpdateClientFrequency() uint64 + func (eth *Ethermint) GetCommitmentsPacket(sourChainName, destChainName string, sequence uint64) error + func (eth *Ethermint) GetLightClientConsensusState(string, uint64) (tibctypes.ConsensusState, error) + func (eth *Ethermint) GetLightClientState(chainName string) (tibctypes.ClientState, error) + func (eth *Ethermint) GetPackets(height uint64, destChainType string) (*repotypes.Packets, error) + func (eth *Ethermint) GetProof(sourChainName, destChainName string, sequence uint64, height uint64, ...) ([]byte, error) + func (eth *Ethermint) GetReceiptPacket(sourChainName, destChainName string, sequence uint64) (bool, error) + func (eth *Ethermint) RecvPackets(msgs types.Msgs) (*repotypes.ResultTx, types.Error) + func (eth *Ethermint) UpdateClient(header tibctypes.Header, chainName string) (string, error) + type TendermintConfig struct + ChainID string + GrpcAddr string + Options []coretypes.Option + RPCAddr string + func NewTendermintConfig() *TendermintConfig