cgccaller

package
v0.0.0-...-e273ca0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: LGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const CGCABI = "" /* 11236-byte string literal not displayed */

CGCABI is the core-genesis-cotract input ABI used to generate the binding from.

Variables

This section is empty.

Functions

This section is empty.

Types

type CGCCaller

type CGCCaller struct {
	// contains filtered or unexported fields
}

CGCCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewCGCCaller

func NewCGCCaller(address common.Address, backend bind.ContractBackend) (*CGCCaller, error)

NewCGC creates a new instance of CGC, bound to a specific deployed contract.

func (*CGCCaller) GetChainTip

func (_CGC *CGCCaller) GetChainTip(opts *bind.CallOpts) (*chainhash.Hash, error)

* query the last relayed block hash

func (*CGCCaller) IsHeaderSynced

func (_CGC *CGCCaller) IsHeaderSynced(opts *bind.CallOpts, appHash *chainhash.Hash) (bool, error)

* check whether the block is relayed

func (*CGCCaller) QuerySubmitters

func (_CGC *CGCCaller) QuerySubmitters(opts *bind.CallOpts, appHash *chainhash.Hash) (string, error)

* query who submitted the block

func (*CGCCaller) SyncBtcHeader

func (_CGC *CGCCaller) SyncBtcHeader(opts *bind.TransactOpts, lightClient []byte) (common.Hash, error)

* relayed btc block

Jump to

Keyboard shortcuts

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