This project uses Deno.
Uses Deno.env for secrets.
- create
env.ts
file in root with the followingDeno.env.set()
lines:
Deno.env.set('BLOCKFROST_PROJECT_ID', '<your Blockfrost Cardano project ID>')
Deno.env.set('BLOCKFROST_IPFS_PROJECT_ID', '<your blockfrost IPFS project ID>')
Deno.env.set('SEED_PHRASE', '<minting wallet seed phrase>')
Use deno task [task]
in your terminal to run Deno Tasks.
Exmaple:
$ deno task log-metadata
Task log-metadata deno run --allow-net --allow-env src/tasks/logMetadata.task.ts
Tasks are declared in the deno.json
file.
Look src/tasks
directory to see task files.
- Put images with appropriate metadata into
inputs/images
folder - Configure shared metadata and royalties data in
src/config
- Run
deno task create-assets
to create assets. You can verify the assets look correct in the JSON file create inoutputs/metadata
- Verify all assets have been pinned successfully to IPFS by running
deno task verify-pinned
- Create policy ID and script with
deno task create-policy
- Create metadata with
deno task create-metadata
- Mint and then burn the royalties NFT with
deno task mint-royalties
Paste metadata data as JSON here