merged

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package merged provides a unified interface that combines multiple NFT interaction extensions such as enumerable and royalties.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtensionEnum

type ExtensionEnum int

ExtensionEnum denotes the types of NFT interaction extensions to be included in the summed interactions.

const (
	// Enumerable represents the enumerable extension.
	Enumerable ExtensionEnum = iota
	// Royalties represents the royalties extension.
	Royalties
)

type IERC721SummedInteractions

IERC721SummedInteractions aggregates NFT interactions from various extensions (e.g., royalties and enumerable) into a single interface.

func NewERC721SummedInteractions

func NewERC721SummedInteractions(
	baseIERC721 *nft.ERC721Interactions,
	signatures []hex.Signature,
	extensions ...ExtensionEnum,
) (*IERC721SummedInteractions, error)

NewERC721SummedInteractions creates a new instance of IERC721SummedInteractions by initializing the specified extensions from the base NFT interactions.

func (*IERC721SummedInteractions) AllInfos

AllInfos retrieves combined information for a given token, including base metadata, total supply, and royalty information.

Jump to

Keyboard shortcuts

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