Documentation
¶
Index ¶
- Variables
- type AggregateOutput
- type BlockAndAggregateOutput
- type Erc20
- func (c *Erc20) Instance(backend bind.ContractBackend, addr common.Address) *bind.BoundContract
- func (erc20 *Erc20) PackAllowance(owner common.Address, spender common.Address) []byte
- func (erc20 *Erc20) PackBalanceOf(account common.Address) []byte
- func (erc20 *Erc20) PackDecimals() []byte
- func (erc20 *Erc20) PackName() []byte
- func (erc20 *Erc20) PackSymbol() []byte
- func (erc20 *Erc20) PackTotalSupply() []byte
- func (erc20 *Erc20) TryPackAllowance(owner common.Address, spender common.Address) ([]byte, error)
- func (erc20 *Erc20) TryPackBalanceOf(account common.Address) ([]byte, error)
- func (erc20 *Erc20) TryPackDecimals() ([]byte, error)
- func (erc20 *Erc20) TryPackName() ([]byte, error)
- func (erc20 *Erc20) TryPackSymbol() ([]byte, error)
- func (erc20 *Erc20) TryPackTotalSupply() ([]byte, error)
- func (erc20 *Erc20) UnpackAllowance(data []byte) (*big.Int, error)
- func (erc20 *Erc20) UnpackBalanceOf(data []byte) (*big.Int, error)
- func (erc20 *Erc20) UnpackDecimals(data []byte) (uint8, error)
- func (erc20 *Erc20) UnpackName(data []byte) (string, error)
- func (erc20 *Erc20) UnpackSymbol(data []byte) (string, error)
- func (erc20 *Erc20) UnpackTotalSupply(data []byte) (*big.Int, error)
- type Multicall3
- func (c *Multicall3) Instance(backend bind.ContractBackend, addr common.Address) *bind.BoundContract
- func (multicall3 *Multicall3) PackAggregate(calls []Multicall3Call) []byte
- func (multicall3 *Multicall3) PackAggregate3(calls []Multicall3Call3) []byte
- func (multicall3 *Multicall3) PackAggregate3Value(calls []Multicall3Call3Value) []byte
- func (multicall3 *Multicall3) PackBlockAndAggregate(calls []Multicall3Call) []byte
- func (multicall3 *Multicall3) PackGetBasefee() []byte
- func (multicall3 *Multicall3) PackGetBlockHash(blockNumber *big.Int) []byte
- func (multicall3 *Multicall3) PackGetBlockNumber() []byte
- func (multicall3 *Multicall3) PackGetChainId() []byte
- func (multicall3 *Multicall3) PackGetCurrentBlockCoinbase() []byte
- func (multicall3 *Multicall3) PackGetCurrentBlockDifficulty() []byte
- func (multicall3 *Multicall3) PackGetCurrentBlockGasLimit() []byte
- func (multicall3 *Multicall3) PackGetCurrentBlockTimestamp() []byte
- func (multicall3 *Multicall3) PackGetEthBalance(addr common.Address) []byte
- func (multicall3 *Multicall3) PackGetLastBlockHash() []byte
- func (multicall3 *Multicall3) PackTryAggregate(requireSuccess bool, calls []Multicall3Call) []byte
- func (multicall3 *Multicall3) PackTryBlockAndAggregate(requireSuccess bool, calls []Multicall3Call) []byte
- func (multicall3 *Multicall3) TryPackAggregate(calls []Multicall3Call) ([]byte, error)
- func (multicall3 *Multicall3) TryPackAggregate3(calls []Multicall3Call3) ([]byte, error)
- func (multicall3 *Multicall3) TryPackAggregate3Value(calls []Multicall3Call3Value) ([]byte, error)
- func (multicall3 *Multicall3) TryPackBlockAndAggregate(calls []Multicall3Call) ([]byte, error)
- func (multicall3 *Multicall3) TryPackGetBasefee() ([]byte, error)
- func (multicall3 *Multicall3) TryPackGetBlockHash(blockNumber *big.Int) ([]byte, error)
- func (multicall3 *Multicall3) TryPackGetBlockNumber() ([]byte, error)
- func (multicall3 *Multicall3) TryPackGetChainId() ([]byte, error)
- func (multicall3 *Multicall3) TryPackGetCurrentBlockCoinbase() ([]byte, error)
- func (multicall3 *Multicall3) TryPackGetCurrentBlockDifficulty() ([]byte, error)
- func (multicall3 *Multicall3) TryPackGetCurrentBlockGasLimit() ([]byte, error)
- func (multicall3 *Multicall3) TryPackGetCurrentBlockTimestamp() ([]byte, error)
- func (multicall3 *Multicall3) TryPackGetEthBalance(addr common.Address) ([]byte, error)
- func (multicall3 *Multicall3) TryPackGetLastBlockHash() ([]byte, error)
- func (multicall3 *Multicall3) TryPackTryAggregate(requireSuccess bool, calls []Multicall3Call) ([]byte, error)
- func (multicall3 *Multicall3) TryPackTryBlockAndAggregate(requireSuccess bool, calls []Multicall3Call) ([]byte, error)
- func (multicall3 *Multicall3) UnpackAggregate(data []byte) (AggregateOutput, error)
- func (multicall3 *Multicall3) UnpackAggregate3(data []byte) ([]Multicall3Result, error)
- func (multicall3 *Multicall3) UnpackAggregate3Value(data []byte) ([]Multicall3Result, error)
- func (multicall3 *Multicall3) UnpackBlockAndAggregate(data []byte) (BlockAndAggregateOutput, error)
- func (multicall3 *Multicall3) UnpackGetBasefee(data []byte) (*big.Int, error)
- func (multicall3 *Multicall3) UnpackGetBlockHash(data []byte) ([32]byte, error)
- func (multicall3 *Multicall3) UnpackGetBlockNumber(data []byte) (*big.Int, error)
- func (multicall3 *Multicall3) UnpackGetChainId(data []byte) (*big.Int, error)
- func (multicall3 *Multicall3) UnpackGetCurrentBlockCoinbase(data []byte) (common.Address, error)
- func (multicall3 *Multicall3) UnpackGetCurrentBlockDifficulty(data []byte) (*big.Int, error)
- func (multicall3 *Multicall3) UnpackGetCurrentBlockGasLimit(data []byte) (*big.Int, error)
- func (multicall3 *Multicall3) UnpackGetCurrentBlockTimestamp(data []byte) (*big.Int, error)
- func (multicall3 *Multicall3) UnpackGetEthBalance(data []byte) (*big.Int, error)
- func (multicall3 *Multicall3) UnpackGetLastBlockHash(data []byte) ([32]byte, error)
- func (multicall3 *Multicall3) UnpackTryAggregate(data []byte) ([]Multicall3Result, error)
- func (multicall3 *Multicall3) UnpackTryBlockAndAggregate(data []byte) (TryBlockAndAggregateOutput, error)
- type Multicall3Call
- type Multicall3Call3
- type Multicall3Call3Value
- type Multicall3Result
- type TryBlockAndAggregateOutput
Constants ¶
This section is empty.
Variables ¶
var Erc20MetaData = bind.MetaData{
ABI: "[{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
ID: "Erc20",
}
Erc20MetaData contains all meta data concerning the Erc20 contract.
var Multicall3MetaData = bind.MetaData{
ABI: "[{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"structMulticall3.Call[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"aggregate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"},{\"internalType\":\"bytes[]\",\"name\":\"returnData\",\"type\":\"bytes[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"allowFailure\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"structMulticall3.Call3[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"aggregate3\",\"outputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"returnData\",\"type\":\"bytes\"}],\"internalType\":\"structMulticall3.Result[]\",\"name\":\"returnData\",\"type\":\"tuple[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"allowFailure\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"structMulticall3.Call3Value[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"aggregate3Value\",\"outputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"returnData\",\"type\":\"bytes\"}],\"internalType\":\"structMulticall3.Result[]\",\"name\":\"returnData\",\"type\":\"tuple[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"structMulticall3.Call[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"blockAndAggregate\",\"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\":\"structMulticall3.Result[]\",\"name\":\"returnData\",\"type\":\"tuple[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"basefee\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"}],\"name\":\"getBlockHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"chainid\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrentBlockCoinbase\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"coinbase\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrentBlockDifficulty\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"difficulty\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrentBlockGasLimit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"gaslimit\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"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\":[],\"name\":\"getLastBlockHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"requireSuccess\",\"type\":\"bool\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"structMulticall3.Call[]\",\"name\":\"calls\",\"type\":\"tuple[]\"}],\"name\":\"tryAggregate\",\"outputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"returnData\",\"type\":\"bytes\"}],\"internalType\":\"structMulticall3.Result[]\",\"name\":\"returnData\",\"type\":\"tuple[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"requireSuccess\",\"type\":\"bool\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callData\",\"type\":\"bytes\"}],\"internalType\":\"structMulticall3.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\":\"structMulticall3.Result[]\",\"name\":\"returnData\",\"type\":\"tuple[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"}]",
ID: "Multicall3",
}
Multicall3MetaData contains all meta data concerning the Multicall3 contract.
Functions ¶
This section is empty.
Types ¶
type AggregateOutput ¶
AggregateOutput serves as a container for the return parameters of contract method Aggregate.
type BlockAndAggregateOutput ¶
type BlockAndAggregateOutput struct {
BlockNumber *big.Int
BlockHash [32]byte
ReturnData []Multicall3Result
}
BlockAndAggregateOutput serves as a container for the return parameters of contract method BlockAndAggregate.
type Erc20 ¶
type Erc20 struct {
// contains filtered or unexported fields
}
Erc20 is an auto generated Go binding around an Ethereum contract.
func (*Erc20) Instance ¶
func (c *Erc20) Instance(backend bind.ContractBackend, addr common.Address) *bind.BoundContract
Instance creates a wrapper for a deployed contract instance at the given address. Use this to create the instance object passed to abigen v2 library functions Call, Transact, etc.
func (*Erc20) PackAllowance ¶
PackAllowance is the Go binding used to pack the parameters required for calling the contract method with ID 0xdd62ed3e. This method will panic if any invalid/nil inputs are passed.
Solidity: function allowance(address owner, address spender) view returns(uint256)
func (*Erc20) PackBalanceOf ¶
PackBalanceOf is the Go binding used to pack the parameters required for calling the contract method with ID 0x70a08231. This method will panic if any invalid/nil inputs are passed.
Solidity: function balanceOf(address account) view returns(uint256)
func (*Erc20) PackDecimals ¶
PackDecimals is the Go binding used to pack the parameters required for calling the contract method with ID 0x313ce567. This method will panic if any invalid/nil inputs are passed.
Solidity: function decimals() view returns(uint8)
func (*Erc20) PackName ¶
PackName is the Go binding used to pack the parameters required for calling the contract method with ID 0x06fdde03. This method will panic if any invalid/nil inputs are passed.
Solidity: function name() view returns(string)
func (*Erc20) PackSymbol ¶
PackSymbol is the Go binding used to pack the parameters required for calling the contract method with ID 0x95d89b41. This method will panic if any invalid/nil inputs are passed.
Solidity: function symbol() view returns(string)
func (*Erc20) PackTotalSupply ¶
PackTotalSupply is the Go binding used to pack the parameters required for calling the contract method with ID 0x18160ddd. This method will panic if any invalid/nil inputs are passed.
Solidity: function totalSupply() view returns(uint256)
func (*Erc20) TryPackAllowance ¶
TryPackAllowance is the Go binding used to pack the parameters required for calling the contract method with ID 0xdd62ed3e. This method will return an error if any inputs are invalid/nil.
Solidity: function allowance(address owner, address spender) view returns(uint256)
func (*Erc20) TryPackBalanceOf ¶
TryPackBalanceOf is the Go binding used to pack the parameters required for calling the contract method with ID 0x70a08231. This method will return an error if any inputs are invalid/nil.
Solidity: function balanceOf(address account) view returns(uint256)
func (*Erc20) TryPackDecimals ¶
TryPackDecimals is the Go binding used to pack the parameters required for calling the contract method with ID 0x313ce567. This method will return an error if any inputs are invalid/nil.
Solidity: function decimals() view returns(uint8)
func (*Erc20) TryPackName ¶
TryPackName is the Go binding used to pack the parameters required for calling the contract method with ID 0x06fdde03. This method will return an error if any inputs are invalid/nil.
Solidity: function name() view returns(string)
func (*Erc20) TryPackSymbol ¶
TryPackSymbol is the Go binding used to pack the parameters required for calling the contract method with ID 0x95d89b41. This method will return an error if any inputs are invalid/nil.
Solidity: function symbol() view returns(string)
func (*Erc20) TryPackTotalSupply ¶
TryPackTotalSupply is the Go binding used to pack the parameters required for calling the contract method with ID 0x18160ddd. This method will return an error if any inputs are invalid/nil.
Solidity: function totalSupply() view returns(uint256)
func (*Erc20) UnpackAllowance ¶
UnpackAllowance is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0xdd62ed3e.
Solidity: function allowance(address owner, address spender) view returns(uint256)
func (*Erc20) UnpackBalanceOf ¶
UnpackBalanceOf is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0x70a08231.
Solidity: function balanceOf(address account) view returns(uint256)
func (*Erc20) UnpackDecimals ¶
UnpackDecimals is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*Erc20) UnpackName ¶
UnpackName is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0x06fdde03.
Solidity: function name() view returns(string)
func (*Erc20) UnpackSymbol ¶
UnpackSymbol is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0x95d89b41.
Solidity: function symbol() view returns(string)
type Multicall3 ¶
type Multicall3 struct {
// contains filtered or unexported fields
}
Multicall3 is an auto generated Go binding around an Ethereum contract.
func NewMulticall3 ¶
func NewMulticall3() *Multicall3
NewMulticall3 creates a new instance of Multicall3.
func (*Multicall3) Instance ¶
func (c *Multicall3) Instance(backend bind.ContractBackend, addr common.Address) *bind.BoundContract
Instance creates a wrapper for a deployed contract instance at the given address. Use this to create the instance object passed to abigen v2 library functions Call, Transact, etc.
func (*Multicall3) PackAggregate ¶
func (multicall3 *Multicall3) PackAggregate(calls []Multicall3Call) []byte
PackAggregate is the Go binding used to pack the parameters required for calling the contract method with ID 0x252dba42. This method will panic if any invalid/nil inputs are passed.
Solidity: function aggregate((address,bytes)[] calls) payable returns(uint256 blockNumber, bytes[] returnData)
func (*Multicall3) PackAggregate3 ¶
func (multicall3 *Multicall3) PackAggregate3(calls []Multicall3Call3) []byte
PackAggregate3 is the Go binding used to pack the parameters required for calling the contract method with ID 0x82ad56cb. This method will panic if any invalid/nil inputs are passed.
Solidity: function aggregate3((address,bool,bytes)[] calls) payable returns((bool,bytes)[] returnData)
func (*Multicall3) PackAggregate3Value ¶
func (multicall3 *Multicall3) PackAggregate3Value(calls []Multicall3Call3Value) []byte
PackAggregate3Value is the Go binding used to pack the parameters required for calling the contract method with ID 0x174dea71. This method will panic if any invalid/nil inputs are passed.
Solidity: function aggregate3Value((address,bool,uint256,bytes)[] calls) payable returns((bool,bytes)[] returnData)
func (*Multicall3) PackBlockAndAggregate ¶
func (multicall3 *Multicall3) PackBlockAndAggregate(calls []Multicall3Call) []byte
PackBlockAndAggregate is the Go binding used to pack the parameters required for calling the contract method with ID 0xc3077fa9. This method will panic if any invalid/nil inputs are passed.
Solidity: function blockAndAggregate((address,bytes)[] calls) payable returns(uint256 blockNumber, bytes32 blockHash, (bool,bytes)[] returnData)
func (*Multicall3) PackGetBasefee ¶
func (multicall3 *Multicall3) PackGetBasefee() []byte
PackGetBasefee is the Go binding used to pack the parameters required for calling the contract method with ID 0x3e64a696. This method will panic if any invalid/nil inputs are passed.
Solidity: function getBasefee() view returns(uint256 basefee)
func (*Multicall3) PackGetBlockHash ¶
func (multicall3 *Multicall3) PackGetBlockHash(blockNumber *big.Int) []byte
PackGetBlockHash is the Go binding used to pack the parameters required for calling the contract method with ID 0xee82ac5e. This method will panic if any invalid/nil inputs are passed.
Solidity: function getBlockHash(uint256 blockNumber) view returns(bytes32 blockHash)
func (*Multicall3) PackGetBlockNumber ¶
func (multicall3 *Multicall3) PackGetBlockNumber() []byte
PackGetBlockNumber is the Go binding used to pack the parameters required for calling the contract method with ID 0x42cbb15c. This method will panic if any invalid/nil inputs are passed.
Solidity: function getBlockNumber() view returns(uint256 blockNumber)
func (*Multicall3) PackGetChainId ¶
func (multicall3 *Multicall3) PackGetChainId() []byte
PackGetChainId is the Go binding used to pack the parameters required for calling the contract method with ID 0x3408e470. This method will panic if any invalid/nil inputs are passed.
Solidity: function getChainId() view returns(uint256 chainid)
func (*Multicall3) PackGetCurrentBlockCoinbase ¶
func (multicall3 *Multicall3) PackGetCurrentBlockCoinbase() []byte
PackGetCurrentBlockCoinbase is the Go binding used to pack the parameters required for calling the contract method with ID 0xa8b0574e. This method will panic if any invalid/nil inputs are passed.
Solidity: function getCurrentBlockCoinbase() view returns(address coinbase)
func (*Multicall3) PackGetCurrentBlockDifficulty ¶
func (multicall3 *Multicall3) PackGetCurrentBlockDifficulty() []byte
PackGetCurrentBlockDifficulty is the Go binding used to pack the parameters required for calling the contract method with ID 0x72425d9d. This method will panic if any invalid/nil inputs are passed.
Solidity: function getCurrentBlockDifficulty() view returns(uint256 difficulty)
func (*Multicall3) PackGetCurrentBlockGasLimit ¶
func (multicall3 *Multicall3) PackGetCurrentBlockGasLimit() []byte
PackGetCurrentBlockGasLimit is the Go binding used to pack the parameters required for calling the contract method with ID 0x86d516e8. This method will panic if any invalid/nil inputs are passed.
Solidity: function getCurrentBlockGasLimit() view returns(uint256 gaslimit)
func (*Multicall3) PackGetCurrentBlockTimestamp ¶
func (multicall3 *Multicall3) PackGetCurrentBlockTimestamp() []byte
PackGetCurrentBlockTimestamp is the Go binding used to pack the parameters required for calling the contract method with ID 0x0f28c97d. This method will panic if any invalid/nil inputs are passed.
Solidity: function getCurrentBlockTimestamp() view returns(uint256 timestamp)
func (*Multicall3) PackGetEthBalance ¶
func (multicall3 *Multicall3) PackGetEthBalance(addr common.Address) []byte
PackGetEthBalance is the Go binding used to pack the parameters required for calling the contract method with ID 0x4d2301cc. This method will panic if any invalid/nil inputs are passed.
Solidity: function getEthBalance(address addr) view returns(uint256 balance)
func (*Multicall3) PackGetLastBlockHash ¶
func (multicall3 *Multicall3) PackGetLastBlockHash() []byte
PackGetLastBlockHash is the Go binding used to pack the parameters required for calling the contract method with ID 0x27e86d6e. This method will panic if any invalid/nil inputs are passed.
Solidity: function getLastBlockHash() view returns(bytes32 blockHash)
func (*Multicall3) PackTryAggregate ¶
func (multicall3 *Multicall3) PackTryAggregate(requireSuccess bool, calls []Multicall3Call) []byte
PackTryAggregate is the Go binding used to pack the parameters required for calling the contract method with ID 0xbce38bd7. This method will panic if any invalid/nil inputs are passed.
Solidity: function tryAggregate(bool requireSuccess, (address,bytes)[] calls) payable returns((bool,bytes)[] returnData)
func (*Multicall3) PackTryBlockAndAggregate ¶
func (multicall3 *Multicall3) PackTryBlockAndAggregate(requireSuccess bool, calls []Multicall3Call) []byte
PackTryBlockAndAggregate is the Go binding used to pack the parameters required for calling the contract method with ID 0x399542e9. This method will panic if any invalid/nil inputs are passed.
Solidity: function tryBlockAndAggregate(bool requireSuccess, (address,bytes)[] calls) payable returns(uint256 blockNumber, bytes32 blockHash, (bool,bytes)[] returnData)
func (*Multicall3) TryPackAggregate ¶
func (multicall3 *Multicall3) TryPackAggregate(calls []Multicall3Call) ([]byte, error)
TryPackAggregate is the Go binding used to pack the parameters required for calling the contract method with ID 0x252dba42. This method will return an error if any inputs are invalid/nil.
Solidity: function aggregate((address,bytes)[] calls) payable returns(uint256 blockNumber, bytes[] returnData)
func (*Multicall3) TryPackAggregate3 ¶
func (multicall3 *Multicall3) TryPackAggregate3(calls []Multicall3Call3) ([]byte, error)
TryPackAggregate3 is the Go binding used to pack the parameters required for calling the contract method with ID 0x82ad56cb. This method will return an error if any inputs are invalid/nil.
Solidity: function aggregate3((address,bool,bytes)[] calls) payable returns((bool,bytes)[] returnData)
func (*Multicall3) TryPackAggregate3Value ¶
func (multicall3 *Multicall3) TryPackAggregate3Value(calls []Multicall3Call3Value) ([]byte, error)
TryPackAggregate3Value is the Go binding used to pack the parameters required for calling the contract method with ID 0x174dea71. This method will return an error if any inputs are invalid/nil.
Solidity: function aggregate3Value((address,bool,uint256,bytes)[] calls) payable returns((bool,bytes)[] returnData)
func (*Multicall3) TryPackBlockAndAggregate ¶
func (multicall3 *Multicall3) TryPackBlockAndAggregate(calls []Multicall3Call) ([]byte, error)
TryPackBlockAndAggregate is the Go binding used to pack the parameters required for calling the contract method with ID 0xc3077fa9. This method will return an error if any inputs are invalid/nil.
Solidity: function blockAndAggregate((address,bytes)[] calls) payable returns(uint256 blockNumber, bytes32 blockHash, (bool,bytes)[] returnData)
func (*Multicall3) TryPackGetBasefee ¶
func (multicall3 *Multicall3) TryPackGetBasefee() ([]byte, error)
TryPackGetBasefee is the Go binding used to pack the parameters required for calling the contract method with ID 0x3e64a696. This method will return an error if any inputs are invalid/nil.
Solidity: function getBasefee() view returns(uint256 basefee)
func (*Multicall3) TryPackGetBlockHash ¶
func (multicall3 *Multicall3) TryPackGetBlockHash(blockNumber *big.Int) ([]byte, error)
TryPackGetBlockHash is the Go binding used to pack the parameters required for calling the contract method with ID 0xee82ac5e. This method will return an error if any inputs are invalid/nil.
Solidity: function getBlockHash(uint256 blockNumber) view returns(bytes32 blockHash)
func (*Multicall3) TryPackGetBlockNumber ¶
func (multicall3 *Multicall3) TryPackGetBlockNumber() ([]byte, error)
TryPackGetBlockNumber is the Go binding used to pack the parameters required for calling the contract method with ID 0x42cbb15c. This method will return an error if any inputs are invalid/nil.
Solidity: function getBlockNumber() view returns(uint256 blockNumber)
func (*Multicall3) TryPackGetChainId ¶
func (multicall3 *Multicall3) TryPackGetChainId() ([]byte, error)
TryPackGetChainId is the Go binding used to pack the parameters required for calling the contract method with ID 0x3408e470. This method will return an error if any inputs are invalid/nil.
Solidity: function getChainId() view returns(uint256 chainid)
func (*Multicall3) TryPackGetCurrentBlockCoinbase ¶
func (multicall3 *Multicall3) TryPackGetCurrentBlockCoinbase() ([]byte, error)
TryPackGetCurrentBlockCoinbase is the Go binding used to pack the parameters required for calling the contract method with ID 0xa8b0574e. This method will return an error if any inputs are invalid/nil.
Solidity: function getCurrentBlockCoinbase() view returns(address coinbase)
func (*Multicall3) TryPackGetCurrentBlockDifficulty ¶
func (multicall3 *Multicall3) TryPackGetCurrentBlockDifficulty() ([]byte, error)
TryPackGetCurrentBlockDifficulty is the Go binding used to pack the parameters required for calling the contract method with ID 0x72425d9d. This method will return an error if any inputs are invalid/nil.
Solidity: function getCurrentBlockDifficulty() view returns(uint256 difficulty)
func (*Multicall3) TryPackGetCurrentBlockGasLimit ¶
func (multicall3 *Multicall3) TryPackGetCurrentBlockGasLimit() ([]byte, error)
TryPackGetCurrentBlockGasLimit is the Go binding used to pack the parameters required for calling the contract method with ID 0x86d516e8. This method will return an error if any inputs are invalid/nil.
Solidity: function getCurrentBlockGasLimit() view returns(uint256 gaslimit)
func (*Multicall3) TryPackGetCurrentBlockTimestamp ¶
func (multicall3 *Multicall3) TryPackGetCurrentBlockTimestamp() ([]byte, error)
TryPackGetCurrentBlockTimestamp is the Go binding used to pack the parameters required for calling the contract method with ID 0x0f28c97d. This method will return an error if any inputs are invalid/nil.
Solidity: function getCurrentBlockTimestamp() view returns(uint256 timestamp)
func (*Multicall3) TryPackGetEthBalance ¶
func (multicall3 *Multicall3) TryPackGetEthBalance(addr common.Address) ([]byte, error)
TryPackGetEthBalance is the Go binding used to pack the parameters required for calling the contract method with ID 0x4d2301cc. This method will return an error if any inputs are invalid/nil.
Solidity: function getEthBalance(address addr) view returns(uint256 balance)
func (*Multicall3) TryPackGetLastBlockHash ¶
func (multicall3 *Multicall3) TryPackGetLastBlockHash() ([]byte, error)
TryPackGetLastBlockHash is the Go binding used to pack the parameters required for calling the contract method with ID 0x27e86d6e. This method will return an error if any inputs are invalid/nil.
Solidity: function getLastBlockHash() view returns(bytes32 blockHash)
func (*Multicall3) TryPackTryAggregate ¶
func (multicall3 *Multicall3) TryPackTryAggregate(requireSuccess bool, calls []Multicall3Call) ([]byte, error)
TryPackTryAggregate is the Go binding used to pack the parameters required for calling the contract method with ID 0xbce38bd7. This method will return an error if any inputs are invalid/nil.
Solidity: function tryAggregate(bool requireSuccess, (address,bytes)[] calls) payable returns((bool,bytes)[] returnData)
func (*Multicall3) TryPackTryBlockAndAggregate ¶
func (multicall3 *Multicall3) TryPackTryBlockAndAggregate(requireSuccess bool, calls []Multicall3Call) ([]byte, error)
TryPackTryBlockAndAggregate is the Go binding used to pack the parameters required for calling the contract method with ID 0x399542e9. This method will return an error if any inputs are invalid/nil.
Solidity: function tryBlockAndAggregate(bool requireSuccess, (address,bytes)[] calls) payable returns(uint256 blockNumber, bytes32 blockHash, (bool,bytes)[] returnData)
func (*Multicall3) UnpackAggregate ¶
func (multicall3 *Multicall3) UnpackAggregate(data []byte) (AggregateOutput, error)
UnpackAggregate is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0x252dba42.
Solidity: function aggregate((address,bytes)[] calls) payable returns(uint256 blockNumber, bytes[] returnData)
func (*Multicall3) UnpackAggregate3 ¶
func (multicall3 *Multicall3) UnpackAggregate3(data []byte) ([]Multicall3Result, error)
UnpackAggregate3 is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0x82ad56cb.
Solidity: function aggregate3((address,bool,bytes)[] calls) payable returns((bool,bytes)[] returnData)
func (*Multicall3) UnpackAggregate3Value ¶
func (multicall3 *Multicall3) UnpackAggregate3Value(data []byte) ([]Multicall3Result, error)
UnpackAggregate3Value is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0x174dea71.
Solidity: function aggregate3Value((address,bool,uint256,bytes)[] calls) payable returns((bool,bytes)[] returnData)
func (*Multicall3) UnpackBlockAndAggregate ¶
func (multicall3 *Multicall3) UnpackBlockAndAggregate(data []byte) (BlockAndAggregateOutput, error)
UnpackBlockAndAggregate is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0xc3077fa9.
Solidity: function blockAndAggregate((address,bytes)[] calls) payable returns(uint256 blockNumber, bytes32 blockHash, (bool,bytes)[] returnData)
func (*Multicall3) UnpackGetBasefee ¶
func (multicall3 *Multicall3) UnpackGetBasefee(data []byte) (*big.Int, error)
UnpackGetBasefee is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0x3e64a696.
Solidity: function getBasefee() view returns(uint256 basefee)
func (*Multicall3) UnpackGetBlockHash ¶
func (multicall3 *Multicall3) UnpackGetBlockHash(data []byte) ([32]byte, error)
UnpackGetBlockHash is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0xee82ac5e.
Solidity: function getBlockHash(uint256 blockNumber) view returns(bytes32 blockHash)
func (*Multicall3) UnpackGetBlockNumber ¶
func (multicall3 *Multicall3) UnpackGetBlockNumber(data []byte) (*big.Int, error)
UnpackGetBlockNumber is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0x42cbb15c.
Solidity: function getBlockNumber() view returns(uint256 blockNumber)
func (*Multicall3) UnpackGetChainId ¶
func (multicall3 *Multicall3) UnpackGetChainId(data []byte) (*big.Int, error)
UnpackGetChainId is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0x3408e470.
Solidity: function getChainId() view returns(uint256 chainid)
func (*Multicall3) UnpackGetCurrentBlockCoinbase ¶
func (multicall3 *Multicall3) UnpackGetCurrentBlockCoinbase(data []byte) (common.Address, error)
UnpackGetCurrentBlockCoinbase is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0xa8b0574e.
Solidity: function getCurrentBlockCoinbase() view returns(address coinbase)
func (*Multicall3) UnpackGetCurrentBlockDifficulty ¶
func (multicall3 *Multicall3) UnpackGetCurrentBlockDifficulty(data []byte) (*big.Int, error)
UnpackGetCurrentBlockDifficulty is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0x72425d9d.
Solidity: function getCurrentBlockDifficulty() view returns(uint256 difficulty)
func (*Multicall3) UnpackGetCurrentBlockGasLimit ¶
func (multicall3 *Multicall3) UnpackGetCurrentBlockGasLimit(data []byte) (*big.Int, error)
UnpackGetCurrentBlockGasLimit is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0x86d516e8.
Solidity: function getCurrentBlockGasLimit() view returns(uint256 gaslimit)
func (*Multicall3) UnpackGetCurrentBlockTimestamp ¶
func (multicall3 *Multicall3) UnpackGetCurrentBlockTimestamp(data []byte) (*big.Int, error)
UnpackGetCurrentBlockTimestamp is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0x0f28c97d.
Solidity: function getCurrentBlockTimestamp() view returns(uint256 timestamp)
func (*Multicall3) UnpackGetEthBalance ¶
func (multicall3 *Multicall3) UnpackGetEthBalance(data []byte) (*big.Int, error)
UnpackGetEthBalance is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0x4d2301cc.
Solidity: function getEthBalance(address addr) view returns(uint256 balance)
func (*Multicall3) UnpackGetLastBlockHash ¶
func (multicall3 *Multicall3) UnpackGetLastBlockHash(data []byte) ([32]byte, error)
UnpackGetLastBlockHash is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0x27e86d6e.
Solidity: function getLastBlockHash() view returns(bytes32 blockHash)
func (*Multicall3) UnpackTryAggregate ¶
func (multicall3 *Multicall3) UnpackTryAggregate(data []byte) ([]Multicall3Result, error)
UnpackTryAggregate is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0xbce38bd7.
Solidity: function tryAggregate(bool requireSuccess, (address,bytes)[] calls) payable returns((bool,bytes)[] returnData)
func (*Multicall3) UnpackTryBlockAndAggregate ¶
func (multicall3 *Multicall3) UnpackTryBlockAndAggregate(data []byte) (TryBlockAndAggregateOutput, error)
UnpackTryBlockAndAggregate is the Go binding that unpacks the parameters returned from invoking the contract method with ID 0x399542e9.
Solidity: function tryBlockAndAggregate(bool requireSuccess, (address,bytes)[] calls) payable returns(uint256 blockNumber, bytes32 blockHash, (bool,bytes)[] returnData)
type Multicall3Call ¶
Multicall3Call is an auto generated low-level Go binding around an user-defined struct.
type Multicall3Call3 ¶
Multicall3Call3 is an auto generated low-level Go binding around an user-defined struct.
type Multicall3Call3Value ¶
type Multicall3Call3Value struct {
Target common.Address
AllowFailure bool
Value *big.Int
CallData []byte
}
Multicall3Call3Value is an auto generated low-level Go binding around an user-defined struct.
type Multicall3Result ¶
Multicall3Result is an auto generated low-level Go binding around an user-defined struct.
type TryBlockAndAggregateOutput ¶
type TryBlockAndAggregateOutput struct {
BlockNumber *big.Int
BlockHash [32]byte
ReturnData []Multicall3Result
}
TryBlockAndAggregateOutput serves as a container for the return parameters of contract method TryBlockAndAggregate.