Skip to content

dforce-network/USDxProtocol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

USDx

Contracts Deployed in Mainnet(2020-03-25)

Contract Name Contract Address
USDx 0xeb269732ab75A6fD61Ea60b06fE994cD32a83549
DF 0x431ad2ff6a9C365805eBaD47Ee021148d6f7DBe0
DSGuard 0xE4BF7DAa758f5D5f966bF345e24db016180373C5
DFStore 0xD30d06b276867CfA2266542791242fF37C91BA8d
DFFunds 0xD5478011CCB79189a240a96EC913a8021b54cE6d
DFEngine 0x8Dc753D30b9F9f86dAc3380e37d5bC03D6b60202
DFCollateral 0x617bED8699F71fE830a50469bd474bc8481F5235
DFPool 0x786bF554473f9aB733Fd683C528212492A23D895
DFSetting 0x801C4a04AaD875B6AA91a2EC1346393eE348A32e
DFProtocol 0x5843F1Ccc5baA448528eb0e8Bc567Cda7eD1A1E8

Prepare

npm install -g truffle
npm install -g ganache-cli

Install

~/$ git clone https://github.com/HorsenLi/USDx_1.0.git
~/$ cd ./USDx_1.0
~/USDx_1.0$ npm install

Build

~/USDx_1.0$ npm run build

Test

You will need to open a new terminal to start the ganache-cli.

~/$ ganache-cli --port=7545 --gasLimit=8000000 --accounts=10 --defaultBalanceEther=10000

Go back to original terminal.

~/USDx_1.0$ truffle test ./test/DFEngine_deposit_claim.js > testDF_deposit_claim.log

Deploy

private network

Download Ganache-cli or Ganache(GUI), start private network to simulation Ethereum network

~/USDx_1.0$ truffle migrate

publick network

Sign up Infura, save project id for configration of truffle-config.js

~/USDx_1.0$ mv .env.example .env

You will need to edit the .env file with your local environment variables.

kovan
~/USDx_1.0$ truffle migrate --network kovan
ropsten
~/USDx_1.0$ truffle migrate --network ropsten
rinkeby
~/USDx_1.0$ truffle migrate --network rinkeby

Releases

No releases published

Packages

No packages published