multicall

package
v0.0.0-...-6adf9c3 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IMulticall2ABI = IMulticall2MetaData.ABI

IMulticall2ABI is the input ABI used to generate the binding from. Deprecated: Use IMulticall2MetaData.ABI instead.

View Source
var IMulticall2MetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"requireSuccess\",\"type\":\"bool\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"structIMulticall2.Call[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"tryBlockAndAggregate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"returnData\",\"type\":\"bytes\"}],\"internalType\":\"structIMulticall2.Result[]\",\"name\":\"returnData\",\"type\":\"tuple[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

IMulticall2MetaData contains all meta data concerning the IMulticall2 contract.

Functions

This section is empty.

Types

type IMulticall2

type IMulticall2 struct {
	IMulticall2Caller     // Read-only binding to the contract
	IMulticall2Transactor // Write-only binding to the contract
	IMulticall2Filterer   // Log filterer for contract events
}

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

func NewIMulticall2

func NewIMulticall2(address common.Address, backend bind.ContractBackend) (*IMulticall2, error)

NewIMulticall2 creates a new instance of IMulticall2, bound to a specific deployed contract.

type IMulticall2Call

type IMulticall2Call struct {
	Target   common.Address
	CallData []byte
}

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

type IMulticall2Caller

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

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

func NewIMulticall2Caller

func NewIMulticall2Caller(address common.Address, caller bind.ContractCaller) (*IMulticall2Caller, error)

NewIMulticall2Caller creates a new read-only instance of IMulticall2, bound to a specific deployed contract.

type IMulticall2CallerRaw

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

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

func (*IMulticall2CallerRaw) Call

func (_IMulticall2 *IMulticall2CallerRaw) 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 IMulticall2CallerSession

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

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

type IMulticall2Filterer

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

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

func NewIMulticall2Filterer

func NewIMulticall2Filterer(address common.Address, filterer bind.ContractFilterer) (*IMulticall2Filterer, error)

NewIMulticall2Filterer creates a new log filterer instance of IMulticall2, bound to a specific deployed contract.

type IMulticall2Raw

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

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

func (*IMulticall2Raw) Call

func (_IMulticall2 *IMulticall2Raw) 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 (*IMulticall2Raw) Transact

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

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

func (*IMulticall2Raw) Transfer

func (_IMulticall2 *IMulticall2Raw) 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 IMulticall2Result

type IMulticall2Result struct {
	Success    bool
	ReturnData []byte
}

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

type IMulticall2Session

type IMulticall2Session struct {
	Contract     *IMulticall2      // 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
}

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

func (*IMulticall2Session) TryBlockAndAggregate

func (_IMulticall2 *IMulticall2Session) TryBlockAndAggregate(requireSuccess bool, calls []IMulticall2Call) (*types.Transaction, error)

TryBlockAndAggregate is a paid mutator transaction binding the contract method 0x399542e9.

Solidity: function tryBlockAndAggregate(bool requireSuccess, (address,bytes)[] calls) returns(uint256 blockNumber, bytes32 blockHash, (bool,bytes)[] returnData)

type IMulticall2Transactor

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

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

func NewIMulticall2Transactor

func NewIMulticall2Transactor(address common.Address, transactor bind.ContractTransactor) (*IMulticall2Transactor, error)

NewIMulticall2Transactor creates a new write-only instance of IMulticall2, bound to a specific deployed contract.

func (*IMulticall2Transactor) TryBlockAndAggregate

func (_IMulticall2 *IMulticall2Transactor) TryBlockAndAggregate(opts *bind.TransactOpts, requireSuccess bool, calls []IMulticall2Call) (*types.Transaction, error)

TryBlockAndAggregate is a paid mutator transaction binding the contract method 0x399542e9.

Solidity: function tryBlockAndAggregate(bool requireSuccess, (address,bytes)[] calls) returns(uint256 blockNumber, bytes32 blockHash, (bool,bytes)[] returnData)

type IMulticall2TransactorRaw

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

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

func (*IMulticall2TransactorRaw) Transact

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

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

func (*IMulticall2TransactorRaw) Transfer

func (_IMulticall2 *IMulticall2TransactorRaw) 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 IMulticall2TransactorSession

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

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

func (*IMulticall2TransactorSession) TryBlockAndAggregate

func (_IMulticall2 *IMulticall2TransactorSession) TryBlockAndAggregate(requireSuccess bool, calls []IMulticall2Call) (*types.Transaction, error)

TryBlockAndAggregate is a paid mutator transaction binding the contract method 0x399542e9.

Solidity: function tryBlockAndAggregate(bool requireSuccess, (address,bytes)[] calls) returns(uint256 blockNumber, bytes32 blockHash, (bool,bytes)[] returnData)

Jump to

Keyboard shortcuts

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