// Code generated - DO NOT EDIT.
// This file is a generated binding and any manual changes will be lost.

package bindings

import (
	"errors"
	"math/big"
	"strings"

	ethereum "github.com/ethereum/go-ethereum"
	"github.com/ethereum/go-ethereum/accounts/abi"
	"github.com/ethereum/go-ethereum/accounts/abi/bind"
	"github.com/ethereum/go-ethereum/common"
	"github.com/ethereum/go-ethereum/core/types"
	"github.com/ethereum/go-ethereum/event"
)

// Reference imports to suppress errors if they are not otherwise used.
var (
	_ = errors.New
	_ = big.NewInt
	_ = strings.NewReader
	_ = ethereum.NotFound
	_ = bind.Bind
	_ = common.Big1
	_ = types.BloomLookup
	_ = event.NewSubscription
)

// Lib_OVMCodecChainBatchHeader is an auto generated low-level Go binding around an user-defined struct.
type Lib_OVMCodecChainBatchHeader struct {
	BatchIndex        *big.Int
	BatchRoot         [32]byte
	BatchSize         *big.Int
	PrevTotalElements *big.Int
	ExtraData         []byte
}

// Lib_OVMCodecChainInclusionProof is an auto generated low-level Go binding around an user-defined struct.
type Lib_OVMCodecChainInclusionProof struct {
	Index    *big.Int
	Siblings [][32]byte
}

// Lib_OVMCodecQueueElement is an auto generated low-level Go binding around an user-defined struct.
type Lib_OVMCodecQueueElement struct {
	TransactionHash [32]byte
	Timestamp       *big.Int
	BlockNumber     *big.Int
}

// Lib_OVMCodecTransaction is an auto generated low-level Go binding around an user-defined struct.
type Lib_OVMCodecTransaction struct {
	Timestamp     *big.Int
	BlockNumber   *big.Int
	L1QueueOrigin uint8
	L1TxOrigin    common.Address
	Entrypoint    common.Address
	GasLimit      *big.Int
	Data          []byte
}

// Lib_OVMCodecTransactionChainElement is an auto generated low-level Go binding around an user-defined struct.
type Lib_OVMCodecTransactionChainElement struct {
	IsSequenced bool
	QueueIndex  *big.Int
	Timestamp   *big.Int
	BlockNumber *big.Int
	TxData      []byte
}

// OVMCanonicalTransactionChainMetaData contains all meta data concerning the OVMCanonicalTransactionChain contract.
var OVMCanonicalTransactionChainMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_libAddressManager\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_forceInclusionPeriodSeconds\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_forceInclusionPeriodBlocks\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_maxTransactionGasLimit\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_startingQueueIndex\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_numQueueElements\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_totalElements\",\"type\":\"uint256\"}],\"name\":\"QueueBatchAppended\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_startingQueueIndex\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_numQueueElements\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_totalElements\",\"type\":\"uint256\"}],\"name\":\"SequencerBatchAppended\",\"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\":\"_extraData\",\"type\":\"bytes\"}],\"name\":\"TransactionBatchAppended\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_l1TxOrigin\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_target\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_gasLimit\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_queueIndex\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_timestamp\",\"type\":\"uint256\"}],\"name\":\"TransactionEnqueued\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"L2_GAS_DISCOUNT_DIVISOR\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAX_ROLLUP_TX_SIZE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MIN_ROLLUP_TX_GAS\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"appendQueueBatch\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"appendSequencerBatch\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"batches\",\"outputs\":[{\"internalType\":\"contractiOVM_ChainStorageContainer\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_target\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_gasLimit\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"enqueue\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"forceInclusionPeriodBlocks\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"forceInclusionPeriodSeconds\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getLastBlockNumber\",\"outputs\":[{\"internalType\":\"uint40\",\"name\":\"\",\"type\":\"uint40\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getLastTimestamp\",\"outputs\":[{\"internalType\":\"uint40\",\"name\":\"\",\"type\":\"uint40\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getNextQueueIndex\",\"outputs\":[{\"internalType\":\"uint40\",\"name\":\"\",\"type\":\"uint40\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getNumPendingQueueElements\",\"outputs\":[{\"internalType\":\"uint40\",\"name\":\"\",\"type\":\"uint40\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_index\",\"type\":\"uint256\"}],\"name\":\"getQueueElement\",\"outputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"transactionHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint40\",\"name\":\"timestamp\",\"type\":\"uint40\"},{\"internalType\":\"uint40\",\"name\":\"blockNumber\",\"type\":\"uint40\"}],\"internalType\":\"structLib_OVMCodec.QueueElement\",\"name\":\"_element\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getQueueLength\",\"outputs\":[{\"internalType\":\"uint40\",\"name\":\"\",\"type\":\"uint40\"}],\"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\":[],\"name\":\"libAddressManager\",\"outputs\":[{\"internalType\":\"contractLib_AddressManager\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"maxTransactionGasLimit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"queue\",\"outputs\":[{\"internalType\":\"contractiOVM_ChainStorageContainer\",\"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\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"},{\"internalType\":\"enumLib_OVMCodec.QueueOrigin\",\"name\":\"l1QueueOrigin\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"l1TxOrigin\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"entrypoint\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"gasLimit\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"internalType\":\"structLib_OVMCodec.Transaction\",\"name\":\"_transaction\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"isSequenced\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"queueIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"txData\",\"type\":\"bytes\"}],\"internalType\":\"structLib_OVMCodec.TransactionChainElement\",\"name\":\"_txChainElement\",\"type\":\"tuple\"},{\"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\":\"extraData\",\"type\":\"bytes\"}],\"internalType\":\"structLib_OVMCodec.ChainBatchHeader\",\"name\":\"_batchHeader\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"},{\"internalType\":\"bytes32[]\",\"name\":\"siblings\",\"type\":\"bytes32[]\"}],\"internalType\":\"structLib_OVMCodec.ChainInclusionProof\",\"name\":\"_inclusionProof\",\"type\":\"tuple\"}],\"name\":\"verifyTransaction\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
	Bin: " ",
}

// OVMCanonicalTransactionChainABI is the input ABI used to generate the binding from.
// Deprecated: Use OVMCanonicalTransactionChainMetaData.ABI instead.
var OVMCanonicalTransactionChainABI = OVMCanonicalTransactionChainMetaData.ABI

// OVMCanonicalTransactionChainBin is the compiled bytecode used for deploying new contracts.
// Deprecated: Use OVMCanonicalTransactionChainMetaData.Bin instead.
var OVMCanonicalTransactionChainBin = OVMCanonicalTransactionChainMetaData.Bin

// DeployOVMCanonicalTransactionChain deploys a new Ethereum contract, binding an instance of OVMCanonicalTransactionChain to it.
func DeployOVMCanonicalTransactionChain(auth *bind.TransactOpts, backend bind.ContractBackend, _libAddressManager common.Address, _forceInclusionPeriodSeconds *big.Int, _forceInclusionPeriodBlocks *big.Int, _maxTransactionGasLimit *big.Int) (common.Address, *types.Transaction, *OVMCanonicalTransactionChain, error) {
	parsed, err := OVMCanonicalTransactionChainMetaData.GetAbi()
	if err != nil {
		return common.Address{}, nil, nil, err
	}
	if parsed == nil {
		return common.Address{}, nil, nil, errors.New("GetABI returned nil")
	}

	address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(OVMCanonicalTransactionChainBin), backend, _libAddressManager, _forceInclusionPeriodSeconds, _forceInclusionPeriodBlocks, _maxTransactionGasLimit)
	if err != nil {
		return common.Address{}, nil, nil, err
	}
	return address, tx, &OVMCanonicalTransactionChain{OVMCanonicalTransactionChainCaller: OVMCanonicalTransactionChainCaller{contract: contract}, OVMCanonicalTransactionChainTransactor: OVMCanonicalTransactionChainTransactor{contract: contract}, OVMCanonicalTransactionChainFilterer: OVMCanonicalTransactionChainFilterer{contract: contract}}, nil
}

// OVMCanonicalTransactionChain is an auto generated Go binding around an Ethereum contract.
type OVMCanonicalTransactionChain struct {
	OVMCanonicalTransactionChainCaller     // Read-only binding to the contract
	OVMCanonicalTransactionChainTransactor // Write-only binding to the contract
	OVMCanonicalTransactionChainFilterer   // Log filterer for contract events
}

