github.com/status-im/status-go@v1.1.0/contracts/gas-price-oracle/gaspriceoracle.go (about)

     1  // Code generated - DO NOT EDIT.
     2  // This file is a generated binding and any manual changes will be lost.
     3  
     4  package gaspriceoracle
     5  
     6  import (
     7  	"errors"
     8  	"math/big"
     9  	"strings"
    10  
    11  	ethereum "github.com/ethereum/go-ethereum"
    12  	"github.com/ethereum/go-ethereum/accounts/abi"
    13  	"github.com/ethereum/go-ethereum/accounts/abi/bind"
    14  	"github.com/ethereum/go-ethereum/common"
    15  	"github.com/ethereum/go-ethereum/core/types"
    16  	"github.com/ethereum/go-ethereum/event"
    17  )
    18  
    19  // Reference imports to suppress errors if they are not otherwise used.
    20  var (
    21  	_ = errors.New
    22  	_ = big.NewInt
    23  	_ = strings.NewReader
    24  	_ = ethereum.NotFound
    25  	_ = bind.Bind
    26  	_ = common.Big1
    27  	_ = types.BloomLookup
    28  	_ = event.NewSubscription
    29  	_ = abi.ConvertType
    30  )
    31  
    32  // GaspriceoracleMetaData contains all meta data concerning the Gaspriceoracle contract.
    33  var GaspriceoracleMetaData = &bind.MetaData{
    34  	ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"DecimalsUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"GasPriceUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"L1BaseFeeUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"OverheadUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"ScalarUpdated\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"admin\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"adminCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gasPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAdmin\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"adminAddress\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"getL1Fee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"getL1GasUsed\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"initPayload\",\"type\":\"bytes\"}],\"name\":\"init\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"l1BaseFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"overhead\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"scalar\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"adminAddress\",\"type\":\"address\"}],\"name\":\"setAdmin\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_decimals\",\"type\":\"uint256\"}],\"name\":\"setDecimals\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_gasPrice\",\"type\":\"uint256\"}],\"name\":\"setGasPrice\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_baseFee\",\"type\":\"uint256\"}],\"name\":\"setL1BaseFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_overhead\",\"type\":\"uint256\"}],\"name\":\"setOverhead\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_scalar\",\"type\":\"uint256\"}],\"name\":\"setScalar\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
    35  }
    36  
    37  // GaspriceoracleABI is the input ABI used to generate the binding from.
    38  // Deprecated: Use GaspriceoracleMetaData.ABI instead.
    39  var GaspriceoracleABI = GaspriceoracleMetaData.ABI
    40  
    41  // Gaspriceoracle is an auto generated Go binding around an Ethereum contract.
    42  type Gaspriceoracle struct {
    43  	GaspriceoracleCaller     // Read-only binding to the contract
    44  	GaspriceoracleTransactor // Write-only binding to the contract
    45  	GaspriceoracleFilterer   // Log filterer for contract events
    46  }
    47  
    48  // GaspriceoracleCaller is an auto generated read-only Go binding around an Ethereum contract.
    49  type GaspriceoracleCaller struct {
    50  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    51  }
    52  
    53  // GaspriceoracleTransactor is an auto generated write-only Go binding around an Ethereum contract.
    54  type GaspriceoracleTransactor struct {
    55  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    56  }
    57  
    58  // GaspriceoracleFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
    59  type GaspriceoracleFilterer struct {
    60  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    61  }
    62  
    63  // GaspriceoracleSession is an auto generated Go binding around an Ethereum contract,
    64  // with pre-set call and transact options.
    65  type GaspriceoracleSession struct {
    66  	Contract     *Gaspriceoracle   // Generic contract binding to set the session for
    67  	CallOpts     bind.CallOpts     // Call options to use throughout this session
    68  	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
    69  }
    70  
    71  // GaspriceoracleCallerSession is an auto generated read-only Go binding around an Ethereum contract,
    72  // with pre-set call options.
    73  type GaspriceoracleCallerSession struct {
    74  	Contract *GaspriceoracleCaller // Generic contract caller binding to set the session for
    75  	CallOpts bind.CallOpts         // Call options to use throughout this session
    76  }
    77  
    78  // GaspriceoracleTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
    79  // with pre-set transact options.
    80  type GaspriceoracleTransactorSession struct {
    81  	Contract     *GaspriceoracleTransactor // Generic contract transactor binding to set the session for
    82  	TransactOpts bind.TransactOpts         // Transaction auth options to use throughout this session
    83  }
    84  
    85  // GaspriceoracleRaw is an auto generated low-level Go binding around an Ethereum contract.
    86  type GaspriceoracleRaw struct {
    87  	Contract *Gaspriceoracle // Generic contract binding to access the raw methods on
    88  }
    89  
    90  // GaspriceoracleCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
    91  type GaspriceoracleCallerRaw struct {
    92  	Contract *GaspriceoracleCaller // Generic read-only contract binding to access the raw methods on
    93  }
    94  
    95  // GaspriceoracleTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
    96  type GaspriceoracleTransactorRaw struct {
    97  	Contract *GaspriceoracleTransactor // Generic write-only contract binding to access the raw methods on
    98  }
    99  
   100  // NewGaspriceoracle creates a new instance of Gaspriceoracle, bound to a specific deployed contract.
   101  func NewGaspriceoracle(address common.Address, backend bind.ContractBackend) (*Gaspriceoracle, error) {
   102  	contract, err := bindGaspriceoracle(address, backend, backend, backend)
   103  	if err != nil {
   104  		return nil, err
   105  	}
   106  	return &Gaspriceoracle{GaspriceoracleCaller: GaspriceoracleCaller{contract: contract}, GaspriceoracleTransactor: GaspriceoracleTransactor{contract: contract}, GaspriceoracleFilterer: GaspriceoracleFilterer{contract: contract}}, nil
   107  }
   108  
   109  // NewGaspriceoracleCaller creates a new read-only instance of Gaspriceoracle, bound to a specific deployed contract.
   110  func NewGaspriceoracleCaller(address common.Address, caller bind.ContractCaller) (*GaspriceoracleCaller, error) {
   111  	contract, err := bindGaspriceoracle(address, caller, nil, nil)
   112  	if err != nil {
   113  		return nil, err
   114  	}
   115  	return &GaspriceoracleCaller{contract: contract}, nil
   116  }
   117  
   118  // NewGaspriceoracleTransactor creates a new write-only instance of Gaspriceoracle, bound to a specific deployed contract.
   119  func NewGaspriceoracleTransactor(address common.Address, transactor bind.ContractTransactor) (*GaspriceoracleTransactor, error) {
   120  	contract, err := bindGaspriceoracle(address, nil, transactor, nil)
   121  	if err != nil {
   122  		return nil, err
   123  	}
   124  	return &GaspriceoracleTransactor{contract: contract}, nil
   125  }
   126  
   127  // NewGaspriceoracleFilterer creates a new log filterer instance of Gaspriceoracle, bound to a specific deployed contract.
   128  func NewGaspriceoracleFilterer(address common.Address, filterer bind.ContractFilterer) (*GaspriceoracleFilterer, error) {
   129  	contract, err := bindGaspriceoracle(address, nil, nil, filterer)
   130  	if err != nil {
   131  		return nil, err
   132  	}
   133  	return &GaspriceoracleFilterer{contract: contract}, nil
   134  }
   135  
   136  // bindGaspriceoracle binds a generic wrapper to an already deployed contract.
   137  func bindGaspriceoracle(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
   138  	parsed, err := GaspriceoracleMetaData.GetAbi()
   139  	if err != nil {
   140  		return nil, err
   141  	}
   142  	return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil
   143  }
   144  
   145  // Call invokes the (constant) contract method with params as input values and
   146  // sets the output to result. The result type might be a single field for simple
   147  // returns, a slice of interfaces for anonymous returns and a struct for named
   148  // returns.
   149  func (_Gaspriceoracle *GaspriceoracleRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
   150  	return _Gaspriceoracle.Contract.GaspriceoracleCaller.contract.Call(opts, result, method, params...)
   151  }
   152  
   153  // Transfer initiates a plain transaction to move funds to the contract, calling
   154  // its default method if one is available.
   155  func (_Gaspriceoracle *GaspriceoracleRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
   156  	return _Gaspriceoracle.Contract.GaspriceoracleTransactor.contract.Transfer(opts)
   157  }
   158  
   159  // Transact invokes the (paid) contract method with params as input values.
   160  func (_Gaspriceoracle *GaspriceoracleRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
   161  	return _Gaspriceoracle.Contract.GaspriceoracleTransactor.contract.Transact(opts, method, params...)
   162  }
   163  
   164  // Call invokes the (constant) contract method with params as input values and
   165  // sets the output to result. The result type might be a single field for simple
   166  // returns, a slice of interfaces for anonymous returns and a struct for named
   167  // returns.
   168  func (_Gaspriceoracle *GaspriceoracleCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
   169  	return _Gaspriceoracle.Contract.contract.Call(opts, result, method, params...)
   170  }
   171  
   172  // Transfer initiates a plain transaction to move funds to the contract, calling
   173  // its default method if one is available.
   174  func (_Gaspriceoracle *GaspriceoracleTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
   175  	return _Gaspriceoracle.Contract.contract.Transfer(opts)
   176  }
   177  
   178  // Transact invokes the (paid) contract method with params as input values.
   179  func (_Gaspriceoracle *GaspriceoracleTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
   180  	return _Gaspriceoracle.Contract.contract.Transact(opts, method, params...)
   181  }
   182  
   183  // Admin is a free data retrieval call binding the contract method 0xf851a440.
   184  //
   185  // Solidity: function admin() view returns(address)
   186  func (_Gaspriceoracle *GaspriceoracleCaller) Admin(opts *bind.CallOpts) (common.Address, error) {
   187  	var out []interface{}
   188  	err := _Gaspriceoracle.contract.Call(opts, &out, "admin")
   189  
   190  	if err != nil {
   191  		return *new(common.Address), err
   192  	}
   193  
   194  	out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
   195  
   196  	return out0, err
   197  
   198  }
   199  
   200  // Admin is a free data retrieval call binding the contract method 0xf851a440.
   201  //
   202  // Solidity: function admin() view returns(address)
   203  func (_Gaspriceoracle *GaspriceoracleSession) Admin() (common.Address, error) {
   204  	return _Gaspriceoracle.Contract.Admin(&_Gaspriceoracle.CallOpts)
   205  }
   206  
   207  // Admin is a free data retrieval call binding the contract method 0xf851a440.
   208  //
   209  // Solidity: function admin() view returns(address)
   210  func (_Gaspriceoracle *GaspriceoracleCallerSession) Admin() (common.Address, error) {
   211  	return _Gaspriceoracle.Contract.Admin(&_Gaspriceoracle.CallOpts)
   212  }
   213  
   214  // Decimals is a free data retrieval call binding the contract method 0x313ce567.
   215  //
   216  // Solidity: function decimals() view returns(uint256)
   217  func (_Gaspriceoracle *GaspriceoracleCaller) Decimals(opts *bind.CallOpts) (*big.Int, error) {
   218  	var out []interface{}
   219  	err := _Gaspriceoracle.contract.Call(opts, &out, "decimals")
   220  
   221  	if err != nil {
   222  		return *new(*big.Int), err
   223  	}
   224  
   225  	out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
   226  
   227  	return out0, err
   228  
   229  }
   230  
   231  // Decimals is a free data retrieval call binding the contract method 0x313ce567.
   232  //
   233  // Solidity: function decimals() view returns(uint256)
   234  func (_Gaspriceoracle *GaspriceoracleSession) Decimals() (*big.Int, error) {
   235  	return _Gaspriceoracle.Contract.Decimals(&_Gaspriceoracle.CallOpts)
   236  }
   237  
   238  // Decimals is a free data retrieval call binding the contract method 0x313ce567.
   239  //
   240  // Solidity: function decimals() view returns(uint256)
   241  func (_Gaspriceoracle *GaspriceoracleCallerSession) Decimals() (*big.Int, error) {
   242  	return _Gaspriceoracle.Contract.Decimals(&_Gaspriceoracle.CallOpts)
   243  }
   244  
   245  // GasPrice is a free data retrieval call binding the contract method 0xfe173b97.
   246  //
   247  // Solidity: function gasPrice() view returns(uint256)
   248  func (_Gaspriceoracle *GaspriceoracleCaller) GasPrice(opts *bind.CallOpts) (*big.Int, error) {
   249  	var out []interface{}
   250  	err := _Gaspriceoracle.contract.Call(opts, &out, "gasPrice")
   251  
   252  	if err != nil {
   253  		return *new(*big.Int), err
   254  	}
   255  
   256  	out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
   257  
   258  	return out0, err
   259  
   260  }
   261  
   262  // GasPrice is a free data retrieval call binding the contract method 0xfe173b97.
   263  //
   264  // Solidity: function gasPrice() view returns(uint256)
   265  func (_Gaspriceoracle *GaspriceoracleSession) GasPrice() (*big.Int, error) {
   266  	return _Gaspriceoracle.Contract.GasPrice(&_Gaspriceoracle.CallOpts)
   267  }
   268  
   269  // GasPrice is a free data retrieval call binding the contract method 0xfe173b97.
   270  //
   271  // Solidity: function gasPrice() view returns(uint256)
   272  func (_Gaspriceoracle *GaspriceoracleCallerSession) GasPrice() (*big.Int, error) {
   273  	return _Gaspriceoracle.Contract.GasPrice(&_Gaspriceoracle.CallOpts)
   274  }
   275  
   276  // GetAdmin is a free data retrieval call binding the contract method 0x6e9960c3.
   277  //
   278  // Solidity: function getAdmin() view returns(address adminAddress)
   279  func (_Gaspriceoracle *GaspriceoracleCaller) GetAdmin(opts *bind.CallOpts) (common.Address, error) {
   280  	var out []interface{}
   281  	err := _Gaspriceoracle.contract.Call(opts, &out, "getAdmin")
   282  
   283  	if err != nil {
   284  		return *new(common.Address), err
   285  	}
   286  
   287  	out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
   288  
   289  	return out0, err
   290  
   291  }
   292  
   293  // GetAdmin is a free data retrieval call binding the contract method 0x6e9960c3.
   294  //
   295  // Solidity: function getAdmin() view returns(address adminAddress)
   296  func (_Gaspriceoracle *GaspriceoracleSession) GetAdmin() (common.Address, error) {
   297  	return _Gaspriceoracle.Contract.GetAdmin(&_Gaspriceoracle.CallOpts)
   298  }
   299  
   300  // GetAdmin is a free data retrieval call binding the contract method 0x6e9960c3.
   301  //
   302  // Solidity: function getAdmin() view returns(address adminAddress)
   303  func (_Gaspriceoracle *GaspriceoracleCallerSession) GetAdmin() (common.Address, error) {
   304  	return _Gaspriceoracle.Contract.GetAdmin(&_Gaspriceoracle.CallOpts)
   305  }
   306  
   307  // GetL1Fee is a free data retrieval call binding the contract method 0x49948e0e.
   308  //
   309  // Solidity: function getL1Fee(bytes _data) view returns(uint256)
   310  func (_Gaspriceoracle *GaspriceoracleCaller) GetL1Fee(opts *bind.CallOpts, _data []byte) (*big.Int, error) {
   311  	var out []interface{}
   312  	err := _Gaspriceoracle.contract.Call(opts, &out, "getL1Fee", _data)
   313  
   314  	if err != nil {
   315  		return *new(*big.Int), err
   316  	}
   317  
   318  	out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
   319  
   320  	return out0, err
   321  
   322  }
   323  
   324  // GetL1Fee is a free data retrieval call binding the contract method 0x49948e0e.
   325  //
   326  // Solidity: function getL1Fee(bytes _data) view returns(uint256)
   327  func (_Gaspriceoracle *GaspriceoracleSession) GetL1Fee(_data []byte) (*big.Int, error) {
   328  	return _Gaspriceoracle.Contract.GetL1Fee(&_Gaspriceoracle.CallOpts, _data)
   329  }
   330  
   331  // GetL1Fee is a free data retrieval call binding the contract method 0x49948e0e.
   332  //
   333  // Solidity: function getL1Fee(bytes _data) view returns(uint256)
   334  func (_Gaspriceoracle *GaspriceoracleCallerSession) GetL1Fee(_data []byte) (*big.Int, error) {
   335  	return _Gaspriceoracle.Contract.GetL1Fee(&_Gaspriceoracle.CallOpts, _data)
   336  }
   337  
   338  // GetL1GasUsed is a free data retrieval call binding the contract method 0xde26c4a1.
   339  //
   340  // Solidity: function getL1GasUsed(bytes _data) view returns(uint256)
   341  func (_Gaspriceoracle *GaspriceoracleCaller) GetL1GasUsed(opts *bind.CallOpts, _data []byte) (*big.Int, error) {
   342  	var out []interface{}
   343  	err := _Gaspriceoracle.contract.Call(opts, &out, "getL1GasUsed", _data)
   344  
   345  	if err != nil {
   346  		return *new(*big.Int), err
   347  	}
   348  
   349  	out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
   350  
   351  	return out0, err
   352  
   353  }
   354  
   355  // GetL1GasUsed is a free data retrieval call binding the contract method 0xde26c4a1.
   356  //
   357  // Solidity: function getL1GasUsed(bytes _data) view returns(uint256)
   358  func (_Gaspriceoracle *GaspriceoracleSession) GetL1GasUsed(_data []byte) (*big.Int, error) {
   359  	return _Gaspriceoracle.Contract.GetL1GasUsed(&_Gaspriceoracle.CallOpts, _data)
   360  }
   361  
   362  // GetL1GasUsed is a free data retrieval call binding the contract method 0xde26c4a1.
   363  //
   364  // Solidity: function getL1GasUsed(bytes _data) view returns(uint256)
   365  func (_Gaspriceoracle *GaspriceoracleCallerSession) GetL1GasUsed(_data []byte) (*big.Int, error) {
   366  	return _Gaspriceoracle.Contract.GetL1GasUsed(&_Gaspriceoracle.CallOpts, _data)
   367  }
   368  
   369  // L1BaseFee is a free data retrieval call binding the contract method 0x519b4bd3.
   370  //
   371  // Solidity: function l1BaseFee() view returns(uint256)
   372  func (_Gaspriceoracle *GaspriceoracleCaller) L1BaseFee(opts *bind.CallOpts) (*big.Int, error) {
   373  	var out []interface{}
   374  	err := _Gaspriceoracle.contract.Call(opts, &out, "l1BaseFee")
   375  
   376  	if err != nil {
   377  		return *new(*big.Int), err
   378  	}
   379  
   380  	out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
   381  
   382  	return out0, err
   383  
   384  }
   385  
   386  // L1BaseFee is a free data retrieval call binding the contract method 0x519b4bd3.
   387  //
   388  // Solidity: function l1BaseFee() view returns(uint256)
   389  func (_Gaspriceoracle *GaspriceoracleSession) L1BaseFee() (*big.Int, error) {
   390  	return _Gaspriceoracle.Contract.L1BaseFee(&_Gaspriceoracle.CallOpts)
   391  }
   392  
   393  // L1BaseFee is a free data retrieval call binding the contract method 0x519b4bd3.
   394  //
   395  // Solidity: function l1BaseFee() view returns(uint256)
   396  func (_Gaspriceoracle *GaspriceoracleCallerSession) L1BaseFee() (*big.Int, error) {
   397  	return _Gaspriceoracle.Contract.L1BaseFee(&_Gaspriceoracle.CallOpts)
   398  }
   399  
   400  // Overhead is a free data retrieval call binding the contract method 0x0c18c162.
   401  //
   402  // Solidity: function overhead() view returns(uint256)
   403  func (_Gaspriceoracle *GaspriceoracleCaller) Overhead(opts *bind.CallOpts) (*big.Int, error) {
   404  	var out []interface{}
   405  	err := _Gaspriceoracle.contract.Call(opts, &out, "overhead")
   406  
   407  	if err != nil {
   408  		return *new(*big.Int), err
   409  	}
   410  
   411  	out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
   412  
   413  	return out0, err
   414  
   415  }
   416  
   417  // Overhead is a free data retrieval call binding the contract method 0x0c18c162.
   418  //
   419  // Solidity: function overhead() view returns(uint256)
   420  func (_Gaspriceoracle *GaspriceoracleSession) Overhead() (*big.Int, error) {
   421  	return _Gaspriceoracle.Contract.Overhead(&_Gaspriceoracle.CallOpts)
   422  }
   423  
   424  // Overhead is a free data retrieval call binding the contract method 0x0c18c162.
   425  //
   426  // Solidity: function overhead() view returns(uint256)
   427  func (_Gaspriceoracle *GaspriceoracleCallerSession) Overhead() (*big.Int, error) {
   428  	return _Gaspriceoracle.Contract.Overhead(&_Gaspriceoracle.CallOpts)
   429  }
   430  
   431  // Scalar is a free data retrieval call binding the contract method 0xf45e65d8.
   432  //
   433  // Solidity: function scalar() view returns(uint256)
   434  func (_Gaspriceoracle *GaspriceoracleCaller) Scalar(opts *bind.CallOpts) (*big.Int, error) {
   435  	var out []interface{}
   436  	err := _Gaspriceoracle.contract.Call(opts, &out, "scalar")
   437  
   438  	if err != nil {
   439  		return *new(*big.Int), err
   440  	}
   441  
   442  	out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
   443  
   444  	return out0, err
   445  
   446  }
   447  
   448  // Scalar is a free data retrieval call binding the contract method 0xf45e65d8.
   449  //
   450  // Solidity: function scalar() view returns(uint256)
   451  func (_Gaspriceoracle *GaspriceoracleSession) Scalar() (*big.Int, error) {
   452  	return _Gaspriceoracle.Contract.Scalar(&_Gaspriceoracle.CallOpts)
   453  }
   454  
   455  // Scalar is a free data retrieval call binding the contract method 0xf45e65d8.
   456  //
   457  // Solidity: function scalar() view returns(uint256)
   458  func (_Gaspriceoracle *GaspriceoracleCallerSession) Scalar() (*big.Int, error) {
   459  	return _Gaspriceoracle.Contract.Scalar(&_Gaspriceoracle.CallOpts)
   460  }
   461  
   462  // AdminCall is a paid mutator transaction binding the contract method 0xbf64a82d.
   463  //
   464  // Solidity: function adminCall(address target, bytes data) payable returns()
   465  func (_Gaspriceoracle *GaspriceoracleTransactor) AdminCall(opts *bind.TransactOpts, target common.Address, data []byte) (*types.Transaction, error) {
   466  	return _Gaspriceoracle.contract.Transact(opts, "adminCall", target, data)
   467  }
   468  
   469  // AdminCall is a paid mutator transaction binding the contract method 0xbf64a82d.
   470  //
   471  // Solidity: function adminCall(address target, bytes data) payable returns()
   472  func (_Gaspriceoracle *GaspriceoracleSession) AdminCall(target common.Address, data []byte) (*types.Transaction, error) {
   473  	return _Gaspriceoracle.Contract.AdminCall(&_Gaspriceoracle.TransactOpts, target, data)
   474  }
   475  
   476  // AdminCall is a paid mutator transaction binding the contract method 0xbf64a82d.
   477  //
   478  // Solidity: function adminCall(address target, bytes data) payable returns()
   479  func (_Gaspriceoracle *GaspriceoracleTransactorSession) AdminCall(target common.Address, data []byte) (*types.Transaction, error) {
   480  	return _Gaspriceoracle.Contract.AdminCall(&_Gaspriceoracle.TransactOpts, target, data)
   481  }
   482  
   483  // Init is a paid mutator transaction binding the contract method 0x4ddf47d4.
   484  //
   485  // Solidity: function init(bytes initPayload) returns(bytes4)
   486  func (_Gaspriceoracle *GaspriceoracleTransactor) Init(opts *bind.TransactOpts, initPayload []byte) (*types.Transaction, error) {
   487  	return _Gaspriceoracle.contract.Transact(opts, "init", initPayload)
   488  }
   489  
   490  // Init is a paid mutator transaction binding the contract method 0x4ddf47d4.
   491  //
   492  // Solidity: function init(bytes initPayload) returns(bytes4)
   493  func (_Gaspriceoracle *GaspriceoracleSession) Init(initPayload []byte) (*types.Transaction, error) {
   494  	return _Gaspriceoracle.Contract.Init(&_Gaspriceoracle.TransactOpts, initPayload)
   495  }
   496  
   497  // Init is a paid mutator transaction binding the contract method 0x4ddf47d4.
   498  //
   499  // Solidity: function init(bytes initPayload) returns(bytes4)
   500  func (_Gaspriceoracle *GaspriceoracleTransactorSession) Init(initPayload []byte) (*types.Transaction, error) {
   501  	return _Gaspriceoracle.Contract.Init(&_Gaspriceoracle.TransactOpts, initPayload)
   502  }
   503  
   504  // SetAdmin is a paid mutator transaction binding the contract method 0x704b6c02.
   505  //
   506  // Solidity: function setAdmin(address adminAddress) returns()
   507  func (_Gaspriceoracle *GaspriceoracleTransactor) SetAdmin(opts *bind.TransactOpts, adminAddress common.Address) (*types.Transaction, error) {
   508  	return _Gaspriceoracle.contract.Transact(opts, "setAdmin", adminAddress)
   509  }
   510  
   511  // SetAdmin is a paid mutator transaction binding the contract method 0x704b6c02.
   512  //
   513  // Solidity: function setAdmin(address adminAddress) returns()
   514  func (_Gaspriceoracle *GaspriceoracleSession) SetAdmin(adminAddress common.Address) (*types.Transaction, error) {
   515  	return _Gaspriceoracle.Contract.SetAdmin(&_Gaspriceoracle.TransactOpts, adminAddress)
   516  }
   517  
   518  // SetAdmin is a paid mutator transaction binding the contract method 0x704b6c02.
   519  //
   520  // Solidity: function setAdmin(address adminAddress) returns()
   521  func (_Gaspriceoracle *GaspriceoracleTransactorSession) SetAdmin(adminAddress common.Address) (*types.Transaction, error) {
   522  	return _Gaspriceoracle.Contract.SetAdmin(&_Gaspriceoracle.TransactOpts, adminAddress)
   523  }
   524  
   525  // SetDecimals is a paid mutator transaction binding the contract method 0x8c8885c8.
   526  //
   527  // Solidity: function setDecimals(uint256 _decimals) returns()
   528  func (_Gaspriceoracle *GaspriceoracleTransactor) SetDecimals(opts *bind.TransactOpts, _decimals *big.Int) (*types.Transaction, error) {
   529  	return _Gaspriceoracle.contract.Transact(opts, "setDecimals", _decimals)
   530  }
   531  
   532  // SetDecimals is a paid mutator transaction binding the contract method 0x8c8885c8.
   533  //
   534  // Solidity: function setDecimals(uint256 _decimals) returns()
   535  func (_Gaspriceoracle *GaspriceoracleSession) SetDecimals(_decimals *big.Int) (*types.Transaction, error) {
   536  	return _Gaspriceoracle.Contract.SetDecimals(&_Gaspriceoracle.TransactOpts, _decimals)
   537  }
   538  
   539  // SetDecimals is a paid mutator transaction binding the contract method 0x8c8885c8.
   540  //
   541  // Solidity: function setDecimals(uint256 _decimals) returns()
   542  func (_Gaspriceoracle *GaspriceoracleTransactorSession) SetDecimals(_decimals *big.Int) (*types.Transaction, error) {
   543  	return _Gaspriceoracle.Contract.SetDecimals(&_Gaspriceoracle.TransactOpts, _decimals)
   544  }
   545  
   546  // SetGasPrice is a paid mutator transaction binding the contract method 0xbf1fe420.
   547  //
   548  // Solidity: function setGasPrice(uint256 _gasPrice) returns()
   549  func (_Gaspriceoracle *GaspriceoracleTransactor) SetGasPrice(opts *bind.TransactOpts, _gasPrice *big.Int) (*types.Transaction, error) {
   550  	return _Gaspriceoracle.contract.Transact(opts, "setGasPrice", _gasPrice)
   551  }
   552  
   553  // SetGasPrice is a paid mutator transaction binding the contract method 0xbf1fe420.
   554  //
   555  // Solidity: function setGasPrice(uint256 _gasPrice) returns()
   556  func (_Gaspriceoracle *GaspriceoracleSession) SetGasPrice(_gasPrice *big.Int) (*types.Transaction, error) {
   557  	return _Gaspriceoracle.Contract.SetGasPrice(&_Gaspriceoracle.TransactOpts, _gasPrice)
   558  }
   559  
   560  // SetGasPrice is a paid mutator transaction binding the contract method 0xbf1fe420.
   561  //
   562  // Solidity: function setGasPrice(uint256 _gasPrice) returns()
   563  func (_Gaspriceoracle *GaspriceoracleTransactorSession) SetGasPrice(_gasPrice *big.Int) (*types.Transaction, error) {
   564  	return _Gaspriceoracle.Contract.SetGasPrice(&_Gaspriceoracle.TransactOpts, _gasPrice)
   565  }
   566  
   567  // SetL1BaseFee is a paid mutator transaction binding the contract method 0xbede39b5.
   568  //
   569  // Solidity: function setL1BaseFee(uint256 _baseFee) returns()
   570  func (_Gaspriceoracle *GaspriceoracleTransactor) SetL1BaseFee(opts *bind.TransactOpts, _baseFee *big.Int) (*types.Transaction, error) {
   571  	return _Gaspriceoracle.contract.Transact(opts, "setL1BaseFee", _baseFee)
   572  }
   573  
   574  // SetL1BaseFee is a paid mutator transaction binding the contract method 0xbede39b5.
   575  //
   576  // Solidity: function setL1BaseFee(uint256 _baseFee) returns()
   577  func (_Gaspriceoracle *GaspriceoracleSession) SetL1BaseFee(_baseFee *big.Int) (*types.Transaction, error) {
   578  	return _Gaspriceoracle.Contract.SetL1BaseFee(&_Gaspriceoracle.TransactOpts, _baseFee)
   579  }
   580  
   581  // SetL1BaseFee is a paid mutator transaction binding the contract method 0xbede39b5.
   582  //
   583  // Solidity: function setL1BaseFee(uint256 _baseFee) returns()
   584  func (_Gaspriceoracle *GaspriceoracleTransactorSession) SetL1BaseFee(_baseFee *big.Int) (*types.Transaction, error) {
   585  	return _Gaspriceoracle.Contract.SetL1BaseFee(&_Gaspriceoracle.TransactOpts, _baseFee)
   586  }
   587  
   588  // SetOverhead is a paid mutator transaction binding the contract method 0x3577afc5.
   589  //
   590  // Solidity: function setOverhead(uint256 _overhead) returns()
   591  func (_Gaspriceoracle *GaspriceoracleTransactor) SetOverhead(opts *bind.TransactOpts, _overhead *big.Int) (*types.Transaction, error) {
   592  	return _Gaspriceoracle.contract.Transact(opts, "setOverhead", _overhead)
   593  }
   594  
   595  // SetOverhead is a paid mutator transaction binding the contract method 0x3577afc5.
   596  //
   597  // Solidity: function setOverhead(uint256 _overhead) returns()
   598  func (_Gaspriceoracle *GaspriceoracleSession) SetOverhead(_overhead *big.Int) (*types.Transaction, error) {
   599  	return _Gaspriceoracle.Contract.SetOverhead(&_Gaspriceoracle.TransactOpts, _overhead)
   600  }
   601  
   602  // SetOverhead is a paid mutator transaction binding the contract method 0x3577afc5.
   603  //
   604  // Solidity: function setOverhead(uint256 _overhead) returns()
   605  func (_Gaspriceoracle *GaspriceoracleTransactorSession) SetOverhead(_overhead *big.Int) (*types.Transaction, error) {
   606  	return _Gaspriceoracle.Contract.SetOverhead(&_Gaspriceoracle.TransactOpts, _overhead)
   607  }
   608  
   609  // SetScalar is a paid mutator transaction binding the contract method 0x70465597.
   610  //
   611  // Solidity: function setScalar(uint256 _scalar) returns()
   612  func (_Gaspriceoracle *GaspriceoracleTransactor) SetScalar(opts *bind.TransactOpts, _scalar *big.Int) (*types.Transaction, error) {
   613  	return _Gaspriceoracle.contract.Transact(opts, "setScalar", _scalar)
   614  }
   615  
   616  // SetScalar is a paid mutator transaction binding the contract method 0x70465597.
   617  //
   618  // Solidity: function setScalar(uint256 _scalar) returns()
   619  func (_Gaspriceoracle *GaspriceoracleSession) SetScalar(_scalar *big.Int) (*types.Transaction, error) {
   620  	return _Gaspriceoracle.Contract.SetScalar(&_Gaspriceoracle.TransactOpts, _scalar)
   621  }
   622  
   623  // SetScalar is a paid mutator transaction binding the contract method 0x70465597.
   624  //
   625  // Solidity: function setScalar(uint256 _scalar) returns()
   626  func (_Gaspriceoracle *GaspriceoracleTransactorSession) SetScalar(_scalar *big.Int) (*types.Transaction, error) {
   627  	return _Gaspriceoracle.Contract.SetScalar(&_Gaspriceoracle.TransactOpts, _scalar)
   628  }
   629  
   630  // GaspriceoracleDecimalsUpdatedIterator is returned from FilterDecimalsUpdated and is used to iterate over the raw logs and unpacked data for DecimalsUpdated events raised by the Gaspriceoracle contract.
   631  type GaspriceoracleDecimalsUpdatedIterator struct {
   632  	Event *GaspriceoracleDecimalsUpdated // Event containing the contract specifics and raw log
   633  
   634  	contract *bind.BoundContract // Generic contract to use for unpacking event data
   635  	event    string              // Event name to use for unpacking event data
   636  
   637  	logs chan types.Log        // Log channel receiving the found contract events
   638  	sub  ethereum.Subscription // Subscription for errors, completion and termination
   639  	done bool                  // Whether the subscription completed delivering logs
   640  	fail error                 // Occurred error to stop iteration
   641  }
   642  
   643  // Next advances the iterator to the subsequent event, returning whether there
   644  // are any more events found. In case of a retrieval or parsing error, false is
   645  // returned and Error() can be queried for the exact failure.
   646  func (it *GaspriceoracleDecimalsUpdatedIterator) Next() bool {
   647  	// If the iterator failed, stop iterating
   648  	if it.fail != nil {
   649  		return false
   650  	}
   651  	// If the iterator completed, deliver directly whatever's available
   652  	if it.done {
   653  		select {
   654  		case log := <-it.logs:
   655  			it.Event = new(GaspriceoracleDecimalsUpdated)
   656  			if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
   657  				it.fail = err
   658  				return false
   659  			}
   660  			it.Event.Raw = log
   661  			return true
   662  
   663  		default:
   664  			return false
   665  		}
   666  	}
   667  	// Iterator still in progress, wait for either a data or an error event
   668  	select {
   669  	case log := <-it.logs:
   670  		it.Event = new(GaspriceoracleDecimalsUpdated)
   671  		if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
   672  			it.fail = err
   673  			return false
   674  		}
   675  		it.Event.Raw = log
   676  		return true
   677  
   678  	case err := <-it.sub.Err():
   679  		it.done = true
   680  		it.fail = err
   681  		return it.Next()
   682  	}
   683  }
   684  
   685  // Error returns any retrieval or parsing error occurred during filtering.
   686  func (it *GaspriceoracleDecimalsUpdatedIterator) Error() error {
   687  	return it.fail
   688  }
   689  
   690  // Close terminates the iteration process, releasing any pending underlying
   691  // resources.
   692  func (it *GaspriceoracleDecimalsUpdatedIterator) Close() error {
   693  	it.sub.Unsubscribe()
   694  	return nil
   695  }
   696  
   697  // GaspriceoracleDecimalsUpdated represents a DecimalsUpdated event raised by the Gaspriceoracle contract.
   698  type GaspriceoracleDecimalsUpdated struct {
   699  	Arg0 *big.Int
   700  	Raw  types.Log // Blockchain specific contextual infos
   701  }
   702  
   703  // FilterDecimalsUpdated is a free log retrieval operation binding the contract event 0xd68112a8707e326d08be3656b528c1bcc5bbbfc47f4177e2179b14d8640838c1.
   704  //
   705  // Solidity: event DecimalsUpdated(uint256 arg0)
   706  func (_Gaspriceoracle *GaspriceoracleFilterer) FilterDecimalsUpdated(opts *bind.FilterOpts) (*GaspriceoracleDecimalsUpdatedIterator, error) {
   707  
   708  	logs, sub, err := _Gaspriceoracle.contract.FilterLogs(opts, "DecimalsUpdated")
   709  	if err != nil {
   710  		return nil, err
   711  	}
   712  	return &GaspriceoracleDecimalsUpdatedIterator{contract: _Gaspriceoracle.contract, event: "DecimalsUpdated", logs: logs, sub: sub}, nil
   713  }
   714  
   715  // WatchDecimalsUpdated is a free log subscription operation binding the contract event 0xd68112a8707e326d08be3656b528c1bcc5bbbfc47f4177e2179b14d8640838c1.
   716  //
   717  // Solidity: event DecimalsUpdated(uint256 arg0)
   718  func (_Gaspriceoracle *GaspriceoracleFilterer) WatchDecimalsUpdated(opts *bind.WatchOpts, sink chan<- *GaspriceoracleDecimalsUpdated) (event.Subscription, error) {
   719  
   720  	logs, sub, err := _Gaspriceoracle.contract.WatchLogs(opts, "DecimalsUpdated")
   721  	if err != nil {
   722  		return nil, err
   723  	}
   724  	return event.NewSubscription(func(quit <-chan struct{}) error {
   725  		defer sub.Unsubscribe()
   726  		for {
   727  			select {
   728  			case log := <-logs:
   729  				// New log arrived, parse the event and forward to the user
   730  				event := new(GaspriceoracleDecimalsUpdated)
   731  				if err := _Gaspriceoracle.contract.UnpackLog(event, "DecimalsUpdated", log); err != nil {
   732  					return err
   733  				}
   734  				event.Raw = log
   735  
   736  				select {
   737  				case sink <- event:
   738  				case err := <-sub.Err():
   739  					return err
   740  				case <-quit:
   741  					return nil
   742  				}
   743  			case err := <-sub.Err():
   744  				return err
   745  			case <-quit:
   746  				return nil
   747  			}
   748  		}
   749  	}), nil
   750  }
   751  
   752  // ParseDecimalsUpdated is a log parse operation binding the contract event 0xd68112a8707e326d08be3656b528c1bcc5bbbfc47f4177e2179b14d8640838c1.
   753  //
   754  // Solidity: event DecimalsUpdated(uint256 arg0)
   755  func (_Gaspriceoracle *GaspriceoracleFilterer) ParseDecimalsUpdated(log types.Log) (*GaspriceoracleDecimalsUpdated, error) {
   756  	event := new(GaspriceoracleDecimalsUpdated)
   757  	if err := _Gaspriceoracle.contract.UnpackLog(event, "DecimalsUpdated", log); err != nil {
   758  		return nil, err
   759  	}
   760  	event.Raw = log
   761  	return event, nil
   762  }
   763  
   764  // GaspriceoracleGasPriceUpdatedIterator is returned from FilterGasPriceUpdated and is used to iterate over the raw logs and unpacked data for GasPriceUpdated events raised by the Gaspriceoracle contract.
   765  type GaspriceoracleGasPriceUpdatedIterator struct {
   766  	Event *GaspriceoracleGasPriceUpdated // Event containing the contract specifics and raw log
   767  
   768  	contract *bind.BoundContract // Generic contract to use for unpacking event data
   769  	event    string              // Event name to use for unpacking event data
   770  
   771  	logs chan types.Log        // Log channel receiving the found contract events
   772  	sub  ethereum.Subscription // Subscription for errors, completion and termination
   773  	done bool                  // Whether the subscription completed delivering logs
   774  	fail error                 // Occurred error to stop iteration
   775  }
   776  
   777  // Next advances the iterator to the subsequent event, returning whether there
   778  // are any more events found. In case of a retrieval or parsing error, false is
   779  // returned and Error() can be queried for the exact failure.
   780  func (it *GaspriceoracleGasPriceUpdatedIterator) Next() bool {
   781  	// If the iterator failed, stop iterating
   782  	if it.fail != nil {
   783  		return false
   784  	}
   785  	// If the iterator completed, deliver directly whatever's available
   786  	if it.done {
   787  		select {
   788  		case log := <-it.logs:
   789  			it.Event = new(GaspriceoracleGasPriceUpdated)
   790  			if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
   791  				it.fail = err
   792  				return false
   793  			}
   794  			it.Event.Raw = log
   795  			return true
   796  
   797  		default:
   798  			return false
   799  		}
   800  	}
   801  	// Iterator still in progress, wait for either a data or an error event
   802  	select {
   803  	case log := <-it.logs:
   804  		it.Event = new(GaspriceoracleGasPriceUpdated)
   805  		if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
   806  			it.fail = err
   807  			return false
   808  		}
   809  		it.Event.Raw = log
   810  		return true
   811  
   812  	case err := <-it.sub.Err():
   813  		it.done = true
   814  		it.fail = err
   815  		return it.Next()
   816  	}
   817  }
   818  
   819  // Error returns any retrieval or parsing error occurred during filtering.
   820  func (it *GaspriceoracleGasPriceUpdatedIterator) Error() error {
   821  	return it.fail
   822  }
   823  
   824  // Close terminates the iteration process, releasing any pending underlying
   825  // resources.
   826  func (it *GaspriceoracleGasPriceUpdatedIterator) Close() error {
   827  	it.sub.Unsubscribe()
   828  	return nil
   829  }
   830  
   831  // GaspriceoracleGasPriceUpdated represents a GasPriceUpdated event raised by the Gaspriceoracle contract.
   832  type GaspriceoracleGasPriceUpdated struct {
   833  	Arg0 *big.Int
   834  	Raw  types.Log // Blockchain specific contextual infos
   835  }
   836  
   837  // FilterGasPriceUpdated is a free log retrieval operation binding the contract event 0xfcdccc6074c6c42e4bd578aa9870c697dc976a270968452d2b8c8dc369fae396.
   838  //
   839  // Solidity: event GasPriceUpdated(uint256 arg0)
   840  func (_Gaspriceoracle *GaspriceoracleFilterer) FilterGasPriceUpdated(opts *bind.FilterOpts) (*GaspriceoracleGasPriceUpdatedIterator, error) {
   841  
   842  	logs, sub, err := _Gaspriceoracle.contract.FilterLogs(opts, "GasPriceUpdated")
   843  	if err != nil {
   844  		return nil, err
   845  	}
   846  	return &GaspriceoracleGasPriceUpdatedIterator{contract: _Gaspriceoracle.contract, event: "GasPriceUpdated", logs: logs, sub: sub}, nil
   847  }
   848  
   849  // WatchGasPriceUpdated is a free log subscription operation binding the contract event 0xfcdccc6074c6c42e4bd578aa9870c697dc976a270968452d2b8c8dc369fae396.
   850  //
   851  // Solidity: event GasPriceUpdated(uint256 arg0)
   852  func (_Gaspriceoracle *GaspriceoracleFilterer) WatchGasPriceUpdated(opts *bind.WatchOpts, sink chan<- *GaspriceoracleGasPriceUpdated) (event.Subscription, error) {
   853  
   854  	logs, sub, err := _Gaspriceoracle.contract.WatchLogs(opts, "GasPriceUpdated")
   855  	if err != nil {
   856  		return nil, err
   857  	}
   858  	return event.NewSubscription(func(quit <-chan struct{}) error {
   859  		defer sub.Unsubscribe()
   860  		for {
   861  			select {
   862  			case log := <-logs:
   863  				// New log arrived, parse the event and forward to the user
   864  				event := new(GaspriceoracleGasPriceUpdated)
   865  				if err := _Gaspriceoracle.contract.UnpackLog(event, "GasPriceUpdated", log); err != nil {
   866  					return err
   867  				}
   868  				event.Raw = log
   869  
   870  				select {
   871  				case sink <- event:
   872  				case err := <-sub.Err():
   873  					return err
   874  				case <-quit:
   875  					return nil
   876  				}
   877  			case err := <-sub.Err():
   878  				return err
   879  			case <-quit:
   880  				return nil
   881  			}
   882  		}
   883  	}), nil
   884  }
   885  
   886  // ParseGasPriceUpdated is a log parse operation binding the contract event 0xfcdccc6074c6c42e4bd578aa9870c697dc976a270968452d2b8c8dc369fae396.
   887  //
   888  // Solidity: event GasPriceUpdated(uint256 arg0)
   889  func (_Gaspriceoracle *GaspriceoracleFilterer) ParseGasPriceUpdated(log types.Log) (*GaspriceoracleGasPriceUpdated, error) {
   890  	event := new(GaspriceoracleGasPriceUpdated)
   891  	if err := _Gaspriceoracle.contract.UnpackLog(event, "GasPriceUpdated", log); err != nil {
   892  		return nil, err
   893  	}
   894  	event.Raw = log
   895  	return event, nil
   896  }
   897  
   898  // GaspriceoracleL1BaseFeeUpdatedIterator is returned from FilterL1BaseFeeUpdated and is used to iterate over the raw logs and unpacked data for L1BaseFeeUpdated events raised by the Gaspriceoracle contract.
   899  type GaspriceoracleL1BaseFeeUpdatedIterator struct {
   900  	Event *GaspriceoracleL1BaseFeeUpdated // Event containing the contract specifics and raw log
   901  
   902  	contract *bind.BoundContract // Generic contract to use for unpacking event data
   903  	event    string              // Event name to use for unpacking event data
   904  
   905  	logs chan types.Log        // Log channel receiving the found contract events
   906  	sub  ethereum.Subscription // Subscription for errors, completion and termination
   907  	done bool                  // Whether the subscription completed delivering logs
   908  	fail error                 // Occurred error to stop iteration
   909  }
   910  
   911  // Next advances the iterator to the subsequent event, returning whether there
   912  // are any more events found. In case of a retrieval or parsing error, false is
   913  // returned and Error() can be queried for the exact failure.
   914  func (it *GaspriceoracleL1BaseFeeUpdatedIterator) Next() bool {
   915  	// If the iterator failed, stop iterating
   916  	if it.fail != nil {
   917  		return false
   918  	}
   919  	// If the iterator completed, deliver directly whatever's available
   920  	if it.done {
   921  		select {
   922  		case log := <-it.logs:
   923  			it.Event = new(GaspriceoracleL1BaseFeeUpdated)
   924  			if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
   925  				it.fail = err
   926  				return false
   927  			}
   928  			it.Event.Raw = log
   929  			return true
   930  
   931  		default:
   932  			return false
   933  		}
   934  	}
   935  	// Iterator still in progress, wait for either a data or an error event
   936  	select {
   937  	case log := <-it.logs:
   938  		it.Event = new(GaspriceoracleL1BaseFeeUpdated)
   939  		if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
   940  			it.fail = err
   941  			return false
   942  		}
   943  		it.Event.Raw = log
   944  		return true
   945  
   946  	case err := <-it.sub.Err():
   947  		it.done = true
   948  		it.fail = err
   949  		return it.Next()
   950  	}
   951  }
   952  
   953  // Error returns any retrieval or parsing error occurred during filtering.
   954  func (it *GaspriceoracleL1BaseFeeUpdatedIterator) Error() error {
   955  	return it.fail
   956  }
   957  
   958  // Close terminates the iteration process, releasing any pending underlying
   959  // resources.
   960  func (it *GaspriceoracleL1BaseFeeUpdatedIterator) Close() error {
   961  	it.sub.Unsubscribe()
   962  	return nil
   963  }
   964  
   965  // GaspriceoracleL1BaseFeeUpdated represents a L1BaseFeeUpdated event raised by the Gaspriceoracle contract.
   966  type GaspriceoracleL1BaseFeeUpdated struct {
   967  	Arg0 *big.Int
   968  	Raw  types.Log // Blockchain specific contextual infos
   969  }
   970  
   971  // FilterL1BaseFeeUpdated is a free log retrieval operation binding the contract event 0x351fb23757bb5ea0546c85b7996ddd7155f96b939ebaa5ff7bc49c75f27f2c44.
   972  //
   973  // Solidity: event L1BaseFeeUpdated(uint256 arg0)
   974  func (_Gaspriceoracle *GaspriceoracleFilterer) FilterL1BaseFeeUpdated(opts *bind.FilterOpts) (*GaspriceoracleL1BaseFeeUpdatedIterator, error) {
   975  
   976  	logs, sub, err := _Gaspriceoracle.contract.FilterLogs(opts, "L1BaseFeeUpdated")
   977  	if err != nil {
   978  		return nil, err
   979  	}
   980  	return &GaspriceoracleL1BaseFeeUpdatedIterator{contract: _Gaspriceoracle.contract, event: "L1BaseFeeUpdated", logs: logs, sub: sub}, nil
   981  }
   982  
   983  // WatchL1BaseFeeUpdated is a free log subscription operation binding the contract event 0x351fb23757bb5ea0546c85b7996ddd7155f96b939ebaa5ff7bc49c75f27f2c44.
   984  //
   985  // Solidity: event L1BaseFeeUpdated(uint256 arg0)
   986  func (_Gaspriceoracle *GaspriceoracleFilterer) WatchL1BaseFeeUpdated(opts *bind.WatchOpts, sink chan<- *GaspriceoracleL1BaseFeeUpdated) (event.Subscription, error) {
   987  
   988  	logs, sub, err := _Gaspriceoracle.contract.WatchLogs(opts, "L1BaseFeeUpdated")
   989  	if err != nil {
   990  		return nil, err
   991  	}
   992  	return event.NewSubscription(func(quit <-chan struct{}) error {
   993  		defer sub.Unsubscribe()
   994  		for {
   995  			select {
   996  			case log := <-logs:
   997  				// New log arrived, parse the event and forward to the user
   998  				event := new(GaspriceoracleL1BaseFeeUpdated)
   999  				if err := _Gaspriceoracle.contract.UnpackLog(event, "L1BaseFeeUpdated", log); err != nil {
  1000  					return err
  1001  				}
  1002  				event.Raw = log
  1003  
  1004  				select {
  1005  				case sink <- event:
  1006  				case err := <-sub.Err():
  1007  					return err
  1008  				case <-quit:
  1009  					return nil
  1010  				}
  1011  			case err := <-sub.Err():
  1012  				return err
  1013  			case <-quit:
  1014  				return nil
  1015  			}
  1016  		}
  1017  	}), nil
  1018  }
  1019  
  1020  // ParseL1BaseFeeUpdated is a log parse operation binding the contract event 0x351fb23757bb5ea0546c85b7996ddd7155f96b939ebaa5ff7bc49c75f27f2c44.
  1021  //
  1022  // Solidity: event L1BaseFeeUpdated(uint256 arg0)
  1023  func (_Gaspriceoracle *GaspriceoracleFilterer) ParseL1BaseFeeUpdated(log types.Log) (*GaspriceoracleL1BaseFeeUpdated, error) {
  1024  	event := new(GaspriceoracleL1BaseFeeUpdated)
  1025  	if err := _Gaspriceoracle.contract.UnpackLog(event, "L1BaseFeeUpdated", log); err != nil {
  1026  		return nil, err
  1027  	}
  1028  	event.Raw = log
  1029  	return event, nil
  1030  }
  1031  
  1032  // GaspriceoracleOverheadUpdatedIterator is returned from FilterOverheadUpdated and is used to iterate over the raw logs and unpacked data for OverheadUpdated events raised by the Gaspriceoracle contract.
  1033  type GaspriceoracleOverheadUpdatedIterator struct {
  1034  	Event *GaspriceoracleOverheadUpdated // Event containing the contract specifics and raw log
  1035  
  1036  	contract *bind.BoundContract // Generic contract to use for unpacking event data
  1037  	event    string              // Event name to use for unpacking event data
  1038  
  1039  	logs chan types.Log        // Log channel receiving the found contract events
  1040  	sub  ethereum.Subscription // Subscription for errors, completion and termination
  1041  	done bool                  // Whether the subscription completed delivering logs
  1042  	fail error                 // Occurred error to stop iteration
  1043  }
  1044  
  1045  // Next advances the iterator to the subsequent event, returning whether there
  1046  // are any more events found. In case of a retrieval or parsing error, false is
  1047  // returned and Error() can be queried for the exact failure.
  1048  func (it *GaspriceoracleOverheadUpdatedIterator) Next() bool {
  1049  	// If the iterator failed, stop iterating
  1050  	if it.fail != nil {
  1051  		return false
  1052  	}
  1053  	// If the iterator completed, deliver directly whatever's available
  1054  	if it.done {
  1055  		select {
  1056  		case log := <-it.logs:
  1057  			it.Event = new(GaspriceoracleOverheadUpdated)
  1058  			if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1059  				it.fail = err
  1060  				return false
  1061  			}
  1062  			it.Event.Raw = log
  1063  			return true
  1064  
  1065  		default:
  1066  			return false
  1067  		}
  1068  	}
  1069  	// Iterator still in progress, wait for either a data or an error event
  1070  	select {
  1071  	case log := <-it.logs:
  1072  		it.Event = new(GaspriceoracleOverheadUpdated)
  1073  		if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1074  			it.fail = err
  1075  			return false
  1076  		}
  1077  		it.Event.Raw = log
  1078  		return true
  1079  
  1080  	case err := <-it.sub.Err():
  1081  		it.done = true
  1082  		it.fail = err
  1083  		return it.Next()
  1084  	}
  1085  }
  1086  
  1087  // Error returns any retrieval or parsing error occurred during filtering.
  1088  func (it *GaspriceoracleOverheadUpdatedIterator) Error() error {
  1089  	return it.fail
  1090  }
  1091  
  1092  // Close terminates the iteration process, releasing any pending underlying
  1093  // resources.
  1094  func (it *GaspriceoracleOverheadUpdatedIterator) Close() error {
  1095  	it.sub.Unsubscribe()
  1096  	return nil
  1097  }
  1098  
  1099  // GaspriceoracleOverheadUpdated represents a OverheadUpdated event raised by the Gaspriceoracle contract.
  1100  type GaspriceoracleOverheadUpdated struct {
  1101  	Arg0 *big.Int
  1102  	Raw  types.Log // Blockchain specific contextual infos
  1103  }
  1104  
  1105  // FilterOverheadUpdated is a free log retrieval operation binding the contract event 0x32740b35c0ea213650f60d44366b4fb211c9033b50714e4a1d34e65d5beb9bb4.
  1106  //
  1107  // Solidity: event OverheadUpdated(uint256 arg0)
  1108  func (_Gaspriceoracle *GaspriceoracleFilterer) FilterOverheadUpdated(opts *bind.FilterOpts) (*GaspriceoracleOverheadUpdatedIterator, error) {
  1109  
  1110  	logs, sub, err := _Gaspriceoracle.contract.FilterLogs(opts, "OverheadUpdated")
  1111  	if err != nil {
  1112  		return nil, err
  1113  	}
  1114  	return &GaspriceoracleOverheadUpdatedIterator{contract: _Gaspriceoracle.contract, event: "OverheadUpdated", logs: logs, sub: sub}, nil
  1115  }
  1116  
  1117  // WatchOverheadUpdated is a free log subscription operation binding the contract event 0x32740b35c0ea213650f60d44366b4fb211c9033b50714e4a1d34e65d5beb9bb4.
  1118  //
  1119  // Solidity: event OverheadUpdated(uint256 arg0)
  1120  func (_Gaspriceoracle *GaspriceoracleFilterer) WatchOverheadUpdated(opts *bind.WatchOpts, sink chan<- *GaspriceoracleOverheadUpdated) (event.Subscription, error) {
  1121  
  1122  	logs, sub, err := _Gaspriceoracle.contract.WatchLogs(opts, "OverheadUpdated")
  1123  	if err != nil {
  1124  		return nil, err
  1125  	}
  1126  	return event.NewSubscription(func(quit <-chan struct{}) error {
  1127  		defer sub.Unsubscribe()
  1128  		for {
  1129  			select {
  1130  			case log := <-logs:
  1131  				// New log arrived, parse the event and forward to the user
  1132  				event := new(GaspriceoracleOverheadUpdated)
  1133  				if err := _Gaspriceoracle.contract.UnpackLog(event, "OverheadUpdated", log); err != nil {
  1134  					return err
  1135  				}
  1136  				event.Raw = log
  1137  
  1138  				select {
  1139  				case sink <- event:
  1140  				case err := <-sub.Err():
  1141  					return err
  1142  				case <-quit:
  1143  					return nil
  1144  				}
  1145  			case err := <-sub.Err():
  1146  				return err
  1147  			case <-quit:
  1148  				return nil
  1149  			}
  1150  		}
  1151  	}), nil
  1152  }
  1153  
  1154  // ParseOverheadUpdated is a log parse operation binding the contract event 0x32740b35c0ea213650f60d44366b4fb211c9033b50714e4a1d34e65d5beb9bb4.
  1155  //
  1156  // Solidity: event OverheadUpdated(uint256 arg0)
  1157  func (_Gaspriceoracle *GaspriceoracleFilterer) ParseOverheadUpdated(log types.Log) (*GaspriceoracleOverheadUpdated, error) {
  1158  	event := new(GaspriceoracleOverheadUpdated)
  1159  	if err := _Gaspriceoracle.contract.UnpackLog(event, "OverheadUpdated", log); err != nil {
  1160  		return nil, err
  1161  	}
  1162  	event.Raw = log
  1163  	return event, nil
  1164  }
  1165  
  1166  // GaspriceoracleScalarUpdatedIterator is returned from FilterScalarUpdated and is used to iterate over the raw logs and unpacked data for ScalarUpdated events raised by the Gaspriceoracle contract.
  1167  type GaspriceoracleScalarUpdatedIterator struct {
  1168  	Event *GaspriceoracleScalarUpdated // Event containing the contract specifics and raw log
  1169  
  1170  	contract *bind.BoundContract // Generic contract to use for unpacking event data
  1171  	event    string              // Event name to use for unpacking event data
  1172  
  1173  	logs chan types.Log        // Log channel receiving the found contract events
  1174  	sub  ethereum.Subscription // Subscription for errors, completion and termination
  1175  	done bool                  // Whether the subscription completed delivering logs
  1176  	fail error                 // Occurred error to stop iteration
  1177  }
  1178  
  1179  // Next advances the iterator to the subsequent event, returning whether there
  1180  // are any more events found. In case of a retrieval or parsing error, false is
  1181  // returned and Error() can be queried for the exact failure.
  1182  func (it *GaspriceoracleScalarUpdatedIterator) Next() bool {
  1183  	// If the iterator failed, stop iterating
  1184  	if it.fail != nil {
  1185  		return false
  1186  	}
  1187  	// If the iterator completed, deliver directly whatever's available
  1188  	if it.done {
  1189  		select {
  1190  		case log := <-it.logs:
  1191  			it.Event = new(GaspriceoracleScalarUpdated)
  1192  			if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1193  				it.fail = err
  1194  				return false
  1195  			}
  1196  			it.Event.Raw = log
  1197  			return true
  1198  
  1199  		default:
  1200  			return false
  1201  		}
  1202  	}
  1203  	// Iterator still in progress, wait for either a data or an error event
  1204  	select {
  1205  	case log := <-it.logs:
  1206  		it.Event = new(GaspriceoracleScalarUpdated)
  1207  		if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1208  			it.fail = err
  1209  			return false
  1210  		}
  1211  		it.Event.Raw = log
  1212  		return true
  1213  
  1214  	case err := <-it.sub.Err():
  1215  		it.done = true
  1216  		it.fail = err
  1217  		return it.Next()
  1218  	}
  1219  }
  1220  
  1221  // Error returns any retrieval or parsing error occurred during filtering.
  1222  func (it *GaspriceoracleScalarUpdatedIterator) Error() error {
  1223  	return it.fail
  1224  }
  1225  
  1226  // Close terminates the iteration process, releasing any pending underlying
  1227  // resources.
  1228  func (it *GaspriceoracleScalarUpdatedIterator) Close() error {
  1229  	it.sub.Unsubscribe()
  1230  	return nil
  1231  }
  1232  
  1233  // GaspriceoracleScalarUpdated represents a ScalarUpdated event raised by the Gaspriceoracle contract.
  1234  type GaspriceoracleScalarUpdated struct {
  1235  	Arg0 *big.Int
  1236  	Raw  types.Log // Blockchain specific contextual infos
  1237  }
  1238  
  1239  // FilterScalarUpdated is a free log retrieval operation binding the contract event 0x3336cd9708eaf2769a0f0dc0679f30e80f15dcd88d1921b5a16858e8b85c591a.
  1240  //
  1241  // Solidity: event ScalarUpdated(uint256 arg0)
  1242  func (_Gaspriceoracle *GaspriceoracleFilterer) FilterScalarUpdated(opts *bind.FilterOpts) (*GaspriceoracleScalarUpdatedIterator, error) {
  1243  
  1244  	logs, sub, err := _Gaspriceoracle.contract.FilterLogs(opts, "ScalarUpdated")
  1245  	if err != nil {
  1246  		return nil, err
  1247  	}
  1248  	return &GaspriceoracleScalarUpdatedIterator{contract: _Gaspriceoracle.contract, event: "ScalarUpdated", logs: logs, sub: sub}, nil
  1249  }
  1250  
  1251  // WatchScalarUpdated is a free log subscription operation binding the contract event 0x3336cd9708eaf2769a0f0dc0679f30e80f15dcd88d1921b5a16858e8b85c591a.
  1252  //
  1253  // Solidity: event ScalarUpdated(uint256 arg0)
  1254  func (_Gaspriceoracle *GaspriceoracleFilterer) WatchScalarUpdated(opts *bind.WatchOpts, sink chan<- *GaspriceoracleScalarUpdated) (event.Subscription, error) {
  1255  
  1256  	logs, sub, err := _Gaspriceoracle.contract.WatchLogs(opts, "ScalarUpdated")
  1257  	if err != nil {
  1258  		return nil, err
  1259  	}
  1260  	return event.NewSubscription(func(quit <-chan struct{}) error {
  1261  		defer sub.Unsubscribe()
  1262  		for {
  1263  			select {
  1264  			case log := <-logs:
  1265  				// New log arrived, parse the event and forward to the user
  1266  				event := new(GaspriceoracleScalarUpdated)
  1267  				if err := _Gaspriceoracle.contract.UnpackLog(event, "ScalarUpdated", log); err != nil {
  1268  					return err
  1269  				}
  1270  				event.Raw = log
  1271  
  1272  				select {
  1273  				case sink <- event:
  1274  				case err := <-sub.Err():
  1275  					return err
  1276  				case <-quit:
  1277  					return nil
  1278  				}
  1279  			case err := <-sub.Err():
  1280  				return err
  1281  			case <-quit:
  1282  				return nil
  1283  			}
  1284  		}
  1285  	}), nil
  1286  }
  1287  
  1288  // ParseScalarUpdated is a log parse operation binding the contract event 0x3336cd9708eaf2769a0f0dc0679f30e80f15dcd88d1921b5a16858e8b85c591a.
  1289  //
  1290  // Solidity: event ScalarUpdated(uint256 arg0)
  1291  func (_Gaspriceoracle *GaspriceoracleFilterer) ParseScalarUpdated(log types.Log) (*GaspriceoracleScalarUpdated, error) {
  1292  	event := new(GaspriceoracleScalarUpdated)
  1293  	if err := _Gaspriceoracle.contract.UnpackLog(event, "ScalarUpdated", log); err != nil {
  1294  		return nil, err
  1295  	}
  1296  	event.Raw = log
  1297  	return event, nil
  1298  }