Skip to content

Oracles: add the ability to read from EVM blockchains - #941

Open
krypdkat wants to merge 5 commits into
developfrom
features/2026-06-30-oracle-read-cross-chain-EVM-data
Open

Oracles: add the ability to read from EVM blockchains#941
krypdkat wants to merge 5 commits into
developfrom
features/2026-06-30-oracle-read-cross-chain-EVM-data

Conversation

@krypdkat

Copy link
Copy Markdown
Contributor

add the ability to read/fetch data from other blockchain (EVM compatibility) such as: ETH, BSC, POL, Arbitrum, Base, Optimism,...
use cases:

  • bridging any ERC20
  • inherit other well-developed oracle on other chain
  • get more real time on-chain data from outer (qubic) world

@krypdkat krypdkat changed the title Oracles: add the ability to read to EVM blockchains Oracles: add the ability to read from EVM blockchains Jun 30, 2026
@krypdkat
krypdkat force-pushed the features/2026-06-30-oracle-read-cross-chain-EVM-data branch 2 times, most recently from 4119b5e to 6fc5bae Compare August 19, 2026 07:15
@krypdkat
krypdkat force-pushed the features/2026-06-30-oracle-read-cross-chain-EVM-data branch from 6fc5bae to 560cf2b Compare August 19, 2026 10:35

@fnordspace fnordspace left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, only minor nits

Comment thread src/oracle_interfaces/QubicLogRead.h Outdated
*
* 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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it should be counted from the epochs first log event onward, no?

Comment thread src/oracle_interfaces/QubicLogRead.h Outdated
/// 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).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add that retrying is the job of the calling contract and not part of the oracle machinery.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants