multicall

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BalancesABI string = "" /* 602-byte string literal not displayed */
View Source
var MulticallABI string = "" /* 4459-byte string literal not displayed */

Functions

This section is empty.

Types

type BalanceBatcher

type BalanceBatcher struct {
	Client          rocketpool.ExecutionClient
	ABI             abi.ABI
	ContractAddress common.Address
}

func NewBalanceBatcher

func NewBalanceBatcher(client rocketpool.ExecutionClient, address common.Address) (*BalanceBatcher, error)

func (*BalanceBatcher) GetEthBalances

func (b *BalanceBatcher) GetEthBalances(addresses []common.Address, opts *bind.CallOpts) ([]*big.Int, error)

type Call

type Call struct {
	Method   string         `json:"method"`
	Target   common.Address `json:"target"`
	CallData []byte         `json:"call_data"`
	Contract *rocketpool.Contract
	// contains filtered or unexported fields
}

func (Call) GetMultiCall

func (call Call) GetMultiCall() MultiCall

type CallResponse

type CallResponse struct {
	Method        string
	Status        bool
	ReturnDataRaw []byte `json:"returnData"`
}

type MultiCall

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

type MultiCaller

type MultiCaller struct {
	Client          rocketpool.ExecutionClient
	ABI             abi.ABI
	ContractAddress common.Address
	// contains filtered or unexported fields
}

func NewMultiCaller

func NewMultiCaller(client rocketpool.ExecutionClient, multicallerAddress common.Address) (*MultiCaller, error)

func (*MultiCaller) AddCall

func (caller *MultiCaller) AddCall(contract *rocketpool.Contract, output interface{}, method string, args ...interface{}) error

func (*MultiCaller) Execute

func (caller *MultiCaller) Execute(requireSuccess bool, opts *bind.CallOpts) ([]CallResponse, error)

func (*MultiCaller) FlexibleCall

func (caller *MultiCaller) FlexibleCall(requireSuccess bool, opts *bind.CallOpts) ([]Result, error)

type Result

type Result struct {
	Success bool `json:"success"`
	Output  interface{}
}

Jump to

Keyboard shortcuts

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