Closed jakehemmerle closed 7 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
programs | 🛑 Canceled (Inspect) | Jan 18, 2024 8:30pm |
@JesseAbram tagging you so you can see what changes to expect
This adds configurations per #17.
In Programs, the
evaluate
function now contains an adiitionalconfig: Option<&[u8]>
parameter, which is a serialized configuration value. This PR modifies theexample-basic-transaction
example to include one of these configurations containing a list of whitelisted addresses in a JSON format.This sets the state for users to be able to reuse or configure a program from a browser, i.e. without having to recompile or upload any Wasm bytecode to the chain.
Breaking:
entropy_programs_runtime::Runtime
methodevaluate
now has an additional parameter of typeOption<&[u8]>
.