DEX

所属分类:DeFi
开发工具:Solidity
文件大小:13KB
下载次数:0
上传日期:2021-11-14 12:34:42
上 传 者sh-1993
说明:  一种自动化做市商去中心化交易协议
(An Automated Market Maker Decentralized Exchange Protocol)

文件列表:
contracts (0, 2021-11-14)
contracts\FactoryV2.sol (21442, 2021-11-14)
contracts\RouterV2.sol (33621, 2021-11-14)
contracts\WBNB.sol (1822, 2021-11-14)
migrations (0, 2021-11-14)
migrations\1_deploy_contracts.js (637, 2021-11-14)
test (0, 2021-11-14)
truffle-config.js (4999, 2021-11-14)

# DEX An Automated Market Maker Decentralized Exchange Protocol ## Documentation - COMPILE: ```$ truffle compile``` Move the WBN.sol and RouterV2.sol contracts to root, change the compiler settings in truffle-config.js to version 0.5.16 then first compile the factory contract. After that, move the FactoryV2.sol contract to root and move the WBN.sol and RouterV2.sol contracts to the contracts folder. Change the compiler settings in truffle-config.js to version 0.6.6 then compile the Router and WBNB contracts - DEPLOY: ```$ truffle migrate --reset``` After sucessfully compiling all the contracts, the use the command above to deploy to development blockchain (Ganache) Alternatively you can use the commands below to deploy to public network of your choice $ truffle migrate --reset --network mainnet $ truffle migrate --reset --network rinkeby $ truffle migrate --reset --network ropsten $ truffle migrate --reset --network kovan

近期下载者

相关文件


收藏者