Commit Graph

2171 Commits

Author SHA1 Message Date
Michael Bradley, Jr 08fc21c890 gateway URLs: http -> https 2018-08-28 15:44:50 -05:00
Andre Medeiros 824353fb32 Lint 2018-08-28 13:51:55 -04:00
Andre Medeiros 543f883b7d Fix consolidation of coverage and compiler events; Cleanup 2018-08-28 13:39:18 -04:00
Andre Medeiros 4c127d1192 Events 2018-08-28 11:27:37 -04:00
Andre Medeiros 4e9d2823e5 Improvements 2018-08-28 11:27:37 -04:00
Andre Medeiros 5dcd679e12 Add for loops and variable declarations; Coverage improvements 2018-08-28 11:27:37 -04:00
Anthony Laibe fdd2d10d38 Add warning 2018-08-28 09:32:39 +01:00
Anthony Laibe 23f7ec396a Allow zero config in blockchain 2018-08-27 10:06:37 +01:00
Michael Bradley, Jr 8fa5bddde5 rev comment re: webpack-bundle-analyzer 2018-08-24 15:04:16 -05:00
Michael Bradley, Jr 6149921562 rev comments 2018-08-24 15:04:16 -05:00
Michael Bradley, Jr 65d2153638 prefer early return for config.stats tests 2018-08-24 15:04:16 -05:00
Michael Bradley, Jr 9e62d9c1a9 isDir test should support possible use of '\' by devs on Windows 2018-08-24 15:04:16 -05:00
Michael Bradley, Jr 8bec33177e rm some else clauses 2018-08-24 15:04:16 -05:00
Michael Bradley, Jr f4b11ce29f explanatory comment 2018-08-24 15:04:16 -05:00
Michael Bradley, Jr 382122c6d9 mapCb -> eachCb 2018-08-24 15:04:16 -05:00
Michael Bradley, Jr 04a5e3335d self.logger -> self.logger.error 2018-08-24 15:04:16 -05:00
Michael Bradley, Jr f66552b044 errorMessage helper moved to utils 2018-08-24 15:04:16 -05:00
Michael Bradley, Jr c8cd5f4229 consistent indentation 2018-08-24 15:04:16 -05:00
Michael Bradley, Jr 46c4aea520 rev comment re: NODE_PATH in webpack config 2018-08-24 15:04:16 -05:00
Michael Bradley, Jr cec7dc5750 DRY resolve 2018-08-24 15:04:16 -05:00
Michael Bradley, Jr 792a8f57eb consistent handling of error messages, no double reporting 2018-08-24 15:04:16 -05:00
Michael Bradley, Jr 421927d815 paths more DRY 2018-08-24 15:04:16 -05:00
Michael Bradley, Jr f1edc28f6d anchoredPath helper (more DRY) 2018-08-24 15:04:16 -05:00
Michael Bradley, Jr 67147f2cad make the linter happy 2018-08-24 15:04:16 -05:00
Michael Bradley, Jr 7fb9c552dc assetFileWrite no longer processes files corresponding to .js keys 2018-08-24 15:04:16 -05:00
Michael Bradley, Jr 0161a9b402 "writing file" messages for files that will be written by webpack 2018-08-24 15:04:16 -05:00
Michael Bradley, Jr e1fb746aa7 relocate webpack.config.js under lib/pipeline/ 2018-08-24 15:04:16 -05:00
Michael Bradley, Jr 53a4fd2089 rm redundant setup of env vars 2018-08-24 15:04:16 -05:00
Michael Bradley, Jr 76502fa693 rm utils.pwd() -- redundant now that fs.dappPath is anchored to env var 2018-08-24 15:04:16 -05:00
Michael Bradley, Jr f0f95554a5 prefer fs.dappPath 2018-08-24 15:04:16 -05:00
Michael Bradley, Jr 8be1090a44 prefer joinPath to +'ing strings together 2018-08-24 15:04:16 -05:00
Michael Bradley, Jr 40c14a08de whitespace 2018-08-24 15:04:16 -05:00
Michael Bradley, Jr 019f0b68c8 anchor fs.dappPath, fs.embarkPath to env vars setup in cmd.js 2018-08-24 15:04:16 -05:00
Michael Bradley, Jr b3c8e5fa45 missing spaces 2018-08-24 15:04:16 -05:00
Michael Bradley, Jr 3ad834d93d rev comment to reflect code changes 2018-08-24 15:04:15 -05:00
Michael Bradley, Jr 35f92f2ae8 more DRY re: config 2018-08-24 15:04:15 -05:00
Michael Bradley, Jr 04fcb1510a rev comment 2018-08-24 15:04:15 -05:00
Michael Bradley, Jr 1f56f717b8 'running webpack' message should indicate config name 2018-08-24 15:04:15 -05:00
Michael Bradley, Jr 7291fd1187 can use `this`, don't need `self` 2018-08-24 15:04:15 -05:00
Michael Bradley, Jr 963ecc0d92 formatting 2018-08-24 15:04:15 -05:00
Michael Bradley, Jr 878186660b change timing of "writing file" messages 2018-08-24 15:04:15 -05:00
Michael Bradley, Jr f654c0a013 single webpack run 2018-08-24 15:04:15 -05:00
Michael Bradley, Jr e9ec968598 whitespace 2018-08-24 15:04:15 -05:00
Michael Bradley, Jr 6282e092f1 note/question 2018-08-24 15:04:15 -05:00
Michael Bradley, Jr 2f2f007d5c use embark's webpack config, or a dapp's webpack config if it exists 2018-08-24 15:04:15 -05:00
Michael Bradley, Jr c60d26e258 make fs.embarkPath more flexible 2018-08-24 15:04:15 -05:00
Michael Bradley, Jr b41f5a397d --pipeline option for `ebmark build|run` to spec webpack config name 2018-08-24 15:04:15 -05:00
Iuri Matias f0a6b913c4
Merge pull request #747 from embark-framework/features/password-protected-keyfiles
Unlock account using keystore file with password
2018-08-24 16:01:55 -04:00
Iuri Matias a0d864b8ae
Merge pull request #746 from embark-framework/bug_fix/tests-ws-bug
Fix test_app with a WS node
2018-08-24 15:53:54 -04:00
Jonathan Rainville 9d4a3fd228 if there is a password field in privateKeyFile object, decode keystore 2018-08-24 15:30:44 -04:00
Jonathan Rainville 13e0d453ae fix websocket test, but still some hangs on second test run 2018-08-24 12:09:38 -04:00
Iuri Matias 864b41a2c2
Merge pull request #745 from embark-framework/deployIf
deployIf field + minor refactor
2018-08-24 10:33:58 -04:00
Iuri Matias 4305d63108 clarify param is not used 2018-08-24 10:31:40 -04:00
Iuri Matias eb57b358cd
Merge pull request #738 from embark-framework/bug_fix/double-embark
Enable multiple Embark runs at the same time
2018-08-24 10:09:45 -04:00
Iuri Matias 052ffb72f9
Merge pull request #744 from embark-framework/bugfix/buffer-contract
Isolate the code runner
2018-08-24 10:03:11 -04:00
Iuri Matias ffbd39882a remove isTest 2018-08-24 09:25:47 -04:00
Anthony Laibe de57e48cff Isolate the code runner 2018-08-24 14:05:19 +01:00
Iuri Matias c52142cb4c move always deploy on tests to deploy tracker 2018-08-24 08:59:56 -04:00
Iuri Matias 8f5b47adf4 add deployIf directive support 2018-08-23 18:00:52 -04:00
Michael Bradley, Jr 2280d30cd1 don't continue with template install if destination path exists 2018-08-23 15:43:42 -05:00
Iuri Matias a56431d19a refactor run actions for events to a reduce; add initial plug for shouldDeploy using deployIf 2018-08-23 16:25:28 -04:00
Michael Bradley, Jr 1a3e1a18df use console.warn and yellow text for locale fallback msg 2018-08-23 15:00:25 -05:00
Michael Bradley, Jr 72c1a9cd4c fix locale detection so it works w/ env var and/or --locale 2018-08-23 14:51:33 -05:00
Jonathan Rainville b9c65f2d58 use listen(0) to find a port 2018-08-23 15:11:43 -04:00
Iuri Matias 5fe86e35d1
Merge pull request #736 from embark-framework/features/test-node-option
Add --node option for tests
2018-08-23 15:07:10 -04:00
Iuri Matias 7da523b48c
Merge pull request #737 from embark-framework/i18n_updates
I18n updates
2018-08-23 15:05:26 -04:00
Iuri Matias d66dae15d9
Merge pull request #734 from embark-framework/bugfix/fix-livenet-naming
Mainnet is livenet
2018-08-23 15:01:39 -04:00
Iuri Matias 26cde59fcb
Merge pull request #732 from embark-framework/feature/hide-ens-transaction-log
Hide ENS Transaction log
2018-08-23 14:57:36 -04:00
Iuri Matias 7bd3202ad5
Merge pull request #731 from embark-framework/features/await-console
simple implementation of await in the console
2018-08-23 14:53:13 -04:00
Iuri Matias fc12a2996e
Merge pull request #730 from embark-framework/bug_fix/on-deploy-twice
remove double registerModule
2018-08-23 14:50:00 -04:00
Jonathan Rainville 7e59b6f0d0 increment port multiple times if multiple embarks 2018-08-23 14:28:44 -04:00
Iuri Matias 20cabeff84 update i18n 2018-08-23 14:16:31 -04:00
Jonathan Rainville a38c317ecd check port for webserver, if in use ++ port 2018-08-23 14:14:10 -04:00
Iuri Matias 4a5c53b43a update i18n 2018-08-23 13:53:18 -04:00
Jonathan Rainville c6abafff05 fix printing 2018-08-23 13:38:58 -04:00
Jonathan Rainville 36c6de4b99 add error message if no connection 2018-08-23 13:01:22 -04:00
Jonathan Rainville 86f1cf51d2 enable node=embark 2018-08-23 12:54:43 -04:00
Anthony Laibe a19fc16426 Mainnet is livenet 2018-08-23 11:06:47 +01:00
Anthony Laibe 39b9d6e1d8 PR feedback 2018-08-23 09:59:02 +01:00
Anthony Laibe 607c2657c4 Hide ENS Transaction log 2018-08-23 09:23:51 +01:00
Jonathan Rainville 3f561f5257 use node option for tests 2018-08-22 16:46:39 -04:00
Jonathan Rainville 326e12d23a fix one with variable 2018-08-22 14:23:23 -04:00
Jonathan Rainville a0b06c6197 make it work with variables too 2018-08-22 14:09:10 -04:00
Jonathan Rainville 8ebe55f457 simple implementation of await 2018-08-22 11:32:15 -04:00
Jonathan Rainville 128620e281 remove double registerModule 2018-08-22 10:56:09 -04:00
Anthony Laibe 60c6bc3e48 Lint 2018-08-22 10:58:01 +01:00
Anthony Laibe b0e0989359 Move ipns function to ipfs 2018-08-22 10:48:45 +01:00
Michael Bradley, Jr cc07f1d3d7 config should be stringified only once 2018-08-21 18:33:39 -05:00
Iuri Matias 8b97b4efb1 move back dev_funds file 2018-08-21 16:17:02 -04:00
Iuri Matias 792e7dff5b lint is king 2018-08-21 16:12:57 -04:00
Iuri Matias 9d72030cff remove empty liens 2018-08-21 16:11:07 -04:00
Iuri Matias a55ff613bf fix config 2018-08-21 16:11:07 -04:00
Anthony Laibe cc7dfbcc60 Remove ENS warning 2018-08-21 16:11:07 -04:00
Iuri Matias 6ae697f36a add solc options 2018-08-21 16:11:07 -04:00
hodlbank cc39931852 [m] Simplified networkId check for simulator. 2018-08-21 16:11:07 -04:00
Jonathan Rainville 824a234d76 enable register in privatenet and patch weird errors 2018-08-21 16:11:07 -04:00
Anthony Laibe ecf7bfad76 Do not exit 2018-08-21 16:11:07 -04:00
Anthony Laibe b3ed3d0379 Do not hang if process crash 2018-08-21 16:11:07 -04:00
hodlbank b9cd0cf74e [m] Setting up network id for simulator from blockchainConfig or options. 2018-08-21 16:11:07 -04:00
Jonathan Rainville 61d63e2f65 conflict in register 2018-08-21 16:11:07 -04:00
Jonathan Rainville d4abed24eb linting 2018-08-21 16:11:07 -04:00
Jonathan Rainville 5f3dd25e06 disable preregister in privatenet and fix conditions 2018-08-21 16:11:07 -04:00
Jonathan Rainville 6589101deb fix sed issue in windows 2018-08-21 16:11:07 -04:00
Anthony Laibe 95c23f64b3 Update name 2018-08-21 16:11:06 -04:00
Jonathan Rainville 2fe1b05492 use embarkJS secureSend 2018-08-21 16:11:06 -04:00
Jonathan Rainville c211430fbd use secureSend for deploy 2018-08-21 16:11:06 -04:00
Jonathan Rainville d6b814dc3e add secureSend to get estimate gas and interval the transactions 2018-08-21 16:11:06 -04:00
Jonathan Rainville 083c936351 create separate function for secure send 2018-08-21 16:10:22 -04:00
Anthony Laibe a7b0cea09b Console via IPC do not run on deploy 2018-08-21 16:10:22 -04:00
Anthony Laibe a59cc29d39 IPC works with errors, console print errors 2018-08-21 16:10:22 -04:00
Anthony Laibe dd8658a59a Reload config when a file is added/removed 2018-08-21 16:10:22 -04:00
Iuri Matias f90132af1e remove line causing crash 2018-08-21 16:10:22 -04:00
Iuri Matias 6cf6bcfff5 add spanish locale 2018-08-21 16:10:22 -04:00
Jonathan Rainville 8f3a42b926 catch $accounts in contract config 2018-08-21 16:09:49 -04:00
Jonathan Rainville 0b171401c6 log vyper errors 2018-08-21 16:09:49 -04:00
Anthony Laibe 926ed7c258 Fix transaction logger 2018-08-21 16:09:49 -04:00
Michael Bradley, Jr eb874f32ac corejs2 per @babel/plugin-transform-runtime@7.0.0-rc.1 2018-08-21 16:09:49 -04:00
Michael Bradley, Jr 4821997866 resolve ganache-cli bin using pkg-up 2018-08-21 16:09:48 -04:00
Michael Bradley, Jr f28c86666d when installing template mv dot.gitignore -> .gitignore if it exists 2018-08-21 16:09:48 -04:00
Iuri Matias 53cd27b87d move subscriptions listener to blockchain connector module 2018-08-21 16:09:48 -04:00
Andre Medeiros 8fe69c59dc More feedback 2018-08-21 16:09:48 -04:00
Anthony Laibe 774a14c850 Support old and new console plugin with a warning 2018-08-21 16:09:48 -04:00
Andre Medeiros f2939ae91b Address feedback 2018-08-21 16:09:48 -04:00
Anthony Laibe 0b183c0280 Make webserver start/stop use callback 2018-08-21 16:09:48 -04:00
Anthony Laibe 0924f2dfd0 Apply feedback 2018-08-21 16:09:48 -04:00
Anthony Laibe 27933774a9 Console command connect to ipc 2018-08-21 16:09:48 -04:00
Andre Medeiros 951e31ae6d Linting things 2018-08-21 16:09:13 -04:00
Andre Medeiros 19c81e187b Cleaning touches 2018-08-21 16:09:13 -04:00
Andre Medeiros 676f15fb49 Progress 2018-08-21 16:09:13 -04:00
Andre Medeiros 8e396a17d8 Progress 2018-08-21 16:09:13 -04:00
Andre Medeiros 253d3dd57c wip 2018-08-21 16:09:13 -04:00
Andre Medeiros c1e70a4185 Add coverage code 2018-08-21 16:09:13 -04:00
Jonathan Rainville d88d172c76 remove dependencyCount 2018-08-21 16:09:13 -04:00
Jonathan Rainville 3a621f3efd use async auto to deploy parallely 2018-08-21 16:09:13 -04:00
Anthony Laibe f0f9840757 Fix fuzzer while profiling 2018-08-21 16:09:13 -04:00
Iuri Matias 368b01d128 update tests 2018-08-21 16:09:13 -04:00
Iuri Matias 9edff5752e move cmd controller to cmd-ui 2018-08-21 16:09:13 -04:00
Jonathan Rainville c225d97e4b fix reload file removing plugins 2018-08-21 16:07:59 -04:00
Iuri Matias d0ad16004b move cmd to cmd folder 2018-08-21 16:07:59 -04:00
Iuri Matias 0027d641eb remove unneded space 2018-08-21 16:07:59 -04:00
Iuri Matias 9f529c7668 move template generator 2018-08-21 16:07:59 -04:00
Iuri Matias 58ba4bde48 move simulator & proxy to blockchain process module 2018-08-21 16:07:58 -04:00
Iuri Matias dfbff4466f rename module 2018-08-21 16:07:58 -04:00
Iuri Matias 53d944e801 move contracts manager to its own module 2018-08-21 16:07:58 -04:00
Jonathan Rainville 16aae66756 hide assuming when silent 2018-08-21 16:07:58 -04:00
Jonathan Rainville 5125cb06f7 hide contracts from dashboard when silent 2018-08-21 16:07:58 -04:00
Jonathan Rainville ea0d846012 hide logs for on Deploy if silent 2018-08-21 16:07:58 -04:00
Jonathan Rainville 2edd45ef55 set log function as trace if silent for contract deployer 2018-08-21 16:07:58 -04:00
Jonathan Rainville e5c498b59d hotfix network id comparison string vs number 2018-08-21 16:07:58 -04:00
Anthony Laibe 326a730969 Fix connection to IPC
- Make sure the folder .embark exist otherwise the first time there is a
run, the connection abort
- Fix the number of args in the callback function
2018-08-21 16:07:58 -04:00
Iuri Matias 016f45175b remove unsused require 2018-08-21 16:07:58 -04:00
hodlbank 9542448798 [m] Parsing simulatorAccounts using AccountParser . 2018-08-21 16:07:58 -04:00
Jonathan Rainville 5b5628d75c only set provider if provider is ENS 2018-08-21 16:07:58 -04:00
Jonathan Rainville a1e2fc057d remove provider!==ens 2018-08-21 16:07:58 -04:00
Iuri Matias 95c945c238 refactor test deployment to not use engine directly 2018-08-21 16:05:59 -04:00
Iuri Matias 600d686342 requests instead of contract object directly 2018-08-21 16:05:59 -04:00
Jonathan Rainville b9363c54fa only set provider if provider is ENS 2018-08-21 16:05:59 -04:00
hodlbank a3c86189fd Applying simulatorAccounts configuration for "embark simulator". 2018-08-21 16:05:59 -04:00
hodlbank f84cef0932 Allow user to specify "random" as privateKey configuration. In such case embark generates some random privateKey for the account. 2018-08-21 16:05:59 -04:00
hodlbank c782f9b0a8 Enabling contract:deploy:beforeDeploy plugins to access deploymentAccount value by adding it into the contract object. 2018-08-21 16:05:59 -04:00
Jonathan Rainville 7eda40742d remove provider!==ens 2018-08-21 16:05:59 -04:00
Jonathan Rainville 73c2ee887d disable ens if it is not enabled 2018-08-21 16:05:59 -04:00
Jonathan Rainville d5d4b31479 remove extra space 2018-08-21 16:05:59 -04:00
Jonathan Rainville 25ffd15984 fix stuff and move functions to utils 2018-08-21 16:05:59 -04:00
Jonathan Rainville 609c050576 change to command 2018-08-21 16:05:59 -04:00
Jonathan Rainville 42f46e427f remove duplicated register 2018-08-21 16:05:59 -04:00
Jonathan Rainville 363608287f fixes and linting 2018-08-21 16:05:59 -04:00
Jonathan Rainville ca32d7aac0 warn if mismatch on network id 2018-08-21 16:05:59 -04:00
Anthony Laibe 5f77d5e5f0 Fix require fs for reset 2018-08-21 16:05:59 -04:00
Anthony Laibe 71c5b75198 Reset service local 2018-08-21 16:05:59 -04:00
Anthony Laibe 24aecc553b Reset account 2018-08-21 16:05:59 -04:00
Anthony Laibe d385398fb3 Make sure config is called at least once 2018-08-21 16:05:59 -04:00
Anthony Laibe 9ed162bc26 Change connection 2018-08-21 16:05:59 -04:00
Michael Bradley, Jr d0555fe23c win compat 2018-08-21 16:05:58 -04:00
Michael Bradley, Jr 314edadb57 Revert "Merge pull request #663 from embark-framework/revert-656-bug_fix/dot.embark_versions_modules"
This reverts commit 7859c384ca, reversing
changes made to a58f21c303.
2018-08-21 16:05:58 -04:00
Jonathan Rainville 5179eea56f revert trace 2018-08-21 16:05:58 -04:00
Jonathan Rainville ef9fbb5b6e remove comment 2018-08-21 16:05:58 -04:00
Jonathan Rainville 0204eb6d46 swarm adjustements 2018-08-21 16:05:58 -04:00
Iuri Matias 52462dbd3c fix line 2018-08-21 16:05:58 -04:00
Iuri Matias 358c9b2531 add find contract 2018-08-21 16:05:58 -04:00
Iuri Matias 77dd5b4944 remove engine dependency; use api 2018-08-21 16:05:58 -04:00
Iuri Matias 3a15804fda remove engine param 2018-08-21 16:05:58 -04:00
Jonathan Rainville ac91ffb967 fix using promise 2018-08-21 16:05:58 -04:00
Jonathan Rainville 212eb79754 fix small oopsies and make it work 2018-08-21 16:05:58 -04:00
Jonathan Rainville dd510ff6a1 add associate event in ens (not yet tested) 2018-08-21 16:05:58 -04:00
Jonathan Rainville 672393a877 conflict in embark js 2018-08-21 16:05:58 -04:00
Iuri Matias 63b01a32d4 Revert ".embark/versions modules" 2018-08-21 16:05:58 -04:00
Anthony Laibe b548f9efae PR feedback 2018-08-21 16:05:39 -04:00
Iuri Matias e19fca7d6f remove console log 2018-08-21 16:05:39 -04:00
Anthony Laibe 65edc47187 Adding default callback 2018-08-21 16:05:39 -04:00
Anthony Laibe d6849bf04f Add IPNS demo 2018-08-21 16:05:39 -04:00
Anthony Laibe 508b37163e Simply use promise 2018-08-21 16:04:22 -04:00
Anthony Laibe 2f8ca177e9 Make __embarkIPFS global 2018-08-21 16:04:22 -04:00
Anthony Laibe 4c4501a069 Use promise on ipns namesystem 2018-08-21 16:04:22 -04:00
Anthony Laibe 7194b045e6 Adding ipns 2018-08-21 16:04:22 -04:00
Anthony Laibe 174412bee1 Adding register 2018-08-21 16:04:22 -04:00
Anthony Laibe 1427b4596d Add ipns resolve 2018-08-21 16:04:22 -04:00
Anthony Laibe 2e9fa345be Do not connect to the node until it is needed in test 2018-08-21 16:04:22 -04:00
Michael Bradley, Jr 7cffe94059 revs re: .embark/versions 2018-08-21 16:04:22 -04:00
Iuri Matias 29b0d01f22 move processes into core 2018-08-21 16:04:22 -04:00