Skip to content

[VPD-1313] PrimeV2 deployments for BSC#677

Draft
Debugger022 wants to merge 3 commits into
feat/VPD-1292from
feat/VPD-1313
Draft

[VPD-1313] PrimeV2 deployments for BSC#677
Debugger022 wants to merge 3 commits into
feat/VPD-1292from
feat/VPD-1313

Conversation

@Debugger022
Copy link
Copy Markdown
Contributor

@Debugger022 Debugger022 commented May 29, 2026

Summary

  • Split PrimeLeaderboard into its own deploy script and make the Prime V2 deploy pipeline safe to run against live, Timelock-owned networks.
  • Add the resulting bsctestnet deployment artifacts (contracts deployed, wiring pending via VIP).

Changes

Deploy pipeline

  • New deploy/014-deploy-prime-leaderboard.ts deploys PrimeLeaderboard standalone (proxy + initialize).
  • deploy/014-deploy-prime-v2.ts: deploys PrimeV2 only; reads PrimeLeaderboard via getContract.
  • Gate the ACM-gated setPrimeV2 / setPrimeLeaderboard wiring to hardhat only — live networks wire via VIP.
  • Add live-network implementation verification (verify:verify, wrapped in try/catch).
  • Drop the Prime dependency so deploys no longer re-trigger 012's proxy upgrade, which reverts once ownership has moved to the Timelock.

Deployments

  • bsctestnet artifacts for PrimeLeaderboard and PrimeV2 (proxy + implementation). Contracts are deployed but unwired.

Test plan

  • yarn compile
  • npx hardhat deploy --tags PrimeLeaderboard --network bsctestnet succeeds (no 012 re-run)
  • npx hardhat deploy --tags PrimeV2 --network bsctestnet succeeds; impl verified on BscScan
  • Confirm contracts deployed and unwired (primeV2() / primeLeaderboard() zero)
  • Follow-up VIP wires setPrimeV2 / setPrimeLeaderboard + setMintThreshold

Wiring gated to hardhat (live wires via VIP), add impl verification,
and drop the 'Prime' dependency to avoid re-triggering 012's proxy
upgrade that reverts under Timelock ownership.
Deployment artifacts from deploying PrimeLeaderboard and PrimeV2 to
bsctestnet. Contracts are unwired; setPrimeV2/setPrimeLeaderboard
wiring lands via VIP.
@Debugger022 Debugger022 self-assigned this May 29, 2026
…scripts

Fold the Timelock ownership transfer into each deploy script so it runs
with the deploy tag (the standalone PrimeLeaderboard deploy had no
configure step). Removes the now-redundant 015-configure-prime-v2.
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.

1 participant