-
Notifications
You must be signed in to change notification settings - Fork 1k
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 Event to Oracle to support automated smart contract #2473
Comments
User must pay for this work, in the past I proposed something similar #672 but it was agreed to do it on the client. |
I think doing it on the client is a different thing. Having events supported can make smart contract more automated. Since we already have Oracle, we can empower neo smart contract with it. |
Agree @Liaojinghui |
Oracle can not only provide the data feed; it can also be used to provide events from the real world. Such as deferred transactions to make the smart contract more automated. For example, transactions like
Buy some neo when the price of neo is below 100 USD
orSend 10 neo to Alice when the Block Height is over 7,372,612
are impossible to be executed automatically for the smart contract because the only way to activate smart contract is by sending transactions. Therefore, the user must send a transaction himself when the price of neo is below $100, the statementif
orwhen
can only be checked by the user. But with Oracle, the user could send such deferred transactions and register events to Oracle. When Oracle notices that the required condition is met, it then triggers the transaction automatically.Neo Version
Where in the software does this update applies to?
The text was updated successfully, but these errors were encountered: