ethereum

package
v1.35.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OptimismGasABI = OptimismGasMetaData.ABI

OptimismGasABI is the input ABI used to generate the binding from. Deprecated: Use OptimismGasMetaData.ABI instead.

View Source
var OptimismGasMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"}],\"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\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"ScalarUpdated\",\"type\":\"event\"},{\"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\":[{\"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\":[],\"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\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"scalar\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"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\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

OptimismGasMetaData contains all meta data concerning the OptimismGas contract.

Functions

This section is empty.

Types

type OptimismGas added in v1.7.0

type OptimismGas struct {
	OptimismGasCaller     // Read-only binding to the contract
	OptimismGasTransactor // Write-only binding to the contract
	OptimismGasFilterer   // Log filterer for contract events
}

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

func NewOptimismGas added in v1.7.0

func NewOptimismGas(address common.Address, backend bind.ContractBackend) (*OptimismGas, error)

NewOptimismGas creates a new instance of OptimismGas, bound to a specific deployed contract.

type OptimismGasCaller added in v1.7.0

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

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

func NewOptimismGasCaller added in v1.7.0

func NewOptimismGasCaller(address common.Address, caller bind.ContractCaller) (*OptimismGasCaller, error)

NewOptimismGasCaller creates a new read-only instance of OptimismGas, bound to a specific deployed contract.

func (*OptimismGasCaller) Decimals added in v1.7.0

func (_OptimismGas *OptimismGasCaller) Decimals(opts *bind.CallOpts) (*big.Int, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint256)

func (*OptimismGasCaller) GasPrice added in v1.7.0

func (_OptimismGas *OptimismGasCaller) GasPrice(opts *bind.CallOpts) (*big.Int, error)

GasPrice is a free data retrieval call binding the contract method 0xfe173b97.

Solidity: function gasPrice() view returns(uint256)

func (*OptimismGasCaller) GetL1Fee added in v1.7.0

func (_OptimismGas *OptimismGasCaller) GetL1Fee(opts *bind.CallOpts, _data []byte) (*big.Int, error)

GetL1Fee is a free data retrieval call binding the contract method 0x49948e0e.

Solidity: function getL1Fee(bytes _data) view returns(uint256)

func (*OptimismGasCaller) GetL1GasUsed added in v1.7.0

func (_OptimismGas *OptimismGasCaller) GetL1GasUsed(opts *bind.CallOpts, _data []byte) (*big.Int, error)

GetL1GasUsed is a free data retrieval call binding the contract method 0xde26c4a1.

Solidity: function getL1GasUsed(bytes _data) view returns(uint256)

func (*OptimismGasCaller) L1BaseFee added in v1.7.0

func (_OptimismGas *OptimismGasCaller) L1BaseFee(opts *bind.CallOpts) (*big.Int, error)

L1BaseFee is a free data retrieval call binding the contract method 0x519b4bd3.

Solidity: function l1BaseFee() view returns(uint256)

func (*OptimismGasCaller) Overhead added in v1.7.0

func (_OptimismGas *OptimismGasCaller) Overhead(opts *bind.CallOpts) (*big.Int, error)

Overhead is a free data retrieval call binding the contract method 0x0c18c162.

Solidity: function overhead() view returns(uint256)

func (*OptimismGasCaller) Owner added in v1.7.0

func (_OptimismGas *OptimismGasCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*OptimismGasCaller) Scalar added in v1.7.0

func (_OptimismGas *OptimismGasCaller) Scalar(opts *bind.CallOpts) (*big.Int, error)

Scalar is a free data retrieval call binding the contract method 0xf45e65d8.

Solidity: function scalar() view returns(uint256)

type OptimismGasCallerRaw added in v1.7.0

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

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

func (*OptimismGasCallerRaw) Call added in v1.7.0

func (_OptimismGas *OptimismGasCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type OptimismGasCallerSession added in v1.7.0

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

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

func (*OptimismGasCallerSession) Decimals added in v1.7.0

func (_OptimismGas *OptimismGasCallerSession) Decimals() (*big.Int, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint256)

func (*OptimismGasCallerSession) GasPrice added in v1.7.0

func (_OptimismGas *OptimismGasCallerSession) GasPrice() (*big.Int, error)

GasPrice is a free data retrieval call binding the contract method 0xfe173b97.

Solidity: function gasPrice() view returns(uint256)

func (*OptimismGasCallerSession) GetL1Fee added in v1.7.0

func (_OptimismGas *OptimismGasCallerSession) GetL1Fee(_data []byte) (*big.Int, error)

GetL1Fee is a free data retrieval call binding the contract method 0x49948e0e.

Solidity: function getL1Fee(bytes _data) view returns(uint256)

func (*OptimismGasCallerSession) GetL1GasUsed added in v1.7.0

func (_OptimismGas *OptimismGasCallerSession) GetL1GasUsed(_data []byte) (*big.Int, error)

GetL1GasUsed is a free data retrieval call binding the contract method 0xde26c4a1.

Solidity: function getL1GasUsed(bytes _data) view returns(uint256)

func (*OptimismGasCallerSession) L1BaseFee added in v1.7.0

func (_OptimismGas *OptimismGasCallerSession) L1BaseFee() (*big.Int, error)

L1BaseFee is a free data retrieval call binding the contract method 0x519b4bd3.

Solidity: function l1BaseFee() view returns(uint256)

func (*OptimismGasCallerSession) Overhead added in v1.7.0

func (_OptimismGas *OptimismGasCallerSession) Overhead() (*big.Int, error)

Overhead is a free data retrieval call binding the contract method 0x0c18c162.

Solidity: function overhead() view returns(uint256)

func (*OptimismGasCallerSession) Owner added in v1.7.0

func (_OptimismGas *OptimismGasCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*OptimismGasCallerSession) Scalar added in v1.7.0

func (_OptimismGas *OptimismGasCallerSession) Scalar() (*big.Int, error)

Scalar is a free data retrieval call binding the contract method 0xf45e65d8.

Solidity: function scalar() view returns(uint256)

type OptimismGasDecimalsUpdated added in v1.7.0

type OptimismGasDecimalsUpdated struct {
	Arg0 *big.Int
	Raw  types.Log // Blockchain specific contextual infos
}

OptimismGasDecimalsUpdated represents a DecimalsUpdated event raised by the OptimismGas contract.

type OptimismGasDecimalsUpdatedIterator added in v1.7.0

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

OptimismGasDecimalsUpdatedIterator is returned from FilterDecimalsUpdated and is used to iterate over the raw logs and unpacked data for DecimalsUpdated events raised by the OptimismGas contract.

func (*OptimismGasDecimalsUpdatedIterator) Close added in v1.7.0

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

func (*OptimismGasDecimalsUpdatedIterator) Error added in v1.7.0

Error returns any retrieval or parsing error occurred during filtering.

func (*OptimismGasDecimalsUpdatedIterator) Next added in v1.7.0

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type OptimismGasFilterer added in v1.7.0

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

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

func NewOptimismGasFilterer added in v1.7.0

func NewOptimismGasFilterer(address common.Address, filterer bind.ContractFilterer) (*OptimismGasFilterer, error)

NewOptimismGasFilterer creates a new log filterer instance of OptimismGas, bound to a specific deployed contract.

func (*OptimismGasFilterer) FilterDecimalsUpdated added in v1.7.0

func (_OptimismGas *OptimismGasFilterer) FilterDecimalsUpdated(opts *bind.FilterOpts) (*OptimismGasDecimalsUpdatedIterator, error)

FilterDecimalsUpdated is a free log retrieval operation binding the contract event 0xd68112a8707e326d08be3656b528c1bcc5bbbfc47f4177e2179b14d8640838c1.

Solidity: event DecimalsUpdated(uint256 arg0)

func (*OptimismGasFilterer) FilterGasPriceUpdated added in v1.7.0

func (_OptimismGas *OptimismGasFilterer) FilterGasPriceUpdated(opts *bind.FilterOpts) (*OptimismGasGasPriceUpdatedIterator, error)

FilterGasPriceUpdated is a free log retrieval operation binding the contract event 0xfcdccc6074c6c42e4bd578aa9870c697dc976a270968452d2b8c8dc369fae396.

Solidity: event GasPriceUpdated(uint256 arg0)

func (*OptimismGasFilterer) FilterL1BaseFeeUpdated added in v1.7.0

func (_OptimismGas *OptimismGasFilterer) FilterL1BaseFeeUpdated(opts *bind.FilterOpts) (*OptimismGasL1BaseFeeUpdatedIterator, error)

FilterL1BaseFeeUpdated is a free log retrieval operation binding the contract event 0x351fb23757bb5ea0546c85b7996ddd7155f96b939ebaa5ff7bc49c75f27f2c44.

Solidity: event L1BaseFeeUpdated(uint256 arg0)

func (*OptimismGasFilterer) FilterOverheadUpdated added in v1.7.0

func (_OptimismGas *OptimismGasFilterer) FilterOverheadUpdated(opts *bind.FilterOpts) (*OptimismGasOverheadUpdatedIterator, error)

FilterOverheadUpdated is a free log retrieval operation binding the contract event 0x32740b35c0ea213650f60d44366b4fb211c9033b50714e4a1d34e65d5beb9bb4.

Solidity: event OverheadUpdated(uint256 arg0)

func (*OptimismGasFilterer) FilterOwnershipTransferred added in v1.7.0

func (_OptimismGas *OptimismGasFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*OptimismGasOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*OptimismGasFilterer) FilterScalarUpdated added in v1.7.0

func (_OptimismGas *OptimismGasFilterer) FilterScalarUpdated(opts *bind.FilterOpts) (*OptimismGasScalarUpdatedIterator, error)

FilterScalarUpdated is a free log retrieval operation binding the contract event 0x3336cd9708eaf2769a0f0dc0679f30e80f15dcd88d1921b5a16858e8b85c591a.

Solidity: event ScalarUpdated(uint256 arg0)

func (*OptimismGasFilterer) ParseDecimalsUpdated added in v1.7.0

func (_OptimismGas *OptimismGasFilterer) ParseDecimalsUpdated(log types.Log) (*OptimismGasDecimalsUpdated, error)

ParseDecimalsUpdated is a log parse operation binding the contract event 0xd68112a8707e326d08be3656b528c1bcc5bbbfc47f4177e2179b14d8640838c1.

Solidity: event DecimalsUpdated(uint256 arg0)

func (*OptimismGasFilterer) ParseGasPriceUpdated added in v1.7.0

func (_OptimismGas *OptimismGasFilterer) ParseGasPriceUpdated(log types.Log) (*OptimismGasGasPriceUpdated, error)

ParseGasPriceUpdated is a log parse operation binding the contract event 0xfcdccc6074c6c42e4bd578aa9870c697dc976a270968452d2b8c8dc369fae396.

Solidity: event GasPriceUpdated(uint256 arg0)

func (*OptimismGasFilterer) ParseL1BaseFeeUpdated added in v1.7.0

func (_OptimismGas *OptimismGasFilterer) ParseL1BaseFeeUpdated(log types.Log) (*OptimismGasL1BaseFeeUpdated, error)

ParseL1BaseFeeUpdated is a log parse operation binding the contract event 0x351fb23757bb5ea0546c85b7996ddd7155f96b939ebaa5ff7bc49c75f27f2c44.

Solidity: event L1BaseFeeUpdated(uint256 arg0)

func (*OptimismGasFilterer) ParseOverheadUpdated added in v1.7.0

func (_OptimismGas *OptimismGasFilterer) ParseOverheadUpdated(log types.Log) (*OptimismGasOverheadUpdated, error)

ParseOverheadUpdated is a log parse operation binding the contract event 0x32740b35c0ea213650f60d44366b4fb211c9033b50714e4a1d34e65d5beb9bb4.

Solidity: event OverheadUpdated(uint256 arg0)

func (*OptimismGasFilterer) ParseOwnershipTransferred added in v1.7.0

func (_OptimismGas *OptimismGasFilterer) ParseOwnershipTransferred(log types.Log) (*OptimismGasOwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*OptimismGasFilterer) ParseScalarUpdated added in v1.7.0

func (_OptimismGas *OptimismGasFilterer) ParseScalarUpdated(log types.Log) (*OptimismGasScalarUpdated, error)

ParseScalarUpdated is a log parse operation binding the contract event 0x3336cd9708eaf2769a0f0dc0679f30e80f15dcd88d1921b5a16858e8b85c591a.

Solidity: event ScalarUpdated(uint256 arg0)

func (*OptimismGasFilterer) WatchDecimalsUpdated added in v1.7.0

func (_OptimismGas *OptimismGasFilterer) WatchDecimalsUpdated(opts *bind.WatchOpts, sink chan<- *OptimismGasDecimalsUpdated) (event.Subscription, error)

WatchDecimalsUpdated is a free log subscription operation binding the contract event 0xd68112a8707e326d08be3656b528c1bcc5bbbfc47f4177e2179b14d8640838c1.

Solidity: event DecimalsUpdated(uint256 arg0)

func (*OptimismGasFilterer) WatchGasPriceUpdated added in v1.7.0

func (_OptimismGas *OptimismGasFilterer) WatchGasPriceUpdated(opts *bind.WatchOpts, sink chan<- *OptimismGasGasPriceUpdated) (event.Subscription, error)

WatchGasPriceUpdated is a free log subscription operation binding the contract event 0xfcdccc6074c6c42e4bd578aa9870c697dc976a270968452d2b8c8dc369fae396.

Solidity: event GasPriceUpdated(uint256 arg0)

func (*OptimismGasFilterer) WatchL1BaseFeeUpdated added in v1.7.0

func (_OptimismGas *OptimismGasFilterer) WatchL1BaseFeeUpdated(opts *bind.WatchOpts, sink chan<- *OptimismGasL1BaseFeeUpdated) (event.Subscription, error)

WatchL1BaseFeeUpdated is a free log subscription operation binding the contract event 0x351fb23757bb5ea0546c85b7996ddd7155f96b939ebaa5ff7bc49c75f27f2c44.

Solidity: event L1BaseFeeUpdated(uint256 arg0)

func (*OptimismGasFilterer) WatchOverheadUpdated added in v1.7.0

func (_OptimismGas *OptimismGasFilterer) WatchOverheadUpdated(opts *bind.WatchOpts, sink chan<- *OptimismGasOverheadUpdated) (event.Subscription, error)

WatchOverheadUpdated is a free log subscription operation binding the contract event 0x32740b35c0ea213650f60d44366b4fb211c9033b50714e4a1d34e65d5beb9bb4.

Solidity: event OverheadUpdated(uint256 arg0)

func (*OptimismGasFilterer) WatchOwnershipTransferred added in v1.7.0

func (_OptimismGas *OptimismGasFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OptimismGasOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*OptimismGasFilterer) WatchScalarUpdated added in v1.7.0

func (_OptimismGas *OptimismGasFilterer) WatchScalarUpdated(opts *bind.WatchOpts, sink chan<- *OptimismGasScalarUpdated) (event.Subscription, error)

WatchScalarUpdated is a free log subscription operation binding the contract event 0x3336cd9708eaf2769a0f0dc0679f30e80f15dcd88d1921b5a16858e8b85c591a.

Solidity: event ScalarUpdated(uint256 arg0)

type OptimismGasGasPriceUpdated added in v1.7.0

type OptimismGasGasPriceUpdated struct {
	Arg0 *big.Int
	Raw  types.Log // Blockchain specific contextual infos
}

OptimismGasGasPriceUpdated represents a GasPriceUpdated event raised by the OptimismGas contract.

type OptimismGasGasPriceUpdatedIterator added in v1.7.0

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

OptimismGasGasPriceUpdatedIterator is returned from FilterGasPriceUpdated and is used to iterate over the raw logs and unpacked data for GasPriceUpdated events raised by the OptimismGas contract.

func (*OptimismGasGasPriceUpdatedIterator) Close added in v1.7.0

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

func (*OptimismGasGasPriceUpdatedIterator) Error added in v1.7.0

Error returns any retrieval or parsing error occurred during filtering.

func (*OptimismGasGasPriceUpdatedIterator) Next added in v1.7.0

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type OptimismGasL1BaseFeeUpdated added in v1.7.0

type OptimismGasL1BaseFeeUpdated struct {
	Arg0 *big.Int
	Raw  types.Log // Blockchain specific contextual infos
}

OptimismGasL1BaseFeeUpdated represents a L1BaseFeeUpdated event raised by the OptimismGas contract.

type OptimismGasL1BaseFeeUpdatedIterator added in v1.7.0

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

OptimismGasL1BaseFeeUpdatedIterator is returned from FilterL1BaseFeeUpdated and is used to iterate over the raw logs and unpacked data for L1BaseFeeUpdated events raised by the OptimismGas contract.

func (*OptimismGasL1BaseFeeUpdatedIterator) Close added in v1.7.0

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

func (*OptimismGasL1BaseFeeUpdatedIterator) Error added in v1.7.0

Error returns any retrieval or parsing error occurred during filtering.

func (*OptimismGasL1BaseFeeUpdatedIterator) Next added in v1.7.0

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type OptimismGasOverheadUpdated added in v1.7.0

type OptimismGasOverheadUpdated struct {
	Arg0 *big.Int
	Raw  types.Log // Blockchain specific contextual infos
}

OptimismGasOverheadUpdated represents a OverheadUpdated event raised by the OptimismGas contract.

type OptimismGasOverheadUpdatedIterator added in v1.7.0

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

OptimismGasOverheadUpdatedIterator is returned from FilterOverheadUpdated and is used to iterate over the raw logs and unpacked data for OverheadUpdated events raised by the OptimismGas contract.

func (*OptimismGasOverheadUpdatedIterator) Close added in v1.7.0

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

func (*OptimismGasOverheadUpdatedIterator) Error added in v1.7.0

Error returns any retrieval or parsing error occurred during filtering.

func (*OptimismGasOverheadUpdatedIterator) Next added in v1.7.0

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type OptimismGasOwnershipTransferred added in v1.7.0

type OptimismGasOwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

OptimismGasOwnershipTransferred represents a OwnershipTransferred event raised by the OptimismGas contract.

type OptimismGasOwnershipTransferredIterator added in v1.7.0

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

OptimismGasOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the OptimismGas contract.

func (*OptimismGasOwnershipTransferredIterator) Close added in v1.7.0

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

func (*OptimismGasOwnershipTransferredIterator) Error added in v1.7.0

Error returns any retrieval or parsing error occurred during filtering.

func (*OptimismGasOwnershipTransferredIterator) Next added in v1.7.0

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type OptimismGasRaw added in v1.7.0

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

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

func (*OptimismGasRaw) Call added in v1.7.0

func (_OptimismGas *OptimismGasRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*OptimismGasRaw) Transact added in v1.7.0

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

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

func (*OptimismGasRaw) Transfer added in v1.7.0

func (_OptimismGas *OptimismGasRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type OptimismGasScalarUpdated added in v1.7.0

type OptimismGasScalarUpdated struct {
	Arg0 *big.Int
	Raw  types.Log // Blockchain specific contextual infos
}

OptimismGasScalarUpdated represents a ScalarUpdated event raised by the OptimismGas contract.

type OptimismGasScalarUpdatedIterator added in v1.7.0

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

OptimismGasScalarUpdatedIterator is returned from FilterScalarUpdated and is used to iterate over the raw logs and unpacked data for ScalarUpdated events raised by the OptimismGas contract.

func (*OptimismGasScalarUpdatedIterator) Close added in v1.7.0

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

func (*OptimismGasScalarUpdatedIterator) Error added in v1.7.0

Error returns any retrieval or parsing error occurred during filtering.

func (*OptimismGasScalarUpdatedIterator) Next added in v1.7.0

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type OptimismGasSession added in v1.7.0

type OptimismGasSession struct {
	Contract     *OptimismGas      // 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
}

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

func (*OptimismGasSession) Decimals added in v1.7.0

func (_OptimismGas *OptimismGasSession) Decimals() (*big.Int, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint256)

func (*OptimismGasSession) GasPrice added in v1.7.0

func (_OptimismGas *OptimismGasSession) GasPrice() (*big.Int, error)

GasPrice is a free data retrieval call binding the contract method 0xfe173b97.

Solidity: function gasPrice() view returns(uint256)

func (*OptimismGasSession) GetL1Fee added in v1.7.0

func (_OptimismGas *OptimismGasSession) GetL1Fee(_data []byte) (*big.Int, error)

GetL1Fee is a free data retrieval call binding the contract method 0x49948e0e.

Solidity: function getL1Fee(bytes _data) view returns(uint256)

func (*OptimismGasSession) GetL1GasUsed added in v1.7.0

func (_OptimismGas *OptimismGasSession) GetL1GasUsed(_data []byte) (*big.Int, error)

GetL1GasUsed is a free data retrieval call binding the contract method 0xde26c4a1.

Solidity: function getL1GasUsed(bytes _data) view returns(uint256)

func (*OptimismGasSession) L1BaseFee added in v1.7.0

func (_OptimismGas *OptimismGasSession) L1BaseFee() (*big.Int, error)

L1BaseFee is a free data retrieval call binding the contract method 0x519b4bd3.

Solidity: function l1BaseFee() view returns(uint256)

func (*OptimismGasSession) Overhead added in v1.7.0

func (_OptimismGas *OptimismGasSession) Overhead() (*big.Int, error)

Overhead is a free data retrieval call binding the contract method 0x0c18c162.

Solidity: function overhead() view returns(uint256)

func (*OptimismGasSession) Owner added in v1.7.0

func (_OptimismGas *OptimismGasSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*OptimismGasSession) RenounceOwnership added in v1.7.0

func (_OptimismGas *OptimismGasSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*OptimismGasSession) Scalar added in v1.7.0

func (_OptimismGas *OptimismGasSession) Scalar() (*big.Int, error)

Scalar is a free data retrieval call binding the contract method 0xf45e65d8.

Solidity: function scalar() view returns(uint256)

func (*OptimismGasSession) SetDecimals added in v1.7.0

func (_OptimismGas *OptimismGasSession) SetDecimals(_decimals *big.Int) (*types.Transaction, error)

SetDecimals is a paid mutator transaction binding the contract method 0x8c8885c8.

Solidity: function setDecimals(uint256 _decimals) returns()

func (*OptimismGasSession) SetGasPrice added in v1.7.0

func (_OptimismGas *OptimismGasSession) SetGasPrice(_gasPrice *big.Int) (*types.Transaction, error)

SetGasPrice is a paid mutator transaction binding the contract method 0xbf1fe420.

Solidity: function setGasPrice(uint256 _gasPrice) returns()

func (*OptimismGasSession) SetL1BaseFee added in v1.7.0

func (_OptimismGas *OptimismGasSession) SetL1BaseFee(_baseFee *big.Int) (*types.Transaction, error)

SetL1BaseFee is a paid mutator transaction binding the contract method 0xbede39b5.

Solidity: function setL1BaseFee(uint256 _baseFee) returns()

func (*OptimismGasSession) SetOverhead added in v1.7.0

func (_OptimismGas *OptimismGasSession) SetOverhead(_overhead *big.Int) (*types.Transaction, error)

SetOverhead is a paid mutator transaction binding the contract method 0x3577afc5.

Solidity: function setOverhead(uint256 _overhead) returns()

func (*OptimismGasSession) SetScalar added in v1.7.0

func (_OptimismGas *OptimismGasSession) SetScalar(_scalar *big.Int) (*types.Transaction, error)

SetScalar is a paid mutator transaction binding the contract method 0x70465597.

Solidity: function setScalar(uint256 _scalar) returns()

func (*OptimismGasSession) TransferOwnership added in v1.7.0

func (_OptimismGas *OptimismGasSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

type OptimismGasTransactor added in v1.7.0

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

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

func NewOptimismGasTransactor added in v1.7.0

func NewOptimismGasTransactor(address common.Address, transactor bind.ContractTransactor) (*OptimismGasTransactor, error)

NewOptimismGasTransactor creates a new write-only instance of OptimismGas, bound to a specific deployed contract.

func (*OptimismGasTransactor) RenounceOwnership added in v1.7.0

func (_OptimismGas *OptimismGasTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*OptimismGasTransactor) SetDecimals added in v1.7.0

func (_OptimismGas *OptimismGasTransactor) SetDecimals(opts *bind.TransactOpts, _decimals *big.Int) (*types.Transaction, error)

SetDecimals is a paid mutator transaction binding the contract method 0x8c8885c8.

Solidity: function setDecimals(uint256 _decimals) returns()

func (*OptimismGasTransactor) SetGasPrice added in v1.7.0

func (_OptimismGas *OptimismGasTransactor) SetGasPrice(opts *bind.TransactOpts, _gasPrice *big.Int) (*types.Transaction, error)

SetGasPrice is a paid mutator transaction binding the contract method 0xbf1fe420.

Solidity: function setGasPrice(uint256 _gasPrice) returns()

func (*OptimismGasTransactor) SetL1BaseFee added in v1.7.0

func (_OptimismGas *OptimismGasTransactor) SetL1BaseFee(opts *bind.TransactOpts, _baseFee *big.Int) (*types.Transaction, error)

SetL1BaseFee is a paid mutator transaction binding the contract method 0xbede39b5.

Solidity: function setL1BaseFee(uint256 _baseFee) returns()

func (*OptimismGasTransactor) SetOverhead added in v1.7.0

func (_OptimismGas *OptimismGasTransactor) SetOverhead(opts *bind.TransactOpts, _overhead *big.Int) (*types.Transaction, error)

SetOverhead is a paid mutator transaction binding the contract method 0x3577afc5.

Solidity: function setOverhead(uint256 _overhead) returns()

func (*OptimismGasTransactor) SetScalar added in v1.7.0

func (_OptimismGas *OptimismGasTransactor) SetScalar(opts *bind.TransactOpts, _scalar *big.Int) (*types.Transaction, error)

SetScalar is a paid mutator transaction binding the contract method 0x70465597.

Solidity: function setScalar(uint256 _scalar) returns()

func (*OptimismGasTransactor) TransferOwnership added in v1.7.0

func (_OptimismGas *OptimismGasTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

type OptimismGasTransactorRaw added in v1.7.0

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

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

func (*OptimismGasTransactorRaw) Transact added in v1.7.0

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

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

func (*OptimismGasTransactorRaw) Transfer added in v1.7.0

func (_OptimismGas *OptimismGasTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type OptimismGasTransactorSession added in v1.7.0

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

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

func (*OptimismGasTransactorSession) RenounceOwnership added in v1.7.0

func (_OptimismGas *OptimismGasTransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*OptimismGasTransactorSession) SetDecimals added in v1.7.0

func (_OptimismGas *OptimismGasTransactorSession) SetDecimals(_decimals *big.Int) (*types.Transaction, error)

SetDecimals is a paid mutator transaction binding the contract method 0x8c8885c8.

Solidity: function setDecimals(uint256 _decimals) returns()

func (*OptimismGasTransactorSession) SetGasPrice added in v1.7.0

func (_OptimismGas *OptimismGasTransactorSession) SetGasPrice(_gasPrice *big.Int) (*types.Transaction, error)

SetGasPrice is a paid mutator transaction binding the contract method 0xbf1fe420.

Solidity: function setGasPrice(uint256 _gasPrice) returns()

func (*OptimismGasTransactorSession) SetL1BaseFee added in v1.7.0

func (_OptimismGas *OptimismGasTransactorSession) SetL1BaseFee(_baseFee *big.Int) (*types.Transaction, error)

SetL1BaseFee is a paid mutator transaction binding the contract method 0xbede39b5.

Solidity: function setL1BaseFee(uint256 _baseFee) returns()

func (*OptimismGasTransactorSession) SetOverhead added in v1.7.0

func (_OptimismGas *OptimismGasTransactorSession) SetOverhead(_overhead *big.Int) (*types.Transaction, error)

SetOverhead is a paid mutator transaction binding the contract method 0x3577afc5.

Solidity: function setOverhead(uint256 _overhead) returns()

func (*OptimismGasTransactorSession) SetScalar added in v1.7.0

func (_OptimismGas *OptimismGasTransactorSession) SetScalar(_scalar *big.Int) (*types.Transaction, error)

SetScalar is a paid mutator transaction binding the contract method 0x70465597.

Solidity: function setScalar(uint256 _scalar) returns()

func (*OptimismGasTransactorSession) TransferOwnership added in v1.7.0

func (_OptimismGas *OptimismGasTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

Jump to

Keyboard shortcuts

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