29 Commits

Author SHA1 Message Date
Iuri Matias
a38ed97f43 move processes into core 2018-07-27 17:33:50 -04:00
Iuri Matias
a38428f762 update to fix tests 2018-07-27 14:55:50 -04:00
Iuri Matias
a49a1870bc move storage processes to their own modules 2018-07-27 14:55:50 -04:00
Iuri Matias
28a9b0e940 fix plugin call 2018-07-08 23:41:37 +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
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
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
44f5186af1 use commands to request upload; let storage component figure out which one to call 2018-07-07 18:11:45 +03:00
emizzle
9f33a05d82 Removed p-iteration from embark altogether.
Replaced usage in storage module (on dapp side) with async.js `detectSeries`
2018-06-27 10:51:53 +10:00
emizzle
6f539198da Abandons all storage initialisation routines if storage is disabled in config. 2018-06-26 14:26:54 +10:00
emizzle
24e1ed36f7 Fixed issue with IPFS not starting when swarm failed.
Added logging when starting of all storage providers has completed, and whether or not there were errors during starting of one of the providers.

Added parallel processing for starting dappConnection storage providers.

Removed irrelevant IPFS error from trace logs when IPFS not available.
2018-06-15 16:35:05 +10:00
Jonathan Rainville
eecd719515 put message if swarm or ipfs is not installed 2018-06-08 10:40:01 -04:00
Iuri Matias
60c687aa41 refactor storage module 2018-06-01 19:32:14 -04:00
emizzle
74d5ee3984 small fixes 2018-06-01 14:06:02 +10:00
emizzle
a11047c681 Further fixes for starting dappConnection processes automatically
moved storage process launching to storage module

refactored all cases of storage url building to util methods

updated cors so that a processes will not include itself in cors list

changed child process command console output to trace, so it's visible when --logLevel == trace
2018-06-01 13:36:46 +10:00
emizzle
927f562a41 Fixed issue with CORS domains for auto-started geth, swarm, and ipfs processes.
Fixes after rebase:
* De-duped i18n en.json
* Re-built package-lock.json

Current WIP is auto-starting storage processes defined in dappConnection config.
2018-06-01 13:35:25 +10:00
emizzle
85117cf55c Dynamic selection of storage provider now working based on improved storage config.
swarm plugin now re-initialises the bzz object when it's availability is checked. this creates a much more stable swarm implementation on the dapp side.

surrounded the storage provider init code block with embark env ready

added alternate swarm gateway url

can now upload dapp to ipfs and run swarm storage and vice versa
2018-06-01 13:35:11 +10:00
emizzle
6ac8672a31 Added a global storage module that inits ipfs or swarm depending on dappConnection options. WIP. 2018-06-01 13:34:49 +10:00
emizzle
0cb79d84a0 Dynamic selection of storage provider now working based on improved storage config.
swarm plugin now re-initialises the bzz object when it's availability is checked. this creates a much more stable swarm implementation on the dapp side.

surrounded the storage provider init code block with embark env ready

added alternate swarm gateway url

can now upload dapp to ipfs and run swarm storage and vice versa
2018-06-01 13:30:01 +10:00
emizzle
ec15823dbc Added a global storage module that inits ipfs or swarm depending on dappConnection options. WIP. 2018-06-01 13:28:28 +10:00