entropyxyz / programs

Source, toolchain, and examples for using programs on Entropy
https://docs.entropy.xyz/concepts/programs/
GNU Affero General Public License v3.0
19 stars 3 forks source link

Program Configurations MVP #56

Closed jakehemmerle closed 7 months ago

jakehemmerle commented 7 months ago

This adds configurations per #17.

In Programs, the evaluate function now contains an adiitional config: Option<&[u8]> parameter, which is a serialized configuration value. This PR modifies the example-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 method evaluate now has an additional parameter of type Option<&[u8]>.

vercel[bot] commented 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
jakehemmerle commented 7 months ago

@JesseAbram tagging you so you can see what changes to expect