nft

package
v0.0.0-...-01cb06f Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrParseABI               = errors.New("failed to parse ABI")
	ErrPackBalanceOf          = errors.New("failed to pack balanceOf")
	ErrCallBalanceOf          = errors.New("failed to call balanceOf")
	ErrUnpackBalanceOf        = errors.New("failed to unpack balanceOf result")
	ErrEmptyBalanceOfResponse = errors.New("empty response from balanceOf")

	ErrPackTokenOfOwnerByIndex   = errors.New("failed to pack tokenOfOwnerByIndex")
	ErrCallTokenOfOwnerByIndex   = errors.New("failed to call tokenOfOwnerByIndex")
	ErrUnpackTokenOfOwnerByIndex = errors.New("failed to unpack tokenOfOwnerByIndex result")
	ErrEmptyTokenOfOwnerResponse = errors.New("empty response from tokenOfOwnerByIndex")
)

Functions

This section is empty.

Types

type LogHeap

type LogHeap []types.Log

func (LogHeap) Len

func (h LogHeap) Len() int

func (LogHeap) Less

func (h LogHeap) Less(i, j int) bool

func (*LogHeap) Pop

func (h *LogHeap) Pop() any

func (*LogHeap) Push

func (h *LogHeap) Push(x any)

func (LogHeap) Swap

func (h LogHeap) Swap(i, j int)

type NFT

type NFT interface {
	GetWalletNFTs(account string) ([]*types.NFTCollection, error)
	IsERC721(contractAddr string) (bool, error)
	IsERC1155(contractAddr string) (bool, error)
}

func NewNFT

func NewNFT(provider provider.Provider) NFT

Jump to

Keyboard shortcuts

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