The core contracts that power the NFT aspect of untrading.org. Utilizes ERC-5173 (nFR), ERC-2535 (Diamonds), CantBeEvil licensing, and SolidState solidity libraries.
Install dependencies with Yarn:
yarn install
Create a .env file and define the following:
Key | Description |
---|---|
INFURA_TOKEN |
Infura API key for node connectivity |
ETHERSCAN_API_KEY |
Etherscan API key for source code verification |
DEPLOYER_PRIVATE_KEY |
Private key used for deploying the contracts |
UNTRADING_MANAGER_ADDRESS |
The address which will act as the untrading manager |
git clone --recurse-submodules
git submodule update --remote
Test contracts with Hardhat:
yarn hardhat test
The primary license for the untrading NFT contracts is the Business Source License 1.1 (BUSL-1.1
), see LICENSE
.
- Interfaces are licensed under
GPL-2.0-or-later
(as indicated in their SPDX headers), seeLICENSE_GPL
- All files in
contracts/test
remain unlicensed.