https://github.com/x-financial-technologies/usdx
https://github.com/x-financial-technologies/usdx
blockchain crypto ethereum onchain tokenization tokenized tokenized-fund usdx x-financial-technologies xfintech xft
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/x-financial-technologies/usdx
- Owner: X-Financial-Technologies
- Created: 2025-03-19T21:08:15.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-19T23:14:16.000Z (about 1 year ago)
- Last Synced: 2025-03-20T00:23:18.038Z (about 1 year ago)
- Language: TypeScript
- Size: 280 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
USDX is a yield-bearing digital dollar.
### Installation
1. Install dependencies
```shell
npm i
```
2. Copy ENV file
```shell
cp .env.example .env
```
3. Replace ENV variables with the values as needed
### Usage
Try running some of the following tasks:
Testing
```shell
npm run test
```
Coverage
```shell
npm run coverage
```
Linter
```shell
npm run lint
```
Running local node
```shell
npx hardhat node
```
Compile
```shell
npx hardhat compile
```
Deploying and contract verification
```shell
npx hardhat run scripts/deploy.ts --network sepolia
npx hardhat verify --network sepolia
```
Assign all roles to owner
```shell
npx hardhat run scripts/roles.ts --network sepolia
```
Mint 100 USDX to owner
```shell
npx hardhat run scripts/mint.ts --network sepolia
```
Transfer 50 USDX from owner to customer address
```shell
npx hardhat run scripts/transfer.ts --network sepolia
```
Distribute yield to all token holders
```shell
npx hardhat run scripts/yield.ts --network sepolia
```
Fetch events
```shell
npx hardhat run scripts/events.ts --network sepolia
```
Fetch state
```shell
npx hardhat run scripts/state.ts --network sepolia
```
Reset project, remove artifacts and cache
```shell
npx hardhat clean
```
Help
```shell
npx hardhat help
```