Extract shared verify script helpers and remove legacy TimeCurve script (#324) #471
No reviewers
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!471
Loading…
Reference in a new issue
No description provided.
Delete branch "issue-324-verify-script-helpers"
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?
Summary
Extracts shared Anvil/indexer bootstrap helpers for indexer-backed verify scripts (#324, follow-up from #309).
scripts/lib/verify_anvil_common.sh(port-scoped cleanup, Anvil spawn,anvil_send, cooldown warp, guarded PID kill) andscripts/lib/verify_indexer_stack.sh(DeployDev export, registry JSON, Postgres reset, indexer build/start,/v1/statuswait).verify-timecurve-post-end-gates-anvil.sh(Arena v2 incompatible); updatesanvil_rich_state.shmessage.anvil-collection.spec.tsreference, adds#pay-modesanchor, fixesarena-views.mdrelative paths, retargets broken manual-QA arena-views anchors; extendscheck-doc-anchors.shfor arena-views.cargo build --release) before background start so cold-compile VMs pass status wait.arena_wallet_stats_two_epochs_and_bonus_fieldsWarBow BP expectation (1000cumulative across Last Buy epochs without WarBow roll — matches on-chainbattlePointssemantics).Acceptance checklist
bash scripts/test-verify-anvil-lib.shtest-verify-anvil-lib.sh+rg verify-timecurve-post-end(excl. audits/history)e2e-anvil.mdlinks only existing spec filesanvil-collection.spec.tslineverify-podium-live-anvil.shstill PASSbash scripts/verify-podium-live-anvil.shverify-wallet-profile-anvil.shregressionbash scripts/verify-wallet-profile-anvil.shverify-evm-dev-wallet-seed-anvil.shregressionbash scripts/verify-evm-dev-wallet-seed-anvil.shbash scripts/check-doc-anchors.shbash scripts/test-verify-anvil-lib.shVerification for third parties
Confirm
scripts/lib/verify_anvil_common.shuses port-scopedpkill -f "anvil.*${port}"only (not barepkill anvil).Follow-ups
verify-podium-timers-anvil.sh,verify-cred-buy-anvil.sh, …) onto the shared libs when touched next.changed the description
changed the description
Security review — MR !471
Commit reviewed:
c543a83d7397369a866e349c8b04bc7e2b24ec83Scope:
scripts/lib/verify_anvil_common.sh,scripts/lib/verify_indexer_stack.sh, refactoredverify-*-anvil.shscripts, deletedverify-timecurve-post-end-gates-anvil.sh, doc/anchor updates,integration_stage2WarBow BP assertion (750→1000),anvil_rich_state.shmessage.Outcome:
FINDINGS: 0medium+Security review: no medium+ findings on this diff.
Method
ANVIL_PORT,DATABASE_URL,PORT,PG_URL, optionaldb_nameargs) through new shared helpers to sinks (pkill,psql -c,cast send,curl, file writes).Notes (below medium threshold)
yieldomega_verify_pg_reset_*SQL string interpolationPG_URL. No remote input path; requires running verify scripts locally with attacker-controlled env — out of production threat model.pkill -f 'yieldomega-indexer'pkill -f "anvil.*${port}"pkill anvil;test-verify-anvil-lib.shenforces this.yieldomega_verify_kill_pid_if_set127.0.0.1only — unchanged intent.No inline threads (no medium+ items). No
block:securitylabel applied.added 31 commits
main4034dfd9- Merge origin/main into issue-324-verify-script-helpersCompare with previous version
Resolved merge conflicts with
mainby keeping the sharedverify_indexer_stack.shbootstrap path across all seven conflicted verify scripts (verify-donate-pools,verify-indexer-rpc-metrics,verify-last-buy-epoch,verify-podium-live,verify-podium-prize-preview,verify-vault-funding,verify-wallet-profile).Integrated
main's Multicall3 ensure (#307) intoyieldomega_verify_boot_indexer_stackso chain-timer scripts no longer need inline Anvil/indexer bootstrap. Hermetic smoke:test-verify-anvil-lib.shandcheck-doc-anchors.shPASS.changed the description
Security review — MR !471
Commit reviewed:
4034dfd9571aa505dac250696e1a3fe262fb6344Scope:
scripts/lib/verify_anvil_common.sh,scripts/lib/verify_indexer_stack.sh(incl. Multicall3 ensure from #307), refactoredverify-*-anvil.shscripts (7 consumers post-merge), deletedverify-timecurve-post-end-gates-anvil.sh, doc/anchor updates,integration_stage2WarBow BP assertion (750→1000),anvil_rich_state.shmessage.Outcome:
FINDINGS: 0medium+Security review: no medium+ findings on this diff.
Method
origin/mainmerge (4034dfd9); prior review onc543a83dsuperseded for merge-conflict integration (Multicall3 inyieldomega_verify_boot_indexer_stack, seven script consumers).ANVIL_PORT,INDEXER_PORT,DATABASE_URL,PG_URL, optionaldb_nameargs) through shared helpers to sinks (pkill,psql -c,cast send/cast publish,curl, registry file writes).Notes (below medium threshold)
yieldomega_verify_pg_reset_*SQL string interpolationpkill -f 'yieldomega-indexer'pkill -f "anvil.*${port}"pkill anvil; enforced bytest-verify-anvil-lib.sh.yieldomega_verify_kill_pid_if_setLISTEN_ADDR127.0.0.1only.1000)No inline threads (no medium+ items). No
block:securitylabel applied.mentioned in commit
38bedf55af