CollectionErrors

Variable: CollectionErrors

Properties overview

  • adminContractAddressNotSet: string = "Admin contract address is not set";
  • cannotMint: string = "Admin contract did not provide permission to mint";
  • cannotMintMasterNFT: string = "Only the creator can mint the Master NFT";
  • cannotUpgradeVerificationKey: string = "Cannot upgrade verification key";
  • collectionNotPaused: string = "Collection is not paused";
  • collectionPaused: string = "Collection is currently paused";
  • invalidOracleAddress: string = "Oracle address is invalid";
  • invalidRoyaltyFee: string = "Royalty fee is too high, cannot be more than 100%";
  • noPermissionToChangeBaseUri: string = "Not allowed to change collection base URI";
  • noPermissionToChangeCreator: string = "Not allowed to change collection creator";
  • noPermissionToChangeName: string = "Not allowed to change collection name";
  • noPermissionToChangeRoyalty: string = "Not allowed to change royalty fee";
  • noPermissionToChangeTransferFee: string = "Not allowed to change transfer fee";
  • noPermissionToPause: string = "Not allowed to pause collection";
  • noPermissionToResume: string = "Not allowed to resume collection";
  • noPermissionToSetAdmin: string = "Not allowed to set admin contract";
  • onlyOwnerCanUpgradeVerificationKey: string = "Only owner can upgrade verification key";
  • transferApprovalRequired: string = "Transfer approval is required";
  • transferNotAllowed: string = "Transfers of tokens are not allowed, change the owner instead";
  • upgradeContractAddressNotSet: string = "Upgrade contract address is not set";
  • wrongMasterNFTaddress: string = "Master NFT address should be the same as the collection address";
const CollectionErrors: {
  adminContractAddressNotSet: string;
  cannotMint: string;
  cannotMintMasterNFT: string;
  cannotUpgradeVerificationKey: string;
  collectionNotPaused: string;
  collectionPaused: string;
  invalidOracleAddress: string;
  invalidRoyaltyFee: string;
  noPermissionToChangeBaseUri: string;
  noPermissionToChangeCreator: string;
  noPermissionToChangeName: string;
  noPermissionToChangeRoyalty: string;
  noPermissionToChangeTransferFee: string;
  noPermissionToPause: string;
  noPermissionToResume: string;
  noPermissionToSetAdmin: string;
  onlyOwnerCanUpgradeVerificationKey: string;
  transferApprovalRequired: string;
  transferNotAllowed: string;
  upgradeContractAddressNotSet: string;
  wrongMasterNFTaddress: string;
};

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

Type declaration

adminContractAddressNotSet

adminContractAddressNotSet: string = "Admin contract address is not set";

cannotMint

cannotMint: string = "Admin contract did not provide permission to mint";

cannotMintMasterNFT

cannotMintMasterNFT: string = "Only the creator can mint the Master NFT";

cannotUpgradeVerificationKey

cannotUpgradeVerificationKey: string = "Cannot upgrade verification key";

collectionNotPaused

collectionNotPaused: string = "Collection is not paused";

collectionPaused

collectionPaused: string = "Collection is currently paused";

invalidOracleAddress

invalidOracleAddress: string = "Oracle address is invalid";

invalidRoyaltyFee

invalidRoyaltyFee: string = "Royalty fee is too high, cannot be more than 100%";

noPermissionToChangeBaseUri

noPermissionToChangeBaseUri: string = "Not allowed to change collection base URI";

noPermissionToChangeCreator

noPermissionToChangeCreator: string = "Not allowed to change collection creator";

noPermissionToChangeName

noPermissionToChangeName: string = "Not allowed to change collection name";

noPermissionToChangeRoyalty

noPermissionToChangeRoyalty: string = "Not allowed to change royalty fee";

noPermissionToChangeTransferFee

noPermissionToChangeTransferFee: string = "Not allowed to change transfer fee";

noPermissionToPause

noPermissionToPause: string = "Not allowed to pause collection";

noPermissionToResume

noPermissionToResume: string = "Not allowed to resume collection";

noPermissionToSetAdmin

noPermissionToSetAdmin: string = "Not allowed to set admin contract";

onlyOwnerCanUpgradeVerificationKey

onlyOwnerCanUpgradeVerificationKey: string = "Only owner can upgrade verification key";

transferApprovalRequired

transferApprovalRequired: string = "Transfer approval is required";

transferNotAllowed

transferNotAllowed: string = "Transfers of tokens are not allowed, change the owner instead";

upgradeContractAddressNotSet

upgradeContractAddressNotSet: string = "Upgrade contract address is not set";

wrongMasterNFTaddress

wrongMasterNFTaddress: string = "Master NFT address should be the same as the collection address";