Documentation ¶
Index ¶
- Constants
- Variables
- type Config
- type ContractBindOptsCfg
- type ContractCfg
- type ContractCfgGroup
- type EthChainConfig
- type Ethermint
- 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 (eth *Ethermint) GetCommitmentsPacket(sourChainName, destChainName string, sequence uint64) error
- func (c *Ethermint) GetLatestHeight() (uint64, error)
- func (eth *Ethermint) GetLightClientConsensusState(string, uint64) (tibctypes.ConsensusState, error)
- func (c *Ethermint) GetLightClientDelayHeight(chainName string) (uint64, error)
- func (c *Ethermint) GetLightClientDelayTime(chainName string) (uint64, 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 (c *Ethermint) GetResult(hash string) (uint64, error)
- func (eth *Ethermint) RecvPackets(msgs types.Msgs) (*repotypes.ResultTx, types.Error)
- func (eth *Ethermint) UpdateClient(header tibctypes.Header, chainName string) (string, error)
- func (c *Ethermint) UpdateClientFrequency() uint64
- type TendermintConfig
Constants ¶
View Source
const CtxTimeout = 10 * time.Second
View Source
const TryGetGasPriceTimeInterval = 10 * time.Second
Variables ¶
View Source
var (
Uint64, _ = abi.NewType("uint64", "", nil)
Bytes32, _ = abi.NewType("bytes32", "", nil)
Bytes, _ = abi.NewType("bytes", "", nil)
String, _ = abi.NewType("string", "", nil)
)
View Source
var (
KeyPrefixStorage = []byte{prefixStorage}
)
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Tendermint *TendermintConfig Eth *EthChainConfig }
type ContractBindOptsCfg ¶
type ContractBindOptsCfg struct { ClientPrivKey string PacketPrivKey string GasLimit uint64 MaxGasPrice uint64 ChainID uint64 }
func NewContractBindOptsCfg ¶
func NewContractBindOptsCfg() *ContractBindOptsCfg
type ContractCfg ¶
type ContractCfgGroup ¶
type ContractCfgGroup struct { Client ContractCfg Packet ContractCfg AckPacket ContractCfg CleanPacket ContractCfg }
func NewContractCfgGroup ¶
func NewContractCfgGroup() *ContractCfgGroup
type EthChainConfig ¶
type EthChainConfig struct { ChainURI string Slot int64 TipCoefficient float64 ContractCfgGroup *ContractCfgGroup ContractBindOptsCfg *ContractBindOptsCfg }
func NewEthChainConfig ¶
func NewEthChainConfig() *EthChainConfig
type Ethermint ¶
type Ethermint struct {
// contains filtered or unexported fields
}
func NewEthermintClient ¶
func (*Ethermint) GetBlockHeader ¶
func (*Ethermint) GetBlockTimestamp ¶
func (*Ethermint) GetCommitmentsPacket ¶
func (*Ethermint) GetLatestHeight ¶
func (*Ethermint) GetLightClientConsensusState ¶
func (*Ethermint) GetLightClientDelayHeight ¶
func (*Ethermint) GetLightClientDelayTime ¶
func (*Ethermint) GetLightClientState ¶
func (eth *Ethermint) GetLightClientState(chainName string) (tibctypes.ClientState, error)
func (*Ethermint) GetPackets ¶
func (*Ethermint) GetReceiptPacket ¶
func (*Ethermint) RecvPackets ¶
func (*Ethermint) UpdateClient ¶
func (*Ethermint) UpdateClientFrequency ¶
type TendermintConfig ¶
type TendermintConfig struct { Options []coretypes.Option RPCAddr string GrpcAddr string ChainID string }
func NewTendermintConfig ¶
func NewTendermintConfig() *TendermintConfig
Click to show internal directories.
Click to hide internal directories.