Commit Graph

1982 Commits

Author SHA1 Message Date
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
Iuri Matias 46f5760c18 move intercept logs to utils 2018-08-21 16:04:22 -04:00
Iuri Matias 4919114f36 move blockchain connection code to its own module 2018-08-21 16:04:22 -04:00
Iuri Matias 567b0c75b8 get blockchain object from event bus 2018-08-21 16:04:22 -04:00
Iuri Matias 62fad583da don't pass web3 object to whisper module since it uses its own 2018-08-21 16:04:22 -04:00
Iuri Matias 9526e61652 rename blockchain connector 2018-08-21 16:04:22 -04:00
Iuri Matias 93a9a3065f clean up 2018-08-21 16:04:22 -04:00
Iuri Matias 0c9dc48362 move code generator to a module 2018-08-21 16:04:22 -04:00
Iuri Matias b0a71a86d4 move accountParser to utils 2018-08-21 16:04:22 -04:00
Iuri Matias 40e58dbcf2 move deployment to a module 2018-08-21 16:03:35 -04:00
Iuri Matias f9321776b1 move deployment to module 2018-08-21 16:03:35 -04:00
Iuri Matias 4ecb44e1c9 prepare to make it a module 2018-08-21 16:03:35 -04:00
Iuri Matias be3a79ce39 move contract deployer to deploy manager 2018-08-21 16:03:35 -04:00
Iuri Matias 499a3b5609 set gas limit through event 2018-08-21 16:03:35 -04:00
Iuri Matias 89a0729002 simplify: mv reset code into index 2018-08-21 16:03:35 -04:00
Iuri Matias 7fcc504873 fix requires 2018-08-21 16:03:35 -04:00
Iuri Matias 540afedbaf fix library manager init 2018-08-21 16:03:35 -04:00
Iuri Matias 2baaba07e6 move the versions manager to its own module 2018-08-21 16:03:35 -04:00
Iuri Matias 8a5ccac1ee fix requires 2018-08-21 16:03:35 -04:00
Iuri Matias 61a8878e33 move i18n to core 2018-08-21 16:03:35 -04:00
Iuri Matias 3e6210c6d1 add missing import 2018-08-21 16:03:35 -04:00
Iuri Matias 53aa433a5a add missing services start so console works with refactor changes 2018-08-21 16:03:35 -04:00
Iuri Matias 3465ab7265 add missing utils 2018-08-21 16:03:35 -04:00
Iuri Matias a79404547f re-add events 2018-08-21 16:03:35 -04:00
Iuri Matias 2f2b61da51 cleanup 2018-08-21 16:03:35 -04:00
Iuri Matias 5175b5710a update to fix tests 2018-08-21 16:02:18 -04:00
Iuri Matias 5bf89b0fea move copmiler to a module 2018-08-21 16:02:18 -04:00
Iuri Matias 9707b0076d move graph into a module 2018-08-21 16:02:18 -04:00
Iuri Matias 75de982772 move code runner to core modules 2018-08-21 16:02:18 -04:00
Iuri Matias dc86cbaccb move proxy out of core 2018-08-21 16:02:18 -04:00
Iuri Matias 1b90640b10 rename process manager 2018-08-21 16:02:18 -04:00
Iuri Matias d7340b4f5a move storage processes to their own modules 2018-08-21 16:02:18 -04:00
Iuri Matias a1fa4ed30d move storageUtils 2018-08-21 16:02:18 -04:00
Iuri Matias 2ed7238190 move process files into processes folder 2018-08-21 16:02:18 -04:00
Iuri Matias c32de30ca3 fix checking node connection 2018-08-21 16:02:18 -04:00
Iuri Matias d7c67ffcf7 move blockchain process related files into blockchain module 2018-08-21 16:02:18 -04:00
Iuri Matias 952694f790 remove debug 2018-08-21 16:01:14 -04:00
Iuri Matias 2ea982d0e5 move blockchain process to own module 2018-08-21 16:01:14 -04:00
Iuri Matias 3584a20fd7 first stab at refactor blockchain launcher 2018-08-21 15:59:46 -04:00
Anthony Laibe df8ca76e28 Fix scope of the callback 2018-08-21 15:54:45 -04:00
Michael Bradley, Jr 0307ba7ead blockchain -- defaultHost, dockerHostSwap 2018-08-21 15:53:39 -04:00
Jonathan Rainville 40c363a310 only enabble register in dev 2018-08-21 15:53:39 -04:00
Jonathan Rainville c3ea2ff160 only preregister in dev 2018-08-21 15:53:21 -04:00
Jonathan Rainville bb9f058b15 small cleanups 2018-08-21 15:53:20 -04:00
Jonathan Rainville 24fe768e70 pre-dploy using the same function as register 2018-08-21 15:53:02 -04:00
Jonathan Rainville eee2f66a22 if no register config, dont register anything 2018-08-21 15:52:50 -04:00
Jonathan Rainville 79c542162c put register function in another module that can be used by embark and embark js 2018-08-21 15:52:36 -04:00
Jonathan Rainville 4f2d984081 fix using only_owner 2018-08-21 15:52:24 -04:00
Jonathan Rainville 297128290a fix lookup and also enable lookup for new subdomains 2018-08-21 15:52:05 -04:00
Jonathan Rainville 8102a13f58 fix only_owner to work when called by FIFSRegistrar 2018-08-21 15:51:38 -04:00
Jonathan Rainville 67da4e6a84 add function to register the domains from config 2018-08-21 15:51:38 -04:00
Jonathan Rainville 1c881274b1 add new blockchain event 2018-08-21 15:51:38 -04:00
Jonathan Rainville 1b55af3cb7 conflict in embark js 2018-08-21 15:51:38 -04:00
Jonathan Rainville 2d0f34f215 add resolver contract 2018-08-21 15:48:33 -04:00
Jonathan Rainville 7d52c29f96 very wip working register 2018-08-21 15:47:56 -04:00
Anthony Laibe 36ae882a26 Add dedicated writer for string result 2018-08-21 15:47:05 -04:00
Anthony Laibe d5911cb3b7 Use console and override evaluator 2018-08-21 15:47:05 -04:00
Michael Bradley, Jr b0638d6585 more conservative: only modify webpack's subclass of ProcessWrapper 2018-08-21 15:47:05 -04:00
Michael Bradley, Jr 250d80e0ff env options property doesn't need to be passed to ProcessLauncher 2018-08-21 15:47:05 -04:00
Michael Bradley, Jr ed5f18e579 simplify ternary re: `__mainContext` and `this` 2018-08-21 15:47:05 -04:00
Michael Bradley, Jr d3ffa90cb5 rm disabled lines 2018-08-21 15:47:05 -04:00
Michael Bradley, Jr 971ca8d3ae webpack mode should be 'none' unless embark's mode is 'production' 2018-08-21 15:47:05 -04:00
Michael Bradley, Jr 52ef230d47 comment re: use of webpack-bundle-analyzer to visualize stats.json 2018-08-21 15:47:05 -04:00
Michael Bradley, Jr a7205e47e6 disable stats gen (should be activated via cfg file and/or cli opts) 2018-08-21 15:47:05 -04:00
Michael Bradley, Jr 75d0258dae rm disabled line 2018-08-21 15:47:05 -04:00
Michael Bradley, Jr 5f0ee8d9e4 mainContext -- fallback to `this`, then `self`, then `undefined` 2018-08-21 15:47:05 -04:00
Michael Bradley, Jr ece251a5bf rev wp config comments 2018-08-21 15:47:05 -04:00
Michael Bradley, Jr e05918d84f stats.report/json is being written to .embark/ not dist/ 2018-08-21 15:47:05 -04:00
Michael Bradley, Jr c713c11790 disabled code + comment re: enabling source maps 2018-08-21 15:47:05 -04:00
Michael Bradley, Jr 7a1e46d3a7 make the linter happy 2018-08-21 15:47:05 -04:00
Michael Bradley, Jr e98bd27a42 rev webpack config w.r.t. webpack 4, babel 7 2018-08-21 15:47:05 -04:00
Michael Bradley, Jr c6e0623f50 write stats report,json into .embark 2018-08-21 15:47:05 -04:00
Michael Bradley, Jr fd2056da8e rm code that doesn't seem to be doing anything (after much investigation) 2018-08-21 15:47:05 -04:00
Michael Bradley, Jr d4c9321c63 rm unnecessary requires 2018-08-21 15:47:05 -04:00
Michael Bradley, Jr bb443b3882 rev HardSource 2018-08-21 15:47:05 -04:00
Michael Bradley, Jr 25be46af2c propagate env 2018-08-21 15:47:05 -04:00
Michael Bradley, Jr 4baea520d8 don't blow away the global web3 2018-08-21 15:47:05 -04:00
Michael Bradley, Jr 4472077e08 check for self 2018-08-21 15:47:05 -04:00
Michael Bradley, Jr 25b5b9a801 window -> global; reorg statements 2018-08-21 15:47:05 -04:00
Michael Bradley, Jr a3492f8dc8 babel configured to extend dapp's .babelrc 2018-08-21 15:47:05 -04:00
Michael Bradley, Jr dab0b04b0a require embark_node file -> require 'embarkjs' pkg 2018-08-21 15:47:05 -04:00
Michael Bradley, Jr dcf9b4a645 make Web3 (note capital 'w') globally accessible 2018-08-21 15:47:05 -04:00
Michael Bradley, Jr 0c4438941d import EmbarkJS from npm pkg, re-export, make it globally accessible 2018-08-21 15:47:05 -04:00
Anthony Laibe 1d71c7fbce Display info about gas when deploying contract 2018-08-21 15:47:05 -04:00
Anthony Laibe 2f6e96db86 Adding profile command 2018-08-21 15:47:05 -04:00
Anthony Laibe 7a34b9d675 Fix profile command
In case the contract don't exist or the profile
command don't have argument, embark don't crash
and return an error
2018-08-21 15:47:05 -04:00
Anthony Laibe a04f26dc3d fix eslint 2018-08-21 15:47:05 -04:00
Anthony Laibe b8ef9ee148 Add watcher to console command 2018-08-21 15:47:05 -04:00
Anthony Laibe b679d3031a Remove code dependencies to underscore 2018-08-21 15:47:05 -04:00
Anthony Laibe 9c5cb35d3b Use global in repl 2018-08-21 15:46:14 -04:00