// OVMCanonicalTransactionChainCaller is an auto generated read-only Go binding around an Ethereum contract.
type OVMCanonicalTransactionChainCaller struct {
	contract *bind.BoundContract // Generic contract wrapper for the low level calls
}

// OVMCanonicalTransactionChainTransactor is an auto generated write-only Go binding around an Ethereum contract.
type OVMCanonicalTransactionChainTransactor struct {
	contract *bind.BoundContract // Generic contract wrapper for the low level calls
}

// OVMCanonicalTransactionChainFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
type OVMCanonicalTransactionChainFilterer struct {
	contract *bind.BoundContract // Generic contract wrapper for the low level calls
}

// OVMCanonicalTransactionChainSession is an auto generated Go binding around an Ethereum contract,
// with pre-set call and transact options.
type OVMCanonicalTransactionChainSession struct {
	Contract     *OVMCanonicalTransactionChain // 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
}

// OVMCanonicalTransactionChainCallerSession is an auto generated read-only Go binding around an Ethereum contract,
// with pre-set call options.
type OVMCanonicalTransactionChainCallerSession struct {
	Contract *OVMCanonicalTransactionChainCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts                       // Call options to use throughout this session
}

// OVMCanonicalTransactionChainTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
// with pre-set transact options.
type OVMCanonicalTransactionChainTransactorSession struct {
	Contract     *OVMCanonicalTransactionChainTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts                       // Transaction auth options to use throughout this session
}

// OVMCanonicalTransactionChainRaw is an auto generated low-level Go binding around an Ethereum contract.
type OVMCanonicalTransactionChainRaw struct {
	Contract *OVMCanonicalTransactionChain // Generic contract binding to access the raw methods on
}

// OVMCanonicalTransactionChainCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
type OVMCanonicalTransactionChainCallerRaw struct {
	Contract *OVMCanonicalTransactionChainCaller // Generic read-only contract binding to access the raw methods on
}

// OVMCanonicalTransactionChainTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
type OVMCanonicalTransactionChainTransactorRaw struct {
	Contract *OVMCanonicalTransactionChainTransactor // Generic write-only contract binding to access the raw methods on
}

// NewOVMCanonicalTransactionChain creates a new instance of OVMCanonicalTransactionChain, bound to a specific deployed contract.
func NewOVMCanonicalTransactionChain(address common.Address, backend bind.ContractBackend) (*OVMCanonicalTransactionChain, error) {
	contract, err := bindOVMCanonicalTransactionChain(address, backend, backend, backend)
	if err != nil {
		return nil, err
	}
	return &OVMCanonicalTransactionChain{OVMCanonicalTransactionChainCaller: OVMCanonicalTransactionChainCaller{contract: contract}, OVMCanonicalTransactionChainTransactor: OVMCanonicalTransactionChainTransactor{contract: contract}, OVMCanonicalTransactionChainFilterer: OVMCanonicalTransactionChainFilterer{contract: contract}}, nil
}

// NewOVMCanonicalTransactionChainCaller creates a new read-only instance of OVMCanonicalTransactionChain, bound to a specific deployed contract.
func NewOVMCanonicalTransactionChainCaller(address common.Address, caller bind.ContractCaller) (*OVMCanonicalTransactionChainCaller, error) {
	contract, err := bindOVMCanonicalTransactionChain(address, caller, nil, nil)
	if err != nil {
		return nil, err
	}
	return &OVMCanonicalTransactionChainCaller{contract: contract}, nil
}

// NewOVMCanonicalTransactionChainTransactor creates a new write-only instance of OVMCanonicalTransactionChain, bound to a specific deployed contract.
func NewOVMCanonicalTransactionChainTransactor(address common.Address, transactor bind.ContractTransactor) (*OVMCanonicalTransactionChainTransactor, error) {
	contract, err := bindOVMCanonicalTransactionChain(address, nil, transactor, nil)
	if err != nil {
		return nil, err
	}
	return &OVMCanonicalTransactionChainTransactor{contract: contract}, nil
}

// NewOVMCanonicalTransactionChainFilterer creates a new log filterer instance of OVMCanonicalTransactionChain, bound to a specific deployed contract.
func NewOVMCanonicalTransactionChainFilterer(address common.Address, filterer bind.ContractFilterer) (*OVMCanonicalTransactionChainFilterer, error) {
	contract, err := bindOVMCanonicalTransactionChain(address, nil, nil, filterer)
	if err != nil {
		return nil, err
	}
	return &OVMCanonicalTransactionChainFilterer{contract: contract}, nil
}

// bindOVMCanonicalTransactionChain binds a generic wrapper to an already deployed contract.
func bindOVMCanonicalTransactionChain(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
	parsed, err := abi.JSON(strings.NewReader(OVMCanonicalTransactionChainABI))
	if err != nil {
		return nil, err
	}
	return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil
}

// 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 (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
	return _OVMCanonicalTransactionChain.Contract.OVMCanonicalTransactionChainCaller.contract.Call(opts, result, method, params...)
}

// Transfer initiates a plain transaction to move funds to the contract, calling
// its default method if one is available.
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
	return _OVMCanonicalTransactionChain.Contract.OVMCanonicalTransactionChainTransactor.contract.Transfer(opts)
}

// Transact invokes the (paid) contract method with params as input values.
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
	return _OVMCanonicalTransactionChain.Contract.OVMCanonicalTransactionChainTransactor.contract.Transact(opts, method, params...)
}

// 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 (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
	return _OVMCanonicalTransactionChain.Contract.contract.Call(opts, result, method, params...)
}

// Transfer initiates a plain transaction to move funds to the contract, calling
// its default method if one is available.
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
	return _OVMCanonicalTransactionChain.Contract.contract.Transfer(opts)
}

// Transact invokes the (paid) contract method with params as input values.
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
	return _OVMCanonicalTransactionChain.Contract.contract.Transact(opts, method, params...)
}

// L2GASDISCOUNTDIVISOR is a free data retrieval call binding the contract method 0xc2cf696f.
//
// Solidity: function L2_GAS_DISCOUNT_DIVISOR() view returns(uint256)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainCaller) L2GASDISCOUNTDIVISOR(opts *bind.CallOpts) (*big.Int, error) {
	var out []interface{}
	err := _OVMCanonicalTransactionChain.contract.Call(opts, &out, "L2_GAS_DISCOUNT_DIVISOR")

	if err != nil {
		return *new(*big.Int), err
	}

	out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)

	return out0, err

}

// L2GASDISCOUNTDIVISOR is a free data retrieval call binding the contract method 0xc2cf696f.
//
// Solidity: function L2_GAS_DISCOUNT_DIVISOR() view returns(uint256)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainSession) L2GASDISCOUNTDIVISOR() (*big.Int, error) {
	return _OVMCanonicalTransactionChain.Contract.L2GASDISCOUNTDIVISOR(&_OVMCanonicalTransactionChain.CallOpts)
}

// L2GASDISCOUNTDIVISOR is a free data retrieval call binding the contract method 0xc2cf696f.
//
// Solidity: function L2_GAS_DISCOUNT_DIVISOR() view returns(uint256)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainCallerSession) L2GASDISCOUNTDIVISOR() (*big.Int, error) {
	return _OVMCanonicalTransactionChain.Contract.L2GASDISCOUNTDIVISOR(&_OVMCanonicalTransactionChain.CallOpts)
}

// MAXROLLUPTXSIZE is a free data retrieval call binding the contract method 0x876ed5cb.
//
// Solidity: function MAX_ROLLUP_TX_SIZE() view returns(uint256)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainCaller) MAXROLLUPTXSIZE(opts *bind.CallOpts) (*big.Int, error) {
	var out []interface{}
	err := _OVMCanonicalTransactionChain.contract.Call(opts, &out, "MAX_ROLLUP_TX_SIZE")

	if err != nil {
		return *new(*big.Int), err
	}

	out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)

	return out0, err

}

// MAXROLLUPTXSIZE is a free data retrieval call binding the contract method 0x876ed5cb.
//
// Solidity: function MAX_ROLLUP_TX_SIZE() view returns(uint256)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainSession) MAXROLLUPTXSIZE() (*big.Int, error) {
	return _OVMCanonicalTransactionChain.Contract.MAXROLLUPTXSIZE(&_OVMCanonicalTransactionChain.CallOpts)
}

// MAXROLLUPTXSIZE is a free data retrieval call binding the contract method 0x876ed5cb.
//
// Solidity: function MAX_ROLLUP_TX_SIZE() view returns(uint256)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainCallerSession) MAXROLLUPTXSIZE() (*big.Int, error) {
	return _OVMCanonicalTransactionChain.Contract.MAXROLLUPTXSIZE(&_OVMCanonicalTransactionChain.CallOpts)
}

// MINROLLUPTXGAS is a free data retrieval call binding the contract method 0x78f4b2f2.
//
// Solidity: function MIN_ROLLUP_TX_GAS() view returns(uint256)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainCaller) MINROLLUPTXGAS(opts *bind.CallOpts) (*big.Int, error) {
	var out []interface{}
	err := _OVMCanonicalTransactionChain.contract.Call(opts, &out, "MIN_ROLLUP_TX_GAS")

	if err != nil {
		return *new(*big.Int), err
	}

	out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)

	return out0, err

}

// MINROLLUPTXGAS is a free data retrieval call binding the contract method 0x78f4b2f2.
//
// Solidity: function MIN_ROLLUP_TX_GAS() view returns(uint256)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainSession) MINROLLUPTXGAS() (*big.Int, error) {
	return _OVMCanonicalTransactionChain.Contract.MINROLLUPTXGAS(&_OVMCanonicalTransactionChain.CallOpts)
}

// MINROLLUPTXGAS is a free data retrieval call binding the contract method 0x78f4b2f2.
//
// Solidity: function MIN_ROLLUP_TX_GAS() view returns(uint256)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainCallerSession) MINROLLUPTXGAS() (*big.Int, error) {
	return _OVMCanonicalTransactionChain.Contract.MINROLLUPTXGAS(&_OVMCanonicalTransactionChain.CallOpts)
}

// AppendQueueBatch is a free data retrieval call binding the contract method 0xfacdc5da.
//
// Solidity: function appendQueueBatch(uint256 ) pure returns()
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainCaller) AppendQueueBatch(opts *bind.CallOpts, arg0 *big.Int) error {
	var out []interface{}
	err := _OVMCanonicalTransactionChain.contract.Call(opts, &out, "appendQueueBatch", arg0)

	if err != nil {
		return err
	}

	return err

}

// AppendQueueBatch is a free data retrieval call binding the contract method 0xfacdc5da.
//
// Solidity: function appendQueueBatch(uint256 ) pure returns()
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainSession) AppendQueueBatch(arg0 *big.Int) error {
	return _OVMCanonicalTransactionChain.Contract.AppendQueueBatch(&_OVMCanonicalTransactionChain.CallOpts, arg0)
}

// AppendQueueBatch is a free data retrieval call binding the contract method 0xfacdc5da.
//
// Solidity: function appendQueueBatch(uint256 ) pure returns()
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainCallerSession) AppendQueueBatch(arg0 *big.Int) error {
	return _OVMCanonicalTransactionChain.Contract.AppendQueueBatch(&_OVMCanonicalTransactionChain.CallOpts, arg0)
}

// Batches is a free data retrieval call binding the contract method 0xcfdf677e.
//
// Solidity: function batches() view returns(address)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainCaller) Batches(opts *bind.CallOpts) (common.Address, error) {
	var out []interface{}
	err := _OVMCanonicalTransactionChain.contract.Call(opts, &out, "batches")

	if err != nil {
		return *new(common.Address), err
	}

	out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)

	return out0, err

}

// Batches is a free data retrieval call binding the contract method 0xcfdf677e.
//
// Solidity: function batches() view returns(address)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainSession) Batches() (common.Address, error) {
	return _OVMCanonicalTransactionChain.Contract.Batches(&_OVMCanonicalTransactionChain.CallOpts)
}

// Batches is a free data retrieval call binding the contract method 0xcfdf677e.
//
// Solidity: function batches() view returns(address)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainCallerSession) Batches() (common.Address, error) {
	return _OVMCanonicalTransactionChain.Contract.Batches(&_OVMCanonicalTransactionChain.CallOpts)
}

// ForceInclusionPeriodBlocks is a free data retrieval call binding the contract method 0x138387a4.
//
// Solidity: function forceInclusionPeriodBlocks() view returns(uint256)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainCaller) ForceInclusionPeriodBlocks(opts *bind.CallOpts) (*big.Int, error) {
	var out []interface{}
	err := _OVMCanonicalTransactionChain.contract.Call(opts, &out, "forceInclusionPeriodBlocks")

	if err != nil {
		return *new(*big.Int), err
	}

	out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)

	return out0, err

}

// ForceInclusionPeriodBlocks is a free data retrieval call binding the contract method 0x138387a4.
//
// Solidity: function forceInclusionPeriodBlocks() view returns(uint256)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainSession) ForceInclusionPeriodBlocks() (*big.Int, error) {
	return _OVMCanonicalTransactionChain.Contract.ForceInclusionPeriodBlocks(&_OVMCanonicalTransactionChain.CallOpts)
}

// ForceInclusionPeriodBlocks is a free data retrieval call binding the contract method 0x138387a4.
//
// Solidity: function forceInclusionPeriodBlocks() view returns(uint256)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainCallerSession) ForceInclusionPeriodBlocks() (*big.Int, error) {
	return _OVMCanonicalTransactionChain.Contract.ForceInclusionPeriodBlocks(&_OVMCanonicalTransactionChain.CallOpts)
}

// ForceInclusionPeriodSeconds is a free data retrieval call binding the contract method 0xc139eb15.
//
// Solidity: function forceInclusionPeriodSeconds() view returns(uint256)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainCaller) ForceInclusionPeriodSeconds(opts *bind.CallOpts) (*big.Int, error) {
	var out []interface{}
	err := _OVMCanonicalTransactionChain.contract.Call(opts, &out, "forceInclusionPeriodSeconds")

	if err != nil {
		return *new(*big.Int), err
	}

	out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)

	return out0, err

}

// ForceInclusionPeriodSeconds is a free data retrieval call binding the contract method 0xc139eb15.
//
// Solidity: function forceInclusionPeriodSeconds() view returns(uint256)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainSession) ForceInclusionPeriodSeconds() (*big.Int, error) {
	return _OVMCanonicalTransactionChain.Contract.ForceInclusionPeriodSeconds(&_OVMCanonicalTransactionChain.CallOpts)
}

// ForceInclusionPeriodSeconds is a free data retrieval call binding the contract method 0xc139eb15.
//
// Solidity: function forceInclusionPeriodSeconds() view returns(uint256)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainCallerSession) ForceInclusionPeriodSeconds() (*big.Int, error) {
	return _OVMCanonicalTransactionChain.Contract.ForceInclusionPeriodSeconds(&_OVMCanonicalTransactionChain.CallOpts)
}

// GetLastBlockNumber is a free data retrieval call binding the contract method 0x5ae6256d.
//
// Solidity: function getLastBlockNumber() view returns(uint40)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainCaller) GetLastBlockNumber(opts *bind.CallOpts) (*big.Int, error) {
	var out []interface{}
	err := _OVMCanonicalTransactionChain.contract.Call(opts, &out, "getLastBlockNumber")

	if err != nil {
		return *new(*big.Int), err
	}

	out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)

	return out0, err

}

// GetLastBlockNumber is a free data retrieval call binding the contract method 0x5ae6256d.
//
// Solidity: function getLastBlockNumber() view returns(uint40)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainSession) GetLastBlockNumber() (*big.Int, error) {
	return _OVMCanonicalTransactionChain.Contract.GetLastBlockNumber(&_OVMCanonicalTransactionChain.CallOpts)
}

// GetLastBlockNumber is a free data retrieval call binding the contract method 0x5ae6256d.
//
// Solidity: function getLastBlockNumber() view returns(uint40)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainCallerSession) GetLastBlockNumber() (*big.Int, error) {
	return _OVMCanonicalTransactionChain.Contract.GetLastBlockNumber(&_OVMCanonicalTransactionChain.CallOpts)
}

// GetLastTimestamp is a free data retrieval call binding the contract method 0x37899770.
//
// Solidity: function getLastTimestamp() view returns(uint40)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainCaller) GetLastTimestamp(opts *bind.CallOpts) (*big.Int, error) {
	var out []interface{}
	err := _OVMCanonicalTransactionChain.contract.Call(opts, &out, "getLastTimestamp")

	if err != nil {
		return *new(*big.Int), err
	}

	out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)

	return out0, err

}

// GetLastTimestamp is a free data retrieval call binding the contract method 0x37899770.
//
// Solidity: function getLastTimestamp() view returns(uint40)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainSession) GetLastTimestamp() (*big.Int, error) {
	return _OVMCanonicalTransactionChain.Contract.GetLastTimestamp(&_OVMCanonicalTransactionChain.CallOpts)
}

// GetLastTimestamp is a free data retrieval call binding the contract method 0x37899770.
//
// Solidity: function getLastTimestamp() view returns(uint40)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainCallerSession) GetLastTimestamp() (*big.Int, error) {
	return _OVMCanonicalTransactionChain.Contract.GetLastTimestamp(&_OVMCanonicalTransactionChain.CallOpts)
}

// GetNextQueueIndex is a free data retrieval call binding the contract method 0x7a167a8a.
//
// Solidity: function getNextQueueIndex() view returns(uint40)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainCaller) GetNextQueueIndex(opts *bind.CallOpts) (*big.Int, error) {
	var out []interface{}
	err := _OVMCanonicalTransactionChain.contract.Call(opts, &out, "getNextQueueIndex")

	if err != nil {
		return *new(*big.Int), err
	}

	out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)

	return out0, err

}

// GetNextQueueIndex is a free data retrieval call binding the contract method 0x7a167a8a.
//
// Solidity: function getNextQueueIndex() view returns(uint40)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainSession) GetNextQueueIndex() (*big.Int, error) {
	return _OVMCanonicalTransactionChain.Contract.GetNextQueueIndex(&_OVMCanonicalTransactionChain.CallOpts)
}

// GetNextQueueIndex is a free data retrieval call binding the contract method 0x7a167a8a.
//
// Solidity: function getNextQueueIndex() view returns(uint40)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainCallerSession) GetNextQueueIndex() (*big.Int, error) {
	return _OVMCanonicalTransactionChain.Contract.GetNextQueueIndex(&_OVMCanonicalTransactionChain.CallOpts)
}

// GetNumPendingQueueElements is a free data retrieval call binding the contract method 0xf722b41a.
//
// Solidity: function getNumPendingQueueElements() view returns(uint40)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainCaller) GetNumPendingQueueElements(opts *bind.CallOpts) (*big.Int, error) {
	var out []interface{}
	err := _OVMCanonicalTransactionChain.contract.Call(opts, &out, "getNumPendingQueueElements")

	if err != nil {
		return *new(*big.Int), err
	}

	out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)

	return out0, err

}

// GetNumPendingQueueElements is a free data retrieval call binding the contract method 0xf722b41a.
//
// Solidity: function getNumPendingQueueElements() view returns(uint40)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainSession) GetNumPendingQueueElements() (*big.Int, error) {
	return _OVMCanonicalTransactionChain.Contract.GetNumPendingQueueElements(&_OVMCanonicalTransactionChain.CallOpts)
}

// GetNumPendingQueueElements is a free data retrieval call binding the contract method 0xf722b41a.
//
// Solidity: function getNumPendingQueueElements() view returns(uint40)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainCallerSession) GetNumPendingQueueElements() (*big.Int, error) {
	return _OVMCanonicalTransactionChain.Contract.GetNumPendingQueueElements(&_OVMCanonicalTransactionChain.CallOpts)
}

// GetQueueElement is a free data retrieval call binding the contract method 0x2a7f18be.
//
// Solidity: function getQueueElement(uint256 _index) view returns((bytes32,uint40,uint40) _element)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainCaller) GetQueueElement(opts *bind.CallOpts, _index *big.Int) (Lib_OVMCodecQueueElement, error) {
	var out []interface{}
	err := _OVMCanonicalTransactionChain.contract.Call(opts, &out, "getQueueElement", _index)

	if err != nil {
		return *new(Lib_OVMCodecQueueElement), err
	}

	out0 := *abi.ConvertType(out[0], new(Lib_OVMCodecQueueElement)).(*Lib_OVMCodecQueueElement)

	return out0, err

}

// GetQueueElement is a free data retrieval call binding the contract method 0x2a7f18be.
//
// Solidity: function getQueueElement(uint256 _index) view returns((bytes32,uint40,uint40) _element)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainSession) GetQueueElement(_index *big.Int) (Lib_OVMCodecQueueElement, error) {
	return _OVMCanonicalTransactionChain.Contract.GetQueueElement(&_OVMCanonicalTransactionChain.CallOpts, _index)
}

// GetQueueElement is a free data retrieval call binding the contract method 0x2a7f18be.
//
// Solidity: function getQueueElement(uint256 _index) view returns((bytes32,uint40,uint40) _element)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainCallerSession) GetQueueElement(_index *big.Int) (Lib_OVMCodecQueueElement, error) {
	return _OVMCanonicalTransactionChain.Contract.GetQueueElement(&_OVMCanonicalTransactionChain.CallOpts, _index)
}

// GetQueueLength is a free data retrieval call binding the contract method 0xb8f77005.
//
// Solidity: function getQueueLength() view returns(uint40)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainCaller) GetQueueLength(opts *bind.CallOpts) (*big.Int, error) {
	var out []interface{}
	err := _OVMCanonicalTransactionChain.contract.Call(opts, &out, "getQueueLength")

	if err != nil {
		return *new(*big.Int), err
	}

	out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)

	return out0, err

}

// GetQueueLength is a free data retrieval call binding the contract method 0xb8f77005.
//
// Solidity: function getQueueLength() view returns(uint40)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainSession) GetQueueLength() (*big.Int, error) {
	return _OVMCanonicalTransactionChain.Contract.GetQueueLength(&_OVMCanonicalTransactionChain.CallOpts)
}

// GetQueueLength is a free data retrieval call binding the contract method 0xb8f77005.
//
// Solidity: function getQueueLength() view returns(uint40)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainCallerSession) GetQueueLength() (*big.Int, error) {
	return _OVMCanonicalTransactionChain.Contract.GetQueueLength(&_OVMCanonicalTransactionChain.CallOpts)
}

// GetTotalBatches is a free data retrieval call binding the contract method 0xe561dddc.
//
// Solidity: function getTotalBatches() view returns(uint256 _totalBatches)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainCaller) GetTotalBatches(opts *bind.CallOpts) (*big.Int, error) {
	var out []interface{}
	err := _OVMCanonicalTransactionChain.contract.Call(opts, &out, "getTotalBatches")

	if err != nil {
		return *new(*big.Int), err
	}

	out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)

	return out0, err

}

// GetTotalBatches is a free data retrieval call binding the contract method 0xe561dddc.
//
// Solidity: function getTotalBatches() view returns(uint256 _totalBatches)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainSession) GetTotalBatches() (*big.Int, error) {
	return _OVMCanonicalTransactionChain.Contract.GetTotalBatches(&_OVMCanonicalTransactionChain.CallOpts)
}

// GetTotalBatches is a free data retrieval call binding the contract method 0xe561dddc.
//
// Solidity: function getTotalBatches() view returns(uint256 _totalBatches)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainCallerSession) GetTotalBatches() (*big.Int, error) {
	return _OVMCanonicalTransactionChain.Contract.GetTotalBatches(&_OVMCanonicalTransactionChain.CallOpts)
}

// GetTotalElements is a free data retrieval call binding the contract method 0x7aa63a86.
//
// Solidity: function getTotalElements() view returns(uint256 _totalElements)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainCaller) GetTotalElements(opts *bind.CallOpts) (*big.Int, error) {
	var out []interface{}
	err := _OVMCanonicalTransactionChain.contract.Call(opts, &out, "getTotalElements")

	if err != nil {
		return *new(*big.Int), err
	}

	out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)

	return out0, err

}

// GetTotalElements is a free data retrieval call binding the contract method 0x7aa63a86.
//
// Solidity: function getTotalElements() view returns(uint256 _totalElements)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainSession) GetTotalElements() (*big.Int, error) {
	return _OVMCanonicalTransactionChain.Contract.GetTotalElements(&_OVMCanonicalTransactionChain.CallOpts)
}

// GetTotalElements is a free data retrieval call binding the contract method 0x7aa63a86.
//
// Solidity: function getTotalElements() view returns(uint256 _totalElements)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainCallerSession) GetTotalElements() (*big.Int, error) {
	return _OVMCanonicalTransactionChain.Contract.GetTotalElements(&_OVMCanonicalTransactionChain.CallOpts)
}

// LibAddressManager is a free data retrieval call binding the contract method 0x299ca478.
//
// Solidity: function libAddressManager() view returns(address)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainCaller) LibAddressManager(opts *bind.CallOpts) (common.Address, error) {
	var out []interface{}
	err := _OVMCanonicalTransactionChain.contract.Call(opts, &out, "libAddressManager")

	if err != nil {
		return *new(common.Address), err
	}

	out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)

	return out0, err

}

// LibAddressManager is a free data retrieval call binding the contract method 0x299ca478.
//
// Solidity: function libAddressManager() view returns(address)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainSession) LibAddressManager() (common.Address, error) {
	return _OVMCanonicalTransactionChain.Contract.LibAddressManager(&_OVMCanonicalTransactionChain.CallOpts)
}

// LibAddressManager is a free data retrieval call binding the contract method 0x299ca478.
//
// Solidity: function libAddressManager() view returns(address)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainCallerSession) LibAddressManager() (common.Address, error) {
	return _OVMCanonicalTransactionChain.Contract.LibAddressManager(&_OVMCanonicalTransactionChain.CallOpts)
}

// MaxTransactionGasLimit is a free data retrieval call binding the contract method 0x8d38c6c1.
//
// Solidity: function maxTransactionGasLimit() view returns(uint256)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainCaller) MaxTransactionGasLimit(opts *bind.CallOpts) (*big.Int, error) {
	var out []interface{}
	err := _OVMCanonicalTransactionChain.contract.Call(opts, &out, "maxTransactionGasLimit")

	if err != nil {
		return *new(*big.Int), err
	}

	out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)

	return out0, err

}

// MaxTransactionGasLimit is a free data retrieval call binding the contract method 0x8d38c6c1.
//
// Solidity: function maxTransactionGasLimit() view returns(uint256)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainSession) MaxTransactionGasLimit() (*big.Int, error) {
	return _OVMCanonicalTransactionChain.Contract.MaxTransactionGasLimit(&_OVMCanonicalTransactionChain.CallOpts)
}

// MaxTransactionGasLimit is a free data retrieval call binding the contract method 0x8d38c6c1.
//
// Solidity: function maxTransactionGasLimit() view returns(uint256)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainCallerSession) MaxTransactionGasLimit() (*big.Int, error) {
	return _OVMCanonicalTransactionChain.Contract.MaxTransactionGasLimit(&_OVMCanonicalTransactionChain.CallOpts)
}

// Queue is a free data retrieval call binding the contract method 0xe10d29ee.
//
// Solidity: function queue() view returns(address)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainCaller) Queue(opts *bind.CallOpts) (common.Address, error) {
	var out []interface{}
	err := _OVMCanonicalTransactionChain.contract.Call(opts, &out, "queue")

	if err != nil {
		return *new(common.Address), err
	}

	out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)

	return out0, err

}

// Queue is a free data retrieval call binding the contract method 0xe10d29ee.
//
// Solidity: function queue() view returns(address)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainSession) Queue() (common.Address, error) {
	return _OVMCanonicalTransactionChain.Contract.Queue(&_OVMCanonicalTransactionChain.CallOpts)
}

// Queue is a free data retrieval call binding the contract method 0xe10d29ee.
//
// Solidity: function queue() view returns(address)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainCallerSession) Queue() (common.Address, error) {
	return _OVMCanonicalTransactionChain.Contract.Queue(&_OVMCanonicalTransactionChain.CallOpts)
}

// Resolve is a free data retrieval call binding the contract method 0x461a4478.
//
// Solidity: function resolve(string _name) view returns(address)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainCaller) Resolve(opts *bind.CallOpts, _name string) (common.Address, error) {
	var out []interface{}
	err := _OVMCanonicalTransactionChain.contract.Call(opts, &out, "resolve", _name)

	if err != nil {
		return *new(common.Address), err
	}

	out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)

	return out0, err

}

// Resolve is a free data retrieval call binding the contract method 0x461a4478.
//
// Solidity: function resolve(string _name) view returns(address)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainSession) Resolve(_name string) (common.Address, error) {
	return _OVMCanonicalTransactionChain.Contract.Resolve(&_OVMCanonicalTransactionChain.CallOpts, _name)
}

// Resolve is a free data retrieval call binding the contract method 0x461a4478.
//
// Solidity: function resolve(string _name) view returns(address)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainCallerSession) Resolve(_name string) (common.Address, error) {
	return _OVMCanonicalTransactionChain.Contract.Resolve(&_OVMCanonicalTransactionChain.CallOpts, _name)
}

// VerifyTransaction is a free data retrieval call binding the contract method 0x4de569ce.
//
// Solidity: function verifyTransaction((uint256,uint256,uint8,address,address,uint256,bytes) _transaction, (bool,uint256,uint256,uint256,bytes) _txChainElement, (uint256,bytes32,uint256,uint256,bytes) _batchHeader, (uint256,bytes32[]) _inclusionProof) view returns(bool)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainCaller) VerifyTransaction(opts *bind.CallOpts, _transaction Lib_OVMCodecTransaction, _txChainElement Lib_OVMCodecTransactionChainElement, _batchHeader Lib_OVMCodecChainBatchHeader, _inclusionProof Lib_OVMCodecChainInclusionProof) (bool, error) {
	var out []interface{}
	err := _OVMCanonicalTransactionChain.contract.Call(opts, &out, "verifyTransaction", _transaction, _txChainElement, _batchHeader, _inclusionProof)

	if err != nil {
		return *new(bool), err
	}

	out0 := *abi.ConvertType(out[0], new(bool)).(*bool)

	return out0, err

}

// VerifyTransaction is a free data retrieval call binding the contract method 0x4de569ce.
//
// Solidity: function verifyTransaction((uint256,uint256,uint8,address,address,uint256,bytes) _transaction, (bool,uint256,uint256,uint256,bytes) _txChainElement, (uint256,bytes32,uint256,uint256,bytes) _batchHeader, (uint256,bytes32[]) _inclusionProof) view returns(bool)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainSession) VerifyTransaction(_transaction Lib_OVMCodecTransaction, _txChainElement Lib_OVMCodecTransactionChainElement, _batchHeader Lib_OVMCodecChainBatchHeader, _inclusionProof Lib_OVMCodecChainInclusionProof) (bool, error) {
	return _OVMCanonicalTransactionChain.Contract.VerifyTransaction(&_OVMCanonicalTransactionChain.CallOpts, _transaction, _txChainElement, _batchHeader, _inclusionProof)
}

// VerifyTransaction is a free data retrieval call binding the contract method 0x4de569ce.
//
// Solidity: function verifyTransaction((uint256,uint256,uint8,address,address,uint256,bytes) _transaction, (bool,uint256,uint256,uint256,bytes) _txChainElement, (uint256,bytes32,uint256,uint256,bytes) _batchHeader, (uint256,bytes32[]) _inclusionProof) view returns(bool)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainCallerSession) VerifyTransaction(_transaction Lib_OVMCodecTransaction, _txChainElement Lib_OVMCodecTransactionChainElement, _batchHeader Lib_OVMCodecChainBatchHeader, _inclusionProof Lib_OVMCodecChainInclusionProof) (bool, error) {
	return _OVMCanonicalTransactionChain.Contract.VerifyTransaction(&_OVMCanonicalTransactionChain.CallOpts, _transaction, _txChainElement, _batchHeader, _inclusionProof)
}

// AppendSequencerBatch is a paid mutator transaction binding the contract method 0xd0f89344.
//
// Solidity: function appendSequencerBatch() returns()
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainTransactor) AppendSequencerBatch(opts *bind.TransactOpts) (*types.Transaction, error) {
	return _OVMCanonicalTransactionChain.contract.Transact(opts, "appendSequencerBatch")
}

// AppendSequencerBatch is a paid mutator transaction binding the contract method 0xd0f89344.
//
// Solidity: function appendSequencerBatch() returns()
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainSession) AppendSequencerBatch() (*types.Transaction, error) {
	return _OVMCanonicalTransactionChain.Contract.AppendSequencerBatch(&_OVMCanonicalTransactionChain.TransactOpts)
}

// AppendSequencerBatch is a paid mutator transaction binding the contract method 0xd0f89344.
//
// Solidity: function appendSequencerBatch() returns()
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainTransactorSession) AppendSequencerBatch() (*types.Transaction, error) {
	return _OVMCanonicalTransactionChain.Contract.AppendSequencerBatch(&_OVMCanonicalTransactionChain.TransactOpts)
}

// Enqueue is a paid mutator transaction binding the contract method 0x6fee07e0.
//
// Solidity: function enqueue(address _target, uint256 _gasLimit, bytes _data) returns()
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainTransactor) Enqueue(opts *bind.TransactOpts, _target common.Address, _gasLimit *big.Int, _data []byte) (*types.Transaction, error) {
	return _OVMCanonicalTransactionChain.contract.Transact(opts, "enqueue", _target, _gasLimit, _data)
}

// Enqueue is a paid mutator transaction binding the contract method 0x6fee07e0.
//
// Solidity: function enqueue(address _target, uint256 _gasLimit, bytes _data) returns()
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainSession) Enqueue(_target common.Address, _gasLimit *big.Int, _data []byte) (*types.Transaction, error) {
	return _OVMCanonicalTransactionChain.Contract.Enqueue(&_OVMCanonicalTransactionChain.TransactOpts, _target, _gasLimit, _data)
}

// Enqueue is a paid mutator transaction binding the contract method 0x6fee07e0.
//
// Solidity: function enqueue(address _target, uint256 _gasLimit, bytes _data) returns()
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainTransactorSession) Enqueue(_target common.Address, _gasLimit *big.Int, _data []byte) (*types.Transaction, error) {
	return _OVMCanonicalTransactionChain.Contract.Enqueue(&_OVMCanonicalTransactionChain.TransactOpts, _target, _gasLimit, _data)
}

// OVMCanonicalTransactionChainQueueBatchAppendedIterator is returned from FilterQueueBatchAppended and is used to iterate over the raw logs and unpacked data for QueueBatchAppended events raised by the OVMCanonicalTransactionChain contract.
type OVMCanonicalTransactionChainQueueBatchAppendedIterator struct {
	Event *OVMCanonicalTransactionChainQueueBatchAppended // Event containing the contract specifics and raw log

	contract *bind.BoundContract // Generic contract to use for unpacking event data
	event    string              // Event name to use for unpacking event data

	logs chan types.Log        // Log channel receiving the found contract events
	sub  ethereum.Subscription // Subscription for errors, completion and termination
	done bool                  // Whether the subscription completed delivering logs
	fail error                 // Occurred error to stop iteration
}

// 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.
func (it *OVMCanonicalTransactionChainQueueBatchAppendedIterator) Next() bool {
	// If the iterator failed, stop iterating
	if it.fail != nil {
		return false
	}
	// If the iterator completed, deliver directly whatever's available
	if it.done {
		select {
		case log := <-it.logs:
			it.Event = new(OVMCanonicalTransactionChainQueueBatchAppended)
			if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
				it.fail = err
				return false
			}
			it.Event.Raw = log
			return true

		default:
			return false
		}
	}
	// Iterator still in progress, wait for either a data or an error event
	select {
	case log := <-it.logs:
		it.Event = new(OVMCanonicalTransactionChainQueueBatchAppended)
		if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
			it.fail = err
			return false
		}
		it.Event.Raw = log
		return true

	case err := <-it.sub.Err():
		it.done = true
		it.fail = err
		return it.Next()
	}
}

// Error returns any retrieval or parsing error occurred during filtering.
func (it *OVMCanonicalTransactionChainQueueBatchAppendedIterator) Error() error {
	return it.fail
}

// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *OVMCanonicalTransactionChainQueueBatchAppendedIterator) Close() error {
	it.sub.Unsubscribe()
	return nil
}

// OVMCanonicalTransactionChainQueueBatchAppended represents a QueueBatchAppended event raised by the OVMCanonicalTransactionChain contract.
type OVMCanonicalTransactionChainQueueBatchAppended struct {
	StartingQueueIndex *big.Int
	NumQueueElements   *big.Int
	TotalElements      *big.Int
	Raw                types.Log // Blockchain specific contextual infos
}

// FilterQueueBatchAppended is a free log retrieval operation binding the contract event 0x64d7f508348c70dea42d5302a393987e4abc20e45954ab3f9d320207751956f0.
//
// Solidity: event QueueBatchAppended(uint256 _startingQueueIndex, uint256 _numQueueElements, uint256 _totalElements)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainFilterer) FilterQueueBatchAppended(opts *bind.FilterOpts) (*OVMCanonicalTransactionChainQueueBatchAppendedIterator, error) {

	logs, sub, err := _OVMCanonicalTransactionChain.contract.FilterLogs(opts, "QueueBatchAppended")
	if err != nil {
		return nil, err
	}
	return &OVMCanonicalTransactionChainQueueBatchAppendedIterator{contract: _OVMCanonicalTransactionChain.contract, event: "QueueBatchAppended", logs: logs, sub: sub}, nil
}

// WatchQueueBatchAppended is a free log subscription operation binding the contract event 0x64d7f508348c70dea42d5302a393987e4abc20e45954ab3f9d320207751956f0.
//
// Solidity: event QueueBatchAppended(uint256 _startingQueueIndex, uint256 _numQueueElements, uint256 _totalElements)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainFilterer) WatchQueueBatchAppended(opts *bind.WatchOpts, sink chan<- *OVMCanonicalTransactionChainQueueBatchAppended) (event.Subscription, error) {

	logs, sub, err := _OVMCanonicalTransactionChain.contract.WatchLogs(opts, "QueueBatchAppended")
	if err != nil {
		return nil, err
	}
	return event.NewSubscription(func(quit <-chan struct{}) error {
		defer sub.Unsubscribe()
		for {
			select {
			case log := <-logs:
				// New log arrived, parse the event and forward to the user
				event := new(OVMCanonicalTransactionChainQueueBatchAppended)
				if err := _OVMCanonicalTransactionChain.contract.UnpackLog(event, "QueueBatchAppended", log); err != nil {
					return err
				}
				event.Raw = log

				select {
				case sink <- event:
				case err := <-sub.Err():
					return err
				case <-quit:
					return nil
				}
			case err := <-sub.Err():
				return err
			case <-quit:
				return nil
			}
		}
	}), nil
}

// ParseQueueBatchAppended is a log parse operation binding the contract event 0x64d7f508348c70dea42d5302a393987e4abc20e45954ab3f9d320207751956f0.
//
// Solidity: event QueueBatchAppended(uint256 _startingQueueIndex, uint256 _numQueueElements, uint256 _totalElements)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainFilterer) ParseQueueBatchAppended(log types.Log) (*OVMCanonicalTransactionChainQueueBatchAppended, error) {
	event := new(OVMCanonicalTransactionChainQueueBatchAppended)
	if err := _OVMCanonicalTransactionChain.contract.UnpackLog(event, "QueueBatchAppended", log); err != nil {
		return nil, err
	}
	event.Raw = log
	return event, nil
}

// OVMCanonicalTransactionChainSequencerBatchAppendedIterator is returned from FilterSequencerBatchAppended and is used to iterate over the raw logs and unpacked data for SequencerBatchAppended events raised by the OVMCanonicalTransactionChain contract.
type OVMCanonicalTransactionChainSequencerBatchAppendedIterator struct {
	Event *OVMCanonicalTransactionChainSequencerBatchAppended // Event containing the contract specifics and raw log

	contract *bind.BoundContract // Generic contract to use for unpacking event data
	event    string              // Event name to use for unpacking event data

	logs chan types.Log        // Log channel receiving the found contract events
	sub  ethereum.Subscription // Subscription for errors, completion and termination
	done bool                  // Whether the subscription completed delivering logs
	fail error                 // Occurred error to stop iteration
}

