ethereum

package
v1.99.3 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: 0

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

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

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

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

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

func NewOptimismGasCaller

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

func (*OptimismGasDecimalsUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*OptimismGasDecimalsUpdatedIterator) Next

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

type OptimismGasFilterer

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

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

func NewOptimismGasFilterer

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

func (*OptimismGasGasPriceUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*OptimismGasGasPriceUpdatedIterator) Next

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

type OptimismGasL1BaseFeeUpdated

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

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

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

func (*OptimismGasL1BaseFeeUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*OptimismGasL1BaseFeeUpdatedIterator) Next

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

type OptimismGasOverheadUpdated

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

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

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

func (*OptimismGasOverheadUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*OptimismGasOverheadUpdatedIterator) Next

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

type OptimismGasOwnershipTransferred

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

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

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

func (*OptimismGasOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*OptimismGasOwnershipTransferredIterator) Next

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

type OptimismGasRaw

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

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

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

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

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

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

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

func (*OptimismGasScalarUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*OptimismGasScalarUpdatedIterator) Next

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

type OptimismGasSession

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

func NewOptimismGasTransactor

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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