Shard.cdc
- The Shard NFTCrystal.cdc
- The Crystal mechanics
- Yarn or NPM
flow-cli
- Install dependencies
yarn # or npm i
- Initialize Flow
flow init
- Run the test suite
yarn test
Update the flow.json
with your account keys using the steps found here
flow project deploy --network testnet
- Create
.env
file with the following contents, replacing your testnet account address, keys, and the Shard address from the previous step
SKIP_PREFLIGHT_CHECK=true
REACT_APP_FLOW_ACCESS_NODE=https://access-testnet.onflow.org
REACT_APP_FLOW_ACCOUNT_ADDRESS=4fcbf393977f9976
REACT_APP_FLOW_ACCOUNT_PRIVATE_KEY=0ee5f8cd60227c75e0148c8039121c997efa18177f9a69dbec4f3b8a8abb9b6b
REACT_APP_FLOW_NFT_ADDRESS=0x631e88ae7f1d7c20
REACT_APP_FLOW_SHARD_ADDRESS=0x4fcbf393977f9976
REACT_APP_SHARD_RECEIVER=0x22a706cc6b8fe63b
- Run the web app
yarn start
Click the "Reset Contract" button in the web app FIRST
Then run:
flow accounts remove-contract Shard --network testnet --signer testnet-account