Skip to content

chore: Tron deployments#1384

Open
tbwebb22 wants to merge 23 commits intomasterfrom
taylor/sp1-usp-tron-deployments
Open

chore: Tron deployments#1384
tbwebb22 wants to merge 23 commits intomasterfrom
taylor/sp1-usp-tron-deployments

Conversation

@tbwebb22
Copy link
Copy Markdown
Contributor

@tbwebb22 tbwebb22 commented Mar 25, 2026

Adds scripts for deploying counterfactuals, UniversalSpokePool, SP1Helios, and SP1HeliosAutoVerifier contracts, and deploys these contracts to Tron. Includes changes from the audit branch.

@tbwebb22 tbwebb22 marked this pull request as ready for review March 30, 2026 19:48
@tbwebb22 tbwebb22 requested review from fusmanii and grasphoper March 30, 2026 19:48
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7dc3e6c66e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

// and must be in a separate file from counterfactual contracts (OZ v4) to avoid name collisions.
import "../sp1-helios/SP1Helios.sol";
import "../sp1-helios/SP1AutoVerifier.sol";
import "../Universal_SpokePool.sol";
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Fix Universal_SpokePool import path in Tron entrypoint

TronImports.sol imports ../Universal_SpokePool.sol, but this repository only contains contracts/spoke-pools/Universal_SpokePool.sol. Because profile.tron compiles contracts/tron as its source root, this bad relative path makes the Tron build fail before any deployment script can run. Point the import at the actual file location so FOUNDRY_PROFILE=tron forge build can resolve the contract graph.

Useful? React with 👍 / 👎.

import { deployContract, resolveChainId } from "../deploy";

async function main(): Promise<void> {
const chainId = resolveChainId();
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Restrict SP1AutoVerifier deployments off mainnet by default

SP1AutoVerifier is a no-op verifier that accepts any proof, but this script resolves chain ID with mainnet as the default when --testnet is omitted. That creates a high-risk footgun where a routine run can deploy an insecure verifier to Tron mainnet and later be wired into SP1Helios, effectively disabling proof validation. Require an explicit opt-in for mainnet (or hard-block it) to prevent accidental insecure production deployments.

Useful? React with 👍 / 👎.

@socket-security
Copy link
Copy Markdown

socket-security bot commented Mar 30, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​tronweb@​6.2.29510010092100

View full report

bmzig
bmzig previously approved these changes Apr 3, 2026
Co-authored-by: bmzig <57361391+bmzig@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants