Documentation
¶
Index ¶
- Variables
- type Legacyagglayergerl2mock
- type Legacyagglayergerl2mockCaller
- func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockCaller) BridgeAddress(opts *bind.CallOpts) (common.Address, error)
- func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockCaller) GlobalExitRootMap(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error)
- func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockCaller) LastRollupExitRoot(opts *bind.CallOpts) ([32]byte, error)
- type Legacyagglayergerl2mockCallerRaw
- type Legacyagglayergerl2mockCallerSession
- func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockCallerSession) BridgeAddress() (common.Address, error)
- func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockCallerSession) GlobalExitRootMap(arg0 [32]byte) (*big.Int, error)
- func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockCallerSession) LastRollupExitRoot() ([32]byte, error)
- type Legacyagglayergerl2mockFilterer
- type Legacyagglayergerl2mockRaw
- func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type Legacyagglayergerl2mockSession
- func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockSession) BridgeAddress() (common.Address, error)
- func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockSession) GlobalExitRootMap(arg0 [32]byte) (*big.Int, error)
- func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockSession) LastRollupExitRoot() ([32]byte, error)
- func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockSession) SetExitRoot(newRoot [32]byte) (*types.Transaction, error)
- func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockSession) SetLastGlobalExitRoot(globalExitRoot [32]byte, blockNumber *big.Int) (*types.Transaction, error)
- func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockSession) UpdateExitRoot(newRoot [32]byte) (*types.Transaction, error)
- type Legacyagglayergerl2mockTransactor
- func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockTransactor) SetExitRoot(opts *bind.TransactOpts, newRoot [32]byte) (*types.Transaction, error)
- func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockTransactor) SetLastGlobalExitRoot(opts *bind.TransactOpts, globalExitRoot [32]byte, blockNumber *big.Int) (*types.Transaction, error)
- func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockTransactor) UpdateExitRoot(opts *bind.TransactOpts, newRoot [32]byte) (*types.Transaction, error)
- type Legacyagglayergerl2mockTransactorRaw
- func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type Legacyagglayergerl2mockTransactorSession
- func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockTransactorSession) SetExitRoot(newRoot [32]byte) (*types.Transaction, error)
- func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockTransactorSession) SetLastGlobalExitRoot(globalExitRoot [32]byte, blockNumber *big.Int) (*types.Transaction, error)
- func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockTransactorSession) UpdateExitRoot(newRoot [32]byte) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var Legacyagglayergerl2mockABI = Legacyagglayergerl2mockMetaData.ABI
Legacyagglayergerl2mockABI is the input ABI used to generate the binding from. Deprecated: Use Legacyagglayergerl2mockMetaData.ABI instead.
var Legacyagglayergerl2mockBin = Legacyagglayergerl2mockMetaData.Bin
Legacyagglayergerl2mockBin is the compiled bytecode used for deploying new contracts. Deprecated: Use Legacyagglayergerl2mockMetaData.Bin instead.
var Legacyagglayergerl2mockMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_bridgeAddress\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"GlobalExitRootAlreadySet\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"GlobalExitRootNotFound\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidZeroAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyAllowedContracts\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyGlobalExitRootRemover\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyGlobalExitRootUpdater\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyPendingGlobalExitRootRemover\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyPendingGlobalExitRootUpdater\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"bridgeAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"globalExitRootMap\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastRollupExitRoot\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"newRoot\",\"type\":\"bytes32\"}],\"name\":\"setExitRoot\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"globalExitRoot\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"}],\"name\":\"setLastGlobalExitRoot\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"newRoot\",\"type\":\"bytes32\"}],\"name\":\"updateExitRoot\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
Bin: "0x60a0604052348015600e575f5ffd5b506040516102a13803806102a1833981016040819052602b91603b565b6001600160a01b03166080526066565b5f60208284031215604a575f5ffd5b81516001600160a01b0381168114605f575f5ffd5b9392505050565b60805161021d6100845f395f818160fa0152610159015261021d5ff3fe608060405234801561000f575f5ffd5b506004361061006f575f3560e01c806333d6247d1161004d57806333d6247d146100c357806396e07459146100d6578063a3c573eb146100f5575f5ffd5b806301fd904414610073578063116c40c31461008f578063257b3632146100a4575b5f5ffd5b61007c60015481565b6040519081526020015b60405180910390f35b6100a261009d3660046101b0565b600155565b005b61007c6100b23660046101b0565b5f6020819052908152604090205481565b6100a26100d13660046101b0565b610141565b6100a26100e43660046101c7565b5f9182526020829052604090912055565b61011c7f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610086565b3373ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000161461009d576040517fb49365dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f602082840312156101c0575f5ffd5b5035919050565b5f5f604083850312156101d8575f5ffd5b5050803592602090910135915056fea26469706673582212208d6ac690cd261cefeff0fcc342c68291cf067d9cd05ee15f6d96b910516f817864736f6c634300081c0033",
}
Legacyagglayergerl2mockMetaData contains all meta data concerning the Legacyagglayergerl2mock contract.
Functions ¶
This section is empty.
Types ¶
type Legacyagglayergerl2mock ¶
type Legacyagglayergerl2mock struct {
Legacyagglayergerl2mockCaller // Read-only binding to the contract
Legacyagglayergerl2mockTransactor // Write-only binding to the contract
Legacyagglayergerl2mockFilterer // Log filterer for contract events
}
Legacyagglayergerl2mock is an auto generated Go binding around an Ethereum contract.
func DeployLegacyagglayergerl2mock ¶
func DeployLegacyagglayergerl2mock(auth *bind.TransactOpts, backend bind.ContractBackend, _bridgeAddress common.Address) (common.Address, *types.Transaction, *Legacyagglayergerl2mock, error)
DeployLegacyagglayergerl2mock deploys a new Ethereum contract, binding an instance of Legacyagglayergerl2mock to it.
func NewLegacyagglayergerl2mock ¶
func NewLegacyagglayergerl2mock(address common.Address, backend bind.ContractBackend) (*Legacyagglayergerl2mock, error)
NewLegacyagglayergerl2mock creates a new instance of Legacyagglayergerl2mock, bound to a specific deployed contract.
type Legacyagglayergerl2mockCaller ¶
type Legacyagglayergerl2mockCaller struct {
// contains filtered or unexported fields
}
Legacyagglayergerl2mockCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewLegacyagglayergerl2mockCaller ¶
func NewLegacyagglayergerl2mockCaller(address common.Address, caller bind.ContractCaller) (*Legacyagglayergerl2mockCaller, error)
NewLegacyagglayergerl2mockCaller creates a new read-only instance of Legacyagglayergerl2mock, bound to a specific deployed contract.
func (*Legacyagglayergerl2mockCaller) BridgeAddress ¶
func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockCaller) BridgeAddress(opts *bind.CallOpts) (common.Address, error)
BridgeAddress is a free data retrieval call binding the contract method 0xa3c573eb.
Solidity: function bridgeAddress() view returns(address)
func (*Legacyagglayergerl2mockCaller) GlobalExitRootMap ¶
func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockCaller) GlobalExitRootMap(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error)
GlobalExitRootMap is a free data retrieval call binding the contract method 0x257b3632.
Solidity: function globalExitRootMap(bytes32 ) view returns(uint256)
func (*Legacyagglayergerl2mockCaller) LastRollupExitRoot ¶
func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockCaller) LastRollupExitRoot(opts *bind.CallOpts) ([32]byte, error)
LastRollupExitRoot is a free data retrieval call binding the contract method 0x01fd9044.
Solidity: function lastRollupExitRoot() view returns(bytes32)
type Legacyagglayergerl2mockCallerRaw ¶
type Legacyagglayergerl2mockCallerRaw struct {
Contract *Legacyagglayergerl2mockCaller // Generic read-only contract binding to access the raw methods on
}
Legacyagglayergerl2mockCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*Legacyagglayergerl2mockCallerRaw) Call ¶
func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockCallerRaw) 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 Legacyagglayergerl2mockCallerSession ¶
type Legacyagglayergerl2mockCallerSession struct {
Contract *Legacyagglayergerl2mockCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
Legacyagglayergerl2mockCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*Legacyagglayergerl2mockCallerSession) BridgeAddress ¶
func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockCallerSession) BridgeAddress() (common.Address, error)
BridgeAddress is a free data retrieval call binding the contract method 0xa3c573eb.
Solidity: function bridgeAddress() view returns(address)
func (*Legacyagglayergerl2mockCallerSession) GlobalExitRootMap ¶
func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockCallerSession) GlobalExitRootMap(arg0 [32]byte) (*big.Int, error)
GlobalExitRootMap is a free data retrieval call binding the contract method 0x257b3632.
Solidity: function globalExitRootMap(bytes32 ) view returns(uint256)
func (*Legacyagglayergerl2mockCallerSession) LastRollupExitRoot ¶
func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockCallerSession) LastRollupExitRoot() ([32]byte, error)
LastRollupExitRoot is a free data retrieval call binding the contract method 0x01fd9044.
Solidity: function lastRollupExitRoot() view returns(bytes32)
type Legacyagglayergerl2mockFilterer ¶
type Legacyagglayergerl2mockFilterer struct {
// contains filtered or unexported fields
}
Legacyagglayergerl2mockFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewLegacyagglayergerl2mockFilterer ¶
func NewLegacyagglayergerl2mockFilterer(address common.Address, filterer bind.ContractFilterer) (*Legacyagglayergerl2mockFilterer, error)
NewLegacyagglayergerl2mockFilterer creates a new log filterer instance of Legacyagglayergerl2mock, bound to a specific deployed contract.
type Legacyagglayergerl2mockRaw ¶
type Legacyagglayergerl2mockRaw struct {
Contract *Legacyagglayergerl2mock // Generic contract binding to access the raw methods on
}
Legacyagglayergerl2mockRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*Legacyagglayergerl2mockRaw) Call ¶
func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockRaw) 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 (*Legacyagglayergerl2mockRaw) Transact ¶
func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*Legacyagglayergerl2mockRaw) Transfer ¶
func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockRaw) 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 Legacyagglayergerl2mockSession ¶
type Legacyagglayergerl2mockSession struct {
Contract *Legacyagglayergerl2mock // 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
}
Legacyagglayergerl2mockSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*Legacyagglayergerl2mockSession) BridgeAddress ¶
func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockSession) BridgeAddress() (common.Address, error)
BridgeAddress is a free data retrieval call binding the contract method 0xa3c573eb.
Solidity: function bridgeAddress() view returns(address)
func (*Legacyagglayergerl2mockSession) GlobalExitRootMap ¶
func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockSession) GlobalExitRootMap(arg0 [32]byte) (*big.Int, error)
GlobalExitRootMap is a free data retrieval call binding the contract method 0x257b3632.
Solidity: function globalExitRootMap(bytes32 ) view returns(uint256)
func (*Legacyagglayergerl2mockSession) LastRollupExitRoot ¶
func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockSession) LastRollupExitRoot() ([32]byte, error)
LastRollupExitRoot is a free data retrieval call binding the contract method 0x01fd9044.
Solidity: function lastRollupExitRoot() view returns(bytes32)
func (*Legacyagglayergerl2mockSession) SetExitRoot ¶
func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockSession) SetExitRoot(newRoot [32]byte) (*types.Transaction, error)
SetExitRoot is a paid mutator transaction binding the contract method 0x116c40c3.
Solidity: function setExitRoot(bytes32 newRoot) returns()
func (*Legacyagglayergerl2mockSession) SetLastGlobalExitRoot ¶
func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockSession) SetLastGlobalExitRoot(globalExitRoot [32]byte, blockNumber *big.Int) (*types.Transaction, error)
SetLastGlobalExitRoot is a paid mutator transaction binding the contract method 0x96e07459.
Solidity: function setLastGlobalExitRoot(bytes32 globalExitRoot, uint256 blockNumber) returns()
func (*Legacyagglayergerl2mockSession) UpdateExitRoot ¶
func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockSession) UpdateExitRoot(newRoot [32]byte) (*types.Transaction, error)
UpdateExitRoot is a paid mutator transaction binding the contract method 0x33d6247d.
Solidity: function updateExitRoot(bytes32 newRoot) returns()
type Legacyagglayergerl2mockTransactor ¶
type Legacyagglayergerl2mockTransactor struct {
// contains filtered or unexported fields
}
Legacyagglayergerl2mockTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewLegacyagglayergerl2mockTransactor ¶
func NewLegacyagglayergerl2mockTransactor(address common.Address, transactor bind.ContractTransactor) (*Legacyagglayergerl2mockTransactor, error)
NewLegacyagglayergerl2mockTransactor creates a new write-only instance of Legacyagglayergerl2mock, bound to a specific deployed contract.
func (*Legacyagglayergerl2mockTransactor) SetExitRoot ¶
func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockTransactor) SetExitRoot(opts *bind.TransactOpts, newRoot [32]byte) (*types.Transaction, error)
SetExitRoot is a paid mutator transaction binding the contract method 0x116c40c3.
Solidity: function setExitRoot(bytes32 newRoot) returns()
func (*Legacyagglayergerl2mockTransactor) SetLastGlobalExitRoot ¶
func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockTransactor) SetLastGlobalExitRoot(opts *bind.TransactOpts, globalExitRoot [32]byte, blockNumber *big.Int) (*types.Transaction, error)
SetLastGlobalExitRoot is a paid mutator transaction binding the contract method 0x96e07459.
Solidity: function setLastGlobalExitRoot(bytes32 globalExitRoot, uint256 blockNumber) returns()
func (*Legacyagglayergerl2mockTransactor) UpdateExitRoot ¶
func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockTransactor) UpdateExitRoot(opts *bind.TransactOpts, newRoot [32]byte) (*types.Transaction, error)
UpdateExitRoot is a paid mutator transaction binding the contract method 0x33d6247d.
Solidity: function updateExitRoot(bytes32 newRoot) returns()
type Legacyagglayergerl2mockTransactorRaw ¶
type Legacyagglayergerl2mockTransactorRaw struct {
Contract *Legacyagglayergerl2mockTransactor // Generic write-only contract binding to access the raw methods on
}
Legacyagglayergerl2mockTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*Legacyagglayergerl2mockTransactorRaw) Transact ¶
func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*Legacyagglayergerl2mockTransactorRaw) Transfer ¶
func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockTransactorRaw) 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 Legacyagglayergerl2mockTransactorSession ¶
type Legacyagglayergerl2mockTransactorSession struct {
Contract *Legacyagglayergerl2mockTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
Legacyagglayergerl2mockTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*Legacyagglayergerl2mockTransactorSession) SetExitRoot ¶
func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockTransactorSession) SetExitRoot(newRoot [32]byte) (*types.Transaction, error)
SetExitRoot is a paid mutator transaction binding the contract method 0x116c40c3.
Solidity: function setExitRoot(bytes32 newRoot) returns()
func (*Legacyagglayergerl2mockTransactorSession) SetLastGlobalExitRoot ¶
func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockTransactorSession) SetLastGlobalExitRoot(globalExitRoot [32]byte, blockNumber *big.Int) (*types.Transaction, error)
SetLastGlobalExitRoot is a paid mutator transaction binding the contract method 0x96e07459.
Solidity: function setLastGlobalExitRoot(bytes32 globalExitRoot, uint256 blockNumber) returns()
func (*Legacyagglayergerl2mockTransactorSession) UpdateExitRoot ¶
func (_Legacyagglayergerl2mock *Legacyagglayergerl2mockTransactorSession) UpdateExitRoot(newRoot [32]byte) (*types.Transaction, error)
UpdateExitRoot is a paid mutator transaction binding the contract method 0x33d6247d.
Solidity: function updateExitRoot(bytes32 newRoot) returns()