@worldx/protocol

1.0.0-beta.3 • Public • Published

WorldX Protocol

Build NPM

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

Contract Address
Reserve 0x6D96ed88B73DB53f8E0564da95A972334f777388
Seigniorage 0x32c905aD98622bc755BB3608D9a019eB67A38b04
Auction 0x4e00ba6A161931380c3DbD7178D4ad6163a18456
PriceFeed 0x766C7773914ab4fA3d1d91A8E19101661D143220
Treasury 0xa86ab0bb8da2777Ac47145bDf6c37eb1bF1f9841
Policy 0xC63a4AC760bD949868fd8B3847Fe42CB7D6AC9Ac
USDX 0x61Cf7574a61C68c87e2B48Add9C3b72b44d68845

Readme

Keywords

none

Package Sidebar

Install

npm i @worldx/protocol

Weekly Downloads

0

Version

1.0.0-beta.3

License

Apache-2.0

Unpacked Size

12.1 MB

Total Files

119

Last publish

Collaborators

  • rosendin