-
Notifications
You must be signed in to change notification settings - Fork 421
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(agents/sealevel): handle non configured igp account payments (#5075)
### Description - Handles the case where igp fees are paid to a non-configured igp account in a backward compatible way. - Zero out payment for non-matching igp accounts so that the db stays continuous to prevent an infinite loop in the sequencer aware parser but at the same time, enforce payments to the right igp account was made before processing the message. Note: If we want to display these neutralized payments (in say, the Explorer), we'll need to think of a more breaking solution, which isn't necessary today. ### Drive-by changes None ### Related issues - fixes hyperlane-xyz/issues#1392 ### Backward compatibility Yes ### Testing - integration test paying to a different newly deployed account
- Loading branch information
1 parent
6c6d2bc
commit b505997
Showing
9 changed files
with
191 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// This number should be even, so the messages can be split into two equal halves | ||
// sent before and after the relayer spins up, to avoid rounding errors. | ||
pub const SOL_MESSAGES_EXPECTED: u32 = 20; | ||
pub const SOL_MESSAGES_WITH_NON_MATCHING_IGP: u32 = 1; |
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
20 changes: 20 additions & 0 deletions
20
rust/sealevel/environments/local-e2e/gas-oracle-configs.json
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[ | ||
{ | ||
"domain": 13375, | ||
"gasOracle": { | ||
"type": "remoteGasData", | ||
"tokenExchangeRate": "10000000000000000000", | ||
"gasPrice": "0", | ||
"tokenDecimals": 18 | ||
} | ||
}, | ||
{ | ||
"domain": 13376, | ||
"gasOracle": { | ||
"type": "remoteGasData", | ||
"tokenExchangeRate": "10000000000000000000", | ||
"gasPrice": "0", | ||
"tokenDecimals": 18 | ||
} | ||
} | ||
] |