Commit Graph

2878 Commits

Author SHA1 Message Date
Iuri Matias 8b83fcfb74
Merge pull request #1033 from embark-framework/bug_fix/proxy-false
Fix proxy not being deactivated when put to false
2018-11-08 10:21:01 -05:00
Iuri Matias 1a411e954c
Merge pull request #1031 from embark-framework/bug_fix/disable-whisper
Fix disabling whisper crashing the proxy
2018-11-08 10:05:19 -05:00
Jonathan Rainville f50f106e07 fix(blockchain): fix setting proxy to false not applying 2018-11-07 12:37:01 -05:00
Jonathan Rainville b48d29acc3 fix(whisper): fix disabling whisper crashing blockchain
Fixes #1027
2018-11-07 11:34:46 -05:00
andrea zuccarini c25c644b5a include .sol import from ipfs 2018-11-05 21:09:48 +01:00
Jonathan Rainville 2564da3139 Enable downloading templates that don't have a master branch (#1019)
* fix no master branch repos for templates

* oopsie doopsie

* stub request and use async to get externalUrl
2018-10-31 21:48:06 +01:00
Anthony Laibe 1f93ec0b32 Add back output done 2018-10-31 18:34:00 +01:00
Jonathan Rainville 5442708020 add warning on RPC 2018-10-31 10:36:30 +01:00
Eric Mastro 000a4fe322
Merge pull request #1000 from embark-framework/bug_fix/self-dep
enable self-referencing contracts in onDeploy
2018-10-31 10:29:57 +01:00
Michael Bradley, Jr 09a5ea8ba1 test if client version is supported, warn if not or can't determine 2018-10-31 10:21:02 +01:00
Michael Bradley, Jr 901d1f8e32 client-class helpers for detecting whether version is supported 2018-10-31 10:21:02 +01:00
Michael Bradley, Jr db55458b62 setup logger arg on userConfig 2018-10-31 10:21:02 +01:00
Michael Bradley, Jr 08c68d068a pass console as logger 2018-10-31 10:21:02 +01:00
Eric Mastro b76a7f1379
Merge pull request #1012 from embark-framework/bugfix/sign-verify
bug: add personal to all connection
2018-10-31 10:19:39 +01:00
Anthony Laibe 0cd6b3585e bug: add personal to all connection 2018-10-30 21:32:29 +01:00
Anthony Laibe 78d3189142 PR feedback 2018-10-30 21:05:10 +01:00
Anthony Laibe 9276dd7805 Stringiy function for command console 2018-10-30 19:45:35 +01:00
André Medeiros ec9307c991
fix fs layer (#1004) 2018-10-30 17:25:57 +01:00
Iuri Matias 0cca992fca Merge branch 'linting_fixes' of github.com:embark-framework/embark into linting_fixes
Please enter a commit message to explain why this merge is necessary,
2018-10-29 21:37:03 +01:00
Andre Medeiros 31deca4729 Defaults dont belong in environment variables 2018-10-29 19:15:01 +01:00
Iuri Matias 5362b804c4 tmp fix for when contract is missing in sol tests 2018-10-29 18:37:07 +01:00
Andre Medeiros 6494bfb858 fixes 2018-10-29 17:55:17 +01:00
Iuri Matias 21d329eb6e update test script 2018-10-29 17:12:43 +01:00
Iuri Matias 10fd5af9a6 add workaround for env issue in the tests 2018-10-29 16:36:27 +01:00
Iuri Matias 71380be0ca fix linting issues 2018-10-29 15:33:12 +01:00
Iuri Matias 99d618c2e3 lint fixes 2018-10-29 14:15:48 +01:00
Iuri Matias 896debefbd
Merge pull request #176 from status-im/packaging_improvements
Packaging improvements
2018-10-29 12:05:52 +01:00
Anthony Laibe 360df5f6ef Display better error message 2018-10-28 17:10:38 +01:00
Michael Bradley, Jr 7207108aaa give templates a common dot.gitignore
if a template (built-in, downloaded or otherwise) doesn't supply its own
dot.gitignore file then templates/dot.gitignore will be used

also, update dot.gitignore to ignore chains.json by default
2018-10-28 15:36:05 +01:00
Michael Bradley, Jr 6999a37487 rm old lib/modules/webserver/backend
replaced by embark-ui
2018-10-28 13:16:20 +01:00
Iuri Matias 3007c109e7
Merge pull request #170 from status-im/bugfix/send-gas-with-function
bug: send gas when calling a function via API
2018-10-27 21:38:13 +02:00
Iuri Matias 9f6f7af3f7
Merge pull request #171 from status-im/global_vars
display globals in the debugger; display vars found in failing line
2018-10-27 21:33:00 +02:00
Iuri Matias 40ed7b960f display globals in the debugger; display vars found in failing line 2018-10-27 21:31:13 +02:00
Anthony Laibe d6f7c652f9 bug: send gas when calling a function via API 2018-10-27 11:51:03 +02:00
Jonathan Rainville fd1dc63037 enable self-referencing contracts in onDeploy 2018-10-25 19:11:49 -04:00
Jonathan Rainville ef2b4ea570 fix error message that print undefined 2018-10-25 15:20:29 -04:00
emizzle efa21a1915
Fix process logs not returning
The API endpoint listening for a dump of process logs was not returning logs properly for two reasons:
1. The `id` field was being appended to each log. This had been moved to the `handleLog` function of the `LogHandler`.
2. The slice needed to grab logs from the end, so the `limit` was made negative on the `.slice()`.
2018-10-25 13:04:33 +02:00
emizzle dcdcfb5b32
Minor fixes for rebase 2018-10-25 13:04:33 +02:00
emizzle 9a830c3423
Remove default behavior of logging to file
Default behavior of logging to file is no longer needed now that Embark log history can be properly served using the `ProcessLogsApi` and `LogHandler` classes.

# Conflicts:
#	lib/core/logger.js
#	lib/modules/blockchain_process/blockchain.js
2018-10-25 13:04:33 +02:00
emizzle f5c77b1416
Process logs API refactor
There are three separate instances of process log APIs: embark logs, blockchain logs (when in standalone mode), and child process logs (storage, communication, blockchain, etc). Each one was repeating the implementation of creating a process log API endpoint. This commit centralises the API declaration by using the class `ProcessLogsApi`.

`ProcessLogsApi` is started for all three components mentioned above: blockchain (in standalone) in the `BlockchainListener` module, embark in the `EmbarkListener` module, and for all child processes in the `ProcessLauncher`.

These listeners have two functions:
1. Create the process logs API endpoints for `get` and `ws`, and
2. Ensure that all logs are logged through the `LogHandler`, which normalises the output of the log and ensures each log has a timestamp and id (used in the cockpit for log ordering).

Also, this commit moved the pipeline in to a module, so that the `embark` object could be passed to the `ProcessLogsApi` (to be used for registering API endpoints).
2018-10-25 13:04:28 +02:00
emizzle 728713a183
Embark blockchain logs when running standalone
When running `embark blockchain` followed by `embark run` previously, logs generated in the standalone `embark blockchain` process were black boxed and not accessible to the main Embark process.

This is fixed by creating a client IPC connection in the `embark blockchain` process that connects to the IPC server connection running in `embark run`. The connection is made by way of polling `ipc.connect` and continues polling even after a connection is made in case `embark run` is killed and restarted without restarting `embark blockchain`.

`LogHandler` was introduced to extrapolate functionality used in `ProcessLauncher` that needed to also be used in the standalone blockchain process. It also caps the number of logs that are stored in memory per process by a constant value defined in `constants.json`.

A `blockchain_listener` was module was created (and run inside of `embark run`) that listens for logs emitted by the `embark blockchain` client IPC and runs them through the `LogHandler`. Additionally, this module registers the API endpoints needed to handle requests for blockchain process logs in the cockpit (which were 404’ing before).

# Conflicts:
#	lib/modules/blockchain_process/blockchain.js
2018-10-25 12:51:43 +02:00
Iuri Matias 1d6da99e8f display last error found
display last line on tx

fix debugger call

listen to source event only after jumping to the end

keep track of last tx; add minimal debug feature; fix ast issue

initial debugger apis & ui integration

prevent crash when step is out of bounds; send all all available data in websocket

add debugger commands

fix line number tracking in editor; toggle breakpoints

replace timeouts with callbacks

add debugger manager & refactor

refactor debugger api

refactor cmd line debugger

reduce debugger decoupling

reduce debugger decoupling

fix debug buttons

trigger source update so api triggers ws event to update source location

move locals and contracts vars to a json view

improve debugger icons

simplify debugger data

update debug package

add command handler to get a contract given a tx; update debugger so it can get a contract by its tx instead of tracking latest txs only

update debugger package
2018-10-23 18:27:40 -04:00
Jonathan Rainville f30803946c fix ENS API 2018-10-23 14:20:42 -04:00
Jonathan Rainville c201b6e491 fix ens with no registration 2018-10-23 11:59:43 -04:00
Jonathan Rainville f40cf609a8 fix embark ens and embark demo 2018-10-23 11:39:14 -04:00
Jonathan Rainville 73668afd2e fix missing blockchainConfig pass to StorageLauncher in swarm index 2018-10-23 11:19:15 -04:00
Jonathan Rainville 5eaaa63216 fix duplicated event for all contracts 2018-10-23 11:08:39 -04:00
Jonathan Rainville ccd7a7c3c7 fix reset 2018-10-23 11:01:07 -04:00
Jonathan Rainville e62a5503a9 fix undefined `connection` in provider 2018-10-23 10:42:14 -04:00
Anthony Laibe 81c62b1006 Fix provider connection check 2018-10-23 13:18:43 +01:00