delegatecallproxy

package
v1.13.4 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DelegatecallproxyABI = DelegatecallproxyMetaData.ABI

DelegatecallproxyABI is the input ABI used to generate the binding from. Deprecated: Use DelegatecallproxyMetaData.ABI instead.

View Source
var DelegatecallproxyBin = DelegatecallproxyMetaData.Bin

DelegatecallproxyBin is the compiled bytecode used for deploying new contracts. Deprecated: Use DelegatecallproxyMetaData.Bin instead.

View Source
var DelegatecallproxyMetaData = &bind.MetaData{
	ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"_owner\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"changeAdmin\",\"inputs\":[{\"name\":\"_proxy\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_newAdmin\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"executeDelegateCall\",\"inputs\":[{\"name\":\"_target\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"owner\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"transferOwnership\",\"inputs\":[{\"name\":\"_proxyAdmin\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_newOwner\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"error\",\"name\":\"NotOwner\",\"inputs\":[]}]",
	Bin: "0x60a0604052348015600e575f5ffd5b506040516107af3803806107af833981016040819052602b91603b565b6001600160a01b03166080526066565b5f60208284031215604a575f5ffd5b81516001600160a01b0381168114605f575f5ffd5b9392505050565b60805161072561008a5f395f8181607b0152818160ff01526102e501526107255ff3fe608060405234801561000f575f5ffd5b506004361061004a575f3560e01c80631acfd02a1461004e5780636d435421146100635780638da5cb5b14610076578063b68df16d146100c7575b5f5ffd5b61006161005c366004610550565b6100e7565b005b610061610071366004610550565b6102cd565b61009d7f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b6100da6100d53660046105ae565b6104a8565b6040516100be91906106af565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614610156576040517f30cd747100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60405173ffffffffffffffffffffffffffffffffffffffff821660248201525f90604401604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f8f28397000000000000000000000000000000000000000000000000000000000179052519091505f9073ffffffffffffffffffffffffffffffffffffffff851690610219908490610702565b5f604051808303815f865af19150503d805f8114610252576040519150601f19603f3d011682016040523d82523d5f602084013e610257565b606091505b50509050806102c7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4368616e676541646d696e3a206661696c65640000000000000000000000000060448201526064015b60405180910390fd5b50505050565b3373ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000161461033c576040517f30cd747100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60405173ffffffffffffffffffffffffffffffffffffffff821660248201525f90604401604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167ff2fde38b00000000000000000000000000000000000000000000000000000000179052519091505f9073ffffffffffffffffffffffffffffffffffffffff8516906103ff908490610702565b5f604051808303815f865af19150503d805f8114610438576040519150601f19603f3d011682016040523d82523d5f602084013e61043d565b606091505b50509050806102c7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f5472616e736665724f776e6572736869703a206661696c65640000000000000060448201526064016102be565b60605f5f8473ffffffffffffffffffffffffffffffffffffffff16846040516104d19190610702565b5f60405180830381855af49150503d805f8114610509576040519150601f19603f3d011682016040523d82523d5f602084013e61050e565b606091505b50915091508161052057805160208201fd5b949350505050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461054b575f5ffd5b919050565b5f5f60408385031215610561575f5ffd5b61056a83610528565b915061057860208401610528565b90509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b5f5f604083850312156105bf575f5ffd5b6105c883610528565b9150602083013567ffffffffffffffff8111156105e3575f5ffd5b8301601f810185136105f3575f5ffd5b803567ffffffffffffffff81111561060d5761060d610581565b6040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8501160116810181811067ffffffffffffffff8211171561067957610679610581565b604052818152828201602001871015610690575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b602081525f82518060208401528060208501604085015e5f6040828501015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011684010191505092915050565b5f82518060208501845e5f92019182525091905056fea164736f6c634300081b000a",
}

DelegatecallproxyMetaData contains all meta data concerning the Delegatecallproxy contract.

Functions

This section is empty.

Types

type Delegatecallproxy

type Delegatecallproxy struct {
	DelegatecallproxyCaller     // Read-only binding to the contract
	DelegatecallproxyTransactor // Write-only binding to the contract
	DelegatecallproxyFilterer   // Log filterer for contract events
}

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

func DeployDelegatecallproxy

func DeployDelegatecallproxy(auth *bind.TransactOpts, backend bind.ContractBackend, _owner common.Address) (common.Address, *types.Transaction, *Delegatecallproxy, error)

DeployDelegatecallproxy deploys a new Ethereum contract, binding an instance of Delegatecallproxy to it.

func NewDelegatecallproxy

func NewDelegatecallproxy(address common.Address, backend bind.ContractBackend) (*Delegatecallproxy, error)

NewDelegatecallproxy creates a new instance of Delegatecallproxy, bound to a specific deployed contract.

type DelegatecallproxyCaller

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

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

func NewDelegatecallproxyCaller

func NewDelegatecallproxyCaller(address common.Address, caller bind.ContractCaller) (*DelegatecallproxyCaller, error)

NewDelegatecallproxyCaller creates a new read-only instance of Delegatecallproxy, bound to a specific deployed contract.

func (*DelegatecallproxyCaller) Owner

func (_Delegatecallproxy *DelegatecallproxyCaller) 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 DelegatecallproxyCallerRaw

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

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

func (*DelegatecallproxyCallerRaw) Call

func (_Delegatecallproxy *DelegatecallproxyCallerRaw) 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 DelegatecallproxyCallerSession

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

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

func (*DelegatecallproxyCallerSession) Owner

func (_Delegatecallproxy *DelegatecallproxyCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

type DelegatecallproxyFilterer

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

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

func NewDelegatecallproxyFilterer

func NewDelegatecallproxyFilterer(address common.Address, filterer bind.ContractFilterer) (*DelegatecallproxyFilterer, error)

NewDelegatecallproxyFilterer creates a new log filterer instance of Delegatecallproxy, bound to a specific deployed contract.

type DelegatecallproxyRaw

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

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

func (*DelegatecallproxyRaw) Call

func (_Delegatecallproxy *DelegatecallproxyRaw) 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 (*DelegatecallproxyRaw) Transact

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

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

func (*DelegatecallproxyRaw) Transfer

func (_Delegatecallproxy *DelegatecallproxyRaw) 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 DelegatecallproxySession

type DelegatecallproxySession struct {
	Contract     *Delegatecallproxy // 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
}

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

func (*DelegatecallproxySession) ChangeAdmin

func (_Delegatecallproxy *DelegatecallproxySession) ChangeAdmin(_proxy common.Address, _newAdmin common.Address) (*types.Transaction, error)

ChangeAdmin is a paid mutator transaction binding the contract method 0x1acfd02a.

Solidity: function changeAdmin(address _proxy, address _newAdmin) returns()

func (*DelegatecallproxySession) ExecuteDelegateCall

func (_Delegatecallproxy *DelegatecallproxySession) ExecuteDelegateCall(_target common.Address, _data []byte) (*types.Transaction, error)

ExecuteDelegateCall is a paid mutator transaction binding the contract method 0xb68df16d.

Solidity: function executeDelegateCall(address _target, bytes _data) returns(bytes)

func (*DelegatecallproxySession) Owner

func (_Delegatecallproxy *DelegatecallproxySession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*DelegatecallproxySession) TransferOwnership

func (_Delegatecallproxy *DelegatecallproxySession) TransferOwnership(_proxyAdmin common.Address, _newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0x6d435421.

Solidity: function transferOwnership(address _proxyAdmin, address _newOwner) returns()

type DelegatecallproxyTransactor

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

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

func NewDelegatecallproxyTransactor

func NewDelegatecallproxyTransactor(address common.Address, transactor bind.ContractTransactor) (*DelegatecallproxyTransactor, error)

NewDelegatecallproxyTransactor creates a new write-only instance of Delegatecallproxy, bound to a specific deployed contract.

func (*DelegatecallproxyTransactor) ChangeAdmin

func (_Delegatecallproxy *DelegatecallproxyTransactor) ChangeAdmin(opts *bind.TransactOpts, _proxy common.Address, _newAdmin common.Address) (*types.Transaction, error)

ChangeAdmin is a paid mutator transaction binding the contract method 0x1acfd02a.

Solidity: function changeAdmin(address _proxy, address _newAdmin) returns()

func (*DelegatecallproxyTransactor) ExecuteDelegateCall

func (_Delegatecallproxy *DelegatecallproxyTransactor) ExecuteDelegateCall(opts *bind.TransactOpts, _target common.Address, _data []byte) (*types.Transaction, error)

ExecuteDelegateCall is a paid mutator transaction binding the contract method 0xb68df16d.

Solidity: function executeDelegateCall(address _target, bytes _data) returns(bytes)

func (*DelegatecallproxyTransactor) TransferOwnership

func (_Delegatecallproxy *DelegatecallproxyTransactor) TransferOwnership(opts *bind.TransactOpts, _proxyAdmin common.Address, _newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0x6d435421.

Solidity: function transferOwnership(address _proxyAdmin, address _newOwner) returns()

type DelegatecallproxyTransactorRaw

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

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

func (*DelegatecallproxyTransactorRaw) Transact

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

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

func (*DelegatecallproxyTransactorRaw) Transfer

func (_Delegatecallproxy *DelegatecallproxyTransactorRaw) 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 DelegatecallproxyTransactorSession

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

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

func (*DelegatecallproxyTransactorSession) ChangeAdmin

func (_Delegatecallproxy *DelegatecallproxyTransactorSession) ChangeAdmin(_proxy common.Address, _newAdmin common.Address) (*types.Transaction, error)

ChangeAdmin is a paid mutator transaction binding the contract method 0x1acfd02a.

Solidity: function changeAdmin(address _proxy, address _newAdmin) returns()

func (*DelegatecallproxyTransactorSession) ExecuteDelegateCall

func (_Delegatecallproxy *DelegatecallproxyTransactorSession) ExecuteDelegateCall(_target common.Address, _data []byte) (*types.Transaction, error)

ExecuteDelegateCall is a paid mutator transaction binding the contract method 0xb68df16d.

Solidity: function executeDelegateCall(address _target, bytes _data) returns(bytes)

func (*DelegatecallproxyTransactorSession) TransferOwnership

func (_Delegatecallproxy *DelegatecallproxyTransactorSession) TransferOwnership(_proxyAdmin common.Address, _newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0x6d435421.

Solidity: function transferOwnership(address _proxyAdmin, address _newOwner) returns()

Jump to

Keyboard shortcuts

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