Skip to content

chore: Deploy script update#1436

Open
fusmanii wants to merge 3 commits into
masterfrom
faisal/deploy-scripts
Open

chore: Deploy script update#1436
fusmanii wants to merge 3 commits into
masterfrom
faisal/deploy-scripts

Conversation

@fusmanii
Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4be777f5e0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread script/mintburn/cctp/DeploySponsoredCCTPDstPeripheryUSDC.s.sol
Comment thread script/mintburn/cctp/createSponsoredDeposit.s.sol Outdated
fusmanii added 2 commits May 20, 2026 09:49
Signed-off-by: Faisal Usmani <faisal.of.usmani@gmail.com>
@fusmanii
Copy link
Copy Markdown
Contributor Author

@codex review

@fusmanii fusmanii requested review from grasphoper and tbwebb22 May 20, 2026 13:52
@fusmanii
Copy link
Copy Markdown
Contributor Author

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c5aa03fe32

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

if (block.chainid == 999) {
donationBox.grantRole(donationBox.WITHDRAWER_ROLE(), address(sponsoredCCTPDstPeriphery));
} else {
donationBox.grantRole(donationBox.WITHDRAWER_ROLE(), address(multicallHandler));
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Grant DonationBox withdraw role to the dst periphery

For non-999 deployments this branch grants WITHDRAWER_ROLE only to multicallHandler, but SponsoredCCTPDstPeriphery executes sponsorship logic through delegatecalls that invoke donationBox.withdraw(...) from the periphery context. That means on those chains sponsored flows will revert with AccessControl when they need DonationBox funds. The previous script granted the role to the destination periphery, which is required for these withdrawal paths to work.

Useful? React with 👍 / 👎.

vm.stopBroadcast();

config.set("sponsoredCCTPDstPeriphery", address(sponsoredCCTPDstPeriphery));
config.set(string.concat("sponsoredCCTPDstPeriphery_", tokenName), address(sponsoredCCTPDstPeriphery));
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep canonical config key for deployed dst periphery

This change only writes sponsoredCCTPDstPeriphery_<token> and no longer updates the canonical sponsoredCCTPDstPeriphery key. Existing operational scripts in this repo (for example script/mintburn/cctp/SetUpTokens.s.sol and script/mintburn/cctp/createLighterDeposit.s.sol) still read the canonical key, so after deployment they will target a stale/old address instead of the newly deployed contract.

Useful? React with 👍 / 👎.

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