nft

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: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidContractInterface = errors.New("invalid contract interface")

Functions

func FindCollectionMetadata

func FindCollectionMetadata(ctx context.Context, backend bind.ContractBackend, address common.Address) (*model.NFTCollectionResponse, error)

func FindCollectionOwnerAssets

func FindCollectionOwnerAssets(
	ctx context.Context,
	backend bind.ContractBackend,
	req AssetsRequest,
) (*model.NFTOwnershipResponse, error)

Types

type AssetsRequest

type AssetsRequest struct {
	Address      common.Address `json:"address"`
	Owner        common.Address `json:"owner"`
	LoadMetadata bool           `json:"load_metadata"`
}

type Handler

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

func NewHandler

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

func (*Handler) Shutdown

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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