├── .env.example ├── .gitignore ├── LICENSE ├── README.md ├── abi ├── FarmMaster.json ├── IXHalfLife.json ├── XDEX.json └── XHalfLife.json ├── audits ├── Certik Final Report for XDeFi.pdf ├── XDEX-Gov-CertiK-Final-Comments.pdf ├── XDeFi-DEX Smart Contract Security Audit Report.pdf └── XDeFi-Gov Smart Contract Security Audit Report.pdf ├── contracts ├── FarmMaster.sol ├── Migrations.sol ├── Timelock.sol ├── XDEX.sol ├── XHalfLife.sol ├── XdexStream.sol ├── interfaces │ ├── IERC20.sol │ └── IXHalfLife.sol ├── lib │ ├── AddressHelper.sol │ └── XNum.sol └── test │ ├── MockToken.sol │ └── TimelockHarness.sol ├── migrations ├── 1_initial_migration.js ├── 2_deploy_XDEX.js ├── 3_deploy_XHalfLife.js ├── 4_deploy_FarmMaster.js ├── 5_deploy_XStream.js └── 6_deploy_Timelock.js ├── package.json ├── scripts ├── calculateContractBytecode.js ├── migrate_development.sh ├── start_ganache.sh └── test_network_dev.sh ├── test ├── FarmMasterTest.js ├── TimeLockTest.js ├── XDEXTest.js ├── XHalfLifeTest.js ├── XdexStreamTest.js └── utils │ └── Ethereum.js └── truffle-config.js /.env.example: -------------------------------------------------------------------------------- 1 | MNEMONIC='your mnemonic words' 2 | RPC_URL_KOVAN='https://ropsten.infura.io/v3/{your_id}' 3 | 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdefilab/xdefi-governance-token/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdefilab/xdefi-governance-token/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdefilab/xdefi-governance-token/HEAD/README.md -------------------------------------------------------------------------------- /abi/FarmMaster.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdefilab/xdefi-governance-token/HEAD/abi/FarmMaster.json -------------------------------------------------------------------------------- /abi/IXHalfLife.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdefilab/xdefi-governance-token/HEAD/abi/IXHalfLife.json -------------------------------------------------------------------------------- /abi/XDEX.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdefilab/xdefi-governance-token/HEAD/abi/XDEX.json -------------------------------------------------------------------------------- /abi/XHalfLife.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdefilab/xdefi-governance-token/HEAD/abi/XHalfLife.json -------------------------------------------------------------------------------- /audits/Certik Final Report for XDeFi.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdefilab/xdefi-governance-token/HEAD/audits/Certik Final Report for XDeFi.pdf -------------------------------------------------------------------------------- /audits/XDEX-Gov-CertiK-Final-Comments.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdefilab/xdefi-governance-token/HEAD/audits/XDEX-Gov-CertiK-Final-Comments.pdf -------------------------------------------------------------------------------- /audits/XDeFi-DEX Smart Contract Security Audit Report.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdefilab/xdefi-governance-token/HEAD/audits/XDeFi-DEX Smart Contract Security Audit Report.pdf -------------------------------------------------------------------------------- /audits/XDeFi-Gov Smart Contract Security Audit Report.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdefilab/xdefi-governance-token/HEAD/audits/XDeFi-Gov Smart Contract Security Audit Report.pdf -------------------------------------------------------------------------------- /contracts/FarmMaster.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdefilab/xdefi-governance-token/HEAD/contracts/FarmMaster.sol -------------------------------------------------------------------------------- /contracts/Migrations.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdefilab/xdefi-governance-token/HEAD/contracts/Migrations.sol -------------------------------------------------------------------------------- /contracts/Timelock.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdefilab/xdefi-governance-token/HEAD/contracts/Timelock.sol -------------------------------------------------------------------------------- /contracts/XDEX.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdefilab/xdefi-governance-token/HEAD/contracts/XDEX.sol -------------------------------------------------------------------------------- /contracts/XHalfLife.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdefilab/xdefi-governance-token/HEAD/contracts/XHalfLife.sol -------------------------------------------------------------------------------- /contracts/XdexStream.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdefilab/xdefi-governance-token/HEAD/contracts/XdexStream.sol -------------------------------------------------------------------------------- /contracts/interfaces/IERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdefilab/xdefi-governance-token/HEAD/contracts/interfaces/IERC20.sol -------------------------------------------------------------------------------- /contracts/interfaces/IXHalfLife.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdefilab/xdefi-governance-token/HEAD/contracts/interfaces/IXHalfLife.sol -------------------------------------------------------------------------------- /contracts/lib/AddressHelper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdefilab/xdefi-governance-token/HEAD/contracts/lib/AddressHelper.sol -------------------------------------------------------------------------------- /contracts/lib/XNum.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdefilab/xdefi-governance-token/HEAD/contracts/lib/XNum.sol -------------------------------------------------------------------------------- /contracts/test/MockToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdefilab/xdefi-governance-token/HEAD/contracts/test/MockToken.sol -------------------------------------------------------------------------------- /contracts/test/TimelockHarness.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdefilab/xdefi-governance-token/HEAD/contracts/test/TimelockHarness.sol -------------------------------------------------------------------------------- /migrations/1_initial_migration.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdefilab/xdefi-governance-token/HEAD/migrations/1_initial_migration.js -------------------------------------------------------------------------------- /migrations/2_deploy_XDEX.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdefilab/xdefi-governance-token/HEAD/migrations/2_deploy_XDEX.js -------------------------------------------------------------------------------- /migrations/3_deploy_XHalfLife.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdefilab/xdefi-governance-token/HEAD/migrations/3_deploy_XHalfLife.js -------------------------------------------------------------------------------- /migrations/4_deploy_FarmMaster.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdefilab/xdefi-governance-token/HEAD/migrations/4_deploy_FarmMaster.js -------------------------------------------------------------------------------- /migrations/5_deploy_XStream.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdefilab/xdefi-governance-token/HEAD/migrations/5_deploy_XStream.js -------------------------------------------------------------------------------- /migrations/6_deploy_Timelock.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdefilab/xdefi-governance-token/HEAD/migrations/6_deploy_Timelock.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdefilab/xdefi-governance-token/HEAD/package.json -------------------------------------------------------------------------------- /scripts/calculateContractBytecode.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdefilab/xdefi-governance-token/HEAD/scripts/calculateContractBytecode.js -------------------------------------------------------------------------------- /scripts/migrate_development.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdefilab/xdefi-governance-token/HEAD/scripts/migrate_development.sh -------------------------------------------------------------------------------- /scripts/start_ganache.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdefilab/xdefi-governance-token/HEAD/scripts/start_ganache.sh -------------------------------------------------------------------------------- /scripts/test_network_dev.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdefilab/xdefi-governance-token/HEAD/scripts/test_network_dev.sh -------------------------------------------------------------------------------- /test/FarmMasterTest.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdefilab/xdefi-governance-token/HEAD/test/FarmMasterTest.js -------------------------------------------------------------------------------- /test/TimeLockTest.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdefilab/xdefi-governance-token/HEAD/test/TimeLockTest.js -------------------------------------------------------------------------------- /test/XDEXTest.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdefilab/xdefi-governance-token/HEAD/test/XDEXTest.js -------------------------------------------------------------------------------- /test/XHalfLifeTest.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdefilab/xdefi-governance-token/HEAD/test/XHalfLifeTest.js -------------------------------------------------------------------------------- /test/XdexStreamTest.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdefilab/xdefi-governance-token/HEAD/test/XdexStreamTest.js -------------------------------------------------------------------------------- /test/utils/Ethereum.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdefilab/xdefi-governance-token/HEAD/test/utils/Ethereum.js -------------------------------------------------------------------------------- /truffle-config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xdefilab/xdefi-governance-token/HEAD/truffle-config.js --------------------------------------------------------------------------------