├── .gitattributes ├── .gitignore ├── .npmignore ├── .travis.yml ├── LICENSE ├── README.md ├── arc-ts └── index.ts ├── contracts ├── BancorAdaptor.sol ├── BancorFormula.sol ├── Curves │ ├── Exponential.sol │ ├── Linear.sol │ ├── Linear_2.sol │ ├── Polynomial.sol │ └── SquareRoot.sol ├── Interface │ ├── IBondingCurve.sol │ └── ICurve.sol ├── Math │ └── Power.sol ├── MaxGasPrice.sol ├── Migrations.sol ├── Reserve │ ├── WithERC20Reserve.sol │ └── WithEtherReserve.sol ├── Spreads │ ├── SpreadERC20.sol │ └── SpreadEther.sol └── Test │ └── MockERC20.sol ├── dapp ├── .gitignore ├── README.md ├── package.json ├── public │ ├── favicon.ico │ ├── index.html │ └── manifest.json ├── src │ ├── App.css │ ├── App.js │ ├── App.test.js │ ├── SimpleCBT.json │ ├── index.css │ ├── index.js │ └── serviceWorker.js └── yarn.lock ├── greenkeeper.json ├── migrations └── 1_initial_migration.ts ├── package.json ├── scripts ├── enforceStaticDeps.js └── patchTypechain.js ├── test ├── BancorForumla.ts ├── EthPolynomialCurvedTokenLinear.ts ├── SimpleCBT.ts ├── Spread │ ├── SpreadERC20.ts │ └── SpreadEther.ts ├── SpreadCBT.ts └── helpers │ └── index.ts ├── truffle-config.js ├── tsconfig.json ├── yarn.lock └── zos.json /.gitattributes: -------------------------------------------------------------------------------- 1 | *.sol linguist-language=Solidity 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | dapp 2 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/README.md -------------------------------------------------------------------------------- /arc-ts/index.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /contracts/BancorAdaptor.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/contracts/BancorAdaptor.sol -------------------------------------------------------------------------------- /contracts/BancorFormula.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/contracts/BancorFormula.sol -------------------------------------------------------------------------------- /contracts/Curves/Exponential.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/contracts/Curves/Exponential.sol -------------------------------------------------------------------------------- /contracts/Curves/Linear.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/contracts/Curves/Linear.sol -------------------------------------------------------------------------------- /contracts/Curves/Linear_2.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/contracts/Curves/Linear_2.sol -------------------------------------------------------------------------------- /contracts/Curves/Polynomial.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/contracts/Curves/Polynomial.sol -------------------------------------------------------------------------------- /contracts/Curves/SquareRoot.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/contracts/Curves/SquareRoot.sol -------------------------------------------------------------------------------- /contracts/Interface/IBondingCurve.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/contracts/Interface/IBondingCurve.sol -------------------------------------------------------------------------------- /contracts/Interface/ICurve.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/contracts/Interface/ICurve.sol -------------------------------------------------------------------------------- /contracts/Math/Power.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/contracts/Math/Power.sol -------------------------------------------------------------------------------- /contracts/MaxGasPrice.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/contracts/MaxGasPrice.sol -------------------------------------------------------------------------------- /contracts/Migrations.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/contracts/Migrations.sol -------------------------------------------------------------------------------- /contracts/Reserve/WithERC20Reserve.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/contracts/Reserve/WithERC20Reserve.sol -------------------------------------------------------------------------------- /contracts/Reserve/WithEtherReserve.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/contracts/Reserve/WithEtherReserve.sol -------------------------------------------------------------------------------- /contracts/Spreads/SpreadERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/contracts/Spreads/SpreadERC20.sol -------------------------------------------------------------------------------- /contracts/Spreads/SpreadEther.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/contracts/Spreads/SpreadEther.sol -------------------------------------------------------------------------------- /contracts/Test/MockERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/contracts/Test/MockERC20.sol -------------------------------------------------------------------------------- /dapp/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/dapp/.gitignore -------------------------------------------------------------------------------- /dapp/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/dapp/README.md -------------------------------------------------------------------------------- /dapp/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/dapp/package.json -------------------------------------------------------------------------------- /dapp/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/dapp/public/favicon.ico -------------------------------------------------------------------------------- /dapp/public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/dapp/public/index.html -------------------------------------------------------------------------------- /dapp/public/manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/dapp/public/manifest.json -------------------------------------------------------------------------------- /dapp/src/App.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/dapp/src/App.css -------------------------------------------------------------------------------- /dapp/src/App.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/dapp/src/App.js -------------------------------------------------------------------------------- /dapp/src/App.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/dapp/src/App.test.js -------------------------------------------------------------------------------- /dapp/src/SimpleCBT.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/dapp/src/SimpleCBT.json -------------------------------------------------------------------------------- /dapp/src/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/dapp/src/index.css -------------------------------------------------------------------------------- /dapp/src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/dapp/src/index.js -------------------------------------------------------------------------------- /dapp/src/serviceWorker.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/dapp/src/serviceWorker.js -------------------------------------------------------------------------------- /dapp/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/dapp/yarn.lock -------------------------------------------------------------------------------- /greenkeeper.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/greenkeeper.json -------------------------------------------------------------------------------- /migrations/1_initial_migration.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/migrations/1_initial_migration.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/package.json -------------------------------------------------------------------------------- /scripts/enforceStaticDeps.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/scripts/enforceStaticDeps.js -------------------------------------------------------------------------------- /scripts/patchTypechain.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/scripts/patchTypechain.js -------------------------------------------------------------------------------- /test/BancorForumla.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/test/BancorForumla.ts -------------------------------------------------------------------------------- /test/EthPolynomialCurvedTokenLinear.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/test/EthPolynomialCurvedTokenLinear.ts -------------------------------------------------------------------------------- /test/SimpleCBT.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/test/SimpleCBT.ts -------------------------------------------------------------------------------- /test/Spread/SpreadERC20.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/test/Spread/SpreadERC20.ts -------------------------------------------------------------------------------- /test/Spread/SpreadEther.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/test/Spread/SpreadEther.ts -------------------------------------------------------------------------------- /test/SpreadCBT.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/test/SpreadCBT.ts -------------------------------------------------------------------------------- /test/helpers/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/test/helpers/index.ts -------------------------------------------------------------------------------- /truffle-config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/truffle-config.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/yarn.lock -------------------------------------------------------------------------------- /zos.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/convergentcx/milky-way/HEAD/zos.json --------------------------------------------------------------------------------