Skip to content

Latest commit

 

History

History
94 lines (50 loc) · 2.79 KB

README.md

File metadata and controls

94 lines (50 loc) · 2.79 KB

origyn_nft_reference

NFT Canister

NFT Canister API

NFT Canister Sample Calls

Sales Canister

Overview

Getting up and running

Testing

You will need the proper version of yes for your OS. (npm install -g yes)

yes yes | ./runners/test_runner.sh

Produce an identity for deploying locally

  1. You need to have an identity.pem and a seed.txt in your root directory. You can follow the instructions at https://forum.dfinity.org/t/using-dfinity-agent-in-node-js/6169/50 to produce these file. You should add these files to your git.ignore.

Navigate to my .dfx identities. → ~/.config/.dfx/identity

Create a new identity. → mkdir local-testing; cd local-testing

Download quill https://github.com/dfinity/quill.

Test that quill is installed correctly. → quill

Look up how to generate a key. → quill generate --help

Generate a key and seed file. → quill generate --pem-file identity.pem --seed-file seed.txt

Copy these files to your root directory and add to git.ignore.

To run deployment scripts you will also need to produce seed.prod.txt and identity.prod.pem for a deploying identity.

You may need a git rest key

https://docs.github.com/rest

You can put this key in gittoken.key

It may be necessary to download the default dapps.

NFT Projects

The ./projects folder contains a sample NFT project with NFT assets for minting along with a deploy script. The deploy script should be invoked from the root of the project. For example:

yes yes | bash ./projects/bm/deploybm-local.sh

Reusable scripts are placed at the root of the ./projects folder.

Git Large File Storage

This project contains video files that are stored in Git LFS. They are now downloaded when you clone the repo. To download the videos, run the following:

git lfs install
git lfs fetch
git lfs checkout

Reference: https://git-lfs.github.com/

deploy.js

Location: ./projects/deploy.js.

Node script that stages and mints NFTs with the input of a JSON metadata file.

See also: https://github.com/ORIGYN-SA/minting-starter

Logs & Metrics

Logs and metrics documentation

Audit

Motoko base

It is important to note that every now and then there are new items in the motoko base library. One example of this is Timer. If you are using an older vesion of the motoko base library in vessel you will have an error complaining about a non existent Timer. In this repo we try to keep libs up-to-date, however, just be aware that from time to time you might need to change the upstream varible in the package-set.dhall to reflect the lastest motoko library.

Audit document