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

chore: update testnet deployment #393

Merged
merged 3 commits into from
Mar 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 83 additions & 3 deletions deployments/testnet-staging/11155111.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"rpc_url": "https://sepolia.drpc.org",
"ics26Router": {
"implementation": "0xEF47f51d032150A8Eaf345096bf59B783287a3b7",
"implementation": "0x273B1789f0059E50d313F56FA612F22794Cd8f54",
"portCustomizer": "0xAe3E5CCaF3216de61090E68Cf5a191f3b75CaAd3",
"proxy": "0x718AbdD2f29A6aC1a34A3e20Dae378B5d3d2B0E9",
"timeLockAdmin": "0xAe3E5CCaF3216de61090E68Cf5a191f3b75CaAd3"
Expand Down Expand Up @@ -35,7 +35,87 @@
},
"1": {
"clientId": "hub-devnet-sp1-g16-0",
"implementation": "0xF662574E0c3aA73eCaF3AAAcd9B0f0cb8160B3e5",
"implementation": "0x6fa5BaF1F679f48592dd3d9FF7e0B6992e2fc424",
"verifier": "0xfa12c6159Ce398b6B486AC841Cf30b5bF91aBa33",
"counterpartyClientId": "08-wasm-4",
"merklePrefix": [
"ibc",
""
],
"trustedClientState": "000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000db3000000000000000000000000000000000000000000000000000000000012750000000000000000000000000000000000000000000000000000000000001baf80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010657572656b612d6875622d6465762d3500000000000000000000000000000000",
"trustedConsensusState": "0000000000000000000000000000000000000000000000000000000067cc8a1b848d241644170a69dce00e147c786cd298a10488cbd18800645a67cc96b191aab525297d33ed51d1708320418a4839cee34fffccda89629d53c843ac9243f69d",
"updateClientVkey": "0x0070a56918612966dcaf5b88a770e80da5ccd99d8524e3450df9927687576829",
"membershipVkey": "0x008fea06bdc306786dbf2c07c9d8657ed19dcde31c83522b75957a17be802d62",
"ucAndMembershipVkey": "0x00886b5b925c129094c5d9354ee5a13484e34ee7393c8eba1bc3ba4b5cdb8c14",
"misbehaviourVkey": "0x000e1a9c2163445551834af245691be8da2904381df4381afa7e5454080b3dfc"
},
"2": {
"clientId": "ledger-testnet-0",
"implementation": "0xe1Dc43670C42a0bB64abdfE0e7196ce74f061318",
"verifier": "0x52D2b9c86a4ea72631aBFe21143398FAD067469D",
"counterpartyClientId": "08-wasm-0",
"merklePrefix": [
"ibc",
""
],
"trustedClientState": "000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004139000000000000000000000000000000000000000000000000000000000001c200000000000000000000000000000000000000000000000000000000000002a3000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000086c6f63616c6e6574000000000000000000000000000000000000000000000000",
"trustedConsensusState": "0000000000000000000000000000000000000000000000000000000067ce043cbf06f68df40f72174f305550c83f8be4094a9b22811299fcc6e130ceaf79404916e6896df067df36cfac5511375e249a4ed9b73392e115413a9d9b259f44e382",
"updateClientVkey": "0x007fc9e6b74e2b072d2529fa7615c0eb91b38b1e364f5de5398fc1dbd4bd6409",
"membershipVkey": "0x00bb87e99e31bb4e1d37e5b7bc270a28fa0d51f38d5064e7c40e253503715bfd",
"ucAndMembershipVkey": "0x009d6c521a1d97a60947dff3dc76f000f815d05ecb9427d0b7e97d9d30008962",
"misbehaviourVkey": "0x001667ed324955520dca4bc72ea0e39fec88796972d8f8fd0b6d07891b0e240f"
},
"3": {
"clientId": "hub-testnet-sp1-4",
"implementation": "0x78d1E47676afb208767E477bE208e64908dd8B7f",
"verifier": "0xa600ecDa9cb6c26ca3eF5255cE14266E0e49591E",
"counterpartyClientId": "08-wasm-255",
"merklePrefix": [
"ibc",
""
],
"trustedClientState": "000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a60768000000000000000000000000000000000000000000000000000000000012750000000000000000000000000000000000000000000000000000000000001baf8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000870726f7669646572000000000000000000000000000000000000000000000000",
"trustedConsensusState": "0000000000000000000000000000000000000000000000000000000067d0877df79e10401f264efe8ea672439db5b5808a740de1f1e54132c0ac4d9ee4b16415734d1fefac2f710555aa7c1f95099eb8923b63ea24a3800e63455aa55c880116",
"updateClientVkey": "0x0091b7766cc8267041695229bc125c29a96a8d2ec016a57c6a87a4f1c52c088f",
"membershipVkey": "0x00bb87e99e31bb4e1d37e5b7bc270a28fa0d51f38d5064e7c40e253503715bfd",
"ucAndMembershipVkey": "0x00987cfc3ada54abcd8d7a0ff5299ba7acfa1d4e7cf1bba8054edaa1e4b1ee5c",
"misbehaviourVkey": "0x006ebe640f81926f9c51ccf622717a2fd53a1c7ed034818b99b0bbaacb98fe61"
},
"4": {
"clientId": "client-0",
"implementation": "0x78d1E47676afb208767E477bE208e64908dd8B7f",
"verifier": "0xa600ecDa9cb6c26ca3eF5255cE14266E0e49591E",
"counterpartyClientId": "08-wasm-255",
"merklePrefix": [
"ibc",
""
],
"trustedClientState": "000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a60768000000000000000000000000000000000000000000000000000000000012750000000000000000000000000000000000000000000000000000000000001baf8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000870726f7669646572000000000000000000000000000000000000000000000000",
"trustedConsensusState": "0000000000000000000000000000000000000000000000000000000067d0877df79e10401f264efe8ea672439db5b5808a740de1f1e54132c0ac4d9ee4b16415734d1fefac2f710555aa7c1f95099eb8923b63ea24a3800e63455aa55c880116",
"updateClientVkey": "0x0091b7766cc8267041695229bc125c29a96a8d2ec016a57c6a87a4f1c52c088f",
"membershipVkey": "0x00bb87e99e31bb4e1d37e5b7bc270a28fa0d51f38d5064e7c40e253503715bfd",
"ucAndMembershipVkey": "0x00987cfc3ada54abcd8d7a0ff5299ba7acfa1d4e7cf1bba8054edaa1e4b1ee5c",
"misbehaviourVkey": "0x006ebe640f81926f9c51ccf622717a2fd53a1c7ed034818b99b0bbaacb98fe61"
},
"5": {
"clientId": "client-1",
"implementation": "0xe1Dc43670C42a0bB64abdfE0e7196ce74f061318",
"verifier": "0x52D2b9c86a4ea72631aBFe21143398FAD067469D",
"counterpartyClientId": "08-wasm-0",
"merklePrefix": [
"ibc",
""
],
"trustedClientState": "000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004139000000000000000000000000000000000000000000000000000000000001c200000000000000000000000000000000000000000000000000000000000002a3000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000086c6f63616c6e6574000000000000000000000000000000000000000000000000",
"trustedConsensusState": "0000000000000000000000000000000000000000000000000000000067ce043cbf06f68df40f72174f305550c83f8be4094a9b22811299fcc6e130ceaf79404916e6896df067df36cfac5511375e249a4ed9b73392e115413a9d9b259f44e382",
"updateClientVkey": "0x007fc9e6b74e2b072d2529fa7615c0eb91b38b1e364f5de5398fc1dbd4bd6409",
"membershipVkey": "0x00bb87e99e31bb4e1d37e5b7bc270a28fa0d51f38d5064e7c40e253503715bfd",
"ucAndMembershipVkey": "0x009d6c521a1d97a60947dff3dc76f000f815d05ecb9427d0b7e97d9d30008962",
"misbehaviourVkey": "0x001667ed324955520dca4bc72ea0e39fec88796972d8f8fd0b6d07891b0e240f"
},
"6": {
"clientId": "client-2",
"implementation": "0x6fa5BaF1F679f48592dd3d9FF7e0B6992e2fc424",
"verifier": "0xfa12c6159Ce398b6B486AC841Cf30b5bF91aBa33",
"counterpartyClientId": "08-wasm-4",
"merklePrefix": [
Expand All @@ -50,4 +130,4 @@
"misbehaviourVkey": "0x000e1a9c2163445551834af245691be8da2904381df4381afa7e5454080b3dfc"
}
}
}
}
7 changes: 5 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ genesis-sp1-ics07: build-sp1-programs
@echo "Generating the genesis file..."
RUST_LOG=info cargo run --bin operator --release -- genesis -o scripts/genesis.json

# Deploy scripts. If these fail to land due to gas price fluctuations, try again with a higher gas price:
# adding something like `--legacy --with-gas-price 100gwei` -- depending on the current gas prices.


Comment on lines +153 to +156
Copy link
Member

Choose a reason for hiding this comment

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

Kinda feel like all these scripts should be removed since after the security exercises tomorrow, I think we won't be using them from the justfile ever

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not in prod, but they are sure useful in testnet :) But that might get moved to a CI pipeline or something eventually.

# Deploy the SP1ICS07Tendermint contract to the Eth Sepolia testnet if the `.env` file is present
deploy-sp1-ics07: genesis-sp1-ics07
@echo "Deploying the SP1ICS07Tendermint contract"
Expand All @@ -169,8 +173,7 @@ deploy-ics20: build-contracts
# Deploy the SP1ICS07Tendermint contract using environment variables
deploy-light-client: build-contracts
@echo "Deploying the SP1ICS07Tendermint contract with RPC_URL=$RPC_URL"
forge script scripts/deployments/DeploySP1ICS07Tendermint.sol --rpc-url $RPC_URL --private-key $PRIVATE_KEY -vvv --broadcast --legacy --with-gas-price 2gwei

forge script scripts/deployments/DeploySP1ICS07Tendermint.sol --rpc-url $RPC_URL --private-key $PRIVATE_KEY -vvv --broadcast

