iotaledger / iota-sdk

The IOTA SDK provides developers with a seamless experience to develop on IOTA by providing account abstractions and clients to interact with node APIs.
Apache License 2.0
56 stars 41 forks source link

Make SDK extensible #1519

Open Dr-Electron opened 10 months ago

Dr-Electron commented 10 months ago

Description

For external libraries/applications to use the SDK for their specific use case it would be nice to have interfaces in the SDK that can be extended.

Examples:

Motivation

Open questions (optional)

Tbh I have no clue how complicated this would be for bindings...

Are you planning to do it yourself in a pull request?

No

Thoralf-M commented 10 months ago

Please open own issues for specific things to do

Dr-Electron commented 10 months ago

I just wanted to get your opinion first as see (now) that there are a lot of moving components. Seems like you already (are working on) use traits in different places so that should be nice.

What about bindings? Should we find a way to extend those?

Thoralf-M commented 10 months ago

For things where we have traits we could maybe implement them from bindings via closures. I did some experimentation with the StorageAdapter trait and nodejs here https://github.com/thoralf-m/iota-sdk/commit/bf43fb3ea94016e8d71830bd8aae386ca2ec8624