Documentation ¶
Index ¶
- Variables
- type LibBVMCodecChainBatchHeader
- type LibBVMCodecChainInclusionProof
- type StateCommitmentChain
- type StateCommitmentChainCaller
- func (_StateCommitmentChain *StateCommitmentChainCaller) Batches(opts *bind.CallOpts) (common.Address, error)
- func (_StateCommitmentChain *StateCommitmentChainCaller) FRAUDPROOFWINDOW(opts *bind.CallOpts) (*big.Int, error)
- func (_StateCommitmentChain *StateCommitmentChainCaller) GetLastSequencerTimestamp(opts *bind.CallOpts) (*big.Int, error)
- func (_StateCommitmentChain *StateCommitmentChainCaller) GetTotalBatches(opts *bind.CallOpts) (*big.Int, error)
- func (_StateCommitmentChain *StateCommitmentChainCaller) GetTotalElements(opts *bind.CallOpts) (*big.Int, error)
- func (_StateCommitmentChain *StateCommitmentChainCaller) InsideFraudProofWindow(opts *bind.CallOpts, _batchHeader LibBVMCodecChainBatchHeader) (bool, error)
- func (_StateCommitmentChain *StateCommitmentChainCaller) LibAddressManager(opts *bind.CallOpts) (common.Address, error)
- func (_StateCommitmentChain *StateCommitmentChainCaller) Messenger(opts *bind.CallOpts) (common.Address, error)
- func (_StateCommitmentChain *StateCommitmentChainCaller) Resolve(opts *bind.CallOpts, _name string) (common.Address, error)
- func (_StateCommitmentChain *StateCommitmentChainCaller) SEQUENCERPUBLISHWINDOW(opts *bind.CallOpts) (*big.Int, error)
- func (_StateCommitmentChain *StateCommitmentChainCaller) VerifyStateCommitment(opts *bind.CallOpts, _element [32]byte, ...) (bool, error)
- type StateCommitmentChainCallerRaw
- type StateCommitmentChainCallerSession
- func (_StateCommitmentChain *StateCommitmentChainCallerSession) Batches() (common.Address, error)
- func (_StateCommitmentChain *StateCommitmentChainCallerSession) FRAUDPROOFWINDOW() (*big.Int, error)
- func (_StateCommitmentChain *StateCommitmentChainCallerSession) GetLastSequencerTimestamp() (*big.Int, error)
- func (_StateCommitmentChain *StateCommitmentChainCallerSession) GetTotalBatches() (*big.Int, error)
- func (_StateCommitmentChain *StateCommitmentChainCallerSession) GetTotalElements() (*big.Int, error)
- func (_StateCommitmentChain *StateCommitmentChainCallerSession) InsideFraudProofWindow(_batchHeader LibBVMCodecChainBatchHeader) (bool, error)
- func (_StateCommitmentChain *StateCommitmentChainCallerSession) LibAddressManager() (common.Address, error)
- func (_StateCommitmentChain *StateCommitmentChainCallerSession) Messenger() (common.Address, error)
- func (_StateCommitmentChain *StateCommitmentChainCallerSession) Resolve(_name string) (common.Address, error)
- func (_StateCommitmentChain *StateCommitmentChainCallerSession) SEQUENCERPUBLISHWINDOW() (*big.Int, error)
- func (_StateCommitmentChain *StateCommitmentChainCallerSession) VerifyStateCommitment(_element [32]byte, _batchHeader LibBVMCodecChainBatchHeader, ...) (bool, error)
- type StateCommitmentChainDistributeTssReward
- type StateCommitmentChainDistributeTssRewardIterator
- type StateCommitmentChainFilterer
- func (_StateCommitmentChain *StateCommitmentChainFilterer) FilterDistributeTssReward(opts *bind.FilterOpts, _startBlockNumber []*big.Int, _batchTime []*big.Int) (*StateCommitmentChainDistributeTssRewardIterator, error)
- func (_StateCommitmentChain *StateCommitmentChainFilterer) FilterRollBackL2Chain(opts *bind.FilterOpts, _startBlockNumber []*big.Int) (*StateCommitmentChainRollBackL2ChainIterator, error)
- func (_StateCommitmentChain *StateCommitmentChainFilterer) FilterStateBatchAppended(opts *bind.FilterOpts, _batchIndex []*big.Int) (*StateCommitmentChainStateBatchAppendedIterator, error)
- func (_StateCommitmentChain *StateCommitmentChainFilterer) FilterStateBatchDeleted(opts *bind.FilterOpts, _batchIndex []*big.Int) (*StateCommitmentChainStateBatchDeletedIterator, error)
- func (_StateCommitmentChain *StateCommitmentChainFilterer) ParseDistributeTssReward(log types.Log) (*StateCommitmentChainDistributeTssReward, error)
- func (_StateCommitmentChain *StateCommitmentChainFilterer) ParseRollBackL2Chain(log types.Log) (*StateCommitmentChainRollBackL2Chain, error)
- func (_StateCommitmentChain *StateCommitmentChainFilterer) ParseStateBatchAppended(log types.Log) (*StateCommitmentChainStateBatchAppended, error)
- func (_StateCommitmentChain *StateCommitmentChainFilterer) ParseStateBatchDeleted(log types.Log) (*StateCommitmentChainStateBatchDeleted, error)
- func (_StateCommitmentChain *StateCommitmentChainFilterer) WatchDistributeTssReward(opts *bind.WatchOpts, sink chan<- *StateCommitmentChainDistributeTssReward, ...) (event.Subscription, error)
- func (_StateCommitmentChain *StateCommitmentChainFilterer) WatchRollBackL2Chain(opts *bind.WatchOpts, sink chan<- *StateCommitmentChainRollBackL2Chain, ...) (event.Subscription, error)
- func (_StateCommitmentChain *StateCommitmentChainFilterer) WatchStateBatchAppended(opts *bind.WatchOpts, sink chan<- *StateCommitmentChainStateBatchAppended, ...) (event.Subscription, error)
- func (_StateCommitmentChain *StateCommitmentChainFilterer) WatchStateBatchDeleted(opts *bind.WatchOpts, sink chan<- *StateCommitmentChainStateBatchDeleted, ...) (event.Subscription, error)
- type StateCommitmentChainRaw
- func (_StateCommitmentChain *StateCommitmentChainRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_StateCommitmentChain *StateCommitmentChainRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_StateCommitmentChain *StateCommitmentChainRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type StateCommitmentChainRollBackL2Chain
- type StateCommitmentChainRollBackL2ChainIterator
- type StateCommitmentChainSession
- func (_StateCommitmentChain *StateCommitmentChainSession) AppendStateBatch(_batch [][32]byte, _shouldStartAtElement *big.Int, _signature []byte) (*types.Transaction, error)
- func (_StateCommitmentChain *StateCommitmentChainSession) Batches() (common.Address, error)
- func (_StateCommitmentChain *StateCommitmentChainSession) DeleteStateBatch(_batchHeader LibBVMCodecChainBatchHeader) (*types.Transaction, error)
- func (_StateCommitmentChain *StateCommitmentChainSession) FRAUDPROOFWINDOW() (*big.Int, error)
- func (_StateCommitmentChain *StateCommitmentChainSession) GetLastSequencerTimestamp() (*big.Int, error)
- func (_StateCommitmentChain *StateCommitmentChainSession) GetTotalBatches() (*big.Int, error)
- func (_StateCommitmentChain *StateCommitmentChainSession) GetTotalElements() (*big.Int, error)
- func (_StateCommitmentChain *StateCommitmentChainSession) InsideFraudProofWindow(_batchHeader LibBVMCodecChainBatchHeader) (bool, error)
- func (_StateCommitmentChain *StateCommitmentChainSession) LibAddressManager() (common.Address, error)
- func (_StateCommitmentChain *StateCommitmentChainSession) Messenger() (common.Address, error)
- func (_StateCommitmentChain *StateCommitmentChainSession) Resolve(_name string) (common.Address, error)
- func (_StateCommitmentChain *StateCommitmentChainSession) RollBackL2Chain(_shouldRollBack *big.Int, _shouldStartAtElement *big.Int, _signature []byte) (*types.Transaction, error)
- func (_StateCommitmentChain *StateCommitmentChainSession) RollBackMessage(_shouldRollBack *big.Int) (*types.Transaction, error)
- func (_StateCommitmentChain *StateCommitmentChainSession) SEQUENCERPUBLISHWINDOW() (*big.Int, error)
- func (_StateCommitmentChain *StateCommitmentChainSession) VerifyStateCommitment(_element [32]byte, _batchHeader LibBVMCodecChainBatchHeader, ...) (bool, error)
- type StateCommitmentChainStateBatchAppended
- type StateCommitmentChainStateBatchAppendedIterator
- type StateCommitmentChainStateBatchDeleted
- type StateCommitmentChainStateBatchDeletedIterator
- type StateCommitmentChainTransactor
- func (_StateCommitmentChain *StateCommitmentChainTransactor) AppendStateBatch(opts *bind.TransactOpts, _batch [][32]byte, _shouldStartAtElement *big.Int, ...) (*types.Transaction, error)
- func (_StateCommitmentChain *StateCommitmentChainTransactor) DeleteStateBatch(opts *bind.TransactOpts, _batchHeader LibBVMCodecChainBatchHeader) (*types.Transaction, error)
- func (_StateCommitmentChain *StateCommitmentChainTransactor) RollBackL2Chain(opts *bind.TransactOpts, _shouldRollBack *big.Int, ...) (*types.Transaction, error)
- func (_StateCommitmentChain *StateCommitmentChainTransactor) RollBackMessage(opts *bind.TransactOpts, _shouldRollBack *big.Int) (*types.Transaction, error)
- type StateCommitmentChainTransactorRaw
- type StateCommitmentChainTransactorSession
- func (_StateCommitmentChain *StateCommitmentChainTransactorSession) AppendStateBatch(_batch [][32]byte, _shouldStartAtElement *big.Int, _signature []byte) (*types.Transaction, error)
- func (_StateCommitmentChain *StateCommitmentChainTransactorSession) DeleteStateBatch(_batchHeader LibBVMCodecChainBatchHeader) (*types.Transaction, error)
- func (_StateCommitmentChain *StateCommitmentChainTransactorSession) RollBackL2Chain(_shouldRollBack *big.Int, _shouldStartAtElement *big.Int, _signature []byte) (*types.Transaction, error)
- func (_StateCommitmentChain *StateCommitmentChainTransactorSession) RollBackMessage(_shouldRollBack *big.Int) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var StateCommitmentChainABI = StateCommitmentChainMetaData.ABI
StateCommitmentChainABI is the input ABI used to generate the binding from. Deprecated: Use StateCommitmentChainMetaData.ABI instead.
var StateCommitmentChainBin = StateCommitmentChainMetaData.Bin
StateCommitmentChainBin is the compiled bytecode used for deploying new contracts. Deprecated: Use StateCommitmentChainMetaData.Bin instead.
var StateCommitmentChainMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_libAddressManager\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_l1messenger\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_fraudProofWindow\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_sequencerPublishWindow\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_startBlockNumber\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_length\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_batchTime\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"_tssMembers\",\"type\":\"address[]\"}],\"name\":\"DistributeTssReward\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_startBlockNumber\",\"type\":\"uint256\"}],\"name\":\"RollBackL2Chain\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_batchIndex\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"_batchRoot\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_batchSize\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_prevTotalElements\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"_signature\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"_extraData\",\"type\":\"bytes\"}],\"name\":\"StateBatchAppended\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_batchIndex\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"_batchRoot\",\"type\":\"bytes32\"}],\"name\":\"StateBatchDeleted\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"FRAUD_PROOF_WINDOW\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"SEQUENCER_PUBLISH_WINDOW\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"_batch\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint256\",\"name\":\"_shouldStartAtElement\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_signature\",\"type\":\"bytes\"}],\"name\":\"appendStateBatch\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"batches\",\"outputs\":[{\"internalType\":\"contractIChainStorageContainer\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"batchIndex\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"batchRoot\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"batchSize\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"prevTotalElements\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"extraData\",\"type\":\"bytes\"}],\"internalType\":\"structLib_BVMCodec.ChainBatchHeader\",\"name\":\"_batchHeader\",\"type\":\"tuple\"}],\"name\":\"deleteStateBatch\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getLastSequencerTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"_lastSequencerTimestamp\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTotalBatches\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"_totalBatches\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTotalElements\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"_totalElements\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"batchIndex\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"batchRoot\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"batchSize\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"prevTotalElements\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"extraData\",\"type\":\"bytes\"}],\"internalType\":\"structLib_BVMCodec.ChainBatchHeader\",\"name\":\"_batchHeader\",\"type\":\"tuple\"}],\"name\":\"insideFraudProofWindow\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"_inside\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"libAddressManager\",\"outputs\":[{\"internalType\":\"contractLib_AddressManager\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"messenger\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_name\",\"type\":\"string\"}],\"name\":\"resolve\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_shouldRollBack\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_shouldStartAtElement\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_signature\",\"type\":\"bytes\"}],\"name\":\"rollBackL2Chain\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_shouldRollBack\",\"type\":\"uint256\"}],\"name\":\"rollBackMessage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_element\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"batchIndex\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"batchRoot\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"batchSize\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"prevTotalElements\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"extraData\",\"type\":\"bytes\"}],\"internalType\":\"structLib_BVMCodec.ChainBatchHeader\",\"name\":\"_batchHeader\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"},{\"internalType\":\"bytes32[]\",\"name\":\"siblings\",\"type\":\"bytes32[]\"}],\"internalType\":\"structLib_BVMCodec.ChainInclusionProof\",\"name\":\"_proof\",\"type\":\"tuple\"}],\"name\":\"verifyStateCommitment\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
Bin: "0x60806040523480156200001157600080fd5b5060405162002c4d38038062002c4d833981016040819052620000349162000090565b600080546001600160a01b039586166001600160a01b0319918216179091556001805494909516931692909217909255600291909155600355620000d8565b80516001600160a01b03811681146200008b57600080fd5b919050565b60008060008060808587031215620000a757600080fd5b620000b28562000073565b9350620000c26020860162000073565b6040860151606090960151949790965092505050565b612b6580620000e86000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c80637ad168a011610097578063c17b291b11610066578063c17b291b1461020f578063cfdf677e14610218578063e561dddc14610220578063f523f40d1461022857600080fd5b80637ad168a0146101c857806381eb62ef146101d057806389a1d980146101d9578063b768bb17146101fc57600080fd5b80633cb747bf116100d35780633cb747bf1461016c578063461a44781461018c5780635b4d90e21461019f5780637aa63a86146101b257600080fd5b80630bf3b5f2146100fa5780632169f79f1461010f578063299ca47814610122575b600080fd5b61010d6101083660046122f9565b610239565b005b61010d61011d3660046123d8565b610418565b6000546101429073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b6001546101429073ffffffffffffffffffffffffffffffffffffffff1681565b61014261019a36600461243b565b610823565b61010d6101ad366004612523565b6108d0565b6101ba610a89565b604051908152602001610163565b6101ba610aa2565b6101ba60035481565b6101ec6101e7366004612523565b610abb565b6040519015158152602001610163565b6101ec61020a366004612558565b610b63565b6101ba60025481565b610142610c2d565b6101ba610c55565b61010d610236366004612615565b50565b610241610a89565b82146102ba5760405162461bcd60e51b815260206004820152603d60248201527f41637475616c20626174636820737461727420696e64657820646f6573206e6f60448201527f74206d6174636820657870656374656420737461727420696e6465782e00000060648201526084015b60405180910390fd5b6102f86040518060400160405280600b81526020017f426f6e644d616e61676572000000000000000000000000000000000000000000815250610823565b6040517f02ad4d2a00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff91909116906302ad4d2a9060240160206040518083038186803b15801561035f57600080fd5b505afa158015610373573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610397919061262e565b6104095760405162461bcd60e51b815260206004820152602f60248201527f50726f706f73657220646f6573206e6f74206861766520656e6f75676820636f60448201527f6c6c61746572616c20706f73746564000000000000000000000000000000000060648201526084016102b1565b6104138382610cdc565b505050565b610420610a89565b82146104945760405162461bcd60e51b815260206004820152603d60248201527f41637475616c20626174636820737461727420696e64657820646f6573206e6f60448201527f74206d6174636820657870656374656420737461727420696e6465782e00000060648201526084016102b1565b6104d26040518060400160405280600b81526020017f426f6e644d616e61676572000000000000000000000000000000000000000000815250610823565b6040517f02ad4d2a00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff91909116906302ad4d2a9060240160206040518083038186803b15801561053957600080fd5b505afa15801561054d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610571919061262e565b6105e35760405162461bcd60e51b815260206004820152602f60248201527f50726f706f73657220646f6573206e6f74206861766520656e6f75676820636f60448201527f6c6c61746572616c20706f73746564000000000000000000000000000000000060648201526084016102b1565b600083511161065a5760405162461bcd60e51b815260206004820152602360248201527f43616e6e6f74207375626d697420616e20656d7074792073746174652062617460448201527f63682e000000000000000000000000000000000000000000000000000000000060648201526084016102b1565b6106986040518060400160405280601981526020017f43616e6f6e6963616c5472616e73616374696f6e436861696e00000000000000815250610823565b73ffffffffffffffffffffffffffffffffffffffff16637aa63a866040518163ffffffff1660e01b815260040160206040518083038186803b1580156106dd57600080fd5b505afa1580156106f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107159190612650565b835161071f610a89565b6107299190612698565b11156107c35760405162461bcd60e51b815260206004820152604960248201527f4e756d626572206f6620737461746520726f6f74732063616e6e6f742065786360448201527f65656420746865206e756d626572206f662063616e6f6e6963616c207472616e60648201527f73616374696f6e732e0000000000000000000000000000000000000000000000608482015260a4016102b1565b6107ce838383610ed2565b6108198382423360405160200161080592919091825273ffffffffffffffffffffffffffffffffffffffff16602082015260400190565b604051602081830303815290604052611010565b61041383836112c0565b600080546040517fbf40fac100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091169063bf40fac19061087a90859060040161271b565b60206040518083038186803b15801561089257600080fd5b505afa1580156108a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ca9190612750565b92915050565b61090e6040518060400160405280601181526020017f42564d5f46726175645665726966696572000000000000000000000000000000815250610823565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146109ae5760405162461bcd60e51b815260206004820152603b60248201527f537461746520626174636865732063616e206f6e6c792062652064656c65746560448201527f64206279207468652042564d5f467261756456657269666965722e000000000060648201526084016102b1565b6109b781611513565b610a035760405162461bcd60e51b815260206004820152601560248201527f496e76616c6964206261746368206865616465722e000000000000000000000060448201526064016102b1565b610a0c81610abb565b610a80576040805162461bcd60e51b81526020600482015260248101919091527f537461746520626174636865732063616e206f6e6c792062652064656c65746560448201527f642077697468696e207468652066726175642070726f6f662077696e646f772e60648201526084016102b1565b610236816115d5565b600080610a94611806565b5064ffffffffff1692915050565b600080610aad611806565b64ffffffffff169392505050565b6000808260a00151806020019051810190610ad6919061276d565b50905080610b4c5760405162461bcd60e51b815260206004820152602560248201527f4261746368206865616465722074696d657374616d702063616e6e6f7420626560448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084016102b1565b4260025482610b5b9190612698565b119392505050565b6000610b6e83611513565b610bba5760405162461bcd60e51b815260206004820152601560248201527f496e76616c6964206261746368206865616465722e000000000000000000000060448201526064016102b1565b610bd78360200151858460000151856020015187604001516118aa565b610c235760405162461bcd60e51b815260206004820152601860248201527f496e76616c696420696e636c7573696f6e2070726f6f662e000000000000000060448201526064016102b1565b5060019392505050565b6000610c50604051806060016040528060218152602001612b0f60219139610823565b905090565b6000610c5f610c2d565b73ffffffffffffffffffffffffffffffffffffffff16631f7b6d326040518163ffffffff1660e01b815260040160206040518083038186803b158015610ca457600080fd5b505afa158015610cb8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c509190612650565b610d1a6040518060400160405280601781526020017f50726f78795f5f5453535f47726f75704d616e61676572000000000000000000815250610823565b73ffffffffffffffffffffffffffffffffffffffff16633231a7f083604051602001610d4891815260200190565b60405160208183030381529060405280519060200120836040518363ffffffff1660e01b8152600401610d7c92919061279d565b602060405180830381600087803b158015610d9657600080fd5b505af1158015610daa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dce919061262e565b610e1a5760405162461bcd60e51b815260206004820152601760248201527f766572696679207369676e6174757265206661696c656400000000000000000060448201526064016102b1565b6040805160248082018590528251808303909101815260449091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167ff523f40d00000000000000000000000000000000000000000000000000000000179052610ea273deaddeaddeaddeaddeaddeaddeaddeaddead2222621e848083611b18565b60405183907f8ef5d07412def056f6bfc680f359c8a0370cfacb2becaf67d01e2e372e08964a90600090a2505050565b610f106040518060400160405280601781526020017f50726f78795f5f5453535f47726f75704d616e61676572000000000000000000815250610823565b73ffffffffffffffffffffffffffffffffffffffff16633231a7f08484604051602001610f3e9291906127b6565b60405160208183030381529060405280519060200120836040518363ffffffff1660e01b8152600401610f7292919061279d565b602060405180830381600087803b158015610f8c57600080fd5b505af1158015610fa0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc4919061262e565b6104135760405162461bcd60e51b815260206004820152601760248201527f766572696679207369676e6174757265206661696c656400000000000000000060448201526064016102b1565b60006110506040518060400160405280600c81526020017f42564d5f50726f706f7365720000000000000000000000000000000000000000815250610823565b905060008061105d611806565b90925090503373ffffffffffffffffffffffffffffffffffffffff84161415611087575042611136565b426003548264ffffffffff1661109d9190612698565b106111365760405162461bcd60e51b815260206004820152604360248201527f43616e6e6f74207075626c69736820737461746520726f6f747320776974686960448201527f6e207468652073657175656e636572207075626c69636174696f6e2077696e6460648201527f6f772e0000000000000000000000000000000000000000000000000000000000608482015260a4016102b1565b60006040518060c0016040528061114b610c55565b815260200161115989611ba9565b8152602001885181526020018464ffffffffff16815260200187815260200186815250905080600001517f9cf3ad24eae3fd6d461e2f566b35b95b6d671871d9fcb45f8ac8030e4a8d21b382602001518360400151846060015185608001518660a001516040516111ce9594939291906127fe565b60405180910390a26111de610c2d565b73ffffffffffffffffffffffffffffffffffffffff16632015276c6112028361208d565b611227846040015185606001516112199190612698565b602887811b91909117901b90565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815260048101929092527fffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000166024820152604401600060405180830381600087803b15801561129f57600080fd5b505af11580156112b3573d6000803e3d6000fd5b5050505050505050505050565b60006113006040518060400160405280601781526020017f50726f78795f5f5453535f47726f75704d616e61676572000000000000000000815250610823565b73ffffffffffffffffffffffffffffffffffffffff16632cd00d536040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561134757600080fd5b505af115801561135b573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526113a19190810190612841565b905060008151116113f45760405162461bcd60e51b815260206004820152601860248201527f67657420747373206d656d6265727320696e206572726f72000000000000000060448201526064016102b1565b82516040516000917f0fae75d900000000000000000000000000000000000000000000000000000000916114309186914290879060240161292c565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915290506114d1734200000000000000000000000000000000000020621e848083611b18565b42837ff533ef50019763ee9d95ad46e28350b533c11edd472ae7be93e8fae83c1b6d9986518560405161150592919061295b565b60405180910390a350505050565b600061151d610c2d565b82516040517f9507d39a00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9290921691639507d39a916115759160040190815260200190565b60206040518083038186803b15801561158d57600080fd5b505afa1580156115a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115c59190612650565b6115ce8361208d565b1492915050565b6115dd610c2d565b73ffffffffffffffffffffffffffffffffffffffff16631f7b6d326040518163ffffffff1660e01b815260040160206040518083038186803b15801561162257600080fd5b505afa158015611636573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061165a9190612650565b8151106116a95760405162461bcd60e51b815260206004820152601460248201527f496e76616c696420626174636820696e6465782e00000000000000000000000060448201526064016102b1565b6116b281611513565b6116fe5760405162461bcd60e51b815260206004820152601560248201527f496e76616c6964206261746368206865616465722e000000000000000000000060448201526064016102b1565b611706610c2d565b8151606083015173ffffffffffffffffffffffffffffffffffffffff929092169163167fd681919060281b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815260048101929092527fffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000166024820152604401600060405180830381600087803b1580156117a957600080fd5b505af11580156117bd573d6000803e3d6000fd5b5050505080600001517f8747b69ce8fdb31c3b9b0a67bd8049ad8c1a69ea417b69b12174068abd9cbd6482602001516040516117fb91815260200190565b60405180910390a250565b6000806000611813610c2d565b73ffffffffffffffffffffffffffffffffffffffff1663ccf8f9696040518163ffffffff1660e01b815260040160206040518083038186803b15801561185857600080fd5b505afa15801561186c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118909190612974565b64ffffffffff602882901c169460509190911c9350915050565b60008082116119215760405162461bcd60e51b815260206004820152603760248201527f4c69625f4d65726b6c65547265653a20546f74616c206c6561766573206d757360448201527f742062652067726561746572207468616e207a65726f2e00000000000000000060648201526084016102b1565b8184106119955760405162461bcd60e51b8152602060048201526024808201527f4c69625f4d65726b6c65547265653a20496e646578206f7574206f6620626f7560448201527f6e64732e0000000000000000000000000000000000000000000000000000000060648201526084016102b1565b61199e826120d6565b835114611a395760405162461bcd60e51b815260206004820152604d60248201527f4c69625f4d65726b6c65547265653a20546f74616c207369626c696e6773206460448201527f6f6573206e6f7420636f72726563746c7920636f72726573706f6e6420746f2060648201527f746f74616c206c65617665732e00000000000000000000000000000000000000608482015260a4016102b1565b8460005b8451811015611b0b578560011660011415611aa457848181518110611a6457611a646129b6565b602002602001015182604051602001611a87929190918252602082015260400190565b604051602081830303815290604052805190602001209150611af2565b81858281518110611ab757611ab76129b6565b6020026020010151604051602001611ad9929190918252602082015260400190565b6040516020818303038152906040528051906020012091505b60019590951c9480611b03816129e5565b915050611a3d565b5090951495945050505050565b6001546040517f3dbb202b00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90911690633dbb202b90611b7290869085908790600401612a1e565b600060405180830381600087803b158015611b8c57600080fd5b505af1158015611ba0573d6000803e3d6000fd5b50505050505050565b600080825111611c215760405162461bcd60e51b815260206004820152603460248201527f4c69625f4d65726b6c65547265653a204d7573742070726f766964652061742060448201527f6c65617374206f6e65206c65616620686173682e00000000000000000000000060648201526084016102b1565b815160011415611c4d5781600081518110611c3e57611c3e6129b6565b60200260200101519050919050565b60408051610200810182527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e56381527f633dc4d7da7256660a892f8f1604a44b5432649cc8ec5cb3ced4c4e6ac94dd1d60208201527f890740a8eb06ce9be422cb8da5cdafc2b58c0a5e24036c578de2a433c828ff7d818301527f3b8ec09e026fdc305365dfc94e189a81b38c7597b3d941c279f042e8206e0bd86060808301919091527fecd50eee38e386bd62be9bedb990706951b65fe053bd9d8a521af753d139e2da60808301527fdefff6d330bb5403f63b14f33b578274160de3a50df4efecf0e0db73bcdd3da560a08301527f617bdd11f7c0a11f49db22f629387a12da7596f9d1704d7465177c63d88ec7d760c08301527f292c23a9aa1d8bea7e2435e555a4a60e379a5a35f3f452bae60121073fb6eead60e08301527fe1cea92ed99acdcb045a6726b2f87107e8a61620a232cf4d7d5b5766b3952e106101008301527f7ad66c0a68c72cb89e4fb4303841966e4062a76ab97451e3b9fb526a5ceb7f826101208301527fe026cc5a4aed3c22a58cbd3d2ac754c9352c5436f638042dca99034e836365166101408301527f3d04cffd8b46a874edf5cfae63077de85f849a660426697b06a829c70dd1409c6101608301527fad676aa337a485e4728a0b240d92b3ef7b3c372d06d189322bfd5f61f1e7203e6101808301527fa2fca4a49658f9fab7aa63289c91b7c7b6c832a6d0e69334ff5b0a3483d09dab6101a08301527f4ebfd9cd7bca2505f7bef59cc1c12ecc708fff26ae4af19abe852afe9e20c8626101c08301527f2def10d13dd169f550f578bda343d9717a138562e0093b380a1120789d53cf106101e083015282518381529081018352909160009190602082018180368337505085519192506000918291508180805b600184111561206357611efe600285612a92565b9150611f0b600285612aa6565b600114905060005b82811015611fb7578a611f27826002612aba565b81518110611f3757611f376129b6565b602002602001015196508a816002611f4f9190612aba565b611f5a906001612698565b81518110611f6a57611f6a6129b6565b6020026020010151955086602089015285604089015287805190602001208b8281518110611f9a57611f9a6129b6565b602090810291909101015280611faf816129e5565b915050611f13565b5080156120335789611fca600186612af7565b81518110611fda57611fda6129b6565b60200260200101519550878360108110611ff657611ff66129b6565b602002015160001b945085602088015284604088015286805190602001208a8381518110612026576120266129b6565b6020026020010181815250505b8061203f576000612042565b60015b61204f9060ff1683612698565b93508261205b816129e5565b935050611eea565b89600081518110612076576120766129b6565b602002602001015198505050505050505050919050565b6020808201516040808401516060850151608086015160a087015193516000966120b9969591016127fe565b604051602081830303815290604052805190602001209050919050565b600080821161214d5760405162461bcd60e51b815260206004820152603060248201527f4c69625f4d65726b6c65547265653a2043616e6e6f7420636f6d70757465206360448201527f65696c286c6f675f3229206f6620302e0000000000000000000000000000000060648201526084016102b1565b816001141561215e57506000919050565b81600060805b6001811061219c578061217a600180831b612af7565b901b8316156121945761218d8183612698565b92811c9291505b60011c612164565b506001811b84146121b5576121b2600182612698565b90505b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405160c0810167ffffffffffffffff8111828210171561220e5761220e6121bc565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff8111828210171561225b5761225b6121bc565b604052919050565b600067ffffffffffffffff83111561227d5761227d6121bc565b6122ae60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f86011601612214565b90508281528383830111156122c257600080fd5b828260208301376000602084830101529392505050565b600082601f8301126122ea57600080fd5b6121b583833560208501612263565b60008060006060848603121561230e57600080fd5b8335925060208401359150604084013567ffffffffffffffff81111561233357600080fd5b61233f868287016122d9565b9150509250925092565b600067ffffffffffffffff821115612363576123636121bc565b5060051b60200190565b600082601f83011261237e57600080fd5b8135602061239361238e83612349565b612214565b82815260059290921b840181019181810190868411156123b257600080fd5b8286015b848110156123cd57803583529183019183016123b6565b509695505050505050565b6000806000606084860312156123ed57600080fd5b833567ffffffffffffffff8082111561240557600080fd5b6124118783880161236d565b945060208601359350604086013591508082111561242e57600080fd5b5061233f868287016122d9565b60006020828403121561244d57600080fd5b813567ffffffffffffffff81111561246457600080fd5b8201601f8101841361247557600080fd5b61248484823560208401612263565b949350505050565b600060c0828403121561249e57600080fd5b6124a66121eb565b905081358152602082013560208201526040820135604082015260608201356060820152608082013567ffffffffffffffff808211156124e557600080fd5b6124f1858386016122d9565b608084015260a084013591508082111561250a57600080fd5b50612517848285016122d9565b60a08301525092915050565b60006020828403121561253557600080fd5b813567ffffffffffffffff81111561254c57600080fd5b6124848482850161248c565b60008060006060848603121561256d57600080fd5b83359250602084013567ffffffffffffffff8082111561258c57600080fd5b6125988783880161248c565b935060408601359150808211156125ae57600080fd5b90850190604082880312156125c257600080fd5b6040516040810181811083821117156125dd576125dd6121bc565b604052823581526020830135828111156125f657600080fd5b6126028982860161236d565b6020830152508093505050509250925092565b60006020828403121561262757600080fd5b5035919050565b60006020828403121561264057600080fd5b815180151581146121b557600080fd5b60006020828403121561266257600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082198211156126ab576126ab612669565b500190565b6000815180845260005b818110156126d6576020818501810151868301820152016126ba565b818111156126e8576000602083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006121b560208301846126b0565b73ffffffffffffffffffffffffffffffffffffffff8116811461023657600080fd5b60006020828403121561276257600080fd5b81516121b58161272e565b6000806040838503121561278057600080fd5b8251915060208301516127928161272e565b809150509250929050565b82815260406020820152600061248460408301846126b0565b604080825283519082018190526000906020906060840190828701845b828110156127ef578151845292840192908401906001016127d3565b50505092019290925292915050565b85815284602082015283604082015260a06060820152600061282360a08301856126b0565b828103608084015261283581856126b0565b98975050505050505050565b6000602080838503121561285457600080fd5b825167ffffffffffffffff81111561286b57600080fd5b8301601f8101851361287c57600080fd5b805161288a61238e82612349565b81815260059190911b820183019083810190878311156128a957600080fd5b928401925b828410156128d05783516128c18161272e565b825292840192908401906128ae565b979650505050505050565b600081518084526020808501945080840160005b8381101561292157815173ffffffffffffffffffffffffffffffffffffffff16875295820195908201906001016128ef565b509495945050505050565b84815283602082015282604082015260806060820152600061295160808301846128db565b9695505050505050565b82815260406020820152600061248460408301846128db565b60006020828403121561298657600080fd5b81517fffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000811681146121b557600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612a1757612a17612669565b5060010190565b73ffffffffffffffffffffffffffffffffffffffff84168152606060208201526000612a4d60608301856126b0565b905063ffffffff83166040830152949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082612aa157612aa1612a63565b500490565b600082612ab557612ab5612a63565b500690565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612af257612af2612669565b500290565b600082821015612b0957612b09612669565b50039056fe436861696e53746f72616765436f6e7461696e65722d5343432d62617463686573a264697066735822122043182602b085b6fcf133cc97bad87f1b58ded854c7140977be88606e777b61df64736f6c63430008090033",
}
StateCommitmentChainMetaData contains all meta data concerning the StateCommitmentChain contract.
Functions ¶
This section is empty.
Types ¶
type LibBVMCodecChainBatchHeader ¶
type LibBVMCodecChainBatchHeader struct { BatchIndex *big.Int BatchRoot [32]byte BatchSize *big.Int PrevTotalElements *big.Int Signature []byte ExtraData []byte }
LibBVMCodecChainBatchHeader is an auto generated low-level Go binding around an user-defined struct.
type LibBVMCodecChainInclusionProof ¶
LibBVMCodecChainInclusionProof is an auto generated low-level Go binding around an user-defined struct.
type StateCommitmentChain ¶
type StateCommitmentChain struct { StateCommitmentChainCaller // Read-only binding to the contract StateCommitmentChainTransactor // Write-only binding to the contract StateCommitmentChainFilterer // Log filterer for contract events }
StateCommitmentChain is an auto generated Go binding around an Ethereum contract.
func DeployStateCommitmentChain ¶
func DeployStateCommitmentChain(auth *bind.TransactOpts, backend bind.ContractBackend, _libAddressManager common.Address, _l1messenger common.Address, _fraudProofWindow *big.Int, _sequencerPublishWindow *big.Int) (common.Address, *types.Transaction, *StateCommitmentChain, error)
DeployStateCommitmentChain deploys a new Ethereum contract, binding an instance of StateCommitmentChain to it.
func NewStateCommitmentChain ¶
func NewStateCommitmentChain(address common.Address, backend bind.ContractBackend) (*StateCommitmentChain, error)
NewStateCommitmentChain creates a new instance of StateCommitmentChain, bound to a specific deployed contract.
type StateCommitmentChainCaller ¶
type StateCommitmentChainCaller struct {
// contains filtered or unexported fields
}
StateCommitmentChainCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewStateCommitmentChainCaller ¶
func NewStateCommitmentChainCaller(address common.Address, caller bind.ContractCaller) (*StateCommitmentChainCaller, error)
NewStateCommitmentChainCaller creates a new read-only instance of StateCommitmentChain, bound to a specific deployed contract.
func (*StateCommitmentChainCaller) Batches ¶
func (_StateCommitmentChain *StateCommitmentChainCaller) Batches(opts *bind.CallOpts) (common.Address, error)
Batches is a free data retrieval call binding the contract method 0xcfdf677e.
Solidity: function batches() view returns(address)
func (*StateCommitmentChainCaller) FRAUDPROOFWINDOW ¶
func (_StateCommitmentChain *StateCommitmentChainCaller) FRAUDPROOFWINDOW(opts *bind.CallOpts) (*big.Int, error)
FRAUDPROOFWINDOW is a free data retrieval call binding the contract method 0xc17b291b.
Solidity: function FRAUD_PROOF_WINDOW() view returns(uint256)
func (*StateCommitmentChainCaller) GetLastSequencerTimestamp ¶
func (_StateCommitmentChain *StateCommitmentChainCaller) GetLastSequencerTimestamp(opts *bind.CallOpts) (*big.Int, error)
GetLastSequencerTimestamp is a free data retrieval call binding the contract method 0x7ad168a0.
Solidity: function getLastSequencerTimestamp() view returns(uint256 _lastSequencerTimestamp)
func (*StateCommitmentChainCaller) GetTotalBatches ¶
func (_StateCommitmentChain *StateCommitmentChainCaller) GetTotalBatches(opts *bind.CallOpts) (*big.Int, error)
GetTotalBatches is a free data retrieval call binding the contract method 0xe561dddc.
Solidity: function getTotalBatches() view returns(uint256 _totalBatches)
func (*StateCommitmentChainCaller) GetTotalElements ¶
func (_StateCommitmentChain *StateCommitmentChainCaller) GetTotalElements(opts *bind.CallOpts) (*big.Int, error)
GetTotalElements is a free data retrieval call binding the contract method 0x7aa63a86.
Solidity: function getTotalElements() view returns(uint256 _totalElements)
func (*StateCommitmentChainCaller) InsideFraudProofWindow ¶
func (_StateCommitmentChain *StateCommitmentChainCaller) InsideFraudProofWindow(opts *bind.CallOpts, _batchHeader LibBVMCodecChainBatchHeader) (bool, error)
InsideFraudProofWindow is a free data retrieval call binding the contract method 0x89a1d980.
Solidity: function insideFraudProofWindow((uint256,bytes32,uint256,uint256,bytes,bytes) _batchHeader) view returns(bool _inside)
func (*StateCommitmentChainCaller) LibAddressManager ¶
func (_StateCommitmentChain *StateCommitmentChainCaller) LibAddressManager(opts *bind.CallOpts) (common.Address, error)
LibAddressManager is a free data retrieval call binding the contract method 0x299ca478.
Solidity: function libAddressManager() view returns(address)
func (*StateCommitmentChainCaller) Messenger ¶
func (_StateCommitmentChain *StateCommitmentChainCaller) Messenger(opts *bind.CallOpts) (common.Address, error)
Messenger is a free data retrieval call binding the contract method 0x3cb747bf.
Solidity: function messenger() view returns(address)
func (*StateCommitmentChainCaller) Resolve ¶
func (_StateCommitmentChain *StateCommitmentChainCaller) Resolve(opts *bind.CallOpts, _name string) (common.Address, error)
Resolve is a free data retrieval call binding the contract method 0x461a4478.
Solidity: function resolve(string _name) view returns(address)
func (*StateCommitmentChainCaller) SEQUENCERPUBLISHWINDOW ¶
func (_StateCommitmentChain *StateCommitmentChainCaller) SEQUENCERPUBLISHWINDOW(opts *bind.CallOpts) (*big.Int, error)
SEQUENCERPUBLISHWINDOW is a free data retrieval call binding the contract method 0x81eb62ef.
Solidity: function SEQUENCER_PUBLISH_WINDOW() view returns(uint256)
func (*StateCommitmentChainCaller) VerifyStateCommitment ¶
func (_StateCommitmentChain *StateCommitmentChainCaller) VerifyStateCommitment(opts *bind.CallOpts, _element [32]byte, _batchHeader LibBVMCodecChainBatchHeader, _proof LibBVMCodecChainInclusionProof) (bool, error)
VerifyStateCommitment is a free data retrieval call binding the contract method 0xb768bb17.
Solidity: function verifyStateCommitment(bytes32 _element, (uint256,bytes32,uint256,uint256,bytes,bytes) _batchHeader, (uint256,bytes32[]) _proof) view returns(bool)
type StateCommitmentChainCallerRaw ¶
type StateCommitmentChainCallerRaw struct {
Contract *StateCommitmentChainCaller // Generic read-only contract binding to access the raw methods on
}
StateCommitmentChainCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*StateCommitmentChainCallerRaw) Call ¶
func (_StateCommitmentChain *StateCommitmentChainCallerRaw) 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 StateCommitmentChainCallerSession ¶
type StateCommitmentChainCallerSession struct { Contract *StateCommitmentChainCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
StateCommitmentChainCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*StateCommitmentChainCallerSession) Batches ¶
func (_StateCommitmentChain *StateCommitmentChainCallerSession) Batches() (common.Address, error)
Batches is a free data retrieval call binding the contract method 0xcfdf677e.
Solidity: function batches() view returns(address)
func (*StateCommitmentChainCallerSession) FRAUDPROOFWINDOW ¶
func (_StateCommitmentChain *StateCommitmentChainCallerSession) FRAUDPROOFWINDOW() (*big.Int, error)
FRAUDPROOFWINDOW is a free data retrieval call binding the contract method 0xc17b291b.
Solidity: function FRAUD_PROOF_WINDOW() view returns(uint256)
func (*StateCommitmentChainCallerSession) GetLastSequencerTimestamp ¶
func (_StateCommitmentChain *StateCommitmentChainCallerSession) GetLastSequencerTimestamp() (*big.Int, error)
GetLastSequencerTimestamp is a free data retrieval call binding the contract method 0x7ad168a0.
Solidity: function getLastSequencerTimestamp() view returns(uint256 _lastSequencerTimestamp)
func (*StateCommitmentChainCallerSession) GetTotalBatches ¶
func (_StateCommitmentChain *StateCommitmentChainCallerSession) GetTotalBatches() (*big.Int, error)
GetTotalBatches is a free data retrieval call binding the contract method 0xe561dddc.
Solidity: function getTotalBatches() view returns(uint256 _totalBatches)
func (*StateCommitmentChainCallerSession) GetTotalElements ¶
func (_StateCommitmentChain *StateCommitmentChainCallerSession) GetTotalElements() (*big.Int, error)
GetTotalElements is a free data retrieval call binding the contract method 0x7aa63a86.
Solidity: function getTotalElements() view returns(uint256 _totalElements)
func (*StateCommitmentChainCallerSession) InsideFraudProofWindow ¶
func (_StateCommitmentChain *StateCommitmentChainCallerSession) InsideFraudProofWindow(_batchHeader LibBVMCodecChainBatchHeader) (bool, error)
InsideFraudProofWindow is a free data retrieval call binding the contract method 0x89a1d980.
Solidity: function insideFraudProofWindow((uint256,bytes32,uint256,uint256,bytes,bytes) _batchHeader) view returns(bool _inside)
func (*StateCommitmentChainCallerSession) LibAddressManager ¶
func (_StateCommitmentChain *StateCommitmentChainCallerSession) LibAddressManager() (common.Address, error)
LibAddressManager is a free data retrieval call binding the contract method 0x299ca478.
Solidity: function libAddressManager() view returns(address)
func (*StateCommitmentChainCallerSession) Messenger ¶
func (_StateCommitmentChain *StateCommitmentChainCallerSession) Messenger() (common.Address, error)
Messenger is a free data retrieval call binding the contract method 0x3cb747bf.
Solidity: function messenger() view returns(address)
func (*StateCommitmentChainCallerSession) Resolve ¶
func (_StateCommitmentChain *StateCommitmentChainCallerSession) Resolve(_name string) (common.Address, error)
Resolve is a free data retrieval call binding the contract method 0x461a4478.
Solidity: function resolve(string _name) view returns(address)
func (*StateCommitmentChainCallerSession) SEQUENCERPUBLISHWINDOW ¶
func (_StateCommitmentChain *StateCommitmentChainCallerSession) SEQUENCERPUBLISHWINDOW() (*big.Int, error)
SEQUENCERPUBLISHWINDOW is a free data retrieval call binding the contract method 0x81eb62ef.
Solidity: function SEQUENCER_PUBLISH_WINDOW() view returns(uint256)
func (*StateCommitmentChainCallerSession) VerifyStateCommitment ¶
func (_StateCommitmentChain *StateCommitmentChainCallerSession) VerifyStateCommitment(_element [32]byte, _batchHeader LibBVMCodecChainBatchHeader, _proof LibBVMCodecChainInclusionProof) (bool, error)
VerifyStateCommitment is a free data retrieval call binding the contract method 0xb768bb17.
Solidity: function verifyStateCommitment(bytes32 _element, (uint256,bytes32,uint256,uint256,bytes,bytes) _batchHeader, (uint256,bytes32[]) _proof) view returns(bool)
type StateCommitmentChainDistributeTssReward ¶
type StateCommitmentChainDistributeTssReward struct { StartBlockNumber *big.Int Length *big.Int BatchTime *big.Int TssMembers []common.Address Raw types.Log // Blockchain specific contextual infos }
StateCommitmentChainDistributeTssReward represents a DistributeTssReward event raised by the StateCommitmentChain contract.
type StateCommitmentChainDistributeTssRewardIterator ¶
type StateCommitmentChainDistributeTssRewardIterator struct { Event *StateCommitmentChainDistributeTssReward // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StateCommitmentChainDistributeTssRewardIterator is returned from FilterDistributeTssReward and is used to iterate over the raw logs and unpacked data for DistributeTssReward events raised by the StateCommitmentChain contract.
func (*StateCommitmentChainDistributeTssRewardIterator) Close ¶
func (it *StateCommitmentChainDistributeTssRewardIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StateCommitmentChainDistributeTssRewardIterator) Error ¶
func (it *StateCommitmentChainDistributeTssRewardIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StateCommitmentChainDistributeTssRewardIterator) Next ¶
func (it *StateCommitmentChainDistributeTssRewardIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type StateCommitmentChainFilterer ¶
type StateCommitmentChainFilterer struct {
// contains filtered or unexported fields
}
StateCommitmentChainFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewStateCommitmentChainFilterer ¶
func NewStateCommitmentChainFilterer(address common.Address, filterer bind.ContractFilterer) (*StateCommitmentChainFilterer, error)
NewStateCommitmentChainFilterer creates a new log filterer instance of StateCommitmentChain, bound to a specific deployed contract.
func (*StateCommitmentChainFilterer) FilterDistributeTssReward ¶
func (_StateCommitmentChain *StateCommitmentChainFilterer) FilterDistributeTssReward(opts *bind.FilterOpts, _startBlockNumber []*big.Int, _batchTime []*big.Int) (*StateCommitmentChainDistributeTssRewardIterator, error)
FilterDistributeTssReward is a free log retrieval operation binding the contract event 0xf533ef50019763ee9d95ad46e28350b533c11edd472ae7be93e8fae83c1b6d99.
Solidity: event DistributeTssReward(uint256 indexed _startBlockNumber, uint256 _length, uint256 indexed _batchTime, address[] _tssMembers)
func (*StateCommitmentChainFilterer) FilterRollBackL2Chain ¶
func (_StateCommitmentChain *StateCommitmentChainFilterer) FilterRollBackL2Chain(opts *bind.FilterOpts, _startBlockNumber []*big.Int) (*StateCommitmentChainRollBackL2ChainIterator, error)
FilterRollBackL2Chain is a free log retrieval operation binding the contract event 0x8ef5d07412def056f6bfc680f359c8a0370cfacb2becaf67d01e2e372e08964a.
Solidity: event RollBackL2Chain(uint256 indexed _startBlockNumber)
func (*StateCommitmentChainFilterer) FilterStateBatchAppended ¶
func (_StateCommitmentChain *StateCommitmentChainFilterer) FilterStateBatchAppended(opts *bind.FilterOpts, _batchIndex []*big.Int) (*StateCommitmentChainStateBatchAppendedIterator, error)
FilterStateBatchAppended is a free log retrieval operation binding the contract event 0x9cf3ad24eae3fd6d461e2f566b35b95b6d671871d9fcb45f8ac8030e4a8d21b3.
Solidity: event StateBatchAppended(uint256 indexed _batchIndex, bytes32 _batchRoot, uint256 _batchSize, uint256 _prevTotalElements, bytes _signature, bytes _extraData)
func (*StateCommitmentChainFilterer) FilterStateBatchDeleted ¶
func (_StateCommitmentChain *StateCommitmentChainFilterer) FilterStateBatchDeleted(opts *bind.FilterOpts, _batchIndex []*big.Int) (*StateCommitmentChainStateBatchDeletedIterator, error)
FilterStateBatchDeleted is a free log retrieval operation binding the contract event 0x8747b69ce8fdb31c3b9b0a67bd8049ad8c1a69ea417b69b12174068abd9cbd64.
Solidity: event StateBatchDeleted(uint256 indexed _batchIndex, bytes32 _batchRoot)
func (*StateCommitmentChainFilterer) ParseDistributeTssReward ¶
func (_StateCommitmentChain *StateCommitmentChainFilterer) ParseDistributeTssReward(log types.Log) (*StateCommitmentChainDistributeTssReward, error)
ParseDistributeTssReward is a log parse operation binding the contract event 0xf533ef50019763ee9d95ad46e28350b533c11edd472ae7be93e8fae83c1b6d99.
Solidity: event DistributeTssReward(uint256 indexed _startBlockNumber, uint256 _length, uint256 indexed _batchTime, address[] _tssMembers)
func (*StateCommitmentChainFilterer) ParseRollBackL2Chain ¶
func (_StateCommitmentChain *StateCommitmentChainFilterer) ParseRollBackL2Chain(log types.Log) (*StateCommitmentChainRollBackL2Chain, error)
ParseRollBackL2Chain is a log parse operation binding the contract event 0x8ef5d07412def056f6bfc680f359c8a0370cfacb2becaf67d01e2e372e08964a.
Solidity: event RollBackL2Chain(uint256 indexed _startBlockNumber)
func (*StateCommitmentChainFilterer) ParseStateBatchAppended ¶
func (_StateCommitmentChain *StateCommitmentChainFilterer) ParseStateBatchAppended(log types.Log) (*StateCommitmentChainStateBatchAppended, error)
ParseStateBatchAppended is a log parse operation binding the contract event 0x9cf3ad24eae3fd6d461e2f566b35b95b6d671871d9fcb45f8ac8030e4a8d21b3.
Solidity: event StateBatchAppended(uint256 indexed _batchIndex, bytes32 _batchRoot, uint256 _batchSize, uint256 _prevTotalElements, bytes _signature, bytes _extraData)
func (*StateCommitmentChainFilterer) ParseStateBatchDeleted ¶
func (_StateCommitmentChain *StateCommitmentChainFilterer) ParseStateBatchDeleted(log types.Log) (*StateCommitmentChainStateBatchDeleted, error)
ParseStateBatchDeleted is a log parse operation binding the contract event 0x8747b69ce8fdb31c3b9b0a67bd8049ad8c1a69ea417b69b12174068abd9cbd64.
Solidity: event StateBatchDeleted(uint256 indexed _batchIndex, bytes32 _batchRoot)
func (*StateCommitmentChainFilterer) WatchDistributeTssReward ¶
func (_StateCommitmentChain *StateCommitmentChainFilterer) WatchDistributeTssReward(opts *bind.WatchOpts, sink chan<- *StateCommitmentChainDistributeTssReward, _startBlockNumber []*big.Int, _batchTime []*big.Int) (event.Subscription, error)
WatchDistributeTssReward is a free log subscription operation binding the contract event 0xf533ef50019763ee9d95ad46e28350b533c11edd472ae7be93e8fae83c1b6d99.
Solidity: event DistributeTssReward(uint256 indexed _startBlockNumber, uint256 _length, uint256 indexed _batchTime, address[] _tssMembers)
func (*StateCommitmentChainFilterer) WatchRollBackL2Chain ¶
func (_StateCommitmentChain *StateCommitmentChainFilterer) WatchRollBackL2Chain(opts *bind.WatchOpts, sink chan<- *StateCommitmentChainRollBackL2Chain, _startBlockNumber []*big.Int) (event.Subscription, error)
WatchRollBackL2Chain is a free log subscription operation binding the contract event 0x8ef5d07412def056f6bfc680f359c8a0370cfacb2becaf67d01e2e372e08964a.
Solidity: event RollBackL2Chain(uint256 indexed _startBlockNumber)
func (*StateCommitmentChainFilterer) WatchStateBatchAppended ¶
func (_StateCommitmentChain *StateCommitmentChainFilterer) WatchStateBatchAppended(opts *bind.WatchOpts, sink chan<- *StateCommitmentChainStateBatchAppended, _batchIndex []*big.Int) (event.Subscription, error)
WatchStateBatchAppended is a free log subscription operation binding the contract event 0x9cf3ad24eae3fd6d461e2f566b35b95b6d671871d9fcb45f8ac8030e4a8d21b3.
Solidity: event StateBatchAppended(uint256 indexed _batchIndex, bytes32 _batchRoot, uint256 _batchSize, uint256 _prevTotalElements, bytes _signature, bytes _extraData)
func (*StateCommitmentChainFilterer) WatchStateBatchDeleted ¶
func (_StateCommitmentChain *StateCommitmentChainFilterer) WatchStateBatchDeleted(opts *bind.WatchOpts, sink chan<- *StateCommitmentChainStateBatchDeleted, _batchIndex []*big.Int) (event.Subscription, error)
WatchStateBatchDeleted is a free log subscription operation binding the contract event 0x8747b69ce8fdb31c3b9b0a67bd8049ad8c1a69ea417b69b12174068abd9cbd64.
Solidity: event StateBatchDeleted(uint256 indexed _batchIndex, bytes32 _batchRoot)
type StateCommitmentChainRaw ¶
type StateCommitmentChainRaw struct {
Contract *StateCommitmentChain // Generic contract binding to access the raw methods on
}
StateCommitmentChainRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*StateCommitmentChainRaw) Call ¶
func (_StateCommitmentChain *StateCommitmentChainRaw) 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 (*StateCommitmentChainRaw) Transact ¶
func (_StateCommitmentChain *StateCommitmentChainRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*StateCommitmentChainRaw) Transfer ¶
func (_StateCommitmentChain *StateCommitmentChainRaw) 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 StateCommitmentChainRollBackL2Chain ¶
type StateCommitmentChainRollBackL2Chain struct { StartBlockNumber *big.Int Raw types.Log // Blockchain specific contextual infos }
StateCommitmentChainRollBackL2Chain represents a RollBackL2Chain event raised by the StateCommitmentChain contract.
type StateCommitmentChainRollBackL2ChainIterator ¶
type StateCommitmentChainRollBackL2ChainIterator struct { Event *StateCommitmentChainRollBackL2Chain // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StateCommitmentChainRollBackL2ChainIterator is returned from FilterRollBackL2Chain and is used to iterate over the raw logs and unpacked data for RollBackL2Chain events raised by the StateCommitmentChain contract.
func (*StateCommitmentChainRollBackL2ChainIterator) Close ¶
func (it *StateCommitmentChainRollBackL2ChainIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StateCommitmentChainRollBackL2ChainIterator) Error ¶
func (it *StateCommitmentChainRollBackL2ChainIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StateCommitmentChainRollBackL2ChainIterator) Next ¶
func (it *StateCommitmentChainRollBackL2ChainIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type StateCommitmentChainSession ¶
type StateCommitmentChainSession struct { Contract *StateCommitmentChain // 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 }
StateCommitmentChainSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*StateCommitmentChainSession) AppendStateBatch ¶
func (_StateCommitmentChain *StateCommitmentChainSession) AppendStateBatch(_batch [][32]byte, _shouldStartAtElement *big.Int, _signature []byte) (*types.Transaction, error)
AppendStateBatch is a paid mutator transaction binding the contract method 0x2169f79f.
Solidity: function appendStateBatch(bytes32[] _batch, uint256 _shouldStartAtElement, bytes _signature) returns()
func (*StateCommitmentChainSession) Batches ¶
func (_StateCommitmentChain *StateCommitmentChainSession) Batches() (common.Address, error)
Batches is a free data retrieval call binding the contract method 0xcfdf677e.
Solidity: function batches() view returns(address)
func (*StateCommitmentChainSession) DeleteStateBatch ¶
func (_StateCommitmentChain *StateCommitmentChainSession) DeleteStateBatch(_batchHeader LibBVMCodecChainBatchHeader) (*types.Transaction, error)
DeleteStateBatch is a paid mutator transaction binding the contract method 0x5b4d90e2.
Solidity: function deleteStateBatch((uint256,bytes32,uint256,uint256,bytes,bytes) _batchHeader) returns()
func (*StateCommitmentChainSession) FRAUDPROOFWINDOW ¶
func (_StateCommitmentChain *StateCommitmentChainSession) FRAUDPROOFWINDOW() (*big.Int, error)
FRAUDPROOFWINDOW is a free data retrieval call binding the contract method 0xc17b291b.
Solidity: function FRAUD_PROOF_WINDOW() view returns(uint256)
func (*StateCommitmentChainSession) GetLastSequencerTimestamp ¶
func (_StateCommitmentChain *StateCommitmentChainSession) GetLastSequencerTimestamp() (*big.Int, error)
GetLastSequencerTimestamp is a free data retrieval call binding the contract method 0x7ad168a0.
Solidity: function getLastSequencerTimestamp() view returns(uint256 _lastSequencerTimestamp)
func (*StateCommitmentChainSession) GetTotalBatches ¶
func (_StateCommitmentChain *StateCommitmentChainSession) GetTotalBatches() (*big.Int, error)
GetTotalBatches is a free data retrieval call binding the contract method 0xe561dddc.
Solidity: function getTotalBatches() view returns(uint256 _totalBatches)
func (*StateCommitmentChainSession) GetTotalElements ¶
func (_StateCommitmentChain *StateCommitmentChainSession) GetTotalElements() (*big.Int, error)
GetTotalElements is a free data retrieval call binding the contract method 0x7aa63a86.
Solidity: function getTotalElements() view returns(uint256 _totalElements)
func (*StateCommitmentChainSession) InsideFraudProofWindow ¶
func (_StateCommitmentChain *StateCommitmentChainSession) InsideFraudProofWindow(_batchHeader LibBVMCodecChainBatchHeader) (bool, error)
InsideFraudProofWindow is a free data retrieval call binding the contract method 0x89a1d980.
Solidity: function insideFraudProofWindow((uint256,bytes32,uint256,uint256,bytes,bytes) _batchHeader) view returns(bool _inside)
func (*StateCommitmentChainSession) LibAddressManager ¶
func (_StateCommitmentChain *StateCommitmentChainSession) LibAddressManager() (common.Address, error)
LibAddressManager is a free data retrieval call binding the contract method 0x299ca478.
Solidity: function libAddressManager() view returns(address)
func (*StateCommitmentChainSession) Messenger ¶
func (_StateCommitmentChain *StateCommitmentChainSession) Messenger() (common.Address, error)
Messenger is a free data retrieval call binding the contract method 0x3cb747bf.
Solidity: function messenger() view returns(address)
func (*StateCommitmentChainSession) Resolve ¶
func (_StateCommitmentChain *StateCommitmentChainSession) Resolve(_name string) (common.Address, error)
Resolve is a free data retrieval call binding the contract method 0x461a4478.
Solidity: function resolve(string _name) view returns(address)
func (*StateCommitmentChainSession) RollBackL2Chain ¶
func (_StateCommitmentChain *StateCommitmentChainSession) RollBackL2Chain(_shouldRollBack *big.Int, _shouldStartAtElement *big.Int, _signature []byte) (*types.Transaction, error)
RollBackL2Chain is a paid mutator transaction binding the contract method 0x0bf3b5f2.
Solidity: function rollBackL2Chain(uint256 _shouldRollBack, uint256 _shouldStartAtElement, bytes _signature) returns()
func (*StateCommitmentChainSession) RollBackMessage ¶
func (_StateCommitmentChain *StateCommitmentChainSession) RollBackMessage(_shouldRollBack *big.Int) (*types.Transaction, error)
RollBackMessage is a paid mutator transaction binding the contract method 0xf523f40d.
Solidity: function rollBackMessage(uint256 _shouldRollBack) returns()
func (*StateCommitmentChainSession) SEQUENCERPUBLISHWINDOW ¶
func (_StateCommitmentChain *StateCommitmentChainSession) SEQUENCERPUBLISHWINDOW() (*big.Int, error)
SEQUENCERPUBLISHWINDOW is a free data retrieval call binding the contract method 0x81eb62ef.
Solidity: function SEQUENCER_PUBLISH_WINDOW() view returns(uint256)
func (*StateCommitmentChainSession) VerifyStateCommitment ¶
func (_StateCommitmentChain *StateCommitmentChainSession) VerifyStateCommitment(_element [32]byte, _batchHeader LibBVMCodecChainBatchHeader, _proof LibBVMCodecChainInclusionProof) (bool, error)
VerifyStateCommitment is a free data retrieval call binding the contract method 0xb768bb17.
Solidity: function verifyStateCommitment(bytes32 _element, (uint256,bytes32,uint256,uint256,bytes,bytes) _batchHeader, (uint256,bytes32[]) _proof) view returns(bool)
type StateCommitmentChainStateBatchAppended ¶
type StateCommitmentChainStateBatchAppended struct { BatchIndex *big.Int BatchRoot [32]byte BatchSize *big.Int PrevTotalElements *big.Int Signature []byte ExtraData []byte Raw types.Log // Blockchain specific contextual infos }
StateCommitmentChainStateBatchAppended represents a StateBatchAppended event raised by the StateCommitmentChain contract.
type StateCommitmentChainStateBatchAppendedIterator ¶
type StateCommitmentChainStateBatchAppendedIterator struct { Event *StateCommitmentChainStateBatchAppended // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StateCommitmentChainStateBatchAppendedIterator is returned from FilterStateBatchAppended and is used to iterate over the raw logs and unpacked data for StateBatchAppended events raised by the StateCommitmentChain contract.
func (*StateCommitmentChainStateBatchAppendedIterator) Close ¶
func (it *StateCommitmentChainStateBatchAppendedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StateCommitmentChainStateBatchAppendedIterator) Error ¶
func (it *StateCommitmentChainStateBatchAppendedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StateCommitmentChainStateBatchAppendedIterator) Next ¶
func (it *StateCommitmentChainStateBatchAppendedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type StateCommitmentChainStateBatchDeleted ¶
type StateCommitmentChainStateBatchDeleted struct { BatchIndex *big.Int BatchRoot [32]byte Raw types.Log // Blockchain specific contextual infos }
StateCommitmentChainStateBatchDeleted represents a StateBatchDeleted event raised by the StateCommitmentChain contract.
type StateCommitmentChainStateBatchDeletedIterator ¶
type StateCommitmentChainStateBatchDeletedIterator struct { Event *StateCommitmentChainStateBatchDeleted // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StateCommitmentChainStateBatchDeletedIterator is returned from FilterStateBatchDeleted and is used to iterate over the raw logs and unpacked data for StateBatchDeleted events raised by the StateCommitmentChain contract.
func (*StateCommitmentChainStateBatchDeletedIterator) Close ¶
func (it *StateCommitmentChainStateBatchDeletedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StateCommitmentChainStateBatchDeletedIterator) Error ¶
func (it *StateCommitmentChainStateBatchDeletedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StateCommitmentChainStateBatchDeletedIterator) Next ¶
func (it *StateCommitmentChainStateBatchDeletedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type StateCommitmentChainTransactor ¶
type StateCommitmentChainTransactor struct {
// contains filtered or unexported fields
}
StateCommitmentChainTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewStateCommitmentChainTransactor ¶
func NewStateCommitmentChainTransactor(address common.Address, transactor bind.ContractTransactor) (*StateCommitmentChainTransactor, error)
NewStateCommitmentChainTransactor creates a new write-only instance of StateCommitmentChain, bound to a specific deployed contract.
func (*StateCommitmentChainTransactor) AppendStateBatch ¶
func (_StateCommitmentChain *StateCommitmentChainTransactor) AppendStateBatch(opts *bind.TransactOpts, _batch [][32]byte, _shouldStartAtElement *big.Int, _signature []byte) (*types.Transaction, error)
AppendStateBatch is a paid mutator transaction binding the contract method 0x2169f79f.
Solidity: function appendStateBatch(bytes32[] _batch, uint256 _shouldStartAtElement, bytes _signature) returns()
func (*StateCommitmentChainTransactor) DeleteStateBatch ¶
func (_StateCommitmentChain *StateCommitmentChainTransactor) DeleteStateBatch(opts *bind.TransactOpts, _batchHeader LibBVMCodecChainBatchHeader) (*types.Transaction, error)
DeleteStateBatch is a paid mutator transaction binding the contract method 0x5b4d90e2.
Solidity: function deleteStateBatch((uint256,bytes32,uint256,uint256,bytes,bytes) _batchHeader) returns()
func (*StateCommitmentChainTransactor) RollBackL2Chain ¶
func (_StateCommitmentChain *StateCommitmentChainTransactor) RollBackL2Chain(opts *bind.TransactOpts, _shouldRollBack *big.Int, _shouldStartAtElement *big.Int, _signature []byte) (*types.Transaction, error)
RollBackL2Chain is a paid mutator transaction binding the contract method 0x0bf3b5f2.
Solidity: function rollBackL2Chain(uint256 _shouldRollBack, uint256 _shouldStartAtElement, bytes _signature) returns()
func (*StateCommitmentChainTransactor) RollBackMessage ¶
func (_StateCommitmentChain *StateCommitmentChainTransactor) RollBackMessage(opts *bind.TransactOpts, _shouldRollBack *big.Int) (*types.Transaction, error)
RollBackMessage is a paid mutator transaction binding the contract method 0xf523f40d.
Solidity: function rollBackMessage(uint256 _shouldRollBack) returns()
type StateCommitmentChainTransactorRaw ¶
type StateCommitmentChainTransactorRaw struct {
Contract *StateCommitmentChainTransactor // Generic write-only contract binding to access the raw methods on
}
StateCommitmentChainTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*StateCommitmentChainTransactorRaw) Transact ¶
func (_StateCommitmentChain *StateCommitmentChainTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*StateCommitmentChainTransactorRaw) Transfer ¶
func (_StateCommitmentChain *StateCommitmentChainTransactorRaw) 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 StateCommitmentChainTransactorSession ¶
type StateCommitmentChainTransactorSession struct { Contract *StateCommitmentChainTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
StateCommitmentChainTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*StateCommitmentChainTransactorSession) AppendStateBatch ¶
func (_StateCommitmentChain *StateCommitmentChainTransactorSession) AppendStateBatch(_batch [][32]byte, _shouldStartAtElement *big.Int, _signature []byte) (*types.Transaction, error)
AppendStateBatch is a paid mutator transaction binding the contract method 0x2169f79f.
Solidity: function appendStateBatch(bytes32[] _batch, uint256 _shouldStartAtElement, bytes _signature) returns()
func (*StateCommitmentChainTransactorSession) DeleteStateBatch ¶
func (_StateCommitmentChain *StateCommitmentChainTransactorSession) DeleteStateBatch(_batchHeader LibBVMCodecChainBatchHeader) (*types.Transaction, error)
DeleteStateBatch is a paid mutator transaction binding the contract method 0x5b4d90e2.
Solidity: function deleteStateBatch((uint256,bytes32,uint256,uint256,bytes,bytes) _batchHeader) returns()
func (*StateCommitmentChainTransactorSession) RollBackL2Chain ¶
func (_StateCommitmentChain *StateCommitmentChainTransactorSession) RollBackL2Chain(_shouldRollBack *big.Int, _shouldStartAtElement *big.Int, _signature []byte) (*types.Transaction, error)
RollBackL2Chain is a paid mutator transaction binding the contract method 0x0bf3b5f2.
Solidity: function rollBackL2Chain(uint256 _shouldRollBack, uint256 _shouldStartAtElement, bytes _signature) returns()
func (*StateCommitmentChainTransactorSession) RollBackMessage ¶
func (_StateCommitmentChain *StateCommitmentChainTransactorSession) RollBackMessage(_shouldRollBack *big.Int) (*types.Transaction, error)
RollBackMessage is a paid mutator transaction binding the contract method 0xf523f40d.
Solidity: function rollBackMessage(uint256 _shouldRollBack) returns()