Skip to content

Commit 2ec70fe

Browse files
authored
Merge pull request #392 from PolymathNetwork/development-1.5.0
Polymath Core 2.0 Release (1.5.0 renamed to 2.0.0) ------ Release notes TBD
2 parents 0eba403 + 9cf7b25 commit 2ec70fe

File tree

188 files changed

+102881
-34549
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

188 files changed

+102881
-34549
lines changed

.eslintrc.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,14 @@ module.exports = {
66
"assert": false,
77
"web3": false
88
},
9+
10+
"rules": {
11+
"indent": 0,
12+
"camelcase": 0,
13+
"no-unused-vars": 0,
14+
"quotes": 0,
15+
"semi": 0,
16+
"no-undef": 0,
17+
"key-spacing": 0
18+
}
919
};

.gitignore

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/node_modules
2+
/CLI/node_modules
23
/build
34
/CLI/node_modules
45
.npm-debug.log
@@ -11,4 +12,11 @@ coverage.json
1112
bridge.log
1213
scTopics
1314
coverageEnv
14-
/flat
15+
/flat
16+
/tempPoly
17+
.eslintrc.js
18+
package-lock.json
19+
bridge.log
20+
.node-xml*
21+
.solcover.js.bk
22+
allFiredEvents

.solcover.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ module.exports = {
22
norpc: true,
33
port: 8545,
44
copyPackages: ['openzeppelin-solidity'],
5-
testCommand: 'node ../node_modules/.bin/truffle test `find test/*.js ! -name a_poly_oracle.js` --network coverage',
5+
testCommand: 'node ../node_modules/.bin/truffle test `find test/*.js ! -name a_poly_oracle.js -and ! -name s_v130_to_v140_upgrade.js` --network coverage',
66
deepSkip: true,
7-
skipFiles: ['external', 'flat']
8-
};
7+
skipFiles: ['external', 'flat', 'helpers', 'mocks', 'oracles', 'libraries/KindMath.sol', 'storage', 'modules/Experimental'],
8+
forceParse: ['mocks', 'oracles', 'modules/Experimental']
9+
};

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ before_install:
1212
- sudo apt-get -y install solc
1313
before_script:
1414
- truffle version
15+
- wget -O node_modules/solidity-coverage/lib/app.js https://raw.githubusercontent.com/maxsam4/solidity-coverage/relative-path/lib/app.js
1516
script:
1617
- npm run test
17-
- npm run docs
1818
notifications:
1919
slack:
20-
secure: W4FZSabLrzF74f317hutolEHnlq2GBlQxU6b85L5XymrjgLEhlgE16c5Qz7Emoyt6le6PXL+sfG2ujJc3XYys/6hppgrHSAasuJnKCdQNpmMZ9BNyMs6WGkmB3enIf3K/FLXb26AQdwpQdIXuOeJUTf879u+YoiZV0eZH8d3+fsIOyovq9N6X5pKOpDM9iT8gGB4t7fie7xf51s+iUaHxyO9G7jDginZ4rBXHcU7mxCub9z+Z1H8+kCTnPWaF+KKVEXx4Z0nI3+urboD7E4OIP02LwrThQls2CppA3X0EoesTcdvj/HLErY/JvsXIFiFEEHZzB1Wi+k2TiOeLcYwEuHIVij+HPxxlJNX/j8uy01Uk8s4rd+0EhvfdKHJqUKqxH4YN2npcKfHEss7bU3y7dUinXQfYShW5ZewHdvc7pnnxBTfhvmdi64HdNrXAPq+s1rhciH7MmnU+tsm4lhrpr+FBuHzUMA9fOCr7b0SQytZEgWpiUls88gdbh3yG8TjyZxmZJGx09cwEP0q7VoH0UwFh7mIu5XmYdd5tWUhavTiO7YV8cUPn7MvwMsTltB3YBpF/fB26L7ka8zBhCsjm9prW6SVYU/dyO3m91VeZtO/zJFHRDA6Q58JGVW2rgzO39z193qC1EGRXqTie96VwAAtNg8+hRb+bI/CWDVzSPc=
20+
secure: W4FZSabLrzF74f317hutolEHnlq2GBlQxU6b85L5XymrjgLEhlgE16c5Qz7Emoyt6le6PXL+sfG2ujJc3XYys/6hppgrHSAasuJnKCdQNpmMZ9BNyMs6WGkmB3enIf3K/FLXb26AQdwpQdIXuOeJUTf879u+YoiZV0eZH8d3+fsIOyovq9N6X5pKOpDM9iT8gGB4t7fie7xf51s+iUaHxyO9G7jDginZ4rBXHcU7mxCub9z+Z1H8+kCTnPWaF+KKVEXx4Z0nI3+urboD7E4OIP02LwrThQls2CppA3X0EoesTcdvj/HLErY/JvsXIFiFEEHZzB1Wi+k2TiOeLcYwEuHIVij+HPxxlJNX/j8uy01Uk8s4rd+0EhvfdKHJqUKqxH4YN2npcKfHEss7bU3y7dUinXQfYShW5ZewHdvc7pnnxBTfhvmdi64HdNrXAPq+s1rhciH7MmnU+tsm4lhrpr+FBuHzUMA9fOCr7b0SQytZEgWpiUls88gdbh3yG8TjyZxmZJGx09cwEP0q7VoH0UwFh7mIu5XmYdd5tWUhavTiO7YV8cUPn7MvwMsTltB3YBpF/fB26L7ka8zBhCsjm9prW6SVYU/dyO3m91VeZtO/zJFHRDA6Q58JGVW2rgzO39z193qC1EGRXqTie96VwAAtNg8+hRb+bI/CWDVzSPc=

CHANGELOG.md

Lines changed: 67 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,74 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4-
# v1.4.1
4+
# v1.5.0 - Release Candidate
5+
6+
[__1.5.0__](https://www.npmjs.com/package/polymath-core?activeTab=readme) __15-08-18__
7+
8+
## Added
9+
* Added `getInvestorsAt` which returns the investors (non-zero balances) at a particular checkpoint
10+
* Added `iterateInvestors` to allow an a subset of `investors` to be returned from the security token in case `investors` is large.
11+
* `ChangeModuleBudget` in SecurityToken now takes in the change in budget rather than absoulte budget. Added boolean paramter to decide increase/decrease.
12+
* Added `createCheckpoint() withPerm(CHECKPOINT)` to dividend checkpoint modules.
13+
* Added `deleteDelegate()` to general permission manager. It will disable the delegate but not delete the perms.
14+
* Migrated from `npm` to `yarn`.
15+
* Added `SingleTradeVolumeRestrictionManager` module
16+
* Added flag in `PercentageTransferManager` to allow ignoring of issuance transfers
17+
* Added `transferWithData`, `transferFromWithData`, `mintWithData`, `burnWithData` to allow passing of a `bytes _data` for off-chain validation
18+
* Added ability for modules to have multiple types
19+
* Added `name` field to dividends struct in DividendCheckpoint. #295
20+
* Added `getTagsByType`, `getTagsByTypeAndToken`, `getModulesByType`, `getModulesByTypeAndToken` to MR
21+
* Added `getTokensByOwner` to STR
22+
* Added withholding tax to ether & erc20 dividends
23+
* Generalised MakerDAO oracle to allow different instances referencing different currencies
24+
* Added DAI as a fundraising currency to USDTieredSTO
25+
* `transferTickerOwnership()` function is introduced in `TickerRegistry` to transfer the ticker ownership after the registeration #191.
26+
* `getTickersByOwner()` function is used to get the list of tickers owned by the issuer #189.
27+
* New function `addCustomTicker()` is used the add the Ticker in tickerRegistry. To avail the facility to Registry owner to add the tokens without paying the fee #190.
28+
* Adding the functionality to change the `version`,`name`,`description`,`title` of a Module factory.
29+
* Add the `registrationTimestamp` in the `SecurityTokenData` structure that also leads the change in the `getSecurityTokenData()` return parameters. #199
30+
* Add `_deployedAt` new parameter in the `addCustomSecurityToken`. #199
31+
* Add `getReputationOfFactory()` & `getModuleListOfType()` functions to get the array type data from the ModuleRegistry contract.
32+
* Add `_setupCost` in `LogGenerateModuleFromFactory` event.
33+
* Add new function `getAllModulesByName()`, To get the list of modules having the same name. #198.
34+
* Add new function `modifyTickerDetails()`, To modify the details of undeployed ticker. #230
35+
36+
## Fixed
37+
* `getAllModulesAndPermsFromTypes()` does not take securityToken address as a parameter anymore.
38+
* 0x0 and duplicate address in exclusions are no longer allowed in dividend modules.
39+
* All permissions are denied if no permission manager is active.
40+
* Generalize the STO varaible names and added them in `ISTO.sol` to use the common standard in all STOs.
41+
* Generalize the event when any new token get registered with the polymath ecosystem. `LogNewSecurityToken` should emit _ticker, _name, _securityTokenAddress, _owner, _addedAt, _registrant respectively. #230
42+
* Change the function name of `withdraPoly` to `withdrawERC20` and make the function generalize to extract tokens from the ST contract. parmeters are contract address and the value need to extract from the securityToken.
43+
44+
## Removed
45+
* Removed investors list pruning
46+
* Remove `swarmHash` from the `registerTicker(), addCustomTicker(), generateSecurityToken(), addCustomSecurityToken()` functions of TickerRegistry.sol and SecurityTokenRegistry.sol. #230
47+
* Remove `Log` prefix from all the event present in the ecosystem.
48+
* Removed `addTagByModuleType` & `removeTagsByModuleType` from MR.
49+
50+
======
51+
52+
# v1.4.1 - Release Candidate
53+
54+
[__1.4.1__](https://www.npmjs.com/package/polymath-core?activeTab=readme) __13-08-18__
55+
56+
## Added
57+
58+
* Test cases for 1.4.1 migration
59+
* STR Migration script
60+
* Encrypted API Key for CMC queries in PolyOracle
61+
62+
## Changed
63+
64+
* Remove endData update from unpause function
65+
* Allow custom tokens to be added when STR is paused
66+
* PolyOracle does not revert on out of order callbacks (silently ignores instead)
67+
* Removed USDTieredSTO > STR dependency by moving oracle registry to PolymathRegistry
568

669
## Fixed
770

71+
* Rounding edge cases in USDTieredSTO.sol that could have reverted valid transactions
872
* Fix #239: fix basic fee logic for ongoing module fees
973
* Fix #238: make beneficial investments optionally supported (default to not
1074
allowed)
@@ -37,8 +101,9 @@ allowed)
37101

38102
* Modified function name in TickerRegistry and SecurityTokenRegistry from `changePolyRegisterationFee` to `changePolyRegistrationFee`. Event name is modified too from `LogChangePolyRegisterationFee` to `LogChangePolyRegistrationFee`
39103
* Minor CLI fixes
104+
* Change in the datastructure of SymbolDetails new variable `expiredTimestamp` introduced and change the variable name `timestamp` to `registeredTimestamp` in Tickerregistry.sol #192.
40105
* Rounding edge cases in USDTieredSTO.sol that could have reverted valid transactions
41-
* Bug in ManualApprovalTransferManager that allowed anyone to reduce anyone's transfer allowance
106+
* Bug in ManualApprovalTransferManager that allowed anyone to reduce anyone's transfer allowance
42107

43108
=======
44109
# v1.3.0

0 commit comments

Comments
 (0)