# Generate the fixtures for the Solidity tests using the e2e tests
generate-fixtures-solidity: clean install-operator install-relayer
Expand Down
17 changes: 9 additions & 8 deletions scripts/deployments/DeploySP1ICS07Tendermint.sol
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,14 @@ contract DeploySP1ICS07TendermintScript is DeploySP1ICS07Tendermint, Script {

(bool success, address verifierAddr) = Strings.tryParseAddress(deployment.verifier);

IICS02Client router = IICS02Client(ics26RouterDeployment.proxy);

vm.assertEq(
address(router.getClient(deployment.clientId)),
deployment.implementation,
"address of clientId in ics26Router doesn't match implementation address"
);

vm.assertTrue(
success,
string.concat(
Expand All @@ -94,7 +102,7 @@ contract DeploySP1ICS07TendermintScript is DeploySP1ICS07Tendermint, Script {
);

vm.assertEq(
address(ics07Tendermint.VERIFIER()),
actualVerifierAddress,
verifierAddr,
"verifier address doesn't match"
);
Expand Down Expand Up @@ -122,13 +130,6 @@ contract DeploySP1ICS07TendermintScript is DeploySP1ICS07Tendermint, Script {
"ucAndMembershipVkey doesn't match"
);

IICS02Client router = IICS02Client(ics26RouterDeployment.proxy);

vm.assertEq(
address(router.getClient(deployment.clientId)),
deployment.implementation,
"address of clientId in ics26Router doesn't match implementation address"
);

IICS02ClientMsgs.CounterpartyInfo memory counterparty = router.getCounterparty(deployment.clientId);

Expand Down
Loading