USDX is a yield-bearing digital dollar.
-
Install dependencies
npm i
-
Copy ENV file
cp .env.example .env
-
Replace ENV variables with the values as needed
Try running some of the following tasks:
Testing
npm run test
Coverage
npm run coverage
Linter
npm run lint
Running local node
npx hardhat node
Compile
npx hardhat compile
Deploying and contract verification
npx hardhat run scripts/deploy.ts --network sepolia
npx hardhat verify --network sepolia <contract-address>
Assign all roles to owner
npx hardhat run scripts/roles.ts --network sepolia
Mint 100 USDX to owner
npx hardhat run scripts/mint.ts --network sepolia
Transfer 50 USDX from owner to customer address
npx hardhat run scripts/transfer.ts --network sepolia
Distribute yield to all token holders
npx hardhat run scripts/yield.ts --network sepolia
Fetch events
npx hardhat run scripts/events.ts --network sepolia
Fetch state
npx hardhat run scripts/state.ts --network sepolia
Reset project, remove artifacts and cache
npx hardhat clean
Help
npx hardhat help