from beaker import *
from pyteal import *
from beaker.lib.storage import BoxMapping
# Our custom Struct
class GroceryItem(abi.NamedTuple):
item: abi.Field[abi.String]
purchased: abi.Field[abi.Bool]
class GroceryStates:
grocery_item = BoxMapping(abi.String, GroceryItem)
app = Application("Grocery CheckList with Beaker", state=GroceryStates())
### Add Grocery with Boxes ###
This file has been truncated. show original