Box Support #128
barnjamin
announced in
Announcements
Box Support
#128
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Add prefix to all
ReservedState
keys in order to prevent.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 anotherkeygen
, the previous behavior is provided with theidentity
keygen.Box Support
The
storage
module ofbeaker.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.This discussion was created from the release Box Support.
Beta Was this translation helpful? Give feedback.
All reactions