ethersphere / user-stories

Repository for maintaining user stories
5 stars 32 forks source link

[User-Story] See file retrieval price #22

Open vojtechsimetka opened 5 years ago

vojtechsimetka commented 5 years ago

Rationale

Knowing how big (expensive) file retrieval of a given file is should be one of the basic functionalities for incentivised system.

User-Story

As a user or a node I should be able to check the price of retrieving given file before doing so.

Epic links

14

Acceptance criteria

Price for file retrieval based on current swap fees and file number of chunks.

Requirements

Work estimate

Related Issues

PaulLeCam commented 5 years ago

Would these RPC endpoints also work for manifests (returning the price of downloading all the files included) or is this only for raw files please?

acud commented 4 years ago

@vojtechsimetka: https://github.com/ethersphere/swarm/issues/1467 https://github.com/ethersphere/swarm/issues/1437 https://github.com/ethersphere/swarm/issues/1438

we did not get a conclusive answer from Daniel or Viktor in this matter, FYI since this task apparently found its way into the backlog

writing something like this to provide pricing for a content addressed hash which is not a manifest would not be so complicated. but then the responsibility about which hashes to call the endpoints with is delegated to the client. which in turn means that the clients should be familiar with rather deep notions of swarm (i.e. they should know that a link pressed it a manifest element and that it does not point to another manifest, for example)