polygonzkevmglobalexitrootv2mock

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: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Polygonzkevmglobalexitrootv2mockABI = Polygonzkevmglobalexitrootv2mockMetaData.ABI

Polygonzkevmglobalexitrootv2mockABI is the input ABI used to generate the binding from. Deprecated: Use Polygonzkevmglobalexitrootv2mockMetaData.ABI instead.

View Source
var Polygonzkevmglobalexitrootv2mockBin = Polygonzkevmglobalexitrootv2mockMetaData.Bin

Polygonzkevmglobalexitrootv2mockBin is the compiled bytecode used for deploying new contracts. Deprecated: Use Polygonzkevmglobalexitrootv2mockMetaData.Bin instead.

View Source
var Polygonzkevmglobalexitrootv2mockMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_rollupManager\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_bridgeAddress\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"GlobalExitRootAlreadySet\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MerkleTreeFull\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotEnoughGlobalExitRootsInserted\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotLastInsertedGlobalExitRoot\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyAllowedContracts\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyGlobalExitRootUpdater\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"leafCount\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"currentL1InfoRoot\",\"type\":\"bytes32\"}],\"name\":\"InitL1InfoRootMap\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"mainnetExitRoot\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"rollupExitRoot\",\"type\":\"bytes32\"}],\"name\":\"UpdateL1InfoTree\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"currentL1InfoRoot\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"uint32\",\"name\":\"leafCount\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"blockhash\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"minTimestamp\",\"type\":\"uint64\"}],\"name\":\"UpdateL1InfoTreeV2\",\"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\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_root\",\"type\":\"bytes32\"},{\"internalType\":\"uint32\",\"name\":\"depositCount\",\"type\":\"uint32\"}],\"name\":\"injectGER\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"leafCount\",\"type\":\"uint32\"}],\"name\":\"l1InfoRootMap\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"l1InfoRoot\",\"type\":\"bytes32\"}],\"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: "0x60c060405234801561001057600080fd5b50604051610f4b380380610f4b83398101604081905261002f91610131565b6001600160a01b0380831660a0528116608052818161004c610055565b50505050610164565b602e54610100900460ff16156100c15760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b602e5460ff908116101561011357602e805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b80516001600160a01b038116811461012c57600080fd5b919050565b6000806040838503121561014457600080fd5b61014d83610115565b915061015b60208401610115565b90509250929050565b60805160a051610db46101976000396000818161016a015261034101526000818161024101526102f40152610db46000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c80635ca1e16511610097578063a3c573eb11610066578063a3c573eb1461023c578063a43ca6a614610263578063ef4eeb3514610297578063fb570834146102b757600080fd5b80635ca1e165146101b15780635d810501146101b95780638129fc1c1461022157806383f244031461022957600080fd5b8063319cf735116100d3578063319cf7351461013f57806333d6247d146101485780633ed691ef1461015d57806349b7b8021461016557600080fd5b806301fd9044146100fa578063257b3632146101165780632dfdf0b514610136575b600080fd5b61010360005481565b6040519081526020015b60405180910390f35b610103610124366004610a1b565b60026020526000908152604090205481565b61010360235481565b61010360015481565b61015b610156366004610a1b565b6102da565b005b610103610509565b61018c7f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161010d565b61010361051e565b6101036101c7366004610a34565b604080516020808201959095528082019390935260c09190911b7fffffffffffffffff0000000000000000000000000000000000000000000000001660608301528051604881840301815260689092019052805191012090565b61015b610528565b610103610237366004610aa5565b61071e565b61018c7f000000000000000000000000000000000000000000000000000000000000000081565b61015b610271366004610ae4565b600082815260026020908152604080832042905563ffffffff9093168252602f90522055565b6101036102a5366004610b10565b602f6020526000908152604090205481565b6102ca6102c5366004610b32565b6107f4565b604051901515815260200161010d565b60008073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016330361032a5750506001819055600054816103aa565b73ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000163303610378575050600081905560015481906103aa565b6040517fb49365dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006103b6828461080c565b60008181526002602052604081205491925003610503574260006103db600143610ba9565b60008481526002602090815260409182902092409283905581518082018790528083018490527fffffffffffffffff00000000000000000000000000000000000000000000000060c087901b16606082015282518082036048018152606890910190925281519101209091506104509061083b565b600061045a61051e565b60235463ffffffff166000908152602f602052604080822083905551919250879187917fda61aa7823fcd807e37b95aabcbe17f03a6f3efd514176444dae191d27fd66b391a360235463ffffffff167faf6c6cd7790e0180a4d22eb8ed846e55846f54ed10e5946db19972b5a0813a598284866040516104f793929190928352602083019190915267ffffffffffffffff16604082015260600190565b60405180910390a25050505b50505050565b600061051960015460005461080c565b905090565b600061051961093e565b602e54610100900460ff16158080156105485750602e54600160ff909116105b806105625750303b1580156105625750602e5460ff166001145b6105f2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a6564000000000000000000000000000000000000606482015260840160405180910390fd5b602e80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055801561065057602e80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790555b600061065a61051e565b6023805463ffffffff9081166000908152602f602090815260409182902085905592548151921682529181018390529192507f11f50c71891002839c2637ce302087160298255a87f1ea60d40e8db081383fad910160405180910390a150801561071b57602e80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50565b600083815b60208110156107eb57600163ffffffff8516821c8116900361078e5784816020811061075157610751610bbc565b602002013582604051602001610771929190918252602082015260400190565b6040516020818303038152906040528051906020012091506107d9565b818582602081106107a1576107a1610bbc565b60200201356040516020016107c0929190918252602082015260400190565b6040516020818303038152906040528051906020012091505b806107e381610beb565b915050610723565b50949350505050565b60008161080286868661071e565b1495945050505050565b604080516020808201859052818301849052825180830384018152606090920190925280519101205b92915050565b80600161084a60206002610d43565b6108549190610ba9565b6023541061088e576040517fef5ccf6600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060236000815461089f90610beb565b9182905550905060005b6020811015610930578082901c6001166001036108dc5782600382602081106108d4576108d4610bbc565b015550505050565b600381602081106108ef576108ef610bbc565b01546040805160208101929092528101849052606001604051602081830303815290604052805190602001209250808061092890610beb565b9150506108a9565b50610939610d4f565b505050565b602354600090819081805b6020811015610a12578083901c6001166001036109a6576003816020811061097357610973610bbc565b015460408051602081019290925281018590526060016040516020818303038152906040528051906020012093506109d3565b60408051602081018690529081018390526060016040516020818303038152906040528051906020012093505b60408051602081018490529081018390526060016040516020818303038152906040528051906020012091508080610a0a90610beb565b915050610949565b50919392505050565b600060208284031215610a2d57600080fd5b5035919050565b600080600060608486031215610a4957600080fd5b8335925060208401359150604084013567ffffffffffffffff81168114610a6f57600080fd5b809150509250925092565b80610400810183101561083557600080fd5b803563ffffffff81168114610aa057600080fd5b919050565b60008060006104408486031215610abb57600080fd5b83359250610acc8560208601610a7a565b9150610adb6104208501610a8c565b90509250925092565b60008060408385031215610af757600080fd5b82359150610b0760208401610a8c565b90509250929050565b600060208284031215610b2257600080fd5b610b2b82610a8c565b9392505050565b6000806000806104608587031215610b4957600080fd5b84359350610b5a8660208701610a7a565b9250610b696104208601610a8c565b939692955092936104400135925050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8181038181111561083557610835610b7a565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203610c1c57610c1c610b7a565b5060010190565b600181815b80851115610c7c57817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04821115610c6257610c62610b7a565b80851615610c6f57918102915b93841c9390800290610c28565b509250929050565b600082610c9357506001610835565b81610ca057506000610835565b8160018114610cb65760028114610cc057610cdc565b6001915050610835565b60ff841115610cd157610cd1610b7a565b50506001821b610835565b5060208310610133831016604e8410600b8410161715610cff575081810a610835565b610d098383610c23565b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04821115610d3b57610d3b610b7a565b029392505050565b6000610b2b8383610c84565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fdfea264697066735822122067714d178f77bc4a304fac2ae162fa0f185657679811b9eea62f29c82e66d9cf64736f6c63430008140033",
}

Polygonzkevmglobalexitrootv2mockMetaData contains all meta data concerning the Polygonzkevmglobalexitrootv2mock contract.

Functions

This section is empty.

Types

type Polygonzkevmglobalexitrootv2mock

type Polygonzkevmglobalexitrootv2mock struct {
	Polygonzkevmglobalexitrootv2mockCaller     // Read-only binding to the contract
	Polygonzkevmglobalexitrootv2mockTransactor // Write-only binding to the contract
	Polygonzkevmglobalexitrootv2mockFilterer   // Log filterer for contract events
}

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

func DeployPolygonzkevmglobalexitrootv2mock

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

DeployPolygonzkevmglobalexitrootv2mock deploys a new Ethereum contract, binding an instance of Polygonzkevmglobalexitrootv2mock to it.

func NewPolygonzkevmglobalexitrootv2mock

func NewPolygonzkevmglobalexitrootv2mock(address common.Address, backend bind.ContractBackend) (*Polygonzkevmglobalexitrootv2mock, error)

NewPolygonzkevmglobalexitrootv2mock creates a new instance of Polygonzkevmglobalexitrootv2mock, bound to a specific deployed contract.

type Polygonzkevmglobalexitrootv2mockCaller

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

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

func NewPolygonzkevmglobalexitrootv2mockCaller

func NewPolygonzkevmglobalexitrootv2mockCaller(address common.Address, caller bind.ContractCaller) (*Polygonzkevmglobalexitrootv2mockCaller, error)

NewPolygonzkevmglobalexitrootv2mockCaller creates a new read-only instance of Polygonzkevmglobalexitrootv2mock, bound to a specific deployed contract.

func (*Polygonzkevmglobalexitrootv2mockCaller) BridgeAddress

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockCaller) 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 (*Polygonzkevmglobalexitrootv2mockCaller) CalculateRoot

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockCaller) 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 (*Polygonzkevmglobalexitrootv2mockCaller) DepositCount

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockCaller) 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 (*Polygonzkevmglobalexitrootv2mockCaller) GetLastGlobalExitRoot

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockCaller) 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 (*Polygonzkevmglobalexitrootv2mockCaller) GetLeafValue

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockCaller) 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 (*Polygonzkevmglobalexitrootv2mockCaller) GetRoot

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockCaller) 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 (*Polygonzkevmglobalexitrootv2mockCaller) GlobalExitRootMap

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockCaller) 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 (*Polygonzkevmglobalexitrootv2mockCaller) L1InfoRootMap

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockCaller) L1InfoRootMap(opts *bind.CallOpts, leafCount uint32) ([32]byte, error)

L1InfoRootMap is a free data retrieval call binding the contract method 0xef4eeb35.

Solidity: function l1InfoRootMap(uint32 leafCount) view returns(bytes32 l1InfoRoot)

func (*Polygonzkevmglobalexitrootv2mockCaller) LastMainnetExitRoot

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockCaller) 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 (*Polygonzkevmglobalexitrootv2mockCaller) LastRollupExitRoot

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockCaller) 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 (*Polygonzkevmglobalexitrootv2mockCaller) RollupManager

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockCaller) 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 (*Polygonzkevmglobalexitrootv2mockCaller) VerifyMerkleProof

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockCaller) 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 Polygonzkevmglobalexitrootv2mockCallerRaw

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

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

func (*Polygonzkevmglobalexitrootv2mockCallerRaw) Call

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockCallerRaw) 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 Polygonzkevmglobalexitrootv2mockCallerSession

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

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

func (*Polygonzkevmglobalexitrootv2mockCallerSession) BridgeAddress

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockCallerSession) BridgeAddress() (common.Address, error)

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

Solidity: function bridgeAddress() view returns(address)

func (*Polygonzkevmglobalexitrootv2mockCallerSession) CalculateRoot

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockCallerSession) 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 (*Polygonzkevmglobalexitrootv2mockCallerSession) DepositCount

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockCallerSession) DepositCount() (*big.Int, error)

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

Solidity: function depositCount() view returns(uint256)

func (*Polygonzkevmglobalexitrootv2mockCallerSession) GetLastGlobalExitRoot

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockCallerSession) GetLastGlobalExitRoot() ([32]byte, error)

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

Solidity: function getLastGlobalExitRoot() view returns(bytes32)

func (*Polygonzkevmglobalexitrootv2mockCallerSession) GetLeafValue

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockCallerSession) 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 (*Polygonzkevmglobalexitrootv2mockCallerSession) GetRoot

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockCallerSession) GetRoot() ([32]byte, error)

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

Solidity: function getRoot() view returns(bytes32)

func (*Polygonzkevmglobalexitrootv2mockCallerSession) GlobalExitRootMap

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockCallerSession) 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 (*Polygonzkevmglobalexitrootv2mockCallerSession) L1InfoRootMap

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockCallerSession) L1InfoRootMap(leafCount uint32) ([32]byte, error)

L1InfoRootMap is a free data retrieval call binding the contract method 0xef4eeb35.

Solidity: function l1InfoRootMap(uint32 leafCount) view returns(bytes32 l1InfoRoot)

func (*Polygonzkevmglobalexitrootv2mockCallerSession) LastMainnetExitRoot

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockCallerSession) LastMainnetExitRoot() ([32]byte, error)

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

Solidity: function lastMainnetExitRoot() view returns(bytes32)

func (*Polygonzkevmglobalexitrootv2mockCallerSession) LastRollupExitRoot

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockCallerSession) LastRollupExitRoot() ([32]byte, error)

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

Solidity: function lastRollupExitRoot() view returns(bytes32)

func (*Polygonzkevmglobalexitrootv2mockCallerSession) RollupManager

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockCallerSession) RollupManager() (common.Address, error)

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

Solidity: function rollupManager() view returns(address)

func (*Polygonzkevmglobalexitrootv2mockCallerSession) VerifyMerkleProof

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockCallerSession) 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 Polygonzkevmglobalexitrootv2mockFilterer

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

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

func NewPolygonzkevmglobalexitrootv2mockFilterer

func NewPolygonzkevmglobalexitrootv2mockFilterer(address common.Address, filterer bind.ContractFilterer) (*Polygonzkevmglobalexitrootv2mockFilterer, error)

NewPolygonzkevmglobalexitrootv2mockFilterer creates a new log filterer instance of Polygonzkevmglobalexitrootv2mock, bound to a specific deployed contract.

func (*Polygonzkevmglobalexitrootv2mockFilterer) FilterInitL1InfoRootMap

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockFilterer) FilterInitL1InfoRootMap(opts *bind.FilterOpts) (*Polygonzkevmglobalexitrootv2mockInitL1InfoRootMapIterator, error)

FilterInitL1InfoRootMap is a free log retrieval operation binding the contract event 0x11f50c71891002839c2637ce302087160298255a87f1ea60d40e8db081383fad.

Solidity: event InitL1InfoRootMap(uint32 leafCount, bytes32 currentL1InfoRoot)

func (*Polygonzkevmglobalexitrootv2mockFilterer) FilterInitialized

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockFilterer) FilterInitialized(opts *bind.FilterOpts) (*Polygonzkevmglobalexitrootv2mockInitializedIterator, error)

FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*Polygonzkevmglobalexitrootv2mockFilterer) FilterUpdateL1InfoTree

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockFilterer) FilterUpdateL1InfoTree(opts *bind.FilterOpts, mainnetExitRoot [][32]byte, rollupExitRoot [][32]byte) (*Polygonzkevmglobalexitrootv2mockUpdateL1InfoTreeIterator, error)

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

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

func (*Polygonzkevmglobalexitrootv2mockFilterer) FilterUpdateL1InfoTreeV2

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockFilterer) FilterUpdateL1InfoTreeV2(opts *bind.FilterOpts, leafCount []uint32) (*Polygonzkevmglobalexitrootv2mockUpdateL1InfoTreeV2Iterator, error)

FilterUpdateL1InfoTreeV2 is a free log retrieval operation binding the contract event 0xaf6c6cd7790e0180a4d22eb8ed846e55846f54ed10e5946db19972b5a0813a59.

Solidity: event UpdateL1InfoTreeV2(bytes32 currentL1InfoRoot, uint32 indexed leafCount, uint256 blockhash, uint64 minTimestamp)

func (*Polygonzkevmglobalexitrootv2mockFilterer) ParseInitL1InfoRootMap

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockFilterer) ParseInitL1InfoRootMap(log types.Log) (*Polygonzkevmglobalexitrootv2mockInitL1InfoRootMap, error)

