Customizable user provided call filters #186
arrudagates
started this conversation in
Development
Replies: 2 comments 3 replies
-
Rhai is a good contender here, offers decent performance, is well maintained, allows for simple syntax, compiles to AST for efficient storage, offers a decent level of type enforcement and compiles to no-std/wasm. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Wasmi should be explored again, this time it would be interesting to try to provide a higher level interface so that the users can write WASM to interact with the decoded data instead of the raw encoded call data. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We need an efficient system for fully customizable user provided call filters for each track, similar to the current permissions system, but with an extensive rule system.
In the past, a system was implemented with WASM functions, but that seems rather wasteful for this use case. Similarly, JSONLogic was explored (this is used as the frontend rendering logic for RMRK NFTs), but while this seems like a decent compromise, I couldn't find a maintained Rust implementation supporting no-std, so we would either need to fork and add no-std support ourselves or look for something else.
This discussion will be used to track ideas and possible implementations for this.
Beta Was this translation helpful? Give feedback.
All reactions