athenavm / athena

Athena monorepo
https://www.athenavm.org/
Apache License 2.0
6 stars 0 forks source link

Initial set of host functions #28

Open lrettig opened 5 days ago

lrettig commented 5 days ago

https://github.com/athenavm/athena/blob/8924ae45893a6280b6468293b826d69f0d6c2121/interface/src/lib.rs#L211-L219

lrettig commented 3 days ago

Note: we probably also want the ability to deploy a new template and/or contract, i.e., a create host call. I'm intentionally leaving it out of this phase because this requires deeper integration with the host. There are some non-obvious questions about how this works - how addresses are calculated, how we want to handle templates vs. program instances, how we want to vet program code before deployment, how the actual deployment process works (e.g., init code, immutable state), how we cache program code, etc. In other words, it's much more non-trivial than the other host functions here. Let's revisit this as part of the next phase.