To manage sources of SmartContract for NicoFT
You can install environment as follow:
npm install
Before deploy the contract, you must compile the contracts.
npx hardhat compile
You can deploy contract using this command:
npx hardhat deployContract --network <NETWORK> <CONTRACT_NAME> <ARGUMENT_FILE>
-
<NETWORK>can betestnetormainnet. -
<CONTRACT_NAME>can be referred fromcontracts\NFT\ -
<ARGUMENT_FILE>can be referred fromscripts\arguments\<ARGUMENT_FILE>=logicORmarketORproxy
You can verify contract using this command:
npx hardhat verify --network testnet --constructor-args <ARGUMENT_FILE_PATH> <CONTRACT_ADDRESS>
-
<CONTRACT_ADDRESS>is the address from the deployment -
<ARGUMENT_FILE_PATH>is the full path of the argument files<ARGUMENT_FILE_PATH>=./scripts/arguments/logic.js<ARGUMENT_FILE_PATH>=./scripts/arguments/proxy.js<ARGUMENT_FILE_PATH>=./scripts/arguments/market.js
- Copy the
NicoFT-SCproject near theNicoFT-js-api. - Install
NicoFT-SCenvironment - Compile the smart contracts
- Check if the
NicoFT-SCdirectory andNicoFT-js-apidirectory are in the same path