@bannynet/core-v6 0.0.36 → 0.0.38

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.
Files changed (2) hide show
  1. package/package.json +9 -14
  2. package/CHANGELOG.md +0 -41
package/package.json CHANGED
@@ -1,21 +1,16 @@
1
1
  {
2
2
  "name": "@bannynet/core-v6",
3
- "version": "0.0.36",
3
+ "version": "0.0.38",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/mejango/banny-retail-v6"
8
8
  },
9
9
  "files": [
10
- "CHANGELOG.md",
11
10
  "foundry.toml",
12
11
  "references/",
13
12
  "remappings.txt",
14
- "script/Add.Denver.s.sol",
15
- "script/Deploy.s.sol",
16
- "script/Drop1.s.sol",
17
- "script/helpers/",
18
- "script/outfit_drop/",
13
+ "script/",
19
14
  "src/"
20
15
  ],
21
16
  "engines": {
@@ -32,14 +27,14 @@
32
27
  "artifacts": "source ./.env && npx sphinx artifacts --org-id 'ea165b21-7cdc-4d7b-be59-ecdd4c26bee4' --project-name 'banny-core-v6'"
33
28
  },
34
29
  "dependencies": {
35
- "@bananapus/721-hook-v6": "^0.0.54",
36
- "@bananapus/buyback-hook-v6": "^0.0.49",
37
- "@bananapus/core-v6": "^0.0.57",
38
- "@bananapus/router-terminal-v6": "^0.0.46",
39
- "@bananapus/suckers-v6": "^0.0.49",
40
- "@croptop/core-v6": "^0.0.52",
30
+ "@bananapus/721-hook-v6": "^0.0.55",
31
+ "@bananapus/buyback-hook-v6": "^0.0.51",
32
+ "@bananapus/core-v6": "^0.0.60",
33
+ "@bananapus/router-terminal-v6": "^0.0.49",
34
+ "@bananapus/suckers-v6": "^0.0.52",
35
+ "@croptop/core-v6": "^0.0.53",
41
36
  "@openzeppelin/contracts": "5.6.1",
42
- "@rev-net/core-v6": "^0.0.61",
37
+ "@rev-net/core-v6": "^0.0.65",
43
38
  "keccak": "3.0.4"
44
39
  },
45
40
  "devDependencies": {
package/CHANGELOG.md DELETED
@@ -1,41 +0,0 @@
1
- # Changelog
2
-
3
- ## 0.0.33 — Bump v6 deps to nana-core-v6 0.0.53 cohort
4
-
5
- - `@bananapus/core-v6`: `^0.0.49 → ^0.0.53` ([PR #145](https://github.com/Bananapus/nana-core-v6/pull/145)).
6
- - `@bananapus/721-hook-v6`: `^0.0.49 → ^0.0.50`.
7
- - `@bananapus/buyback-hook-v6`: `^0.0.45 → ^0.0.46`.
8
- - `@bananapus/suckers-v6`: `^0.0.43 → ^0.0.46`.
9
- - All `JBRulesetMetadata` test literals patched to include `pauseCrossProjectFeeFreeInflows: false`.
10
-
11
- ## Scope
12
-
13
- This file describes the verified change from `banny-retail-v5` to the current `banny-retail-v6` repo.
14
-
15
- ## Current v6 surface
16
-
17
- - `Banny721TokenUriResolver`
18
- - `IBanny721TokenUriResolver`
19
-
20
- ## Summary
21
-
22
- - Decoration flows now handle previously equipped assets more defensively. The v6 test suite adds explicit regression coverage for removed tiers, failed return transfers, and stranded-asset scenarios.
23
- - Metadata management is broader than in v5. The resolver now manages description, external URL, and base URI together instead of only a base URI path.
24
- - Validation is stricter. v6 adds array-length checks on batch setters and extra checks around valid body and background categories before decoration logic proceeds.
25
- - The repo was upgraded to the v6 dependency set and Solidity `0.8.28`.
26
-
27
- ## Verified deltas
28
-
29
- - `setSvgBaseUri(...)` was replaced by `setMetadata(description, url, baseUri)`.
30
- - Metadata JSON is no longer hardcoded around a fixed description and external URL. Those values now come from contract state.
31
- - `pricingContext()` consumption changed with the v6 721 hook and now uses the two-value return shape.
32
- - The resolver adds explicit `Banny721TokenUriResolver_ArrayLengthMismatch()` and `Banny721TokenUriResolver_BannyBodyNotBodyCategory()` errors.
33
- - Outfit and background handling now includes logic intended to preserve attachment state when a previously equipped asset cannot be returned cleanly.
34
- - (L-1) `_storeOutfitsWithRetained` now verifies that no two merged outfits share the same category after sorting. A retained outfit whose transfer failed could previously duplicate a category supplied in the new outfit set, leading to rendering artifacts. The new `Banny721TokenUriResolver_DuplicateCategory()` error prevents this.
35
- - Gas optimizations: all `for` loops use `unchecked { ++i; }` increments, `_sortOutfitsByCategory` pre-computes categories to avoid repeated external calls during sort comparisons, `_msgSender()` is cached once per entry point to avoid repeated ERC-2771 context reads, and the mannequin SVG style string is inlined to remove redundant `string.concat` overhead.
36
-
37
- ## Migration notes
38
-
39
- - Treat `setMetadata` as the metadata-management entry point. v5 assumptions around a base-URI-only setter no longer fit this repo.
40
- - Decoration flows should be reviewed for failure handling, especially if an integration assumed every previously equipped NFT could always be transferred back out.
41
- - Event and error expectations should be regenerated from the v6 ABI rather than copied from v5.