Skip to content

Commit

Permalink
Merge pull request #188 from joinzien/metadata
Browse files Browse the repository at this point in the history
Switch to storing a URL for each token, not the metadata directly
  • Loading branch information
Zoe Nolan authored Mar 9, 2023
2 parents 171c5c1 + 2634d4d commit e361e4f
Show file tree
Hide file tree
Showing 24 changed files with 496 additions and 2,377 deletions.
315 changes: 16 additions & 299 deletions contracts/ExpandedNFT.sol

Large diffs are not rendered by default.

26 changes: 0 additions & 26 deletions contracts/IPublicSharedMetadata.sol

This file was deleted.

183 changes: 0 additions & 183 deletions contracts/SharedNFTLogic.sol

This file was deleted.

12 changes: 12 additions & 0 deletions deploy/01_expandednft.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = async ({ getNamedAccounts, deployments }: any ) => {
const { deploy } = deployments;
const { deployer } = await getNamedAccounts();

await deploy("ExpandedNFT", {
from: deployer,
log: true,
});
};

module.exports.tags = ["ExpandedNFT"];
module.exports.dependencies = ["TestCash"];
11 changes: 0 additions & 11 deletions deploy/01_sharednftlogic.ts

This file was deleted.

File renamed without changes.
15 changes: 0 additions & 15 deletions deploy/02_expandednft.ts

This file was deleted.

File renamed without changes.
21 changes: 5 additions & 16 deletions test/AllowlistTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,22 +51,11 @@ describe("Allow List", () => {

await minterContract.loadMetadataChunk(
1, 10,
["This is a testing token for all", "This is a testing token for all", "This is a testing token for all", "This is a testing token for all", "This is a testing token for all",
"This is a testing token for all", "This is a testing token for all", "This is a testing token for all", "This is a testing token for all", "This is a testing token for all"],
["https://ipfs.io/ipfsbafybeify52a63pgcshhbtkff4nxxxp2zp5yjn2xw43jcy4knwful7ymmgy", "https://ipfs.io/ipfsbafybeify52a63pgcshhbtkff4nxxxp2zp5yjn2xw43jcy4knwful7ymmgy",
"https://ipfs.io/ipfsbafybeify52a63pgcshhbtkff4nxxxp2zp5yjn2xw43jcy4knwful7ymmgy", "https://ipfs.io/ipfsbafybeify52a63pgcshhbtkff4nxxxp2zp5yjn2xw43jcy4knwful7ymmgy",
"https://ipfs.io/ipfsbafybeify52a63pgcshhbtkff4nxxxp2zp5yjn2xw43jcy4knwful7ymmgy", "https://ipfs.io/ipfsbafybeify52a63pgcshhbtkff4nxxxp2zp5yjn2xw43jcy4knwful7ymmgy",
"https://ipfs.io/ipfsbafybeify52a63pgcshhbtkff4nxxxp2zp5yjn2xw43jcy4knwful7ymmgy", "https://ipfs.io/ipfsbafybeify52a63pgcshhbtkff4nxxxp2zp5yjn2xw43jcy4knwful7ymmgy",
"https://ipfs.io/ipfsbafybeify52a63pgcshhbtkff4nxxxp2zp5yjn2xw43jcy4knwful7ymmgy", "https://ipfs.io/ipfsbafybeify52a63pgcshhbtkff4nxxxp2zp5yjn2xw43jcy4knwful7ymmgy"],
["0x0000000000000000000000000000000000000000000000000000000000000000", "0x0000000000000000000000000000000000000000000000000000000000000000", "0x0000000000000000000000000000000000000000000000000000000000000000",
"0x0000000000000000000000000000000000000000000000000000000000000000", "0x0000000000000000000000000000000000000000000000000000000000000000", "0x0000000000000000000000000000000000000000000000000000000000000000",
"0x0000000000000000000000000000000000000000000000000000000000000000", "0x0000000000000000000000000000000000000000000000000000000000000000", "0x0000000000000000000000000000000000000000000000000000000000000000",
"0x0000000000000000000000000000000000000000000000000000000000000000"],
["", "", "", "", "", "", "", "", "", ""],
["0x0000000000000000000000000000000000000000000000000000000000000000", "0x0000000000000000000000000000000000000000000000000000000000000000", "0x0000000000000000000000000000000000000000000000000000000000000000",
"0x0000000000000000000000000000000000000000000000000000000000000000", "0x0000000000000000000000000000000000000000000000000000000000000000", "0x0000000000000000000000000000000000000000000000000000000000000000",
"0x0000000000000000000000000000000000000000000000000000000000000000", "0x0000000000000000000000000000000000000000000000000000000000000000", "0x0000000000000000000000000000000000000000000000000000000000000000",
"0x0000000000000000000000000000000000000000000000000000000000000000"]
["http://example.com/token/01", "http://example.com/token/02",
"http://example.com/token/03", "http://example.com/token/04",
"http://example.com/token/05", "http://example.com/token/06",
"http://example.com/token/07", "http://example.com/token/08",
"http://example.com/token/09", "http://example.com/token/10"]
);

await minterContract.setPricing(10, 500, 10, 10, 1, 1);
Expand Down
Loading

0 comments on commit e361e4f

Please sign in to comment.