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 betestnet
ormainnet
. -
<CONTRACT_NAME>
can be referred fromcontracts\NFT\
-
<ARGUMENT_FILE>
can be referred fromscripts\arguments\
<ARGUMENT_FILE>
=logic
ORmarket
ORproxy
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-SC
project near theNicoFT-js-api
. - Install
NicoFT-SC
environment - Compile the smart contracts
- Check if the
NicoFT-SC
directory andNicoFT-js-api
directory are in the same path