Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(svm): deploy solana adapter sepolia #899

Open
wants to merge 7 commits into
base: svm-dev
Choose a base branch
from

Conversation

md0x
Copy link
Contributor

@md0x md0x commented Feb 21, 2025

Changes proposed in this PR:

md0x added 3 commits February 21, 2025 17:55
Signed-off-by: Pablo Maldonado <[email protected]>
Signed-off-by: Pablo Maldonado <[email protected]>
@md0x md0x marked this pull request as ready for review February 24, 2025 08:45
};

module.exports = func;
func.tags = ["Solana_Adapter"];
Copy link
Contributor

@Reinis-FRP Reinis-FRP Feb 25, 2025

Choose a reason for hiding this comment

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

nit: other adapter deployment scripts don't use underscores in their tag names and have additional mainnet tag

Comment on lines 17 to 25
const CCTP_TOKEN_MESSENGER_V1 = {
[CHAIN_IDs.MAINNET]: "0xbd3fa81b58ba92a82136038b25adec7066af3155",
[CHAIN_IDs.SEPOLIA]: "0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",
};

const CCTP_MESSAGE_TRANSMITTER_V1 = {
[CHAIN_IDs.MAINNET]: "0x0a992d191deec32afe36203ad87d7d289a738f81",
[CHAIN_IDs.SEPOLIA]: "0x7865fAfC2db2093669d92c0F33AeEF291086BEFD",
};
Copy link
Contributor

Choose a reason for hiding this comment

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

We already have these under L1_ADDRESS_MAP in deploy/consts.ts

Comment on lines 12 to 15
const fromBase58 = (input: string) => {
const decodedBytes = utils.bytes.bs58.decode(input);
return "0x" + Buffer.from(decodedBytes).toString("hex");
};
Copy link
Contributor

Choose a reason for hiding this comment

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

this is duplicate of fromBase58ToBytes32 in src/svm/web3-v1/conversionUtils.ts

const solanaSpokePoolUsdcVault = fromBase58(vault.toBase58());
const solanaSpokePoolBytes32 = fromBase58(solanaSpokePool);

await hre.deployments.deploy("Solana_Adapter", {
Copy link
Contributor

Choose a reason for hiding this comment

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

other adapters take the resulting instance and run contract verification task on it

md0x and others added 3 commits February 25, 2025 16:20
Signed-off-by: Pablo Maldonado <[email protected]>
…-protocol/contracts into pablo/deploy-solana-adapter
@md0x md0x requested a review from chrismaree as a code owner February 25, 2025 17:37
@md0x md0x force-pushed the pablo/deploy-solana-adapter branch 2 times, most recently from a9e215e to 1467679 Compare February 25, 2025 17:48
Signed-off-by: Pablo Maldonado <[email protected]>
@md0x md0x requested a review from Reinis-FRP February 25, 2025 17:55
@@ -178,5 +179,23 @@
"130": {
"SpokePool": { "address": "0x09aea4b2242abC8bb4BB78D537A67a245A7bEC64", "blockNumber": 7915488 },
"MulticallHandler": { "address": "0x924a9f036260DdD5808007E1AA95f08eD08aA569", "blockNumber": 7930191 }
},
"133268194659241": {
Copy link
Member

Choose a reason for hiding this comment

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

this seems like its linted differently to the rest of this file

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.

3 participants