├── .gitattributes ├── .githooks ├── commit-msg │ └── must-include-issue-number └── prepare-commit-msg │ └── prepend-issue-number-from-branch ├── .github └── workflows │ └── CI.yml ├── .gitignore ├── .mocharc.json ├── .prettierrc ├── .waffle.json ├── .yarnrc ├── CODEOWNERS ├── LICENSE ├── README.md ├── contracts ├── CroDefiSwapERC20.sol ├── CroDefiSwapFactory.sol ├── CroDefiSwapPair.sol ├── Migrations.sol ├── interfaces │ ├── ICroDefiSwapCallee.sol │ ├── ICroDefiSwapERC20.sol │ ├── ICroDefiSwapFactory.sol │ ├── ICroDefiSwapPair.sol │ └── IERC20.sol ├── libraries │ ├── Math.sol │ ├── SafeMath.sol │ └── UQ112x112.sol └── test │ └── ERC20.sol ├── migrations ├── 1_initial_migration.js └── 2_deploy_contracts.js ├── package.json ├── pull_request_template.md ├── scripts └── replaceFactory.js ├── test ├── CropSwapERC20.spec.ts ├── CropSwapFactory.spec.ts ├── CropSwapPair.spec.ts └── shared │ ├── fixtures.ts │ └── utilities.ts ├── truffle-config.js ├── tsconfig.json └── yarn.lock /.gitattributes: -------------------------------------------------------------------------------- 1 | *.sol linguist-language=Solidity -------------------------------------------------------------------------------- /.githooks/commit-msg/must-include-issue-number: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crypto-com/swap-contracts-core/HEAD/.githooks/commit-msg/must-include-issue-number -------------------------------------------------------------------------------- /.githooks/prepare-commit-msg/prepend-issue-number-from-branch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crypto-com/swap-contracts-core/HEAD/.githooks/prepare-commit-msg/prepend-issue-number-from-branch -------------------------------------------------------------------------------- /.github/workflows/CI.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crypto-com/swap-contracts-core/HEAD/.github/workflows/CI.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | build/ 3 | cache/ 4 | .env 5 | .idea/ 6 | -------------------------------------------------------------------------------- /.mocharc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crypto-com/swap-contracts-core/HEAD/.mocharc.json -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crypto-com/swap-contracts-core/HEAD/.prettierrc -------------------------------------------------------------------------------- /.waffle.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crypto-com/swap-contracts-core/HEAD/.waffle.json -------------------------------------------------------------------------------- /.yarnrc: -------------------------------------------------------------------------------- 1 | --frozen-lockfile true 2 | -------------------------------------------------------------------------------- /CODEOWNERS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crypto-com/swap-contracts-core/HEAD/CODEOWNERS -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crypto-com/swap-contracts-core/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crypto-com/swap-contracts-core/HEAD/README.md -------------------------------------------------------------------------------- /contracts/CroDefiSwapERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crypto-com/swap-contracts-core/HEAD/contracts/CroDefiSwapERC20.sol -------------------------------------------------------------------------------- /contracts/CroDefiSwapFactory.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crypto-com/swap-contracts-core/HEAD/contracts/CroDefiSwapFactory.sol -------------------------------------------------------------------------------- /contracts/CroDefiSwapPair.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crypto-com/swap-contracts-core/HEAD/contracts/CroDefiSwapPair.sol -------------------------------------------------------------------------------- /contracts/Migrations.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crypto-com/swap-contracts-core/HEAD/contracts/Migrations.sol -------------------------------------------------------------------------------- /contracts/interfaces/ICroDefiSwapCallee.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crypto-com/swap-contracts-core/HEAD/contracts/interfaces/ICroDefiSwapCallee.sol -------------------------------------------------------------------------------- /contracts/interfaces/ICroDefiSwapERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crypto-com/swap-contracts-core/HEAD/contracts/interfaces/ICroDefiSwapERC20.sol -------------------------------------------------------------------------------- /contracts/interfaces/ICroDefiSwapFactory.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crypto-com/swap-contracts-core/HEAD/contracts/interfaces/ICroDefiSwapFactory.sol -------------------------------------------------------------------------------- /contracts/interfaces/ICroDefiSwapPair.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crypto-com/swap-contracts-core/HEAD/contracts/interfaces/ICroDefiSwapPair.sol -------------------------------------------------------------------------------- /contracts/interfaces/IERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crypto-com/swap-contracts-core/HEAD/contracts/interfaces/IERC20.sol -------------------------------------------------------------------------------- /contracts/libraries/Math.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crypto-com/swap-contracts-core/HEAD/contracts/libraries/Math.sol -------------------------------------------------------------------------------- /contracts/libraries/SafeMath.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crypto-com/swap-contracts-core/HEAD/contracts/libraries/SafeMath.sol -------------------------------------------------------------------------------- /contracts/libraries/UQ112x112.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crypto-com/swap-contracts-core/HEAD/contracts/libraries/UQ112x112.sol -------------------------------------------------------------------------------- /contracts/test/ERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crypto-com/swap-contracts-core/HEAD/contracts/test/ERC20.sol -------------------------------------------------------------------------------- /migrations/1_initial_migration.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crypto-com/swap-contracts-core/HEAD/migrations/1_initial_migration.js -------------------------------------------------------------------------------- /migrations/2_deploy_contracts.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crypto-com/swap-contracts-core/HEAD/migrations/2_deploy_contracts.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crypto-com/swap-contracts-core/HEAD/package.json -------------------------------------------------------------------------------- /pull_request_template.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crypto-com/swap-contracts-core/HEAD/pull_request_template.md -------------------------------------------------------------------------------- /scripts/replaceFactory.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crypto-com/swap-contracts-core/HEAD/scripts/replaceFactory.js -------------------------------------------------------------------------------- /test/CropSwapERC20.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crypto-com/swap-contracts-core/HEAD/test/CropSwapERC20.spec.ts -------------------------------------------------------------------------------- /test/CropSwapFactory.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crypto-com/swap-contracts-core/HEAD/test/CropSwapFactory.spec.ts -------------------------------------------------------------------------------- /test/CropSwapPair.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crypto-com/swap-contracts-core/HEAD/test/CropSwapPair.spec.ts -------------------------------------------------------------------------------- /test/shared/fixtures.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crypto-com/swap-contracts-core/HEAD/test/shared/fixtures.ts -------------------------------------------------------------------------------- /test/shared/utilities.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crypto-com/swap-contracts-core/HEAD/test/shared/utilities.ts -------------------------------------------------------------------------------- /truffle-config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crypto-com/swap-contracts-core/HEAD/truffle-config.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crypto-com/swap-contracts-core/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crypto-com/swap-contracts-core/HEAD/yarn.lock --------------------------------------------------------------------------------