integration

package
v0.0.0-...-a76333c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2022 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TenConType = "{\"@type\":\"/tibc.lightclients.tendermint.v1.ConsensusState\","
	TenStaType = "{\"@type\":\"/tibc.lightclients.tendermint.v1.ClientState\","
	BscConType = "{\"@type\":\"/tibc.lightclients.bsc.v1.ConsensusState\","
	BscStaType = "{\"@type\":\"/tibc.lightclients.bsc.v1.ClientState\","
	EthConType = "{\"@type\":\"/tibc.lightclients.eth.v1.ConsensusState\","
	EthStaType = "{\"@type\":\"/tibc.lightclients.eth.v1.ClientState\","
)
View Source
const (
	TestnetChainId = 97
)

Variables

This section is empty.

Functions

func CreateTenderrmintHeader

func CreateTenderrmintHeader(client Client, height int64, trustHeight tibcclient.Height, clientState tibctypes.ClientState) *tendermint.Header

func GetBlockHeight

func GetBlockHeight(rc *RestClient, url string) (height uint64, err error)

func GetEthNodeHeader

func GetEthNodeHeader(url string, height uint64) (*tibceth.EthHeader, error)

func GetNodeHeader

func GetNodeHeader(url string, height uint64) (*tibcbsc.BscHeader, error)

func GetRinkeyEthNodeHeader

func GetRinkeyEthNodeHeader(url string, height uint64) (*tibceth.EthHeader, error)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

RegisterInterfaces registers the sdk message type.

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers the sdk message type.

Types

type Client

type Client struct {
	types.BaseClient
	Bank       bank.Client
	Staking    staking.Client
	Gov        gov.Client
	Tendermint tibc.Client
	ChainName  string
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cfg types.ClientConfig, chainName string) Client

func (Client) Manager

func (client Client) Manager() types.BaseClient

func (Client) RegisterModule

func (client Client) RegisterModule(ms ...types.Module)

type RestClient

type RestClient struct {
	Addr string
	// contains filtered or unexported fields
}

func NewRestClient

func NewRestClient() *RestClient

func (*RestClient) SendRestRequest

func (self *RestClient) SendRestRequest(addr string, data []byte) ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL