Closed jayz22 closed 5 months ago
Allow host functions to specify its supported protocol bounds, e.g.
{ "name": "test", "export": "t", "functions": [ { "export": "_", "name": "dummy0", "args": [], "return": "Val", "docs": "A dummy function taking 0 arguments and performs no-op. + "min_supported_protocol": 20, + "max_supported_protocol": 21 } ] },
And adds logic (mostly macro generated) that automatically checks and enforces these protocol bounds in various paths:
impl Env for VmCallerEnv
Tests are added in tests/protocol_gate.rs.
tests/protocol_gate.rs
For more context, visit the design doc
What
Allow host functions to specify its supported protocol bounds, e.g.
And adds logic (mostly macro generated) that automatically checks and enforces these protocol bounds in various paths:
impl Env for VmCallerEnv
.Tests are added in
tests/protocol_gate.rs
.For more context, visit the design doc