An open API service indexing awesome lists of open source software.

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: 2 months ago
JSON representation

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
```