Documentation ¶
Index ¶
- Variables
- type Sequencer
- type SequencerCaller
- type SequencerCallerRaw
- type SequencerCallerSession
- type SequencerFilterer
- func (_Sequencer *SequencerFilterer) FilterNewBlock(opts *bind.FilterOpts) (*SequencerNewBlockIterator, error)
- func (_Sequencer *SequencerFilterer) FilterNewBlocks(opts *bind.FilterOpts) (*SequencerNewBlocksIterator, error)
- func (_Sequencer *SequencerFilterer) ParseNewBlock(log types.Log) (*SequencerNewBlock, error)
- func (_Sequencer *SequencerFilterer) ParseNewBlocks(log types.Log) (*SequencerNewBlocks, error)
- func (_Sequencer *SequencerFilterer) WatchNewBlock(opts *bind.WatchOpts, sink chan<- *SequencerNewBlock) (event.Subscription, error)
- func (_Sequencer *SequencerFilterer) WatchNewBlocks(opts *bind.WatchOpts, sink chan<- *SequencerNewBlocks) (event.Subscription, error)
- type SequencerNewBlock
- type SequencerNewBlockIterator
- type SequencerNewBlocks
- type SequencerNewBlocksIterator
- type SequencerRaw
- func (_Sequencer *SequencerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Sequencer *SequencerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Sequencer *SequencerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type SequencerSession
- func (_Sequencer *SequencerSession) AddBlock(warp SequencerWarpBlock) (*types.Transaction, error)
- func (_Sequencer *SequencerSession) BlockHeight() (*big.Int, error)
- func (_Sequencer *SequencerSession) Commitments(blockHeight *big.Int) (*big.Int, error)
- func (_Sequencer *SequencerSession) MAXBLOCKS() (*big.Int, error)
- func (_Sequencer *SequencerSession) NewBlocks(blocks []SequencerWarpBlock) (*types.Transaction, error)
- type SequencerTransactor
- type SequencerTransactorRaw
- type SequencerTransactorSession
- type SequencerWarpBlock
Constants ¶
This section is empty.
Variables ¶
var SequencerABI = SequencerMetaData.ABI
SequencerABI is the input ABI used to generate the binding from. Deprecated: Use SequencerMetaData.ABI instead.
var SequencerMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expectedBlockNumber\",\"type\":\"uint256\"}],\"name\":\"IncorrectBlockNumber\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NoKeySelected\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotEnoughStake\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"numBlocks\",\"type\":\"uint256\"}],\"name\":\"TooManyBlocks\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"}],\"name\":\"NewBlock\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"firstBlockNumber\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"numBlocks\",\"type\":\"uint256\"}],\"name\":\"NewBlocks\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"MAX_BLOCKS\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"height\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"blockRoot\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"parentRoot\",\"type\":\"uint256\"}],\"internalType\":\"structSequencer.WarpBlock\",\"name\":\"warp\",\"type\":\"tuple\"}],\"name\":\"addBlock\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"blockHeight\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"blockHeight\",\"type\":\"uint256\"}],\"name\":\"commitments\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"commitment\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"height\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"blockRoot\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"parentRoot\",\"type\":\"uint256\"}],\"internalType\":\"structSequencer.WarpBlock[]\",\"name\":\"blocks\",\"type\":\"tuple[]\"}],\"name\":\"newBlocks\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
SequencerMetaData contains all meta data concerning the Sequencer contract.
Functions ¶
This section is empty.
Types ¶
type Sequencer ¶
type Sequencer struct { SequencerCaller // Read-only binding to the contract SequencerTransactor // Write-only binding to the contract SequencerFilterer // Log filterer for contract events }
Sequencer is an auto generated Go binding around an Ethereum contract.
func DeploySequencerContract ¶
func DeploySequencerContract(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Sequencer, error)
DeploySequencerContract deploys a new Ethereum contract, binding an instance of Sequencer to it.
func NewSequencer ¶
NewSequencer creates a new instance of Sequencer, bound to a specific deployed contract.
type SequencerCaller ¶
type SequencerCaller struct {
// contains filtered or unexported fields
}
SequencerCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewSequencerCaller ¶
func NewSequencerCaller(address common.Address, caller bind.ContractCaller) (*SequencerCaller, error)
NewSequencerCaller creates a new read-only instance of Sequencer, bound to a specific deployed contract.
func (*SequencerCaller) BlockHeight ¶
BlockHeight is a free data retrieval call binding the contract method 0xf44ff712.
Solidity: function blockHeight() view returns(uint256)
func (*SequencerCaller) Commitments ¶
func (_Sequencer *SequencerCaller) Commitments(opts *bind.CallOpts, blockHeight *big.Int) (*big.Int, error)
Commitments is a free data retrieval call binding the contract method 0x49ce8997.
Solidity: function commitments(uint256 blockHeight) view returns(uint256 commitment)
type SequencerCallerRaw ¶
type SequencerCallerRaw struct {
Contract *SequencerCaller // Generic read-only contract binding to access the raw methods on
}
SequencerCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*SequencerCallerRaw) Call ¶
func (_Sequencer *SequencerCallerRaw) 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 SequencerCallerSession ¶
type SequencerCallerSession struct { Contract *SequencerCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
SequencerCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*SequencerCallerSession) BlockHeight ¶
func (_Sequencer *SequencerCallerSession) BlockHeight() (*big.Int, error)
BlockHeight is a free data retrieval call binding the contract method 0xf44ff712.
Solidity: function blockHeight() view returns(uint256)
func (*SequencerCallerSession) Commitments ¶
Commitments is a free data retrieval call binding the contract method 0x49ce8997.
Solidity: function commitments(uint256 blockHeight) view returns(uint256 commitment)
type SequencerFilterer ¶
type SequencerFilterer struct {
// contains filtered or unexported fields
}
SequencerFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewSequencerFilterer ¶
func NewSequencerFilterer(address common.Address, filterer bind.ContractFilterer) (*SequencerFilterer, error)
NewSequencerFilterer creates a new log filterer instance of Sequencer, bound to a specific deployed contract.
func (*SequencerFilterer) FilterNewBlock ¶
func (_Sequencer *SequencerFilterer) FilterNewBlock(opts *bind.FilterOpts) (*SequencerNewBlockIterator, error)
FilterNewBlock is a free log retrieval operation binding the contract event 0x7fe090037171b6c8b269016189ef1438c336d360d819447a441fe06865776049.
Solidity: event NewBlock(uint256 blockNumber)
func (*SequencerFilterer) FilterNewBlocks ¶
func (_Sequencer *SequencerFilterer) FilterNewBlocks(opts *bind.FilterOpts) (*SequencerNewBlocksIterator, error)
FilterNewBlocks is a free log retrieval operation binding the contract event 0x8203a21e4f95f72e5081d5e0929b1a8c52141e123f9a14e1e74b0260fa5f52f1.
Solidity: event NewBlocks(uint256 firstBlockNumber, uint256 numBlocks)
func (*SequencerFilterer) ParseNewBlock ¶
func (_Sequencer *SequencerFilterer) ParseNewBlock(log types.Log) (*SequencerNewBlock, error)
ParseNewBlock is a log parse operation binding the contract event 0x7fe090037171b6c8b269016189ef1438c336d360d819447a441fe06865776049.
Solidity: event NewBlock(uint256 blockNumber)
func (*SequencerFilterer) ParseNewBlocks ¶
func (_Sequencer *SequencerFilterer) ParseNewBlocks(log types.Log) (*SequencerNewBlocks, error)
ParseNewBlocks is a log parse operation binding the contract event 0x8203a21e4f95f72e5081d5e0929b1a8c52141e123f9a14e1e74b0260fa5f52f1.
Solidity: event NewBlocks(uint256 firstBlockNumber, uint256 numBlocks)
func (*SequencerFilterer) WatchNewBlock ¶
func (_Sequencer *SequencerFilterer) WatchNewBlock(opts *bind.WatchOpts, sink chan<- *SequencerNewBlock) (event.Subscription, error)
WatchNewBlock is a free log subscription operation binding the contract event 0x7fe090037171b6c8b269016189ef1438c336d360d819447a441fe06865776049.
Solidity: event NewBlock(uint256 blockNumber)
func (*SequencerFilterer) WatchNewBlocks ¶
func (_Sequencer *SequencerFilterer) WatchNewBlocks(opts *bind.WatchOpts, sink chan<- *SequencerNewBlocks) (event.Subscription, error)
WatchNewBlocks is a free log subscription operation binding the contract event 0x8203a21e4f95f72e5081d5e0929b1a8c52141e123f9a14e1e74b0260fa5f52f1.
Solidity: event NewBlocks(uint256 firstBlockNumber, uint256 numBlocks)
type SequencerNewBlock ¶
type SequencerNewBlock struct { BlockNumber *big.Int Raw types.Log // Blockchain specific contextual infos }
SequencerNewBlock represents a NewBlock event raised by the Sequencer contract.
type SequencerNewBlockIterator ¶
type SequencerNewBlockIterator struct { Event *SequencerNewBlock // Event containing the contract specifics and raw log // contains filtered or unexported fields }
SequencerNewBlockIterator is returned from FilterNewBlock and is used to iterate over the raw logs and unpacked data for NewBlock events raised by the Sequencer contract.
func (*SequencerNewBlockIterator) Close ¶
func (it *SequencerNewBlockIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SequencerNewBlockIterator) Error ¶
func (it *SequencerNewBlockIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SequencerNewBlockIterator) Next ¶
func (it *SequencerNewBlockIterator) 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 SequencerNewBlocks ¶
type SequencerNewBlocks struct { FirstBlockNumber *big.Int NumBlocks *big.Int Raw types.Log // Blockchain specific contextual infos }
SequencerNewBlocks represents a NewBlocks event raised by the Sequencer contract.
type SequencerNewBlocksIterator ¶
type SequencerNewBlocksIterator struct { Event *SequencerNewBlocks // Event containing the contract specifics and raw log // contains filtered or unexported fields }
SequencerNewBlocksIterator is returned from FilterNewBlocks and is used to iterate over the raw logs and unpacked data for NewBlocks events raised by the Sequencer contract.
func (*SequencerNewBlocksIterator) Close ¶
func (it *SequencerNewBlocksIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SequencerNewBlocksIterator) Error ¶
func (it *SequencerNewBlocksIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SequencerNewBlocksIterator) Next ¶
func (it *SequencerNewBlocksIterator) 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 SequencerRaw ¶
type SequencerRaw struct {
Contract *Sequencer // Generic contract binding to access the raw methods on
}
SequencerRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*SequencerRaw) Call ¶
func (_Sequencer *SequencerRaw) 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 (*SequencerRaw) Transact ¶
func (_Sequencer *SequencerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*SequencerRaw) Transfer ¶
func (_Sequencer *SequencerRaw) 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 SequencerSession ¶
type SequencerSession struct { Contract *Sequencer // 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 }
SequencerSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*SequencerSession) AddBlock ¶
func (_Sequencer *SequencerSession) AddBlock(warp SequencerWarpBlock) (*types.Transaction, error)
AddBlock is a paid mutator transaction binding the contract method 0x2c1b92b6.
Solidity: function addBlock((uint256,uint256,uint256) warp) returns()
func (*SequencerSession) BlockHeight ¶
func (_Sequencer *SequencerSession) BlockHeight() (*big.Int, error)
BlockHeight is a free data retrieval call binding the contract method 0xf44ff712.
Solidity: function blockHeight() view returns(uint256)
func (*SequencerSession) Commitments ¶
Commitments is a free data retrieval call binding the contract method 0x49ce8997.
Solidity: function commitments(uint256 blockHeight) view returns(uint256 commitment)
func (*SequencerSession) MAXBLOCKS ¶
func (_Sequencer *SequencerSession) MAXBLOCKS() (*big.Int, error)
MAXBLOCKS is a free data retrieval call binding the contract method 0x26833dcc.
Solidity: function MAX_BLOCKS() view returns(uint256)
func (*SequencerSession) NewBlocks ¶
func (_Sequencer *SequencerSession) NewBlocks(blocks []SequencerWarpBlock) (*types.Transaction, error)
NewBlocks is a paid mutator transaction binding the contract method 0xff3379f7.
Solidity: function newBlocks((uint256,uint256,uint256)[] blocks) returns()
type SequencerTransactor ¶
type SequencerTransactor struct {
// contains filtered or unexported fields
}
SequencerTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewSequencerTransactor ¶
func NewSequencerTransactor(address common.Address, transactor bind.ContractTransactor) (*SequencerTransactor, error)
NewSequencerTransactor creates a new write-only instance of Sequencer, bound to a specific deployed contract.
func (*SequencerTransactor) AddBlock ¶
func (_Sequencer *SequencerTransactor) AddBlock(opts *bind.TransactOpts, warp SequencerWarpBlock) (*types.Transaction, error)
AddBlock is a paid mutator transaction binding the contract method 0x2c1b92b6.
Solidity: function addBlock((uint256,uint256,uint256) warp) returns()
func (*SequencerTransactor) NewBlocks ¶
func (_Sequencer *SequencerTransactor) NewBlocks(opts *bind.TransactOpts, blocks []SequencerWarpBlock) (*types.Transaction, error)
NewBlocks is a paid mutator transaction binding the contract method 0xff3379f7.
Solidity: function newBlocks((uint256,uint256,uint256)[] blocks) returns()
type SequencerTransactorRaw ¶
type SequencerTransactorRaw struct {
Contract *SequencerTransactor // Generic write-only contract binding to access the raw methods on
}
SequencerTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*SequencerTransactorRaw) Transact ¶
func (_Sequencer *SequencerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*SequencerTransactorRaw) Transfer ¶
func (_Sequencer *SequencerTransactorRaw) 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 SequencerTransactorSession ¶
type SequencerTransactorSession struct { Contract *SequencerTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
SequencerTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*SequencerTransactorSession) AddBlock ¶
func (_Sequencer *SequencerTransactorSession) AddBlock(warp SequencerWarpBlock) (*types.Transaction, error)
AddBlock is a paid mutator transaction binding the contract method 0x2c1b92b6.
Solidity: function addBlock((uint256,uint256,uint256) warp) returns()
func (*SequencerTransactorSession) NewBlocks ¶
func (_Sequencer *SequencerTransactorSession) NewBlocks(blocks []SequencerWarpBlock) (*types.Transaction, error)
NewBlocks is a paid mutator transaction binding the contract method 0xff3379f7.
Solidity: function newBlocks((uint256,uint256,uint256)[] blocks) returns()