Skip to content

Merging 3.0.0 changes into old master #775

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 500 commits into from
Jul 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
500 commits
Select commit Hold shift + click to select a range
3b059fe
PLCR voting module
SatyamSB Mar 7, 2019
dec27ad
WIP
adamdossa Mar 12, 2019
f3f15f2
Clean up types & tags
adamdossa Mar 12, 2019
6d092e7
Fix test cases
adamdossa Mar 13, 2019
f7f45b0
Check that there is a non-zero supply when creating a dividend
adamdossa Mar 13, 2019
91b415f
Merge pull request #594 from PolymathNetwork/fix-types-tags
maxsam4 Mar 14, 2019
bce762e
improvements and fixes
SatyamSB Mar 14, 2019
03cf6b7
Merge branch 'dev-3.0.0' into weighted-voting-module
satyamakgec Mar 14, 2019
2b5e97e
factory fix
SatyamSB Mar 14, 2019
fda0e70
Merge branch 'dev-3.0.0' into commit-reveal-voting
SatyamSB Mar 14, 2019
746454c
minor fix
SatyamSB Mar 14, 2019
8a37b79
improve the PLCR voting
SatyamSB Mar 14, 2019
5cc2fb7
add more functionality and add test cases
SatyamSB Mar 15, 2019
4726245
Ported STO fixes from dev-2.1.0 (#591)
maxsam4 Mar 15, 2019
56b1b10
Merge branch 'dev-3.0.0' into weighted-voting-module
adamdossa Mar 18, 2019
efdbda4
add more tests
SatyamSB Mar 18, 2019
667ae7c
Merge branch 'dev-3.0.0' into commit-reveal-voting
satyamakgec Mar 18, 2019
aec7a1d
add overflow check
SatyamSB Mar 18, 2019
35d8815
add overflow check
SatyamSB Mar 18, 2019
cd4e1e9
Merge branch 'weighted-voting-module' of https://github.com/PolymathN…
SatyamSB Mar 18, 2019
265bfcf
GTM minor refactoring
maxsam4 Mar 18, 2019
907ccac
gtm test fix
maxsam4 Mar 18, 2019
dde1fb8
MATM optimizations
maxsam4 Mar 18, 2019
68cdab9
Fixed matm tests
maxsam4 Mar 18, 2019
92c8d57
minor fixes
SatyamSB Mar 18, 2019
ab117b6
add comments
SatyamSB Mar 18, 2019
aca36ed
minor comment
SatyamSB Mar 18, 2019
5dfeb80
Merge branch 'dev-3.0.0' into 1410-integration
satyamakgec Mar 19, 2019
22aab9f
Merge pull request #604 from PolymathNetwork/gtm-matm-optimizations
satyamakgec Mar 19, 2019
1f2ac28
Merge branch 'dev-3.0.0' into 1410-integration
SatyamSB Mar 19, 2019
bca73cd
Added a test case
maxsam4 Mar 19, 2019
c17cf0c
Merge branch 'dev-3.0.0' into multi-mint-test
satyamakgec Mar 19, 2019
7a95e07
Minor optimization
maxsam4 Mar 19, 2019
5fb29be
Merge pull request #607 from PolymathNetwork/multi-mint-test
satyamakgec Mar 19, 2019
518ebf7
Merge branch 'dev-3.0.0' into multi-issuance-optimization
maxsam4 Mar 19, 2019
90ed86d
Merge pull request #608 from PolymathNetwork/multi-issuance-optimization
satyamakgec Mar 19, 2019
b61938c
add getTokensByPartition in GTM and BTM
SatyamSB Mar 19, 2019
8c839f2
Minor optimization in verify transfer
maxsam4 Mar 19, 2019
f1426ff
Merge pull request #609 from PolymathNetwork/transfer-minor-optimization
satyamakgec Mar 19, 2019
4e89687
add test for the VRTM getTokensByPartition
SatyamSB Mar 20, 2019
55cc441
Merge branch 'dev-3.0.0' into 1410-integration
satyamakgec Mar 20, 2019
6e22dcc
Merge branch 'dev-3.0.0' into commit-reveal-voting
satyamakgec Mar 22, 2019
d073958
add the pause functionality in the getTokensByPartition()
SatyamSB Mar 22, 2019
735ab29
Get subset of investors at a checkpoint (#611)
maxsam4 Mar 22, 2019
616348c
Merge branch 'dev-3.0.0' into weighted-voting-module
adamdossa Mar 22, 2019
34bb63e
Add acknowledgement for irrevocable actions using EIP712 (#599)
maxsam4 Mar 22, 2019
e0c3355
Merge branch 'dev-3.0.0' into 1410-integration
SatyamSB Mar 24, 2019
c4654dd
add pause effects in LTM
SatyamSB Mar 24, 2019
56585bc
Allow to define fee in Poly
maxsam4 Mar 25, 2019
119634b
fix test
SatyamSB Mar 25, 2019
5a223e5
Updated factory deployments
maxsam4 Mar 26, 2019
7712287
Updated STR tests
maxsam4 Mar 26, 2019
d9988e8
Tests fixed
maxsam4 Mar 26, 2019
5f472bd
Added code comment to oracle
maxsam4 Mar 27, 2019
eb9b9d0
Add STR tests
maxsam4 Mar 27, 2019
3401b01
Simplified change currency functions
maxsam4 Mar 27, 2019
7f8d193
Updated STR tests
maxsam4 Mar 27, 2019
c7c8da6
Added module factory tests
maxsam4 Mar 27, 2019
c474c12
Fix timestamp for checkpoints tests
maxsam4 Mar 27, 2019
f645c25
Cosmetic changes
maxsam4 Mar 27, 2019
8bb6261
Fix timestamp for checkpoints tests
maxsam4 Mar 27, 2019
bfa8a0c
Skip cp module in coverage
maxsam4 Mar 27, 2019
be37cb9
Merge pull request #620 from PolymathNetwork/scp-temp-fix
satyamakgec Mar 27, 2019
53f8460
resolve conflicts
SatyamSB Mar 27, 2019
74d0940
Port dividend fix (#610)
satyamakgec Mar 28, 2019
9a80c01
Allow token name change (#600)
maxsam4 Mar 28, 2019
7d369c7
Merge branch 'dev-3.0.0' into weighted-voting-module
adamdossa Mar 28, 2019
d4545f7
Moved BTM, LTM, Vesting out of experimental
maxsam4 Mar 29, 2019
71796a9
Typo fix
maxsam4 Mar 29, 2019
2f11b69
Fixed merge conflict
maxsam4 Mar 29, 2019
605baf7
Test fix
maxsam4 Mar 29, 2019
9bd9d47
Merge pull request #616 from PolymathNetwork/price-in-poly
maxsam4 Apr 1, 2019
43f07b3
Price BTM in poly
maxsam4 Apr 1, 2019
1db9687
Merge branch 'dev-3.0.0' into weighted-voting-module
satyamakgec Apr 1, 2019
68aec1d
minor fixes
SatyamSB Apr 1, 2019
d0c52be
Merge branch 'dev-3.0.0' into commit-reveal-voting
SatyamSB Apr 1, 2019
3b8d567
start proposal Id from 1 instead of 0
SatyamSB Apr 1, 2019
2546b13
BTM optimizations and bug fix
maxsam4 Apr 1, 2019
75a2acb
Bug fix
maxsam4 Apr 1, 2019
9d398ef
Typo fix
maxsam4 Apr 1, 2019
95580a0
Added clash checker script
maxsam4 Apr 2, 2019
121c4dd
Beutified function selector clash check script
maxsam4 Apr 2, 2019
5d43466
Throw on finding a clash
maxsam4 Apr 2, 2019
801cafc
Added circle CI job
maxsam4 Apr 2, 2019
06709ee
Upgradable tokens (#602)
adamdossa Apr 2, 2019
333afc7
Merge branch 'dev-3.0.0' into experimental-to-stable
maxsam4 Apr 2, 2019
58c8a77
Merge fixes
maxsam4 Apr 2, 2019
a19e23c
implement all functions of ERC1410
SatyamSB Apr 2, 2019
ef87bff
Merge branch 'dev-3.0.0' into clash-script
maxsam4 Apr 2, 2019
7358eff
LTM optimizations and bug fix
maxsam4 Apr 3, 2019
77e35ab
resolve conflicts
SatyamSB Apr 3, 2019
614bf22
minor fix
maxsam4 Apr 3, 2019
debd3c2
Vesting escrow wallet optimizations and bug fix
maxsam4 Apr 3, 2019
ddcbb2b
remove the approvals mapping
SatyamSB Apr 3, 2019
a333aa8
Added test cases for bug fixes
maxsam4 Apr 3, 2019
74f35f3
reduce the ST code size upto 23.84 KB
SatyamSB Apr 5, 2019
4259646
remove unnecessary mocks contract and cutdown the ST size till 23.72 KB
SatyamSB Apr 5, 2019
6b1b574
Merge branch 'dev-3.0.0' into commit-reveal-voting
satyamakgec Apr 9, 2019
6ba0de0
Merge branch 'dev-3.0.0' into weighted-voting-module
satyamakgec Apr 9, 2019
47624d8
Increased max module types (#636)
maxsam4 Apr 9, 2019
79f3396
add test cases and fix bugs
SatyamSB Apr 9, 2019
c69113c
resolve conflicts and add test cases
SatyamSB Apr 10, 2019
57b5394
Merge branch 'dev-3.0.0' into 1410-integration
satyamakgec Apr 10, 2019
57688af
Merge branch 'dev-3.0.0' into commit-reveal-voting
satyamakgec Apr 10, 2019
fa292df
minor test fixes
SatyamSB Apr 10, 2019
2941a9c
Merge branch 'dev-3.0.0' into weighted-voting-module
satyamakgec Apr 10, 2019
04fbdcc
minor test fix
SatyamSB Apr 10, 2019
3c9145c
Merge branch 'dev-3.0.0' into clash-script
maxsam4 Apr 10, 2019
5d87221
Merge pull request #578 from PolymathNetwork/weighted-voting-module
satyamakgec Apr 10, 2019
ac03c3b
resolve conflicts
SatyamSB Apr 10, 2019
966fb3a
Merge branch 'dev-3.0.0' into 1410-integration
satyamakgec Apr 10, 2019
739a830
Increase solidity coverage memory limit
maxsam4 Apr 11, 2019
55af644
Merge pull request #643 from PolymathNetwork/coverage-memory-fix
satyamakgec Apr 11, 2019
77000f3
Merge branch 'dev-3.0.0' into 1410-integration
satyamakgec Apr 11, 2019
5c0b1ae
Merge branch 'dev-3.0.0' into commit-reveal-voting
satyamakgec Apr 11, 2019
43ed931
Raised memory limits of truffle and ganache
maxsam4 Apr 11, 2019
856b840
Merge branch 'dev-3.0.0' into coverage-memory-fix
maxsam4 Apr 11, 2019
15129ba
Merge branch 'coverage-memory-fix' into 1410-integration
maxsam4 Apr 11, 2019
1b0ec01
Merge pull request #644 from PolymathNetwork/coverage-memory-fix
satyamakgec Apr 11, 2019
1696507
Merge branch 'dev-3.0.0' into 1410-integration
satyamakgec Apr 11, 2019
949a9b6
Merge branch 'dev-3.0.0' into commit-reveal-voting
satyamakgec Apr 11, 2019
87aa859
Merge pull request #589 from PolymathNetwork/commit-reveal-voting
satyamakgec Apr 11, 2019
19f9958
Merge branch 'dev-3.0.0' into experimental-to-stable
adamdossa Apr 11, 2019
bd46e23
Merge branch 'dev-3.0.0' into 1410-integration
adamdossa Apr 11, 2019
bc4f87f
refactoring voting modules & adding functionality
SatyamSB Apr 11, 2019
2cad781
Refresh / Upgrade tokens (#632)
maxsam4 Apr 11, 2019
91fe9be
Merge branch 'dev-3.0.0' into experimental-to-stable
adamdossa Apr 11, 2019
97f093d
fix compiler error
SatyamSB Apr 11, 2019
92e805c
Merge branch 'dev-3.0.0' into abstract-class-voting
satyamakgec Apr 11, 2019
c9cb83c
Port the VRTM audit fixes (#635)
satyamakgec Apr 11, 2019
75db14b
Merge branch 'dev-3.0.0' into experimental-to-stable
adamdossa Apr 11, 2019
67f46f9
Merge pull request #621 from PolymathNetwork/experimental-to-stable
maxsam4 Apr 12, 2019
949dc2e
Merge branch 'dev-3.0.0' into clash-script
maxsam4 Apr 12, 2019
abc5837
Merge pull request #625 from PolymathNetwork/clash-script
maxsam4 Apr 12, 2019
491dd88
Merge branch 'dev-3.0.0' into abstract-class-voting
satyamakgec Apr 12, 2019
34e6be4
move voting modules from experimental
SatyamSB Apr 12, 2019
7005ba8
Merge branch 'abstract-class-voting' of https://github.com/PolymathNe…
SatyamSB Apr 12, 2019
164bd11
resolve conflicts
SatyamSB Apr 12, 2019
98b7f45
fix test & add test
SatyamSB Apr 12, 2019
40b95eb
fix test for weighted vote module
SatyamSB Apr 12, 2019
1c828f8
add more tests
SatyamSB Apr 12, 2019
3d69cac
Merge pull request #593 from PolymathNetwork/1410-integration
satyamakgec Apr 15, 2019
91ba2dd
Merge branch 'dev-3.0.0' into abstract-class-voting
satyamakgec Apr 15, 2019
40365dc
increase test coverage
SatyamSB Apr 15, 2019
2019a88
increase more coverage
SatyamSB Apr 15, 2019
a6edd8b
Minor optimizations (#628)
maxsam4 Apr 15, 2019
5abe922
Merge branch 'dev-3.0.0' into abstract-class-voting
adamdossa Apr 15, 2019
248ef3e
Increased STR compatibility (#640)
maxsam4 Apr 15, 2019
df58fc9
resolve conflicts
SatyamSB Apr 16, 2019
feeb072
Merge pull request #645 from PolymathNetwork/abstract-class-voting
satyamakgec Apr 16, 2019
06e489c
Updated and patched soldiity docgen
maxsam4 Apr 16, 2019
7a70aa5
Merge pull request #649 from PolymathNetwork/docs-fix-3.0
satyamakgec Apr 16, 2019
f0b3c3e
Update changelog for some extent
SatyamSB Apr 25, 2019
3831215
Copy dev-2.1.0 CLI into dev-3.0.0
F-OBrien Apr 27, 2019
9d44f3a
Fix Errors + add missing functions & Events
F-OBrien Apr 28, 2019
77fc00c
Add ISecurityTokenRegistry to contract abis + fix OZ ERC20 abi
F-OBrien Apr 28, 2019
86d55ab
Fix/Update ST20Generator for V3.0.0.
F-OBrien Apr 28, 2019
fa1a723
Add ISecurityToken to contract abis
F-OBrien Apr 28, 2019
93ed8f2
Blue Bull - because I like it
F-OBrien Apr 28, 2019
9b69574
Add events and some public constant getters to ISecurityToken
F-OBrien Apr 28, 2019
dabf638
Token Manager CLI Fixes
F-OBrien Apr 28, 2019
e30380c
revert yarn.lock changes
F-OBrien Apr 28, 2019
145a87e
more token manager fixes
F-OBrien Apr 28, 2019
9ba0135
More CLI STM and TM fixes
F-OBrien Apr 29, 2019
b4a9710
Merge pull request #658 from PolymathNetwork/update-changelog-3.0
pabloruiz55 May 6, 2019
def0777
WIP: More TM CLI fixes and updates
F-OBrien May 7, 2019
8455c48
Update as per PR #669 to master
F-OBrien May 8, 2019
203819f
TM CLI updates for setting and checking investor flags
F-OBrien May 8, 2019
95fcd0a
CLI Fixes for remaining transfer manager modules
F-OBrien May 12, 2019
a396060
Port Combine modify whitelist commands (ref PR #667)
F-OBrien May 12, 2019
7e72a28
STO CLI 3.0.0 fixes
F-OBrien May 12, 2019
436a872
Transfer CLI fixes
F-OBrien May 12, 2019
e2d3465
Investor CLI fixes
F-OBrien May 18, 2019
f8c124e
dividend manager CLI fixes
F-OBrien May 19, 2019
13a6b90
Contract Manager CLI Fixes and updates
F-OBrien May 19, 2019
7fb7164
Minor ST20 Generator change
F-OBrien May 19, 2019
fb2c838
Permission Manager Cli Fixes
F-OBrien May 19, 2019
40afa3b
Merge branch 'dev-3.0.0' into 2.1.0-CLI-to-dev-3.0.0
F-OBrien May 19, 2019
3867b32
Pin solc to 0.5.8
maxsam4 May 29, 2019
66571bf
made solc executable
maxsam4 May 29, 2019
db6ee34
Merge pull request #699 from PolymathNetwork/travis-fix-solc-version
maxsam4 May 29, 2019
78781ea
Merge branch 'dev-3.0.0' into 2.1.0-CLI-to-dev-3.0.0
VictorVicente May 29, 2019
37dcb99
Transfer managers with version
VictorVicente Jun 5, 2019
3832fb5
usd and poly fees for STR
VictorVicente Jun 5, 2019
860e42d
Labeled modules
VictorVicente Jun 6, 2019
6b38f30
CLI Treasury wallet
VictorVicente Jun 6, 2019
b219a8e
CLI Change token name
VictorVicente Jun 6, 2019
baefd34
CLI ST Documents
VictorVicente Jun 6, 2019
b755255
CLI controller transfer renamed
VictorVicente Jun 6, 2019
6f5b733
CLI partitions and operators
VictorVicente Jun 12, 2019
e0d1641
CLI inputs with limits abstracted to input.js
VictorVicente Jun 12, 2019
5ccf473
Moved OZ from devDependencies to dependencies (#707)
maxsam4 Jun 13, 2019
31a9a0e
Approved Audit fixes (#705)
maxsam4 Jun 14, 2019
a5127b5
CLI common selectToken inlcuding tokensByDelegate
VictorVicente Jun 14, 2019
5d2ac82
Merge branch 'dev-3.0.0' into 2.1.0-CLI-to-dev-3.0.0
VictorVicente Jun 14, 2019
47475f1
Merge Dev-3.0.0 interfaces
F-OBrien Jun 14, 2019
e95a61f
Merge pull request #659 from F-OBrien/2.1.0-CLI-to-dev-3.0.0
pabloruiz55 Jun 14, 2019
6034aab
Merge branch 'dev-3.0.0' into CLI-3.0.0-pendings
VictorVicente Jun 14, 2019
1fe0092
Fix underflow in BlacklistTM (#721)
adamdossa Jun 17, 2019
d5356ca
Merge branch 'dev-3.0.0' into CLI-3.0.0-pendings
VictorVicente Jun 18, 2019
1863741
CLI Refresh security token
VictorVicente Jun 18, 2019
020b344
CLI Permissions updated
VictorVicente Jun 18, 2019
e75a21f
Merge branch 'CLI-3.0.0-pendings' of https://github.com/PolymathNetwo…
VictorVicente Jun 18, 2019
f58d410
CLI Provider validator regex
VictorVicente Jun 18, 2019
4fcaaef
Update changelog after the audit fixes
SatyamSB Jun 19, 2019
92c7383
Fixed errors
VictorVicente Jun 19, 2019
9c0e525
Update CHANGELOG.md
onigiri-x Jun 19, 2019
ba55f5e
Update CHANGELOG.md
onigiri-x Jun 19, 2019
ad1c9fd
Update CHANGELOG.md
onigiri-x Jun 19, 2019
c3b100e
Issue with forceburn wording and no controllerredeem listed
onigiri-x Jun 19, 2019
9878acb
Merge pull request #724 from PolymathNetwork/typo-patch-1
VictorVicente Jun 20, 2019
1540086
CLI _owner issue fixed
VictorVicente Jun 21, 2019
4a7fbbe
CLI NewSecurityToken event renamed
VictorVicente Jun 21, 2019
15b335e
Revert "CLI NewSecurityToken event renamed"
VictorVicente Jun 21, 2019
5ab283c
Merge pull request #718 from PolymathNetwork/CLI-3.0.0-pendings
VictorVicente Jun 21, 2019
f002c80
CLI ST20 granularity support
VictorVicente Jul 1, 2019
496af61
Verify transfer on each TM
VictorVicente Jul 3, 2019
01101d0
Protocol upgrade fixes (#733)
maxsam4 Jul 3, 2019
da12720
TakeFee was removed.
Jul 3, 2019
5ab92eb
ISTR script (#731)
maxsam4 Jul 3, 2019
a0a64fd
Merge branch 'dev-3.0.0' into changelog-fix
maxsam4 Jul 4, 2019
486f75f
Merge pull request #738 from PolymathNetwork/changelog-fix
satyamakgec Jul 4, 2019
f4dcf4c
resolve conflicts
SatyamSB Jul 4, 2019
8c99899
minor fixes
SatyamSB Jul 4, 2019
c78e666
CLI Permission manager refactoring
VictorVicente Jul 4, 2019
783b84d
Merge branch 'dev-3.0.0' into CLI-updates
VictorVicente Jul 4, 2019
df24e42
Merge pull request #739 from PolymathNetwork/CLI-updates
VictorVicente Jul 4, 2019
c2e6434
Fixed CTM verifyTransfer bug (#736)
maxsam4 Jul 8, 2019
0fbc0e8
Move some variables / functions to internal (#737)
adamdossa Jul 11, 2019
f008e23
CLI Fix
VictorVicente Jul 11, 2019
fd2153d
Minor fix
VictorVicente Jul 16, 2019
d0c6c8a
CLI Wallet manager
VictorVicente Jul 16, 2019
ebee2f2
Added VEW to migrations
VictorVicente Jul 16, 2019
ccb0fd4
CLI VEW schedules in batches
VictorVicente Jul 17, 2019
f05f708
Styling
VictorVicente Jul 17, 2019
1044efb
Merge branch 'dev-3.0.0' into update-changelog-after-audit-fixes
adamdossa Jul 18, 2019
9fdf771
Added note for valid templates
VictorVicente Jul 22, 2019
ee205e1
Added wallet modules to ST manager
VictorVicente Jul 22, 2019
ad1ad40
Fixed bug at checking balance
VictorVicente Jul 22, 2019
b0fd931
fix: getTreasuryWallet function added to DividendCheckpoint.sol
onigiri-x Jul 22, 2019
6a232da
Merge pull request #762 from PolymathNetwork/changelog-gettreasurywallet
satyamakgec Jul 23, 2019
6634383
Minor fixes
VictorVicente Jul 24, 2019
3931086
Merge branch 'dev-3.0.0' into CLI-VEW
VictorVicente Jul 24, 2019
d1ecf23
Merge pull request #753 from PolymathNetwork/CLI-VEW
VictorVicente Jul 24, 2019
088ff82
Merge branch 'dev-3.0.0' into update-changelog-after-audit-fixes
satyamakgec Jul 25, 2019
274acd3
Merge pull request #723 from PolymathNetwork/update-changelog-after-a…
satyamakgec Jul 26, 2019
e093eba
Update with v3 contract addresses
pabloruiz55 Jul 29, 2019
0229363
Add files via upload
pabloruiz55 Jul 29, 2019
3ec26f4
Update README.md
pabloruiz55 Jul 29, 2019
9260231
Merging 3.0.0 changes and master
maxsam4 Jul 30, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 33 additions & 21 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2
jobs:
build:
docker:
- image: maxsam4/solidity-kit:0.4.24
- image: maxsam4/solidity-kit
steps:
- checkout
- restore_cache:
Expand All @@ -17,7 +17,7 @@ jobs:
- node_modules
test:
docker:
- image: maxsam4/solidity-kit:0.4.24
- image: maxsam4/solidity-kit
parallelism: 2
steps:
- checkout
Expand All @@ -37,54 +37,76 @@ jobs:
path: ./test-results/mocha/results.xml
coverage:
docker:
- image: maxsam4/solidity-kit:0.4.24
- image: maxsam4/solidity-kit
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- run: yarn install
- run: node --version
- run: truffle version
- run: node_modules/.bin/truffle version
- run:
command: scripts/coverage.sh
- run:
command: npm run coverage
no_output_timeout: 1h
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- node_modules
- store_artifacts:
path: ./coverage/lcov.info
deploy_kovan:
clash-check:
docker:
- image: maxsam4/solidity-kit:0.4.24
- image: maxsam4/solidity-kit
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- run: yarn install
- run: node --version
- run: truffle version
- run: mv truffle-ci.js truffle-config.js
- run: npm run deploy-kovan
- run: npm run clash-check
- run: npm run istr-check
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- node_modules
st-storage-layout-check:
docker:
- image: maxsam4/solidity-kit
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- run: yarn install
- run: node --version
- run: truffle version
- run: npm run st-storage-layout-check
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- node_modules
docs:
docker:
- image: maxsam4/solidity-kit:0.4.24
- image: maxsam4/solidity-kit
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- run: yarn install
- run: node --version
- run: truffle version
- run: npm run docs
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- node_modules
workflows:
version: 2
commit:
jobs:
- coverage
- clash-check
- st-storage-layout-check
daily-builds:
triggers:
- schedule:
Expand All @@ -105,13 +127,3 @@ workflows:
branches:
only:
- master
deploy:
jobs:
- deploy_kovan:
filters:
branches:
only:
- master
- dev-2.1.0
- dev-2.2.0
- dev-3.0.0
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ extract/
extract.py
extract.zip
/test-results
.env
4 changes: 2 additions & 2 deletions .solcover.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ module.exports = {
norpc: true,
port: 8545,
copyPackages: ['openzeppelin-solidity'],
testCommand: 'node ../node_modules/.bin/truffle test `find test/*.js ! -name a_poly_oracle.js -and ! -name s_v130_to_v140_upgrade.js -and ! -name q_usd_tiered_sto_sim.js -and ! -name z_general_permission_manager_fuzzer.js` --network coverage',
testCommand: 'node --max-old-space-size=3500 ../node_modules/.bin/truffle test `find test/*.js ! -name a_poly_oracle.js -and ! -name s_v130_to_v140_upgrade.js -and ! -name q_usd_tiered_sto_sim.js -and ! -name z_general_permission_manager_fuzzer.js` --network coverage',
deepSkip: true,
skipFiles: ['external', 'flat', 'helpers', 'mocks', 'oracles', 'libraries/KindMath.sol', 'libraries/BokkyPooBahsDateTimeLibrary.sol', 'storage', 'modules/Experimental'],
forceParse: ['mocks', 'oracles', 'modules/Experimental']
forceParse: ['mocks', 'oracles', 'helpers', 'modules/Experimental']
};
11 changes: 7 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ cache:
- node_modules
jobs:
include:
- stage: test
before_script: truffle version
script: travis_wait 120 sleep infinity & npm run test
- stage: Test
install:
- yarn install
before_script:
- truffle version
script: npm run test
notifications:
slack:
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=
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=
107 changes: 102 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,101 @@
# Changelog
All notable changes to this project will be documented in this file.

# v3.0.0 - Release Candidate

[__3.0.0__](https://www.npmjs.com/package/polymath-core?activeTab=readme) __10-11-18__

## SecurityToken
* Added new function `addModuleWithLabel()` which takes an extra param `_label` that used for giving the customize label to the module for display purpose. #428
* Changed the first three params in Security Token `event ModuleAdded()` to be indexed for search. Params are `unit8[] types`, `bytes32 _name` and `address _moduleFactory`
* Fixed `addModule` function to be backwards compatible and call the new `addModuleWithLabel` function with an empty label.
* Fixed event `ModuleAdded` to also emit `_label`.
* Fixed function `getModule` to also return the respective module label.
* Added datastore that is used to store data like investor list that is shared among modules.
* `getInvestorCount()` now returns length of investor array that is everyone who ever held some st or has kyc data attached.
* `holderCount()` returns the number of current st holders.
* Added flags for Investors. Accredited and canbuyfromsto are now flags.
* Add `_archived` flag in `addModule()` to allow issuers to add archived modules into the ST.
* Add `upgradeModule()` function to upgrade the already attached module. It can only be called by owner of the token.
* Add `upgradeToken()` function to upgrade the token to the latest version. Can only be executed by the owner of the token.
* Add `changeDataStore()` function to change the dataStore contract address attached with the ST.
* Issuer is allowed to change the name of the token using the `changeName()` function.
* Add `changeTreasuryWallet()` funtion to change the treasury wallet of the token.
* `transferWithData()` & `transferFromWithData()` function doesn't return the bool anymore.
* Introduced `balanceOfByPartition()` function to read the balance of the token holder according to the given partition.
* Add `transferByPartition()` function to transfer the tokens as per the given partition.
* Removed `verifyTransfer()` function.
* Add `authorizeOperator`, `revokeOperator`, `authorizeOperatorByPartition`, `revokeOperatorByPartition`, `operatorTransferByPartition` as the operator functions.
* Remove `freezeMinting()` and introduced `freezeIssuance()`.
* Rename the `mintWithData()` function to `issue()` function and `mintMulti()` to `issueMulti()`, remove `mint` function.
* Rename the `burnWithData()` function to `redeem()` function and `burnFromWithData()` to `redeemFrom()`, remove `burn` function.
* Add `redeemByPartition()` & `operatorRedeemByPartition()` function.
* Add `issueByPartition()` to issue the tokens as per given partition.
* `disableController()` now takes the sender signature to confirm the operation.
* Introduce `canTransfer()`, `canTransferFrom()` & `canTransferByPartition()` to validate the transfer before actually executing it.
* Add document specific functions `setDocument()`, `removeDocument()`.
* Rename `forceTransfer()` to `controllerTransfer()` similarly `forceBurn()` to `controllerRedeem()`.
* Add `isControllable()` to know whether the controller functions are allowed to execute or not.
* Add `isIssuable()`, `getInvestorsSubsetAt()`, `getTreasuryWallet()`, `isOperator()`, `isOperatorForPartition()`, `partitionsOf()`, `getDocument()`, `getAllDocument()` functions as getters to support ST functionality.
* Remove the `bool` return parameter from the `canTransfer` & `canTransferFrom` function.
* Rename `increaseApproval()` & `decreaseApproval()` to `increaseAllowance()` & `decreaseAllowance()` respectively.

## STR
* Introduce new contract `STRGetter.sol`. It only contains the getter functions of the STR.
* Replaced `updatePolyTokenAddress()` function with `updateFromRegistry()` in `SecurityTokenRegistry`.
* Migrate all the getters of `SecurityTokenRegistry.sol` to `STRGetter.sol` contract.
* Removed `_polyToken` parameter from `initialize` function in `SecurityTokenRegistry`.
* Allows an explicit token factory version to be used during creation of securityToken.
* Rename the `getProtocolVersion()` to `getLatestProtocolVersion()`.
* Add `generateNewSecurityToken()` function to generate the 3.0 tokens.
* Add `refreshSecurityToken()` function to update the 2.x tokens to 3.0 tokens.
* Add `changeFeesAmountAndCurrency()` function to sets the ticker registration and ST launch fee amount and currency.
* Rename `setProtocolVersion()` to `setProtocolFactory()`, Add `removeProtocolFactory()`.
* Add `getTokensByDelegate()`, `getSTFactoryAddressOfVersion()`, `getLatestProtocolVersion()`, `getIsFeeInPoly()` some getters.
* Add `RegisterTicker` event with two new parameters `_registrationFeePoly` & `_registrationFeeUsd`. (Note- there is 2 events with the same name to maintain the backwards compatibility).
* Add `NewSecurityToken` event with three new parameters `_usdFee`, `_polyFee` & `_protocolVersion`. (Note- there is 2 events with the same name to maintain the backwards compatibility).
* Add `registerNewTicker()` function to register the ticker for `3.0.0` release. NB- `registerTicker()` is also present in the code to maintain the backwards compatibility.
* Add `modifyExistingTicker()` to modify the ticker & `modifyExistingSecurityToken()` to modify the ST.
* Add `tickerAvailable()` to get the status of ticker availability.

## MR
* Add `_isUpgrade` param in function `useModule()`. NB - `useModule()` function exists with the same arguments to maintain the backwards compatibility.
* Add `isCompatibleModule()` to check whether the given module and ST is compatible or not.
* Remove `_isVerified` param from the `verifyModule()` function and introduced `unverifyModule()` function to unverify module.
* Removed `getReputationByFactory()`.
* `getFactoryDetails()` is now return one extra parameter i.e address of the factory owner.
* `getAllModulesByType()` add new function to return array that contains the list of addresses of module factory contracts.

## GeneralTransferManager
* `modifyWhitelist()` function renamed to `modifyKYCData()`.
* Added functions to modify and get flags
* `canBuyFromSto` is now `canNotBuyFromSto` and it is the flag `1`
* GTM logic reworked. Now, instead of flags like allowAllTransfers, there is a matrix of transfer requirements that must be fulfilled based on type of transfer.
* Remove `changeSigningAddress()`, `changeAllowAllTransfers()`, `changeAllowAllWhitelistTransfers()`, `changeAllowAllWhitelistIssuances()`, `changeAllowAllBurnTransfers`.
* Introduced `modifyTransferRequirements()` & `modifyTransferRequirementsMulti()` to modify the transfer requirements.
* Add `modifyInvestorFlag()` & `modifyInvestorFlagMulti()` function to modify the flag.
* `modifyWhitelistSigned()` rename to `modifyKYCDataSigned()`. Add `modifyKYCDataSignedMulti`.
* Add `getAllInvestorFlags()`, `getInvestorFlag()`,`getInvestorFlags()`, `getAllKYCData()`, `getKYCData()` & `getTokensByPartition()`.

## USDTiererdSTO
* Removed `changeAccredited()` function.
* `buyWithETH()`, `buyWithPOLY()`, `buyWithUSD()`, `buyWithETHRateLimited()`, `buyWithPOLYRateLimited()` & `buyWithUSDRateLimited()` will return spentUSD, spentValue & amount of mint tokens.
* Remove `buyTokensView()` function.
* Add `modifyOracle()` function allow issuer to add their personalize oracles.

## Modules
* Introduced BTM, LTM, Voting and VEW modules.
* Remove the `_usageCost` variable when deploying any module factory.
* Remove `takeUsageFee()` function from evey module.
* Remove `changeUsageCost()` & `usageCostInPoly()` from every module factory.
* Remove `takeFee()` function.
* `getTreasuryWallet()` function added to `DividendCheckpoint.sol`.

## Generalize
* Removed `_polyAddress` parameter from constructors of all modules and module factories.
* All modules are upgradeable now.
* Permission types are only `ADMIN` and `OPERATOR` now.

# v2.1.0 - Release Candidate

[__2.1.0__](https://www.npmjs.com/package/polymath-core?activeTab=readme) __13-09-18__
Expand Down Expand Up @@ -113,13 +208,15 @@ volume traded in a given rolling period.
* Add `getReputationOfFactory()` & `getModuleListOfType()` functions to get the array type data from the ModuleRegistry contract.
* Add `_setupCost` in `LogGenerateModuleFromFactory` event.
* Add new function `getAllModulesByName()`, To get the list of modules having the same name. #198.
* Add new function `modifyTickerDetails()`, To modify the details of undeployed ticker. #230
* Add new function `modifyTickerDetails()`, To modify the details of undeployed ticker. #230



## Fixed
* 0x0 and duplicate address in exclusions are no longer allowed in dividend modules.
* All permissions are denied if no permission manager is active.
* Generalize the STO varaible names and added them in `ISTO.sol` to use the common standard in all STOs.
* Generalize the event when any new token get registered with the polymath ecosystem. `LogNewSecurityToken` should emit _ticker, _name, _securityTokenAddress, _owner, _addedAt, _registrant respectively. #230
* Generalize the event when any new token get registered with the polymath ecosystem. `LogNewSecurityToken` should emit _ticker_, _name_, _securityTokenAddress_, _owner_, _addedAt_, _registrant_ respectively. #230
* 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.

## Removed
Expand Down Expand Up @@ -351,7 +448,7 @@ allowed)
* __buyTokensWithPoly__ has only one argument called `_investedPoly` only. Beneficiary Address should be its msg.sender.
* __getRaiseEther()__ function name changed to __getRaisedEther()__.
* __getRaisePoly()__ function name changed to __getRaisedPoly()__.
* `LogModuleAdded` emit one more variable called ___budget__.
* `LogModuleAdded` emit one more variable called __budget__.
* `modules` mapping in the securityToken contract now returns __the array of ModuleData__.

## Removed
Expand All @@ -363,7 +460,7 @@ allowed)

## Added
* ModuleRegistry contract will provide the list of modules by there types.
* `SecurityTokenRegistry` is now working on the basis of the proxy version of the securitytoken contract. For that SecurityTokenRegistry has one more variable in the constructor called _STVersionProxy .
* `SecurityTokenRegistry` is now working on the basis of the proxy version of the securitytoken contract. For that SecurityTokenRegistry has one more variable in the constructor called _STVersionProxy_ .
* `setProtocolVersion` new function added in the SecurityTokenRegistry to set the protocol version followed to generate the securityToken. Only be called by the `polymath admin`.
* `SecurityToken` now have the integration with polyToken. At the time of `addModule()` SecurityToken approve the cost of the module to moduleFactory as the spender.
* New function `withdrawPoly(uint256 _amount)` is added to withdrawal the unused POLY from the securityToken contract. Called only by the owner of the contract.
Expand All @@ -390,7 +487,7 @@ allowed)
* Deployment of the securityToken is now performed by the proxy contracts and call being generated form the SecurityTokenRegistry.
* `TickerRegistrar` renamed as `TickerRegistry`.
* TickerRegistry is now Ownable contract.
* `setTokenRegistrar` functio of TickerRegistry renamed to `setTokenRegistry`.
* `setTokenRegistrar` function of TickerRegistry renamed to `setTokenRegistry`.
* SecurityToken constructor has one change in the variable. i.e `_moduleRegistry` contract address is replaced by the `_owner` address.
* Their is no `_perm` parameter in the `addModule()` function of the securityToken contract. Now only 4 parameters left.
* Type of Mudules changed
Expand Down
Loading