Repository navigation
fix(config): point oracleAccount at the deployed vault's on-chain oracle - #20
Merged
Merged
Conversation
The registry asserted a freshly generated identity that has no authority over CCC2LP2L…: the vault fixes its oracle at initialize() and exposes no setter, so the stored address is the only one post_cycle_root will accept. Reading instance storage gives GBU2Q6BO…; the relay's pre-flight check would otherwise refuse to sign, since ORACLE_SECRET_KEY cannot resolve to a key the contract does not know.
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.
Problem
The registry merged in #18 asserts
oracleAccount: GCVR3V7I…— an identity generated on 2026-09-15 for this purpose, which has no authority over the deployed vault.splitstream-core'sinitialize(admin, oracle, token)fixes the oracle in instance storage, exposes no setter (a secondinitializereturnsAlreadyInitialized, and there is noset_oracleamong the 19 public functions), so a mismatch meanspost_cycle_rootfailsUnauthorizedpermanently.Because
src/relay.tsasserts the keypair resolves to the registry'soracleAccountbefore any RPC call, the current pairing cannot relay at all — the secret would resolve to something other thanGCVR3V7I…, and if it did resolve, the contract would still reject it.Fix
Point
oracleAccountat the address actually stored onCCC2LP2L…, read directly from the contract's instance storage (DataKey::Oracle):The on-chain value is authoritative and immutable, so the config must match it — never the reverse. A comment records why, so a future edit doesn't reintroduce this.
Verification
loadRegistry('.github/splitstream.yml')— the same entrypoint the action uses — passes, and the new G… strkey clears version + CRC16 checksum validation.npm run checkgreen (76 passed, 3 skipped).Still required from the maintainer
ORACLE_SECRET_KEYmust hold the secret forGBU2Q6BO…(the key that signedpost_cycle_root(cycle_id=1)on 2026-09-08).gh secret listis still403for this token, so that is unverified.vaultContractincluded). This PR is a prerequisite in that path too — it removes a config that is wrong in every scenario.