rootchain

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootchainABI = RootchainMetaData.ABI

RootchainABI is the input ABI used to generate the binding from. Deprecated: Use RootchainMetaData.ABI instead.

View Source
var RootchainMetaData = &bind.MetaData{
	ABI: "[{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"headerBlocks\",\"outputs\":[{\"name\":\"root\",\"type\":\"bytes32\"},{\"name\":\"start\",\"type\":\"uint256\"},{\"name\":\"end\",\"type\":\"uint256\"},{\"name\":\"createdAt\",\"type\":\"uint256\"},{\"name\":\"proposer\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"data\",\"type\":\"bytes\"},{\"name\":\"sigs\",\"type\":\"uint256[3][]\"}],\"name\":\"submitCheckpoint\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"data\",\"type\":\"bytes\"},{\"name\":\"sigs\",\"type\":\"bytes\"}],\"name\":\"submitHeaderBlock\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getLastChildBlock\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"currentHeaderBlock\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"proposer\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"headerBlockId\",\"type\":\"uint256\"},{\"indexed\":true,\"name\":\"reward\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"start\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"end\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"root\",\"type\":\"bytes32\"}],\"name\":\"NewHeaderBlock\",\"type\":\"event\"}]",
}

RootchainMetaData contains all meta data concerning the Rootchain contract.

Functions

This section is empty.

Types

type Rootchain

type Rootchain struct {
	RootchainCaller     // Read-only binding to the contract
	RootchainTransactor // Write-only binding to the contract
	RootchainFilterer   // Log filterer for contract events
}

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

func NewRootchain

func NewRootchain(address common.Address, backend bind.ContractBackend) (*Rootchain, error)

NewRootchain creates a new instance of Rootchain, bound to a specific deployed contract.

type RootchainCaller

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

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

func NewRootchainCaller

func NewRootchainCaller(address common.Address, caller bind.ContractCaller) (*RootchainCaller, error)

NewRootchainCaller creates a new read-only instance of Rootchain, bound to a specific deployed contract.

func (*RootchainCaller) CurrentHeaderBlock

func (_Rootchain *RootchainCaller) CurrentHeaderBlock(opts *bind.CallOpts) (*big.Int, error)

CurrentHeaderBlock is a free data retrieval call binding the contract method 0xec7e4855.

Solidity: function currentHeaderBlock() view returns(uint256)

func (*RootchainCaller) GetLastChildBlock

func (_Rootchain *RootchainCaller) GetLastChildBlock(opts *bind.CallOpts) (*big.Int, error)

GetLastChildBlock is a free data retrieval call binding the contract method 0xb87e1b66.

Solidity: function getLastChildBlock() view returns(uint256)

func (*RootchainCaller) HeaderBlocks

func (_Rootchain *RootchainCaller) HeaderBlocks(opts *bind.CallOpts, arg0 *big.Int) (struct {
	Root      [32]byte
	Start     *big.Int
	End       *big.Int
	CreatedAt *big.Int
	Proposer  common.Address
}, error)

HeaderBlocks is a free data retrieval call binding the contract method 0x41539d4a.

Solidity: function headerBlocks(uint256 ) view returns(bytes32 root, uint256 start, uint256 end, uint256 createdAt, address proposer)

type RootchainCallerRaw

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

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

func (*RootchainCallerRaw) Call

func (_Rootchain *RootchainCallerRaw) 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 RootchainCallerSession

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

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

func (*RootchainCallerSession) CurrentHeaderBlock

func (_Rootchain *RootchainCallerSession) CurrentHeaderBlock() (*big.Int, error)

CurrentHeaderBlock is a free data retrieval call binding the contract method 0xec7e4855.

Solidity: function currentHeaderBlock() view returns(uint256)

func (*RootchainCallerSession) GetLastChildBlock

func (_Rootchain *RootchainCallerSession) GetLastChildBlock() (*big.Int, error)

GetLastChildBlock is a free data retrieval call binding the contract method 0xb87e1b66.

Solidity: function getLastChildBlock() view returns(uint256)

