bindings

package
v2.0.0-...-7e5f7d2 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BindingsABI = BindingsMetaData.ABI

BindingsABI is the input ABI used to generate the binding from. Deprecated: Use BindingsMetaData.ABI instead.

View Source
var BindingsMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"admin\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"stateMutability\":\"payable\",\"type\":\"fallback\"},{\"inputs\":[],\"name\":\"admin\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"implementation\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_logic\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"upgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}]",
}

BindingsMetaData contains all meta data concerning the Bindings contract.

Functions

This section is empty.

Types

type Bindings

type Bindings struct {
	BindingsCaller     // Read-only binding to the contract
	BindingsTransactor // Write-only binding to the contract
	BindingsFilterer   // Log filterer for contract events
}

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

func NewBindings

func NewBindings(address common.Address, backend bind.ContractBackend) (*Bindings, error)

NewBindings creates a new instance of Bindings, bound to a specific deployed contract.

type BindingsCaller

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

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

func NewBindingsCaller

func NewBindingsCaller(address common.Address, caller bind.ContractCaller) (*BindingsCaller, error)

NewBindingsCaller creates a new read-only instance of Bindings, bound to a specific deployed contract.

type BindingsCallerRaw

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

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

func (*BindingsCallerRaw) Call

func (_Bindings *BindingsCallerRaw) 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 BindingsCallerSession

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

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

type BindingsFilterer

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

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

func NewBindingsFilterer

func NewBindingsFilterer(address common.Address, filterer bind.ContractFilterer) (*BindingsFilterer, error)

NewBindingsFilterer creates a new log filterer instance of Bindings, bound to a specific deployed contract.

func (*BindingsFilterer) FilterUpgraded

func (_Bindings *BindingsFilterer) FilterUpgraded(opts *bind.FilterOpts, implementation []common.Address) (*BindingsUpgradedIterator, error)

FilterUpgraded is a free log retrieval operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.

Solidity: event Upgraded(address indexed implementation)

func (*BindingsFilterer) ParseUpgraded

func (_Bindings *BindingsFilterer) ParseUpgraded(log types.Log) (*BindingsUpgraded, error)

ParseUpgraded is a log parse operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.

Solidity: event Upgraded(address indexed implementation)

func (*BindingsFilterer) WatchUpgraded

func (_Bindings *BindingsFilterer) WatchUpgraded(opts *bind.WatchOpts, sink chan<- *BindingsUpgraded, implementation []common.Address) (event.Subscription, error)

WatchUpgraded is a free log subscription operation binding the contract event 0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b.

Solidity: event Upgraded(address indexed implementation)

type BindingsRaw

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

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

func (*BindingsRaw) Call

func (_Bindings *BindingsRaw) 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 (*BindingsRaw) Transact

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

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

func (*BindingsRaw) Transfer

func (_Bindings *BindingsRaw) 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 BindingsSession

type BindingsSession struct {
	Contract     *Bindings         // 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
}

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

func (*BindingsSession) Admin

func (_Bindings *BindingsSession) Admin() (*types.Transaction, error)

Admin is a paid mutator transaction binding the contract method 0xf851a440.

Solidity: function admin() returns(address)

func (*BindingsSession) Fallback

func (_Bindings *BindingsSession) Fallback(calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*BindingsSession) Implementation

func (_Bindings *BindingsSession) Implementation() (*types.Transaction, error)

Implementation is a paid mutator transaction binding the contract method 0x5c60da1b.

Solidity: function implementation() returns(address)

func (*BindingsSession) Initialize

func (_Bindings *BindingsSession) Initialize(_logic common.Address, _data []byte) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xd1f57894.

Solidity: function initialize(address _logic, bytes _data) payable returns()

func (*BindingsSession) UpgradeTo

func (_Bindings *BindingsSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error)

UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6.

Solidity: function upgradeTo(address newImplementation) returns()

func (*BindingsSession) UpgradeToAndCall

func (_Bindings *BindingsSession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error)

UpgradeToAndCall is a paid mutator transaction binding the contract method 0x4f1ef286.

Solidity: function upgradeToAndCall(address newImplementation, bytes data) payable returns()

type BindingsTransactor

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

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

func NewBindingsTransactor

func NewBindingsTransactor(address common.Address, transactor bind.ContractTransactor) (*BindingsTransactor, error)

