Skip to content
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

Pioneer-related features #17

Open
wants to merge 61 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
76c2a2f
refactor. add pioneer-related features.
Roger-Wu Sep 2, 2018
1e26c66
remove legacy code.
Roger-Wu Sep 2, 2018
c5da7a4
rename some variables. fix some bugs.
Roger-Wu Sep 2, 2018
114e8ec
init pioneerTimeEnd in constructor.
Roger-Wu Sep 2, 2018
a9a30c1
rename uint to uint256
Roger-Wu Sep 2, 2018
a94c4fe
rename referral and referred to referSender and referReceiver.
Roger-Wu Sep 2, 2018
e36c78e
add more setters.
Roger-Wu Sep 2, 2018
621cbcd
test framework
Sep 2, 2018
18dd435
Merge branch 'pioneer' of https://github.com/Roger-Wu/self-token-crow…
Sep 2, 2018
4028810
Merge branch 'pioneer' of https://github.com/Roger-Wu/self-token-crow…
Sep 2, 2018
38acf4a
simplify the flow of updating token balances.
Roger-Wu Sep 2, 2018
a2a0dcb
init crowdsale contract
Sep 2, 2018
fdda0eb
Merge branch 'pioneer' of github.com:Roger-Wu/self-token-crowdsale in…
Roger-Wu Sep 2, 2018
759d9f2
add constraints for some setters. remove a dangerous setter.
Roger-Wu Sep 2, 2018
7984969
remove done TODOs.
Roger-Wu Sep 2, 2018
1019f9b
fix currentStage bug. re-arrange comments.
Roger-Wu Sep 2, 2018
c5de1a0
fix: division by zero error raised if _totalWeight == 0.
Roger-Wu Sep 2, 2018
83185e9
test ownership transfer
Sep 3, 2018
eb461a2
Merge branch 'pioneer' of https://github.com/Roger-Wu/self-token-crow…
Sep 3, 2018
631d94b
test ownership transfer, setter, and event emit
Sep 3, 2018
59382b7
basic withdraw test
Sep 3, 2018
465a89c
check msg.value > 0 when purchaseTokens. add function totalSupply() a…
Roger-Wu Sep 3, 2018
eb513a7
update comment.
Roger-Wu Sep 3, 2018
8c8f622
make variables public.
Roger-Wu Sep 3, 2018
b4aa4f0
add test helpers.
Roger-Wu Sep 3, 2018
2d1b663
add test scripts.
Roger-Wu Sep 3, 2018
6aa4c46
add and test Pausable
Sep 3, 2018
4943bc0
add external input check, event, and test withdraw
Sep 3, 2018
6deabe5
update piorner bonus test: begin state and buyer2 referral bonus
yhuag Sep 3, 2018
364a965
Merge branch 'pioneer' of https://github.com/Roger-Wu/self-token-crow…
yhuag Sep 3, 2018
ac9a323
test refund if exceed hardcap
Sep 3, 2018
a8cc41a
Merge branch 'pioneer' of https://github.com/Roger-Wu/self-token-crow…
Sep 3, 2018
d166567
update pioneer bonus test
yhuag Sep 3, 2018
60ec4ef
Merge branch 'pioneer' of https://github.com/Roger-Wu/self-token-crow…
yhuag Sep 3, 2018
560777f
update pioneer rule test
yhuag Sep 3, 2018
58bb62b
update purchase token test and fix bug of transaction fee ignorance
yhuag Sep 3, 2018
2eaa690
minor format
yhuag Sep 3, 2018
fd40097
add isPioneer check before cal, add end to end test
Sep 3, 2018
39ced98
Merge branch 'pioneer' of https://github.com/Roger-Wu/self-token-crow…
Sep 3, 2018
2efb517
finish test: buyer3 is not a pioneer but tries to refer buyer2
Sep 3, 2018
7aa89bf
end to end test add enter crowdsale next stage
Sep 3, 2018
4ab1e03
test reach hardcap and withdraw
Sep 3, 2018
71f8339
finish test pause
Sep 3, 2018
625700c
update ETE test
yhuag Sep 4, 2018
789c9ea
add readme
Sep 4, 2018
f828d31
update readme
Sep 4, 2018
5e29082
revert-invalid-referrer and reorganize purchaseToken
Sep 4, 2018
96854a2
fix referrer logic
Sep 4, 2018
298002b
fix test
Sep 4, 2018
421f43d
fix test pioneer bonus - anyone problem
yhuag Sep 4, 2018
759e836
fix end to end test
Sep 4, 2018
31b460c
Merge branch 'pioneer' of https://github.com/Roger-Wu/self-token-crow…
Sep 4, 2018
3b2c274
fix pioneer bonus back to past
yhuag Sep 4, 2018
1949c62
purchaser = msg sender
Sep 4, 2018
f959ad0
Merge branch 'pioneer' of https://github.com/Roger-Wu/self-token-crow…
Sep 4, 2018
be91a05
Apply whenNotPaused
yhuag Sep 4, 2018
07a6b18
ERROR
Sep 4, 2018
9bc605f
Merge branch 'pioneer' of https://github.com/Roger-Wu/self-token-crow…
Sep 4, 2018
2b8b556
fix event order
Sep 4, 2018
edddab6
remove todo
Sep 4, 2018
dccc53c
add pause by new owner test
Sep 4, 2018
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
7 changes: 7 additions & 0 deletions contract/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
1. `npm install`
2. Open private node for testing to provide enough balance to pay gas for each account
```
ganache-cli -p 7545 --account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501200,1000000000000000000000000"--account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501201,1000000000000000000000000" --account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501202,1000000000000000000000000" --account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501203,1000000000000000000000000" --account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501204,1000000000000000000000000" --account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501205,1000000000000000000000000" --account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501206,1000000000000000000000000" --account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501207,1000000000000000000000000" --account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501208,1000000000000000000000000" --account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501209,1000000000000000000000000"
```
3. `truffle compile`
4. `truffle test` to run all tests or `truffle test <specific_file_path>`
Loading