Oracles: add the ability to read from EVM blockchains - #941
Open
krypdkat wants to merge 5 commits into
Open
Conversation
krypdkat
force-pushed
the
features/2026-06-30-oracle-read-cross-chain-EVM-data
branch
2 times, most recently
from
August 19, 2026 07:15
4119b5e to
6fc5bae
Compare
krypdkat
force-pushed
the
features/2026-06-30-oracle-read-cross-chain-EVM-data
branch
from
August 19, 2026 10:35
6fc5bae to
560cf2b
Compare
fnordspace
approved these changes
Aug 25, 2026
fnordspace
left a comment
Contributor
There was a problem hiding this comment.
LGTM, only minor nits
| * | ||
| * Generic read of a SINGLE Qubic log event: given (tick, txHash, logId) the oracle machine | ||
| * returns that one log verbatim - its type, emitting contract index and raw body bytes. logId is | ||
| * the GLOBAL log id (counted from the chain's first log event onward), matched against the logId |
Contributor
There was a problem hiding this comment.
I think it should be counted from the epochs first log event onward, no?
| /// Transaction hash (32-byte digest). | ||
| Array<uint8, 32> txHash; // [8..40) | ||
|
|
||
| /// Global log id of the requested log event (counted from the chain's first log). |
Contributor
There was a problem hiding this comment.
Same as above. I think log id is reset each epoch.
| // add new result codes above this line | ||
| // | ||
| // Codes 3/4 are time-varying observations: treat as retriable, never proof of permanent | ||
| // absence; near the finality boundary computors may split and the query just times out. |
Contributor
There was a problem hiding this comment.
Maybe add that retrying is the job of the calling contract and not part of the oracle machinery.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
add the ability to read/fetch data from other blockchain (EVM compatibility) such as: ETH, BSC, POL, Arbitrum, Base, Optimism,...
use cases: