Skip to content

ops(arcade): ArcadeEscrow mainnet deploy, verification fix, paymaster Safe batch - #136

Merged
aliXsed merged 1 commit into
mainfrom
claude/arcade-escrow-mainnet
Nov 2, 2026
Merged

aliXsed merged 1 commit into
mainfrom
claude/arcade-escrow-mainnet

Conversation

@aliXsed

@aliXsed aliXsed commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Deployed ArcadeEscrow to zkSync mainnet at 0x661A48370275F10A7f95a86E408B568C08eFeef0 (verified). The record is in ops/arcade-escrow-deployments.md.
  • Adds ops/deploy_arcade_escrow_zksync.sh, a copy of the tipping wrapper: zkSync compile, simulate by default, CONFIRM_MAINNET=YES to broadcast.
  • Fixes ops/verify_zksync_contracts.py. In apply_remappings, the import regex could match from a relative import's closing quote ("../QuotaControl.sol";) into the next line, swallowing the opening quote of the following @openzeppelin import. That import was never remapped. The explorer reported a bare internal error with plain 0.8.26, and IERC20.sol not found once pinned to the zkVM solc. The path group now excludes ; and newlines.
  • ops/safe/arcade-escrow-paymaster-whitelist.json: a Safe Transaction Builder batch for gas sponsorship (below).
Value
Admin Safe 0x5e097AC1…86C9 (2-of-4). The deployer holds no role
Oracle 0x7b0d2471…3fcD, new key in Secret Manager arcade-escrow-oracle-private-key, separate from mission-control's oracle_private_key
minDeposit / maxCharge 200 / 20,000 NODL
Quota 2,000,000 NODL per day
withdrawDelay 1 h (admin timelock 8 days)

Needs a Safe transaction (not executed)

Sponsoring the oracle's gas through BondTreasuryPaymaster 0xb2535281…bfFE needs addWhitelistedContracts([escrow]) + addWhitelistedUsers([oracle]). Only the Safe holds WHITELIST_ADMIN_ROLE. Both calls simulate cleanly from the Safe; import the JSON in the Transaction Builder.

No top-up is needed. The paymaster holds 0.0859 ETH and spent 0.0004 ETH in 30 days. A sponsored charge should cost ~0.000006 ETH, like Payment.pay. Its NODL funds swarm bonds only.

Test plan

  • Mainnet simulation, then broadcast: tx 0x1d6735dd…4f52, status 1
  • On-chain read-back: token, Safe admin, oracle role, all limits, deployer holds no role
  • Explorer verification succeeds with the fixed script (failed 3× before the fix)
  • Regex unit check: relative-then-remapped and multi-line imports both rewrite
  • Safe executes the paymaster whitelist batch
  • First sponsored oracle transaction (after arcade-forge integration)

🤖 Generated with Claude Code

…r import fix

Records the zkSync mainnet ArcadeEscrow at 0x661A…eef0 with the Safe batch that
sponsors its oracle through BondTreasuryPaymaster. Fixes the verifier's import
rewrite, which swallowed a remapped import that followed a relative one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 2, 2026 04:56

Copilot AI 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.

🔵 Needs a closer look

The mainnet sponsorship expansion still requires validation of live target bytecode, role state, and the first sponsored oracle transaction before execution.

No open issues 🎉

What changed in this PR

Adds deployment tooling and records for ArcadeEscrow on zkSync mainnet, fixes import remapping during contract verification, and prepares gas sponsorship for the oracle.

Changes:

  • Adds a deployment wrapper that simulates by default and requires explicit confirmation for mainnet broadcasts.
  • Fixes the verification regex so relative imports do not prevent subsequent imports from being remapped.
  • Records deployment details and provides a paymaster whitelist batch; Safe execution remains pending.
File Description
ops/​verify_zksync_contracts.py Restricts import-path matching to prevent cross-statement matches.
ops/​safe/​arcade-escrow-paymaster-whitelist.json Adds Safe calls to whitelist the escrow and oracle for gas sponsorship.
ops/​deploy_arcade_escrow_zksync.sh Adds guarded deployment tooling with temporary exclusion of L1-only files.
ops/​arcade-escrow-deployments.md Documents mainnet configuration, sponsorship setup, and deployment commands.

Review effort: Balanced

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown

LCOV of commit 71b2f38 during checks #808

Summary coverage rate:
  lines......: 29.5% (1251 of 4243 lines)
  functions..: 32.6% (221 of 677 functions)
  branches...: 30.7% (237 of 773 branches)

Files changed coverage rate: n/a

@aliXsed
aliXsed merged commit b60b6cb into main Nov 2, 2026
4 checks passed
@aliXsed
aliXsed deleted the claude/arcade-escrow-mainnet branch November 2, 2026 05:22
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.

2 participants