Box Support
-
Add prefix to all
ReservedStatekeys 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
ReservedStateinstances. It can be overridden with anotherkeygen, the previous behavior is provided with theidentitykeygen. -
Box Support
The
storagemodule ofbeaker.libcontains 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
hashmethod 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.