Commit Graph

271 Commits

Author SHA1 Message Date
Iuri Matias 6544c2a999 move contracts generation from pipeline to code generator module 2018-05-16 10:00:56 -04:00
Iuri Matias 7271b00cf4 make file changes in the pipelins 2018-05-15 18:21:00 -04:00
Iuri Matias 1f6e386d9b build web3js generation from pipeline to code_generator 2018-05-15 18:05:44 -04:00
Jonathan Rainville 38dffb9eed move provider to contracts 2018-05-15 12:45:38 -04:00
Iuri Matias 7d8dd02db1 silence bluebird warning 2018-05-11 16:18:53 -04:00
Iuri Matias 7686ad561f detect web3 version and get accounts correctly 2018-05-11 08:20:03 -04:00
Iuri Matias 0b70f32bb9 initial work for i18n 2018-05-10 15:01:34 -04:00
VoR0220 819dec1bc3 profile me officer, here's a new module
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
2018-05-08 10:30:46 -05:00
Jonathan Rainville 94c493e854 redeploy with right config on config change 2018-04-27 15:10:24 -04:00
Jonathan Rainville 2827deb418 fix on contract add 2018-04-27 13:50:57 -04:00
Iuri Matias 17c33ad075
Merge pull request #384 from embark-framework/chores/test-allpligin-apis
Small fixes for plugin APIs
2018-04-26 17:06:05 -04:00
Iuri Matias 3b736f56a7 don't error if it's an empty dapp with no contracts yet 2018-04-26 14:15:43 -04:00
Jonathan Rainville e4566f9f81 add more registers but generation one fails in run 2018-04-26 09:40:41 -04:00
Jonathan Rainville 61be2c7bd7 addFileToPipeline test and registerBeforeDeploy with new arg 2018-04-26 09:40:32 -04:00
Jonathan Rainville 99c04b405f fix clas name and bytecode 2018-04-13 15:48:19 -04:00
Jonathan Rainville 7d8c7b119c add warning after compile for files without a compatible compiler 2018-04-13 14:59:01 -04:00
Jonathan Rainville 6647c31d38 hotfix: callback with wrong parameter order 2018-04-13 14:54:46 -04:00
Iuri Matias 82726e07e1
Merge pull request #361 from embark-framework/graphviz-contracts
Graphviz contracts
2018-04-13 11:29:23 -04:00
Jonathan Rainville f37b09a371 fix build process on windows 2018-04-09 16:14:07 -04:00
Richard Ramos d038ed414d Merge branch 'develop' of https://github.com/embark-framework/embark into graphviz-contracts 2018-04-05 11:35:19 -04:00
Iuri Matias 5a91b2d44a remove unneeded require 2018-04-02 15:32:09 -04:00
Iuri Matias 2ec7589f90 refactor to use dappPath 2018-04-02 15:30:16 -04:00
Iuri Matias e0db5ed61a refactor to use dappPath 2018-04-02 15:06:56 -04:00
Iuri Matias d5a21d579c fallback to shelljs if pwd is empty (windows issue) 2018-03-26 15:08:07 -04:00
Richard Ramos d7b33a309b Changed logic of deploy manager to be able to only compile the code and not deploy it 2018-03-23 10:02:23 -04:00
Iuri Matias 6479bf816b only deploy configured contracts in the tests 2018-03-11 08:28:03 -04:00
Iuri Matias 05aadc5c10 support specifying contract args as an object 2018-03-04 20:07:39 -05:00
Iuri Matias a03be15c4a display in logs contracts with address specified in the config 2018-03-04 19:23:02 -05:00
Iuri Matias 33b42dd9c1 detect invalid addresses 2018-03-04 19:18:39 -05:00
Iuri Matias ac79cef97b fix 337; support contract references in array arguments 2018-03-04 18:46:12 -05:00
Iuri Matias 66a3388a9d fix error reporting for wrong params 2018-03-02 17:48:30 -05:00
Iuri Matias 66e9d6afa3 move contractsState from logger to event bus 2018-02-27 15:40:05 -05:00
Carl Larson 11b4c9b4c4 check if document already interactive (DOMContentLoaded won't fire if already interactive) 2018-02-22 12:32:01 +00:00
Iuri Matias 41baca4b51 don't redeploy if an asset has been changed and not a contract 2018-02-21 18:43:34 -05:00
Iuri Matias 3b60793b25 remove old jshint directives 2018-02-07 19:49:54 -05:00
Iuri Matias a8222df1eb support ws providers 2018-02-07 19:41:11 -05:00
Iuri Matias f35718b6c0 error if account index is not found 2018-01-19 20:38:28 -05:00
hodlbank 776f07dc23 [*] Fixing #319: option to use particular account for contract deployment. 2018-01-20 00:56:05 +00:00
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 07c6be968a [+] Added beforeDeploy handlers.
[+] Plugins can call embark.registerBeforeDeploy() to register beforeDeploy handlers.
2018-01-17 23:04:19 +00:00
Iuri Matias 4d1368f388 fix lint; update tests 2018-01-17 10:04:11 -05:00
Iuri Matias ea8f3a2232 improve gas handling and errors 2018-01-13 11:38:10 -05:00
Iuri Matias e2aa46eac8 define default account for each contract 2018-01-12 18:06:51 -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 59c3d82260 update web3.js 2018-01-05 15:10:47 -05:00
Iuri Matias 947373eafc remove unnecessary if 2017-12-29 18:35:47 -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 f00fa1c4aa refactor; flatten property list 2017-12-29 08:26:31 -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 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 a568835ceb separate components; extract ipfs; add register method 2017-12-27 19:10:05 -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 49d693dc1a use givenProvider instead of currentProvider 2017-12-26 09:07:57 -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 535340794b warn of contract typos 2017-12-19 14:07:48 -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 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 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 1cb6581fde better display error contract deployment errors in the dashbord 2017-12-14 15:03:08 -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 b7b5fae2c8 imports with shared web3 object 2017-12-13 15:53:29 -05:00
Iuri Matias daba3b9319 remove extra character in template causing issues with the console 2017-12-13 11:38:36 -05:00
Iuri Matias f3a8e68c60 Merge branch 'next' into develop 2017-10-22 08:37:24 -04:00
Iuri Matias 398aff3af7 fix multiple issues with multiple file writes 2017-10-21 14:21:18 -04:00
Iuri Matias a18fb65e53 Merge branch 'next' into develop 2017-10-19 19:16:18 -04:00
Iuri Matias e23e4bc417 add blockchain ws config support; fix whisper provider setting 2017-10-19 18:55:49 -04:00
Iuri Matias dd8135445d Merge branch 'next' into develop 2017-10-17 07:03:54 -04:00
Iuri Matias 460f78cc55 update events name for code generation 2017-10-17 07:03:13 -04:00
Iuri Matias 6157968c5e update default solc version; update spec; fix issue with compiler warnings 2017-10-17 06:51:52 -04:00
Iuri Matias c5a7db2da0 cleanup 2017-10-14 06:12:54 -04:00
Iuri Matias f450bf2e6a fix lint; add eslint 2017-10-14 05:24:39 -04:00
Iuri Matias d1762a0fb4 refactor code generation 2017-10-13 20:01:35 -04:00
Iuri Matias 322fabab3d update tests; fix test module 2017-10-13 05:56:42 -04:00
Iuri Matias 2f25876722 fix jshint issues 2017-10-09 09:11:37 -04:00
Iuri Matias 09db4eaa53 re-add support for whisper 5 2017-10-09 08:59:02 -04:00
Iuri Matias 69fa1b24c3 adapt test app to work with 1.0 2017-10-07 21:02:05 -04:00
Iuri Matias ef98346963 fix issues with the console 2017-10-07 19:53:57 -04:00
Iuri Matias 3d88138804 fix loading order 2017-10-07 16:51:56 -04:00
Iuri Matias a9e63069fb fix connecting to correct provider 2017-10-07 15:20:51 -04:00
Iuri Matias a78d8b00bf fix support for 1.0 versions of web3 2017-10-06 07:30:34 -04:00
Iuri Matias 2dc1941e48 rename ABIGenerator (very old legacy reasons) to more apropriate CodeGenerator 2017-08-03 19:29:09 -04:00
Iuri Matias 29c343463b add support for whisper v5; make get url ipfs get configurable 2017-07-24 07:27:52 -04:00
Iuri Matias 2bf91b6d9a make storage getUrl configurable 2017-07-23 08:15:40 -04:00
Iuri Matias fbfb5269b0 update compiler spec 2017-07-16 14:40:06 -04:00
Iuri Matias fd5eca6856 replace all instances of matched lib 2017-07-16 13:38:12 -04:00
Iuri Matias c02e3e7ab8 treat library as dependencies for contract deployment 2017-07-16 13:31:40 -04:00
Iuri Matias 48f9c54d9d detect and replace library references with address 2017-07-16 12:10:17 -04:00
Iuri Matias b56b51cf6e don't stop when getting a compiler warning but print it as a warning 2017-07-15 11:35:29 -04:00
Iuri Matias aa5efab6f9 update tests 2017-07-08 12:39:53 -04:00
Iuri Matias 232f6fc88b support list of fallbacks for dapp web3 connection, support separate connection config for deployment 2017-07-06 18:48:20 -04:00
Iuri Matias 408090a643 make linter happy 2017-07-05 19:38:53 -04:00
Iuri Matias 2ed4eee831 display loading message when new libs are being installed 2017-07-05 18:26:44 -04:00
Iuri Matias 5a2cdb19bf use existing version of lib if versions match 2017-07-05 09:12:11 -04:00
Iuri Matias f45ce963b4 add file type so files are loaded when needed; support to configure web3 and solc versions 2017-07-05 08:35:51 -04:00
Iuri Matias 88c1a16453 fix contract address and make module exports compatible 2017-07-01 22:04:29 -04:00
Iuri Matias cdc75c91e1 fix contract extension file matching 2017-06-29 07:39:12 -04:00
Iuri Matias 5b60c3effa fix issue with orbit config 2017-06-26 15:25:22 -04:00
Iuri Matias 84f7149aaf fix contracts loading; add warning for whisper version; update web3.js 2017-06-25 12:56:14 -04:00
Iuri Matias a6c8e83d40 fix conflicts 2017-06-24 22:35:27 -04:00
Iuri Matias 4bb7f18155 Merge branch 'develop' of github.com:iurimatias/embark-framework into develop 2017-06-19 06:33:07 -04:00
Nathan Hernandez 4202d5e832 Update solc to 0.4.11
The solidity compiler was at 0.4.8, 3 patches behind. At some point the
output of the compiler changed, `compiler.js` reflects those changes.
I'm not sure if other properties changed.
2017-06-02 21:20:27 -04:00
Iuri Matias 47f313b12c generate json files 2017-04-04 06:37:50 -04:00
Iuri Matias faf0e1ff48 revert some of the recent changes 2017-03-31 07:34:43 -04:00
Todd Baur fbe3f302b2 cleanup code from linter feedback 2017-03-30 20:38:14 +09:00
Todd Baur 67f325f5a0 migrate all the code to ES6 2017-03-30 20:12:39 +09:00
Todd Baur 5bf1475ea4 swap more var -> let 2017-03-30 02:50:05 +09:00
Todd Baur e3b9c01205 fix linter complaints 2017-03-30 02:18:00 +09:00
Todd Baur 2f5c647c39 this changes Embark to an EventEmitter and adds more event handling for loading and fetching plugins. It introduces a dependency on underscore and underscore string. It adds defenses against null/invalid options objects. 2017-03-30 00:37:30 +09:00
Iuri Matias c514765d0b move misc utils modules to their own folder 2017-03-11 11:03:20 -05:00
Iuri Matias 92f9df4117 remove async extension to a module 2017-03-11 10:52:02 -05:00
Iuri Matias c2c41549c1 cleanup; remove unneded requires 2017-03-11 10:38:05 -05:00
Iuri Matias ea70d09e8c move ethereum and whisper checks; refactor web3 connection 2017-03-11 10:29:45 -05:00
Iuri Matias a797f8fcf6 fix account selection when it isn't configured; improve error message on tests 2017-03-04 21:51:28 -05:00
Iuri Matias fd6af8af2e refactor condition 2017-03-04 20:35:15 -05:00
Iuri Matias a527573796 separate the different functions in deployContracts 2017-03-04 20:14:47 -05:00
Iuri Matias 16275f13e5 if any account is configured in blockchain.json then use it as the default account for deploying contracts 2017-03-04 19:17:39 -05:00
Iuri Matias 3db27c14cb add exception to dealWithConfigsMethods; it's simple enough 2017-03-03 21:51:23 -05:00