Skip to content

Box Support

Compare
Choose a tag to compare
@barnjamin barnjamin released this 16 Nov 16:38
· 133 commits to master since this release
d82fd0a
  • Add prefix to all ReservedState keys in order to prevent accidental overwriting of a key.

    WARNING: This is a BREAKING change

    This was done to nerf a "foot-gun" that might cause a contract author to overwrite the same key for separate ReservedState instances. It can be overridden with another keygen, the previous behavior is provided with the identity keygen.

  • Box Support

    The storage module of beaker.lib contains 2 new constructs to help use Boxes.

    • List : Allows a list of some static abi type to be stored and accessed by index

    • Mapping: Allows a map of some key to a specific box containing a certain data structure

    Example is available in examples/boxen/application.py

  • Multi Page Application Precompile hash support

    If an Application results in >0 extra pages, the hash of the program may be impossible to produce in the AVM since max stack size is 4k. The hash method of the Precompile will now allow an argument for which page to access (0 indexed) and return an Expression to compute the hash for that page.