Home

Awesome

Bucket

The library is a storage library for canisters to manage Stable Memory.

As far as we know, canisters that storage data into stable memory have many advantages, such as :

Therefore, In order to be compatible with the existing development ecology, we develop two versions :

You can use this as simple as using the TireMap.

<span id="Bucket"></span>

Bucket

<span id="prework"></span>

more details please read the demo

API

<span id="Bucket-HTTP"></span>

Bucket-HTTP

The difference between Bucket-HTTP and Bucket is that Bucket-HTTP has built-in http_request, so people can query files through example : canisterID.raw.ic0.app/static/key

example

https://2fli5-jyaaa-aaaao-aabea-cai.raw.ic0.app/static/0

Due to the problem of IC mainnet, HTTP-StreamingCallback cannot work at present, so only files less than or equal to 3M can be accessed through http.

We will fix this deficiency as soon as possible.

The preparation is almost the same as the above, just change Bucket to Bucket-HTTP

more details please read the demo

API

Disclaimer

YOU EXPRESSLY ACKNOWLEDGE AND AGREE THAT USE OF THIS SOFTWARE IS AT YOUR SOLE RISK. AUTHORS OF THIS SOFTWARE SHALL NOT BE LIABLE FOR DAMAGES OF ANY TYPE, WHETHER DIRECT OR INDIRECT.

Contributing

<span id="hh"></span>

We'd like to collaborate with the community to provide better data storage standard implementation for the developers on the IC, if you have some ideas you'd like to discuss, submit an issue, if you want to improve the code or you made a different implementation, make a pull request!