abi

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RelayABI = RelayMetaData.ABI

RelayABI is the input ABI used to generate the binding from. Deprecated: Use RelayMetaData.ABI instead.

View Source
var RelayMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_genesisHeader\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"_height\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"_periodStart\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"_first\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"_last\",\"type\":\"bytes32\"}],\"name\":\"Extension\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"_from\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"_to\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"_gcd\",\"type\":\"bytes32\"}],\"name\":\"NewTip\",\"type\":\"event\"},{\"constant\":true,\"inputs\":[],\"name\":\"HEIGHT_INTERVAL\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_anchor\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"_headers\",\"type\":\"bytes\"}],\"name\":\"addHeaders\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_oldPeriodStartHeader\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"_oldPeriodEndHeader\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"_headers\",\"type\":\"bytes\"}],\"name\":\"addHeadersWithRetarget\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_digest\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"_offset\",\"type\":\"uint256\"}],\"name\":\"findAncestor\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_digest\",\"type\":\"bytes32\"}],\"name\":\"findHeight\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getBestKnownDigest\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getCurrentEpochDifficulty\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getLastReorgCommonAncestor\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getPrevEpochDifficulty\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getRelayGenesis\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_ancestor\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"_descendant\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"_limit\",\"type\":\"uint256\"}],\"name\":\"isAncestor\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_ancestor\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"_currentBest\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"_newBest\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"_limit\",\"type\":\"uint256\"}],\"name\":\"markNewHeaviest\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

RelayMetaData contains all meta data concerning the Relay contract.

Functions

This section is empty.

Types

type Relay

type Relay struct {
	RelayCaller     // Read-only binding to the contract
	RelayTransactor // Write-only binding to the contract
	RelayFilterer   // Log filterer for contract events
}

Relay is an auto generated Go binding around an Ethereum contract.

func NewRelay

func NewRelay(address common.Address, backend bind.ContractBackend) (*Relay, error)

NewRelay creates a new instance of Relay, bound to a specific deployed contract.

type RelayCaller

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

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

func NewRelayCaller

func NewRelayCaller(address common.Address, caller bind.ContractCaller) (*RelayCaller, error)

NewRelayCaller creates a new read-only instance of Relay, bound to a specific deployed contract.

func (*RelayCaller) FindAncestor

func (_Relay *RelayCaller) FindAncestor(opts *bind.CallOpts, _digest [32]byte, _offset *big.Int) ([32]byte, error)

FindAncestor is a free data retrieval call binding the contract method 0x30017b3b.

Solidity: function findAncestor(bytes32 _digest, uint256 _offset) view returns(bytes32)

func (*RelayCaller) FindHeight

func (_Relay *RelayCaller) FindHeight(opts *bind.CallOpts, _digest [32]byte) (*big.Int, error)

FindHeight is a free data retrieval call binding the contract method 0x60b5c390.

Solidity: function findHeight(bytes32 _digest) view returns(uint256)

func (*RelayCaller) GetBestKnownDigest

func (_Relay *RelayCaller) GetBestKnownDigest(opts *bind.CallOpts) ([32]byte, error)

GetBestKnownDigest is a free data retrieval call binding the contract method 0x1910d973.

Solidity: function getBestKnownDigest() view returns(bytes32)

func (*RelayCaller) GetCurrentEpochDifficulty

func (_Relay *RelayCaller) GetCurrentEpochDifficulty(opts *bind.CallOpts) (*big.Int, error)

GetCurrentEpochDifficulty is a free data retrieval call binding the contract method 0x113764be.

Solidity: function getCurrentEpochDifficulty() view returns(uint256)

func (*RelayCaller) GetLastReorgCommonAncestor

func (_Relay *RelayCaller) GetLastReorgCommonAncestor(opts *bind.CallOpts) ([32]byte, error)

GetLastReorgCommonAncestor is a free data retrieval call binding the contract method 0xc58242cd.

Solidity: function getLastReorgCommonAncestor() view returns(bytes32)

func (*RelayCaller) GetPrevEpochDifficulty

func (_Relay *RelayCaller) GetPrevEpochDifficulty(opts *bind.CallOpts) (*big.Int, error)

GetPrevEpochDifficulty is a free data retrieval call binding the contract method 0x2b97be24.

Solidity: function getPrevEpochDifficulty() view returns(uint256)

func (*RelayCaller) GetRelayGenesis

func (_Relay *RelayCaller) GetRelayGenesis(opts *bind.CallOpts) ([32]byte, error)

GetRelayGenesis is a free data retrieval call binding the contract method 0xe3d8d8d8.

Solidity: function getRelayGenesis() view returns(bytes32)

func (*RelayCaller) HEIGHTINTERVAL

func (_Relay *RelayCaller) HEIGHTINTERVAL(opts *bind.CallOpts) (uint32, error)

HEIGHTINTERVAL is a free data retrieval call binding the contract method 0x70d53c18.

Solidity: function HEIGHT_INTERVAL() view returns(uint32)

func (*RelayCaller) IsAncestor

func (_Relay *RelayCaller) IsAncestor(opts *bind.CallOpts, _ancestor [32]byte, _descendant [32]byte, _limit *big.Int) (bool, error)

IsAncestor is a free data retrieval call binding the contract method 0xb985621a.

Solidity: function isAncestor(bytes32 _ancestor, bytes32 _descendant, uint256 _limit) view returns(bool)

type RelayCallerRaw

type RelayCallerRaw struct {
	Contract *RelayCaller // Generic read-only contract binding to access the raw methods on
}

RelayCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*RelayCallerRaw) Call

func (_Relay *RelayCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type RelayCallerSession

type RelayCallerSession struct {
	Contract *RelayCaller  // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts // Call options to use throughout this session
}

RelayCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*RelayCallerSession) FindAncestor

func (_Relay *RelayCallerSession) FindAncestor(_digest [32]byte, _offset *big.Int) ([32]byte, error)

FindAncestor is a free data retrieval call binding the contract method 0x30017b3b.

Solidity: function findAncestor(bytes32 _digest, uint256 _offset) view returns(bytes32)

func (*RelayCallerSession) FindHeight

func (_Relay *RelayCallerSession) FindHeight(_digest [32]byte) (*big.Int, error)

FindHeight is a free data retrieval call binding the contract method 0x60b5c390.

Solidity: function findHeight(bytes32 _digest) view returns(uint256)

func (*RelayCallerSession) GetBestKnownDigest

func (_Relay *RelayCallerSession) GetBestKnownDigest() ([32]byte, error)

GetBestKnownDigest is a free data retrieval call binding the contract method 0x1910d973.

Solidity: function getBestKnownDigest() view returns(bytes32)

func (*RelayCallerSession) GetCurrentEpochDifficulty

func (_Relay *RelayCallerSession) GetCurrentEpochDifficulty() (*big.Int, error)

GetCurrentEpochDifficulty is a free data retrieval call binding the contract method 0x113764be.

Solidity: function getCurrentEpochDifficulty() view returns(uint256)

func (*RelayCallerSession) GetLastReorgCommonAncestor

func (_Relay *RelayCallerSession) GetLastReorgCommonAncestor() ([32]byte, error)

GetLastReorgCommonAncestor is a free data retrieval call binding the contract method 0xc58242cd.

Solidity: function getLastReorgCommonAncestor() view returns(bytes32)

func (*RelayCallerSession) GetPrevEpochDifficulty

func (_Relay *RelayCallerSession) GetPrevEpochDifficulty() (*big.Int, error)

GetPrevEpochDifficulty is a free data retrieval call binding the contract method 0x2b97be24.

Solidity: function getPrevEpochDifficulty() view returns(uint256)

func (*RelayCallerSession) GetRelayGenesis

func (_Relay *RelayCallerSession) GetRelayGenesis() ([32]byte, error)

GetRelayGenesis is a free data retrieval call binding the contract method 0xe3d8d8d8.

Solidity: function getRelayGenesis() view returns(bytes32)

func (*RelayCallerSession) HEIGHTINTERVAL

func (_Relay *RelayCallerSession) HEIGHTINTERVAL() (uint32, error)

HEIGHTINTERVAL is a free data retrieval call binding the contract method 0x70d53c18.

Solidity: function HEIGHT_INTERVAL() view returns(uint32)

func (*RelayCallerSession) IsAncestor

func (_Relay *RelayCallerSession) IsAncestor(_ancestor [32]byte, _descendant [32]byte, _limit *big.Int) (bool, error)

IsAncestor is a free data retrieval call binding the contract method 0xb985621a.

Solidity: function isAncestor(bytes32 _ancestor, bytes32 _descendant, uint256 _limit) view returns(bool)

type RelayExtension

type RelayExtension struct {
	First [32]byte
	Last  [32]byte
	Raw   types.Log // Blockchain specific contextual infos
}

RelayExtension represents a Extension event raised by the Relay contract.

type RelayExtensionIterator

type RelayExtensionIterator struct {
	Event *RelayExtension // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

RelayExtensionIterator is returned from FilterExtension and is used to iterate over the raw logs and unpacked data for Extension events raised by the Relay contract.

func (*RelayExtensionIterator) Close

func (it *RelayExtensionIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*RelayExtensionIterator) Error

func (it *RelayExtensionIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RelayExtensionIterator) Next

func (it *RelayExtensionIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type RelayFilterer

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

RelayFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewRelayFilterer

func NewRelayFilterer(address common.Address, filterer bind.ContractFilterer) (*RelayFilterer, error)

NewRelayFilterer creates a new log filterer instance of Relay, bound to a specific deployed contract.

func (*RelayFilterer) FilterExtension

func (_Relay *RelayFilterer) FilterExtension(opts *bind.FilterOpts, _first [][32]byte, _last [][32]byte) (*RelayExtensionIterator, error)

FilterExtension is a free log retrieval operation binding the contract event 0xf90e4f1d9cd0dd55e339411cbc9b152482307c3a23ed64715e4a2858f641a3f5.

Solidity: event Extension(bytes32 indexed _first, bytes32 indexed _last)

func (*RelayFilterer) FilterNewTip

func (_Relay *RelayFilterer) FilterNewTip(opts *bind.FilterOpts, _from [][32]byte, _to [][32]byte, _gcd [][32]byte) (*RelayNewTipIterator, error)

FilterNewTip is a free log retrieval operation binding the contract event 0x3cc13de64df0f0239626235c51a2da251bbc8c85664ecce39263da3ee03f606c.

Solidity: event NewTip(bytes32 indexed _from, bytes32 indexed _to, bytes32 indexed _gcd)

func (*RelayFilterer) ParseExtension

func (_Relay *RelayFilterer) ParseExtension(log types.Log) (*RelayExtension, error)

ParseExtension is a log parse operation binding the contract event 0xf90e4f1d9cd0dd55e339411cbc9b152482307c3a23ed64715e4a2858f641a3f5.

Solidity: event Extension(bytes32 indexed _first, bytes32 indexed _last)

func (*RelayFilterer) ParseNewTip

func (_Relay *RelayFilterer) ParseNewTip(log types.Log) (*RelayNewTip, error)

ParseNewTip is a log parse operation binding the contract event 0x3cc13de64df0f0239626235c51a2da251bbc8c85664ecce39263da3ee03f606c.

Solidity: event NewTip(bytes32 indexed _from, bytes32 indexed _to, bytes32 indexed _gcd)

func (*RelayFilterer) WatchExtension

func (_Relay *RelayFilterer) WatchExtension(opts *bind.WatchOpts, sink chan<- *RelayExtension, _first [][32]byte, _last [][32]byte) (event.Subscription, error)

WatchExtension is a free log subscription operation binding the contract event 0xf90e4f1d9cd0dd55e339411cbc9b152482307c3a23ed64715e4a2858f641a3f5.

Solidity: event Extension(bytes32 indexed _first, bytes32 indexed _last)

func (*RelayFilterer) WatchNewTip

func (_Relay *RelayFilterer) WatchNewTip(opts *bind.WatchOpts, sink chan<- *RelayNewTip, _from [][32]byte, _to [][32]byte, _gcd [][32]byte) (event.Subscription, error)

WatchNewTip is a free log subscription operation binding the contract event 0x3cc13de64df0f0239626235c51a2da251bbc8c85664ecce39263da3ee03f606c.

Solidity: event NewTip(bytes32 indexed _from, bytes32 indexed _to, bytes32 indexed _gcd)

type RelayNewTip

type RelayNewTip struct {
	From [32]byte
	To   [32]byte
	Gcd  [32]byte
	Raw  types.Log // Blockchain specific contextual infos
}

RelayNewTip represents a NewTip event raised by the Relay contract.

type RelayNewTipIterator

type RelayNewTipIterator struct {
	Event *RelayNewTip // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

RelayNewTipIterator is returned from FilterNewTip and is used to iterate over the raw logs and unpacked data for NewTip events raised by the Relay contract.

func (*RelayNewTipIterator) Close

func (it *RelayNewTipIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*RelayNewTipIterator) Error

func (it *RelayNewTipIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RelayNewTipIterator) Next

func (it *RelayNewTipIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type RelayRaw

type RelayRaw struct {
	Contract *Relay // Generic contract binding to access the raw methods on
}

RelayRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*RelayRaw) Call

func (_Relay *RelayRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*RelayRaw) Transact

func (_Relay *RelayRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*RelayRaw) Transfer

func (_Relay *RelayRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type RelaySession

type RelaySession struct {
	Contract     *Relay            // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

RelaySession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*RelaySession) AddHeaders

func (_Relay *RelaySession) AddHeaders(_anchor []byte, _headers []byte) (*types.Transaction, error)

AddHeaders is a paid mutator transaction binding the contract method 0x65da41b9.

Solidity: function addHeaders(bytes _anchor, bytes _headers) returns(bool)

func (*RelaySession) AddHeadersWithRetarget

func (_Relay *RelaySession) AddHeadersWithRetarget(_oldPeriodStartHeader []byte, _oldPeriodEndHeader []byte, _headers []byte) (*types.Transaction, error)

AddHeadersWithRetarget is a paid mutator transaction binding the contract method 0x7fa637fc.

Solidity: function addHeadersWithRetarget(bytes _oldPeriodStartHeader, bytes _oldPeriodEndHeader, bytes _headers) returns(bool)

func (*RelaySession) FindAncestor

func (_Relay *RelaySession) FindAncestor(_digest [32]byte, _offset *big.Int) ([32]byte, error)

FindAncestor is a free data retrieval call binding the contract method 0x30017b3b.

Solidity: function findAncestor(bytes32 _digest, uint256 _offset) view returns(bytes32)

func (*RelaySession) FindHeight

func (_Relay *RelaySession) FindHeight(_digest [32]byte) (*big.Int, error)

FindHeight is a free data retrieval call binding the contract method 0x60b5c390.

Solidity: function findHeight(bytes32 _digest) view returns(uint256)

func (*RelaySession) GetBestKnownDigest

func (_Relay *RelaySession) GetBestKnownDigest() ([32]byte, error)

GetBestKnownDigest is a free data retrieval call binding the contract method 0x1910d973.

Solidity: function getBestKnownDigest() view returns(bytes32)

func (*RelaySession) GetCurrentEpochDifficulty

func (_Relay *RelaySession) GetCurrentEpochDifficulty() (*big.Int, error)

GetCurrentEpochDifficulty is a free data retrieval call binding the contract method 0x113764be.

Solidity: function getCurrentEpochDifficulty() view returns(uint256)

func (*RelaySession) GetLastReorgCommonAncestor

func (_Relay *RelaySession) GetLastReorgCommonAncestor() ([32]byte, error)

GetLastReorgCommonAncestor is a free data retrieval call binding the contract method 0xc58242cd.

Solidity: function getLastReorgCommonAncestor() view returns(bytes32)

func (*RelaySession) GetPrevEpochDifficulty

func (_Relay *RelaySession) GetPrevEpochDifficulty() (*big.Int, error)

GetPrevEpochDifficulty is a free data retrieval call binding the contract method 0x2b97be24.

Solidity: function getPrevEpochDifficulty() view returns(uint256)

func (*RelaySession) GetRelayGenesis

func (_Relay *RelaySession) GetRelayGenesis() ([32]byte, error)

GetRelayGenesis is a free data retrieval call binding the contract method 0xe3d8d8d8.

Solidity: function getRelayGenesis() view returns(bytes32)

func (*RelaySession) HEIGHTINTERVAL

func (_Relay *RelaySession) HEIGHTINTERVAL() (uint32, error)

HEIGHTINTERVAL is a free data retrieval call binding the contract method 0x70d53c18.

Solidity: function HEIGHT_INTERVAL() view returns(uint32)

func (*RelaySession) IsAncestor

func (_Relay *RelaySession) IsAncestor(_ancestor [32]byte, _descendant [32]byte, _limit *big.Int) (bool, error)

IsAncestor is a free data retrieval call binding the contract method 0xb985621a.

Solidity: function isAncestor(bytes32 _ancestor, bytes32 _descendant, uint256 _limit) view returns(bool)

func (*RelaySession) MarkNewHeaviest

func (_Relay *RelaySession) MarkNewHeaviest(_ancestor [32]byte, _currentBest []byte, _newBest []byte, _limit *big.Int) (*types.Transaction, error)

MarkNewHeaviest is a paid mutator transaction binding the contract method 0x74c3a3a9.

Solidity: function markNewHeaviest(bytes32 _ancestor, bytes _currentBest, bytes _newBest, uint256 _limit) returns(bool)

type RelayTransactor

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

RelayTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewRelayTransactor

func NewRelayTransactor(address common.Address, transactor bind.ContractTransactor) (*RelayTransactor, error)

NewRelayTransactor creates a new write-only instance of Relay, bound to a specific deployed contract.

func (*RelayTransactor) AddHeaders

func (_Relay *RelayTransactor) AddHeaders(opts *bind.TransactOpts, _anchor []byte, _headers []byte) (*types.Transaction, error)

AddHeaders is a paid mutator transaction binding the contract method 0x65da41b9.

Solidity: function addHeaders(bytes _anchor, bytes _headers) returns(bool)

func (*RelayTransactor) AddHeadersWithRetarget

func (_Relay *RelayTransactor) AddHeadersWithRetarget(opts *bind.TransactOpts, _oldPeriodStartHeader []byte, _oldPeriodEndHeader []byte, _headers []byte) (*types.Transaction, error)

AddHeadersWithRetarget is a paid mutator transaction binding the contract method 0x7fa637fc.

Solidity: function addHeadersWithRetarget(bytes _oldPeriodStartHeader, bytes _oldPeriodEndHeader, bytes _headers) returns(bool)

func (*RelayTransactor) MarkNewHeaviest

func (_Relay *RelayTransactor) MarkNewHeaviest(opts *bind.TransactOpts, _ancestor [32]byte, _currentBest []byte, _newBest []byte, _limit *big.Int) (*types.Transaction, error)

MarkNewHeaviest is a paid mutator transaction binding the contract method 0x74c3a3a9.

Solidity: function markNewHeaviest(bytes32 _ancestor, bytes _currentBest, bytes _newBest, uint256 _limit) returns(bool)

type RelayTransactorRaw

type RelayTransactorRaw struct {
	Contract *RelayTransactor // Generic write-only contract binding to access the raw methods on
}

RelayTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*RelayTransactorRaw) Transact

func (_Relay *RelayTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*RelayTransactorRaw) Transfer

func (_Relay *RelayTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type RelayTransactorSession

type RelayTransactorSession struct {
	Contract     *RelayTransactor  // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

RelayTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*RelayTransactorSession) AddHeaders

func (_Relay *RelayTransactorSession) AddHeaders(_anchor []byte, _headers []byte) (*types.Transaction, error)

AddHeaders is a paid mutator transaction binding the contract method 0x65da41b9.

Solidity: function addHeaders(bytes _anchor, bytes _headers) returns(bool)

func (*RelayTransactorSession) AddHeadersWithRetarget

func (_Relay *RelayTransactorSession) AddHeadersWithRetarget(_oldPeriodStartHeader []byte, _oldPeriodEndHeader []byte, _headers []byte) (*types.Transaction, error)

AddHeadersWithRetarget is a paid mutator transaction binding the contract method 0x7fa637fc.

Solidity: function addHeadersWithRetarget(bytes _oldPeriodStartHeader, bytes _oldPeriodEndHeader, bytes _headers) returns(bool)

func (*RelayTransactorSession) MarkNewHeaviest

func (_Relay *RelayTransactorSession) MarkNewHeaviest(_ancestor [32]byte, _currentBest []byte, _newBest []byte, _limit *big.Int) (*types.Transaction, error)

MarkNewHeaviest is a paid mutator transaction binding the contract method 0x74c3a3a9.

Solidity: function markNewHeaviest(bytes32 _ancestor, bytes _currentBest, bytes _newBest, uint256 _limit) returns(bool)

Jump to

Keyboard shortcuts

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