func (*RootchainCallerSession) HeaderBlocks

func (_Rootchain *RootchainCallerSession) HeaderBlocks(arg0 *big.Int) (struct {
	Root      [32]byte
	Start     *big.Int
	End       *big.Int
	CreatedAt *big.Int
	Proposer  common.Address
}, error)

HeaderBlocks is a free data retrieval call binding the contract method 0x41539d4a.

Solidity: function headerBlocks(uint256 ) view returns(bytes32 root, uint256 start, uint256 end, uint256 createdAt, address proposer)

type RootchainFilterer

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

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

func NewRootchainFilterer

func NewRootchainFilterer(address common.Address, filterer bind.ContractFilterer) (*RootchainFilterer, error)

NewRootchainFilterer creates a new log filterer instance of Rootchain, bound to a specific deployed contract.

func (*RootchainFilterer) FilterNewHeaderBlock

func (_Rootchain *RootchainFilterer) FilterNewHeaderBlock(opts *bind.FilterOpts, proposer []common.Address, headerBlockId []*big.Int, reward []*big.Int) (*RootchainNewHeaderBlockIterator, error)

FilterNewHeaderBlock is a free log retrieval operation binding the contract event 0xba5de06d22af2685c6c7765f60067f7d2b08c2d29f53cdf14d67f6d1c9bfb527.

Solidity: event NewHeaderBlock(address indexed proposer, uint256 indexed headerBlockId, uint256 indexed reward, uint256 start, uint256 end, bytes32 root)

func (*RootchainFilterer) ParseNewHeaderBlock added in v0.1.5

func (_Rootchain *RootchainFilterer) ParseNewHeaderBlock(log types.Log) (*RootchainNewHeaderBlock, error)

ParseNewHeaderBlock is a log parse operation binding the contract event 0xba5de06d22af2685c6c7765f60067f7d2b08c2d29f53cdf14d67f6d1c9bfb527.

Solidity: event NewHeaderBlock(address indexed proposer, uint256 indexed headerBlockId, uint256 indexed reward, uint256 start, uint256 end, bytes32 root)

func (*RootchainFilterer) WatchNewHeaderBlock

func (_Rootchain *RootchainFilterer) WatchNewHeaderBlock(opts *bind.WatchOpts, sink chan<- *RootchainNewHeaderBlock, proposer []common.Address, headerBlockId []*big.Int, reward []*big.Int) (event.Subscription, error)

WatchNewHeaderBlock is a free log subscription operation binding the contract event 0xba5de06d22af2685c6c7765f60067f7d2b08c2d29f53cdf14d67f6d1c9bfb527.

Solidity: event NewHeaderBlock(address indexed proposer, uint256 indexed headerBlockId, uint256 indexed reward, uint256 start, uint256 end, bytes32 root)

type RootchainNewHeaderBlock

type RootchainNewHeaderBlock struct {
	Proposer      common.Address
	HeaderBlockId *big.Int
	Reward        *big.Int
	Start         *big.Int
	End           *big.Int
	Root          [32]byte
	Raw           types.Log // Blockchain specific contextual infos
}

RootchainNewHeaderBlock represents a NewHeaderBlock event raised by the Rootchain contract.

type RootchainNewHeaderBlockIterator

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

RootchainNewHeaderBlockIterator is returned from FilterNewHeaderBlock and is used to iterate over the raw logs and unpacked data for NewHeaderBlock events raised by the Rootchain contract.

func (*RootchainNewHeaderBlockIterator) Close

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

func (*RootchainNewHeaderBlockIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*RootchainNewHeaderBlockIterator) Next

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 RootchainRaw

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

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

func (*RootchainRaw) Call

func (_Rootchain *RootchainRaw) 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 (*RootchainRaw) Transact

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

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

func (*RootchainRaw) Transfer

func (_Rootchain *RootchainRaw) 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 RootchainSession

type RootchainSession struct {
	Contract     *Rootchain        // 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
}

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

func (*RootchainSession) CurrentHeaderBlock

