UniswapInterfaceMulticall

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UniswapInterfaceMulticallABI = UniswapInterfaceMulticallMetaData.ABI

UniswapInterfaceMulticallABI is the input ABI used to generate the binding from. Deprecated: Use UniswapInterfaceMulticallMetaData.ABI instead.

View Source
var UniswapInterfaceMulticallBin = UniswapInterfaceMulticallMetaData.Bin

UniswapInterfaceMulticallBin is the compiled bytecode used for deploying new contracts. Deprecated: Use UniswapInterfaceMulticallMetaData.Bin instead.

View Source
var UniswapInterfaceMulticallMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"name\":\"getCurrentBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"getEthBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"gasLimit\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"structUniswapInterfaceMulticall.Call[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"gasUsed\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"returnData\",\"type\":\"bytes\"}],\"internalType\":\"structUniswapInterfaceMulticall.Result[]\",\"name\":\"returnData\",\"type\":\"tuple[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
	Bin: "0x608060405234801561001057600080fd5b5061050f806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80630f28c97d146100465780631749e1e3146100645780634d2301cc14610085575b600080fd5b61004e610098565b60405161005b91906103da565b60405180910390f35b610077610072366004610280565b61009c565b60405161005b9291906103e3565b61004e61009336600461025f565b610213565b4290565b8051439060609067ffffffffffffffff811180156100b957600080fd5b506040519080825280602002602001820160405280156100f357816020015b6100e0610220565b8152602001906001900390816100d85790505b50905060005b835181101561020d57600080600086848151811061011357fe5b60200260200101516000015187858151811061012b57fe5b60200260200101516020015188868151811061014357fe5b60200260200101516040015192509250925060005a9050600080856001600160a01b0316858560405161017691906103be565b60006040518083038160008787f1925050503d80600081146101b4576040519150601f19603f3d011682016040523d82523d6000602084013e6101b9565b606091505b509150915060005a8403905060405180606001604052808415158152602001828152602001838152508989815181106101ee57fe5b60200260200101819052505050505050505080806001019150506100f9565b50915091565b6001600160a01b03163190565b604051806060016040528060001515815260200160008152602001606081525090565b80356001600160a01b038116811461025a57600080fd5b919050565b600060208284031215610270578081fd5b61027982610243565b9392505050565b60006020808385031215610292578182fd5b823567ffffffffffffffff808211156102a9578384fd5b818501915085601f8301126102bc578384fd5b8135818111156102c857fe5b6102d58485830201610485565b81815284810190848601875b848110156103af5781358701601f196060828e0382011215610301578a8bfd5b60408051606081018181108b8211171561031757fe5b8252610324848d01610243565b8152818401358c82015260608401358a81111561033f578d8efd5b8085019450508e603f850112610353578c8dfd5b8b8401358a81111561036157fe5b6103718d85601f84011601610485565b93508084528f83828701011115610386578d8efd5b808386018e86013783018c018d90529081019190915285525092870192908701906001016102e1565b50909998505050505050505050565b600082516103d08184602087016104a9565b9190910192915050565b90815260200190565b600060408083018584526020828186015281865180845260609350838701915083838202880101838901875b8381101561047557898303605f19018552815180511515845286810151878501528801518884018890528051888501819052608061045282828801858c016104a9565b96880196601f91909101601f19169490940190930192509085019060010161040f565b50909a9950505050505050505050565b60405181810167ffffffffffffffff811182821017156104a157fe5b604052919050565b60005b838110156104c45781810151838201526020016104ac565b838111156104d3576000848401525b5050505056fea2646970667358221220582b66fde0ffa7e74e3225603599110189a768875cc3770af6139a5d3a89d47964736f6c63430007060033",
}

UniswapInterfaceMulticallMetaData contains all meta data concerning the UniswapInterfaceMulticall contract.

Functions

This section is empty.

Types

type UniswapInterfaceMulticall

type UniswapInterfaceMulticall struct {
	UniswapInterfaceMulticallCaller     // Read-only binding to the contract
	UniswapInterfaceMulticallTransactor // Write-only binding to the contract
	UniswapInterfaceMulticallFilterer   // Log filterer for contract events
}

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

func DeployUniswapInterfaceMulticall

func DeployUniswapInterfaceMulticall(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *UniswapInterfaceMulticall, error)

DeployUniswapInterfaceMulticall deploys a new Ethereum contract, binding an instance of UniswapInterfaceMulticall to it.

func NewUniswapInterfaceMulticall

func NewUniswapInterfaceMulticall(address common.Address, backend bind.ContractBackend) (*UniswapInterfaceMulticall, error)

NewUniswapInterfaceMulticall creates a new instance of UniswapInterfaceMulticall, bound to a specific deployed contract.

type UniswapInterfaceMulticallCall

type UniswapInterfaceMulticallCall struct {
	Target   common.Address
	GasLimit *big.Int
	CallData []byte
}

UniswapInterfaceMulticallCall is an auto generated low-level Go binding around an user-defined struct.

type UniswapInterfaceMulticallCaller

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

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

func NewUniswapInterfaceMulticallCaller

func NewUniswapInterfaceMulticallCaller(address common.Address, caller bind.ContractCaller) (*UniswapInterfaceMulticallCaller, error)

NewUniswapInterfaceMulticallCaller creates a new read-only instance of UniswapInterfaceMulticall, bound to a specific deployed contract.

func (*UniswapInterfaceMulticallCaller) GetCurrentBlockTimestamp

func (_UniswapInterfaceMulticall *UniswapInterfaceMulticallCaller) GetCurrentBlockTimestamp(opts *bind.CallOpts) (*big.Int, error)

GetCurrentBlockTimestamp is a free data retrieval call binding the contract method 0x0f28c97d.

Solidity: function getCurrentBlockTimestamp() view returns(uint256 timestamp)

func (*UniswapInterfaceMulticallCaller) GetEthBalance

func (_UniswapInterfaceMulticall *UniswapInterfaceMulticallCaller) GetEthBalance(opts *bind.CallOpts, addr common.Address) (*big.Int, error)

GetEthBalance is a free data retrieval call binding the contract method 0x4d2301cc.

Solidity: function getEthBalance(address addr) view returns(uint256 balance)

type UniswapInterfaceMulticallCallerRaw

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

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

func (*UniswapInterfaceMulticallCallerRaw) Call

func (_UniswapInterfaceMulticall *UniswapInterfaceMulticallCallerRaw) 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 UniswapInterfaceMulticallCallerSession

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

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

func (*UniswapInterfaceMulticallCallerSession) GetCurrentBlockTimestamp

func (_UniswapInterfaceMulticall *UniswapInterfaceMulticallCallerSession) GetCurrentBlockTimestamp() (*big.Int, error)

GetCurrentBlockTimestamp is a free data retrieval call binding the contract method 0x0f28c97d.

Solidity: function getCurrentBlockTimestamp() view returns(uint256 timestamp)

func (*UniswapInterfaceMulticallCallerSession) GetEthBalance

func (_UniswapInterfaceMulticall *UniswapInterfaceMulticallCallerSession) GetEthBalance(addr common.Address) (*big.Int, error)

GetEthBalance is a free data retrieval call binding the contract method 0x4d2301cc.

Solidity: function getEthBalance(address addr) view returns(uint256 balance)

type UniswapInterfaceMulticallFilterer

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

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

func NewUniswapInterfaceMulticallFilterer

func NewUniswapInterfaceMulticallFilterer(address common.Address, filterer bind.ContractFilterer) (*UniswapInterfaceMulticallFilterer, error)

NewUniswapInterfaceMulticallFilterer creates a new log filterer instance of UniswapInterfaceMulticall, bound to a specific deployed contract.

