-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit d9ce878
Showing
123 changed files
with
23,216 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
.DS_STORE | ||
.vscode | ||
|
||
# node | ||
node_modules | ||
npm-debug.log | ||
|
||
# python | ||
*.pyc | ||
|
||
# npm test 1 | ||
solidity/build/contracts | ||
|
||
# npm test 2 | ||
solidity/allFiredEvents | ||
solidity/coverageEnv | ||
solidity/coverage | ||
solidity/coverage.json | ||
solidity/scTopics | ||
|
||
# npm run build | ||
solidity/build/INonStandardSmartToken.bin | ||
solidity/build/Migrations.abi | ||
solidity/build/Migrations.bin | ||
solidity/build/NewBancorConverter.abi | ||
solidity/build/NewBancorConverter.bin | ||
solidity/build/NonStandardERC20Token.abi | ||
solidity/build/NonStandardERC20Token.bin | ||
solidity/build/NonStandardSmartToken.abi | ||
solidity/build/NonStandardSmartToken.bin | ||
solidity/build/OldBancorConverter.abi | ||
solidity/build/OldBancorConverter.bin | ||
solidity/build/TestBancorFormula.abi | ||
solidity/build/TestBancorFormula.bin | ||
solidity/build/TestBancorNetwork.abi | ||
solidity/build/TestBancorNetwork.bin | ||
solidity/build/TestCrowdsaleController.abi | ||
solidity/build/TestCrowdsaleController.bin | ||
solidity/build/TestERC20Token.abi | ||
solidity/build/TestERC20Token.bin | ||
solidity/build/TestFeatures.abi | ||
solidity/build/TestFeatures.bin | ||
solidity/build/TestNonStandardERC20Token.abi | ||
solidity/build/TestNonStandardERC20Token.bin | ||
solidity/build/TestSafeMath.abi | ||
solidity/build/TestSafeMath.bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,255 @@ | ||
### 0.5.15 (2020-01-23) | ||
EtherToken | ||
* Name & symbol are now constructor args | ||
|
||
|
||
### 0.5.14 (2020-01-21) | ||
BancorNetwork | ||
* Removed signature/gas price limit logic | ||
|
||
BancorConverter | ||
* Removed the `converterType` variable | ||
|
||
BancorConverterUpgrader | ||
* Removed legacy converter (0.4) support | ||
|
||
BancorFormula | ||
* Increased liquidation cost precision | ||
|
||
EtherToken | ||
* Added `depositTo` function for direct depositing to another account for gas optimization | ||
|
||
|
||
### 0.5.13 (2020-01-09) | ||
BancorNetwork | ||
* Added a new Conversion event that gets emitted for any conversion in the network | ||
|
||
BancorConverter | ||
* Owners cannot disable conversions anymore | ||
* Owners cannot disable conversions from specific reserves anymore | ||
* Removed the virtual balance mechanism | ||
|
||
|
||
### 0.5.12 (2019-12-19) | ||
General | ||
* Better handling for non standard ERC20 tokens's transfer function (removed NonStandardTokenRegistry contract, gas optimization) | ||
|
||
BancorConverterRegistry | ||
* Fixed an issue that allowed adding duplicate pools to the registry in certain situations | ||
|
||
|
||
### 0.5.11 (2019-12-17) | ||
General | ||
* Added the BancorNetworkPathFinder contract, now compatible with the new converter registry contract | ||
|
||
BancorConverter | ||
* Added a dedicated getReserveRatio function | ||
|
||
BancorConverterRegistry | ||
* Now enforces only a single liquidity pool for each reserve configuration | ||
* Disabled converters are now considered invalid (can be removed by anyone) | ||
* Added a utility function that returns a list of converters for a given list of smart tokens | ||
|
||
|
||
### 0.5.8-10 (2019-12-12) | ||
General | ||
* Minor cleanups | ||
|
||
|
||
### 0.5.7 (2019-12-12) | ||
General: | ||
* Added ContractRegistryClient contract for common contract registry behavior and cleaner access, and updated all registry clients | ||
|
||
BancorConverterRegistry: | ||
* Full redesign - it now allows iterating over different primitives in the network and does not | ||
require re-adding converters after a converter upgrade | ||
|
||
BancorConverter: | ||
* Added support for fund/liquidate in non 50%/50% reserves converters | ||
|
||
BancorFormula: | ||
* Added calculations for fund/liquidate in non 50%/50% reserves | ||
|
||
|
||
### 0.5.6 (2019-11-18) | ||
BancorConverter: | ||
* Updated the virtual balances mechanism - it now scales all reserve balances by the same factor | ||
and is only relevant to cross reserve conversions | ||
|
||
|
||
### 0.5.5 (2019-11-05) | ||
BancorNetwork: | ||
* Added affiliate fee support in xConvert & xConvertPrioritized | ||
|
||
SmartTokenController: | ||
* Removed the disableTokenTransfers function | ||
|
||
|
||
### 0.5.4 (2019-11-03) | ||
General: | ||
* Added a testnet/private chain deployment script/migration | ||
* Updated the readme file with more tutorials on the various scripts | ||
|
||
ERC20Token: | ||
* Cleaned up construction, added the total supply as a constructor arg | ||
|
||
|
||
### 0.5.3 (2019-10-22) | ||
General: | ||
* Cleaned up all compilation warnings | ||
|
||
BancorConverter: | ||
* Added a protection against activation with no token supply | ||
|
||
|
||
### 0.5.2 (2019-10-07) | ||
BancorConverterRegistry | ||
* Added events when adding/removing tokens | ||
* Removing the last converter of a token will now also remove the token from the list of tokens | ||
|
||
|
||
### 0.5.1 (2019-10-07) | ||
General: | ||
* Added the BancorNetworkPathFinder contract | ||
|
||
BancorConverterFactory | ||
* Added utility function `latestConverterAddress` to return the latest converter for a given token | ||
* Removing the last converter for a token will now also remove the token from the list of tokens | ||
|
||
|
||
### 0.5.0 (2019-09-25) | ||
General: | ||
* Terminology changes (Connector -> Reserve, Weight -> Ratio) | ||
* Compiler upgraded to 0.4.26 | ||
* Truffle upgraded to 4.1.16 | ||
|
||
|
||
### 0.4.12 (2019-09-01) | ||
General: | ||
* Fixed line breaks in documentation | ||
|
||
|
||
### 0.4.11 (2019-08-29) | ||
BancorNetwork: | ||
* Added support for affilate fee | ||
|
||
BancorConverter: | ||
* Minor cleanups / bug fixes | ||
|
||
|
||
### 0.4.10 (2019-08-21) | ||
BancorX: | ||
* Added support for any ERC20/Smart token (was previously BNT specific) | ||
|
||
|
||
### 0.4.9 (2019-08-18) | ||
Converters: | ||
* Fixed a rounding error in the `fund` function | ||
|
||
|
||
### 0.4.8 (2019-07-20) | ||
General: | ||
* Added support for auto generation of documentation | ||
* Updated contract documentation | ||
* Cleaned up tests | ||
|
||
Network: | ||
* Fixed an issue that caused getReturnByPath to fail if the path contained old converters | ||
|
||
|
||
### 0.4.7 (2019-05-11) | ||
* added the ConverterRegistry contract | ||
|
||
|
||
### 0.4.6 (2019-01-29) | ||
General: | ||
* Added support for non standard ERC-20 tokens | ||
* Added NonStandardTokenRegistry contract to support non standard ERC-20 tokens | ||
|
||
Network: | ||
* Removed `convertForMultiple` | ||
|
||
|
||
### 0.4.5 (2019-01-23) | ||
General: | ||
* Minor cleanups / bug fixes | ||
* Moved to SafeMath | ||
|
||
Converters: | ||
* Added `completeXConversion` function to convert from BNT to another token by providing an id rather than amount | ||
* Changed the version from bytes32 to uint16 | ||
* `quickConvert` and `quickConvertPrioritized` now call `convertForPrioritized3` in the BancorNetwork contract | ||
* Renamed `isPurchaseEnabled` to `isSaleEnabled` in connector token struct, and validated that sales are enabled for the `fromConnector` rather than the `toConnector` in the conversion functions | ||
|
||
Network: | ||
* `verifyTrustedSender` function argument `amount` renamed to `customVal` | ||
* Added `xConvert` and `xConvertPrioritized` functions which converts any token to BNT and transfers the result to BancorX | ||
* Added `validateXConversion` function to get around the 16 variable function limit in the `xConvert` function | ||
* Added `convertForPrioritized3` with backwards compatibility to now receive a custom value along with the amount for verifying trusted senders | ||
|
||
|
||
### 0.4.4 (2018-06-23) | ||
General: | ||
* Minor cleanups / bug fixes | ||
* Upgraded compiler version to 0.4.24 | ||
|
||
Converters: | ||
* Replaced the `setRegistry` function with `updateRegistry` function | ||
* Removed quickBuyPath from converter | ||
* getReturn now returns the fee as a separate return value | ||
* Converter owner can no longer withdraw connector tokens while the converter is active | ||
* Converter owner can no longer transfer the token ownership once the converter is active | ||
* Added a dedicated `upgrade` function for easier upgrades | ||
* Added a `fund` function for increasing liquidity atomically | ||
* Added a `liquidate` function for decreasing liquidity atomically even when conversions are disabled | ||
|
||
Registry: | ||
* Fixed item removal | ||
|
||
|
||
### 0.4.3 (2018-06-23) | ||
General: | ||
* Upgraded compiler version to 0.4.23 | ||
* Updated all contracts to make use of the new `constructor` keyword | ||
* Removed more local contract dependencies and replaced them with querying the registry | ||
|
||
Utilities: | ||
* ContractRegistry - added support for querying the number of items/contract names in the registry | ||
|
||
|
||
### 0.4.2 (2018-06-10) | ||
General: | ||
* Added more predefined contract ids | ||
|
||
Bug fixes: | ||
* Fixed a crash in BancorConverterUpgrader when trying to upgrade converters with virtual connector balance | ||
|
||
|
||
### 0.4.1 (2018-06-07) | ||
Bug fixes: | ||
* Fixed BancorNetwork contract backward compatibility with older converters | ||
|
||
|
||
### 0.4.0 (2018-06-06) | ||
General: | ||
* Restructured contract folders | ||
* Upgraded compiler version to 0.4.21 | ||
* Replaced from testrpc with ganache | ||
* Other minor cleanups | ||
|
||
Converters: | ||
* Gas cost optimizations when converting between 2 connectors, now uses an optimized dedicated | ||
formula calculation | ||
* Conversions now trigger 2 separate events - Conversion & PriceDataUpdate | ||
* Added support for multiple conversions in a single atomic transaction | ||
* Added support for conversion whitelist | ||
* Removed the BancorConverterExtensions contract and replaced it with the new ContractRegistry contract | ||
* Added the ability for the owner to also set the manager | ||
* Renamed BancorQuickConverter to BancorNetwork to more accurately reflect its place as the entry point | ||
for bancor related functionality | ||
* Removed EIP228 related functionality and deprecated the EIP | ||
|
||
Utilities: | ||
* Added support for contract registry to minimize dependencies between contracts | ||
* Added support for a "feature flags" contract that allows contracts to dynamically query | ||
other contracts for supported features |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
Bprotocol Foundation (Bancor) LICENSE | ||
|
||
1. SUBJECT TO THE PROVISIONS SET FORTH HEREIN, INCLUDING “EFFECTIVE DATE”, YOU CAN | ||
USE THIS CODE, FILE AND/OR SOFTWARE (“SOFTWARE”) ONLY IN CONNECTION WITH THE | ||
BANCOR LIQUIDITY NETWORK AND/OR THE USE OF BNT ("PERMITTED USE"). ANY OTHER USE IS | ||
PROHIBITED UNLESS THE USER SHALL RECEIVE AN EXPLICIT PRIOR WRITTEN APPROVAL FROM | ||
BPROTOCOL FOUNDATION (BANCOR) TO DO SO (PLEASE CONTACT [email protected] IN | ||
THIS REGARD), WHICH APPROVAL, IF GIVEN, MAY REQUIRE THE OBTAINMENT OF SEPARATE | ||
LICENSE UNDER A DIFFERENT LICENSING MODEL. USING THIS SOFTWARE NOT IN THE FRAME OF | ||
SUCH PERMITTED USE MAY, AMONG OTHERS, ALSO BREACH PATENT RIGHTS CONCERNING PATENTS | ||
WHICH ARE EMBODIED/INCORPORATED/USED IN THIS SOFTWARE. | ||
|
||
2. ANY SUCH PERMITTED USE SHOULD ALSO COMPLY WITH THE TERMS BELOW. | ||
|
||
3. Redistribution and use in source and binary forms, with or without modification, | ||
are permitted provided that the following conditions are met: | ||
A. Redistributions of source code must retain the above copyright notice, this list | ||
of conditions and the following disclaimer. | ||
B. Redistributions in binary form must reproduce the above copyright notice, this | ||
list of conditions and the following disclaimer in the documentation and/or other | ||
materials provided with the distribution. | ||
B. Neither the name of the copyright holder nor the names of its contributors may be | ||
used to endorse or promote products derived from this software without specific prior | ||
written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY | ||
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | ||
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT | ||
SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT | ||
OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | ||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
|
||
EFFECTIVE DATE: THIS LICENSE SHALL APPLY ONLY TO SOFTWARE (OR ANY VERSION THEREOF), | ||
THAT HAS BEEN PUBLISHED AFTER THE DATE AND TIME THIS LICENSE HAS BEEN FIRST PUBLISHED | ||
(“EFFECTIVE DATE”); Any previous versions published prior to the effective date (“Older Versions”) | ||
shall remain licensed under the Apache License, Version 2.0 (the "Older Versions License"); | ||
You may obtain a copy of the Older Version License at http://www.apache.org/licenses/LICENSE-2.0 | ||
you may not use this file except in compliance with the Older Version License. Unless | ||
required by applicable law or agreed to in writing, Older Versions distributed under the | ||
Older Version License are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS | ||
OF ANY KIND, either express or implied. See the Older Version License for the specific | ||
language governing permissions and limitations under the Older Version License. |
Oops, something went wrong.