func (_Rootchain *RootchainSession) CurrentHeaderBlock() (*big.Int, error)

CurrentHeaderBlock is a free data retrieval call binding the contract method 0xec7e4855.

Solidity: function currentHeaderBlock() view returns(uint256)

func (*RootchainSession) GetLastChildBlock

func (_Rootchain *RootchainSession) GetLastChildBlock() (*big.Int, error)

GetLastChildBlock is a free data retrieval call binding the contract method 0xb87e1b66.

Solidity: function getLastChildBlock() view returns(uint256)

func (*RootchainSession) HeaderBlocks

func (_Rootchain *RootchainSession) HeaderBlocks(arg0 *big.Int) (struct {
	Root      [32]byte
	Start     *big.Int
	End       *big.Int
	CreatedAt *big.Int
	Proposer  common.Address
}, error)

HeaderBlocks is a free data retrieval call binding the contract method 0x41539d4a.

Solidity: function headerBlocks(uint256 ) view returns(bytes32 root, uint256 start, uint256 end, uint256 createdAt, address proposer)

func (*RootchainSession) SubmitCheckpoint added in v0.2.2

func (_Rootchain *RootchainSession) SubmitCheckpoint(data []byte, sigs [][3]*big.Int) (*types.Transaction, error)

SubmitCheckpoint is a paid mutator transaction binding the contract method 0x4e43e495.

Solidity: function submitCheckpoint(bytes data, uint256[3][] sigs) returns()

func (*RootchainSession) SubmitHeaderBlock

func (_Rootchain *RootchainSession) SubmitHeaderBlock(data []byte, sigs []byte) (*types.Transaction, error)

SubmitHeaderBlock is a paid mutator transaction binding the contract method 0x6a791f11.

Solidity: function submitHeaderBlock(bytes data, bytes sigs) returns()

type RootchainTransactor

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

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

func NewRootchainTransactor

func NewRootchainTransactor(address common.Address, transactor bind.ContractTransactor) (*RootchainTransactor, error)

NewRootchainTransactor creates a new write-only instance of Rootchain, bound to a specific deployed contract.

func (*RootchainTransactor) SubmitCheckpoint added in v0.2.2

func (_Rootchain *RootchainTransactor) SubmitCheckpoint(opts *bind.TransactOpts, data []byte, sigs [][3]*big.Int) (*types.Transaction, error)

SubmitCheckpoint is a paid mutator transaction binding the contract method 0x4e43e495.

Solidity: function submitCheckpoint(bytes data, uint256[3][] sigs) returns()

func (*RootchainTransactor) SubmitHeaderBlock

func (_Rootchain *RootchainTransactor) SubmitHeaderBlock(opts *bind.TransactOpts, data []byte, sigs []byte) (*types.Transaction, error)

SubmitHeaderBlock is a paid mutator transaction binding the contract method 0x6a791f11.

Solidity: function submitHeaderBlock(bytes data, bytes sigs) returns()

type RootchainTransactorRaw

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

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

func (*RootchainTransactorRaw) Transact

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

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

func (*RootchainTransactorRaw) Transfer

func (_Rootchain *RootchainTransactorRaw) 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 RootchainTransactorSession

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

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

func (*RootchainTransactorSession) SubmitCheckpoint added in v0.2.2

func (_Rootchain *RootchainTransactorSession) SubmitCheckpoint(data []byte, sigs [][3]*big.Int) (*types.Transaction, error)

SubmitCheckpoint is a paid mutator transaction binding the contract method 0x4e43e495.

Solidity: function submitCheckpoint(bytes data, uint256[3][] sigs) returns()

func (*RootchainTransactorSession) SubmitHeaderBlock

func (_Rootchain *RootchainTransactorSession) SubmitHeaderBlock(data []byte, sigs []byte) (*types.Transaction, error)

SubmitHeaderBlock is a paid mutator transaction binding the contract method 0x6a791f11.

Solidity: function submitHeaderBlock(bytes data, bytes sigs) returns()

Jump to

Keyboard shortcuts

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