-
Notifications
You must be signed in to change notification settings - Fork 410
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into trevor/relayer-validator-metrics
- Loading branch information
Showing
10 changed files
with
128 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 6 additions & 19 deletions
25
rust/chains/hyperlane-cosmos/src/payloads/aggregate_ism.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,17 @@ | ||
use hyperlane_core::{HyperlaneMessage, RawHyperlaneMessage}; | ||
use serde::{Deserialize, Serialize}; | ||
|
||
#[derive(Serialize, Deserialize, Debug)] | ||
pub struct ModulesAndThresholdRequest { | ||
modules_and_threshold: ModulesAndThresholdRequestInner, | ||
} | ||
|
||
impl ModulesAndThresholdRequest { | ||
pub fn new(message: &HyperlaneMessage) -> Self { | ||
Self { | ||
modules_and_threshold: ModulesAndThresholdRequestInner { | ||
message: hex::encode(RawHyperlaneMessage::from(message)), | ||
}, | ||
} | ||
} | ||
pub struct VerifyRequest { | ||
pub verify: VerifyRequestInner, | ||
} | ||
|
||
#[derive(Serialize, Deserialize, Debug)] | ||
struct ModulesAndThresholdRequestInner { | ||
/// Hex-encoded Hyperlane message | ||
pub struct VerifyRequestInner { | ||
pub metadata: String, | ||
pub message: String, | ||
} | ||
|
||
#[derive(Serialize, Deserialize, Debug)] | ||
pub struct ModulesAndThresholdResponse { | ||
pub threshold: u8, | ||
/// Bech32-encoded module addresses | ||
pub modules: Vec<String>, | ||
pub struct VerifyResponse { | ||
pub verified: bool, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,50 @@ | ||
{ | ||
"chains": { | ||
"sealeveltest1": { | ||
"name": "sealeveltest1", | ||
"chainId": 13375, | ||
"domainId": 13375, | ||
"mailbox": "692KZJaoe2KRcD6uhCQDLLXnLNA5ZLnfvdqjE4aX9iu1", | ||
"interchainGasPaymaster": "DrFtxirPPsfdY4HQiNZj2A9o4Ux7JaL3gELANgAoihhp", | ||
"validatorAnnounce": "DH43ae1LwemXAboWwSh8zc9pG8j72gKUEXNi57w8fEnn", | ||
"protocol": "sealevel", | ||
"blocks": { | ||
"reorgPeriod": 0, | ||
"confirmations": 0 | ||
}, | ||
"rpcUrls": [ | ||
{ | ||
"http": "http://localhost:8899" | ||
} | ||
], | ||
"index": { | ||
"from": 1, | ||
"mode": "sequence" | ||
} | ||
}, | ||
"sealeveltest2": { | ||
"name": "sealeveltest2", | ||
"chainId": 13376, | ||
"domainId": 13376, | ||
"mailbox": "9tCUWNjpqcf3NUSrtp7vquYVCwbEByvLjZUrhG5dgvhj", | ||
"interchainGasPaymaster": "G5rGigZBL8NmxCaukK2CAKr9Jq4SUfAhsjzeri7GUraK", | ||
"validatorAnnounce": "3Uo5j2Bti9aZtrDqJmAyuwiFaJFPFoNL5yxTpVCNcUhb", | ||
"protocol": "sealevel", | ||
"blocks": { | ||
"reorgPeriod": 0, | ||
"confirmations": 0 | ||
}, | ||
"rpcUrls": [ | ||
{ | ||
"http": "http://localhost:8899" | ||
} | ||
], | ||
"index": { | ||
"from": 1, | ||
"mode": "sequence" | ||
} | ||
"chains": { | ||
"sealeveltest1": { | ||
"name": "sealeveltest1", | ||
"chainId": 13375, | ||
"domainId": 13375, | ||
"mailbox": "692KZJaoe2KRcD6uhCQDLLXnLNA5ZLnfvdqjE4aX9iu1", | ||
"merkleTreeHook": "692KZJaoe2KRcD6uhCQDLLXnLNA5ZLnfvdqjE4aX9iu1", | ||
"interchainGasPaymaster": "DrFtxirPPsfdY4HQiNZj2A9o4Ux7JaL3gELANgAoihhp", | ||
"validatorAnnounce": "DH43ae1LwemXAboWwSh8zc9pG8j72gKUEXNi57w8fEnn", | ||
"protocol": "sealevel", | ||
"blocks": { | ||
"reorgPeriod": 0, | ||
"confirmations": 0 | ||
}, | ||
"rpcUrls": [ | ||
{ | ||
"http": "http://localhost:8899" | ||
} | ||
], | ||
"index": { | ||
"from": 1, | ||
"mode": "sequence" | ||
} | ||
}, | ||
"sealeveltest2": { | ||
"name": "sealeveltest2", | ||
"chainId": 13376, | ||
"domainId": 13376, | ||
"mailbox": "9tCUWNjpqcf3NUSrtp7vquYVCwbEByvLjZUrhG5dgvhj", | ||
"merkleTreeHook": "9tCUWNjpqcf3NUSrtp7vquYVCwbEByvLjZUrhG5dgvhj", | ||
"interchainGasPaymaster": "G5rGigZBL8NmxCaukK2CAKr9Jq4SUfAhsjzeri7GUraK", | ||
"validatorAnnounce": "3Uo5j2Bti9aZtrDqJmAyuwiFaJFPFoNL5yxTpVCNcUhb", | ||
"protocol": "sealevel", | ||
"blocks": { | ||
"reorgPeriod": 0, | ||
"confirmations": 0 | ||
}, | ||
"rpcUrls": [ | ||
{ | ||
"http": "http://localhost:8899" | ||
} | ||
], | ||
"index": { | ||
"from": 1, | ||
"mode": "sequence" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters