Skip to content

Export low level functions for feeds and soc #379

@r0qs

Description

@r0qs

Hi, currently some very useful low level functions are not exported. To list few: makeSingleOwnerChunkFromData, uploadSingleOwnerChunkData, recoverChunkOwner and downloadSingleOwnerChunk from the soc api, and makeFeedIdentifier, uploadFeedUpdate, downloadFeedUpdate, etc, from the feeds api.

Have those functions exported could allow developers to create more powerful dapps using bee-js. For instance, I want to control the index of a feed, but I cannot do that with the current api. On the other hand, if functions like findNextIndex and uploadFeedUpdate were exported I could do that.

Some dapps will have a different way to create and manage chunks and would be nice if bee-js was flexible enough to allow that.

So I'm wondering if these functions can be exported. Currently, I'm forced to basically replicate most of the feed and soc functions in my own code just to be able to manipulate few parameters like the index since most of these functions have a high level of dependencies between themselves and they are not exported. This seems to remove the necessity to use bee-js as a library for my app.

There is any way that I can manipulate the index of a feed for example? Or get the owner of a soc in the current api?

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0Critical: Tackled by core team ASAPdif:easySomeone with a little familiarity can pick upkind:enhancementA net-new feature or an improvement to an existing featuretype:issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions