Multicall

package
v0.0.0-...-a05b099 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const MULTICALLABI = "" /* 2265-byte string literal not displayed */

MULTICALLABI is the input ABI used to generate the binding from.

Variables

This section is empty.

Functions

This section is empty.

Types

type MULTICALL

type MULTICALL struct {
	MULTICALLCaller     // Read-only binding to the contract
	MULTICALLTransactor // Write-only binding to the contract
	MULTICALLFilterer   // Log filterer for contract events
}

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

func NewMULTICALL

func NewMULTICALL(address common.Address, backend bind.ContractBackend) (*MULTICALL, error)

NewMULTICALL creates a new instance of MULTICALL, bound to a specific deployed contract.

type MULTICALLCaller

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

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

func NewMULTICALLCaller

func NewMULTICALLCaller(address common.Address, caller bind.ContractCaller) (*MULTICALLCaller, error)

NewMULTICALLCaller creates a new read-only instance of MULTICALL, bound to a specific deployed contract.

func (*MULTICALLCaller) GetBlockHash

func (_MULTICALL *MULTICALLCaller) GetBlockHash(opts *bind.CallOpts, blockNumber *big.Int) ([32]byte, error)

GetBlockHash is a free data retrieval call binding the contract method 0xee82ac5e.

Solidity: function getBlockHash(uint256 blockNumber) view returns(bytes32 blockHash)

func (*MULTICALLCaller) GetCurrentBlockCoinbase

func (_MULTICALL *MULTICALLCaller) GetCurrentBlockCoinbase(opts *bind.CallOpts) (common.Address, error)

GetCurrentBlockCoinbase is a free data retrieval call binding the contract method 0xa8b0574e.

Solidity: function getCurrentBlockCoinbase() view returns(address coinbase)

func (*MULTICALLCaller) GetCurrentBlockDifficulty

func (_MULTICALL *MULTICALLCaller) GetCurrentBlockDifficulty(opts *bind.CallOpts) (*big.Int, error)

GetCurrentBlockDifficulty is a free data retrieval call binding the contract method 0x72425d9d.

Solidity: function getCurrentBlockDifficulty() view returns(uint256 difficulty)

func (*MULTICALLCaller) GetCurrentBlockGasLimit

func (_MULTICALL *MULTICALLCaller) GetCurrentBlockGasLimit(opts *bind.CallOpts) (*big.Int, error)

GetCurrentBlockGasLimit is a free data retrieval call binding the contract method 0x86d516e8.

Solidity: function getCurrentBlockGasLimit() view returns(uint256 gaslimit)

func (*MULTICALLCaller) GetCurrentBlockTimestamp

func (_MULTICALL *MULTICALLCaller) 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 (*MULTICALLCaller) GetEthBalance

func (_MULTICALL *MULTICALLCaller) 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)

func (*MULTICALLCaller) GetLastBlockHash

func (_MULTICALL *MULTICALLCaller) GetLastBlockHash(opts *bind.CallOpts) ([32]byte, error)

GetLastBlockHash is a free data retrieval call binding the contract method 0x27e86d6e.

Solidity: function getLastBlockHash() view returns(bytes32 blockHash)

type MULTICALLCallerRaw

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

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

func (*MULTICALLCallerRaw) Call

func (_MULTICALL *MULTICALLCallerRaw) 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 MULTICALLCallerSession

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

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

func (*MULTICALLCallerSession) GetBlockHash

func (_MULTICALL *MULTICALLCallerSession) GetBlockHash(blockNumber *big.Int) ([32]byte, error)

GetBlockHash is a free data retrieval call binding the contract method 0xee82ac5e.

Solidity: function getBlockHash(uint256 blockNumber) view returns(bytes32 blockHash)

func (*MULTICALLCallerSession) GetCurrentBlockCoinbase

func (_MULTICALL *MULTICALLCallerSession) GetCurrentBlockCoinbase() (common.Address, error)

GetCurrentBlockCoinbase is a free data retrieval call binding the contract method 0xa8b0574e.

Solidity: function getCurrentBlockCoinbase() view returns(address coinbase)

func (*MULTICALLCallerSession) GetCurrentBlockDifficulty

func (_MULTICALL *MULTICALLCallerSession) GetCurrentBlockDifficulty() (*big.Int, error)

GetCurrentBlockDifficulty is a free data retrieval call binding the contract method 0x72425d9d.

Solidity: function getCurrentBlockDifficulty() view returns(uint256 difficulty)

func (*MULTICALLCallerSession) GetCurrentBlockGasLimit

func (_MULTICALL *MULTICALLCallerSession) GetCurrentBlockGasLimit() (*big.Int, error)

GetCurrentBlockGasLimit is a free data retrieval call binding the contract method 0x86d516e8.

Solidity: function getCurrentBlockGasLimit() view returns(uint256 gaslimit)

func (*MULTICALLCallerSession) GetCurrentBlockTimestamp

func (_MULTICALL *MULTICALLCallerSession) GetCurrentBlockTimestamp() (*big.Int, error)

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

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

func (*MULTICALLCallerSession) GetEthBalance

func (_MULTICALL *MULTICALLCallerSession) 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 (*MULTICALLCallerSession) GetLastBlockHash

func (_MULTICALL *MULTICALLCallerSession) GetLastBlockHash() ([32]byte, error)

GetLastBlockHash is a free data retrieval call binding the contract method 0x27e86d6e.

Solidity: function getLastBlockHash() view returns(bytes32 blockHash)

type MULTICALLFilterer

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

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

func NewMULTICALLFilterer

func NewMULTICALLFilterer(address common.Address, filterer bind.ContractFilterer) (*MULTICALLFilterer, error)

NewMULTICALLFilterer creates a new log filterer instance of MULTICALL, bound to a specific deployed contract.

type MULTICALLRaw

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

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

func (*MULTICALLRaw) Call

func (_MULTICALL *MULTICALLRaw) 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 (*MULTICALLRaw) Transact

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

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

func (*MULTICALLRaw) Transfer

func (_MULTICALL *MULTICALLRaw) 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 MULTICALLSession

type MULTICALLSession struct {
	Contract     *MULTICALL        // 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
}

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

func (*MULTICALLSession) Aggregate

func (_MULTICALL *MULTICALLSession) Aggregate(calls []MulticallCall) (*types.Transaction, error)

Aggregate is a paid mutator transaction binding the contract method 0x252dba42.

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

func (*MULTICALLSession) GetBlockHash

func (_MULTICALL *MULTICALLSession) GetBlockHash(blockNumber *big.Int) ([32]byte, error)

GetBlockHash is a free data retrieval call binding the contract method 0xee82ac5e.

Solidity: function getBlockHash(uint256 blockNumber) view returns(bytes32 blockHash)

func (*MULTICALLSession) GetCurrentBlockCoinbase

func (_MULTICALL *MULTICALLSession) GetCurrentBlockCoinbase() (common.Address, error)

GetCurrentBlockCoinbase is a free data retrieval call binding the contract method 0xa8b0574e.

Solidity: function getCurrentBlockCoinbase() view returns(address coinbase)

func (*MULTICALLSession) GetCurrentBlockDifficulty

func (_MULTICALL *MULTICALLSession) GetCurrentBlockDifficulty() (*big.Int, error)

GetCurrentBlockDifficulty is a free data retrieval call binding the contract method 0x72425d9d.

Solidity: function getCurrentBlockDifficulty() view returns(uint256 difficulty)

func (*MULTICALLSession) GetCurrentBlockGasLimit

func (_MULTICALL *MULTICALLSession) GetCurrentBlockGasLimit() (*big.Int, error)

GetCurrentBlockGasLimit is a free data retrieval call binding the contract method 0x86d516e8.

Solidity: function getCurrentBlockGasLimit() view returns(uint256 gaslimit)

func (*MULTICALLSession) GetCurrentBlockTimestamp

func (_MULTICALL *MULTICALLSession) GetCurrentBlockTimestamp() (*big.Int, error)

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

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

func (*MULTICALLSession) GetEthBalance

func (_MULTICALL *MULTICALLSession) 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 (*MULTICALLSession) GetLastBlockHash

func (_MULTICALL *MULTICALLSession) GetLastBlockHash() ([32]byte, error)

GetLastBlockHash is a free data retrieval call binding the contract method 0x27e86d6e.

Solidity: function getLastBlockHash() view returns(bytes32 blockHash)

type MULTICALLTransactor

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

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

func NewMULTICALLTransactor

func NewMULTICALLTransactor(address common.Address, transactor bind.ContractTransactor) (*MULTICALLTransactor, error)

NewMULTICALLTransactor creates a new write-only instance of MULTICALL, bound to a specific deployed contract.

func (*MULTICALLTransactor) Aggregate

func (_MULTICALL *MULTICALLTransactor) Aggregate(opts *bind.TransactOpts, calls []MulticallCall) (*types.Transaction, error)

Aggregate is a paid mutator transaction binding the contract method 0x252dba42.

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

type MULTICALLTransactorRaw

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

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

func (*MULTICALLTransactorRaw) Transact

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

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

func (*MULTICALLTransactorRaw) Transfer

func (_MULTICALL *MULTICALLTransactorRaw) 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 MULTICALLTransactorSession

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

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

func (*MULTICALLTransactorSession) Aggregate

func (_MULTICALL *MULTICALLTransactorSession) Aggregate(calls []MulticallCall) (*types.Transaction, error)

Aggregate is a paid mutator transaction binding the contract method 0x252dba42.

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

type MulticallCall

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

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

Jump to

Keyboard shortcuts

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