Commit Graph

5639 Commits

Author SHA1 Message Date
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
Iuri Matias 30c25a7b49 revert 2019-07-24 18:41:14 -04:00
Iuri Matias 1e3e17e78f Merge branch 'refactor_5_0_c' of github.com:embark-framework/embark into refactor_5_0_c 2019-07-24 18:34:07 -04:00
Iuri Matias 821a3b8481 start webserver explicitly instead of implicitly 2019-07-24 18:33:55 -04:00
Iuri Matias 261dee8ad0 refactor contracts manager; deployment; blockchain client 2019-07-24 18:27:34 -04:00
Andre Medeiros a03ad9aacc support long running processes comms via stdin/stdout 2019-07-24 15:54:57 -04:00
Andre Medeiros 2beeaa68f1 process launching code 2019-07-24 15:10:29 -04:00
Iuri Matias d80f04850a refactor contracts deployment 2019-07-23 17:24:11 -04:00
Iuri Matias d4f9fd2e58 refactor contracts manager buildContracts 2019-07-23 16:58:19 -04:00
Iuri Matias d5091b3b43 add compilation step 2019-07-23 15:19:08 -04:00
Iuri Matias 7c040062c5 fix/add geth check 2019-07-23 14:55:16 -04:00