-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(protocol): Change require to custom err in bridge contracts (#13220
) Co-authored-by: Keszey Dániel <[email protected]> Co-authored-by: Jeffery Walsh <[email protected]> Co-authored-by: Daniel Wang <[email protected]>
- Loading branch information
1 parent
0d3e769
commit 6e8cb82
Showing
22 changed files
with
309 additions
and
129 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// SPDX-License-Identifier: MIT | ||
// _____ _ _ _ _ | ||
// |_ _|_ _(_) |_____ | | __ _| |__ ___ | ||
// | |/ _` | | / / _ \ | |__/ _` | '_ (_-< | ||
// |_|\__,_|_|_\_\___/ |____\__,_|_.__/__/ | ||
|
||
pragma solidity ^0.8.18; | ||
|
||
abstract contract BridgeCustomErrors { | ||
error B_CANNOT_RECEIVE(); | ||
error B_DENIED(); | ||
error B_ERC20_CANNOT_RECEIVE(); | ||
error B_ETHER_RELEASED_ALREADY(); | ||
error B_EV_DO_NOT_BURN(); | ||
error B_EV_NOT_AUTHORIZED(); | ||
error B_EV_PARAM(); | ||
error B_FAILED_TRANSFER(); | ||
error B_FORBIDDEN(); | ||
error B_GAS_LIMIT(); | ||
error B_INCORRECT_VALUE(); | ||
error B_INIT_PARAM_ERROR(); | ||
error B_MSG_HASH_NULL(); | ||
error B_MSG_NON_RETRIABLE(); | ||
error B_MSG_NOT_FAILED(); | ||
error B_NULL_APP_ADDR(); | ||
error B_OWNER_IS_NULL(); | ||
error B_SIGNAL_NOT_RECEIVED(); | ||
error B_STATUS_MISMTACH(); | ||
error B_WRONG_CHAIN_ID(); | ||
error B_WRONG_TO_ADDRESS(); | ||
error B_ZERO_SIGNAL(); | ||
} |
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
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.