defi

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAddressBalance

func GetAddressBalance(ctx context.Context, client *ethclient.Client, address common.Address) (*big.Int, error)

func GetTokenAddressBalance

func GetTokenAddressBalance(ctx context.Context, client bind.ContractBackend, token common.Address, address common.Address) (*big.Int, error)

Types

type Handler

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

func NewHandler

func NewHandler(ctx context.Context, providerUrl string) (*Handler, error)

func (*Handler) GetAddressBalance

func (h *Handler) GetAddressBalance(ctx context.Context, address common.Address) (*big.Int, error)

func (*Handler) GetTokenAddressBalance

func (h *Handler) GetTokenAddressBalance(ctx context.Context, token, address common.Address) (*big.Int, error)

func (*Handler) Shutdown

func (h *Handler) Shutdown(ctx context.Context)

Jump to

Keyboard shortcuts

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