Skip to content

chore(scripts): add mainnet support to redeploy script - #1219

Merged
collinsezedike merged 1 commit into
drydocs:mainfrom
ibochielizabeth-spec:fix/redeploy-blend-adapter-network
Oct 23, 2026
Merged

collinsezedike merged 1 commit into
drydocs:mainfrom
ibochielizabeth-spec:fix/redeploy-blend-adapter-network

Conversation

@ibochielizabeth-spec

@ibochielizabeth-spec ibochielizabeth-spec commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Closes #1144

Summary of Changes

  • Updated scripts/redeploy-blend-adapter.sh to allow overriding NETWORK (defaulting to testnet), validating that it only targets testnet or mainnet.
  • Added the same typed MAINNET confirmation used by deploy-mainnet.sh before any mainnet build, upload, or deploy action.
  • Configured network-specific defaults for BLEND_POOL_ID and USDC_ID:
    • Mainnet defaults: Circle mainnet USDC SAC (CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75) and Blend mainnet USDC pool Fixed V2 (CAJJZSGMMM3PD7N33TAPHGBUGTB43OC73HVIK2L2G6BNGGGYOSSYBXBD).
    • Testnet defaults: Blend TestnetV2 pool (CCEBVDYM32YNYCVNRXQKDFFPISJJCV557CDZEIRBEE4NCV4KHPQ44HGF) and testnet USDC SAC (CAQCFVLOBK5GIULPNZRGATJJMIZL5BSP7X5YJVMGCPTUEPFM4AVSRCJU).
  • Updated apps/docs/operations/mainnet-deployment.md rollback instructions to document invoking scripts/redeploy-blend-adapter.sh with NETWORK=mainnet.
  • Updated apps/docs/operations/environment-variables.md deployment variables reference to include NETWORK.

@vercel

vercel Bot commented Oct 20, 2026

Copy link
Copy Markdown

@ibochielizabeth-spec is attempting to deploy a commit to the Collins' projects Team on Vercel.

A member of the Team first needs to authorize it.

@collinsezedike collinsezedike left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@ibochielizabeth-spec the default addresses match packages/shared/src/constants.ts, but this duplicates #1204 (same issue #1144, same three files), so one of the two needs to close. Commit Messages also fails with a 91 character header. See inline.

USDC_ID="${USDC_ID:-CAQCFVLOBK5GIULPNZRGATJJMIZL5BSP7X5YJVMGCPTUEPFM4AVSRCJU}"

echo "Building blend-adapter..."
if [ "$NETWORK" = "mainnet" ]; then

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

deploy-mainnet.sh requires the operator to type MAINNET before it will touch the network. This path now switches to mainnet on the environment variable alone; consider requiring the same typed confirmation here.

@collinsezedike

Copy link
Copy Markdown
Collaborator

@ibochielizabeth-spec this stays as the single path for #1144, and #1204 is being closed because it makes the same change. Two items remain before this can merge. Amend the commit header, currently 91 characters, to 72 or fewer. Add a typed MAINNET confirmation to the mainnet branch so it matches deploy-mainnet.sh; the inline note above points at the spot. The only finding on #1204 was its 73-character header, which is the same fix needed here.

@collinsezedike collinsezedike changed the title chore(scripts): add mainnet network support to redeploy-blend-adapter.sh and align runbooks chore(scripts): add mainnet support to redeploy script Oct 23, 2026
@collinsezedike
collinsezedike force-pushed the fix/redeploy-blend-adapter-network branch from 692f38f to e6c13e2 Compare October 23, 2026 17:01

@collinsezedike collinsezedike left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@ibochielizabeth-spec Thank you for your contribution. If you are interested, there are more open issues to pick up.

@collinsezedike
collinsezedike merged commit 5a8b31a into drydocs:main Oct 23, 2026
10 of 11 checks passed
@collinsezedike

Copy link
Copy Markdown
Collaborator

@ibochielizabeth-spec Thank you for your contribution. If you found Meridian useful, please star the repository: https://github.com/drydocs/meridian.

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.

[Docs] redeploy-blend-adapter.sh is testnet-only but mainnet-deployment.md points to it

2 participants