ERC-20 to Gluwacoin Adapter
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.
Gluwacoin backed by another ERC-20 token
Read ERC-20 Wrapper Gluwacoin for details.
$ npm install
Run a local development network
$ npx ganache-cli --deterministic
Run test scripts
$ npx truffle test
Refer to contracts/ExampleCoin.sol
for example.
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;
}
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