Commit Graph

5600 Commits

Author SHA1 Message Date
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
Iuri Matias f09d99f215 re-add compiler module 2019-07-23 13:42:24 -04:00
Iuri Matias 80349940bb re-add console 2019-07-23 13:32:33 -04:00
Iuri Matias 793d04094b re-add core components one by one 2019-07-23 12:49:44 -04:00
Iuri Matias 1303acb3d5 start blockchain node with new api 2019-07-23 11:23:38 -04:00
Iuri Matias 2714c64d01 Merge branch 'refactor_5_0_b' of github.com:embark-framework/embark into refactor_5_0_b 2019-07-22 13:54:13 -04:00
Andre Medeiros ca485eeeba mo'work 2019-07-22 13:54:02 -04:00
Iuri Matias b6b00a9d38 Merge branch 'refactor_5_0_b' of github.com:embark-framework/embark into refactor_5_0_b 2019-07-22 13:53:29 -04:00
Andre Medeiros 4062873502 more progress 2019-07-22 13:36:19 -04:00
Iuri Matias b943274a31 Merge branch 'refactor_5_0_b' of github.com:embark-framework/embark into refactor_5_0_b 2019-07-22 13:25:57 -04:00
Andre Medeiros 4783524a8c progress 2019-07-22 13:24:46 -04:00
Iuri Matias dd0cfbc2dc genereate components config files 2019-07-17 17:52:17 -04:00
Iuri Matias 78775afd1c run ipfs code when ipfs starts 2019-07-16 15:57:59 -04:00
Iuri Matias e7526e16da re-add ipfs; register cmd in console; register help cmd 2019-07-16 15:31:25 -04:00
Iuri Matias 50c3525374 refactor
remove code not beloging to code runner & other core modules; disable code generator and move contract code to its own module

cleanup pipeline; start preparing for plugin based pipeline file generation

initial work to write pipeline files through an api

add action events to pipeline; generate contracts json and js files

move old pipeline to its own module; generate basic artifacts

re-add missing plugins function

add basic embarkjs provider registration

refactor embark-whisper; move whisper api; execute whisper code in console

add api to register help cmds in console; start moving hardcoded help cmds out

cleanup embark-graph

add todos
2019-07-12 18:32:36 -04:00
Jonathan Rainville 783b555dd2 fix ens test and race condition in setting ENS provider 2019-07-12 15:40:46 -04:00
Jonathan Rainville 5d5c962ed2 feat: add migration guide for v5 in config message 2019-07-12 12:52:07 -04:00
Jonathan Rainville 47c71963fb feat(@embark/site): add summary for new embark 5 config 2019-07-12 12:52:07 -04:00
Jonathan Rainville 9bc5bdeb5a feat(@embark/site): add new docs for the v5 tests 2019-07-12 12:52:07 -04:00
Jonathan Rainville 9dcf236ab7 feat(@embark/site): update blockchain and contracts docs to v5 2019-07-12 12:52:06 -04:00
Jonathan Rainville 162d66b675 feat: enable starting and switching storage configs in tests 2019-07-12 12:51:56 -04:00
Jonathan Rainville 63ab21ee81 feat(@embark/test-runner): make modules configurable per test
Make storage, ens and communication configurable per test
Tested ENS and it works like a charm
2019-07-12 12:44:53 -04:00
Jonathan Rainville 9648aaf4b1 feat: add test env to embark test and disable modules by default 2019-07-12 12:40:34 -04:00
Jonathan Rainville 8a2325c071 feat: add warning and errors for new configs 2019-07-12 12:40:33 -04:00
Jonathan Rainville 92d25e1d1b refactor: simplify blockchain and contract configs
Implements https://notes.status.im/yrfs8w87SZKfE2ft6MoFIg#
2019-07-12 12:40:27 -04:00
Michael Bradley, Jr 5930cce7dd chore(release): 4.1.0-beta.5 2019-07-10 16:21:47 -05:00
Michael Bradley, Jr 72baf5f6dd refactor(@embark/api-client): remove console.dir statements used during development 2019-07-10 16:06:27 -05:00
Michael Bradley, Jr 5828ae6cc5 fix(@embark/storage): revise timing for process:started and code eval to avoid race conditions 2019-07-10 16:06:27 -05:00
Pascal Precht 2531fc1d26 fix(@embark/test-runner): make `--tx-details` option work again
In https://github.com/embark-framework/embark/commit/87d92b6091 we've introduced a feature in our test runner
to report exact gas costs used when calling Smart Contract methods that
cause computation.

