CollectionFactory

Function: CollectionFactory()

function CollectionFactory(params: {
  adminContract: () => NFTAdminContractConstructor;
  approvalContract: () => NFTApprovalContractConstructor;
  ownerContract: () => NFTOwnerContractConstructor;
  updateContract: () => NFTUpdateContractConstructor;
 }): typeof Collection

Defined in: packages/nft/src/contracts/collection.ts:104

Creates a new NFT Collection Contract class.

Parameters

params

Constructor parameters including admin and upgrade contracts, and network ID.

adminContract

() => NFTAdminContractConstructor

approvalContract

() => NFTApprovalContractConstructor

ownerContract

() => NFTOwnerContractConstructor

updateContract

() => NFTUpdateContractConstructor

Returns

typeof Collection

The Collection class extending TokenContract and implementing required interfaces.