Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to storing a URL for each token, not the metadata directly #188

Merged
merged 9 commits into from
Mar 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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