Skip to content
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

Closed
Jim8y opened this issue May 18, 2021 · 3 comments
Closed

Add Event to Oracle to support automated smart contract #2473

Jim8y opened this issue May 18, 2021 · 3 comments
Labels
discussion Initial issue state - proposed but not yet accepted

Comments

@Jim8y
Copy link
Contributor

Jim8y commented May 18, 2021

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 or Send 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 statement if or when 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

  • Neo 3

Where in the software does this update applies to?

  • Compiler
  • SDK
  • Oracle
@Jim8y Jim8y added the discussion Initial issue state - proposed but not yet accepted label May 18, 2021
@shargon
Copy link
Member

shargon commented May 19, 2021

User must pay for this work, in the past I proposed something similar #672 but it was agreed to do it on the client.

@Jim8y
Copy link
Contributor Author

Jim8y commented May 19, 2021

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.

@vncoelho
Copy link
Member

Agree @Liaojinghui

@Jim8y Jim8y changed the title Add Event to Oracle to support deferred transaction Add Event to Oracle to support automated smart contract May 19, 2021
@Jim8y Jim8y changed the title Add Event to Oracle to support automated smart contract Add Event to Oracle to support automated smart contract (Trigger-Action System) May 25, 2021
@Jim8y Jim8y closed this as completed Jul 15, 2021
@Jim8y Jim8y reopened this Aug 24, 2021
@Jim8y Jim8y changed the title Add Event to Oracle to support automated smart contract (Trigger-Action System) Add Event to Oracle to support automated smart contract Aug 24, 2021
@Jim8y Jim8y closed this as completed Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Initial issue state - proposed but not yet accepted
Projects
None yet
Development

No branches or pull requests

3 participants