Commit Graph

1881 Commits

Author SHA1 Message Date
Michael Bradley, Jr 51ccea63c4 host utils 2018-07-26 14:27:50 -05:00
Jonathan Rainville 1f02461af1 only enabble register in dev 2018-07-26 14:50:44 -04:00
Jonathan Rainville 82bbbd6f87 only preregister in dev 2018-07-26 14:50:44 -04:00
Jonathan Rainville c5d6c1321a small cleanups 2018-07-26 14:50:44 -04:00
Jonathan Rainville 346dd9de3a pre-dploy using the same function as register 2018-07-26 14:50:44 -04:00
Jonathan Rainville 20c631434f if no register config, dont register anything 2018-07-26 14:50:44 -04:00
Jonathan Rainville c41961f3dd put register function in another module that can be used by embark and embark js 2018-07-26 14:50:44 -04:00
Jonathan Rainville 19d75bb44f fix using only_owner 2018-07-26 14:50:44 -04:00
Jonathan Rainville d789abf056 fix lookup and also enable lookup for new subdomains 2018-07-26 14:50:44 -04:00
Jonathan Rainville 9baf11f555 fix only_owner to work when called by FIFSRegistrar 2018-07-26 14:50:44 -04:00
Jonathan Rainville 3265218000 add function to register the domains from config 2018-07-26 14:50:44 -04:00
Jonathan Rainville f0746a8d8b add new blockchain event 2018-07-26 14:50:44 -04:00
Jonathan Rainville 974d492428 conflict in embark js 2018-07-26 14:50:38 -04:00
Iuri Matias 444c504061
Merge pull request #640 from embark-framework/feature/log-gas-info
Display info about gas when deploying contract
2018-07-26 14:42:46 -04:00
Jonathan Rainville dffbcf032f conflict in lock 2018-07-26 14:39:14 -04:00
Jonathan Rainville 4df8dc77a8 add resolver contract 2018-07-26 14:39:14 -04:00
Jonathan Rainville cf0a2574b5 very wip working register 2018-07-26 14:39:14 -04:00
Michael Bradley 83d42a3a44
Merge pull request #631 from embark-framework/features/embarkjs-from-npm
use the embarkjs package
2018-07-26 12:50:03 -05:00
Iuri Matias 0a795c2c5d
Merge pull request #636 from embark-framework/feature/command-console
Add console command
2018-07-26 13:34:02 -04:00
Iuri Matias c0d2acd0d4
Merge pull request #626 from embark-framework/bug_fix/duplicate-deps
fix duplicate dependencies and warn correctly for length
2018-07-26 13:32:07 -04:00
Anthony Laibe 2f2626a7c8 Add dedicated writer for string result 2018-07-26 16:56:50 +01:00
Anthony Laibe ed9be59abe Use console and override evaluator 2018-07-26 16:00:25 +01:00
Michael Bradley, Jr 5dc4cad03d more conservative: only modify webpack's subclass of ProcessWrapper 2018-07-25 19:58:24 -05:00
Michael Bradley, Jr dd46765154 env options property doesn't need to be passed to ProcessLauncher 2018-07-25 19:29:41 -05:00
Michael Bradley, Jr 406c1c3fce simplify ternary re: `__mainContext` and `this` 2018-07-25 16:04:24 -05:00
Michael Bradley, Jr c78ced2d6a rm disabled lines 2018-07-25 16:04:24 -05:00
Michael Bradley, Jr d784cd3ee3 webpack mode should be 'none' unless embark's mode is 'production' 2018-07-25 16:04:24 -05:00
Michael Bradley, Jr 7676a59e7c comment re: use of webpack-bundle-analyzer to visualize stats.json 2018-07-25 16:04:24 -05:00
Michael Bradley, Jr bade3a4c9f disable stats gen (should be activated via cfg file and/or cli opts) 2018-07-25 16:04:24 -05:00
Michael Bradley, Jr f4b00e6bbf rm disabled line 2018-07-25 16:03:52 -05:00
Michael Bradley, Jr 757e825be9 mainContext -- fallback to `this`, then `self`, then `undefined` 2018-07-25 16:03:52 -05:00
Michael Bradley, Jr 0e801800cd rev wp config comments 2018-07-25 16:03:52 -05:00
Michael Bradley, Jr 65427aed58 stats.report/json is being written to .embark/ not dist/ 2018-07-25 16:03:52 -05:00
Michael Bradley, Jr 78332d40da disabled code + comment re: enabling source maps 2018-07-25 16:03:52 -05:00
Michael Bradley, Jr 712fefe2d1 make the linter happy 2018-07-25 16:03:33 -05:00
Michael Bradley, Jr 5a5fe476e2 rev webpack config w.r.t. webpack 4, babel 7 2018-07-25 16:02:58 -05:00
Michael Bradley, Jr 5f7fd7107f write stats report,json into .embark 2018-07-25 16:02:58 -05:00
Michael Bradley, Jr 7deea87bd6 rm code that doesn't seem to be doing anything (after much investigation) 2018-07-25 16:02:58 -05:00
Michael Bradley, Jr eae91e2e42 rm unnecessary requires 2018-07-25 16:02:58 -05:00
Michael Bradley, Jr 618143a91d rev HardSource 2018-07-25 16:02:58 -05:00
Michael Bradley, Jr 311f9fc243 propagate env 2018-07-25 16:02:58 -05:00
Michael Bradley, Jr 9730c198d3 don't blow away the global web3 2018-07-25 16:02:58 -05:00
Michael Bradley, Jr 5d67917326 check for self 2018-07-25 16:02:58 -05:00
Michael Bradley, Jr 3fb4d86e67 window -> global; reorg statements 2018-07-25 16:02:58 -05:00
Michael Bradley, Jr 454fd1214c babel configured to extend dapp's .babelrc 2018-07-25 16:02:58 -05:00
Michael Bradley, Jr 05f5a93a1f require embark_node file -> require 'embarkjs' pkg 2018-07-25 16:01:48 -05:00
Michael Bradley, Jr 207f3ffe93 make Web3 (note capital 'w') globally accessible 2018-07-25 16:01:48 -05:00
Michael Bradley, Jr dc50ea864e import EmbarkJS from npm pkg, re-export, make it globally accessible 2018-07-25 16:01:48 -05:00
Jonathan Rainville b89211bd45
Merge pull request #639 from embark-framework/bugfix/profile-command
Fix profile command
2018-07-25 16:40:06 -04:00
Anthony Laibe eea987f95e Display info about gas when deploying contract 2018-07-25 13:27:15 +01:00
Anthony Laibe 5d5fda54e2 Adding profile command 2018-07-25 10:15:43 +01:00
Anthony Laibe 4039bbac6b 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-07-25 09:51:10 +01:00
Anthony Laibe b4ea6c03d9 fix eslint 2018-07-25 09:37:17 +01:00
Anthony Laibe a5b9502e82 Add watcher to console command 2018-07-24 16:46:52 +01:00
Anthony Laibe d0b76ea4bc Remove code dependencies to underscore 2018-07-24 13:29:06 +01:00
Anthony Laibe 2d7876146b Use global in repl 2018-07-24 09:40:48 +01:00
Anthony Laibe 3e328801db nodashboard start a repl 2018-07-23 17:05:01 +01:00
Anthony Laibe da1691327a No need for pipeline service, assets are not compiled 2018-07-23 14:33:03 +01:00
Anthony Laibe 08a3879453 Add access to the contract 2018-07-23 14:12:20 +01:00
Anthony Laibe 57f06b2f19 Add on exit 2018-07-23 13:41:13 +01:00
Anthony Laibe ce2618a108 Update console command options 2018-07-23 13:36:15 +01:00
Anthony Laibe eadea087ae Replace light monitor by REPL 2018-07-23 13:30:58 +01:00
Anthony Laibe c283e8a29f Reuse Light Monitor 2018-07-23 11:19:44 +01:00
Anthony Laibe 87de044c06 Remove not used options 2018-07-23 11:05:07 +01:00
Anthony Laibe 0aa151ee38 Adding light monitor 2018-07-23 10:36:59 +01:00
Anthony Laibe eb2172a0f5 Adding Console Command 2018-07-23 09:34:21 +01:00
Iuri Matias 65b29d5db6
Merge pull request #634 from embark-framework/embarkjs-environment
Add environment to EmbarkJS
2018-07-19 10:55:30 +03:00
Richard Ramos c376cd9000 Add environment to EmbarkJS 2018-07-18 10:49:44 -04:00
Michael Bradley, Jr 4058c08ff1 don't forward host/port cli options if the options weren't specified 2018-07-17 18:41:12 -05:00
Iuri Matias e61b38e3a4
Merge pull request #630 from embark-framework/whisper-options
Extending options of sendMessage() and listenTo() of whisper to enter specific keys.
2018-07-17 19:56:41 +03:00
Richard Ramos 34ebd42be9 Allow topics to be optional when pubKey/privKey is used 2018-07-16 12:18:31 -04:00
Richard Ramos b9378762ff Removing code. Doesn't make sense to specify keys when everyone can read them 2018-07-16 10:32:55 -04:00
Richard Ramos 692d5638de Symmetric and private keys can be set in whisper 2018-07-16 10:23:11 -04:00
Michael Bradley, Jr dfaaa58ce0 propagate `embark run` cli webserver flags to config and service 2018-07-15 23:49:24 -05:00
Michael Bradley, Jr d78c9bd74a set the host flag for ganache-cli 2018-07-12 16:04:19 -05:00
Michael Bradley, Jr 33048b01b7 rm commented code and extra whitespace 2018-07-12 16:03:56 -05:00
Michael Bradley, Jr 25df152826 disable dead code path -- ganache will never be falsy 2018-07-12 15:14:40 -05:00
Michael Bradley, Jr 28036bb530 dont' need shelljs.which, can directly invoke embark's node_modules/.bin/ganache-cli 2018-07-12 15:14:40 -05:00
Jonathan Rainville f49d21d491 fix the indexOf instead by simulating what solc does 2018-07-12 11:18:03 -04:00
Jonathan Rainville 5e210a67fa fix duplicate dependencies and warn correctly for length 2018-07-12 10:23:24 -04:00
RJ Catalano 4d473f0b34
Merge pull request #624 from embark-framework/use_package_web3
remove custom web3 js; use packaged one instead
2018-07-11 19:06:51 -05:00
Iuri Matias 3ed4d28970 remove custom web3 js; use packaged one instead 2018-07-12 01:04:10 +03:00
Jonathan Rainville 038d405af9 hotfix return if error 2018-07-11 15:40:45 -04:00
Iuri Matias ff7a4bd1dd
Merge pull request #620 from embark-framework/features/bin-entry-ganache-cli
Features/bin entry ganache cli
2018-07-11 21:27:26 +03:00
Iuri Matias 99af5f1817
Merge pull request #622 from embark-framework/features/ens-demo
Add ENS to Demo app and also add small fix
2018-07-11 21:20:25 +03:00
Iuri Matias 0d5b3293af
Merge pull request #621 from embark-framework/security/update-deps
Update dependencies
2018-07-11 21:16:21 +03:00
Michael Bradley, Jr 5e9573733e include old `const ganache =` line in original pos wrt disabled code 2018-07-11 13:08:48 -05:00
Michael Bradley, Jr 765c7c4e4c comment out `testrpc` (no-unused-vars) 2018-07-11 13:08:15 -05:00
Michael Bradley, Jr 1cae5bb02e Embark's own ganache-cli will always be found 2018-07-11 13:01:27 -05:00
Michael Bradley, Jr 2072dff753 embark-ganache-cli -> ganache-cli-embark 2018-07-11 12:55:08 -05:00
Iuri Matias 4882333e85
Merge pull request #618 from embark-framework/bug_fix/deployment-stuck
Fix deployment getting stuck
2018-07-11 20:22:13 +03:00
Iuri Matias 0b0f092385
Merge pull request #617 from embark-framework/bug_fix/upload-build
set isDev as default if there is no blockchain file
2018-07-11 20:19:09 +03:00
Iuri Matias 54f8953430
Merge pull request #609 from embark-framework/refactor_storage_component
Refactor storage component
2018-07-11 20:18:01 +03:00
Jonathan Rainville 7c461a0209 add ens to demo 2018-07-11 13:11:55 -04:00
Jonathan Rainville 8542c0f3f9 fix ens by using right addres depending on chain and also add isAvailable 2018-07-11 12:47:15 -04:00
Michael Bradley, Jr 319899cfb7 always use Embark's own ganache-cli (embark-ganache-cli) 2018-07-11 11:17:07 -05:00
Andre Medeiros 317268a740 Linting 2018-07-11 11:44:06 -04:00
Andre Medeiros 21da13ab69 Fix failing test on blockchain 2018-07-11 11:38:58 -04:00
Michael Bradley, Jr b98101ea3a program -> program, programName 2018-07-11 10:32:47 -05:00
Michael Bradley, Jr 5e1f53a7d8 check for ganache-cli on PATH and fallback to embark-ganache-cli 2018-07-11 10:32:00 -05:00
Jonathan Rainville cc3839382c check for receipt address before calling back 2018-07-11 08:47:12 -04:00
Iuri Matias 97af8aff11 fix swarm upload cmd registration 2018-07-11 10:27:54 +03:00
Iuri Matias 29161b18a9 use buildUrlFromConfig 2018-07-11 10:24:03 +03:00
Jonathan Rainville ffbec61554 wip changes 2018-07-10 15:59:42 -04:00
Jonathan Rainville 2a6d1cf3fe remove use of initConfig 2018-07-10 08:49:08 -04:00
Jonathan Rainville d3366197b3 add interval in case deployment gets stuck 2018-07-09 16:50:38 -04:00
Jonathan Rainville 325800bc59 set isDev as default if there is no blockchain file 2018-07-09 15:20:47 -04:00
Jonathan Rainville 06a6948173 rename to built 2018-07-09 14:26:10 -04:00
Jonathan Rainville e19ee1f558 log error when pipeline dies 2018-07-09 13:50:03 -04:00
Jonathan Rainville d0525c7e5b
Merge pull request #614 from embark-framework/bug_fix/events-dont-wrok
Just add back the gas cost PR
2018-07-09 11:25:25 -04:00
Iuri Matias e2c0297df5 fix extractZip 2018-07-09 16:30:27 +03:00
Iuri Matias 7929abcdfd
Merge pull request #611 from embark-framework/refactor_cleanup
remove unneeded variables or bad coupling
2018-07-09 11:18:11 +03:00
Iuri Matias 455753f990 make linter happy 2018-07-09 11:15:13 +03:00
Iuri Matias 188d175735
Merge pull request #613 from embark-framework/bug_fix/maincontext-error
Fixed __mainContext error
2018-07-09 11:02:21 +03:00
Iuri Matias d46ccb28c5
Merge pull request #612 from embark-framework/bug_fix/proxy-error-message
Fix proxy error message "Error forwarding requests to blockchain/simulator [Object(object)]"
2018-07-09 10:59:38 +03:00
emizzle 5c385b0e82 Fixed __mainContext error
There was a condition checking if blockchain config was disabled and if so, do not generate any provider code, which is where the `__mainContext` was being defined. This was changed to generate the `__mainContext` code first, then if blockchain is disabled, return the already generated code.
2018-07-09 10:57:14 +10:00
emizzle ee6124427a Proxy error message "Error forwarding requests to blockchain/simulator [Object(object)]" was showing in console. Have replace [Object(object)] with `error.message` 2018-07-09 09:51:25 +10:00
Iuri Matias 4aaf83a064 make linter happy 2018-07-09 01:21:27 +03:00
Iuri Matias 28a9b0e940 fix plugin call 2018-07-08 23:41:37 +03:00
Iuri Matias 6e5aad939c remove unused param 2018-07-08 23:41:26 +03:00
Iuri Matias ac349f5819 fix callback 2018-07-08 23:41:09 +03:00
Iuri Matias 0af55a4f5d fix console log for undefined params 2018-07-08 23:40:32 +03:00
Iuri Matias 2c478e26ff move storage config check to the constructor 2018-07-08 21:28:43 +03:00
Iuri Matias 1bd0e8966b simplify getJson 2018-07-08 21:24:19 +03:00
Iuri Matias 768138c5b6 refactor storage config check 2018-07-08 21:14:44 +03:00
Iuri Matias 700b2199bd simplify use of callback 2018-07-08 20:43:41 +03:00
Iuri Matias 9592f3e69b re-add register upload cmd api; refactor storage module initialization 2018-07-08 20:40:06 +03:00
Iuri Matias be1d9cc502 simplify add set providers; validation can be done on the client isde 2018-07-08 00:56:15 +03:00
Iuri Matias a5c6c38b5e make linter happy 2018-07-08 00:46:15 +03:00
Iuri Matias 99876ef083 fix upload callback 2018-07-08 00:02:46 +03:00
Iuri Matias 082d7c879a fix getting params from upload field 2018-07-07 22:16:58 +03:00
Iuri Matias fcd1a4df99 fix logger 2018-07-07 22:00:42 +03:00
Iuri Matias 225414e61a get correct ipfs node depending on the config 2018-07-07 21:56:37 +03:00
Iuri Matias b51eab3418 remove unneded assignments 2018-07-07 21:23:51 +03:00
Iuri Matias ee7fd2661a remove old code 2018-07-07 21:14:55 +03:00
Iuri Matias 90b9d94e64 check swarm connection before attempting to connect 2018-07-07 20:56:34 +03:00
Iuri Matias 968b06860c check ipfs connection before attempting to connect 2018-07-07 20:47:40 +03:00
Iuri Matias 2f828c72d1 re-add set providers call 2018-07-07 19:49:18 +03:00
Iuri Matias 3bb97a1bb1 fix start process 2018-07-07 19:29:04 +03:00
Iuri Matias 08735a689b move setProviders to EmbarkJS 2018-07-07 18:36:34 +03:00
Iuri Matias 8587f2cbdb move setProviders to EmbarkJS 2018-07-07 18:36:16 +03:00
Iuri Matias aa3023d5f2 move setProviders to EmbarkJS 2018-07-07 18:29:45 +03:00
Iuri Matias 31025fbd9b remove no longer used plugin cmd api 2018-07-07 18:11:58 +03:00
Iuri Matias 44f5186af1 use commands to request upload; let storage component figure out which one to call 2018-07-07 18:11:45 +03:00
Iuri Matias 6bb8051d83 add todo 2018-07-07 16:59:00 +03:00
Iuri Matias 448593b36f move asset files check from index to pipeline; index shouldn't know about the internals 2018-07-07 16:51:24 +03:00
Iuri Matias 59478f19ff remove unused parameter 2018-07-07 16:34:56 +03:00
Iuri Matias 20f782607c move fuzer & gasEstimator to profiler module 2018-07-07 16:30:47 +03:00
Iuri Matias d40ae2f374
Merge pull request #606 from embark-framework/bug_fix/events-dont-wrok
Fix events usage with websocket providers
2018-07-07 00:17:54 +03:00
Iuri Matias 82df17b376
Merge pull request #603 from embark-framework/template_downloader
Template downloader
2018-07-07 00:11:51 +03:00