Skip to content

Commit

Permalink
Merge branch 'main' into ci/add-venom-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pcaversaccio authored Sep 17, 2024
2 parents 4a14f8c + 7f2aef7 commit b9e5f12
Show file tree
Hide file tree
Showing 72 changed files with 869 additions and 845 deletions.
1,466 changes: 733 additions & 733 deletions .gas-snapshot

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ cache = true # Enable cachin
cache_path = "cache" # Set the path to the cache.
force = false # Do not ignore the cache.
skip = ["src/snekmate/**/*[!c][!k].vy", "src/snekmate/**/*.vyi"] # Skip the compilation of non-mock and interface files.
solc_version = "0.8.26" # Set the Solidity compiler version.
solc_version = "0.8.27" # Set the Solidity compiler version.
evm_version = "cancun" # Set the EVM target version.
optimizer = true # Enable the Solidity compiler optimiser.
optimizer_runs = 200 # Configure the number of optimiser runs.
Expand Down
2 changes: 1 addition & 1 deletion lib/create-util
Submodule create-util updated 3 files
+35 −1 hardhat.config.ts
+12 −10 package.json
+282 −273 pnpm-lock.yaml
2 changes: 1 addition & 1 deletion lib/forge-std
2 changes: 1 addition & 1 deletion lib/halmos-cheatcodes
Submodule halmos-cheatcodes updated 1 files
+8 −0 src/SVM.sol
2 changes: 1 addition & 1 deletion lib/utils/VyperDeployer.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: WTFPL
pragma solidity ^0.8.26;
pragma solidity ^0.8.27;

import {Create} from "create-util/Create.sol";
import {console, StdStyle} from "forge-std/Test.sol";
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
"CHANGELOG.md"
],
"devDependencies": {
"@eslint/js": "^9.9.1",
"@eslint/js": "^9.10.0",
"@openzeppelin/merkle-tree": "^1.0.7",
"eslint": "^9.9.1",
"eslint": "^9.10.0",
"eslint-config-prettier": "^9.1.0",
"ethers": "^6.13.2",
"keccak256": "^1.0.6",
Expand Down
100 changes: 57 additions & 43 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/snekmate/extensions/erc2981.vy
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ def royaltyInfo(token_id: uint256, sale_price: uint256) -> (address, uint256):
on a sale price that may be denominated in any unit
of exchange. The royalty amount is denominated and
should be paid in that same unit of exchange.
@notice The ERC-2981 allows the royalty to be set at 100%
of the price. In that case, the entire price would
be transferred to the royalty receiver and `0` tokens
to the seller. Hence, for contracts involving royalty
payments, empty transfers should be taken into account.
@param token_id The 32-byte identifier of the token.
@param sale_price The 32-byte sale price of the NFT asset
specified by `token_id`.
Expand Down
5 changes: 5 additions & 0 deletions src/snekmate/extensions/interfaces/IERC2981.vyi
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ def royaltyInfo(_tokenId: uint256, _salePrice: uint256) -> (address, uint256):
on a sale price that may be denominated in any unit
of exchange. The royalty amount is denominated and
should be paid in that same unit of exchange.
@notice The ERC-2981 allows the royalty to be set at 100%
of the price. In that case, the entire price would
be transferred to the royalty receiver and `0` tokens
to the seller. Hence, for contracts involving royalty
payments, empty transfers should be taken into account.
@param _tokenId The 32-byte identifier of the token.
@param _salePrice The 32-byte sale price of the NFT asset
specified by `_tokenId`.
Expand Down
2 changes: 1 addition & 1 deletion test/auth/AccessControl.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: WTFPL
pragma solidity ^0.8.26;
pragma solidity ^0.8.27;

import {Test} from "forge-std/Test.sol";
import {VyperDeployer} from "utils/VyperDeployer.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/auth/Ownable.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: WTFPL
pragma solidity ^0.8.26;
pragma solidity ^0.8.27;

import {Test} from "forge-std/Test.sol";
import {VyperDeployer} from "utils/VyperDeployer.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/auth/Ownable2Step.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: WTFPL
pragma solidity ^0.8.26;
pragma solidity ^0.8.27;

import {Test} from "forge-std/Test.sol";
import {VyperDeployer} from "utils/VyperDeployer.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/auth/interfaces/IAccessControlExtended.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: WTFPL
pragma solidity ^0.8.26;
pragma solidity ^0.8.27;

import {IERC165} from "openzeppelin/utils/introspection/IERC165.sol";
import {IAccessControl} from "openzeppelin/access/IAccessControl.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/auth/interfaces/IOwnable.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: WTFPL
pragma solidity ^0.8.26;
pragma solidity ^0.8.27;

interface IOwnable {
event OwnershipTransferred(
Expand Down
Loading

0 comments on commit b9e5f12

Please sign in to comment.