Documentation
¶
Index ¶
- Variables
- type ProxyAdmin
- type ProxyAdminCaller
- type ProxyAdminCallerRaw
- type ProxyAdminCallerSession
- type ProxyAdminFilterer
- func (_ProxyAdmin *ProxyAdminFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*ProxyAdminOwnershipTransferredIterator, error)
- func (_ProxyAdmin *ProxyAdminFilterer) ParseOwnershipTransferred(log types.Log) (*ProxyAdminOwnershipTransferred, error)
- func (_ProxyAdmin *ProxyAdminFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ProxyAdminOwnershipTransferred, ...) (event.Subscription, error)
- type ProxyAdminOwnershipTransferred
- type ProxyAdminOwnershipTransferredIterator
- type ProxyAdminRaw
- func (_ProxyAdmin *ProxyAdminRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_ProxyAdmin *ProxyAdminRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_ProxyAdmin *ProxyAdminRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type ProxyAdminSession
- func (_ProxyAdmin *ProxyAdminSession) Owner() (common.Address, error)
- func (_ProxyAdmin *ProxyAdminSession) RenounceOwnership() (*types.Transaction, error)
- func (_ProxyAdmin *ProxyAdminSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_ProxyAdmin *ProxyAdminSession) UPGRADEINTERFACEVERSION() (string, error)
- func (_ProxyAdmin *ProxyAdminSession) UpgradeAndCall(proxy common.Address, implementation common.Address, data []byte) (*types.Transaction, error)
- type ProxyAdminTransactor
- func (_ProxyAdmin *ProxyAdminTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_ProxyAdmin *ProxyAdminTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
- func (_ProxyAdmin *ProxyAdminTransactor) UpgradeAndCall(opts *bind.TransactOpts, proxy common.Address, implementation common.Address, ...) (*types.Transaction, error)
- type ProxyAdminTransactorRaw
- type ProxyAdminTransactorSession
- func (_ProxyAdmin *ProxyAdminTransactorSession) RenounceOwnership() (*types.Transaction, error)
- func (_ProxyAdmin *ProxyAdminTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_ProxyAdmin *ProxyAdminTransactorSession) UpgradeAndCall(proxy common.Address, implementation common.Address, data []byte) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var ProxyAdminABI = ProxyAdminMetaData.ABI
ProxyAdminABI is the input ABI used to generate the binding from. Deprecated: Use ProxyAdminMetaData.ABI instead.
var ProxyAdminBin = ProxyAdminMetaData.Bin
ProxyAdminBin is the compiled bytecode used for deploying new contracts. Deprecated: Use ProxyAdminMetaData.Bin instead.
var ProxyAdminMetaData = &bind.MetaData{
ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"initialOwner\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"UPGRADE_INTERFACE_VERSION\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"owner\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"renounceOwnership\",\"inputs\":[],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"transferOwnership\",\"inputs\":[{\"name\":\"newOwner\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"upgradeAndCall\",\"inputs\":[{\"name\":\"proxy\",\"type\":\"address\",\"internalType\":\"contractITransparentUpgradeableProxy\"},{\"name\":\"implementation\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"event\",\"name\":\"OwnershipTransferred\",\"inputs\":[{\"name\":\"previousOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"newOwner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"OwnableInvalidOwner\",\"inputs\":[{\"name\":\"owner\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"OwnableUnauthorizedAccount\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"}]}]",
Bin: "0x608060405234801561001057600080fd5b5060405161068438038061068483398101604081905261002f916100be565b806001600160a01b03811661005e57604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b6100678161006e565b50506100ee565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100d057600080fd5b81516001600160a01b03811681146100e757600080fd5b9392505050565b610587806100fd6000396000f3fe60806040526004361061005a5760003560e01c80639623609d116100435780639623609d146100b0578063ad3cb1cc146100c3578063f2fde38b1461011957600080fd5b8063715018a61461005f5780638da5cb5b14610076575b600080fd5b34801561006b57600080fd5b50610074610139565b005b34801561008257600080fd5b5060005460405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b6100746100be366004610364565b61014d565b3480156100cf57600080fd5b5061010c6040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b6040516100a791906104e3565b34801561012557600080fd5b506100746101343660046104fd565b6101e2565b61014161024b565b61014b600061029e565b565b61015561024b565b6040517f4f1ef28600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff841690634f1ef2869034906101ab908690869060040161051a565b6000604051808303818588803b1580156101c457600080fd5b505af11580156101d8573d6000803e3d6000fd5b5050505050505050565b6101ea61024b565b73ffffffffffffffffffffffffffffffffffffffff811661023f576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024015b60405180910390fd5b6102488161029e565b50565b60005473ffffffffffffffffffffffffffffffffffffffff16331461014b576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610236565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b73ffffffffffffffffffffffffffffffffffffffff8116811461024857600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60008060006060848603121561037957600080fd5b833561038481610313565b9250602084013561039481610313565b9150604084013567ffffffffffffffff8111156103b057600080fd5b8401601f810186136103c157600080fd5b803567ffffffffffffffff8111156103db576103db610335565b6040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8501160116810181811067ffffffffffffffff8211171561044757610447610335565b60405281815282820160200188101561045f57600080fd5b816020840160208301376000602083830101528093505050509250925092565b6000815180845260005b818110156104a557602081850181015186830182015201610489565b5060006020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b6020815260006104f6602083018461047f565b9392505050565b60006020828403121561050f57600080fd5b81356104f681610313565b73ffffffffffffffffffffffffffffffffffffffff83168152604060208201526000610549604083018461047f565b94935050505056fea26469706673582212208daf76176bd1bf25b5af4fd185f7498577b33a8d61ef821bbfde3514ca69765e64736f6c634300081a0033",
}
ProxyAdminMetaData contains all meta data concerning the ProxyAdmin contract.
Functions ¶
This section is empty.
Types ¶
type ProxyAdmin ¶
type ProxyAdmin struct { ProxyAdminCaller // Read-only binding to the contract ProxyAdminTransactor // Write-only binding to the contract ProxyAdminFilterer // Log filterer for contract events }
ProxyAdmin is an auto generated Go binding around an Ethereum contract.
func DeployProxyAdmin ¶
func DeployProxyAdmin(auth *bind.TransactOpts, backend bind.ContractBackend, initialOwner common.Address) (common.Address, *types.Transaction, *ProxyAdmin, error)
DeployProxyAdmin deploys a new Ethereum contract, binding an instance of ProxyAdmin to it.
func NewProxyAdmin ¶
func NewProxyAdmin(address common.Address, backend bind.ContractBackend) (*ProxyAdmin, error)
NewProxyAdmin creates a new instance of ProxyAdmin, bound to a specific deployed contract.
type ProxyAdminCaller ¶
type ProxyAdminCaller struct {
// contains filtered or unexported fields
}
ProxyAdminCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewProxyAdminCaller ¶
func NewProxyAdminCaller(address common.Address, caller bind.ContractCaller) (*ProxyAdminCaller, error)
NewProxyAdminCaller creates a new read-only instance of ProxyAdmin, bound to a specific deployed contract.
func (*ProxyAdminCaller) Owner ¶
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*ProxyAdminCaller) UPGRADEINTERFACEVERSION ¶
func (_ProxyAdmin *ProxyAdminCaller) UPGRADEINTERFACEVERSION(opts *bind.CallOpts) (string, error)
UPGRADEINTERFACEVERSION is a free data retrieval call binding the contract method 0xad3cb1cc.
Solidity: function UPGRADE_INTERFACE_VERSION() view returns(string)
type ProxyAdminCallerRaw ¶
type ProxyAdminCallerRaw struct {
Contract *ProxyAdminCaller // Generic read-only contract binding to access the raw methods on
}
ProxyAdminCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*ProxyAdminCallerRaw) Call ¶
func (_ProxyAdmin *ProxyAdminCallerRaw) 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 ProxyAdminCallerSession ¶
type ProxyAdminCallerSession struct { Contract *ProxyAdminCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
ProxyAdminCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*ProxyAdminCallerSession) Owner ¶
func (_ProxyAdmin *ProxyAdminCallerSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*ProxyAdminCallerSession) UPGRADEINTERFACEVERSION ¶
func (_ProxyAdmin *ProxyAdminCallerSession) UPGRADEINTERFACEVERSION() (string, error)
UPGRADEINTERFACEVERSION is a free data retrieval call binding the contract method 0xad3cb1cc.
Solidity: function UPGRADE_INTERFACE_VERSION() view returns(string)
type ProxyAdminFilterer ¶
type ProxyAdminFilterer struct {
// contains filtered or unexported fields
}
ProxyAdminFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewProxyAdminFilterer ¶
func NewProxyAdminFilterer(address common.Address, filterer bind.ContractFilterer) (*ProxyAdminFilterer, error)
NewProxyAdminFilterer creates a new log filterer instance of ProxyAdmin, bound to a specific deployed contract.
func (*ProxyAdminFilterer) FilterOwnershipTransferred ¶
func (_ProxyAdmin *ProxyAdminFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ProxyAdminOwnershipTransferredIterator, error)
FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*ProxyAdminFilterer) ParseOwnershipTransferred ¶
func (_ProxyAdmin *ProxyAdminFilterer) ParseOwnershipTransferred(log types.Log) (*ProxyAdminOwnershipTransferred, error)
ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*ProxyAdminFilterer) WatchOwnershipTransferred ¶
func (_ProxyAdmin *ProxyAdminFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ProxyAdminOwnershipTransferred, 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)
type ProxyAdminOwnershipTransferred ¶
type ProxyAdminOwnershipTransferred struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos }
ProxyAdminOwnershipTransferred represents a OwnershipTransferred event raised by the ProxyAdmin contract.
type ProxyAdminOwnershipTransferredIterator ¶
type ProxyAdminOwnershipTransferredIterator struct { Event *ProxyAdminOwnershipTransferred // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ProxyAdminOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the ProxyAdmin contract.
func (*ProxyAdminOwnershipTransferredIterator) Close ¶
func (it *ProxyAdminOwnershipTransferredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ProxyAdminOwnershipTransferredIterator) Error ¶
func (it *ProxyAdminOwnershipTransferredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ProxyAdminOwnershipTransferredIterator) Next ¶
func (it *ProxyAdminOwnershipTransferredIterator) 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.
type ProxyAdminRaw ¶
type ProxyAdminRaw struct {
Contract *ProxyAdmin // Generic contract binding to access the raw methods on
}
ProxyAdminRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*ProxyAdminRaw) Call ¶
func (_ProxyAdmin *ProxyAdminRaw) 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 (*ProxyAdminRaw) Transact ¶
func (_ProxyAdmin *ProxyAdminRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ProxyAdminRaw) Transfer ¶
func (_ProxyAdmin *ProxyAdminRaw) 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 ProxyAdminSession ¶
type ProxyAdminSession struct { Contract *ProxyAdmin // 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 }
ProxyAdminSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*ProxyAdminSession) Owner ¶
func (_ProxyAdmin *ProxyAdminSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*ProxyAdminSession) RenounceOwnership ¶
func (_ProxyAdmin *ProxyAdminSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*ProxyAdminSession) TransferOwnership ¶
func (_ProxyAdmin *ProxyAdminSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*ProxyAdminSession) UPGRADEINTERFACEVERSION ¶
func (_ProxyAdmin *ProxyAdminSession) UPGRADEINTERFACEVERSION() (string, error)
UPGRADEINTERFACEVERSION is a free data retrieval call binding the contract method 0xad3cb1cc.
Solidity: function UPGRADE_INTERFACE_VERSION() view returns(string)
func (*ProxyAdminSession) UpgradeAndCall ¶
func (_ProxyAdmin *ProxyAdminSession) UpgradeAndCall(proxy common.Address, implementation common.Address, data []byte) (*types.Transaction, error)
UpgradeAndCall is a paid mutator transaction binding the contract method 0x9623609d.
Solidity: function upgradeAndCall(address proxy, address implementation, bytes data) payable returns()
type ProxyAdminTransactor ¶
type ProxyAdminTransactor struct {
// contains filtered or unexported fields
}
ProxyAdminTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewProxyAdminTransactor ¶
func NewProxyAdminTransactor(address common.Address, transactor bind.ContractTransactor) (*ProxyAdminTransactor, error)
NewProxyAdminTransactor creates a new write-only instance of ProxyAdmin, bound to a specific deployed contract.
func (*ProxyAdminTransactor) RenounceOwnership ¶
func (_ProxyAdmin *ProxyAdminTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*ProxyAdminTransactor) TransferOwnership ¶
func (_ProxyAdmin *ProxyAdminTransactor) 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()
func (*ProxyAdminTransactor) UpgradeAndCall ¶
func (_ProxyAdmin *ProxyAdminTransactor) UpgradeAndCall(opts *bind.TransactOpts, proxy common.Address, implementation common.Address, data []byte) (*types.Transaction, error)
UpgradeAndCall is a paid mutator transaction binding the contract method 0x9623609d.
Solidity: function upgradeAndCall(address proxy, address implementation, bytes data) payable returns()
type ProxyAdminTransactorRaw ¶
type ProxyAdminTransactorRaw struct {
Contract *ProxyAdminTransactor // Generic write-only contract binding to access the raw methods on
}
ProxyAdminTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*ProxyAdminTransactorRaw) Transact ¶
func (_ProxyAdmin *ProxyAdminTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ProxyAdminTransactorRaw) Transfer ¶
func (_ProxyAdmin *ProxyAdminTransactorRaw) 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 ProxyAdminTransactorSession ¶
type ProxyAdminTransactorSession struct { Contract *ProxyAdminTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
ProxyAdminTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*ProxyAdminTransactorSession) RenounceOwnership ¶
func (_ProxyAdmin *ProxyAdminTransactorSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*ProxyAdminTransactorSession) TransferOwnership ¶
func (_ProxyAdmin *ProxyAdminTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*ProxyAdminTransactorSession) UpgradeAndCall ¶
func (_ProxyAdmin *ProxyAdminTransactorSession) UpgradeAndCall(proxy common.Address, implementation common.Address, data []byte) (*types.Transaction, error)
UpgradeAndCall is a paid mutator transaction binding the contract method 0x9623609d.
Solidity: function upgradeAndCall(address proxy, address implementation, bytes data) payable returns()