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 ¶
type IERC721SummedInteractions struct {
*nft.ERC721Interactions
*royalties.IERC721RoyaltiesInteractions
*enumerable.ERC721EnumerableInteractions
}
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 ¶
func (s *IERC721SummedInteractions) AllInfos( tokenIDs ...*big.Int, ) (*models.TokenMeta, *big.Int, *inferences.RoyaltyInfoOutput, error)
AllInfos retrieves combined information for a given token, including base metadata, total supply, and royalty information.