Closed 0xjjpa closed 4 years ago
Sadly this one didn't fit in our current focus and workload, moving to Sprint 10.
@hoprnet/hopr-core
is now optional@hoprnet/hopr-core-ethereum
@hoprnet/hopr-core-ethereum
from chat
and server
couldn't make @hoprnet/hopr-chat
package.json look like the example above, this is because both chat
and server
depend on packages like @hoprnet/hopr-utils
for their own use
Introduction
When trying to instantiate
hopr-core
, ahopr-connector
is required as an option to get started. For the time being,hopr-core-ethereum
is the default connector for usinghopr-core
. Right now, one needs to addhopr-core-ethereum
manually to the package usinghopr-core
, which one could argue should be insidehopr-core
as otherwise it's not possible to runhopr-core
.Task Description
hopr-core-ethereum
as a default package inside ofhopr-core
and expose an interface able to consume it on initialization.Definition of Complete
The task is completed when
hopr-core
does not require any other@hoprnet
library to get started on its own.Testing criteria
index.ts
and add@hoprnet/hopr-core
as a package. Create a new instance with default options w/o having to import any other package. This should look something likeconst node = await Hopr.create(Hopr.defaultOptions)
Notes
Right now
chat
andserver
look as follows in terms of package dependencies.after this task, these should look as follows: