balance

package
v0.0.0-...-b400eb5 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BalanceChecker

type BalanceChecker interface {
	GetBalance(asset types.AssetData, userAddress *types.Address) (*big.Int, error)
	GetAllowance(asset types.AssetData, ownerAddress, spenderAddress *types.Address) (*big.Int, error)
}

func NewErrorMockBalanceChecker

func NewErrorMockBalanceChecker(err error) BalanceChecker

func NewMockBalanceChecker

func NewMockBalanceChecker(balanceMap map[string]map[types.Address]*big.Int) BalanceChecker

func NewRpcERC20BalanceChecker

func NewRpcERC20BalanceChecker(conn bind.ContractBackend) BalanceChecker

func NewRpcERC721BalanceChecker

func NewRpcERC721BalanceChecker(conn bind.ContractBackend) BalanceChecker

type CachedBalanceChecker

type CachedBalanceChecker interface {
	BalanceChecker
	Consume(msg channels.Delivery)
}

func NewRpcRoutingBalanceChecker

func NewRpcRoutingBalanceChecker(rpcURL string) (CachedBalanceChecker, error)

Jump to

Keyboard shortcuts

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