Module capsules
Functions
- Copies a number of contiguous entries in the per-contract non-volatile database. This allows for efficient data structures by avoiding repeated calls to
loadCapsuleandstoreCapsule. Supports overlapping source and destination regions (which will result in the overlapped source values being overwritten). All copied slots must exist in the database (i.e. have been stored and not deleted) - Deletes data in the per-contract non-volatile database. Does nothing if no data was present.
- Returns data previously stored via
storeCapsulein the per-contract non-volatile database. Returns Option::none() if nothing was stored at the given slot. - Stores arbitrary information in a per-contract non-volatile database, which can later be retrieved with
load. If data was already stored at this slot, it is overwritten.