proxyadmin

package
v0.0.0-...-503db35 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProxyAdminABI = ProxyAdminMetaData.ABI

ProxyAdminABI is the input ABI used to generate the binding from. Deprecated: Use ProxyAdminMetaData.ABI instead.

View Source
var ProxyAdminBin = ProxyAdminMetaData.Bin

ProxyAdminBin is the compiled bytecode used for deploying new contracts. Deprecated: Use ProxyAdminMetaData.Bin instead.

View Source
var ProxyAdminMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"contractITransparentUpgradeableProxy\",\"name\":\"proxy\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"changeProxyAdmin\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractITransparentUpgradeableProxy\",\"name\":\"proxy\",\"type\":\"address\"}],\"name\":\"getProxyAdmin\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractITransparentUpgradeableProxy\",\"name\":\"proxy\",\"type\":\"address\"}],\"name\":\"getProxyImplementation\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"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\"}],\"name\":\"upgrade\",\"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: "0x6080806040523461005b5760008054336001600160a01b0319821681178355916001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a361060790816100618239f35b600080fdfe6080604081815260048036101561001557600080fd5b600092833560e01c90848263204e1c7a146104525750508063715018a6146103f85780637eff275e1461037e5780638da5cb5b146103565780639623609d146102415783816399a88ec4146101b557508063f2fde38b146100e95763f3b7dead1461007f57600080fd5b346100e55760203660031901126100e5576001600160a01b039083908190836100a6610491565b86516303e1469160e61b815291165afa926100bf610582565b93156100e257506100da8360208080965183010191016105b2565b169051908152f35b80fd5b8280fd5b50346100e55760203660031901126100e557610103610491565b9061010c61052a565b6001600160a01b03918216928315610163575050600054826bffffffffffffffffffffffff60a01b821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a380f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152fd5b9290503461023d578060031936011261023d576101d0610491565b6101d86104ac565b906101e161052a565b6001600160a01b03908116803b156102395785928360249286519788958694631b2ce7f360e11b865216908401525af190811561023057506102205750f35b610229906104c2565b6100e25780f35b513d84823e3d90fd5b8580fd5b5050fd5b508290606036600319011261035257610258610491565b926102616104ac565b916044359067ffffffffffffffff821161034e573660238301121561034e57818101359161028e8361050e565b9261029b855194856104ec565b808452366024828401011161034a576024929181889260209586930183880137850101526102c761052a565b6001600160a01b0396871696873b1561034a5784519563278f794360e11b87521690850152826024850152815191826044860152855b8381106103365750505082849581606481858983819884010152601f8019910116810103019134905af190811561023057506102205750f35b8181018301518682016064015282016102fd565b8680fd5b8480fd5b5080fd5b505034610352578160031936011261035257905490516001600160a01b039091168152602090f35b5090346100e557806003193601126100e55782610399610491565b6103a16104ac565b6103a961052a565b6001600160a01b0391821690813b156103f45783602492865197889586946308f2839760e41b865216908401525af190811561023057506103e8575080f35b6103f1906104c2565b80f35b8380fd5b83346100e257806003193601126100e25761041161052a565b80546001600160a01b03198116825581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b91509134610352576020366003190112610352576001600160a01b03928291908461047b610491565b635c60da1b60e01b8352165afa926100bf610582565b600435906001600160a01b03821682036104a757565b600080fd5b602435906001600160a01b03821682036104a757565b67ffffffffffffffff81116104d657604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff8211176104d657604052565b67ffffffffffffffff81116104d657601f01601f191660200190565b6000546001600160a01b0316330361053e57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b3d156105ad573d906105938261050e565b916105a160405193846104ec565b82523d6000602084013e565b606090565b908160209103126104a757516001600160a01b03811681036104a7579056fea2646970667358221220ba840368d39bdb0daee1e93666a2f68f6e68c27a9e300732a9bcd19912b7f8db64736f6c63430008130033",
}

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) (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) GetProxyAdmin

func (_ProxyAdmin *ProxyAdminCaller) GetProxyAdmin(opts *bind.CallOpts, proxy common.Address) (common.Address, error)

GetProxyAdmin is a free data retrieval call binding the contract method 0xf3b7dead.

Solidity: function getProxyAdmin(address proxy) view returns(address)

func (*ProxyAdminCaller) GetProxyImplementation

func (_ProxyAdmin *ProxyAdminCaller) GetProxyImplementation(opts *bind.CallOpts, proxy common.Address) (common.Address, error)

GetProxyImplementation is a free data retrieval call binding the contract method 0x204e1c7a.

Solidity: function getProxyImplementation(address proxy) view returns(address)

func (*ProxyAdminCaller) Owner

func (_ProxyAdmin *ProxyAdminCaller) 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)

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) GetProxyAdmin

func (_ProxyAdmin *ProxyAdminCallerSession) GetProxyAdmin(proxy common.Address) (common.Address, error)

GetProxyAdmin is a free data retrieval call binding the contract method 0xf3b7dead.

Solidity: function getProxyAdmin(address proxy) view returns(address)

func (*ProxyAdminCallerSession) GetProxyImplementation

func (_ProxyAdmin *ProxyAdminCallerSession) GetProxyImplementation(proxy common.Address) (common.Address, error)

GetProxyImplementation is a free data retrieval call binding the contract method 0x204e1c7a.

Solidity: function getProxyImplementation(address proxy) view returns(address)

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)

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

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

func (*ProxyAdminOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ProxyAdminOwnershipTransferredIterator) 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 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) ChangeProxyAdmin

func (_ProxyAdmin *ProxyAdminSession) ChangeProxyAdmin(proxy common.Address, newAdmin common.Address) (*types.Transaction, error)

ChangeProxyAdmin is a paid mutator transaction binding the contract method 0x7eff275e.

Solidity: function changeProxyAdmin(address proxy, address newAdmin) returns()

func (*ProxyAdminSession) GetProxyAdmin

func (_ProxyAdmin *ProxyAdminSession) GetProxyAdmin(proxy common.Address) (common.Address, error)

GetProxyAdmin is a free data retrieval call binding the contract method 0xf3b7dead.

Solidity: function getProxyAdmin(address proxy) view returns(address)

func (*ProxyAdminSession) GetProxyImplementation

func (_ProxyAdmin *ProxyAdminSession) GetProxyImplementation(proxy common.Address) (common.Address, error)

GetProxyImplementation is a free data retrieval call binding the contract method 0x204e1c7a.

Solidity: function getProxyImplementation(address proxy) view returns(address)

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) Upgrade

func (_ProxyAdmin *ProxyAdminSession) Upgrade(proxy common.Address, implementation common.Address) (*types.Transaction, error)

Upgrade is a paid mutator transaction binding the contract method 0x99a88ec4.

Solidity: function upgrade(address proxy, address implementation) returns()

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) ChangeProxyAdmin

func (_ProxyAdmin *ProxyAdminTransactor) ChangeProxyAdmin(opts *bind.TransactOpts, proxy common.Address, newAdmin common.Address) (*types.Transaction, error)

ChangeProxyAdmin is a paid mutator transaction binding the contract method 0x7eff275e.

Solidity: function changeProxyAdmin(address proxy, address newAdmin) returns()

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) Upgrade

func (_ProxyAdmin *ProxyAdminTransactor) Upgrade(opts *bind.TransactOpts, proxy common.Address, implementation common.Address) (*types.Transaction, error)

Upgrade is a paid mutator transaction binding the contract method 0x99a88ec4.

Solidity: function upgrade(address proxy, address implementation) 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) ChangeProxyAdmin

func (_ProxyAdmin *ProxyAdminTransactorSession) ChangeProxyAdmin(proxy common.Address, newAdmin common.Address) (*types.Transaction, error)

ChangeProxyAdmin is a paid mutator transaction binding the contract method 0x7eff275e.

Solidity: function changeProxyAdmin(address proxy, address newAdmin) returns()

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) Upgrade

func (_ProxyAdmin *ProxyAdminTransactorSession) Upgrade(proxy common.Address, implementation common.Address) (*types.Transaction, error)

Upgrade is a paid mutator transaction binding the contract method 0x99a88ec4.

Solidity: function upgrade(address proxy, address implementation) 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()

Jump to

Keyboard shortcuts

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