-
Notifications
You must be signed in to change notification settings - Fork 522
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
96e577f
commit 36795ff
Showing
43 changed files
with
251 additions
and
251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
src/test/burn-to-claim-drop-BTT/router/other-functions/other.tree
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ✅ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
src/test/sdk/extension/batch-mint-metadata/freeze-base-uri/_freezeBaseURI.tree
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
└── it should freeze the `batchId` by setting `frozen[_batchId]` to `true` ✅ | ||
└── it should emit MetadataFrozen event ✅ |
4 changes: 2 additions & 2 deletions
4
src/test/sdk/extension/batch-mint-metadata/get-base-uri/_getBaseURI.tree
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |
4 changes: 2 additions & 2 deletions
4
src/test/sdk/extension/batch-mint-metadata/get-batch-id/_getBatchId.tree
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |
4 changes: 2 additions & 2 deletions
4
src/test/sdk/extension/batch-mint-metadata/get-batch-start-id/_getBatchStartId.tree
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |
6 changes: 3 additions & 3 deletions
6
src/test/sdk/extension/batch-mint-metadata/set-base-uri/_setBaseURI.tree
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
└── it should map the `_batchId` to `_baseURI` param ✅ | ||
└── it should emit BatchMetadataUpdate event ✅ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
src/test/sdk/extension/burn-to-claim/set-burn-to-claim-info/setBurnToClaimInfo.tree
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
└── it should save incoming struct values into burnToClaimInfo state ✅ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
src/test/sdk/extension/contract-metadata/set-contract-uri/setContractURI.tree
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
└── it should update contract URI to the new URI value ✅ | ||
└── it should emit ContractURIUpdated event ✅ |
6 changes: 3 additions & 3 deletions
6
src/test/sdk/extension/delayed-reveal/get-reveal-uri/getRevealURI.tree
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
└── it should correctly decrypt and return the original URI ✅ |
4 changes: 2 additions & 2 deletions
4
src/test/sdk/extension/delayed-reveal/set-encrypted-data/_setEncryptedData.tree
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
├── it should store input bytes data for the given batch id param ✅ | ||
├── isEncryptedBatch should return true for this batch id ✅ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
src/test/sdk/extension/drop/get-active-claim-condition-id/getActiveClaimConditionId.tree
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) | ||
└── it should return the latest active claim condition id (i.e. with highest start timestamp among those active) ✅ |
Oops, something went wrong.