- install dfx versions
0.8.5,0.9.2and0.9.3(DFX_VERSION=<version> sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)") - install Vessel
- install jq
- install Plug
- clone the repository and run
git submodule initandgit submodule update. this pulls the submodules the project depends on - run
npm installfrom root - create a
set-deploy-env.zshfile in the root directory according to the following example and replace theNFT_CANISTER_OWNER_PRINICPALwith the principal of your localdfx identity(usuallydfx identity get-principal) and theNFT_MINT_ADDRESSESwith addresses you would like to mint NFTs for.
# those should be changed, enter your principals and addresses as needed
export NFT_CANISTER_OWNER_PRINCIPAL="\"aaaaa-hhhh-dgumq-aaaaa-aaaaa-ayr3z-moywz-jqblc-nvsif-aaaaa-aaa\""
# note that you cannot have spaces between characters here!
export NFT_MINT_ADDRESSES="\"1111156ca79711111c288cbe0da2c9ae073304329dcd11111d8df19416baf3b0\";\"11111eb53f60d028b4bdfe7bc1594c907b81311111d6f6713121dcb5611111\";\"111111ac04a4e2b2e90ca2f55e11111edf53a67a7ed22804411111726eb24f\""
- run
npm run deployfrom root. this sets up the project for development, including starting dfx and deploying local versions of thebtcflower,icpflowerandethflowercanisters - in a new terminal window, run
npm run devfrom root. this starts the development server and allows you to instantly see changes on the frontend - to seed the local
daocanister with proposals, runnpm run seedfrom root. this create a bunch of dummy proposals on the local canister. - to trigger a canister upgrade run
npm run upgrade
run dfx deploy --network ic --argument '(null, vec {principal "<core_team_principal_1>"; principal "core_team_principal_2>"})' to deploy the dao