Embark keeps a list of deployed contracts in memory and for all transactions
happening during tests, it'll match them to the contracts that performed them
to produce the report logs.

Unfortunately, we've been [resetting that memory](https://github.com/embark-framework/embark/commit/87d92b6091#diff-92b4f79a0473160fe700440b1ced5204R140) of deployed contracts
after every test, making it practically impossible for Embark to find
matching contracts for any transactions, because contracts aren't necessarily
redeployed per spec, resulting in no additional transaction logs whatsoever.

This commit ensures that the memory is never erased and at the same time
ensures it's not leaking infinitely in case multiple contracts are
deployed multiple times in the same process over several specs.
2019-07-10 14:20:26 -05:00
Michael Bradley, Jr 3590197c55 fix(@cockpit/debugger): check if `debuggingContract` is undefined
Guard against redux-saga fetching races in `componentDidUpdate`.
2019-07-09 13:02:51 -05:00
Pascal Precht 3f77272e71 fix(@cockpit): don't send invalid value to Smart Contract methods
We've introduced a regression in 536a4029ba where the default
`value` sent to payable Smart Contract methods is `-1`, resulting in errors as it's not
a valid value.
2019-07-09 08:10:13 +02:00
Jonathan Rainville 9390673ef4 chore: update shelljs to 0.8.3 for all packages 2019-07-08 11:25:30 -05:00
Jonathan Rainville 1e59b58887 feat(@embark/solc): add embark-solc to monorepo 2019-07-08 11:25:30 -05:00
Jonathan Rainville ad796bc8f8 fix(@embark/site): update contractGeneration plugin api 2019-07-08 10:26:16 -05:00
Jonathan Rainville c87d7da4cc fix(@embark/code-generator): use plugins for contract generation
`contractGeneration` plugins were only used in the Embark console
Now they are used to generate the Dapp artifacts too
2019-07-08 10:26:16 -05:00
emizzle 536a4029ba feat(@cockpit): Pass tx value as wei and add validation
For payable methods inside of the contract interatction section of cockpit, the value input has been updated to pass wei to the API. The input field now accepts value like `100 ether` or 25 szabo`. The value entered is automatically converted to wei and shown to the user in real time.

Additionally, the input is validated for a correct value, with an error shown to the user for incorrectly entered values.

A tooltip has been added to help the user enter correct values.

UI updates can be seen in video here: https://monosnap.com/file/642cHH2HxDeiFLzB2VLqHP9GuqoRfz
2019-07-08 10:00:34 -05:00
Pascal Precht 70ff3c1825 fix(@embark/contracts-manager): ensure ETH values sent through APIs are converted to string
This is due to a bug that has been introduced in d10c0b7951 where we end up
sending values as numbers to web3's `toWei()` utility. The `value` is always sent as number
and in fact always defined, so we just need to check for it's type and convert it to a string
according to `toWei()`'s API.
2019-07-08 10:00:34 -05:00
Michael Bradley, Jr bd602b45ee refactor(@embark/storage): wrap require.resolve in try/catch
Wrap `require.resolve` in try/catch instead of testing the path with
`embark.fs.access`.
2019-07-05 17:01:09 -05:00
Michael Bradley, Jr 13e926659f refactor(@embark/core): move CoreProcess into embark-core 2019-07-05 16:07:58 -05:00
Michael Bradley, Jr 04694edb0b refactor: move storage, ipfs and swarm modules into their own packages 2019-07-05 16:07:45 -05:00