Documentation ¶
Index ¶
- Constants
- type CGCCaller
- func (_CGC *CGCCaller) GetChainTip(opts *bind.CallOpts) (*chainhash.Hash, error)
- func (_CGC *CGCCaller) IsHeaderSynced(opts *bind.CallOpts, appHash *chainhash.Hash) (bool, error)
- func (_CGC *CGCCaller) QuerySubmitters(opts *bind.CallOpts, appHash *chainhash.Hash) (string, error)
- func (_CGC *CGCCaller) SyncBtcHeader(opts *bind.TransactOpts, lightClient []byte) (common.Hash, error)
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 ¶
NewCGC creates a new instance of CGC, bound to a specific deployed contract.
func (*CGCCaller) GetChainTip ¶
* query the last relayed block hash
func (*CGCCaller) IsHeaderSynced ¶
* 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
Click to show internal directories.
Click to hide internal directories.