modular-network / package-registry

Package registry example contract for EIP spec.
MIT License
1 stars 1 forks source link

Determine Storage Scheme #1

Open CBDotGuru opened 6 years ago

CBDotGuru commented 6 years ago

As specified here https://github.com/ethpm/ethpm-spec/issues/75 we need to determine how to store packages such that the list can be enumerated and packages can be retrieved by name/uri.

Consideration should be given to either use functionality provided at https://github.com/ethpm/ethereum-indexed-enumerable-set-lib or https://github.com/Majoolr/ethereum-libraries/tree/master/LinkedListLib .

We should discuss the pros and cons of each implementation as well as determine if list order matters. Discussion should be had at https://github.com/ethpm/ethpm-spec/issues/75 .

pipermerriam commented 6 years ago

Consider the following requirements from the side of a development framework consuming from a package index.

Bonus points if it's easy for a client to cache the last seen release and to be able to use that information to only pull data on new releases.

Data structure:

Some uniqueness constraints:

Useful but not necessary metadata:

CBDotGuru commented 6 years ago

cc @paulohp