type UniswapInterfaceMulticallRaw

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

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

func (*UniswapInterfaceMulticallRaw) Call

func (_UniswapInterfaceMulticall *UniswapInterfaceMulticallRaw) 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 (*UniswapInterfaceMulticallRaw) Transact

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

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

func (*UniswapInterfaceMulticallRaw) Transfer

func (_UniswapInterfaceMulticall *UniswapInterfaceMulticallRaw) 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 UniswapInterfaceMulticallResult

type UniswapInterfaceMulticallResult struct {
	Success    bool
	GasUsed    *big.Int
	ReturnData []byte
}

UniswapInterfaceMulticallResult is an auto generated low-level Go binding around an user-defined struct.

type UniswapInterfaceMulticallSession

type UniswapInterfaceMulticallSession struct {
	Contract     *UniswapInterfaceMulticall // 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
}

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

func (*UniswapInterfaceMulticallSession) GetCurrentBlockTimestamp

func (_UniswapInterfaceMulticall *UniswapInterfaceMulticallSession) GetCurrentBlockTimestamp() (*big.Int, error)

GetCurrentBlockTimestamp is a free data retrieval call binding the contract method 0x0f28c97d.

Solidity: function getCurrentBlockTimestamp() view returns(uint256 timestamp)

func (*UniswapInterfaceMulticallSession) GetEthBalance

func (_UniswapInterfaceMulticall *UniswapInterfaceMulticallSession) GetEthBalance(addr common.Address) (*big.Int, error)

GetEthBalance is a free data retrieval call binding the contract method 0x4d2301cc.

Solidity: function getEthBalance(address addr) view returns(uint256 balance)

func (*UniswapInterfaceMulticallSession) Multicall

func (_UniswapInterfaceMulticall *UniswapInterfaceMulticallSession) Multicall(calls []UniswapInterfaceMulticallCall) (*types.Transaction, error)

Multicall is a paid mutator transaction binding the contract method 0x1749e1e3.

Solidity: function multicall((address,uint256,bytes)[] calls) returns(uint256 blockNumber, (bool,uint256,bytes)[] returnData)

type UniswapInterfaceMulticallTransactor

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

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

func NewUniswapInterfaceMulticallTransactor

func NewUniswapInterfaceMulticallTransactor(address common.Address, transactor bind.ContractTransactor) (*UniswapInterfaceMulticallTransactor, error)

NewUniswapInterfaceMulticallTransactor creates a new write-only instance of UniswapInterfaceMulticall, bound to a specific deployed contract.

func (*UniswapInterfaceMulticallTransactor) Multicall

func (_UniswapInterfaceMulticall *UniswapInterfaceMulticallTransactor) Multicall(opts *bind.TransactOpts, calls []UniswapInterfaceMulticallCall) (*types.Transaction, error)

Multicall is a paid mutator transaction binding the contract method 0x1749e1e3.

Solidity: function multicall((address,uint256,bytes)[] calls) returns(uint256 blockNumber, (bool,uint256,bytes)[] returnData)

type UniswapInterfaceMulticallTransactorRaw

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

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

func (*UniswapInterfaceMulticallTransactorRaw) Transact

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

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

func (*UniswapInterfaceMulticallTransactorRaw) Transfer

func (_UniswapInterfaceMulticall *UniswapInterfaceMulticallTransactorRaw) 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 UniswapInterfaceMulticallTransactorSession

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

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

func (*UniswapInterfaceMulticallTransactorSession) Multicall

func (_UniswapInterfaceMulticall *UniswapInterfaceMulticallTransactorSession) Multicall(calls []UniswapInterfaceMulticallCall) (*types.Transaction, error)

Multicall is a paid mutator transaction binding the contract method 0x1749e1e3.

Solidity: function multicall((address,uint256,bytes)[] calls) returns(uint256 blockNumber, (bool,uint256,bytes)[] returnData)

Jump to

Keyboard shortcuts

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