// 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.
func (it *OVMCanonicalTransactionChainSequencerBatchAppendedIterator) Next() bool {
	// If the iterator failed, stop iterating
	if it.fail != nil {
		return false
	}
	// If the iterator completed, deliver directly whatever's available
	if it.done {
		select {
		case log := <-it.logs:
			it.Event = new(OVMCanonicalTransactionChainSequencerBatchAppended)
			if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
				it.fail = err
				return false
			}
			it.Event.Raw = log
			return true

		default:
			return false
		}
	}
	// Iterator still in progress, wait for either a data or an error event
	select {
	case log := <-it.logs:
		it.Event = new(OVMCanonicalTransactionChainSequencerBatchAppended)
		if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
			it.fail = err
			return false
		}
		it.Event.Raw = log
		return true

	case err := <-it.sub.Err():
		it.done = true
		it.fail = err
		return it.Next()
	}
}

// Error returns any retrieval or parsing error occurred during filtering.
func (it *OVMCanonicalTransactionChainSequencerBatchAppendedIterator) Error() error {
	return it.fail
}

// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *OVMCanonicalTransactionChainSequencerBatchAppendedIterator) Close() error {
	it.sub.Unsubscribe()
	return nil
}

// OVMCanonicalTransactionChainSequencerBatchAppended represents a SequencerBatchAppended event raised by the OVMCanonicalTransactionChain contract.
type OVMCanonicalTransactionChainSequencerBatchAppended struct {
	StartingQueueIndex *big.Int
	NumQueueElements   *big.Int
	TotalElements      *big.Int
	Raw                types.Log // Blockchain specific contextual infos
}

// FilterSequencerBatchAppended is a free log retrieval operation binding the contract event 0x602f1aeac0ca2e7a13e281a9ef0ad7838542712ce16780fa2ecffd351f05f899.
//
// Solidity: event SequencerBatchAppended(uint256 _startingQueueIndex, uint256 _numQueueElements, uint256 _totalElements)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainFilterer) FilterSequencerBatchAppended(opts *bind.FilterOpts) (*OVMCanonicalTransactionChainSequencerBatchAppendedIterator, error) {

	logs, sub, err := _OVMCanonicalTransactionChain.contract.FilterLogs(opts, "SequencerBatchAppended")
	if err != nil {
		return nil, err
	}
	return &OVMCanonicalTransactionChainSequencerBatchAppendedIterator{contract: _OVMCanonicalTransactionChain.contract, event: "SequencerBatchAppended", logs: logs, sub: sub}, nil
}

// WatchSequencerBatchAppended is a free log subscription operation binding the contract event 0x602f1aeac0ca2e7a13e281a9ef0ad7838542712ce16780fa2ecffd351f05f899.
//
// Solidity: event SequencerBatchAppended(uint256 _startingQueueIndex, uint256 _numQueueElements, uint256 _totalElements)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainFilterer) WatchSequencerBatchAppended(opts *bind.WatchOpts, sink chan<- *OVMCanonicalTransactionChainSequencerBatchAppended) (event.Subscription, error) {

	logs, sub, err := _OVMCanonicalTransactionChain.contract.WatchLogs(opts, "SequencerBatchAppended")
	if err != nil {
		return nil, err
	}
	return event.NewSubscription(func(quit <-chan struct{}) error {
		defer sub.Unsubscribe()
		for {
			select {
			case log := <-logs:
				// New log arrived, parse the event and forward to the user
				event := new(OVMCanonicalTransactionChainSequencerBatchAppended)
				if err := _OVMCanonicalTransactionChain.contract.UnpackLog(event, "SequencerBatchAppended", log); err != nil {
					return err
				}
				event.Raw = log

				select {
				case sink <- event:
				case err := <-sub.Err():
					return err
				case <-quit:
					return nil
				}
			case err := <-sub.Err():
				return err
			case <-quit:
				return nil
			}
		}
	}), nil
}

// ParseSequencerBatchAppended is a log parse operation binding the contract event 0x602f1aeac0ca2e7a13e281a9ef0ad7838542712ce16780fa2ecffd351f05f899.
//
// Solidity: event SequencerBatchAppended(uint256 _startingQueueIndex, uint256 _numQueueElements, uint256 _totalElements)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainFilterer) ParseSequencerBatchAppended(log types.Log) (*OVMCanonicalTransactionChainSequencerBatchAppended, error) {
	event := new(OVMCanonicalTransactionChainSequencerBatchAppended)
	if err := _OVMCanonicalTransactionChain.contract.UnpackLog(event, "SequencerBatchAppended", log); err != nil {
		return nil, err
	}
	event.Raw = log
	return event, nil
}

// OVMCanonicalTransactionChainTransactionBatchAppendedIterator is returned from FilterTransactionBatchAppended and is used to iterate over the raw logs and unpacked data for TransactionBatchAppended events raised by the OVMCanonicalTransactionChain contract.
type OVMCanonicalTransactionChainTransactionBatchAppendedIterator struct {
	Event *OVMCanonicalTransactionChainTransactionBatchAppended // Event containing the contract specifics and raw log

	contract *bind.BoundContract // Generic contract to use for unpacking event data
	event    string              // Event name to use for unpacking event data

	logs chan types.Log        // Log channel receiving the found contract events
	sub  ethereum.Subscription // Subscription for errors, completion and termination
	done bool                  // Whether the subscription completed delivering logs
	fail error                 // Occurred error to stop iteration
}

// 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.
func (it *OVMCanonicalTransactionChainTransactionBatchAppendedIterator) Next() bool {
	// If the iterator failed, stop iterating
	if it.fail != nil {
		return false
	}
	// If the iterator completed, deliver directly whatever's available
	if it.done {
		select {
		case log := <-it.logs:
			it.Event = new(OVMCanonicalTransactionChainTransactionBatchAppended)
			if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
				it.fail = err
				return false
			}
			it.Event.Raw = log
			return true

		default:
			return false
		}
	}
	// Iterator still in progress, wait for either a data or an error event
	select {
	case log := <-it.logs:
		it.Event = new(OVMCanonicalTransactionChainTransactionBatchAppended)
		if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
			it.fail = err
			return false
		}
		it.Event.Raw = log
		return true

	case err := <-it.sub.Err():
		it.done = true
		it.fail = err
		return it.Next()
	}
}

// Error returns any retrieval or parsing error occurred during filtering.
func (it *OVMCanonicalTransactionChainTransactionBatchAppendedIterator) Error() error {
	return it.fail
}

// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *OVMCanonicalTransactionChainTransactionBatchAppendedIterator) Close() error {
	it.sub.Unsubscribe()
	return nil
}

// OVMCanonicalTransactionChainTransactionBatchAppended represents a TransactionBatchAppended event raised by the OVMCanonicalTransactionChain contract.
type OVMCanonicalTransactionChainTransactionBatchAppended struct {
	BatchIndex        *big.Int
	BatchRoot         [32]byte
	BatchSize         *big.Int
	PrevTotalElements *big.Int
	ExtraData         []byte
	Raw               types.Log // Blockchain specific contextual infos
}

// FilterTransactionBatchAppended is a free log retrieval operation binding the contract event 0x127186556e7be68c7e31263195225b4de02820707889540969f62c05cf73525e.
//
// Solidity: event TransactionBatchAppended(uint256 indexed _batchIndex, bytes32 _batchRoot, uint256 _batchSize, uint256 _prevTotalElements, bytes _extraData)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainFilterer) FilterTransactionBatchAppended(opts *bind.FilterOpts, _batchIndex []*big.Int) (*OVMCanonicalTransactionChainTransactionBatchAppendedIterator, error) {

	var _batchIndexRule []interface{}
	for _, _batchIndexItem := range _batchIndex {
		_batchIndexRule = append(_batchIndexRule, _batchIndexItem)
	}

	logs, sub, err := _OVMCanonicalTransactionChain.contract.FilterLogs(opts, "TransactionBatchAppended", _batchIndexRule)
	if err != nil {
		return nil, err
	}
	return &OVMCanonicalTransactionChainTransactionBatchAppendedIterator{contract: _OVMCanonicalTransactionChain.contract, event: "TransactionBatchAppended", logs: logs, sub: sub}, nil
}

// WatchTransactionBatchAppended is a free log subscription operation binding the contract event 0x127186556e7be68c7e31263195225b4de02820707889540969f62c05cf73525e.
//
// Solidity: event TransactionBatchAppended(uint256 indexed _batchIndex, bytes32 _batchRoot, uint256 _batchSize, uint256 _prevTotalElements, bytes _extraData)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainFilterer) WatchTransactionBatchAppended(opts *bind.WatchOpts, sink chan<- *OVMCanonicalTransactionChainTransactionBatchAppended, _batchIndex []*big.Int) (event.Subscription, error) {

	var _batchIndexRule []interface{}
	for _, _batchIndexItem := range _batchIndex {
		_batchIndexRule = append(_batchIndexRule, _batchIndexItem)
	}

	logs, sub, err := _OVMCanonicalTransactionChain.contract.WatchLogs(opts, "TransactionBatchAppended", _batchIndexRule)
	if err != nil {
		return nil, err
	}
	return event.NewSubscription(func(quit <-chan struct{}) error {
		defer sub.Unsubscribe()
		for {
			select {
			case log := <-logs:
				// New log arrived, parse the event and forward to the user
				event := new(OVMCanonicalTransactionChainTransactionBatchAppended)
				if err := _OVMCanonicalTransactionChain.contract.UnpackLog(event, "TransactionBatchAppended", log); err != nil {
					return err
				}
				event.Raw = log

				select {
				case sink <- event:
				case err := <-sub.Err():
					return err
				case <-quit:
					return nil
				}
			case err := <-sub.Err():
				return err
			case <-quit:
				return nil
			}
		}
	}), nil
}

// ParseTransactionBatchAppended is a log parse operation binding the contract event 0x127186556e7be68c7e31263195225b4de02820707889540969f62c05cf73525e.
//
// Solidity: event TransactionBatchAppended(uint256 indexed _batchIndex, bytes32 _batchRoot, uint256 _batchSize, uint256 _prevTotalElements, bytes _extraData)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainFilterer) ParseTransactionBatchAppended(log types.Log) (*OVMCanonicalTransactionChainTransactionBatchAppended, error) {
	event := new(OVMCanonicalTransactionChainTransactionBatchAppended)
	if err := _OVMCanonicalTransactionChain.contract.UnpackLog(event, "TransactionBatchAppended", log); err != nil {
		return nil, err
	}
	event.Raw = log
	return event, nil
}

// OVMCanonicalTransactionChainTransactionEnqueuedIterator is returned from FilterTransactionEnqueued and is used to iterate over the raw logs and unpacked data for TransactionEnqueued events raised by the OVMCanonicalTransactionChain contract.
type OVMCanonicalTransactionChainTransactionEnqueuedIterator struct {
	Event *OVMCanonicalTransactionChainTransactionEnqueued // Event containing the contract specifics and raw log

	contract *bind.BoundContract // Generic contract to use for unpacking event data
	event    string              // Event name to use for unpacking event data

	logs chan types.Log        // Log channel receiving the found contract events
	sub  ethereum.Subscription // Subscription for errors, completion and termination
	done bool                  // Whether the subscription completed delivering logs
	fail error                 // Occurred error to stop iteration
}

// 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.
func (it *OVMCanonicalTransactionChainTransactionEnqueuedIterator) Next() bool {
	// If the iterator failed, stop iterating
	if it.fail != nil {
		return false
	}
	// If the iterator completed, deliver directly whatever's available
	if it.done {
		select {
		case log := <-it.logs:
			it.Event = new(OVMCanonicalTransactionChainTransactionEnqueued)
			if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
				it.fail = err
				return false
			}
			it.Event.Raw = log
			return true

		default:
			return false
		}
	}
	// Iterator still in progress, wait for either a data or an error event
	select {
	case log := <-it.logs:
		it.Event = new(OVMCanonicalTransactionChainTransactionEnqueued)
		if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
			it.fail = err
			return false
		}
		it.Event.Raw = log
		return true

	case err := <-it.sub.Err():
		it.done = true
		it.fail = err
		return it.Next()
	}
}

// Error returns any retrieval or parsing error occurred during filtering.
func (it *OVMCanonicalTransactionChainTransactionEnqueuedIterator) Error() error {
	return it.fail
}

// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *OVMCanonicalTransactionChainTransactionEnqueuedIterator) Close() error {
	it.sub.Unsubscribe()
	return nil
}

// OVMCanonicalTransactionChainTransactionEnqueued represents a TransactionEnqueued event raised by the OVMCanonicalTransactionChain contract.
type OVMCanonicalTransactionChainTransactionEnqueued struct {
	L1TxOrigin common.Address
	Target     common.Address
	GasLimit   *big.Int
	Data       []byte
	QueueIndex *big.Int
	Timestamp  *big.Int
	Raw        types.Log // Blockchain specific contextual infos
}

// FilterTransactionEnqueued is a free log retrieval operation binding the contract event 0x4b388aecf9fa6cc92253704e5975a6129a4f735bdbd99567df4ed0094ee4ceb5.
//
// Solidity: event TransactionEnqueued(address _l1TxOrigin, address _target, uint256 _gasLimit, bytes _data, uint256 _queueIndex, uint256 _timestamp)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainFilterer) FilterTransactionEnqueued(opts *bind.FilterOpts) (*OVMCanonicalTransactionChainTransactionEnqueuedIterator, error) {

	logs, sub, err := _OVMCanonicalTransactionChain.contract.FilterLogs(opts, "TransactionEnqueued")
	if err != nil {
		return nil, err
	}
	return &OVMCanonicalTransactionChainTransactionEnqueuedIterator{contract: _OVMCanonicalTransactionChain.contract, event: "TransactionEnqueued", logs: logs, sub: sub}, nil
}

// WatchTransactionEnqueued is a free log subscription operation binding the contract event 0x4b388aecf9fa6cc92253704e5975a6129a4f735bdbd99567df4ed0094ee4ceb5.
//
// Solidity: event TransactionEnqueued(address _l1TxOrigin, address _target, uint256 _gasLimit, bytes _data, uint256 _queueIndex, uint256 _timestamp)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainFilterer) WatchTransactionEnqueued(opts *bind.WatchOpts, sink chan<- *OVMCanonicalTransactionChainTransactionEnqueued) (event.Subscription, error) {

	logs, sub, err := _OVMCanonicalTransactionChain.contract.WatchLogs(opts, "TransactionEnqueued")
	if err != nil {
		return nil, err
	}
	return event.NewSubscription(func(quit <-chan struct{}) error {
		defer sub.Unsubscribe()
		for {
			select {
			case log := <-logs:
				// New log arrived, parse the event and forward to the user
				event := new(OVMCanonicalTransactionChainTransactionEnqueued)
				if err := _OVMCanonicalTransactionChain.contract.UnpackLog(event, "TransactionEnqueued", log); err != nil {
					return err
				}
				event.Raw = log

				select {
				case sink <- event:
				case err := <-sub.Err():
					return err
				case <-quit:
					return nil
				}
			case err := <-sub.Err():
				return err
			case <-quit:
				return nil
			}
		}
	}), nil
}

// ParseTransactionEnqueued is a log parse operation binding the contract event 0x4b388aecf9fa6cc92253704e5975a6129a4f735bdbd99567df4ed0094ee4ceb5.
//
// Solidity: event TransactionEnqueued(address _l1TxOrigin, address _target, uint256 _gasLimit, bytes _data, uint256 _queueIndex, uint256 _timestamp)
func (_OVMCanonicalTransactionChain *OVMCanonicalTransactionChainFilterer) ParseTransactionEnqueued(log types.Log) (*OVMCanonicalTransactionChainTransactionEnqueued, error) {
	event := new(OVMCanonicalTransactionChainTransactionEnqueued)
	if err := _OVMCanonicalTransactionChain.contract.UnpackLog(event, "TransactionEnqueued", log); err != nil {
		return nil, err
	}
	event.Raw = log
	return event, nil
}
