@worldx/protocol v1.0.0-beta.3
WorldX Protocol
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
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago