Commit Graph

822 Commits

Author SHA1 Message Date
Iuri Matias 5c0c7b45a5 remove old code 2018-01-19 13:59:39 -05:00
Iuri Matias 5300aa479b better gas estimation 2018-01-19 13:57:35 -05:00
Iuri Matias a6013b518c remove extra comment 2018-01-19 11:18:31 -05:00
Iuri Matias 992b8c19e7 fix callback name 2018-01-18 14:46:53 -05:00
Iuri Matias 70f72f494d refactor deployContract method 2018-01-18 14:41:33 -05:00
hodlbank 2a88bb8cde [*] Fixed eslint warnings.
[+] Added proper asyncCallback for async.waterfall().
2018-01-17 23:34:38 +00:00
hodlbank ffe9af74bb Merge branch 'beforeDeploy' into develop 2018-01-17 23:08:22 +00:00
hodlbank 07c6be968a [+] Added beforeDeploy handlers.
[+] Plugins can call embark.registerBeforeDeploy() to register beforeDeploy handlers.
2018-01-17 23:04:19 +00:00
Iuri Matias d09b94a5db refactor pipeline to remove duplicated code 2018-01-17 15:29:34 -05:00
Iuri Matias 80e8f6323a display error when there is a unknown compilation error 2018-01-17 15:09:19 -05:00
Iuri Matias ed8fe3a951 remove console logs 2018-01-17 14:55:22 -05:00
Iuri Matias f4d2f5346d import react bootstrap 2018-01-17 13:16:43 -05:00
Iuri Matias 7e8a594bf9 update tests 2018-01-17 11:29:30 -05:00
Iuri Matias 7b58a770d9 Merge branch 'develop' of github.com:iurimatias/embark-framework into develop 2018-01-17 11:24:26 -05:00
Iuri Matias 32d63514bf increase default gas value; add parameters 2018-01-17 11:23:32 -05:00
Iuri Matias 5985e6bea1
Merge pull request #326 from hodlbank/develop
Fixing issue #324: add options to configure simulator's mnemonic and …
2018-01-17 10:13:10 -05:00
Iuri Matias 4d1368f388 fix lint; update tests 2018-01-17 10:04:11 -05:00
Iuri Matias be1c5badd8 improve full support for es6 2018-01-16 19:17:52 -05:00
hodlbank 8471d8fa0f Fixing issue #324: add options to configure simulator's mnemonic and block time. 2018-01-15 21:55:28 +00:00
Iuri Matias a322d03053 support external node in tests 2018-01-15 09:51:45 -05:00
Iuri Matias ea8f3a2232 improve gas handling and errors 2018-01-13 11:38:10 -05:00
Iuri Matias ef0bc04f77 clean up; fix gas requirements 2018-01-12 18:36:29 -05:00
Iuri Matias e2aa46eac8 define default account for each contract 2018-01-12 18:06:51 -05:00
Iuri Matias 7cac969f16 default to boilerplate blockchain settings 2018-01-12 17:16:46 -05:00
Iuri Matias 4ab01744c6 update demo app 2018-01-12 16:33:16 -05:00
Iuri Matias 728aea6e04 fix imports issue 2018-01-12 14:21:36 -05:00
Iuri Matias 61c00819ec add reset cmd 2018-01-11 09:22:58 -05:00
Iuri Matias 9fd39f36ba add websocket config to blockchain config 2018-01-11 08:55:28 -05:00
Iuri Matias 82681fec8f support versioning ipfs-api 2018-01-10 11:15:32 -05:00
Iuri Matias 59642b4160 fix web3 versioning 2018-01-10 10:43:25 -05:00
Iuri Matias 7a5e5947ee cleanup 2018-01-05 15:34:31 -05:00
Iuri Matias 11ba67bb34 cleanup 2018-01-05 15:33:53 -05:00
Iuri Matias a0fca8950d cleanup 2018-01-05 15:32:32 -05:00
Iuri Matias 4fcfc6c142 update whisper check 2018-01-05 15:30:52 -05:00
Iuri Matias 59c3d82260 update web3.js 2018-01-05 15:10:47 -05:00
Iuri Matias ae28df8f8e display error & warning when choosing an unexistant file 2018-01-03 13:44:35 -05:00
Iuri Matias 569734a80d re-add npm install for embark demo 2018-01-03 12:42:38 -05:00
Iuri Matias 0e502c1537 refactor service check 2017-12-30 21:44:59 -05:00
Iuri Matias fe186a4443 move module js code to its own folder 2017-12-30 21:02:46 -05:00
Iuri Matias 37a126a6b8 move old code to a separate file 2017-12-30 20:42:52 -05:00
Iuri Matias f4e81da630 refactor whisper code; separate old version 2017-12-30 20:09:46 -05:00
Iuri Matias 7e38a239b7 fix package name listener 2017-12-30 19:34:15 -05:00
Iuri Matias 1c38f3fb89 move lib 2017-12-30 18:25:59 -05:00
Iuri Matias 2f3abc37b7 use module command to get solc version 2017-12-30 18:12:16 -05:00
Iuri Matias c7f8698e58 refactor events handler so it can handle multiple args 2017-12-30 17:51:52 -05:00
Iuri Matias 3e1f16c673 update tests 2017-12-30 17:07:13 -05:00
Iuri Matias 11af38268b refactor: get versions from module instead of config 2017-12-30 16:48:53 -05:00
Iuri Matias dee49ec5ed add createPlugin; move cmds to library managers 2017-12-30 15:52:51 -05:00
Iuri Matias 947373eafc remove unnecessary if 2017-12-29 18:35:47 -05:00
Iuri Matias 3fb02befea comply with linter 2017-12-29 18:33:11 -05:00
Iuri Matias 92de2904f1 move webserver cmds to module 2017-12-29 18:29:56 -05:00
Iuri Matias 411ed41c84 fix console cmds api 2017-12-29 18:21:36 -05:00
Iuri Matias b29e865cd6 extract to method duplicated code 2017-12-29 16:29:32 -05:00
Iuri Matias d1a207941d take into account available providers list 2017-12-29 16:11:45 -05:00
Iuri Matias cb5230f569 comply with linter 2017-12-29 08:46:01 -05:00
Iuri Matias f00fa1c4aa refactor; flatten property list 2017-12-29 08:26:31 -05:00
Iuri Matias 4c1adf258b refactor: add method to get directly property 2017-12-29 08:08:04 -05:00
Iuri Matias 8956992950 extract communication provider 2017-12-28 18:10:43 -05:00
Iuri Matias 9ca337eeb1 extract storage provider 2017-12-28 17:42:25 -05:00
Iuri Matias 9f40958e6a Merge branch 'develop' of github.com:iurimatias/embark-framework into develop 2017-12-28 13:54:22 -05:00
Iuri Matias fc24b04bf6 comply with linter 2017-12-28 13:13:30 -05:00
Iuri Matias 310712567f move whisper to a module 2017-12-28 12:40:11 -05:00
Iuri Matias e833ebd019 move ipfs embarkjs code to module 2017-12-28 12:16:50 -05:00
Iuri Matias ab5d3722b9 fix issue where contract was being deployed everytime when gas config was set; catch errors on individual onDeploy cmds 2017-12-28 08:27:20 -05:00
Iuri Matias 36d7890cfc fix cyclic error when contract is actually just referring to itself 2017-12-28 08:26:02 -05:00
Iuri Matias 1f95418504 use for to avoid multiple callback calls 2017-12-28 07:30:41 -05:00
Iuri Matias 8de81c33bd Merge branch 'develop' of github.com:iurimatias/embark-framework into develop 2017-12-28 07:00:17 -05:00
Iuri Matias 24c34fcbe3 refactor setProvider 2017-12-27 21:04:12 -05:00
Iuri Matias 17a7dcf3e6 remove unsupported whisper protocol msg 2017-12-27 20:58:14 -05:00
Iuri Matias a568835ceb separate components; extract ipfs; add register method 2017-12-27 19:10:05 -05:00
Iuri Matias 174ba8ec9b add more cmd line options to sim 2017-12-27 17:48:33 -05:00
Iuri Matias aad78cc130 fix/improve error handling 2017-12-27 13:07:13 -05:00
Iuri Matias 750eace6ce always define contract code so ondeploy cmds work 2017-12-27 11:40:21 -05:00
Iuri Matias cff999def8 Merge branch 'develop' of github.com:iurimatias/embark-framework into develop 2017-12-27 08:21:15 -05:00
Iuri Matias eaf9016c79 move ipfs service check to its module 2017-12-26 20:32:51 -05:00
Iuri Matias 50f1072372 move upload to its own module 2017-12-26 19:55:42 -05:00
Iuri Matias 49d693dc1a use givenProvider instead of currentProvider 2017-12-26 09:07:57 -05:00
Iuri Matias cd0fd94386 updatests; include options 2017-12-22 13:07:43 -05:00
Iuri Matias 16afb4e405 implemet afterDeploy cmds 2017-12-21 11:21:36 -05:00
Iuri Matias 7cdba7e4e3 throw exception when finding CyclingDependencyError 2017-12-20 14:58:59 -05:00
Iuri Matias 52953a1d0d warn about cycling dependencies 2017-12-20 14:54:47 -05:00
Iuri Matias eb43fa2526 add onDeploy cmds to contract depedencies 2017-12-20 14:30:01 -05:00
Iuri Matias 281ebc643d update & fix onDeploy 2017-12-20 14:09:35 -05:00
Iuri Matias d005d3f668 fix on deploy 2017-12-20 11:32:11 -05:00
Iuri Matias d2ccfa3145 suggest parent name instead of same contract 2017-12-20 09:41:12 -05:00
Iuri Matias 25d99bcf2f fix linting error 2017-12-19 15:48:56 -05:00
Iuri Matias 02634d0bda warn is terminal window is too small 2017-12-19 15:14:09 -05:00
Iuri Matias 535340794b warn of contract typos 2017-12-19 14:07:48 -05:00
Iuri Matias c63c9b8728 warn user of typos 2017-12-19 13:29:48 -05:00
Iuri Matias bc34e00268 better errors when parsing invalid json 2017-12-19 12:57:03 -05:00
Iuri Matias 9404bfb2cc don't attempt to link contract if it's not in the code 2017-12-19 11:13:27 -05:00
Iuri Matias a99ee73ef8 add version command 2017-12-19 10:20:05 -05:00
Iuri Matias 6a27559de4 update linter rule 2017-12-19 09:54:39 -05:00
Iuri Matias 799da089af refactor webserver code 2017-12-19 09:50:29 -05:00
Iuri Matias 76be683ed2 refactor webserver 2017-12-18 09:37:16 -05:00
Iuri Matias 8360295ed0 warn if server is already running or not 2017-12-17 19:18:35 -05:00
Iuri Matias 14d330a729 fix webserver service check 2017-12-17 18:58:55 -05:00
Iuri Matias 113bb25142 add webserver start/stop cmd 2017-12-17 18:34:41 -05:00
Iuri Matias 9efd29ec9e add to help exit cmd 2017-12-16 18:16:53 -05:00
Iuri Matias 81f06bc984 include ipfs version in versions cmd 2017-12-16 18:15:44 -05:00
Iuri Matias 65ae827350 Merge branch 'mds' into develop 2017-12-16 17:55:38 -05:00
Iuri Matias 8999d619c5 update tests 2017-12-16 17:55:27 -05:00
Iuri Matias 158fb1414a re-use same package if already downloaded 2017-12-16 17:36:52 -05:00
Iuri Matias 67dd4a22cb update tests 2017-12-16 17:10:11 -05:00
Iuri Matias ce6c570634 use utils joinPath instead of path.join 2017-12-16 17:10:11 -05:00
Iuri Matias ce4f75ddc4 extract solc to its own module 2017-12-16 17:08:18 -05:00
Iuri Matias f90321a23e warn user if attempting to download package without internet connection 2017-12-16 17:05:37 -05:00
Iuri Matias b764ecf4d6 fix logger call 2017-12-16 12:48:59 -05:00
Iuri Matias 9d78f995e8 refactor download 2017-12-16 12:44:52 -05:00
Iuri Matias a216aa980f extract tar extraction code 2017-12-16 12:23:02 -05:00
Iuri Matias 8e62a1f2e9 clean up 2017-12-16 12:01:45 -05:00
Iuri Matias 130b37f6fd minor refactor 2017-12-16 11:48:20 -05:00
Iuri Matias 7e1493c039 clean up 2017-12-16 11:45:29 -05:00
Iuri Matias 26b070b27f minor refactor: simplify options setting 2017-12-16 11:11:29 -05:00
Iuri Matias fb8d3c4c0a refactor availableServices 2017-12-16 10:54:17 -05:00
Iuri Matias a76dbb69b9 tolerate lack of blockchain config file 2017-12-16 08:48:37 -05:00
Iuri Matias 747237de76 fix defaults when contracts config file is not present 2017-12-16 08:12:38 -05:00
Iuri Matias e093ff5b30 refactor utils http get 2017-12-15 22:15:24 -05:00
Iuri Matias 301ba94ef6 refactor httpGet 2017-12-15 22:11:55 -05:00
Iuri Matias e88b51bdfd add err arg 2017-12-15 22:06:33 -05:00
Iuri Matias 510bc2c542 refactor httpsGet 2017-12-15 22:05:38 -05:00
Iuri Matias bee4d0e1f2 extract file download 2017-12-15 21:53:11 -05:00
Iuri Matias c4e13f9ea8 minor refactor on setprovider code 2017-12-15 18:02:50 -05:00
Iuri Matias d42a34b342 comply with eslint 2017-12-15 17:30:29 -05:00
Iuri Matias 1666be1158 fix contract directories config 2017-12-15 17:14:00 -05:00
Iuri Matias 68886d7095 add error for reference issues 2017-12-15 16:39:13 -05:00
Iuri Matias cfaccb307b throw error when target lib is not found 2017-12-15 16:18:19 -05:00
Iuri Matias 7c33720c98 fix onDeploy cmds 2017-12-15 15:50:42 -05:00
Iuri Matias 0a4a757af8 fix deploy intention so interfaces can be detected automatically 2017-12-14 16:16:51 -05:00
Iuri Matias 34cec58f32 cleanup 2017-12-14 15:27:19 -05:00
Iuri Matias 1cb6581fde better display error contract deployment errors in the dashbord 2017-12-14 15:03:08 -05:00
Iuri Matias c55b011675 fix eslint issues 2017-12-13 20:15:57 -05:00
Iuri Matias 2c8f049f4a remove unused import 2017-12-13 19:51:34 -05:00
Iuri Matias bed7e7afc6 clean up 2017-12-13 19:49:59 -05:00
Iuri Matias 9211279f8e fix eslint issues 2017-12-13 19:49:05 -05:00
Iuri Matias 6098d3cca6 add alias for exit cmd 2017-12-13 19:31:16 -05:00
Iuri Matias ccb77051f8 import bootstrap in test_app 2017-12-13 19:24:20 -05:00
Iuri Matias 4106531bd7 warn user when IPFS comes back online 2017-12-13 18:15:59 -05:00
Iuri Matias d32d5f50bd check if geth command exists and warn user if not 2017-12-13 17:58:07 -05:00
Iuri Matias 19d061e5f3 remove commented out line 2017-12-13 17:25:29 -05:00
Iuri Matias e2dcad07ce update tests 2017-12-13 16:28:23 -05:00
Iuri Matias 0b00f99f09 include ipfs lib in embarkjs 2017-12-13 15:53:29 -05:00
Iuri Matias 3ddd492e83 refactor building web3 obj 2017-12-13 15:53:29 -05:00
Iuri Matias c160ac616f refactor building web3 obj 2017-12-13 15:53:29 -05:00
Iuri Matias a174b94702 move basic import so it's always available 2017-12-13 15:53:29 -05:00
Iuri Matias 99a66a05ef import web3 object on contract import 2017-12-13 15:53:29 -05:00
Iuri Matias b7b5fae2c8 imports with shared web3 object 2017-12-13 15:53:29 -05:00
Iuri Matias 92e22ea519 support special imports 2017-12-13 15:53:29 -05:00
Iuri Matias 038f57e7d2 fix new index example 2017-12-13 15:53:29 -05:00
Iuri Matias 3d36aaaeb3 support both old system and imports in the pipeline 2017-12-13 15:53:29 -05:00