Documentation ¶
Overview ¶
Code generated - DO NOT EDIT. This file is a generated binding and any manual changes will be lost.
Index ¶
- Variables
- type L1block
- type L1blockCaller
- func (_L1block *L1blockCaller) Basefee(opts *bind.CallOpts) (*big.Int, error)
- func (_L1block *L1blockCaller) DEPOSITORACCOUNT(opts *bind.CallOpts) (common.Address, error)
- func (_L1block *L1blockCaller) Hash(opts *bind.CallOpts) ([32]byte, error)
- func (_L1block *L1blockCaller) Number(opts *bind.CallOpts) (*big.Int, error)
- func (_L1block *L1blockCaller) Timestamp(opts *bind.CallOpts) (*big.Int, error)
- type L1blockCallerRaw
- type L1blockCallerSession
- func (_L1block *L1blockCallerSession) Basefee() (*big.Int, error)
- func (_L1block *L1blockCallerSession) DEPOSITORACCOUNT() (common.Address, error)
- func (_L1block *L1blockCallerSession) Hash() ([32]byte, error)
- func (_L1block *L1blockCallerSession) Number() (*big.Int, error)
- func (_L1block *L1blockCallerSession) Timestamp() (*big.Int, error)
- type L1blockFilterer
- type L1blockRaw
- func (_L1block *L1blockRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_L1block *L1blockRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_L1block *L1blockRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type L1blockSession
- func (_L1block *L1blockSession) Basefee() (*big.Int, error)
- func (_L1block *L1blockSession) DEPOSITORACCOUNT() (common.Address, error)
- func (_L1block *L1blockSession) Hash() ([32]byte, error)
- func (_L1block *L1blockSession) Number() (*big.Int, error)
- func (_L1block *L1blockSession) SetL1BlockValues(_number *big.Int, _timestamp *big.Int, _basefee *big.Int, _hash [32]byte) (*types.Transaction, error)
- func (_L1block *L1blockSession) Timestamp() (*big.Int, error)
- type L1blockTransactor
- type L1blockTransactorRaw
- type L1blockTransactorSession
Constants ¶
This section is empty.
Variables ¶
var L1blockABI = L1blockMetaData.ABI
L1blockABI is the input ABI used to generate the binding from. Deprecated: Use L1blockMetaData.ABI instead.
var L1blockBin = L1blockMetaData.Bin
L1blockBin is the compiled bytecode used for deploying new contracts. Deprecated: Use L1blockMetaData.Bin instead.
var L1blockDeployedBin = "" /* 1862-byte string literal not displayed */
var L1blockMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[],\"name\":\"OnlyDepositor\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"DEPOSITOR_ACCOUNT\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"basefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"hash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"number\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_number\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_timestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_basefee\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"_hash\",\"type\":\"bytes32\"}],\"name\":\"setL1BlockValues\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"timestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
Bin: "0x608060405234801561001057600080fd5b506103a2806100206000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c806309bd5a60146100675780635cf24969146100855780638381f58a146100a3578063b80777ea146100c1578063c03ba43e146100df578063e591b282146100fb575b600080fd5b61006f610119565b60405161007c91906101fd565b60405180910390f35b61008d61011f565b60405161009a9190610231565b60405180910390f35b6100ab610125565b6040516100b89190610231565b60405180910390f35b6100c961012b565b6040516100d69190610231565b60405180910390f35b6100f960048036038101906100f491906102a9565b610131565b005b6101036101cc565b6040516101109190610351565b60405180910390f35b60035481565b60025481565b60005481565b60015481565b73deaddeaddeaddeaddeaddeaddeaddeaddead000173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146101aa576040517fce8c104800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8360008190555082600181905550816002819055508060038190555050505050565b73deaddeaddeaddeaddeaddeaddeaddeaddead000181565b6000819050919050565b6101f7816101e4565b82525050565b600060208201905061021260008301846101ee565b92915050565b6000819050919050565b61022b81610218565b82525050565b60006020820190506102466000830184610222565b92915050565b600080fd5b61025a81610218565b811461026557600080fd5b50565b60008135905061027781610251565b92915050565b610286816101e4565b811461029157600080fd5b50565b6000813590506102a38161027d565b92915050565b600080600080608085870312156102c3576102c261024c565b5b60006102d187828801610268565b94505060206102e287828801610268565b93505060406102f387828801610268565b925050606061030487828801610294565b91505092959194509250565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061033b82610310565b9050919050565b61034b81610330565b82525050565b60006020820190506103666000830184610342565b9291505056fea2646970667358221220cdaea4f1ee477c3fe7f1b3caa2283ad58d53d6a652006ec9e6f6bf22354b258264736f6c634300080a0033",
}
L1blockMetaData contains all meta data concerning the L1block contract.
Functions ¶
This section is empty.
Types ¶
type L1block ¶
type L1block struct { L1blockCaller // Read-only binding to the contract L1blockTransactor // Write-only binding to the contract L1blockFilterer // Log filterer for contract events }
L1block is an auto generated Go binding around an Ethereum contract.
func DeployL1block ¶
func DeployL1block(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *L1block, error)
DeployL1block deploys a new Ethereum contract, binding an instance of L1block to it.
func NewL1block ¶
NewL1block creates a new instance of L1block, bound to a specific deployed contract.
type L1blockCaller ¶
type L1blockCaller struct {
// contains filtered or unexported fields
}
L1blockCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewL1blockCaller ¶
func NewL1blockCaller(address common.Address, caller bind.ContractCaller) (*L1blockCaller, error)
NewL1blockCaller creates a new read-only instance of L1block, bound to a specific deployed contract.
func (*L1blockCaller) Basefee ¶
Basefee is a free data retrieval call binding the contract method 0x5cf24969.
Solidity: function basefee() view returns(uint256)
func (*L1blockCaller) DEPOSITORACCOUNT ¶
DEPOSITORACCOUNT is a free data retrieval call binding the contract method 0xe591b282.
Solidity: function DEPOSITOR_ACCOUNT() view returns(address)
func (*L1blockCaller) Hash ¶
func (_L1block *L1blockCaller) Hash(opts *bind.CallOpts) ([32]byte, error)
Hash is a free data retrieval call binding the contract method 0x09bd5a60.
Solidity: function hash() view returns(bytes32)
type L1blockCallerRaw ¶
type L1blockCallerRaw struct {
Contract *L1blockCaller // Generic read-only contract binding to access the raw methods on
}
L1blockCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*L1blockCallerRaw) Call ¶
func (_L1block *L1blockCallerRaw) 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 L1blockCallerSession ¶
type L1blockCallerSession struct { Contract *L1blockCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
L1blockCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*L1blockCallerSession) Basefee ¶
func (_L1block *L1blockCallerSession) Basefee() (*big.Int, error)
Basefee is a free data retrieval call binding the contract method 0x5cf24969.
Solidity: function basefee() view returns(uint256)
func (*L1blockCallerSession) DEPOSITORACCOUNT ¶
func (_L1block *L1blockCallerSession) DEPOSITORACCOUNT() (common.Address, error)
DEPOSITORACCOUNT is a free data retrieval call binding the contract method 0xe591b282.
Solidity: function DEPOSITOR_ACCOUNT() view returns(address)
func (*L1blockCallerSession) Hash ¶
func (_L1block *L1blockCallerSession) Hash() ([32]byte, error)
Hash is a free data retrieval call binding the contract method 0x09bd5a60.
Solidity: function hash() view returns(bytes32)
type L1blockFilterer ¶
type L1blockFilterer struct {
// contains filtered or unexported fields
}
L1blockFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewL1blockFilterer ¶
func NewL1blockFilterer(address common.Address, filterer bind.ContractFilterer) (*L1blockFilterer, error)
NewL1blockFilterer creates a new log filterer instance of L1block, bound to a specific deployed contract.
type L1blockRaw ¶
type L1blockRaw struct {
Contract *L1block // Generic contract binding to access the raw methods on
}
L1blockRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*L1blockRaw) Call ¶
func (_L1block *L1blockRaw) 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 (*L1blockRaw) Transact ¶
func (_L1block *L1blockRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*L1blockRaw) Transfer ¶
func (_L1block *L1blockRaw) 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 L1blockSession ¶
type L1blockSession struct { Contract *L1block // 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 }
L1blockSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*L1blockSession) Basefee ¶
func (_L1block *L1blockSession) Basefee() (*big.Int, error)
Basefee is a free data retrieval call binding the contract method 0x5cf24969.
Solidity: function basefee() view returns(uint256)
func (*L1blockSession) DEPOSITORACCOUNT ¶
func (_L1block *L1blockSession) DEPOSITORACCOUNT() (common.Address, error)
DEPOSITORACCOUNT is a free data retrieval call binding the contract method 0xe591b282.
Solidity: function DEPOSITOR_ACCOUNT() view returns(address)
func (*L1blockSession) Hash ¶
func (_L1block *L1blockSession) Hash() ([32]byte, error)
Hash is a free data retrieval call binding the contract method 0x09bd5a60.
Solidity: function hash() view returns(bytes32)
func (*L1blockSession) Number ¶
func (_L1block *L1blockSession) Number() (*big.Int, error)
Number is a free data retrieval call binding the contract method 0x8381f58a.
Solidity: function number() view returns(uint256)
func (*L1blockSession) SetL1BlockValues ¶
func (_L1block *L1blockSession) SetL1BlockValues(_number *big.Int, _timestamp *big.Int, _basefee *big.Int, _hash [32]byte) (*types.Transaction, error)
SetL1BlockValues is a paid mutator transaction binding the contract method 0xc03ba43e.
Solidity: function setL1BlockValues(uint256 _number, uint256 _timestamp, uint256 _basefee, bytes32 _hash) returns()
type L1blockTransactor ¶
type L1blockTransactor struct {
// contains filtered or unexported fields
}
L1blockTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewL1blockTransactor ¶
func NewL1blockTransactor(address common.Address, transactor bind.ContractTransactor) (*L1blockTransactor, error)
NewL1blockTransactor creates a new write-only instance of L1block, bound to a specific deployed contract.
func (*L1blockTransactor) SetL1BlockValues ¶
func (_L1block *L1blockTransactor) SetL1BlockValues(opts *bind.TransactOpts, _number *big.Int, _timestamp *big.Int, _basefee *big.Int, _hash [32]byte) (*types.Transaction, error)
SetL1BlockValues is a paid mutator transaction binding the contract method 0xc03ba43e.
Solidity: function setL1BlockValues(uint256 _number, uint256 _timestamp, uint256 _basefee, bytes32 _hash) returns()
type L1blockTransactorRaw ¶
type L1blockTransactorRaw struct {
Contract *L1blockTransactor // Generic write-only contract binding to access the raw methods on
}
L1blockTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*L1blockTransactorRaw) Transact ¶
func (_L1block *L1blockTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*L1blockTransactorRaw) Transfer ¶
func (_L1block *L1blockTransactorRaw) 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 L1blockTransactorSession ¶
type L1blockTransactorSession struct { Contract *L1blockTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
L1blockTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*L1blockTransactorSession) SetL1BlockValues ¶
func (_L1block *L1blockTransactorSession) SetL1BlockValues(_number *big.Int, _timestamp *big.Int, _basefee *big.Int, _hash [32]byte) (*types.Transaction, error)
SetL1BlockValues is a paid mutator transaction binding the contract method 0xc03ba43e.
Solidity: function setL1BlockValues(uint256 _number, uint256 _timestamp, uint256 _basefee, bytes32 _hash) returns()