Skip to content

Latest commit

 

History

History
75 lines (52 loc) · 2.38 KB

README.md

File metadata and controls

75 lines (52 loc) · 2.38 KB

license

ERC-20 Wrapper Gluwacoin

ERC-20 to Gluwacoin Adapter

What is Gluwacoin?

Gluwacoin is an interoperable stablecoin standard. The standard has built-in functions to enable exchange with other cryptocurrencies, which connects its ecosystem to other blockchains. We have implemented the system to support the ERC20 standard on the Ethereum network. The implementation includes security features, compliance features, and upgrade features that provide the desired level of security and elasticity.

The Gluwacoin Trust proposed the standard. This repository is the official implementations of the Gluwacoin standard by Gluwa.

For more information, see Gluwacoin, gluwacoin.com, or the original whitepaper.

ERC-20 Wrapper Gluwacoin

Gluwacoin backed by another ERC-20 token

Read ERC-20 Wrapper Gluwacoin for details.

Setup

Installing Dependencies

$ npm install

Testing

Run a local development network

$ npx ganache-cli --deterministic

Run test scripts

$ npx truffle test

Usage

Refer to contracts/ExampleCoin.sol for example.

Deployment

Create a copy of the file 2_deploy_wrapper_gluwacoin.js.example under migrations/ folder, and name it 2_deploy_wrapper_gluwacoin.EXAMPLE.js. Fill-in name, symbol, decimals, and baseToken. Run truffle migrate with a name of the network you want to use.

$ npx truffle migrate  --network [NETWORK NAME]

Replace the number of decimals in ERC20WrapperGluwacoin.sol to match the decimals of your target (wrapped) token:

function decimals() public pure override returns (uint8) {
        return 6;
    }

Basic Sample Hardhat Project

This project demonstrates a basic Hardhat use case. It comes with a sample contract, a test for that contract, a sample script that deploys that contract, and an example of a task implementation, which simply lists the available accounts.

Try running some of the following tasks:

npx hardhat accounts
npx hardhat compile
npx hardhat clean
npx hardhat test
npx hardhat node
node scripts/sample-script.js
npx hardhat help