Translations: English | 日本語
This repository is a sample code for UNCHAIN Polygon Whitelist NFT.
Open ChainIDE, and click the "Try Now" button on the front page as shown in the figure below.
Then, sign in using GitHub.
Click on "New Project".
Select "Polygon" and click on "Import Project" under Private Template
.
Set it up as shown below and click on "Confirm Import".
- Github URL:
Your forked Polygon-Whitelist-NFT
- Choose branch:
main
Configure metadata settings by referring to here.
Deploy the contract to Polygon's testnet Mumbai
with reference to here.
Within the packages/client
folder, create a .env.local
file and add the following.
NEXT_PUBLIC_CONTRACT_ADDRESS=Shield Contract Address
Copy your Shield
contract address from the Deploy panel. and set it in the .env.local
file.
e.g.)
NEXT_PUBLIC_CONTRACT_ADDRESS=0x86b5cf393100cf895b3371a4ccaa1bc95d486a56
Launch the Sandbox within ChainIDE.
In the root of the project, execute the following commands in sequence:
# Install dependencies
yarn install
# Generate artifacts in the client folder
yarn contract compile
# Start the client
yarn client dev
Configure the port settings and access the application by referring to here!