Repo for LIS ethereum based contracts
To launch project locally.
- Install dependencies: "npm i"
- Compile contracts: "npm run compile" (compiled data will appear in "artifacts" folder)
- Launch local node on address http://127.0.0.1:8545: "npm run start" or simply "npm start"
- To run tests: "npm run test"
- To check gas in called functions, run: "npm run test_gas"
To verify contract on scan websites, example of command: npx hardhat verify --network polygon_mumbai 0xAAfF7221017c6C13615FfACA1E2Ba52c1Fe5b713
npx hardhat verify --network polygon --constructor-args arguments.js DEPLOYED_CONTRACT_ADDRESS
To deploy example: npx hardhat run --network polygon_mumbai scripts/deploy-marketplace.js
To connect to network using console/test connection: npx hardhat console --network mainnet
npx hardhat flatten > flatten.sol
git sumbodules:
git submodule init git submodule update --recursive --remote