balancechecker

package
v0.184.47 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BalanceCheckerABI = BalanceCheckerMetaData.ABI

BalanceCheckerABI is the input ABI used to generate the binding from. Deprecated: Use BalanceCheckerMetaData.ABI instead.

View Source
var BalanceCheckerMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"users\",\"type\":\"address[]\"},{\"internalType\":\"address[]\",\"name\":\"tokens\",\"type\":\"address[]\"}],\"name\":\"balancesHash\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes32[]\",\"name\":\"\",\"type\":\"bytes32[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"address[]\",\"name\":\"tokens\",\"type\":\"address[]\"}],\"name\":\"balancesPerAddress\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"tokenBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

BalanceCheckerMetaData contains all meta data concerning the BalanceChecker contract.

Functions

func ContractAddress

func ContractAddress(chainID uint64) (common.Address, error)

Types

type BalanceChecker

type BalanceChecker struct {
	BalanceCheckerCaller     // Read-only binding to the contract
	BalanceCheckerTransactor // Write-only binding to the contract
	BalanceCheckerFilterer   // Log filterer for contract events
}

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

func NewBalanceChecker

func NewBalanceChecker(address common.Address, backend bind.ContractBackend) (*BalanceChecker, error)

NewBalanceChecker creates a new instance of BalanceChecker, bound to a specific deployed contract.

type BalanceCheckerCaller

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

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

func NewBalanceCheckerCaller

func NewBalanceCheckerCaller(address common.Address, caller bind.ContractCaller) (*BalanceCheckerCaller, error)

NewBalanceCheckerCaller creates a new read-only instance of BalanceChecker, bound to a specific deployed contract.

func (*BalanceCheckerCaller) BalancesHash

func (_BalanceChecker *BalanceCheckerCaller) BalancesHash(opts *bind.CallOpts, users []common.Address, tokens []common.Address) (*big.Int, [][32]byte, error)

BalancesHash is a free data retrieval call binding the contract method 0x23c0503e.

Solidity: function balancesHash(address[] users, address[] tokens) view returns(uint256, bytes32[])

func (*BalanceCheckerCaller) BalancesPerAddress

func (_BalanceChecker *BalanceCheckerCaller) BalancesPerAddress(opts *bind.CallOpts, user common.Address, tokens []common.Address) ([]*big.Int, error)

BalancesPerAddress is a free data retrieval call binding the contract method 0x1a55d770.

Solidity: function balancesPerAddress(address user, address[] tokens) view returns(uint256[])

func (*BalanceCheckerCaller) TokenBalance

func (_BalanceChecker *BalanceCheckerCaller) TokenBalance(opts *bind.CallOpts, user common.Address, token common.Address) (*big.Int, error)

TokenBalance is a free data retrieval call binding the contract method 0x1049334f.

Solidity: function tokenBalance(address user, address token) view returns(uint256)

type BalanceCheckerCallerRaw

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

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

func (*BalanceCheckerCallerRaw) Call

func (_BalanceChecker *BalanceCheckerCallerRaw) 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 BalanceCheckerCallerSession

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

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

func (*BalanceCheckerCallerSession) BalancesHash

func (_BalanceChecker *BalanceCheckerCallerSession) BalancesHash(users []common.Address, tokens []common.Address) (*big.Int, [][32]byte, error)

BalancesHash is a free data retrieval call binding the contract method 0x23c0503e.

Solidity: function balancesHash(address[] users, address[] tokens) view returns(uint256, bytes32[])

func (*BalanceCheckerCallerSession) BalancesPerAddress

func (_BalanceChecker *BalanceCheckerCallerSession) BalancesPerAddress(user common.Address, tokens []common.Address) ([]*big.Int, error)

BalancesPerAddress is a free data retrieval call binding the contract method 0x1a55d770.

Solidity: function balancesPerAddress(address user, address[] tokens) view returns(uint256[])

func (*BalanceCheckerCallerSession) TokenBalance

func (_BalanceChecker *BalanceCheckerCallerSession) TokenBalance(user common.Address, token common.Address) (*big.Int, error)

TokenBalance is a free data retrieval call binding the contract method 0x1049334f.

Solidity: function tokenBalance(address user, address token) view returns(uint256)

type BalanceCheckerFilterer

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

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

func NewBalanceCheckerFilterer

func NewBalanceCheckerFilterer(address common.Address, filterer bind.ContractFilterer) (*BalanceCheckerFilterer, error)

NewBalanceCheckerFilterer creates a new log filterer instance of BalanceChecker, bound to a specific deployed contract.

type BalanceCheckerRaw

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

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

func (*BalanceCheckerRaw) Call

func (_BalanceChecker *BalanceCheckerRaw) 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 (*BalanceCheckerRaw) Transact

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

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

func (*BalanceCheckerRaw) Transfer

func (_BalanceChecker *BalanceCheckerRaw) 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 BalanceCheckerSession

type BalanceCheckerSession struct {
	Contract     *BalanceChecker   // 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
}

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

func (*BalanceCheckerSession) BalancesHash

func (_BalanceChecker *BalanceCheckerSession) BalancesHash(users []common.Address, tokens []common.Address) (*big.Int, [][32]byte, error)

BalancesHash is a free data retrieval call binding the contract method 0x23c0503e.

Solidity: function balancesHash(address[] users, address[] tokens) view returns(uint256, bytes32[])

func (*BalanceCheckerSession) BalancesPerAddress

func (_BalanceChecker *BalanceCheckerSession) BalancesPerAddress(user common.Address, tokens []common.Address) ([]*big.Int, error)

BalancesPerAddress is a free data retrieval call binding the contract method 0x1a55d770.

Solidity: function balancesPerAddress(address user, address[] tokens) view returns(uint256[])

func (*BalanceCheckerSession) TokenBalance

func (_BalanceChecker *BalanceCheckerSession) TokenBalance(user common.Address, token common.Address) (*big.Int, error)

TokenBalance is a free data retrieval call binding the contract method 0x1049334f.

Solidity: function tokenBalance(address user, address token) view returns(uint256)

type BalanceCheckerTransactor

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

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

func NewBalanceCheckerTransactor

func NewBalanceCheckerTransactor(address common.Address, transactor bind.ContractTransactor) (*BalanceCheckerTransactor, error)

NewBalanceCheckerTransactor creates a new write-only instance of BalanceChecker, bound to a specific deployed contract.

type BalanceCheckerTransactorRaw

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

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

func (*BalanceCheckerTransactorRaw) Transact

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

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

func (*BalanceCheckerTransactorRaw) Transfer

func (_BalanceChecker *BalanceCheckerTransactorRaw) 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 BalanceCheckerTransactorSession

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

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

Jump to

Keyboard shortcuts

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