@bannynet/core-v6 0.0.12 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AUDIT_INSTRUCTIONS.md +1 -1
- package/CHANGE_LOG.md +2 -2
- package/STYLE_GUIDE.md +2 -2
- package/foundry.toml +1 -1
- package/package.json +8 -8
- package/script/Add.Denver.s.sol +1 -1
- package/script/Deploy.s.sol +1 -2
- package/script/Drop1.s.sol +1 -1
- package/script/helpers/BannyverseDeploymentLib.sol +1 -1
- package/script/helpers/MigrationHelper.sol +1 -1
- package/src/Banny721TokenUriResolver.sol +1 -1
- package/test/Banny721TokenUriResolver.t.sol +1 -1
- package/test/BannyAttacks.t.sol +1 -1
- package/test/DecorateFlow.t.sol +1 -1
- package/test/Fork.t.sol +1 -2
- package/test/OutfitTransferLifecycle.t.sol +1 -1
- package/test/TestAuditGaps.sol +1 -1
- package/test/TestQALastMile.t.sol +1 -1
- package/test/audit/AntiStrandingRetention.t.sol +2 -1
- package/test/audit/MergedOutfitExclusivity.t.sol +2 -1
- package/test/audit/TryTransferFromStrandsAssets.t.sol +2 -1
- package/test/regression/ArrayLengthValidation.t.sol +1 -1
- package/test/regression/BodyCategoryValidation.t.sol +1 -1
- package/test/regression/BurnedTokenCheck.t.sol +1 -1
- package/test/regression/CEIReorder.t.sol +1 -1
- package/test/regression/ClearMetadata.t.sol +1 -1
- package/test/regression/MsgSenderEvents.t.sol +1 -1
- package/test/regression/RemovedTierDesync.t.sol +1 -1
package/AUDIT_INSTRUCTIONS.md
CHANGED
|
@@ -11,7 +11,7 @@ Target: `Banny721TokenUriResolver` -- a single-contract system that manages on-c
|
|
|
11
11
|
|
|
12
12
|
Inheritance chain: `Ownable`, `ERC2771Context`, `ReentrancyGuard`, `IJB721TokenUriResolver`, `IBanny721TokenUriResolver`, `IERC721Receiver`.
|
|
13
13
|
|
|
14
|
-
Compiler: Solidity
|
|
14
|
+
Compiler: Solidity 0.8.28, Cancun EVM, via-IR optimizer (200 runs).
|
|
15
15
|
|
|
16
16
|
## Architecture Overview
|
|
17
17
|
|
package/CHANGE_LOG.md
CHANGED
|
@@ -16,7 +16,7 @@ This document describes all changes between `banny-retail` (v5) and `banny-retai
|
|
|
16
16
|
|
|
17
17
|
### Solidity Version Bump
|
|
18
18
|
- **v5:** `pragma solidity 0.8.23;`
|
|
19
|
-
- **v6:** `pragma solidity
|
|
19
|
+
- **v6:** `pragma solidity 0.8.28;`
|
|
20
20
|
|
|
21
21
|
### Dependency Imports Updated
|
|
22
22
|
All `@bananapus/721-hook-v5` imports replaced with `@bananapus/721-hook-v6`:
|
|
@@ -238,6 +238,6 @@ No struct changes. Both versions use `JB721Tier` from the respective `721-hook`
|
|
|
238
238
|
| N/A | `_encodeTokenUri()` | Extracted from `tokenUriOf()` |
|
|
239
239
|
| `_outfitContentsFor(hook, outfitIds)` | `_outfitContentsFor(hook, outfitIds, bodyUpc)` | Added `bodyUpc` param (bug fix) |
|
|
240
240
|
| `@bananapus/721-hook-v5` | `@bananapus/721-hook-v6` | Dependency upgrade |
|
|
241
|
-
| `pragma solidity 0.8.23` | `pragma solidity
|
|
241
|
+
| `pragma solidity 0.8.23` | `pragma solidity 0.8.28` | Compiler version bump |
|
|
242
242
|
|
|
243
243
|
> **Cross-repo impact**: The `pricingContext()` return change (3 values → 2) is driven by the upstream `nana-721-hook-v6` `IJB721TiersHook` interface change. The `@bananapus/721-hook-v6` dependency brings in the new tier splits system, though Banny Retail does not use tier splits.
|
package/STYLE_GUIDE.md
CHANGED
|
@@ -21,7 +21,7 @@ One contract/interface/struct/enum per file. Name the file after the type it con
|
|
|
21
21
|
|
|
22
22
|
```solidity
|
|
23
23
|
// Contracts — pin to exact version
|
|
24
|
-
pragma solidity
|
|
24
|
+
pragma solidity 0.8.28;
|
|
25
25
|
|
|
26
26
|
// Interfaces, structs, enums — caret for forward compatibility
|
|
27
27
|
pragma solidity ^0.8.0;
|
|
@@ -326,7 +326,7 @@ Standard config across all repos:
|
|
|
326
326
|
|
|
327
327
|
```toml
|
|
328
328
|
[profile.default]
|
|
329
|
-
solc = '0.8.
|
|
329
|
+
solc = '0.8.28'
|
|
330
330
|
evm_version = 'cancun'
|
|
331
331
|
optimizer_runs = 200
|
|
332
332
|
libs = ["node_modules", "lib"]
|
package/foundry.toml
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bannynet/core-v6",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
"artifacts": "source ./.env && npx sphinx artifacts --org-id 'ea165b21-7cdc-4d7b-be59-ecdd4c26bee4' --project-name 'banny-core-v6'"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@bananapus/721-hook-v6": "^0.0.
|
|
24
|
-
"@bananapus/core-v6": "^0.0.
|
|
25
|
-
"@bananapus/permission-ids-v6": "^0.0.
|
|
26
|
-
"@bananapus/router-terminal-v6": "^0.0.
|
|
27
|
-
"@bananapus/suckers-v6": "^0.0.
|
|
28
|
-
"@croptop/core-v6": "^0.0.
|
|
23
|
+
"@bananapus/721-hook-v6": "^0.0.22",
|
|
24
|
+
"@bananapus/core-v6": "^0.0.28",
|
|
25
|
+
"@bananapus/permission-ids-v6": "^0.0.14",
|
|
26
|
+
"@bananapus/router-terminal-v6": "^0.0.21",
|
|
27
|
+
"@bananapus/suckers-v6": "^0.0.18",
|
|
28
|
+
"@croptop/core-v6": "^0.0.23",
|
|
29
29
|
"@openzeppelin/contracts": "^5.6.1",
|
|
30
|
-
"@rev-net/core-v6": "^0.0.
|
|
30
|
+
"@rev-net/core-v6": "^0.0.18",
|
|
31
31
|
"keccak": "^3.0.4"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
package/script/Add.Denver.s.sol
CHANGED
package/script/Deploy.s.sol
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// SPDX-License-Identifier: MIT
|
|
2
|
-
pragma solidity
|
|
2
|
+
pragma solidity 0.8.28;
|
|
3
3
|
|
|
4
4
|
import {Hook721Deployment, Hook721DeploymentLib} from "@bananapus/721-hook-v6/script/helpers/Hook721DeploymentLib.sol";
|
|
5
5
|
import {CoreDeployment, CoreDeploymentLib} from "@bananapus/core-v6/script/helpers/CoreDeploymentLib.sol";
|
|
@@ -345,7 +345,6 @@ contract DeployScript is Script, Sphinx {
|
|
|
345
345
|
// address.
|
|
346
346
|
contractUri: "https://jbm.infura-ipfs.io/ipfs/Qmd2hgb1E4caEB51VvoC3GvonhwkCoVyXjJ3zqsCxHPTKK",
|
|
347
347
|
tiersConfig: JB721InitTiersConfig({tiers: tiers, currency: ETH_CURRENCY, decimals: DECIMALS}),
|
|
348
|
-
reserveBeneficiary: address(0),
|
|
349
348
|
flags: REV721TiersHookFlags({
|
|
350
349
|
noNewTiersWithReserves: false,
|
|
351
350
|
noNewTiersWithVotes: false,
|
package/script/Drop1.s.sol
CHANGED
package/test/BannyAttacks.t.sol
CHANGED
package/test/DecorateFlow.t.sol
CHANGED
package/test/Fork.t.sol
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// SPDX-License-Identifier: MIT
|
|
2
|
-
pragma solidity
|
|
2
|
+
pragma solidity 0.8.28;
|
|
3
3
|
|
|
4
4
|
import {Test} from "forge-std/Test.sol";
|
|
5
5
|
|
|
@@ -1903,7 +1903,6 @@ contract BannyForkTest is Test {
|
|
|
1903
1903
|
tokenUriResolver: IJB721TokenUriResolver(address(resolver)),
|
|
1904
1904
|
contractUri: "",
|
|
1905
1905
|
tiersConfig: JB721InitTiersConfig({tiers: tiers, currency: JBCurrencyIds.ETH, decimals: 18}),
|
|
1906
|
-
reserveBeneficiary: address(0),
|
|
1907
1906
|
flags: JB721TiersHookFlags({
|
|
1908
1907
|
noNewTiersWithReserves: false,
|
|
1909
1908
|
noNewTiersWithVotes: false,
|
package/test/TestAuditGaps.sol
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// SPDX-License-Identifier: MIT
|
|
2
|
-
pragma solidity
|
|
2
|
+
pragma solidity 0.8.28;
|
|
3
3
|
|
|
4
4
|
import {Test} from "forge-std/Test.sol";
|
|
5
5
|
import {JB721Tier} from "@bananapus/721-hook-v6/src/structs/JB721Tier.sol";
|
|
@@ -65,6 +65,7 @@ contract RetentionMockStore {
|
|
|
65
65
|
return tiers[hook][tokenId];
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
+
// forge-lint: disable-next-line(mixed-case-function)
|
|
68
69
|
function encodedIPFSUriOf(address, uint256) external pure returns (bytes32) {
|
|
69
70
|
return bytes32(0);
|
|
70
71
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// SPDX-License-Identifier: MIT
|
|
2
|
-
pragma solidity
|
|
2
|
+
pragma solidity 0.8.28;
|
|
3
3
|
|
|
4
4
|
import {Test} from "forge-std/Test.sol";
|
|
5
5
|
import {JB721Tier} from "@bananapus/721-hook-v6/src/structs/JB721Tier.sol";
|
|
@@ -84,6 +84,7 @@ contract ExclusivityMockStore {
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
/// @dev Returns a zero IPFS URI (unused in these tests).
|
|
87
|
+
// forge-lint: disable-next-line(mixed-case-function)
|
|
87
88
|
function encodedIPFSUriOf(address, uint256) external pure returns (bytes32) {
|
|
88
89
|
return bytes32(0);
|
|
89
90
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// SPDX-License-Identifier: MIT
|
|
2
|
-
pragma solidity
|
|
2
|
+
pragma solidity 0.8.28;
|
|
3
3
|
|
|
4
4
|
import {Test} from "forge-std/Test.sol";
|
|
5
5
|
import {JB721Tier} from "@bananapus/721-hook-v6/src/structs/JB721Tier.sol";
|
|
@@ -63,6 +63,7 @@ contract StrandMockStore {
|
|
|
63
63
|
return tiers[hook][tokenId];
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
// forge-lint: disable-next-line(mixed-case-function)
|
|
66
67
|
function encodedIPFSUriOf(address, uint256) external pure returns (bytes32) {
|
|
67
68
|
return bytes32(0);
|
|
68
69
|
}
|