globalexitrootnopush0

package
v0.0.0-...-44e5e6b Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Globalexitrootnopush0ABI = Globalexitrootnopush0MetaData.ABI

Globalexitrootnopush0ABI is the input ABI used to generate the binding from. Deprecated: Use Globalexitrootnopush0MetaData.ABI instead.

View Source
var Globalexitrootnopush0Bin = Globalexitrootnopush0MetaData.Bin

Globalexitrootnopush0Bin is the compiled bytecode used for deploying new contracts. Deprecated: Use Globalexitrootnopush0MetaData.Bin instead.

View Source
var Globalexitrootnopush0MetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_rollupManager\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_bridgeAddress\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"MerkleTreeFull\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyAllowedContracts\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"mainnetExitRoot\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"rollupExitRoot\",\"type\":\"bytes32\"}],\"name\":\"UpdateL1InfoTree\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"bridgeAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"leafHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[32]\",\"name\":\"smtProof\",\"type\":\"bytes32[32]\"},{\"internalType\":\"uint32\",\"name\":\"index\",\"type\":\"uint32\"}],\"name\":\"calculateRoot\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"depositCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getLastGlobalExitRoot\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"newGlobalExitRoot\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"lastBlockHash\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"timestamp\",\"type\":\"uint64\"}],\"name\":\"getLeafValue\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRoot\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"globalExitRootMap\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastMainnetExitRoot\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastRollupExitRoot\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"rollupManager\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"newRoot\",\"type\":\"bytes32\"}],\"name\":\"updateExitRoot\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"leafHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[32]\",\"name\":\"smtProof\",\"type\":\"bytes32[32]\"},{\"internalType\":\"uint32\",\"name\":\"index\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"root\",\"type\":\"bytes32\"}],\"name\":\"verifyMerkleProof\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"pure\",\"type\":\"function\"}]",
	Bin: "0x60c060405234801561001057600080fd5b50604051610b3c380380610b3c83398101604081905261002f91610062565b6001600160a01b0391821660a05216608052610095565b80516001600160a01b038116811461005d57600080fd5b919050565b6000806040838503121561007557600080fd5b61007e83610046565b915061008c60208401610046565b90509250929050565b60805160a051610a746100c86000396000818161014901526102c401526000818161021801526102770152610a746000f3fe608060405234801561001057600080fd5b50600436106100d45760003560e01c806349b7b8021161008157806383f244031161005b57806383f2440314610200578063a3c573eb14610213578063fb5708341461023a57600080fd5b806349b7b802146101445780635ca1e165146101905780635d8105011461019857600080fd5b8063319cf735116100b2578063319cf7351461011e57806333d6247d146101275780633ed691ef1461013c57600080fd5b806301fd9044146100d9578063257b3632146100f55780632dfdf0b514610115575b600080fd5b6100e260005481565b6040519081526020015b60405180910390f35b6100e2610103366004610722565b60026020526000908152604090205481565b6100e260235481565b6100e260015481565b61013a610135366004610722565b61025d565b005b6100e2610406565b61016b7f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100ec565b6100e261041b565b6100e26101a636600461073b565b604080516020808201959095528082019390935260c09190911b7fffffffffffffffff0000000000000000000000000000000000000000000000001660608301528051604881840301815260689092019052805191012090565b6100e261020e3660046107ac565b610425565b61016b7f000000000000000000000000000000000000000000000000000000000000000081565b61024d6102483660046107eb565b6104fb565b60405190151581526020016100ec565b60008073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001633036102ad57505060018190556000548161032d565b73ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001633036102fb5750506000819055600154819061032d565b6040517fb49365dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006103398284610513565b6000818152600260205260408120549192500361040057600061035d600143610862565b60008381526002602090815260409182902092409283905581518082018690528083018490527fffffffffffffffff0000000000000000000000000000000000000000000000004260c01b16606082015282518082036048018152606890910190925281519101209091506103d190610542565b604051849084907fda61aa7823fcd807e37b95aabcbe17f03a6f3efd514176444dae191d27fd66b390600090a3505b50505050565b6000610416600154600054610513565b905090565b6000610416610645565b600083815b60208110156104f257600163ffffffff8516821c811690036104955784816020811061045857610458610875565b602002013582604051602001610478929190918252602082015260400190565b6040516020818303038152906040528051906020012091506104e0565b818582602081106104a8576104a8610875565b60200201356040516020016104c7929190918252602082015260400190565b6040516020818303038152906040528051906020012091505b806104ea816108a4565b91505061042a565b50949350505050565b600081610509868686610425565b1495945050505050565b604080516020808201859052818301849052825180830384018152606090920190925280519101205b92915050565b806001610551602060026109fc565b61055b9190610862565b60235410610595576040517fef5ccf6600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006023600081546105a6906108a4565b9182905550905060005b6020811015610637578082901c6001166001036105e35782600382602081106105db576105db610875565b015550505050565b600381602081106105f6576105f6610875565b01546040805160208101929092528101849052606001604051602081830303815290604052805190602001209250808061062f906108a4565b9150506105b0565b50610640610a0f565b505050565b602354600090819081805b6020811015610719578083901c6001166001036106ad576003816020811061067a5761067a610875565b015460408051602081019290925281018590526060016040516020818303038152906040528051906020012093506106da565b60408051602081018690529081018390526060016040516020818303038152906040528051906020012093505b60408051602081018490529081018390526060016040516020818303038152906040528051906020012091508080610711906108a4565b915050610650565b50919392505050565b60006020828403121561073457600080fd5b5035919050565b60008060006060848603121561075057600080fd5b8335925060208401359150604084013567ffffffffffffffff8116811461077657600080fd5b809150509250925092565b80610400810183101561053c57600080fd5b803563ffffffff811681146107a757600080fd5b919050565b600080600061044084860312156107c257600080fd5b833592506107d38560208601610781565b91506107e26104208501610793565b90509250925092565b600080600080610460858703121561080257600080fd5b843593506108138660208701610781565b92506108226104208601610793565b939692955092936104400135925050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8181038181111561053c5761053c610833565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036108d5576108d5610833565b5060010190565b600181815b8085111561093557817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0482111561091b5761091b610833565b8085161561092857918102915b93841c93908002906108e1565b509250929050565b60008261094c5750600161053c565b816109595750600061053c565b816001811461096f576002811461097957610995565b600191505061053c565b60ff84111561098a5761098a610833565b50506001821b61053c565b5060208310610133831016604e8410600b84101617156109b8575081810a61053c565b6109c283836108dc565b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048211156109f4576109f4610833565b029392505050565b6000610a08838361093d565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fdfea2646970667358221220fc07ebcb1bf3607eb76c734998833eef05f4a3c59de6fc9a8c736d9a5464407464736f6c63430008140033",
}

Globalexitrootnopush0MetaData contains all meta data concerning the Globalexitrootnopush0 contract.

Functions

This section is empty.

Types

type Globalexitrootnopush0

type Globalexitrootnopush0 struct {
	Globalexitrootnopush0Caller     // Read-only binding to the contract
	Globalexitrootnopush0Transactor // Write-only binding to the contract
	Globalexitrootnopush0Filterer   // Log filterer for contract events
}

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

func DeployGlobalexitrootnopush0

func DeployGlobalexitrootnopush0(auth *bind.TransactOpts, backend bind.ContractBackend, _rollupManager common.Address, _bridgeAddress common.Address) (common.Address, *types.Transaction, *Globalexitrootnopush0, error)

DeployGlobalexitrootnopush0 deploys a new Ethereum contract, binding an instance of Globalexitrootnopush0 to it.

func NewGlobalexitrootnopush0

func NewGlobalexitrootnopush0(address common.Address, backend bind.ContractBackend) (*Globalexitrootnopush0, error)

NewGlobalexitrootnopush0 creates a new instance of Globalexitrootnopush0, bound to a specific deployed contract.

type Globalexitrootnopush0Caller

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

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

func NewGlobalexitrootnopush0Caller

func NewGlobalexitrootnopush0Caller(address common.Address, caller bind.ContractCaller) (*Globalexitrootnopush0Caller, error)

NewGlobalexitrootnopush0Caller creates a new read-only instance of Globalexitrootnopush0, bound to a specific deployed contract.

func (*Globalexitrootnopush0Caller) BridgeAddress

func (_Globalexitrootnopush0 *Globalexitrootnopush0Caller) 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 (*Globalexitrootnopush0Caller) CalculateRoot

func (_Globalexitrootnopush0 *Globalexitrootnopush0Caller) CalculateRoot(opts *bind.CallOpts, leafHash [32]byte, smtProof [32][32]byte, index uint32) ([32]byte, error)

CalculateRoot is a free data retrieval call binding the contract method 0x83f24403.

Solidity: function calculateRoot(bytes32 leafHash, bytes32[32] smtProof, uint32 index) pure returns(bytes32)

func (*Globalexitrootnopush0Caller) DepositCount

func (_Globalexitrootnopush0 *Globalexitrootnopush0Caller) DepositCount(opts *bind.CallOpts) (*big.Int, error)

DepositCount is a free data retrieval call binding the contract method 0x2dfdf0b5.

Solidity: function depositCount() view returns(uint256)

func (*Globalexitrootnopush0Caller) GetLastGlobalExitRoot

func (_Globalexitrootnopush0 *Globalexitrootnopush0Caller) GetLastGlobalExitRoot(opts *bind.CallOpts) ([32]byte, error)

GetLastGlobalExitRoot is a free data retrieval call binding the contract method 0x3ed691ef.

Solidity: function getLastGlobalExitRoot() view returns(bytes32)

func (*Globalexitrootnopush0Caller) GetLeafValue

func (_Globalexitrootnopush0 *Globalexitrootnopush0Caller) GetLeafValue(opts *bind.CallOpts, newGlobalExitRoot [32]byte, lastBlockHash *big.Int, timestamp uint64) ([32]byte, error)

GetLeafValue is a free data retrieval call binding the contract method 0x5d810501.

Solidity: function getLeafValue(bytes32 newGlobalExitRoot, uint256 lastBlockHash, uint64 timestamp) pure returns(bytes32)

func (*Globalexitrootnopush0Caller) GetRoot

func (_Globalexitrootnopush0 *Globalexitrootnopush0Caller) GetRoot(opts *bind.CallOpts) ([32]byte, error)

GetRoot is a free data retrieval call binding the contract method 0x5ca1e165.

Solidity: function getRoot() view returns(bytes32)

func (*Globalexitrootnopush0Caller) GlobalExitRootMap

func (_Globalexitrootnopush0 *Globalexitrootnopush0Caller) 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 (*Globalexitrootnopush0Caller) LastMainnetExitRoot

func (_Globalexitrootnopush0 *Globalexitrootnopush0Caller) LastMainnetExitRoot(opts *bind.CallOpts) ([32]byte, error)

LastMainnetExitRoot is a free data retrieval call binding the contract method 0x319cf735.

Solidity: function lastMainnetExitRoot() view returns(bytes32)

func (*Globalexitrootnopush0Caller) LastRollupExitRoot

func (_Globalexitrootnopush0 *Globalexitrootnopush0Caller) 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)

func (*Globalexitrootnopush0Caller) RollupManager

func (_Globalexitrootnopush0 *Globalexitrootnopush0Caller) RollupManager(opts *bind.CallOpts) (common.Address, error)

RollupManager is a free data retrieval call binding the contract method 0x49b7b802.

Solidity: function rollupManager() view returns(address)

func (*Globalexitrootnopush0Caller) VerifyMerkleProof

func (_Globalexitrootnopush0 *Globalexitrootnopush0Caller) VerifyMerkleProof(opts *bind.CallOpts, leafHash [32]byte, smtProof [32][32]byte, index uint32, root [32]byte) (bool, error)

VerifyMerkleProof is a free data retrieval call binding the contract method 0xfb570834.

Solidity: function verifyMerkleProof(bytes32 leafHash, bytes32[32] smtProof, uint32 index, bytes32 root) pure returns(bool)

type Globalexitrootnopush0CallerRaw

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

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

func (*Globalexitrootnopush0CallerRaw) Call

func (_Globalexitrootnopush0 *Globalexitrootnopush0CallerRaw) 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 Globalexitrootnopush0CallerSession

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

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

func (*Globalexitrootnopush0CallerSession) BridgeAddress

func (_Globalexitrootnopush0 *Globalexitrootnopush0CallerSession) BridgeAddress() (common.Address, error)

BridgeAddress is a free data retrieval call binding the contract method 0xa3c573eb.

Solidity: function bridgeAddress() view returns(address)

func (*Globalexitrootnopush0CallerSession) CalculateRoot

func (_Globalexitrootnopush0 *Globalexitrootnopush0CallerSession) CalculateRoot(leafHash [32]byte, smtProof [32][32]byte, index uint32) ([32]byte, error)

CalculateRoot is a free data retrieval call binding the contract method 0x83f24403.

Solidity: function calculateRoot(bytes32 leafHash, bytes32[32] smtProof, uint32 index) pure returns(bytes32)

func (*Globalexitrootnopush0CallerSession) DepositCount

func (_Globalexitrootnopush0 *Globalexitrootnopush0CallerSession) DepositCount() (*big.Int, error)

DepositCount is a free data retrieval call binding the contract method 0x2dfdf0b5.

Solidity: function depositCount() view returns(uint256)

func (*Globalexitrootnopush0CallerSession) GetLastGlobalExitRoot

func (_Globalexitrootnopush0 *Globalexitrootnopush0CallerSession) GetLastGlobalExitRoot() ([32]byte, error)

GetLastGlobalExitRoot is a free data retrieval call binding the contract method 0x3ed691ef.

Solidity: function getLastGlobalExitRoot() view returns(bytes32)

func (*Globalexitrootnopush0CallerSession) GetLeafValue

func (_Globalexitrootnopush0 *Globalexitrootnopush0CallerSession) GetLeafValue(newGlobalExitRoot [32]byte, lastBlockHash *big.Int, timestamp uint64) ([32]byte, error)

GetLeafValue is a free data retrieval call binding the contract method 0x5d810501.

Solidity: function getLeafValue(bytes32 newGlobalExitRoot, uint256 lastBlockHash, uint64 timestamp) pure returns(bytes32)

func (*Globalexitrootnopush0CallerSession) GetRoot

func (_Globalexitrootnopush0 *Globalexitrootnopush0CallerSession) GetRoot() ([32]byte, error)

GetRoot is a free data retrieval call binding the contract method 0x5ca1e165.

Solidity: function getRoot() view returns(bytes32)

func (*Globalexitrootnopush0CallerSession) GlobalExitRootMap

func (_Globalexitrootnopush0 *Globalexitrootnopush0CallerSession) 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 (*Globalexitrootnopush0CallerSession) LastMainnetExitRoot

func (_Globalexitrootnopush0 *Globalexitrootnopush0CallerSession) LastMainnetExitRoot() ([32]byte, error)

LastMainnetExitRoot is a free data retrieval call binding the contract method 0x319cf735.

Solidity: function lastMainnetExitRoot() view returns(bytes32)

func (*Globalexitrootnopush0CallerSession) LastRollupExitRoot

func (_Globalexitrootnopush0 *Globalexitrootnopush0CallerSession) LastRollupExitRoot() ([32]byte, error)

LastRollupExitRoot is a free data retrieval call binding the contract method 0x01fd9044.

Solidity: function lastRollupExitRoot() view returns(bytes32)

func (*Globalexitrootnopush0CallerSession) RollupManager

func (_Globalexitrootnopush0 *Globalexitrootnopush0CallerSession) RollupManager() (common.Address, error)

RollupManager is a free data retrieval call binding the contract method 0x49b7b802.

Solidity: function rollupManager() view returns(address)

func (*Globalexitrootnopush0CallerSession) VerifyMerkleProof

func (_Globalexitrootnopush0 *Globalexitrootnopush0CallerSession) VerifyMerkleProof(leafHash [32]byte, smtProof [32][32]byte, index uint32, root [32]byte) (bool, error)

VerifyMerkleProof is a free data retrieval call binding the contract method 0xfb570834.

Solidity: function verifyMerkleProof(bytes32 leafHash, bytes32[32] smtProof, uint32 index, bytes32 root) pure returns(bool)

type Globalexitrootnopush0Filterer

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

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

func NewGlobalexitrootnopush0Filterer

func NewGlobalexitrootnopush0Filterer(address common.Address, filterer bind.ContractFilterer) (*Globalexitrootnopush0Filterer, error)

NewGlobalexitrootnopush0Filterer creates a new log filterer instance of Globalexitrootnopush0, bound to a specific deployed contract.

func (*Globalexitrootnopush0Filterer) FilterUpdateL1InfoTree

func (_Globalexitrootnopush0 *Globalexitrootnopush0Filterer) FilterUpdateL1InfoTree(opts *bind.FilterOpts, mainnetExitRoot [][32]byte, rollupExitRoot [][32]byte) (*Globalexitrootnopush0UpdateL1InfoTreeIterator, error)

FilterUpdateL1InfoTree is a free log retrieval operation binding the contract event 0xda61aa7823fcd807e37b95aabcbe17f03a6f3efd514176444dae191d27fd66b3.

Solidity: event UpdateL1InfoTree(bytes32 indexed mainnetExitRoot, bytes32 indexed rollupExitRoot)

func (*Globalexitrootnopush0Filterer) ParseUpdateL1InfoTree

func (_Globalexitrootnopush0 *Globalexitrootnopush0Filterer) ParseUpdateL1InfoTree(log types.Log) (*Globalexitrootnopush0UpdateL1InfoTree, error)

ParseUpdateL1InfoTree is a log parse operation binding the contract event 0xda61aa7823fcd807e37b95aabcbe17f03a6f3efd514176444dae191d27fd66b3.

Solidity: event UpdateL1InfoTree(bytes32 indexed mainnetExitRoot, bytes32 indexed rollupExitRoot)

func (*Globalexitrootnopush0Filterer) WatchUpdateL1InfoTree

func (_Globalexitrootnopush0 *Globalexitrootnopush0Filterer) WatchUpdateL1InfoTree(opts *bind.WatchOpts, sink chan<- *Globalexitrootnopush0UpdateL1InfoTree, mainnetExitRoot [][32]byte, rollupExitRoot [][32]byte) (event.Subscription, error)

WatchUpdateL1InfoTree is a free log subscription operation binding the contract event 0xda61aa7823fcd807e37b95aabcbe17f03a6f3efd514176444dae191d27fd66b3.

Solidity: event UpdateL1InfoTree(bytes32 indexed mainnetExitRoot, bytes32 indexed rollupExitRoot)

type Globalexitrootnopush0Raw

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

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

func (*Globalexitrootnopush0Raw) Call

func (_Globalexitrootnopush0 *Globalexitrootnopush0Raw) 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 (*Globalexitrootnopush0Raw) Transact

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

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

func (*Globalexitrootnopush0Raw) Transfer

func (_Globalexitrootnopush0 *Globalexitrootnopush0Raw) 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 Globalexitrootnopush0Session

type Globalexitrootnopush0Session struct {
	Contract     *Globalexitrootnopush0 // 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
}

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

func (*Globalexitrootnopush0Session) BridgeAddress

func (_Globalexitrootnopush0 *Globalexitrootnopush0Session) BridgeAddress() (common.Address, error)

BridgeAddress is a free data retrieval call binding the contract method 0xa3c573eb.

Solidity: function bridgeAddress() view returns(address)

func (*Globalexitrootnopush0Session) CalculateRoot

func (_Globalexitrootnopush0 *Globalexitrootnopush0Session) CalculateRoot(leafHash [32]byte, smtProof [32][32]byte, index uint32) ([32]byte, error)

CalculateRoot is a free data retrieval call binding the contract method 0x83f24403.

Solidity: function calculateRoot(bytes32 leafHash, bytes32[32] smtProof, uint32 index) pure returns(bytes32)

func (*Globalexitrootnopush0Session) DepositCount

func (_Globalexitrootnopush0 *Globalexitrootnopush0Session) DepositCount() (*big.Int, error)

DepositCount is a free data retrieval call binding the contract method 0x2dfdf0b5.

Solidity: function depositCount() view returns(uint256)

func (*Globalexitrootnopush0Session) GetLastGlobalExitRoot

func (_Globalexitrootnopush0 *Globalexitrootnopush0Session) GetLastGlobalExitRoot() ([32]byte, error)

GetLastGlobalExitRoot is a free data retrieval call binding the contract method 0x3ed691ef.

Solidity: function getLastGlobalExitRoot() view returns(bytes32)

func (*Globalexitrootnopush0Session) GetLeafValue

func (_Globalexitrootnopush0 *Globalexitrootnopush0Session) GetLeafValue(newGlobalExitRoot [32]byte, lastBlockHash *big.Int, timestamp uint64) ([32]byte, error)

GetLeafValue is a free data retrieval call binding the contract method 0x5d810501.

Solidity: function getLeafValue(bytes32 newGlobalExitRoot, uint256 lastBlockHash, uint64 timestamp) pure returns(bytes32)

func (*Globalexitrootnopush0Session) GetRoot

func (_Globalexitrootnopush0 *Globalexitrootnopush0Session) GetRoot() ([32]byte, error)

GetRoot is a free data retrieval call binding the contract method 0x5ca1e165.

Solidity: function getRoot() view returns(bytes32)

func (*Globalexitrootnopush0Session) GlobalExitRootMap

func (_Globalexitrootnopush0 *Globalexitrootnopush0Session) 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 (*Globalexitrootnopush0Session) LastMainnetExitRoot

func (_Globalexitrootnopush0 *Globalexitrootnopush0Session) LastMainnetExitRoot() ([32]byte, error)

LastMainnetExitRoot is a free data retrieval call binding the contract method 0x319cf735.

Solidity: function lastMainnetExitRoot() view returns(bytes32)

func (*Globalexitrootnopush0Session) LastRollupExitRoot

func (_Globalexitrootnopush0 *Globalexitrootnopush0Session) LastRollupExitRoot() ([32]byte, error)

LastRollupExitRoot is a free data retrieval call binding the contract method 0x01fd9044.

Solidity: function lastRollupExitRoot() view returns(bytes32)

func (*Globalexitrootnopush0Session) RollupManager

func (_Globalexitrootnopush0 *Globalexitrootnopush0Session) RollupManager() (common.Address, error)

RollupManager is a free data retrieval call binding the contract method 0x49b7b802.

Solidity: function rollupManager() view returns(address)

func (*Globalexitrootnopush0Session) UpdateExitRoot

func (_Globalexitrootnopush0 *Globalexitrootnopush0Session) UpdateExitRoot(newRoot [32]byte) (*types.Transaction, error)

UpdateExitRoot is a paid mutator transaction binding the contract method 0x33d6247d.

Solidity: function updateExitRoot(bytes32 newRoot) returns()

func (*Globalexitrootnopush0Session) VerifyMerkleProof

func (_Globalexitrootnopush0 *Globalexitrootnopush0Session) VerifyMerkleProof(leafHash [32]byte, smtProof [32][32]byte, index uint32, root [32]byte) (bool, error)

VerifyMerkleProof is a free data retrieval call binding the contract method 0xfb570834.

Solidity: function verifyMerkleProof(bytes32 leafHash, bytes32[32] smtProof, uint32 index, bytes32 root) pure returns(bool)

type Globalexitrootnopush0Transactor

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

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

func NewGlobalexitrootnopush0Transactor

func NewGlobalexitrootnopush0Transactor(address common.Address, transactor bind.ContractTransactor) (*Globalexitrootnopush0Transactor, error)

NewGlobalexitrootnopush0Transactor creates a new write-only instance of Globalexitrootnopush0, bound to a specific deployed contract.

func (*Globalexitrootnopush0Transactor) UpdateExitRoot

func (_Globalexitrootnopush0 *Globalexitrootnopush0Transactor) 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 Globalexitrootnopush0TransactorRaw

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

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

func (*Globalexitrootnopush0TransactorRaw) Transact

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

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

func (*Globalexitrootnopush0TransactorRaw) Transfer

func (_Globalexitrootnopush0 *Globalexitrootnopush0TransactorRaw) 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 Globalexitrootnopush0TransactorSession

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

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

func (*Globalexitrootnopush0TransactorSession) UpdateExitRoot

func (_Globalexitrootnopush0 *Globalexitrootnopush0TransactorSession) 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 Globalexitrootnopush0UpdateL1InfoTree

type Globalexitrootnopush0UpdateL1InfoTree struct {
	MainnetExitRoot [32]byte
	RollupExitRoot  [32]byte
	Raw             types.Log // Blockchain specific contextual infos
}

Globalexitrootnopush0UpdateL1InfoTree represents a UpdateL1InfoTree event raised by the Globalexitrootnopush0 contract.

type Globalexitrootnopush0UpdateL1InfoTreeIterator

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

Globalexitrootnopush0UpdateL1InfoTreeIterator is returned from FilterUpdateL1InfoTree and is used to iterate over the raw logs and unpacked data for UpdateL1InfoTree events raised by the Globalexitrootnopush0 contract.

func (*Globalexitrootnopush0UpdateL1InfoTreeIterator) Close

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

func (*Globalexitrootnopush0UpdateL1InfoTreeIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*Globalexitrootnopush0UpdateL1InfoTreeIterator) 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.

Jump to

Keyboard shortcuts

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