CollectionData
Hierarchy
- { canChangeBaseUri: Bool; canChangeCreator: Bool; canChangeName: Bool; canChangeRoyalty: Bool; canChangeTransferFee: Bool; canMint: Bool; canPause: Bool; canSetAdmin: Bool; isPaused: Bool; requireBuyApproval: Bool; requireCreatorSignatureToUpgradeCollection: Bool; requireCreatorSignatureToUpgradeNFT: Bool; requireSaleApproval: Bool; requireTransferApproval: Bool; requireUpdateApproval: Bool; royaltyFee: UInt32; transferFee: UInt64; upgradeAuthority: PublicKey }
- CollectionData
Index
Constructors
Properties
- canChangeBaseUri
- canChangeCreator
- canChangeName
- canChangeRoyalty
- canChangeTransferFee
- canMint
- canPause
- canSetAdmin
- isPaused
- requireBuyApproval
- requireCreatorSignatureToUpgradeCollection
- requireCreatorSignatureToUpgradeNFT
- requireSaleApproval
- requireTransferApproval
- requireUpdateApproval
- royaltyFee
- transferFee
- upgradeAuthority
Methods
Constructors
externalconstructor
Parameters
externalvalue: { canChangeBaseUri: Bool; canChangeCreator: Bool; canChangeName: Bool; canChangeRoyalty: Bool; canChangeTransferFee: Bool; canMint: Bool; canPause: Bool; canSetAdmin: Bool; isPaused: Bool; requireBuyApproval: Bool; requireCreatorSignatureToUpgradeCollection: Bool; requireCreatorSignatureToUpgradeNFT: Bool; requireSaleApproval: Bool; requireTransferApproval: Bool; requireUpdateApproval: Bool; royaltyFee: UInt32; transferFee: UInt64; upgradeAuthority: PublicKey }
externalcanChangeBaseUri: Bool = Bool
If true, the base URI for the collection's metadata can be changed.
externalcanChangeCreator: Bool = Bool
If true, the creator of the collection can be changed.
externalcanChangeName: Bool = Bool
If true, the name of the collection can be changed.
externalcanChangeRoyalty: Bool = Bool
If true, the royalty fee configuration can be changed.
externalcanChangeTransferFee: Bool = Bool
If true, the transfer fee configuration can be changed.
externalcanMint: Bool = Bool
If true, new NFTs can be minted in this collection.
externalcanPause: Bool = Bool
If true, the collection can be paused and resumed by authorized parties.
externalcanSetAdmin: Bool = Bool
If true, the admin contract associated with the collection can be changed.
externalisPaused: Bool = Bool
Indicates whether the collection is currently paused.
externalrequireBuyApproval: Bool = Bool
If true, purchasing NFTs requires approval from the admin contract.
externalrequireCreatorSignatureToUpgradeCollection: Bool = Bool
If true, upgrading the collection's verification key requires the creator's signature.
externalrequireCreatorSignatureToUpgradeNFT: Bool = Bool
If true, upgrading an NFT's verification key requires the creator's signature.
externalrequireSaleApproval: Bool = Bool
If true, listing NFTs for sale requires approval from the admin contract.
externalrequireTransferApproval: Bool = Bool
If true, transferring NFTs requires approval from the admin contract.
externalrequireUpdateApproval: Bool = Bool
If true, updating NFTs requires approval from the admin contract.
externalroyaltyFee: UInt32 = UInt32
The royalty fee percentage (e.g., 1000 = 1%, 100 = 0.1%).
externaltransferFee: UInt64 = UInt64
The transfer fee amount.
externalupgradeAuthority: PublicKey = PublicKey
The public key of the upgrade authority contract.
Returns CollectionData
Properties
canChangeBaseUri
If true, the base URI for the collection's metadata can be changed.
canChangeCreator
If true, the creator of the collection can be changed.
canChangeName
If true, the name of the collection can be changed.
canChangeRoyalty
If true, the royalty fee configuration can be changed.
canChangeTransferFee
If true, the transfer fee configuration can be changed.
canMint
If true, new NFTs can be minted in this collection.
canPause
If true, the collection can be paused and resumed by authorized parties.
canSetAdmin
If true, the admin contract associated with the collection can be changed.
isPaused
Indicates whether the collection is currently paused.
requireBuyApproval
If true, purchasing NFTs requires approval from the admin contract.
requireCreatorSignatureToUpgradeCollection
If true, upgrading the collection's verification key requires the creator's signature.
requireCreatorSignatureToUpgradeNFT
If true, upgrading an NFT's verification key requires the creator's signature.
requireSaleApproval
If true, listing NFTs for sale requires approval from the admin contract.
requireTransferApproval
If true, transferring NFTs requires approval from the admin contract.
requireUpdateApproval
If true, updating NFTs requires approval from the admin contract.
royaltyFee
The royalty fee percentage (e.g., 1000 = 1%, 100 = 0.1%).
transferFee
The transfer fee amount.
upgradeAuthority
The public key of the upgrade authority contract.
Methods
pack
Packs the CollectionData into a CollectionDataPacked representation for efficient storage.
Returns CollectionDataPacked
The packed CollectionDataPacked instance.
staticnew
Creates a new CollectionData instance with specified parameters.
Parameters
params: { canChangeBaseUri?: boolean; canChangeCreator?: boolean; canChangeName?: boolean; canChangeRoyalty?: boolean; canChangeTransferFee?: boolean; canMint?: boolean; canPause?: boolean; canSetAdmin?: boolean; isPaused?: boolean; requireBuyApproval?: boolean; requireCreatorSignatureToUpgradeCollection?: boolean; requireCreatorSignatureToUpgradeNFT?: boolean; requireSaleApproval?: boolean; requireTransferApproval?: boolean; requireUpdateApproval?: boolean; royaltyFee?: number; transferFee?: number; upgradeAuthority?: PublicKey }
The parameters to create the CollectionData.
optionalcanChangeBaseUri: boolean
optionalcanChangeCreator: boolean
optionalcanChangeName: boolean
optionalcanChangeRoyalty: boolean
optionalcanChangeTransferFee: boolean
optionalcanMint: boolean
optionalcanPause: boolean
optionalcanSetAdmin: boolean
optionalisPaused: boolean
optionalrequireBuyApproval: boolean
optionalrequireCreatorSignatureToUpgradeCollection: boolean
optionalrequireCreatorSignatureToUpgradeNFT: boolean
optionalrequireSaleApproval: boolean
optionalrequireTransferApproval: boolean
optionalrequireUpdateApproval: boolean
optionalroyaltyFee: number
optionaltransferFee: number
optionalupgradeAuthority: PublicKey
Returns CollectionData
A new CollectionData instance.
staticunpack
Unpacks a CollectionDataPacked instance into a CollectionData instance.
Parameters
packed: CollectionDataPacked
The packed CollectionDataPacked instance.
Returns CollectionData
A new CollectionData instance.
Represents the data associated with an NFT collection, including configuration parameters and permission flags.