-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1128 from poanetwork/issue#1124
(Feature) automatically define compiler optimization flag from related sumodule
- Loading branch information
Showing
14 changed files
with
215 additions
and
18 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 |
---|---|---|
|
@@ -26,5 +26,3 @@ debug.log* | |
|
||
.idea | ||
travis.sh | ||
public/contracts/DutchProxy* | ||
public/contracts/MintedCappedProxy* |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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,2 @@ | ||
* | ||
!.gitignore |
Empty file.
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,2 @@ | ||
* | ||
!.gitignore |
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,52 @@ | ||
const fs = require('fs') | ||
|
||
const directory = process.argv.slice(2)[0] | ||
|
||
const copyFile = (source, target, cb) => { | ||
let cbCalled = false | ||
|
||
let rd = fs.createReadStream(source) | ||
rd.on('error', function(err) { | ||
done(err) | ||
}) | ||
let wr = fs.createWriteStream(target) | ||
wr.on('error', err => { | ||
done(err) | ||
}) | ||
wr.on('close', ex => { | ||
done() | ||
}) | ||
rd.pipe(wr) | ||
|
||
function done(err) { | ||
if (!cbCalled) { | ||
cb(err) | ||
cbCalled = true | ||
} | ||
} | ||
} | ||
|
||
const copyStrategy = strategy => { | ||
try { | ||
const strategiesAllowed = ['Dutch', 'MintedCapped'] | ||
if (!strategiesAllowed.includes(strategy)) { | ||
throw new Error('Strategy doesnt exist') | ||
} | ||
const originPath = `${__dirname}/../submodules/auth-os-applications/TokenWizard/crowdsale/${strategy}Crowdsale/truffle.js` | ||
const destinyPath = `${__dirname}/../${directory}/metadata/${strategy}CrowdsaleTruffle.js` | ||
|
||
copyFile(originPath, destinyPath, err => { | ||
if (err) { | ||
console.log(`Error moving files`, err) | ||
} | ||
}) | ||
} catch (e) { | ||
console.log(e) | ||
} | ||
} | ||
|
||
const strategiesToMove = ['Dutch', 'MintedCapped'] | ||
|
||
for (let strategy of strategiesToMove) { | ||
copyStrategy(strategy) | ||
} |
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
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
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
Submodule solidity-flattener
updated
29 files
+35 −0 | .eslintrc.json | |
+3 −2 | .gitignore | |
+9 −0 | .travis.yml | |
+7 −3 | README.md | |
+3 −3 | demo/src/KeysManager.sol | |
+1 −1 | demo/src/ValidatorsManager.sol | |
+30 −12 | helpers/change-relative-path-to-absolute.js | |
+24 −0 | helpers/clean-path.js | |
+27 −0 | helpers/constants.js | |
+52 −53 | helpers/find-all-import-paths.js | |
+83 −74 | helpers/find-file.js | |
+4 −0 | helpers/logger.js | |
+18 −14 | helpers/remove-doubled-solidity-version.js | |
+0 −6 | helpers/remove-tabs.js | |
+70 −78 | helpers/replace-all-imports-in-current-layer.js | |
+20 −13 | helpers/replace-all-imports-recursively.js | |
+0 −33 | helpers/replace-relative-import-paths.js | |
+6 −6 | helpers/update-import-object-location-in-target.js | |
+28 −22 | helpers/variables.js | |
+32 −25 | index.js | |
+1,732 −15 | package-lock.json | |
+14 −4 | package.json | |
+6 −0 | test/contracts/dep.sol | |
+6 −0 | test/contracts/dep2.sol | |
+12 −0 | test/contracts/test.sol | |
+12 −0 | test/contracts/testMock1.sol | |
+16 −0 | test/helpers/change-relative-path-to-absolute.js | |
+28 −0 | test/helpers/clean-path.js | |
+4 −0 | test/index.js |
Submodule token-wizard-test-automation
updated
18 files
+27 −8 | entity/User.js | |
+500 −499 | package-lock.json | |
+2 −2 | package.json | |
+5 −3 | pages/ContributionPage.js | |
+9 −1 | pages/CrowdsalePage.js | |
+1 −1 | pages/Page.js | |
+6 −0 | pages/WizardStep1.js | |
+23 −0 | scenarios/scenarioDutchSimple.json | |
+25 −0 | scenarios/scenarioMintedSimple.json | |
+1 −1 | test/e2eDutch.js | |
+4 −1 | test/e2eDutchMincap.js | |
+460 −453 | test/e2eDutchUI.js | |
+4 −1 | test/e2eDutchWhitelist.js | |
+4 −1 | test/e2eMintedMincap.js | |
+510 −530 | test/e2eMintedUI.js | |
+4 −4 | test/e2eMintedWhitelist.js | |
+1 −1 | utils/Utils.js | |
+6 −1 | utils/constants.js |