-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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: