This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Add support for Lua smart contracts #157
Comments
Depends on #159 |
Might end up more like this where accounts are passed in and state is passed through account userdata: local event = deserialize(data)
if isinstance(event, Signature) then
accounts[1].tokens = accounts[1].tokens + tokens
elseif isinstance(event, Timestamp) and event.date > some_date then
accounts[2].tokens = accounts[2].tokens + tokens
end |
This was referenced Oct 9, 2018
Withdrawing this one. We'll focus on performance and concurrency. |
vkomenda
pushed a commit
to vkomenda/solana
that referenced
this issue
Aug 29, 2021
steviez
added a commit
to steviez/solana
that referenced
this issue
Mar 11, 2024
…#157) These arguments are not read by anything, and they appear to correspond to a proposed feature that is no longer in the codebase.
willhickey
pushed a commit
that referenced
this issue
Mar 16, 2024
These arguments are not read by anything, and they appear to correspond to a proposed feature that is no longer in the codebase.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
here's the AST for a smart contract that waits for either a timestamp or an abort signature:
In Lua, that might look like this:
The text was updated successfully, but these errors were encountered: