Repository navigation
chore(deps): pin solar a849fe3 for 0.3.1 - #132
Conversation
👁️ Cyclops Security Review✅ Reviewed e7c308b (latest) · Coverage: partial · no open findings · report |
| @@ -1 +1 @@ | |||
| f1b75c64ec466637d9040418268b365211d0e939 | |||
| a849fe3d14dd46c133efeba197b4838f07c107b5 | |||
There was a problem hiding this comment.
🔴 Conditional: until tempo-apps' solar-builds.json pins a849fe3d, a hosted deploy or factory release dispatched from main after merge will fail source verification. The doc says a new pin must be added there first (docs/deployment/deployment.md:562-566). The Deploy workflow releases every shared factory from main as its first step. A compiler change moves every release address. Fix: land the pin only after the verifier pins this build and the v0.3.1 tag is confirmed, or block hosted releases until then.
Why this was flagged
Trigger: this applies if tempo-apps' contract-verification solar-builds.json does not yet include a849fe3d14dd46c133efeba197b4838f07c107b5. The PR says the v0.3.1 tag is not published, so that is likely, though it cannot be checked from this checkout. docs/deployment/deployment.md:562-566 says a new solar.lock revision "must be added there and deployed before a hosted deployment built with it". The doc also says the Deploy workflow runs pnpm factory-release <network> all --broadcast from main as its first step, and that "Changing the compiler... changes its address". Every contract's CBOR metadata now carries the 0.3.1-dev+commit.a849fe3d version text, so each runtime and CREATE2 address changes. A Deploy dispatched from main after merge would broadcast new EarnFactory, EarnVault and EarnFees releases that the verifier cannot rebuild, and source verification fails. On the base, main's pin is the build the verifier already accepts. The only safeguard is the PR text asking operators to wait. No code or CI gate enforces it.
Verification: The preflight at factory-release.ts:494-495 only calls sourceVerificationCompilerArguments. It never asks the verifier whether it supports the build. Per factory-release.ts:631-655 and 740-745, contracts that fail verification are already on-chain. The run then throws "Deployed but not source verified ... do not rerun the release".
| @@ -1 +1 @@ | |||
| f1b75c64ec466637d9040418268b365211d0e939 | |||
| a849fe3d14dd46c133efeba197b4838f07c107b5 | |||
There was a problem hiding this comment.
🟡 (optional) Zone router profiles that list SendSpender or CardSpender contracts deployed under the old solar build get new provenance blockers. spenderReleases predicts release addresses from this checkout's creation code. The new compiler version changes every contract's CBOR metadata, so each CREATE2 address moves. Fix: before merging, redeploy the release spenders and CardFactory with this build. Alternatively, have spender provenance accept the reviewed earlier builds. This applies to both sites, deployments/modules/zone-router/releases.ts:55 and :62.
Why this was flagged
This hits any profile whose zoneRouter.spenders lists a spender deployed from the base build. In-repo profiles list none; profiles/README.md:102 documents the field for external deployment repositories. deployments/modules/zone-router/releases.ts:29-36 runs forge inspect <contract> bytecode with the pinned solar. It derives the CREATE2 address from that output for CardFactory (line 58) and SendSpender (line 65). The bytecode now embeds 0.3.1-dev+commit.a849fe3d instead of 0.3.0-dev+commit.f1b75c64, so both predicted addresses change. releaseSendSpender (inspection.ts:246-249) then returns "Spender ... is not the release SendSpender for its settings". The CardSpender branch (inspection.ts:179-195) asks a CardFactory address nobody deployed. isDeployed fails there and is treated as false. index.ts:121 adds these blockers, so router inspection stays incomplete. On the base pin the same spenders pass. Nothing else in the diff updates the release predictions.
Verification: releases.ts:54-69 derives the CREATE2 address from the creation code plus the RELEASE_SALT. Bumping solar.lock from f1b75c64 to a849fe3d therefore changes the creation code of every contract, so both predicted release addresses move. zone-router/index.ts:121 feeds these blockers into inspection, so an existing router with base-build spenders, which passes on the base, is blocked after merge.
What changed
solar.lockpins solara849fe3d14dd46c133efeba197b4838f07c107b5, the commit that sets solar's version to 0.3.1. It contains093ff3f5f6d83c1dd1c8457348455f0ebb078469. The v0.3.1 tag is not published yet; this pins the commit it is expected to point at.deployments/chain/creation.test.tsandfoundry.test.tsfollow the new build string (0.8.38+commit.a849fe3d.solar.0.3.1-dev).snapshots/router-tip20.json: the four warm spend paths cost 12 gas more under the new codegen. Nothing else moves.The router contract release stays at 2, so every deployment record and intent hash is unchanged. Moving to router release 3 comes with the deployment that uses this build: it changes the
zoneintent component, soprofiles/e2e-moderatoneeds its Zone router redeployed on testnet and its record republished.Checks
pnpm verifypasses after a forced rebuild with the pinned solar; the docs link check andgit diff --checkpass.Deploy
Nothing to deploy from this change. Wait for the v0.3.1 tag (and confirm it points at this commit) before running a factory release built with it.