64 Commits

Author SHA1 Message Date
emizzle
680db4d575 Change over to published swarm-api library 2018-09-12 12:43:10 +10:00
emizzle
1d03f01531 Update warnings in embark after upload
warn user that they need to run a blockchain node and swarm for the dapp to work correctly.
2018-09-10 22:47:31 +10:00
emizzle
b759e9eed7 Add ‘defaultpath’ for upload
Hardcode to ‘index.html’
2018-09-10 22:42:10 +10:00
emizzle
9d39fa39ac Swarm updates for embark
Change __embarkSwarm to use new SwarmJS and change over from promises.

Add note after upload that blockchain nodes needs to be running to access the swarm uploaded dapp.

Fix typo with swarm “on” available.

Linting / cleanup
2018-09-10 22:42:10 +10:00
emizzle
e44b62d550 SwarmJS browser support 2018-09-10 22:42:10 +10:00
emizzle
3f5fe21b90 change to ‘uploadDirectory’ 2018-09-10 22:42:10 +10:00
emizzle
2dc8d8c276 Fix issue with swarm isAvailable 2018-09-10 22:42:10 +10:00
emizzle
fcb75dee11 Move to swarmjs and await geth ready
Move to swarmjs library (in embark-framework).

Wait for geth to start before start of swarm check.
2018-09-10 22:42:10 +10:00
emizzle
b5e8546ebd Converted upload procedure to local SwarmGW lib
# Conflicts:
#	package-lock.json
2018-09-10 22:42:00 +10:00
Michael Bradley, Jr
08fc21c890 gateway URLs: http -> https 2018-08-28 15:44:50 -05:00
Anthony Laibe
39b9d6e1d8 PR feedback 2018-08-23 09:59:02 +01:00
Anthony Laibe
60c6bc3e48 Lint 2018-08-22 10:58:01 +01:00
Anthony Laibe
b0e0989359 Move ipns function to ipfs 2018-08-22 10:48:45 +01:00
Jonathan Rainville
5179eea56f revert trace 2018-08-21 16:05:58 -04:00
Jonathan Rainville
ef9fbb5b6e remove comment 2018-08-21 16:05:58 -04:00
Jonathan Rainville
0204eb6d46 swarm adjustements 2018-08-21 16:05:58 -04:00
Jonathan Rainville
212eb79754 fix small oopsies and make it work 2018-08-21 16:05:58 -04:00
Iuri Matias
29b0d01f22 move processes into core 2018-08-21 16:04:22 -04:00
Iuri Matias
d7340b4f5a move storage processes to their own modules 2018-08-21 16:02:18 -04:00
Anthony Laibe
df8ca76e28 Fix scope of the callback 2018-08-21 15:54:45 -04:00
Iuri Matias
f9f25f33c8 fix swarm upload cmd registration 2018-08-21 15:31:55 -04:00
Iuri Matias
2baa6ed792 make linter happy 2018-08-21 15:30:11 -04:00
Iuri Matias
fd9be8ac84 remove unused param 2018-08-21 15:30:11 -04:00
Iuri Matias
aaf127fd1d move storage config check to the constructor 2018-08-21 15:30:11 -04:00
Iuri Matias
97be8b7463 refactor storage config check 2018-08-21 15:30:11 -04:00
Iuri Matias
46a6d391cd simplify use of callback 2018-08-21 15:30:11 -04:00
Iuri Matias
df97a6ac00 re-add register upload cmd api; refactor storage module initialization 2018-08-21 15:30:11 -04:00
Iuri Matias
e07d06fa4c make linter happy 2018-08-21 15:30:11 -04:00
Iuri Matias
2780b4eb2f fix upload callback 2018-08-21 15:30:11 -04:00
Iuri Matias
7a612ea5df check swarm connection before attempting to connect 2018-08-21 15:30:10 -04:00
Iuri Matias
651ef31bb5 fix start process 2018-08-21 15:30:10 -04:00
Iuri Matias
14710e06d8 use commands to request upload; let storage component figure out which one to call 2018-08-21 15:30:10 -04:00
emizzle
86ba7e3803 linting 2018-08-21 15:12:07 -04:00
emizzle
efe649e4e6 Removed p-iteration from embark altogether.
Replaced usage in storage module (on dapp side) with async.js `detectSeries`
2018-08-21 15:12:07 -04:00
emizzle
a100dd4260 Requested PR fixes
Added catch to live-plugin-manager install promise running in child process

Removed some `else`'s ;)

Only showing solc downloading spinner when `--nodashboard` option is used.

When installing package in main process and simultaneous downloads fail, all callbacks called with error.

Updated logging in npmTimer.
2018-06-15 17:06:59 -04:00
emizzle
eedcdc77a7 Solc loading issue now fully resolved
Added better error checking for solidity compilation errors

Extracted timer functionality for downloading packages so it works across the main process and child processes.

Npm class is instantiated only once and reused for event commands.

Npm class can handle concurrent requests for the same package and callback the installation result for each request.
2018-06-15 17:02:53 -04:00
Eric Mastro
c45fdb12df Improve storage logging (during --loglevel trace)
Includes IPFS command run 
Includes response from IPFS/Swarm service checks
Includes url being checked during IPFS/Swarm service checks.
2018-06-05 11:39:28 +10:00
Iuri Matias
37d54e22db refactor services monitor to use events instead of passing addCheck around 2018-06-01 19:32:14 -04:00
Eric Mastro
421f9a4096 Merge in remote 2018-06-01 14:10:54 +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
942a57aa3a Storage config improvements start. Adjusted the config and have started to support those improvements through the codebase.
Currently stuck on starting multiple storage servcies at once. Might need  a change in storage config spec.

WIP.
2018-06-01 13:33:44 +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
emizzle
f6667b6948 Storage config improvements start. Adjusted the config and have started to support those improvements through the codebase.
Currently stuck on starting multiple storage servcies at once. Might need  a change in storage config spec.

WIP.
2018-06-01 13:28:05 +10:00
emizzle
0aa96aa504 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-05-31 20:18:25 +10:00
emizzle
30f0f4dc72 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-05-31 15:18:58 +10:00
emizzle
0a331e9352 Added a global storage module that inits ipfs or swarm depending on dappConnection options. WIP. 2018-05-31 15:18:10 +10:00