@bannynet/core-v6 0.0.29 → 0.0.31
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/foundry.toml +1 -0
- package/package.json +8 -7
- package/script/Deploy.s.sol +6 -5
- package/src/Banny721TokenUriResolver.sol +4 -1
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.31",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -32,16 +32,17 @@
|
|
|
32
32
|
"artifacts": "source ./.env && npx sphinx artifacts --org-id 'ea165b21-7cdc-4d7b-be59-ecdd4c26bee4' --project-name 'banny-core-v6'"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@bananapus/721-hook-v6": "0.0.
|
|
36
|
-
"@bananapus/
|
|
37
|
-
"@bananapus/
|
|
38
|
-
"@bananapus/
|
|
35
|
+
"@bananapus/721-hook-v6": "^0.0.49",
|
|
36
|
+
"@bananapus/buyback-hook-v6": "^0.0.45",
|
|
37
|
+
"@bananapus/core-v6": "^0.0.49",
|
|
38
|
+
"@bananapus/router-terminal-v6": "^0.0.43",
|
|
39
|
+
"@bananapus/suckers-v6": "^0.0.43",
|
|
39
40
|
"@openzeppelin/contracts": "5.6.1",
|
|
40
|
-
"@rev-net/core-v6": "0.0.
|
|
41
|
+
"@rev-net/core-v6": "^0.0.55",
|
|
41
42
|
"keccak": "3.0.4"
|
|
42
43
|
},
|
|
43
44
|
"devDependencies": {
|
|
44
|
-
"@bananapus/address-registry-v6": "0.0.25",
|
|
45
|
+
"@bananapus/address-registry-v6": "^0.0.25",
|
|
45
46
|
"@sphinx-labs/plugins": "0.33.3"
|
|
46
47
|
}
|
|
47
48
|
}
|
package/script/Deploy.s.sol
CHANGED
|
@@ -214,7 +214,8 @@ contract DeployScript is Script, Sphinx {
|
|
|
214
214
|
REVConfig memory revnetConfiguration = REVConfig({
|
|
215
215
|
description: REVDescription({name: NAME, ticker: SYMBOL, uri: PROJECT_URI, salt: ERC20_SALT}),
|
|
216
216
|
baseCurrency: ETH_CURRENCY,
|
|
217
|
-
|
|
217
|
+
operator: operator,
|
|
218
|
+
scopeCashOutsToLocalBalances: false,
|
|
218
219
|
stageConfigurations: stageConfigurations
|
|
219
220
|
});
|
|
220
221
|
|
|
@@ -367,10 +368,10 @@ contract DeployScript is Script, Sphinx {
|
|
|
367
368
|
})
|
|
368
369
|
}),
|
|
369
370
|
salt: HOOK_SALT,
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
371
|
+
preventOperatorAdjustingTiers: false,
|
|
372
|
+
preventOperatorUpdatingMetadata: false,
|
|
373
|
+
preventOperatorMinting: false,
|
|
374
|
+
preventOperatorIncreasingDiscountPercent: false
|
|
374
375
|
})
|
|
375
376
|
});
|
|
376
377
|
}
|
|
@@ -1275,7 +1275,10 @@ contract Banny721TokenUriResolver is
|
|
|
1275
1275
|
}
|
|
1276
1276
|
}
|
|
1277
1277
|
|
|
1278
|
-
/// @notice
|
|
1278
|
+
/// @notice Permissionless: anyone can store the SVG bytes for a product code, as long as they match the owner-
|
|
1279
|
+
/// precommitted hash. The hash is set by the owner via `setSvgHashesOf`; this function only finalizes the bytes.
|
|
1280
|
+
/// @dev See `setSvgHashesOf` for the trust model. The function reverts on hash mismatch, missing hash, or
|
|
1281
|
+
/// already-stored content. Publication is one-shot — wrong-hash commitments are unrecoverable by design.
|
|
1279
1282
|
/// @param upcs The universal product codes of the products having SVGs stored.
|
|
1280
1283
|
/// @param svgContents The svg contents to store, not including the parent <svg></svg> element.
|
|
1281
1284
|
function setSvgContentsOf(uint256[] memory upcs, string[] calldata svgContents) external override {
|