5649 Commits

Author SHA1 Message Date
Jonathan Rainville
82c50d3570 make proxy modify txs with the account manager wallet 2019-08-22 11:25:54 -04:00
Jonathan Rainville
c9d4c2a134 make proxy send responses and add account-manager 2019-08-22 11:25:54 -04:00
Jonathan Rainville
16a13ee705 make proxy change port if it's already taken 2019-08-22 11:25:54 -04:00
Jonathan Rainville
9d3064e3ae make proxy work 2019-08-22 11:25:54 -04:00
Jonathan Rainville
4533acaaa8 wip create proxy module 2019-08-22 11:25:54 -04:00
Pascal Precht
d169b92f50 refactor(@embark/cmd_controller): make console command work with new APIs 2019-08-20 18:47:35 -04:00
emizzle
98721034fe feat(@embark/embark-deploy-tracker): Add unit tests
Add unit tests for the contract tracking `embark-deploy-tracker` package.

`trackingFunctions` was refactored in a way to make it more testable and now performs tracker file IO on demand, as opposed to being executed for each contract deploy. Additionally, removed any synchronous file IO in favour of their asynchronous counterparts.

Added special case for config contract-level tracking:
when `contract.track === false` in contracts config, contracts are deployed, then the config is changed `contract.track` is truthy, a special use case is presented, and the chains.json file is updated accordingly.
2019-08-20 18:46:46 -04:00
Pascal Precht
781d878a02 refactor(@embark/cmd): make build command work again
This commit refactors the `build` command to use the newly refactored
event APIs.
2019-08-19 18:00:44 -04:00
Pascal Precht
b3bf223cb8 refactor(@embark/ethereum-blockchain-client): reintroduce account determination 2019-08-19 17:54:30 -04:00
emizzle
29ee9edf83 feat(@embark/embark-deployment): Don’t hang on contract deploy fail
Prior to this PR (including with v4), Embark would hang on a deployment error.

After this PR, Embark continues it’s run routine despite a contract deployment error, and reports the error to the user in the console appropriately.

NOTE: this branch is based on `refactor/add-contract-tracking` (which would land in https://github.com/embark-framework/embark/pull/1743). If #1743 lands (will be merged in to `refactor_5_0_0`), I will rebase this branch on top of `refactor_5_0_0`.
2019-08-19 17:44:34 -04:00
emizzle
10a7833838 refactor(@embark/embark-deploy-tracker): Add back contract tracking
Add back contract tracking to the refactored code. Deployment checks are added as plugins to the `embark-deployment` module.

Adds ability to track if a contract has already been deployed, and skips deployment if so.

Updates error handling flow for deployment process.

Adds a contract class to the `embark-contracts-manager`, to add a `log` function for the contract. This `log` function can be called from any module that has the contract instance.

Adds TS interfaces for contracts configuration.

Handles the following cases:
1. Contract already deployed
2. Contract not deployed
3. Contract is configured with `{track: false}` (deploy if not deployed, and don't track)
5. Contract is configured with an `address` in the config
6. `trackContracts` set to `false` from `engine` (always deploy but don't track contracts). Currently used for the tests.
7. Contract deployment produces an error
8. Interface deployment shows warning.

PR with unit tests and documenation to follow.

# Conflicts:
#	packages/embark/src/lib/modules/ethereum-blockchain-client/index.js
2019-08-19 17:44:34 -04:00
Iuri Matias
7c228c750c add TODO 2019-08-19 17:44:34 -04:00
emizzle
03cdbcbe94 refactor(@embark/contracts): Add contract check size back in
Adds back in checking of the contract size before deployment by registering actions for event `deployment:contract:beforeDeploy`
2019-08-19 17:35:11 -04:00
emizzle
59a0eea295 refactor(@embark/embark-deploy-tracker): Add back contract tracking
Add back contract tracking to the refactored code. Deployment checks are added as plugins to the `embark-deployment` module.

Adds ability to track if a contract has already been deployed, and skips deployment if so.

Updates error handling flow for deployment process.

Adds a contract class to the `embark-contracts-manager`, to add a `log` function for the contract. This `log` function can be called from any module that has the contract instance.

Adds TS interfaces for contracts configuration.

Handles the following cases:
1. Contract already deployed
2. Contract not deployed
3. Contract is configured with `{track: false}` (deploy if not deployed, and don't track)
5. Contract is configured with an `address` in the config
6. `trackContracts` set to `false` from `engine` (always deploy but don't track contracts). Currently used for the tests.
7. Contract deployment produces an error
8. Interface deployment shows warning.

PR with unit tests and documenation to follow.
2019-08-19 17:30:10 -04:00
emizzle
57b3b8d131 feat(@embark/blockchain): Add parity module
Add parity module in to the refactored code.
2019-08-19 17:28:15 -04:00
Iuri Matias
315af1e351 add web3 connection 2019-08-19 17:28:15 -04:00
Jonathan Rainville
8f358c29aa refactor(@embark/console-listener): remove embark-listener and put in console-listener 2019-08-19 16:22:00 -04:00
Jonathan Rainville
5f8653de02 refactor(@embark/cockpit): show embark logs in the cockpit console 2019-08-19 16:22:00 -04:00
Jonathan Rainville
253cb9ed6e fix(@embark/cockpit): make cockpit start again
Most of the components don't work, but it starts
2019-08-19 16:21:15 -04:00
Andre Medeiros
5736dc9498 add embark solidity tests package (not ready yet) 2019-08-13 14:21:09 -04:00
Andre Medeiros
a8e71e3528 tests running 2019-08-08 12:23:38 -04:00
Andre Medeiros
91fb1a74bc accounts being passed around 2019-08-08 12:00:27 -04:00
Andre Medeiros
594e5f630a allow contract to be used as describe 2019-08-08 10:24:55 -04:00
Iuri Matias
c7425d5f61 Merge branch 'refactor_5_0_0' of github.com:embark-framework/embark into refactor_5_0_0 2019-08-07 17:09:11 -04:00
Iuri Matias
596e665dc2 remove old code 2019-08-07 17:08:45 -04:00
Andre Medeiros
8029f1d0e5 add stack components to tests 2019-08-07 11:41:24 -04:00
Andre Medeiros
d0e55c8607 tests run (more or less) 2019-08-07 11:41:24 -04:00
Iuri Matias
2fc56c8d63 re-add gas price check 2019-08-06 17:42:18 -04:00
Iuri Matias
7093844566 re-add gas estimates; get accounts through await instead of a callback 2019-08-06 17:14:19 -04:00
Iuri Matias
a14bebabf6 re-add linking support; re-add contract json generation 2019-08-06 15:55:07 -04:00
Iuri Matias
fcde87f14b re-add determinearguments from old contract_deployer 2019-08-01 19:18:20 -04:00
Iuri Matias
37186d2dc6 fix other methods for deploy tracker 2019-08-01 17:26:26 -04:00
Iuri Matias
454a710367 fix runActions in deployment; fix special configs 2019-08-01 17:16:20 -04:00
Iuri Matias
2931fce1ba fix event emission 2019-08-01 16:31:46 -04:00
Iuri Matias
d0732edae1 disable deploy tracker for now 2019-08-01 15:39:20 -04:00
Iuri Matias
5b6371b100 add better internal logging for requeests & actions 2019-08-01 14:25:35 -04:00
Iuri Matias
9ec632c205 fix event name 2019-08-01 09:45:52 -04:00
Iuri Matias
7643f0fec4 add stack components module group 2019-07-31 18:05:22 -04:00
Iuri Matias
7706c4edea refactor special configs; group list configs and function configs 2019-07-31 17:34:06 -04:00
Iuri Matias
4fa6fdab6e re-add special configs 2019-07-31 16:43:07 -04:00
Iuri Matias
e432dc328c implement communication stack component, whisper plugin 2019-07-30 15:00:45 -04:00
Iuri Matias
90ea1f0c27 generate embarkjs storage artifact 2019-07-30 11:49:45 -04:00
Iuri Matias
9e0fdac1ef register EmbarkJS.Storage in the console; re-add upload support 2019-07-30 10:38:26 -04:00
Iuri Matias
43d6aa1366 add storage and ipfs components 2019-07-29 17:09:57 -04:00
Iuri Matias
f0fe0e62e7 fix template 2019-07-29 12:33:22 -04:00
Iuri Matias
0742f96e38 use provider instead of hardcoded connection 2019-07-26 12:34:33 -04:00
Iuri Matias
1a90a3034a add todo 2019-07-25 13:02:43 -04:00
Iuri Matias
c9edd48f2f add file changes workflow to cmd controller 2019-07-25 12:49:44 -04:00
Iuri Matias
f838739e17 implement embark-web3; add request2 to event bus with promise support 2019-07-25 12:20:39 -04:00
Iuri Matias
dc2e68f0f2 revert 2019-07-24 18:44:24 -04:00