ParseInitL1InfoRootMap is a log parse operation binding the contract event 0x11f50c71891002839c2637ce302087160298255a87f1ea60d40e8db081383fad.

Solidity: event InitL1InfoRootMap(uint32 leafCount, bytes32 currentL1InfoRoot)

func (*Polygonzkevmglobalexitrootv2mockFilterer) ParseInitialized

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockFilterer) ParseInitialized(log types.Log) (*Polygonzkevmglobalexitrootv2mockInitialized, error)

ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*Polygonzkevmglobalexitrootv2mockFilterer) ParseUpdateL1InfoTree

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockFilterer) ParseUpdateL1InfoTree(log types.Log) (*Polygonzkevmglobalexitrootv2mockUpdateL1InfoTree, error)

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

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

func (*Polygonzkevmglobalexitrootv2mockFilterer) ParseUpdateL1InfoTreeV2

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockFilterer) ParseUpdateL1InfoTreeV2(log types.Log) (*Polygonzkevmglobalexitrootv2mockUpdateL1InfoTreeV2, error)

ParseUpdateL1InfoTreeV2 is a log parse operation binding the contract event 0xaf6c6cd7790e0180a4d22eb8ed846e55846f54ed10e5946db19972b5a0813a59.

Solidity: event UpdateL1InfoTreeV2(bytes32 currentL1InfoRoot, uint32 indexed leafCount, uint256 blockhash, uint64 minTimestamp)

func (*Polygonzkevmglobalexitrootv2mockFilterer) WatchInitL1InfoRootMap

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockFilterer) WatchInitL1InfoRootMap(opts *bind.WatchOpts, sink chan<- *Polygonzkevmglobalexitrootv2mockInitL1InfoRootMap) (event.Subscription, error)

WatchInitL1InfoRootMap is a free log subscription operation binding the contract event 0x11f50c71891002839c2637ce302087160298255a87f1ea60d40e8db081383fad.

Solidity: event InitL1InfoRootMap(uint32 leafCount, bytes32 currentL1InfoRoot)

func (*Polygonzkevmglobalexitrootv2mockFilterer) WatchInitialized

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *Polygonzkevmglobalexitrootv2mockInitialized) (event.Subscription, error)

WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*Polygonzkevmglobalexitrootv2mockFilterer) WatchUpdateL1InfoTree

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockFilterer) WatchUpdateL1InfoTree(opts *bind.WatchOpts, sink chan<- *Polygonzkevmglobalexitrootv2mockUpdateL1InfoTree, 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)

func (*Polygonzkevmglobalexitrootv2mockFilterer) WatchUpdateL1InfoTreeV2

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockFilterer) WatchUpdateL1InfoTreeV2(opts *bind.WatchOpts, sink chan<- *Polygonzkevmglobalexitrootv2mockUpdateL1InfoTreeV2, leafCount []uint32) (event.Subscription, error)

WatchUpdateL1InfoTreeV2 is a free log subscription operation binding the contract event 0xaf6c6cd7790e0180a4d22eb8ed846e55846f54ed10e5946db19972b5a0813a59.

Solidity: event UpdateL1InfoTreeV2(bytes32 currentL1InfoRoot, uint32 indexed leafCount, uint256 blockhash, uint64 minTimestamp)

type Polygonzkevmglobalexitrootv2mockInitL1InfoRootMap

type Polygonzkevmglobalexitrootv2mockInitL1InfoRootMap struct {
	LeafCount         uint32
	CurrentL1InfoRoot [32]byte
	Raw               types.Log // Blockchain specific contextual infos
}

Polygonzkevmglobalexitrootv2mockInitL1InfoRootMap represents a InitL1InfoRootMap event raised by the Polygonzkevmglobalexitrootv2mock contract.

type Polygonzkevmglobalexitrootv2mockInitL1InfoRootMapIterator

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

Polygonzkevmglobalexitrootv2mockInitL1InfoRootMapIterator is returned from FilterInitL1InfoRootMap and is used to iterate over the raw logs and unpacked data for InitL1InfoRootMap events raised by the Polygonzkevmglobalexitrootv2mock contract.

func (*Polygonzkevmglobalexitrootv2mockInitL1InfoRootMapIterator) Close

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

func (*Polygonzkevmglobalexitrootv2mockInitL1InfoRootMapIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*Polygonzkevmglobalexitrootv2mockInitL1InfoRootMapIterator) 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 Polygonzkevmglobalexitrootv2mockInitialized

type Polygonzkevmglobalexitrootv2mockInitialized struct {
	Version uint8
	Raw     types.Log // Blockchain specific contextual infos
}

Polygonzkevmglobalexitrootv2mockInitialized represents a Initialized event raised by the Polygonzkevmglobalexitrootv2mock contract.

type Polygonzkevmglobalexitrootv2mockInitializedIterator

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

Polygonzkevmglobalexitrootv2mockInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the Polygonzkevmglobalexitrootv2mock contract.

func (*Polygonzkevmglobalexitrootv2mockInitializedIterator) Close

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

func (*Polygonzkevmglobalexitrootv2mockInitializedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*Polygonzkevmglobalexitrootv2mockInitializedIterator) 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 Polygonzkevmglobalexitrootv2mockRaw

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

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

func (*Polygonzkevmglobalexitrootv2mockRaw) Call

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockRaw) 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 (*Polygonzkevmglobalexitrootv2mockRaw) Transact

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

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

func (*Polygonzkevmglobalexitrootv2mockRaw) Transfer

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockRaw) 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 Polygonzkevmglobalexitrootv2mockSession

type Polygonzkevmglobalexitrootv2mockSession struct {
	Contract     *Polygonzkevmglobalexitrootv2mock // 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
}

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

func (*Polygonzkevmglobalexitrootv2mockSession) BridgeAddress

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockSession) BridgeAddress() (common.Address, error)

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

Solidity: function bridgeAddress() view returns(address)

func (*Polygonzkevmglobalexitrootv2mockSession) CalculateRoot

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockSession) 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 (*Polygonzkevmglobalexitrootv2mockSession) DepositCount

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockSession) DepositCount() (*big.Int, error)

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

Solidity: function depositCount() view returns(uint256)

func (*Polygonzkevmglobalexitrootv2mockSession) GetLastGlobalExitRoot

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockSession) GetLastGlobalExitRoot() ([32]byte, error)

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

Solidity: function getLastGlobalExitRoot() view returns(bytes32)

func (*Polygonzkevmglobalexitrootv2mockSession) GetLeafValue

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockSession) 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 (*Polygonzkevmglobalexitrootv2mockSession) GetRoot

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockSession) GetRoot() ([32]byte, error)

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

Solidity: function getRoot() view returns(bytes32)

func (*Polygonzkevmglobalexitrootv2mockSession) GlobalExitRootMap

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockSession) 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 (*Polygonzkevmglobalexitrootv2mockSession) Initialize

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockSession) Initialize() (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x8129fc1c.

Solidity: function initialize() returns()

func (*Polygonzkevmglobalexitrootv2mockSession) InjectGER

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockSession) InjectGER(_root [32]byte, depositCount uint32) (*types.Transaction, error)

InjectGER is a paid mutator transaction binding the contract method 0xa43ca6a6.

Solidity: function injectGER(bytes32 _root, uint32 depositCount) returns()

func (*Polygonzkevmglobalexitrootv2mockSession) L1InfoRootMap

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockSession) L1InfoRootMap(leafCount uint32) ([32]byte, error)

L1InfoRootMap is a free data retrieval call binding the contract method 0xef4eeb35.

Solidity: function l1InfoRootMap(uint32 leafCount) view returns(bytes32 l1InfoRoot)

func (*Polygonzkevmglobalexitrootv2mockSession) LastMainnetExitRoot

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockSession) LastMainnetExitRoot() ([32]byte, error)

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

Solidity: function lastMainnetExitRoot() view returns(bytes32)

func (*Polygonzkevmglobalexitrootv2mockSession) LastRollupExitRoot

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockSession) LastRollupExitRoot() ([32]byte, error)

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

Solidity: function lastRollupExitRoot() view returns(bytes32)

func (*Polygonzkevmglobalexitrootv2mockSession) RollupManager

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockSession) RollupManager() (common.Address, error)

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

Solidity: function rollupManager() view returns(address)

func (*Polygonzkevmglobalexitrootv2mockSession) UpdateExitRoot

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockSession) 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 (*Polygonzkevmglobalexitrootv2mockSession) VerifyMerkleProof

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockSession) 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 Polygonzkevmglobalexitrootv2mockTransactor

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

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

func NewPolygonzkevmglobalexitrootv2mockTransactor

func NewPolygonzkevmglobalexitrootv2mockTransactor(address common.Address, transactor bind.ContractTransactor) (*Polygonzkevmglobalexitrootv2mockTransactor, error)

NewPolygonzkevmglobalexitrootv2mockTransactor creates a new write-only instance of Polygonzkevmglobalexitrootv2mock, bound to a specific deployed contract.

func (*Polygonzkevmglobalexitrootv2mockTransactor) Initialize

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockTransactor) Initialize(opts *bind.TransactOpts) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x8129fc1c.

Solidity: function initialize() returns()

func (*Polygonzkevmglobalexitrootv2mockTransactor) InjectGER

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockTransactor) InjectGER(opts *bind.TransactOpts, _root [32]byte, depositCount uint32) (*types.Transaction, error)

InjectGER is a paid mutator transaction binding the contract method 0xa43ca6a6.

Solidity: function injectGER(bytes32 _root, uint32 depositCount) returns()

func (*Polygonzkevmglobalexitrootv2mockTransactor) UpdateExitRoot

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockTransactor) 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 Polygonzkevmglobalexitrootv2mockTransactorRaw

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

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

func (*Polygonzkevmglobalexitrootv2mockTransactorRaw) Transact

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

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

func (*Polygonzkevmglobalexitrootv2mockTransactorRaw) Transfer

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockTransactorRaw) 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 Polygonzkevmglobalexitrootv2mockTransactorSession

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

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

func (*Polygonzkevmglobalexitrootv2mockTransactorSession) Initialize

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockTransactorSession) Initialize() (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x8129fc1c.

Solidity: function initialize() returns()

func (*Polygonzkevmglobalexitrootv2mockTransactorSession) InjectGER

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockTransactorSession) InjectGER(_root [32]byte, depositCount uint32) (*types.Transaction, error)

InjectGER is a paid mutator transaction binding the contract method 0xa43ca6a6.

Solidity: function injectGER(bytes32 _root, uint32 depositCount) returns()

func (*Polygonzkevmglobalexitrootv2mockTransactorSession) UpdateExitRoot

func (_Polygonzkevmglobalexitrootv2mock *Polygonzkevmglobalexitrootv2mockTransactorSession) 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 Polygonzkevmglobalexitrootv2mockUpdateL1InfoTree

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

Polygonzkevmglobalexitrootv2mockUpdateL1InfoTree represents a UpdateL1InfoTree event raised by the Polygonzkevmglobalexitrootv2mock contract.

type Polygonzkevmglobalexitrootv2mockUpdateL1InfoTreeIterator

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

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

func (*Polygonzkevmglobalexitrootv2mockUpdateL1InfoTreeIterator) Close

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

func (*Polygonzkevmglobalexitrootv2mockUpdateL1InfoTreeIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*Polygonzkevmglobalexitrootv2mockUpdateL1InfoTreeIterator) 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 Polygonzkevmglobalexitrootv2mockUpdateL1InfoTreeV2

type Polygonzkevmglobalexitrootv2mockUpdateL1InfoTreeV2 struct {
	CurrentL1InfoRoot [32]byte
	LeafCount         uint32
	Blockhash         *big.Int
	MinTimestamp      uint64
	Raw               types.Log // Blockchain specific contextual infos
}

Polygonzkevmglobalexitrootv2mockUpdateL1InfoTreeV2 represents a UpdateL1InfoTreeV2 event raised by the Polygonzkevmglobalexitrootv2mock contract.

type Polygonzkevmglobalexitrootv2mockUpdateL1InfoTreeV2Iterator

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

Polygonzkevmglobalexitrootv2mockUpdateL1InfoTreeV2Iterator is returned from FilterUpdateL1InfoTreeV2 and is used to iterate over the raw logs and unpacked data for UpdateL1InfoTreeV2 events raised by the Polygonzkevmglobalexitrootv2mock contract.

func (*Polygonzkevmglobalexitrootv2mockUpdateL1InfoTreeV2Iterator) Close

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

func (*Polygonzkevmglobalexitrootv2mockUpdateL1InfoTreeV2Iterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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