@bannynet/core-v6 0.0.25 → 0.0.26
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/package.json
CHANGED
|
@@ -17,7 +17,10 @@ import {Base64} from "lib/base64/base64.sol";
|
|
|
17
17
|
|
|
18
18
|
import {IBanny721TokenUriResolver} from "./interfaces/IBanny721TokenUriResolver.sol";
|
|
19
19
|
|
|
20
|
-
/// @notice Banny
|
|
20
|
+
/// @notice Manages Banny NFT composition — stores SVG assets (bodies, backgrounds, outfits), dresses banny bodies
|
|
21
|
+
/// with wearable outfits, and resolves fully on-chain SVG token URIs for the composed result. Each banny body can
|
|
22
|
+
/// have one background and multiple outfits attached; outfits can be locked for a duration. Asset SVGs are stored
|
|
23
|
+
/// on-chain and validated against pre-committed hashes.
|
|
21
24
|
contract Banny721TokenUriResolver is
|
|
22
25
|
Ownable,
|
|
23
26
|
ERC2771Context,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
// SPDX-License-Identifier: MIT
|
|
2
2
|
pragma solidity ^0.8.0;
|
|
3
3
|
|
|
4
|
-
/// @notice Manages Banny NFT assets
|
|
5
|
-
/// dressed Banny compositions.
|
|
4
|
+
/// @notice Manages Banny NFT assets — bodies, backgrounds, and outfits — and resolves on-chain SVG token URIs for
|
|
5
|
+
/// dressed Banny compositions. Owners dress their banny bodies with outfits and backgrounds; the resolver composes
|
|
6
|
+
/// all attached assets into a single SVG returned as a base64-encoded data URI.
|
|
6
7
|
interface IBanny721TokenUriResolver {
|
|
7
8
|
/// @notice Emitted when a banny body is decorated with a background and outfits.
|
|
8
9
|
/// @param hook The hook address of the collection.
|