Skip to content

Commit

Permalink
Merge pull request #1142 from thesandboxgame/asset-audit-n-04
Browse files Browse the repository at this point in the history
N-04 Asset Audit
  • Loading branch information
wojciech-turek authored Sep 15, 2023
2 parents d3ee638 + e5ef998 commit 55ebf7a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion packages/asset/.solhint.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"endOfLine": "auto"
}
],
"custom-errors": "off",
"compiler-version": ["error", "^0.8.0"],
"func-visibility": ["error", {"ignoreConstructors": true}],
"reason-string": ["warn", {"maxLength": 64}]
Expand Down
8 changes: 4 additions & 4 deletions packages/asset/contracts/Asset.sol
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ contract Asset is
/// @param to address to which the token will be transfered.
/// @param ids ids of each token type transfered.
/// @param amounts amount of each token type transfered.
/// @param data aditional data accompanying the transfer.
/// @param data additional data accompanying the transfer.
function safeBatchTransferFrom(
address from,
address to,
Expand Down Expand Up @@ -286,7 +286,7 @@ contract Asset is
/// @param to address to which the token will be transfered.
/// @param id the token type transfered.
/// @param amount amount of token transfered.
/// @param data aditional data accompanying the transfer.
/// @param data additional data accompanying the transfer.
function safeTransferFrom(
address from,
address to,
Expand All @@ -304,7 +304,7 @@ contract Asset is
/// @notice could be used to deploy splitter and set tokens royalties
/// @param tokenId the id of the token for which the EIP2981 royalty is set for.
/// @param recipient the royalty recipient for the splitter of the creator.
/// @param creator the creactor of the tokens.
/// @param creator the creator of the tokens.
function setTokenRoyalties(
uint256 tokenId,
address payable recipient,
Expand Down Expand Up @@ -355,7 +355,7 @@ contract Asset is
return TokenIdUtils.isBridged(tokenId);
}

/// @notice This function is used to register Asset contract on the Operator Filterer Registry of OpenSea.can only be called by admin.
/// @notice This function is used to register Asset contract on the Operator Filterer Registry of OpenSea. Can only be called by admin.
/// @dev used to register contract and subscribe to the subscriptionOrRegistrantToCopy's black list.
/// @param subscriptionOrRegistrantToCopy registration address of the list to subscribe.
/// @param subscribe bool to signify subscription "true"" or to copy the list "false".
Expand Down
1 change: 0 additions & 1 deletion packages/dependency-operator-filter/.solhint.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"endOfLine": "auto"
}
],
"custom-errors": "off",
"compiler-version": ["error", "^0.8.0"],
"func-visibility": ["error", {"ignoreConstructors": true}],
"reason-string": ["warn", {"maxLength": 64}]
Expand Down
1 change: 0 additions & 1 deletion packages/dependency-royalty-management/.solhint.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"endOfLine": "auto"
}
],
"custom-errors": "off",
"compiler-version": ["error", "^0.8.0"],
"func-visibility": ["error", {"ignoreConstructors": true}],
"reason-string": ["warn", {"maxLength": 64}]
Expand Down

1 comment on commit 55ebf7a

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage for this commit

96.15%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/asset/contracts
   Asset.sol94.53%89.58%96.43%98.08%116, 207, 312, 312–313, 76
   AssetCreate.sol94.51%83.33%100%100%138, 140, 173, 293, 72
   AssetReveal.sol94.35%86.21%96.55%98.89%143, 147, 181, 376, 416, 424, 441, 75, 98
   AuthSuperValidator.sol90%83.33%100%88.89%51–52
   Catalyst.sol95%91.94%95.45%98.21%125, 127, 140, 152, 224, 80
packages/asset/contracts/interfaces
   IAsset.sol100%100%100%100%
   IAssetCreate.sol100%100%100%100%
   IAssetReveal.sol100%100%100%100%
   ICatalyst.sol100%100%100%100%
   ITokenUtils.sol100%100%100%100%
packages/asset/contracts/libraries
   TokenIdUtils.sol100%100%100%100%
packages/dependency-metatx/contracts
   ERC2771Handler.sol100%100%100%100%
   ERC2771HandlerAbstract.sol100%100%100%100%
   ERC2771HandlerUpgradeable.sol95.45%83.33%100%100%43
packages/dependency-metatx/contracts/test
   ERC2771HandlerTest.sol100%100%100%100%
   ERC2771HandlerUpgradeableTest.sol100%100%100%100%
   MockTrustedForwarder.sol0%0%0%0%15, 18–19, 19, 19–20
packages/dependency-operator-filter/contracts
   OperatorFiltererUpgradeable.sol82.35%85%71.43%83.33%17, 51–52, 61–62, 71, 87
   OperatorFilterSubscription.sol60%50%100%50%19–20
packages/dependency-operator-filter/contracts/interfaces
   IOperatorFilterRegistry.sol100%100%100%100%
packages/dependency-royalty-management/contracts
   MultiRoyaltyDistributor.sol84.06%65%90%92.31%104, 144, 25, 41, 41, 41, 41, 60–61, 97
   RoyaltyDistributor.sol78.95%50%80%90%20, 50, 56
   RoyaltyManager.sol96.39%87.50%100%100%104, 47, 98
   RoyaltySplitter.sol92.08%75%92.31%97.06%117, 157, 185, 218, 65, 72, 83
packages/dependency-royalty-management/contracts/interfaces
   IERC20Approve.sol100%100%100%100%
   IMultiRoyaltyDistributor.sol100%100%100%100%
   IMultiRoyaltyRecipients.sol100%100%100%100%
   IRoyaltyManager.sol100%100%100%100%
   IRoyaltyUGC.sol100%100%100%100%

Please sign in to comment.