-
Notifications
You must be signed in to change notification settings - Fork 59
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
base: svm-dev
Are you sure you want to change the base?
Conversation
Signed-off-by: Pablo Maldonado <[email protected]>
Signed-off-by: Pablo Maldonado <[email protected]>
Signed-off-by: Pablo Maldonado <[email protected]>
deploy/063_deploy_solana_adapter.ts
Outdated
}; | ||
|
||
module.exports = func; | ||
func.tags = ["Solana_Adapter"]; |
There was a problem hiding this comment.
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
deploy/063_deploy_solana_adapter.ts
Outdated
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", | ||
}; |
There was a problem hiding this comment.
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
deploy/063_deploy_solana_adapter.ts
Outdated
const fromBase58 = (input: string) => { | ||
const decodedBytes = utils.bytes.bs58.decode(input); | ||
return "0x" + Buffer.from(decodedBytes).toString("hex"); | ||
}; |
There was a problem hiding this comment.
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
deploy/063_deploy_solana_adapter.ts
Outdated
const solanaSpokePoolUsdcVault = fromBase58(vault.toBase58()); | ||
const solanaSpokePoolBytes32 = fromBase58(solanaSpokePool); | ||
|
||
await hre.deployments.deploy("Solana_Adapter", { |
There was a problem hiding this comment.
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
Co-authored-by: Reinis Martinsons <[email protected]>
Signed-off-by: Pablo Maldonado <[email protected]>
…-protocol/contracts into pablo/deploy-solana-adapter
a9e215e
to
1467679
Compare
Signed-off-by: Pablo Maldonado <[email protected]>
@@ -178,5 +179,23 @@ | |||
"130": { | |||
"SpokePool": { "address": "0x09aea4b2242abC8bb4BB78D537A67a245A7bEC64", "blockNumber": 7915488 }, | |||
"MulticallHandler": { "address": "0x924a9f036260DdD5808007E1AA95f08eD08aA569", "blockNumber": 7930191 } | |||
}, | |||
"133268194659241": { |
There was a problem hiding this comment.
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
Changes proposed in this PR: