-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(contracts-rfq): relayer exclusivity [SLT-187] (#3202)
* feat: scaffold exclusivity params * test: update to use V2 structs * test: exclusivity on DST chain * test: exclusivity on SRC chain * feat: exclusivity params in bridge * feat: update decoding in relay * feat: check for exclusivity period in relay * test: disable parity tests (no longer backwards compatible) * test: expect quoteID-related event * feat: additional event for tracking quoteID * fix: ignore code-complexity error for now * test: more coverage for `bridgeRelayDetails` * refactor: remove unnecessary casts in tests * refactor: move txId check, comments * test: update for changes from #3204 * test: benchmark for SRC exclusivity * test: benchmark for DST exclusivity * fix: decode into BridgeTransactionV2 Note: technically this isn't necessary AS OF NOW, as V2 struct new fields are ignored by the V1 decoding func. * test: coverage for V1, V2 encoding * test: coverage for using V1 request instead of V2 * refactor: unroll the nested v2 structure * test: update for the unrolled struct * refactor: make backwards-compatible view external * chore: `foundryup` -> `forge fmt` yes, this is slightly annoying :( * refactor: rename event * fix: post-merge getBridgeTransaction -> getBridgeTransactionV2 * refactor: move public `bridge()`, named vars * test: use `quoteRelayer` as exclusivity flag * fix: always use `quoteExclusivitySeconds` as offset in `bridge()` * fix: don't check `exclusivityEndTime` on relays when `exclusivityRelayer` is not set * test: add cases for negative `quoteExclusivitySeconds` * test: enforce `0 < exclusivityEndTime <= deadline` * feat: negative `quoteExclusivitySeconds`
- Loading branch information
1 parent
dfd6701
commit eb3db7c
Showing
15 changed files
with
736 additions
and
155 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
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
Oops, something went wrong.