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: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"initialOwner\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"UPGRADE_INTERFACE_VERSION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"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\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractITransparentUpgradeableProxy\",\"name\":\"proxy\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}]",
Bin: "0x608060405234801561000f575f5ffd5b506040516106a63803806106a683398101604081905261002e916100f3565b806001600160a01b038116610061575f604051631e4fbdf760e01b81526004016100589190610126565b60405180910390fd5b61006a81610071565b5050610134565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f6001600160a01b0382165b92915050565b6100db816100c0565b81146100e5575f5ffd5b50565b80516100cc816100d2565b5f60208284031215610106576101065f5ffd5b61011083836100e8565b9392505050565b610120816100c0565b82525050565b602081016100cc8284610117565b610565806101415f395ff3fe608060405260043610610058575f3560e01c80639623609d116100415780639623609d1461009f578063ad3cb1cc146100b2578063f2fde38b14610107575f5ffd5b8063715018a61461005c5780638da5cb5b14610072575b5f5ffd5b348015610067575f5ffd5b50610070610126565b005b34801561007d575f5ffd5b505f546001600160a01b031660405161009691906102e9565b60405180910390f35b6100706100ad36600461043b565b610139565b3480156100bd575f5ffd5b506100fa6040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b60405161009691906104d9565b348015610112575f5ffd5b506100706101213660046104ea565b6101bd565b61012e61021c565b6101375f610261565b565b61014161021c565b6040517f4f1ef2860000000000000000000000000000000000000000000000000000000081526001600160a01b03841690634f1ef28690349061018a9086908690600401610507565b5f604051808303818588803b1580156101a1575f5ffd5b505af11580156101b3573d5f5f3e3d5ffd5b5050505050505050565b6101c561021c565b6001600160a01b038116610210575f6040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161020791906102e9565b60405180910390fd5b61021981610261565b50565b5f546001600160a01b0316331461013757336040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161020791906102e9565b5f80546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f6001600160a01b0382165b92915050565b6102e3816102c8565b82525050565b602081016102d482846102da565b5f6102d4826102c8565b61030a816102f7565b8114610219575f5ffd5b80356102d481610301565b61030a816102c8565b80356102d48161031f565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b601f19601f830116810181811067ffffffffffffffff8211171561038657610386610333565b6040525050565b5f61039760405190565b90506103a38282610360565b919050565b5f67ffffffffffffffff8211156103c1576103c1610333565b601f19601f83011660200192915050565b82818337505f910152565b5f6103ef6103ea846103a8565b61038d565b9050828152838383011115610405576104055f5ffd5b6104138360208301846103d2565b9392505050565b5f82601f83011261042c5761042c5f5ffd5b610413838335602085016103dd565b5f5f5f60608486031215610450576104505f5ffd5b61045a8585610314565b92506104698560208601610328565b9150604084013567ffffffffffffffff811115610487576104875f5ffd5b6104938682870161041a565b9150509250925092565b8281835e505f910152565b5f6104b1825190565b8084526020840193506104c881856020860161049d565b601f01601f19169290920192915050565b6020808252810161041381846104a8565b5f602082840312156104fd576104fd5f5ffd5b6104138383610328565b6040810161051582856102da565b818103602083015261052781846104a8565b94935050505056fea2646970667358221220825046736e9ba7da84b283bda1535f423544d9a64889ef23b00a31fa58c37ed964736f6c634300081c0033",
}
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()