From 36795ff855f4191d9393169b5d7e1ea2728c7bb5 Mon Sep 17 00:00:00 2001 From: Yash Date: Mon, 16 Oct 2023 21:00:49 +0530 Subject: [PATCH] mark checked --- .../logic/lazy-mint/lazyMint.tree | 36 ++++++------- .../router/initialize/initialize.tree | 54 +++++++++---------- .../router/other-functions/other.tree | 8 +-- .../_batchMintMetadata.tree | 4 +- .../freeze-base-uri/_freezeBaseURI.tree | 6 +-- .../get-base-uri/_getBaseURI.tree | 4 +- .../get-batch-id/_getBatchId.tree | 4 +- .../get-batch-start-id/_getBatchStartId.tree | 4 +- .../set-base-uri/_setBaseURI.tree | 6 +-- .../_burnTokensOnOrigin.tree | 10 ++-- .../setBurnToClaimInfo.tree | 8 +-- .../verifyBurnToClaim.tree | 14 ++--- .../set-contract-uri/setContractURI.tree | 6 +-- .../get-reveal-uri/getRevealURI.tree | 6 +-- .../set-encrypted-data/_setEncryptedData.tree | 4 +- src/test/sdk/extension/drop/claim/claim.tree | 6 +-- .../getActiveClaimConditionId.tree | 6 +-- .../setClaimConditions.tree | 30 +++++------ .../drop/verify-claim/verifyClaim.tree | 38 ++++++------- .../lazy-mint/lazy-mint/lazyMint.tree | 16 +++--- .../extension/ownable/set-owner/setOwner.tree | 6 +-- .../setDefaultRoyaltyInfo.tree | 12 ++--- .../setRoyaltyInfoForToken.tree | 12 ++--- .../_batchMintMetadata.tree | 4 +- .../freeze-base-uri/_freezeBaseURI.tree | 6 +-- .../get-base-uri/_getBaseURI.tree | 4 +- .../get-batch-id/_getBatchId.tree | 4 +- .../get-batch-start-id/_getBatchStartId.tree | 4 +- .../set-base-uri/_setBaseURI.tree | 6 +-- .../_burnTokensOnOrigin.tree | 10 ++-- .../setBurnToClaimInfo.tree | 8 +-- .../verifyBurnToClaim.tree | 14 ++--- .../set-contract-uri/setContractURI.tree | 6 +-- .../get-reveal-uri/getRevealURI.tree | 6 +-- .../set-encrypted-data/_setEncryptedData.tree | 4 +- .../upgradeable/drop/claim/claim.tree | 6 +-- .../getActiveClaimConditionId.tree | 6 +-- .../setClaimConditions.tree | 30 +++++------ .../drop/verify-claim/verifyClaim.tree | 38 ++++++------- .../lazy-mint/lazy-mint/lazyMint.tree | 16 +++--- .../ownable/set-owner/setOwner.tree | 6 +-- .../setDefaultRoyaltyInfo.tree | 12 ++--- .../setRoyaltyInfoForToken.tree | 12 ++--- 43 files changed, 251 insertions(+), 251 deletions(-) diff --git a/src/test/burn-to-claim-drop-BTT/logic/lazy-mint/lazyMint.tree b/src/test/burn-to-claim-drop-BTT/logic/lazy-mint/lazyMint.tree index 795ed45b4..39b512286 100644 --- a/src/test/burn-to-claim-drop-BTT/logic/lazy-mint/lazyMint.tree +++ b/src/test/burn-to-claim-drop-BTT/logic/lazy-mint/lazyMint.tree @@ -5,34 +5,34 @@ lazyMint( ) // Assume `_data` empty ├── when caller not authorized - │ └── it should revert + │ └── it should revert ✅ └── when caller is authorized └── when amount to lazy mint is 0 - │ └── it should revert + │ └── it should revert ✅ └── when amount to lazy mint is not 0 - └── it should save the batch of tokens starting at `nextTokenIdToLazyMint` - └── it should store batch id equal to the sum of `nextTokenIdToLazyMint` and `_amount` - └── it should map the new batch id to `_baseURIForTokens` - └── it should increase `nextTokenIdToLazyMint` by `_amount` - └── it should return the new `batchId` - └── it should emit TokensLazyMinted event + └── it should save the batch of tokens starting at `nextTokenIdToLazyMint` ✅ + └── it should store batch id equal to the sum of `nextTokenIdToLazyMint` and `_amount` ✅ + └── it should map the new batch id to `_baseURIForTokens` ✅ + └── it should increase `nextTokenIdToLazyMint` by `_amount` ✅ + └── it should return the new `batchId` ✅ + └── it should emit TokensLazyMinted event ✅ // Assume `_data` not empty ├── when caller not authorized - │ └── it should revert + │ └── it should revert ✅ └── when caller is authorized └── when amount to lazy mint is 0 - │ └── it should revert + │ └── it should revert ✅ └── when amount to lazy mint is not 0 └── when data can't be decoded - │ └── it should revert + │ └── it should revert ✅ └── when data can be decoded successfully └── when decoded encryptedURI and provenanceHash are non-empty - └── it should set encrypted data for the new batch equal to _data - └── it should save the batch of tokens starting at `nextTokenIdToLazyMint` - └── it should store batch id equal to the sum of `nextTokenIdToLazyMint` and `_amount` - └── it should map the new batch id to `_baseURIForTokens` - └── it should increase `nextTokenIdToLazyMint` by `_amount` - └── it should return the new `batchId` - └── it should emit TokensLazyMinted event + └── it should set encrypted data for the new batch equal to _data ✅ + └── it should save the batch of tokens starting at `nextTokenIdToLazyMint` ✅ + └── it should store batch id equal to the sum of `nextTokenIdToLazyMint` and `_amount` ✅ + └── it should map the new batch id to `_baseURIForTokens` ✅ + └── it should increase `nextTokenIdToLazyMint` by `_amount` ✅ + └── it should return the new `batchId` ✅ + └── it should emit TokensLazyMinted event ✅ diff --git a/src/test/burn-to-claim-drop-BTT/router/initialize/initialize.tree b/src/test/burn-to-claim-drop-BTT/router/initialize/initialize.tree index f32741d83..295d65120 100644 --- a/src/test/burn-to-claim-drop-BTT/router/initialize/initialize.tree +++ b/src/test/burn-to-claim-drop-BTT/router/initialize/initialize.tree @@ -11,34 +11,34 @@ initialize( address _platformFeeRecipient ) ├── when it is the implementation contract (not proxy) -│ └── it should revert +│ └── it should revert ✅ └── when it is a proxy to the implementation └── when it is already initialized - │ └── it should revert + │ └── it should revert ✅ └── when it is not initialized - └── it should initialize base-router with default extensions if any - └── it should set trustedForwarder mapping to true for all addresses in `_trustedForwarders` - └── it should set _name and _symbol to `_name` and `_symbol` param values respectively - └── it should set contractURI to `_contractURI` param value - └── it should emit ContractURIUpdated event - └── it should set _owner to `_defaultAdmin` param value - └── it should emit OwnerUpdated event - └── it should grant 0x00 (DEFAULT_ADMIN_ROLE) to `_defaultAdmin` address - └── it should emit RoleGranted event - └── it should grant MINTER_ROLE to `_defaultAdmin` address - └── it should emit RoleGranted event - └── it should grant TRANSFER_ROLE to `_defaultAdmin` address - └── it should emit RoleGranted event - └── it should grant TRANSFER_ROLE to address(0) - └── it should emit RoleGranted event - └── it should grant EXTENSION_ROLE to `_defaultAdmin` address - └── it should emit RoleGranted event - └── it should set EXTENSION_ROLE as role admin for EXTENSION_ROLE - └── it should emit RoleAdminChanged event - └── it should set platformFeeRecipient and platformFeeBps as `_platformFeeRecipient` and `_platformFeeBps` respectively - └── it should emit PlatformFeeInfoUpdated event - └── it should set royaltyRecipient and royaltyBps as `_royaltyRecipient` and `_royaltyBps` respectively - └── it should emit DefaultRoyalty event - └── it should set primary sale recipient as `_saleRecipient` param value - └── it should emit PrimarySaleRecipientUpdated event + └── it should initialize base-router with default extensions if any ✅ + └── it should set trustedForwarder mapping to true for all addresses in `_trustedForwarders` ✅ + └── it should set _name and _symbol to `_name` and `_symbol` param values respectively ✅ + └── it should set contractURI to `_contractURI` param value ✅ + └── it should emit ContractURIUpdated event ✅ + └── it should set _owner to `_defaultAdmin` param value ✅ + └── it should emit OwnerUpdated event ✅ + └── it should grant 0x00 (DEFAULT_ADMIN_ROLE) to `_defaultAdmin` address ✅ + └── it should emit RoleGranted event ✅ + └── it should grant MINTER_ROLE to `_defaultAdmin` address ✅ + └── it should emit RoleGranted event ✅ + └── it should grant TRANSFER_ROLE to `_defaultAdmin` address ✅ + └── it should emit RoleGranted event ✅ + └── it should grant TRANSFER_ROLE to address(0) ✅ + └── it should emit RoleGranted event ✅ + └── it should grant EXTENSION_ROLE to `_defaultAdmin` address ✅ + └── it should emit RoleGranted event ✅ + └── it should set EXTENSION_ROLE as role admin for EXTENSION_ROLE ✅ + └── it should emit RoleAdminChanged event ✅ + └── it should set platformFeeRecipient and platformFeeBps as `_platformFeeRecipient` and `_platformFeeBps` respectively ✅ + └── it should emit PlatformFeeInfoUpdated event ✅ + └── it should set royaltyRecipient and royaltyBps as `_royaltyRecipient` and `_royaltyBps` respectively ✅ + └── it should emit DefaultRoyalty event ✅ + └── it should set primary sale recipient as `_saleRecipient` param value ✅ + └── it should emit PrimarySaleRecipientUpdated event ✅ diff --git a/src/test/burn-to-claim-drop-BTT/router/other-functions/other.tree b/src/test/burn-to-claim-drop-BTT/router/other-functions/other.tree index 9b24bd354..98e8df4fe 100644 --- a/src/test/burn-to-claim-drop-BTT/router/other-functions/other.tree +++ b/src/test/burn-to-claim-drop-BTT/router/other-functions/other.tree @@ -1,12 +1,12 @@ contractType() -├── it should return bytes32("BurnToClaimDropERC721") +├── it should return bytes32("BurnToClaimDropERC721") ✅ contractVersion() -├── it should return uint8(5) +├── it should return uint8(5) ✅ _isAuthorizedCallToUpgrade() ├── when the caller doesn't have EXTENSION_ROLE -│ └── it should revert +│ └── it should revert ✅ └── when the caller has EXTENSION_ROLE - └── it should return true + └── it should return true ✅ diff --git a/src/test/sdk/extension/batch-mint-metadata/batch-mint-metadata/_batchMintMetadata.tree b/src/test/sdk/extension/batch-mint-metadata/batch-mint-metadata/_batchMintMetadata.tree index f81205586..572dd5203 100644 --- a/src/test/sdk/extension/batch-mint-metadata/batch-mint-metadata/_batchMintMetadata.tree +++ b/src/test/sdk/extension/batch-mint-metadata/batch-mint-metadata/_batchMintMetadata.tree @@ -3,5 +3,5 @@ _batchMintMetadata( uint256 _amountToMint, string memory _baseURIForTokens ) -├── it should store batch id equal to the sum of `_startId` and `_amountToMint` in batchIds array -├── it should map the new batch id to `_baseURIForTokens` \ No newline at end of file +├── it should store batch id equal to the sum of `_startId` and `_amountToMint` in batchIds array ✅ +├── it should map the new batch id to `_baseURIForTokens` ✅ \ No newline at end of file diff --git a/src/test/sdk/extension/batch-mint-metadata/freeze-base-uri/_freezeBaseURI.tree b/src/test/sdk/extension/batch-mint-metadata/freeze-base-uri/_freezeBaseURI.tree index 76a1b3723..4dd87edef 100644 --- a/src/test/sdk/extension/batch-mint-metadata/freeze-base-uri/_freezeBaseURI.tree +++ b/src/test/sdk/extension/batch-mint-metadata/freeze-base-uri/_freezeBaseURI.tree @@ -1,6 +1,6 @@ _freezeBaseURI(uint256 _batchId) ├── when there is no baseURI for given `_batchId` - │ └── it should revert + │ └── it should revert ✅ └── when there is a baseURI present for given `_batchId` - └── it should freeze the `batchId` by setting `frozen[_batchId]` to `true` - └── it should emit MetadataFrozen event \ No newline at end of file + └── it should freeze the `batchId` by setting `frozen[_batchId]` to `true` ✅ + └── it should emit MetadataFrozen event ✅ \ No newline at end of file diff --git a/src/test/sdk/extension/batch-mint-metadata/get-base-uri/_getBaseURI.tree b/src/test/sdk/extension/batch-mint-metadata/get-base-uri/_getBaseURI.tree index 8a103a12d..c4ee674bf 100644 --- a/src/test/sdk/extension/batch-mint-metadata/get-base-uri/_getBaseURI.tree +++ b/src/test/sdk/extension/batch-mint-metadata/get-base-uri/_getBaseURI.tree @@ -1,6 +1,6 @@ _getBaseURI(uint256 _tokenId) ├── when `_tokenId` doesn't belong to any batch, i.e. greater than the last batchId - │ └── it should revert + │ └── it should revert ✅ └── when `_tokenId` belongs to some batch, i.e. less than that batchId - └── it should return correct baseURI for the `_tokenId` + └── it should return correct baseURI for the `_tokenId` ✅ (note: all batches are assumed to be contiguous, i.e. start id of one batch is the end id of the previous batch) \ No newline at end of file diff --git a/src/test/sdk/extension/batch-mint-metadata/get-batch-id/_getBatchId.tree b/src/test/sdk/extension/batch-mint-metadata/get-batch-id/_getBatchId.tree index 06040c3fc..2e6dd366e 100644 --- a/src/test/sdk/extension/batch-mint-metadata/get-batch-id/_getBatchId.tree +++ b/src/test/sdk/extension/batch-mint-metadata/get-batch-id/_getBatchId.tree @@ -1,6 +1,6 @@ _getBatchId(uint256 _tokenId) ├── when `_tokenId` doesn't belong to any batch, i.e. greater than the last batchId - │ └── it should revert + │ └── it should revert ✅ └── when `_tokenId` belongs to some batch, i.e. less than that batchId - └── it should return correct batchId and batch index for the `_tokenId` + └── it should return correct batchId and batch index for the `_tokenId` ✅ (note: all batches are assumed to be contiguous, i.e. start id of one batch is the end id of the previous batch) \ No newline at end of file diff --git a/src/test/sdk/extension/batch-mint-metadata/get-batch-start-id/_getBatchStartId.tree b/src/test/sdk/extension/batch-mint-metadata/get-batch-start-id/_getBatchStartId.tree index b5b77bf7e..7e303ab46 100644 --- a/src/test/sdk/extension/batch-mint-metadata/get-batch-start-id/_getBatchStartId.tree +++ b/src/test/sdk/extension/batch-mint-metadata/get-batch-start-id/_getBatchStartId.tree @@ -1,6 +1,6 @@ _getBatchStartId(uint256 _batchID) ├── when `_batchID` doesn't exist - │ └── it should revert + │ └── it should revert ✅ └── when `_batchID` exists - └── it should return the starting tokenId for that batch + └── it should return the starting tokenId for that batch ✅ (note: all batches are assumed to be contiguous, i.e. start id of one batch is the end id of the previous batch) \ No newline at end of file diff --git a/src/test/sdk/extension/batch-mint-metadata/set-base-uri/_setBaseURI.tree b/src/test/sdk/extension/batch-mint-metadata/set-base-uri/_setBaseURI.tree index 213b557bc..3df76f653 100644 --- a/src/test/sdk/extension/batch-mint-metadata/set-base-uri/_setBaseURI.tree +++ b/src/test/sdk/extension/batch-mint-metadata/set-base-uri/_setBaseURI.tree @@ -1,6 +1,6 @@ _setBaseURI(uint256 _batchId, string memory _baseURI) ├── when the `_batchId` is frozen - │ └── it should revert + │ └── it should revert ✅ └── when the `_batchId` is not frozen - └── it should map the `_batchId` to `_baseURI` param - └── it should emit BatchMetadataUpdate event \ No newline at end of file + └── it should map the `_batchId` to `_baseURI` param ✅ + └── it should emit BatchMetadataUpdate event ✅ \ No newline at end of file diff --git a/src/test/sdk/extension/burn-to-claim/burn-tokens-on-origin/_burnTokensOnOrigin.tree b/src/test/sdk/extension/burn-to-claim/burn-tokens-on-origin/_burnTokensOnOrigin.tree index a3e7ae4c5..a2a3911ac 100644 --- a/src/test/sdk/extension/burn-to-claim/burn-tokens-on-origin/_burnTokensOnOrigin.tree +++ b/src/test/sdk/extension/burn-to-claim/burn-tokens-on-origin/_burnTokensOnOrigin.tree @@ -4,12 +4,12 @@ _burnTokensOnOrigin( uint256 _quantity ) ├── when burn-to-claim info has token type ERC721 - ├── when the origin ERC721 contract is not burnable - │ └── it should revert + ├── when the origin ERC721 contract is not burnable + │ └── it should revert ✅ └── when the origin ERC721 contract is burnable - └── it should successfully burn the token with given tokenId for the token owner + └── it should successfully burn the token with given tokenId for the token owner ✅ ├── when burn-to-claim info has token type ERC1155 ├── when the origin ERC1155 contract is not burnable - │ └── it should revert + │ └── it should revert ✅ └── when the origin ERC1155 contract is burnable - └── it should successfully burn tokens with given tokenId and quantity for the token owner \ No newline at end of file + └── it should successfully burn tokens with given tokenId and quantity for the token owner ✅ \ No newline at end of file diff --git a/src/test/sdk/extension/burn-to-claim/set-burn-to-claim-info/setBurnToClaimInfo.tree b/src/test/sdk/extension/burn-to-claim/set-burn-to-claim-info/setBurnToClaimInfo.tree index 5881cdc6d..d6e347f5e 100644 --- a/src/test/sdk/extension/burn-to-claim/set-burn-to-claim-info/setBurnToClaimInfo.tree +++ b/src/test/sdk/extension/burn-to-claim/set-burn-to-claim-info/setBurnToClaimInfo.tree @@ -1,11 +1,11 @@ setBurnToClaimInfo(BurnToClaimInfo calldata _burnToClaimInfo) ├── when caller not authorized - │ └── it should revert + │ └── it should revert ✅ └── when caller is authorized ├── when input originContractAddress is address(0) - │ └── it should revert + │ └── it should revert ✅ └── when input originContractAddress is not address(0) ├── when input currency is address(0) - │ └── it should revert + │ └── it should revert ✅ └── when input currency is not address(0) - └── it should save incoming struct values into burnToClaimInfo state \ No newline at end of file + └── it should save incoming struct values into burnToClaimInfo state ✅ \ No newline at end of file diff --git a/src/test/sdk/extension/burn-to-claim/verify-burn-to-claim/verifyBurnToClaim.tree b/src/test/sdk/extension/burn-to-claim/verify-burn-to-claim/verifyBurnToClaim.tree index dbdf271e4..ffc4dba9d 100644 --- a/src/test/sdk/extension/burn-to-claim/verify-burn-to-claim/verifyBurnToClaim.tree +++ b/src/test/sdk/extension/burn-to-claim/verify-burn-to-claim/verifyBurnToClaim.tree @@ -4,20 +4,20 @@ verifyBurnToClaim( uint256 quantity ) ├── when burn-to-claim info is not set - │ └── it should revert + │ └── it should revert ✅ └── when burn-to-claim info is set, with token type ERC721 │ ├── when quantity param is not 1 - │ │ └── it should revert + │ │ └── it should revert ✅ │ └── when quantity param is 1 │ ├── when token owner param is not the actual token owner - │ │ └── it should revert + │ │ └── it should revert ✅ │ └── when token owner param is the correct token owner - │ │ └── execution completes -- exit function + │ │ └── execution completes -- exit function ✅ └── when burn-to-claim info is set, with token type ERC1155 ├── when tokenId param doesn't match eligible tokenId - │ └── it should revert + │ └── it should revert ✅ └── when tokenId param matches eligible tokenId ├── when token owner has balance less than quantity param - │ └── it should revert + │ └── it should revert ✅ └── when token owner has balance greater than or equal to quantity param - └── execution completes -- exit function \ No newline at end of file + └── execution completes -- exit function ✅ \ No newline at end of file diff --git a/src/test/sdk/extension/contract-metadata/set-contract-uri/setContractURI.tree b/src/test/sdk/extension/contract-metadata/set-contract-uri/setContractURI.tree index e95889a2f..e626d76e4 100644 --- a/src/test/sdk/extension/contract-metadata/set-contract-uri/setContractURI.tree +++ b/src/test/sdk/extension/contract-metadata/set-contract-uri/setContractURI.tree @@ -1,6 +1,6 @@ setContractURI(string memory uri) ├── when caller not authorized - │ └── it should revert + │ └── it should revert ✅ └── when caller is authorized - └── it should update contract URI to the new URI value - └── it should emit ContractURIUpdated event \ No newline at end of file + └── it should update contract URI to the new URI value ✅ + └── it should emit ContractURIUpdated event ✅ \ No newline at end of file diff --git a/src/test/sdk/extension/delayed-reveal/get-reveal-uri/getRevealURI.tree b/src/test/sdk/extension/delayed-reveal/get-reveal-uri/getRevealURI.tree index e165f921f..acb580468 100644 --- a/src/test/sdk/extension/delayed-reveal/get-reveal-uri/getRevealURI.tree +++ b/src/test/sdk/extension/delayed-reveal/get-reveal-uri/getRevealURI.tree @@ -1,8 +1,8 @@ getRevealURI(uint256 _batchId, bytes calldata _key) ├── when there is no encrypted data set for the given batch id - │ └── it should revert + │ └── it should revert ✅ └── when there is an associated encrypted data present for the given batch id ├── when the encryption key provided is incorrect - │ └── it should revert + │ └── it should revert ✅ └── when the encryption key provided is correct - └── it should correctly decrypt and return the original URI \ No newline at end of file + └── it should correctly decrypt and return the original URI ✅ \ No newline at end of file diff --git a/src/test/sdk/extension/delayed-reveal/set-encrypted-data/_setEncryptedData.tree b/src/test/sdk/extension/delayed-reveal/set-encrypted-data/_setEncryptedData.tree index fdb8b6fc9..68f99a2c8 100644 --- a/src/test/sdk/extension/delayed-reveal/set-encrypted-data/_setEncryptedData.tree +++ b/src/test/sdk/extension/delayed-reveal/set-encrypted-data/_setEncryptedData.tree @@ -1,3 +1,3 @@ _setEncryptedData(uint256 _batchId, bytes memory _encryptedData) -├── it should store input bytes data for the given batch id param -├── isEncryptedBatch should return true for this batch id \ No newline at end of file +├── it should store input bytes data for the given batch id param ✅ +├── isEncryptedBatch should return true for this batch id ✅ \ No newline at end of file diff --git a/src/test/sdk/extension/drop/claim/claim.tree b/src/test/sdk/extension/drop/claim/claim.tree index 1f3455166..4ca1d3187 100644 --- a/src/test/sdk/extension/drop/claim/claim.tree +++ b/src/test/sdk/extension/drop/claim/claim.tree @@ -7,9 +7,9 @@ claim( bytes memory _data ) ├── when no active condition - │ └── it should revert + │ └── it should revert ✅ └── when there's an active condition - └── it should increase the supplyClaimed for that condition by quantity param input - └── it should increase the supplyClaimedByWallet for that condition and msg.sender by quantity param input + └── it should increase the supplyClaimed for that condition by quantity param input ✅ + └── it should increase the supplyClaimedByWallet for that condition and msg.sender by quantity param input ✅ (Note: verifyClaim function has been tested separately, and hence not being tested here) \ No newline at end of file diff --git a/src/test/sdk/extension/drop/get-active-claim-condition-id/getActiveClaimConditionId.tree b/src/test/sdk/extension/drop/get-active-claim-condition-id/getActiveClaimConditionId.tree index a5210760f..8b8a94d99 100644 --- a/src/test/sdk/extension/drop/get-active-claim-condition-id/getActiveClaimConditionId.tree +++ b/src/test/sdk/extension/drop/get-active-claim-condition-id/getActiveClaimConditionId.tree @@ -1,8 +1,8 @@ getActiveClaimConditionId() ├── when no conditions are set - │ └── it should revert + │ └── it should revert ✅ └── when condition(s) are set ├── when no active condition, i.e. start timestamps of all conditions greater than block timestamp - │ └── it should revert + │ └── it should revert ✅ └── when conditions active, i.e. start timestamps at least one condition is less than or equal to the block timestamp - └── it should return the latest active claim condition id (i.e. with highest start timestamp among those active) \ No newline at end of file + └── it should return the latest active claim condition id (i.e. with highest start timestamp among those active) ✅ \ No newline at end of file diff --git a/src/test/sdk/extension/drop/set-claim-conditions/setClaimConditions.tree b/src/test/sdk/extension/drop/set-claim-conditions/setClaimConditions.tree index 64e310547..dbf6297d3 100644 --- a/src/test/sdk/extension/drop/set-claim-conditions/setClaimConditions.tree +++ b/src/test/sdk/extension/drop/set-claim-conditions/setClaimConditions.tree @@ -1,24 +1,24 @@ setClaimConditions(ClaimCondition[] calldata _conditions, bool _resetClaimEligibility) ├── when caller not authorized - │ └── it should revert + │ └── it should revert ✅ └── when caller is authorized ├── when start timestamps of new conditions aren't in ascending order - │ └── it should revert + │ └── it should revert ✅ └── when start timestamps of new conditions are in ascending order ├── when claim eligibility is reset - │ └── it should set new conditions start index as the count of old conditions - │ └── it should set claim condition count equal to the count of new conditions - │ └── it should correctly save all new conditions at right index - │ └── it should set supply claimed for each condition equal to 0 - │ └── it should delete all old conditions (i.e. all conditions with index less than new start index) - │ └── it should emit ClaimConditionsUpdated event + │ └── it should set new conditions start index as the count of old conditions ✅ + │ └── it should set claim condition count equal to the count of new conditions ✅ + │ └── it should correctly save all new conditions at right index ✅ + │ └── it should set supply claimed for each condition equal to 0 ✅ + │ └── it should delete all old conditions (i.e. all conditions with index less than new start index) ✅ + │ └── it should emit ClaimConditionsUpdated event ✅ └── when claim eligibility is not reset ├── when maxClaimableSupply of a new condition is less than supplyClaimed of the old condition (at that index) - │ └── it should revert + │ └── it should revert ✅ └── when maxClaimableSupply of a new condition is greater than or equal to supplyClaimed of the old condition (at that index) - └── it should set new conditions start index same as old start index - └── it should set claim condition count equal to the count of new conditions - └── it should correctly save all new conditions at right index - └── it should set supply claimed for each condition equal to what it was in old condition (at that index) - └── it should delete all old conditions with index exceeding new count, in case new count is less than previous count - └── it should emit ClaimConditionsUpdated event \ No newline at end of file + └── it should set new conditions start index same as old start index ✅ + └── it should set claim condition count equal to the count of new conditions ✅ + └── it should correctly save all new conditions at right index ✅ + └── it should set supply claimed for each condition equal to what it was in old condition (at that index) ✅ + └── it should delete all old conditions with index exceeding new count, in case new count is less than previous count ✅ + └── it should emit ClaimConditionsUpdated event ✅ \ No newline at end of file diff --git a/src/test/sdk/extension/drop/verify-claim/verifyClaim.tree b/src/test/sdk/extension/drop/verify-claim/verifyClaim.tree index 64d9752f5..64553ab90 100644 --- a/src/test/sdk/extension/drop/verify-claim/verifyClaim.tree +++ b/src/test/sdk/extension/drop/verify-claim/verifyClaim.tree @@ -8,60 +8,60 @@ verifyClaim( ) ├── when no allowlist └── when currency param not equal to open claim currency - │ └── it should revert + │ └── it should revert ✅ └── when currency param is equal to open claim currency └── when pricePerToken param not equal to open claim price - │ └── it should revert + │ └── it should revert ✅ └── when pricePerToken param is equal to open claim price └── when quantity param is 0 - │ └── it should revert + │ └── it should revert ✅ └── when quantity param is not 0 └── when quantity param plus supply claimed is more than open claim limit - │ └── it should revert + │ └── it should revert ✅ └── when quantity param plus supply claimed is within open claim limit └── when quantity param plus claimed supply is more than max claimable supply - │ └── it should revert + │ └── it should revert ✅ └── when quantity param plus claimed supply is within max claimable supply limit └── when block timestamp is less than start timestamp of claim phase - │ └── it should revert + │ └── it should revert ✅ └── when block timestamp is greater than or equal to start timestamp of claim phase - └── execution completes -- exit function + └── execution completes -- exit function ✅ ├── when allowlist but incorrect merkle proof └── when currency param not equal to open claim currency - │ └── it should revert + │ └── it should revert ✅ └── when currency param is equal to open claim currency └── when pricePerToken param not equal to open claim price - │ └── it should revert + │ └── it should revert ✅ └── when pricePerToken param is equal to open claim price └── when quantity param is 0 - │ └── it should revert + │ └── it should revert ✅ └── when quantity param is not 0 └── when quantity param plus supply claimed is more than open claim limit - │ └── it should revert + │ └── it should revert ✅ ├── when allowlist and correct merkle proof └── when allowlist price is default max uint256 and allowlist currency is default address(0) │ └── when currency param not equal to open claim currency - │ └── it should revert + │ └── it should revert ✅ └── when allowlist price is default max uint256 and allowlist currency is not default │ └── when currency param not equal to open claim currency - │ └── it should revert + │ └── it should revert ✅ └── when allowlist price is not default and allowlist currency is default address(0) │ └── when currency param not equal to open claim currency - │ └── it should revert + │ └── it should revert ✅ └── when allowlist price is not default and allowlist currency is not default │ └── when currency param not equal to allowlist claim currency - │ └── it should revert + │ └── it should revert ✅ └── when allowlist quantity is default 0 │ └── when nonzero quantity param plus supply claimed is more than open claim limit - │ └── it should revert + │ └── it should revert ✅ └── when allowlist quantity is not default │ └── when nonzero quantity param plus supply claimed is more than allowlist claim limit - │ └── it should revert + │ └── it should revert ✅ └── when allowlist price is default max uint256 │ └── when pricePerToken param not equal to open claim price - │ └── it should revert + │ └── it should revert ✅ └── when allowlist price is not default │ └── when pricePerToken param not equal to allowlist claim price - │ └── it should revert \ No newline at end of file + │ └── it should revert ✅ \ No newline at end of file diff --git a/src/test/sdk/extension/lazy-mint/lazy-mint/lazyMint.tree b/src/test/sdk/extension/lazy-mint/lazy-mint/lazyMint.tree index e5c5f48a6..72ac4ddb3 100644 --- a/src/test/sdk/extension/lazy-mint/lazy-mint/lazyMint.tree +++ b/src/test/sdk/extension/lazy-mint/lazy-mint/lazyMint.tree @@ -4,14 +4,14 @@ lazyMint( bytes calldata _data ) ├── when caller not authorized - │ └── it should revert + │ └── it should revert ✅ └── when caller is authorized └── when amount to lazy mint is 0 - │ └── it should revert + │ └── it should revert ✅ └── when amount to lazy mint is not 0 - └── it should save the batch of tokens starting at `nextTokenIdToLazyMint` - └── it should store batch id equal to the sum of `nextTokenIdToLazyMint` and `_amount` - └── it should map the new batch id to `_baseURIForTokens` - └── it should increase `nextTokenIdToLazyMint` by `_amount` - └── it should return the new `batchId` - └── it should emit TokensLazyMinted event \ No newline at end of file + └── it should save the batch of tokens starting at `nextTokenIdToLazyMint` ✅ + └── it should store batch id equal to the sum of `nextTokenIdToLazyMint` and `_amount` ✅ + └── it should map the new batch id to `_baseURIForTokens` ✅ + └── it should increase `nextTokenIdToLazyMint` by `_amount` ✅ + └── it should return the new `batchId` ✅ + └── it should emit TokensLazyMinted event ✅ \ No newline at end of file diff --git a/src/test/sdk/extension/ownable/set-owner/setOwner.tree b/src/test/sdk/extension/ownable/set-owner/setOwner.tree index 69a3ef8e7..9db2c0a70 100644 --- a/src/test/sdk/extension/ownable/set-owner/setOwner.tree +++ b/src/test/sdk/extension/ownable/set-owner/setOwner.tree @@ -1,6 +1,6 @@ setContractURI(string memory uri) ├── when caller not authorized - │ └── it should revert + │ └── it should revert ✅ └── when caller is authorized - └── it should update owner by replacing old owner with the new owner input - └── it should emit OwnerUpdated event \ No newline at end of file + └── it should update owner by replacing old owner with the new owner input ✅ + └── it should emit OwnerUpdated event ✅ \ No newline at end of file diff --git a/src/test/sdk/extension/royalty/set-default-royalty-info/setDefaultRoyaltyInfo.tree b/src/test/sdk/extension/royalty/set-default-royalty-info/setDefaultRoyaltyInfo.tree index 32abbcbdb..78a4312de 100644 --- a/src/test/sdk/extension/royalty/set-default-royalty-info/setDefaultRoyaltyInfo.tree +++ b/src/test/sdk/extension/royalty/set-default-royalty-info/setDefaultRoyaltyInfo.tree @@ -1,11 +1,11 @@ setDefaultRoyaltyInfo(address _royaltyRecipient, uint256 _royaltyBps) ├── when caller not authorized - │ └── it should revert + │ └── it should revert ✅ └── when caller is authorized ├── when royalty bps input is greater than MAX_BPS - │ └── it should revert + │ └── it should revert ✅ └── when royalty bps input is less than or equal to MAX_BPS - └── it should update default royalty recipient - └── it should update default royalty bps - └── it should calculate royalty amount for a token-id based on default royalty info - └── it should emit DefaultRoyalty event \ No newline at end of file + └── it should update default royalty recipient ✅ + └── it should update default royalty bps ✅ + └── it should calculate royalty amount for a token-id based on default royalty info ✅ + └── it should emit DefaultRoyalty event ✅ \ No newline at end of file diff --git a/src/test/sdk/extension/royalty/set-royalty-info-for-token/setRoyaltyInfoForToken.tree b/src/test/sdk/extension/royalty/set-royalty-info-for-token/setRoyaltyInfoForToken.tree index 0874068ec..e28295634 100644 --- a/src/test/sdk/extension/royalty/set-royalty-info-for-token/setRoyaltyInfoForToken.tree +++ b/src/test/sdk/extension/royalty/set-royalty-info-for-token/setRoyaltyInfoForToken.tree @@ -4,12 +4,12 @@ function setRoyaltyInfoForToken( uint256 _bps ) ├── when caller not authorized - │ └── it should revert + │ └── it should revert ✅ └── when caller is authorized ├── when royalty bps input is greater than MAX_BPS - │ └── it should revert + │ └── it should revert ✅ └── when royalty bps input is less than or equal to MAX_BPS - └── it should update default royalty recipient - └── it should update default royalty bps - └── it should calculate royalty amount for a token-id based on default royalty info - └── it should emit DefaultRoyalty event \ No newline at end of file + └── it should update default royalty recipient ✅ + └── it should update default royalty bps ✅ + └── it should calculate royalty amount for a token-id based on default royalty info ✅ + └── it should emit DefaultRoyalty event ✅ \ No newline at end of file diff --git a/src/test/sdk/extension/upgradeable/batch-mint-metadata/batch-mint-metadata/_batchMintMetadata.tree b/src/test/sdk/extension/upgradeable/batch-mint-metadata/batch-mint-metadata/_batchMintMetadata.tree index f81205586..572dd5203 100644 --- a/src/test/sdk/extension/upgradeable/batch-mint-metadata/batch-mint-metadata/_batchMintMetadata.tree +++ b/src/test/sdk/extension/upgradeable/batch-mint-metadata/batch-mint-metadata/_batchMintMetadata.tree @@ -3,5 +3,5 @@ _batchMintMetadata( uint256 _amountToMint, string memory _baseURIForTokens ) -├── it should store batch id equal to the sum of `_startId` and `_amountToMint` in batchIds array -├── it should map the new batch id to `_baseURIForTokens` \ No newline at end of file +├── it should store batch id equal to the sum of `_startId` and `_amountToMint` in batchIds array ✅ +├── it should map the new batch id to `_baseURIForTokens` ✅ \ No newline at end of file diff --git a/src/test/sdk/extension/upgradeable/batch-mint-metadata/freeze-base-uri/_freezeBaseURI.tree b/src/test/sdk/extension/upgradeable/batch-mint-metadata/freeze-base-uri/_freezeBaseURI.tree index 76a1b3723..4dd87edef 100644 --- a/src/test/sdk/extension/upgradeable/batch-mint-metadata/freeze-base-uri/_freezeBaseURI.tree +++ b/src/test/sdk/extension/upgradeable/batch-mint-metadata/freeze-base-uri/_freezeBaseURI.tree @@ -1,6 +1,6 @@ _freezeBaseURI(uint256 _batchId) ├── when there is no baseURI for given `_batchId` - │ └── it should revert + │ └── it should revert ✅ └── when there is a baseURI present for given `_batchId` - └── it should freeze the `batchId` by setting `frozen[_batchId]` to `true` - └── it should emit MetadataFrozen event \ No newline at end of file + └── it should freeze the `batchId` by setting `frozen[_batchId]` to `true` ✅ + └── it should emit MetadataFrozen event ✅ \ No newline at end of file diff --git a/src/test/sdk/extension/upgradeable/batch-mint-metadata/get-base-uri/_getBaseURI.tree b/src/test/sdk/extension/upgradeable/batch-mint-metadata/get-base-uri/_getBaseURI.tree index 8a103a12d..c4ee674bf 100644 --- a/src/test/sdk/extension/upgradeable/batch-mint-metadata/get-base-uri/_getBaseURI.tree +++ b/src/test/sdk/extension/upgradeable/batch-mint-metadata/get-base-uri/_getBaseURI.tree @@ -1,6 +1,6 @@ _getBaseURI(uint256 _tokenId) ├── when `_tokenId` doesn't belong to any batch, i.e. greater than the last batchId - │ └── it should revert + │ └── it should revert ✅ └── when `_tokenId` belongs to some batch, i.e. less than that batchId - └── it should return correct baseURI for the `_tokenId` + └── it should return correct baseURI for the `_tokenId` ✅ (note: all batches are assumed to be contiguous, i.e. start id of one batch is the end id of the previous batch) \ No newline at end of file diff --git a/src/test/sdk/extension/upgradeable/batch-mint-metadata/get-batch-id/_getBatchId.tree b/src/test/sdk/extension/upgradeable/batch-mint-metadata/get-batch-id/_getBatchId.tree index 06040c3fc..2e6dd366e 100644 --- a/src/test/sdk/extension/upgradeable/batch-mint-metadata/get-batch-id/_getBatchId.tree +++ b/src/test/sdk/extension/upgradeable/batch-mint-metadata/get-batch-id/_getBatchId.tree @@ -1,6 +1,6 @@ _getBatchId(uint256 _tokenId) ├── when `_tokenId` doesn't belong to any batch, i.e. greater than the last batchId - │ └── it should revert + │ └── it should revert ✅ └── when `_tokenId` belongs to some batch, i.e. less than that batchId - └── it should return correct batchId and batch index for the `_tokenId` + └── it should return correct batchId and batch index for the `_tokenId` ✅ (note: all batches are assumed to be contiguous, i.e. start id of one batch is the end id of the previous batch) \ No newline at end of file diff --git a/src/test/sdk/extension/upgradeable/batch-mint-metadata/get-batch-start-id/_getBatchStartId.tree b/src/test/sdk/extension/upgradeable/batch-mint-metadata/get-batch-start-id/_getBatchStartId.tree index b5b77bf7e..7e303ab46 100644 --- a/src/test/sdk/extension/upgradeable/batch-mint-metadata/get-batch-start-id/_getBatchStartId.tree +++ b/src/test/sdk/extension/upgradeable/batch-mint-metadata/get-batch-start-id/_getBatchStartId.tree @@ -1,6 +1,6 @@ _getBatchStartId(uint256 _batchID) ├── when `_batchID` doesn't exist - │ └── it should revert + │ └── it should revert ✅ └── when `_batchID` exists - └── it should return the starting tokenId for that batch + └── it should return the starting tokenId for that batch ✅ (note: all batches are assumed to be contiguous, i.e. start id of one batch is the end id of the previous batch) \ No newline at end of file diff --git a/src/test/sdk/extension/upgradeable/batch-mint-metadata/set-base-uri/_setBaseURI.tree b/src/test/sdk/extension/upgradeable/batch-mint-metadata/set-base-uri/_setBaseURI.tree index 213b557bc..3df76f653 100644 --- a/src/test/sdk/extension/upgradeable/batch-mint-metadata/set-base-uri/_setBaseURI.tree +++ b/src/test/sdk/extension/upgradeable/batch-mint-metadata/set-base-uri/_setBaseURI.tree @@ -1,6 +1,6 @@ _setBaseURI(uint256 _batchId, string memory _baseURI) ├── when the `_batchId` is frozen - │ └── it should revert + │ └── it should revert ✅ └── when the `_batchId` is not frozen - └── it should map the `_batchId` to `_baseURI` param - └── it should emit BatchMetadataUpdate event \ No newline at end of file + └── it should map the `_batchId` to `_baseURI` param ✅ + └── it should emit BatchMetadataUpdate event ✅ \ No newline at end of file diff --git a/src/test/sdk/extension/upgradeable/burn-to-claim/burn-tokens-on-origin/_burnTokensOnOrigin.tree b/src/test/sdk/extension/upgradeable/burn-to-claim/burn-tokens-on-origin/_burnTokensOnOrigin.tree index a3e7ae4c5..a2a3911ac 100644 --- a/src/test/sdk/extension/upgradeable/burn-to-claim/burn-tokens-on-origin/_burnTokensOnOrigin.tree +++ b/src/test/sdk/extension/upgradeable/burn-to-claim/burn-tokens-on-origin/_burnTokensOnOrigin.tree @@ -4,12 +4,12 @@ _burnTokensOnOrigin( uint256 _quantity ) ├── when burn-to-claim info has token type ERC721 - ├── when the origin ERC721 contract is not burnable - │ └── it should revert + ├── when the origin ERC721 contract is not burnable + │ └── it should revert ✅ └── when the origin ERC721 contract is burnable - └── it should successfully burn the token with given tokenId for the token owner + └── it should successfully burn the token with given tokenId for the token owner ✅ ├── when burn-to-claim info has token type ERC1155 ├── when the origin ERC1155 contract is not burnable - │ └── it should revert + │ └── it should revert ✅ └── when the origin ERC1155 contract is burnable - └── it should successfully burn tokens with given tokenId and quantity for the token owner \ No newline at end of file + └── it should successfully burn tokens with given tokenId and quantity for the token owner ✅ \ No newline at end of file diff --git a/src/test/sdk/extension/upgradeable/burn-to-claim/set-burn-to-claim-info/setBurnToClaimInfo.tree b/src/test/sdk/extension/upgradeable/burn-to-claim/set-burn-to-claim-info/setBurnToClaimInfo.tree index 5881cdc6d..d6e347f5e 100644 --- a/src/test/sdk/extension/upgradeable/burn-to-claim/set-burn-to-claim-info/setBurnToClaimInfo.tree +++ b/src/test/sdk/extension/upgradeable/burn-to-claim/set-burn-to-claim-info/setBurnToClaimInfo.tree @@ -1,11 +1,11 @@ setBurnToClaimInfo(BurnToClaimInfo calldata _burnToClaimInfo) ├── when caller not authorized - │ └── it should revert + │ └── it should revert ✅ └── when caller is authorized ├── when input originContractAddress is address(0) - │ └── it should revert + │ └── it should revert ✅ └── when input originContractAddress is not address(0) ├── when input currency is address(0) - │ └── it should revert + │ └── it should revert ✅ └── when input currency is not address(0) - └── it should save incoming struct values into burnToClaimInfo state \ No newline at end of file + └── it should save incoming struct values into burnToClaimInfo state ✅ \ No newline at end of file diff --git a/src/test/sdk/extension/upgradeable/burn-to-claim/verify-burn-to-claim/verifyBurnToClaim.tree b/src/test/sdk/extension/upgradeable/burn-to-claim/verify-burn-to-claim/verifyBurnToClaim.tree index dbdf271e4..ffc4dba9d 100644 --- a/src/test/sdk/extension/upgradeable/burn-to-claim/verify-burn-to-claim/verifyBurnToClaim.tree +++ b/src/test/sdk/extension/upgradeable/burn-to-claim/verify-burn-to-claim/verifyBurnToClaim.tree @@ -4,20 +4,20 @@ verifyBurnToClaim( uint256 quantity ) ├── when burn-to-claim info is not set - │ └── it should revert + │ └── it should revert ✅ └── when burn-to-claim info is set, with token type ERC721 │ ├── when quantity param is not 1 - │ │ └── it should revert + │ │ └── it should revert ✅ │ └── when quantity param is 1 │ ├── when token owner param is not the actual token owner - │ │ └── it should revert + │ │ └── it should revert ✅ │ └── when token owner param is the correct token owner - │ │ └── execution completes -- exit function + │ │ └── execution completes -- exit function ✅ └── when burn-to-claim info is set, with token type ERC1155 ├── when tokenId param doesn't match eligible tokenId - │ └── it should revert + │ └── it should revert ✅ └── when tokenId param matches eligible tokenId ├── when token owner has balance less than quantity param - │ └── it should revert + │ └── it should revert ✅ └── when token owner has balance greater than or equal to quantity param - └── execution completes -- exit function \ No newline at end of file + └── execution completes -- exit function ✅ \ No newline at end of file diff --git a/src/test/sdk/extension/upgradeable/contract-metadata/set-contract-uri/setContractURI.tree b/src/test/sdk/extension/upgradeable/contract-metadata/set-contract-uri/setContractURI.tree index e95889a2f..e626d76e4 100644 --- a/src/test/sdk/extension/upgradeable/contract-metadata/set-contract-uri/setContractURI.tree +++ b/src/test/sdk/extension/upgradeable/contract-metadata/set-contract-uri/setContractURI.tree @@ -1,6 +1,6 @@ setContractURI(string memory uri) ├── when caller not authorized - │ └── it should revert + │ └── it should revert ✅ └── when caller is authorized - └── it should update contract URI to the new URI value - └── it should emit ContractURIUpdated event \ No newline at end of file + └── it should update contract URI to the new URI value ✅ + └── it should emit ContractURIUpdated event ✅ \ No newline at end of file diff --git a/src/test/sdk/extension/upgradeable/delayed-reveal/get-reveal-uri/getRevealURI.tree b/src/test/sdk/extension/upgradeable/delayed-reveal/get-reveal-uri/getRevealURI.tree index e165f921f..acb580468 100644 --- a/src/test/sdk/extension/upgradeable/delayed-reveal/get-reveal-uri/getRevealURI.tree +++ b/src/test/sdk/extension/upgradeable/delayed-reveal/get-reveal-uri/getRevealURI.tree @@ -1,8 +1,8 @@ getRevealURI(uint256 _batchId, bytes calldata _key) ├── when there is no encrypted data set for the given batch id - │ └── it should revert + │ └── it should revert ✅ └── when there is an associated encrypted data present for the given batch id ├── when the encryption key provided is incorrect - │ └── it should revert + │ └── it should revert ✅ └── when the encryption key provided is correct - └── it should correctly decrypt and return the original URI \ No newline at end of file + └── it should correctly decrypt and return the original URI ✅ \ No newline at end of file diff --git a/src/test/sdk/extension/upgradeable/delayed-reveal/set-encrypted-data/_setEncryptedData.tree b/src/test/sdk/extension/upgradeable/delayed-reveal/set-encrypted-data/_setEncryptedData.tree index fdb8b6fc9..68f99a2c8 100644 --- a/src/test/sdk/extension/upgradeable/delayed-reveal/set-encrypted-data/_setEncryptedData.tree +++ b/src/test/sdk/extension/upgradeable/delayed-reveal/set-encrypted-data/_setEncryptedData.tree @@ -1,3 +1,3 @@ _setEncryptedData(uint256 _batchId, bytes memory _encryptedData) -├── it should store input bytes data for the given batch id param -├── isEncryptedBatch should return true for this batch id \ No newline at end of file +├── it should store input bytes data for the given batch id param ✅ +├── isEncryptedBatch should return true for this batch id ✅ \ No newline at end of file diff --git a/src/test/sdk/extension/upgradeable/drop/claim/claim.tree b/src/test/sdk/extension/upgradeable/drop/claim/claim.tree index 1f3455166..4ca1d3187 100644 --- a/src/test/sdk/extension/upgradeable/drop/claim/claim.tree +++ b/src/test/sdk/extension/upgradeable/drop/claim/claim.tree @@ -7,9 +7,9 @@ claim( bytes memory _data ) ├── when no active condition - │ └── it should revert + │ └── it should revert ✅ └── when there's an active condition - └── it should increase the supplyClaimed for that condition by quantity param input - └── it should increase the supplyClaimedByWallet for that condition and msg.sender by quantity param input + └── it should increase the supplyClaimed for that condition by quantity param input ✅ + └── it should increase the supplyClaimedByWallet for that condition and msg.sender by quantity param input ✅ (Note: verifyClaim function has been tested separately, and hence not being tested here) \ No newline at end of file diff --git a/src/test/sdk/extension/upgradeable/drop/get-active-claim-condition-id/getActiveClaimConditionId.tree b/src/test/sdk/extension/upgradeable/drop/get-active-claim-condition-id/getActiveClaimConditionId.tree index a5210760f..8b8a94d99 100644 --- a/src/test/sdk/extension/upgradeable/drop/get-active-claim-condition-id/getActiveClaimConditionId.tree +++ b/src/test/sdk/extension/upgradeable/drop/get-active-claim-condition-id/getActiveClaimConditionId.tree @@ -1,8 +1,8 @@ getActiveClaimConditionId() ├── when no conditions are set - │ └── it should revert + │ └── it should revert ✅ └── when condition(s) are set ├── when no active condition, i.e. start timestamps of all conditions greater than block timestamp - │ └── it should revert + │ └── it should revert ✅ └── when conditions active, i.e. start timestamps at least one condition is less than or equal to the block timestamp - └── it should return the latest active claim condition id (i.e. with highest start timestamp among those active) \ No newline at end of file + └── it should return the latest active claim condition id (i.e. with highest start timestamp among those active) ✅ \ No newline at end of file diff --git a/src/test/sdk/extension/upgradeable/drop/set-claim-conditions/setClaimConditions.tree b/src/test/sdk/extension/upgradeable/drop/set-claim-conditions/setClaimConditions.tree index 64e310547..aecd6b06f 100644 --- a/src/test/sdk/extension/upgradeable/drop/set-claim-conditions/setClaimConditions.tree +++ b/src/test/sdk/extension/upgradeable/drop/set-claim-conditions/setClaimConditions.tree @@ -1,24 +1,24 @@ setClaimConditions(ClaimCondition[] calldata _conditions, bool _resetClaimEligibility) ├── when caller not authorized - │ └── it should revert + │ └── it should revert ✅ └── when caller is authorized ├── when start timestamps of new conditions aren't in ascending order - │ └── it should revert + │ └── it should revert ✅ └── when start timestamps of new conditions are in ascending order ├── when claim eligibility is reset - │ └── it should set new conditions start index as the count of old conditions - │ └── it should set claim condition count equal to the count of new conditions - │ └── it should correctly save all new conditions at right index - │ └── it should set supply claimed for each condition equal to 0 - │ └── it should delete all old conditions (i.e. all conditions with index less than new start index) - │ └── it should emit ClaimConditionsUpdated event + │ └── it should set new conditions start index as the count of old conditions ✅ + │ └── it should set claim condition count equal to the count of new conditions ✅ + │ └── it should correctly save all new conditions at right index ✅ + │ └── it should set supply claimed for each condition equal to 0 ✅ + │ └── it should delete all old conditions (i.e. all conditions with index less than new start index) ✅ + │ └── it should emit ClaimConditionsUpdated event ✅ └── when claim eligibility is not reset ├── when maxClaimableSupply of a new condition is less than supplyClaimed of the old condition (at that index) - │ └── it should revert + │ └── it should revert ✅ └── when maxClaimableSupply of a new condition is greater than or equal to supplyClaimed of the old condition (at that index) - └── it should set new conditions start index same as old start index - └── it should set claim condition count equal to the count of new conditions - └── it should correctly save all new conditions at right index - └── it should set supply claimed for each condition equal to what it was in old condition (at that index) - └── it should delete all old conditions with index exceeding new count, in case new count is less than previous count - └── it should emit ClaimConditionsUpdated event \ No newline at end of file + └── it should set new conditions start index same as old start index ✅ + └── it should set claim condition count equal to the count of new conditions ✅ + └── it should correctly save all new conditions at right index ✅ + └── it should set supply claimed for each condition equal to what it was in old condition (at that index) ✅ + └── it should delete all old conditions with index exceeding new count, in case new count is less than previous count ✅ + └── it should emit ClaimConditionsUpdated event ✅ \ No newline at end of file diff --git a/src/test/sdk/extension/upgradeable/drop/verify-claim/verifyClaim.tree b/src/test/sdk/extension/upgradeable/drop/verify-claim/verifyClaim.tree index 64d9752f5..ef84f4ef2 100644 --- a/src/test/sdk/extension/upgradeable/drop/verify-claim/verifyClaim.tree +++ b/src/test/sdk/extension/upgradeable/drop/verify-claim/verifyClaim.tree @@ -8,60 +8,60 @@ verifyClaim( ) ├── when no allowlist └── when currency param not equal to open claim currency - │ └── it should revert + │ └── it should revert ✅ └── when currency param is equal to open claim currency └── when pricePerToken param not equal to open claim price - │ └── it should revert + │ └── it should revert ✅ └── when pricePerToken param is equal to open claim price └── when quantity param is 0 - │ └── it should revert + │ └── it should revert ✅ └── when quantity param is not 0 └── when quantity param plus supply claimed is more than open claim limit - │ └── it should revert + │ └── it should revert ✅ └── when quantity param plus supply claimed is within open claim limit └── when quantity param plus claimed supply is more than max claimable supply - │ └── it should revert + │ └── it should revert ✅ └── when quantity param plus claimed supply is within max claimable supply limit └── when block timestamp is less than start timestamp of claim phase - │ └── it should revert + │ └── it should revert ✅ └── when block timestamp is greater than or equal to start timestamp of claim phase - └── execution completes -- exit function + └── execution completes -- exit function ✅ ├── when allowlist but incorrect merkle proof └── when currency param not equal to open claim currency - │ └── it should revert + │ └── it should revert ✅ └── when currency param is equal to open claim currency └── when pricePerToken param not equal to open claim price - │ └── it should revert + │ └── it should revert ✅ └── when pricePerToken param is equal to open claim price └── when quantity param is 0 - │ └── it should revert + │ └── it should revert ✅ └── when quantity param is not 0 └── when quantity param plus supply claimed is more than open claim limit - │ └── it should revert + │ └── it should revert ✅ ├── when allowlist and correct merkle proof └── when allowlist price is default max uint256 and allowlist currency is default address(0) │ └── when currency param not equal to open claim currency - │ └── it should revert + │ └── it should revert ✅ └── when allowlist price is default max uint256 and allowlist currency is not default │ └── when currency param not equal to open claim currency - │ └── it should revert + │ └── it should revert ✅ └── when allowlist price is not default and allowlist currency is default address(0) │ └── when currency param not equal to open claim currency - │ └── it should revert + │ └── it should revert ✅ └── when allowlist price is not default and allowlist currency is not default │ └── when currency param not equal to allowlist claim currency - │ └── it should revert + │ └── it should revert ✅ └── when allowlist quantity is default 0 │ └── when nonzero quantity param plus supply claimed is more than open claim limit - │ └── it should revert + │ └── it should revert ✅ └── when allowlist quantity is not default │ └── when nonzero quantity param plus supply claimed is more than allowlist claim limit - │ └── it should revert + │ └── it should revert ✅ └── when allowlist price is default max uint256 │ └── when pricePerToken param not equal to open claim price - │ └── it should revert + │ └── it should revert ✅ └── when allowlist price is not default │ └── when pricePerToken param not equal to allowlist claim price - │ └── it should revert \ No newline at end of file + │ └── it should revert ✅ \ No newline at end of file diff --git a/src/test/sdk/extension/upgradeable/lazy-mint/lazy-mint/lazyMint.tree b/src/test/sdk/extension/upgradeable/lazy-mint/lazy-mint/lazyMint.tree index e5c5f48a6..daf177146 100644 --- a/src/test/sdk/extension/upgradeable/lazy-mint/lazy-mint/lazyMint.tree +++ b/src/test/sdk/extension/upgradeable/lazy-mint/lazy-mint/lazyMint.tree @@ -4,14 +4,14 @@ lazyMint( bytes calldata _data ) ├── when caller not authorized - │ └── it should revert + │ └── it should revert ✅ └── when caller is authorized └── when amount to lazy mint is 0 - │ └── it should revert + │ └── it should revert ✅ └── when amount to lazy mint is not 0 - └── it should save the batch of tokens starting at `nextTokenIdToLazyMint` - └── it should store batch id equal to the sum of `nextTokenIdToLazyMint` and `_amount` - └── it should map the new batch id to `_baseURIForTokens` - └── it should increase `nextTokenIdToLazyMint` by `_amount` - └── it should return the new `batchId` - └── it should emit TokensLazyMinted event \ No newline at end of file + └── it should save the batch of tokens starting at `nextTokenIdToLazyMint` ✅ + └── it should store batch id equal to the sum of `nextTokenIdToLazyMint` and `_amount` ✅ + └── it should map the new batch id to `_baseURIForTokens` ✅ + └── it should increase `nextTokenIdToLazyMint` by `_amount` ✅ + └── it should return the new `batchId` ✅ + └── it should emit TokensLazyMinted event ✅ \ No newline at end of file diff --git a/src/test/sdk/extension/upgradeable/ownable/set-owner/setOwner.tree b/src/test/sdk/extension/upgradeable/ownable/set-owner/setOwner.tree index 69a3ef8e7..9db2c0a70 100644 --- a/src/test/sdk/extension/upgradeable/ownable/set-owner/setOwner.tree +++ b/src/test/sdk/extension/upgradeable/ownable/set-owner/setOwner.tree @@ -1,6 +1,6 @@ setContractURI(string memory uri) ├── when caller not authorized - │ └── it should revert + │ └── it should revert ✅ └── when caller is authorized - └── it should update owner by replacing old owner with the new owner input - └── it should emit OwnerUpdated event \ No newline at end of file + └── it should update owner by replacing old owner with the new owner input ✅ + └── it should emit OwnerUpdated event ✅ \ No newline at end of file diff --git a/src/test/sdk/extension/upgradeable/royalty/set-default-royalty-info/setDefaultRoyaltyInfo.tree b/src/test/sdk/extension/upgradeable/royalty/set-default-royalty-info/setDefaultRoyaltyInfo.tree index 32abbcbdb..78a4312de 100644 --- a/src/test/sdk/extension/upgradeable/royalty/set-default-royalty-info/setDefaultRoyaltyInfo.tree +++ b/src/test/sdk/extension/upgradeable/royalty/set-default-royalty-info/setDefaultRoyaltyInfo.tree @@ -1,11 +1,11 @@ setDefaultRoyaltyInfo(address _royaltyRecipient, uint256 _royaltyBps) ├── when caller not authorized - │ └── it should revert + │ └── it should revert ✅ └── when caller is authorized ├── when royalty bps input is greater than MAX_BPS - │ └── it should revert + │ └── it should revert ✅ └── when royalty bps input is less than or equal to MAX_BPS - └── it should update default royalty recipient - └── it should update default royalty bps - └── it should calculate royalty amount for a token-id based on default royalty info - └── it should emit DefaultRoyalty event \ No newline at end of file + └── it should update default royalty recipient ✅ + └── it should update default royalty bps ✅ + └── it should calculate royalty amount for a token-id based on default royalty info ✅ + └── it should emit DefaultRoyalty event ✅ \ No newline at end of file diff --git a/src/test/sdk/extension/upgradeable/royalty/set-royalty-info-for-token/setRoyaltyInfoForToken.tree b/src/test/sdk/extension/upgradeable/royalty/set-royalty-info-for-token/setRoyaltyInfoForToken.tree index 0874068ec..e28295634 100644 --- a/src/test/sdk/extension/upgradeable/royalty/set-royalty-info-for-token/setRoyaltyInfoForToken.tree +++ b/src/test/sdk/extension/upgradeable/royalty/set-royalty-info-for-token/setRoyaltyInfoForToken.tree @@ -4,12 +4,12 @@ function setRoyaltyInfoForToken( uint256 _bps ) ├── when caller not authorized - │ └── it should revert + │ └── it should revert ✅ └── when caller is authorized ├── when royalty bps input is greater than MAX_BPS - │ └── it should revert + │ └── it should revert ✅ └── when royalty bps input is less than or equal to MAX_BPS - └── it should update default royalty recipient - └── it should update default royalty bps - └── it should calculate royalty amount for a token-id based on default royalty info - └── it should emit DefaultRoyalty event \ No newline at end of file + └── it should update default royalty recipient ✅ + └── it should update default royalty bps ✅ + └── it should calculate royalty amount for a token-id based on default royalty info ✅ + └── it should emit DefaultRoyalty event ✅ \ No newline at end of file