-
Notifications
You must be signed in to change notification settings - Fork 18
PR for external review #1
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
base: for-anypay-review
Are you sure you want to change the base?
Changes from all commits
c19804b
040f4d1
9be9af9
4094d61
9f25011
f9036d8
d6fcb10
9d56d90
88d29bc
658bab5
8e08749
15bf003
c975ac0
a2f6641
7b23d7a
89b3a6e
9ee06cb
807f5bb
6e61d6b
0d24b12
edc92d5
a220b11
134ea96
84fd057
b0c8a8f
5d85fd0
a212b6e
a8339b3
3417d40
b257f2c
c1e4938
ea0d10c
f9846e8
e230f7d
2a15fc1
59b4619
7f03f69
5b68086
95105bf
578d749
28cf24a
3b6e7ad
e3a52dc
dd5631a
449b4db
7dd1317
479a95e
300496f
90e36a0
1c23a57
4b33d1e
bc0b52c
6d81ca6
2983adb
8bc5afd
2d5ea8f
e29aa4d
f5c9bc5
923c748
53e2dab
f55dc18
4aa032a
c444344
61358f7
2a33e81
c0d379e
b01d5d4
6d8073b
5274b0c
d040100
acb9ae1
9f24f90
85a3a9e
7307c66
3722e5d
c93bf71
d7ed2c2
e1c4ffe
ca176b1
5f42c62
7cf4b00
8fecbd3
67d0de0
b3f870b
1fd76b9
0aa0640
6a6b394
4ab1cba
753fc49
2e04a65
04a4a23
679af20
218d8d6
c00f5e8
a18ab15
f0a0096
9de7e58
1ed2af0
215cfb1
3a4d6ab
8d7d569
b989f6a
4c87b9f
b426815
17c4e91
aaa4254
a225e06
d90cc99
40163ff
4c40237
60fda27
bc87dbf
0520cad
84f8ceb
c4dc9f6
ad5111d
f49557c
2eb8e04
bc71dd9
d6189ae
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| node_modules | ||
| .DS_Store | ||
| .vscode | ||
| compensation.csv | ||
| compensation.json | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| node_modules |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| { | ||
| "extends": "solium:all", | ||
| "plugins": [ | ||
| "security" | ||
| ], | ||
| "rules": { | ||
| "quotes": [ | ||
| "error", | ||
| "double" | ||
| ], | ||
| "indentation": [ | ||
| "error", | ||
| 2 | ||
| ], | ||
| "arg-overflow": [ | ||
| "warning", | ||
| 3 | ||
| ], | ||
| "security/no-block-members": [ | ||
| "warning" | ||
| ] | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| .DEFAULT_GOAL := all | ||
|
|
||
| CONTRACTS=BRDCrowdsaleAuthorizer BRDLockup BRDToken BRDCrowdsale | ||
| JSONS=build/%.json | ||
| SOLCOPTS=--combined-json abi,asm,ast,bin,bin-runtime,clone-bin,compact-format,devdoc,hashes,interface,metadata,opcodes,srcmap,srcmap-runtime,userdoc --pretty-json --optimize-runs 200 | ||
|
|
||
| build/flattened/%.sol: | ||
| truffle-flattener contracts/$*.sol > $@ | ||
|
|
||
| build/%.json: build/flattened/%.sol | ||
| solc $(SOLCOPTS) $^ > $@ | ||
|
|
||
| clean: | ||
| -rm build/*.json | ||
| -rm build/flattened/*.sol | ||
|
|
||
| all: $(patsubst %,$(JSONS), $(CONTRACTS)) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| # smart-contracts | ||
|
|
||
| This is the repository for the Bread Token (BRD) Crowdsale and ERC20 smart contracts. | ||
|
|
||
| ### Getting started | ||
|
|
||
| We use Truffle and OpenZeppelin for development. The main smart contracts (BRDToken and | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please create npm init .
npm install --save zeppelin-solidityafter execute it, commit
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
| BRDCrowdsale) are based on OpenZeppelin's MintableToken and Crowdsale base contracts. | ||
|
|
||
| For development, we use ganache-cli using the default settings. | ||
|
|
||
| To test, start ganache-cli and run `truffle test` | ||
Large diffs are not rendered by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why you didn't add
/builddirectory here?I think should not commit any artifacts compiled from source code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am including build so dependent repositories can use the generated code without requiring the whole solidity/truffle/npm toolchain. They can consume the JSON files directly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good idea for include JSON file. but how about "flatten" code? it makes difficult to review code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that's true, I can remove those. The reason they are included is they are necessary to verify the individual contracts on etherscan