Deploy: Arena v2 DeployDev + production deploy (clean reset) #259
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:open_issues
agents
agent:security_audit
agent:verify
area
timecurve
arena
arena-v2
audit
block:feature_review
block:security
bug
contracts
design
devops
docs
documentation
enhancement
epic
feature
frontend
indexer
low priority
megaeth
operations
ops
performance
QA
qa checklist
referrals
removal
security
smart-contracts
tech-debt
testing
time-arena
timecurve
visual-qa
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
code/yieldomega#259
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Deploy scripts for TimeArena v2 full redeploy. Parent epic: #238.
Relevant files
contracts/script/DeployDev.s.sol,DeployProduction.s.solscripts/start-local-anvil-stack.sh,scripts/e2e-anvil.shdocs/operations/deployment-guide.mdfrontend/.env.localgeneration scriptsAcceptance criteria
start()Verification checklist
bash scripts/start-local-anvil-stack.shgreenbash scripts/e2e-anvil.shgreenmarked as related to #238
mentioned in issue #238
mentioned in commit
a719e4674bImplementation summary (GitLab #259)
Arena v2 deploy scripts and operator tooling are updated on
main(a719e46).What changed
DeployDev.s.sol: wiresTimeArena,PlayCred,PodiumVaults,AdminSellVault,ReferralRegistry,Doubloon; callsstartArena(); seeds DOUB / mock CL8Y / CRED for the Playwright mock wallet.TimeArenaBuyRouterremains viaDeployKumbayaAnvilFixtureswhenYIELDOMEGA_DEPLOY_KUMBAYA=1(#270).DeployProduction.s.sol: Arena v2 only (no Leprechaun / Rabbit / Presale / TimeCurve / FeeRouter);DEPLOY_ADMIN_ADDRESSownership; optionalSTART_ARENA=1.scripts/deploy-megaeth-contracts.sh+write-production-registry-from-broadcast.sh: Arena v2 registry keys andVITE_TIME_ARENA_*hints; sharedscripts/lib/arena_v2_registry_from_broadcast.sh.export_abi_hashes.sh: Arena v2 ABI set.deployment-guide.md#arena-v2-deploy-gitlab-259,INV-DEPLOY-259-*ininvariants-and-business-logic.md, guardrails +dev-addresses.example.json.DevStackIntegration.t.sol(6 Forge tests).Verification checklist for @brouie
cd contracts && FOUNDRY_PROFILE=ci forge test --match-contract DevStackIntegrationbash scripts/e2e-anvil.sh(DeployDev + Kumbaya fixtures; 5/6 Playwright specs green on last run —anvil-arena-wallet-writesDOUB buy may need follow-up, same class of flake as pre-changemain)bash scripts/start-local-anvil-stack.shwithSKIP_ANVIL_RICH_STATE=1— confirmfrontend/.env.localhasVITE_TIME_ARENA_ADDRESS, vaults,PlayCredscripts/deploy-megaeth-contracts.sh --helpand review env block indeployment-guide.md#arena-v2-deploy-gitlab-259scripts/write-production-registry-from-broadcast.shemitsTimeArena,PodiumVaults,AdminSellVault,PlayCredkeysPlease verify on your side and confirm before we close. Leaving issue open until sign-off.
/cc @brouie
mentioned in commit
c0037cfc6bmentioned in commit
33da86e474QA agent verification (#259)
Per maintainer direction: QA agent runs sign-off (not @brouie). Recorded on
mainafter merge of33da86e.Results
FOUNDRY_PROFILE=ci forge test --match-contract DevStackIntegration— 6/6 passbash scripts/e2e-anvil.sh— DeployDev + Kumbaya deploy OK; Playwright 4/5 (anvil-arena-cred-buy, mount, onchain-reads pass;anvil-arena-wallet-writesDOUB buy timeout — same known flake as prior runs)scripts/deploy-megaeth-contracts.sh --help— Arena v2 defaults documentedscripts/write-production-registry-from-broadcast.shon AnvilDeployProductionbroadcast — registry includesTimeArena,PodiumVaults,AdminSellVault,PlayCred,ReferralRegistry,Doubloonforge build --sizes—TimeArenaruntime 24,637 B (MegaEVM 512 KiB limit #72)SKIP_ANVIL_RICH_STATE=1 bash scripts/start-local-anvil-stack.sh— DeployDev +local-anvil-registry.jsonOK; stack exited before.env.localbecause indexer did not answer on port 3101 (Postgres pool timeout in this environment — infra, not deploy wiring)Docs
Checklist and evidence table:
deployment-guide.md#arena-v2-deploy-gitlab-259(§ QA verification).Issue remains open until product accepts QA sign-off or files follow-ups for the DOUB E2E flake / stack indexer port.
mentioned in issue #274
mentioned in issue #275
mentioned in issue #278
mentioned in merge request !412
mentioned in merge request !415
mentioned in issue #300
mentioned in merge request !440
mentioned in issue #309
mentioned in commit
99e3478b29