71 Commits

Author SHA1 Message Date
Jonathan Rainville
737994e5a8 small conflicts 2018-08-01 11:14:02 -04:00
Iuri Matias
7522ae6a21
Merge pull request #662 from embark-framework/features/adding-ipns
Features/adding ipns
2018-07-30 15:20:54 -04:00
Anthony Laibe
d90774a50e PR feedback 2018-07-30 17:06:20 +01:00
Anthony Laibe
6c4250dd44 Adding default callback 2018-07-30 12:52:48 +01:00
Anthony Laibe
e8b2837c93 Add IPNS demo 2018-07-30 12:49:03 +01:00
Anthony Laibe
29aa0c2e92 Simply use promise 2018-07-30 09:52:06 +01:00
Anthony Laibe
ef9e76d7e6 Make __embarkIPFS global 2018-07-30 09:52:06 +01:00
Anthony Laibe
0581dd341c Use promise on ipns namesystem 2018-07-30 09:52:06 +01:00
Anthony Laibe
c5e1f7a621 Adding ipns 2018-07-30 09:51:28 +01:00
Anthony Laibe
4fb2cbe683 Adding register 2018-07-30 09:51:28 +01:00
Anthony Laibe
9a7d0f1d5b Add ipns resolve 2018-07-30 09:51:28 +01:00
Iuri Matias
a38ed97f43 move processes into core 2018-07-27 17:33:50 -04:00
Iuri Matias
a49a1870bc move storage processes to their own modules 2018-07-27 14:55:50 -04:00
Iuri Matias
29161b18a9 use buildUrlFromConfig 2018-07-11 10:24:03 +03:00
Iuri Matias
4aaf83a064 make linter happy 2018-07-09 01:21:27 +03:00
Iuri Matias
ac349f5819 fix callback 2018-07-08 23:41:09 +03:00
Iuri Matias
2c478e26ff move storage config check to the constructor 2018-07-08 21:28:43 +03:00
Iuri Matias
1bd0e8966b simplify getJson 2018-07-08 21:24:19 +03:00
Iuri Matias
768138c5b6 refactor storage config check 2018-07-08 21:14:44 +03:00
Iuri Matias
700b2199bd simplify use of callback 2018-07-08 20:43:41 +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
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
082d7c879a fix getting params from upload field 2018-07-07 22:16:58 +03:00
Iuri Matias
fcd1a4df99 fix logger 2018-07-07 22:00:42 +03:00
Iuri Matias
225414e61a get correct ipfs node depending on the config 2018-07-07 21:56:37 +03:00
Iuri Matias
968b06860c check ipfs connection before attempting to connect 2018-07-07 20:47:40 +03:00
Iuri Matias
3bb97a1bb1 fix start process 2018-07-07 19:29:04 +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
Iuri Matias
7706e276bf
Merge pull request #533 from embark-framework/bug_fix/ipfs-service-check-error
Storage provider initialisation fixes and improvements.
2018-06-15 18:09:30 -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
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
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
emizzle
74d5ee3984 small fixes 2018-06-01 14:06:02 +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
Iuri Matias
75c91992e3
Merge pull request #469 from embark-framework/refactor_contracts_part2
Refactor contracts part2
2018-05-31 10:37:43 -04:00
Iuri Matias
7ee62adb24 remove unused assignment 2018-05-30 17:30:51 -04:00
Iuri Matias
b3173c1ff3 register ipfs cmd correctly 2018-05-30 17:22:12 -04:00
Iuri Matias
b43a766de7 cleanup module call 2018-05-30 13:38:08 -04:00
Jonathan Rainville
29a50ea9cd refactor assertNodeConnection to use it in watch 2018-05-23 11:17:02 -04:00
Iuri Matias
0363c676d4 initialized ipfs object to environment 2018-05-18 15:56:36 -04:00
Iuri Matias
0b70f32bb9 initial work for i18n 2018-05-10 15:01:34 -04:00