NewBindingsTransactor creates a new write-only instance of Bindings, bound to a specific deployed contract.

func (*BindingsTransactor) Admin

func (_Bindings *BindingsTransactor) Admin(opts *bind.TransactOpts) (*types.Transaction, error)

Admin is a paid mutator transaction binding the contract method 0xf851a440.

Solidity: function admin() returns(address)

func (*BindingsTransactor) Fallback

func (_Bindings *BindingsTransactor) Fallback(opts *bind.TransactOpts, calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*BindingsTransactor) Implementation

func (_Bindings *BindingsTransactor) Implementation(opts *bind.TransactOpts) (*types.Transaction, error)

Implementation is a paid mutator transaction binding the contract method 0x5c60da1b.

Solidity: function implementation() returns(address)

func (*BindingsTransactor) Initialize

func (_Bindings *BindingsTransactor) Initialize(opts *bind.TransactOpts, _logic common.Address, _data []byte) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xd1f57894.

Solidity: function initialize(address _logic, bytes _data) payable returns()

func (*BindingsTransactor) UpgradeTo

func (_Bindings *BindingsTransactor) UpgradeTo(opts *bind.TransactOpts, newImplementation common.Address) (*types.Transaction, error)

UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6.

Solidity: function upgradeTo(address newImplementation) returns()

func (*BindingsTransactor) UpgradeToAndCall

func (_Bindings *BindingsTransactor) UpgradeToAndCall(opts *bind.TransactOpts, newImplementation common.Address, data []byte) (*types.Transaction, error)

UpgradeToAndCall is a paid mutator transaction binding the contract method 0x4f1ef286.

Solidity: function upgradeToAndCall(address newImplementation, bytes data) payable returns()

type BindingsTransactorRaw

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

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

func (*BindingsTransactorRaw) Transact

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

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

func (*BindingsTransactorRaw) Transfer

func (_Bindings *BindingsTransactorRaw) 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 BindingsTransactorSession

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

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

func (*BindingsTransactorSession) Admin

func (_Bindings *BindingsTransactorSession) Admin() (*types.Transaction, error)

Admin is a paid mutator transaction binding the contract method 0xf851a440.

Solidity: function admin() returns(address)

func (*BindingsTransactorSession) Fallback

func (_Bindings *BindingsTransactorSession) Fallback(calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*BindingsTransactorSession) Implementation

func (_Bindings *BindingsTransactorSession) Implementation() (*types.Transaction, error)

Implementation is a paid mutator transaction binding the contract method 0x5c60da1b.

Solidity: function implementation() returns(address)

func (*BindingsTransactorSession) Initialize

func (_Bindings *BindingsTransactorSession) Initialize(_logic common.Address, _data []byte) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xd1f57894.

Solidity: function initialize(address _logic, bytes _data) payable returns()

func (*BindingsTransactorSession) UpgradeTo

func (_Bindings *BindingsTransactorSession) UpgradeTo(newImplementation common.Address) (*types.Transaction, error)

UpgradeTo is a paid mutator transaction binding the contract method 0x3659cfe6.

Solidity: function upgradeTo(address newImplementation) returns()

func (*BindingsTransactorSession) UpgradeToAndCall

func (_Bindings *BindingsTransactorSession) UpgradeToAndCall(newImplementation common.Address, data []byte) (*types.Transaction, error)

UpgradeToAndCall is a paid mutator transaction binding the contract method 0x4f1ef286.

Solidity: function upgradeToAndCall(address newImplementation, bytes data) payable returns()

type BindingsUpgraded

type BindingsUpgraded struct {
	Implementation common.Address
	Raw            types.Log // Blockchain specific contextual infos
}

BindingsUpgraded represents a Upgraded event raised by the Bindings contract.

type BindingsUpgradedIterator

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

BindingsUpgradedIterator is returned from FilterUpgraded and is used to iterate over the raw logs and unpacked data for Upgraded events raised by the Bindings contract.

func (*BindingsUpgradedIterator) Close

func (it *BindingsUpgradedIterator) Close() error

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

func (*BindingsUpgradedIterator) Error

func (it *BindingsUpgradedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BindingsUpgradedIterator) Next

func (it *BindingsUpgradedIterator) Next() bool

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

Jump to

Keyboard shortcuts

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