1.0.0-beta.3 • Published 8 months ago

@worldx/protocol v1.0.0-beta.3

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
8 months ago

WorldX Protocol

Build

The USDX stablecoin protocol stabilizes cryptocurrencies using smart contracts.

You can view the contract code in the contracts folder. Documentation coming soon!

Usage

This repository contains the source code for the WorldX system and examples to jumpstart development. The contract ABIs are accessible through the @worldx/protocol NPM package.

Installation

This project uses Node.js and assumes you have it installed.

Add @worldx/protocol to your project with npm or yarn:

npm install @worldx/protocol --save

Example

Below is a code snippet that shows how to import the contract ABI and call a contract method using ethers.

/**
 * This example gets the total supply of the USDX token by
 * calling the `totalSupply` method on the ERC20 contract at
 * <address>.
 */
import USDX from "@worldx/protocol/artifacts/contracts/tokens/USDX.sol/USDX.json";
import { Contract } from "ethers";

const USDX_ERC20_ADDRESS = "<address>";

const usdx = new Contract(USDX_ERC20_ADDRESS, USDX.abi, library.getSigner());
const totalSupply = await usdx.totalSupply();
console.log("Total supply:", totalSupply);

Development

See the developer guide for details.

Deployment

See the deployment guide for details.

Administration

See the administration guide for details.

Contract Addresses

XRPL EVM Devnet

ContractAddress
Reserve0x6D96ed88B73DB53f8E0564da95A972334f777388
Seigniorage0x32c905aD98622bc755BB3608D9a019eB67A38b04
Auction0x4e00ba6A161931380c3DbD7178D4ad6163a18456
PriceFeed0x766C7773914ab4fA3d1d91A8E19101661D143220
Treasury0xa86ab0bb8da2777Ac47145bDf6c37eb1bF1f9841
Policy0xC63a4AC760bD949868fd8B3847Fe42CB7D6AC9Ac
USDX0x61Cf7574a61C68c87e2B48Add9C3b72b44d68845
1.0.0-beta.9

8 months ago

1.0.0-beta.8

8 months ago

1.0.0-beta.6

8 months ago

1.0.0-beta.5

8 months ago

1.0.0-beta.4

8 months ago

1.0.0-beta.3

8 months ago

1.0.0-beta.2

8 months ago

1.0.0-beta.1

8 months ago