erc20

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(reader starknet.Reader, lggr logger.Logger, tokenAddress *felt.Felt) (*Client, error)

func (*Client) BalanceOf

func (c *Client) BalanceOf(ctx context.Context, accountAddress *felt.Felt) (*big.Int, error)

func (*Client) BaseReader

func (c *Client) BaseReader() starknet.Reader

func (*Client) Decimals

func (c *Client) Decimals(ctx context.Context) (*big.Int, error)

type ERC20Reader

type ERC20Reader interface {
	BalanceOf(context.Context, *felt.Felt) (*big.Int, error)
	Decimals(context.Context) (*big.Int, error)

	BaseReader() starknet.Reader
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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