Skip to content

Fix/hardhat scripts audit #127

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

Merged
merged 2 commits into from
May 2, 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
159 changes: 75 additions & 84 deletions Errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,21 @@

## interfaces/IWatcherPrecompile.sol

| Error | Signature |
| --------------------------- | ------------ |
| `InvalidChainSlug()` | `0xbff6b106` |
| `InvalidConnection()` | `0x63228f29` |
| `InvalidTransmitter()` | `0x58a70a0a` |
| `InvalidTimeoutRequest()` | `0x600ca372` |
| `InvalidPayloadId()` | `0xfa0b8c86` |
| `InvalidCaller()` | `0x48f5c3ed` |
| `InvalidGateway()` | `0xfc9dfe85` |
| `InvalidSwitchboard()` | `0xf63c9e4d` |
| `RequestAlreadyCancelled()` | `0xc70f47d8` |
| `RequestCancelled()` | `0xe3cf2258` |
| `AlreadyStarted()` | `0x1fbde445` |
| `InvalidLevelNumber()` | `0x5022f14b` |

## interfaces/IWatcherPrecompileLimits.sol

| Error | Signature |
| ------------------------------------------------ | ------------ |
| `ActionNotSupported(address,bytes32)` | `0xa219158f` |
| `NotDeliveryHelper()` | `0x29029c67` |
| `LimitExceeded(address,bytes32,uint256,uint256)` | `0x80bb2621` |
| Error | Signature |
| ------------------------------------- | ------------ |
| `InvalidChainSlug()` | `0xbff6b106` |
| `InvalidConnection()` | `0x63228f29` |
| `InvalidTimeoutRequest()` | `0x600ca372` |
| `InvalidPayloadId()` | `0xfa0b8c86` |
| `InvalidCaller()` | `0x48f5c3ed` |
| `InvalidGateway()` | `0xfc9dfe85` |
| `InvalidSwitchboard()` | `0xf63c9e4d` |
| `RequestAlreadyCancelled()` | `0xc70f47d8` |
| `RequestCancelled()` | `0xe3cf2258` |
| `AlreadyStarted()` | `0x1fbde445` |
| `RequestNotProcessing()` | `0x07ba8aaa` |
| `InvalidLevelNumber()` | `0x5022f14b` |
| `DeadlineNotPassedForOnChainRevert()` | `0x7006aa10` |

## protocol/AddressResolver.sol

Expand All @@ -46,12 +39,6 @@
| `PromiseAlreadySetUp()` | `0x927c53d5` |
| `PromiseRevertFailed()` | `0x0175b9de` |

## protocol/Forwarder.sol

| Error | Signature |
| ------------------------ | ------------ |
| `AsyncModifierNotUsed()` | `0xb9521e1a` |

## protocol/payload-delivery/AuctionManager.sol

| Error | Signature |
Expand All @@ -61,44 +48,50 @@

## protocol/payload-delivery/ContractFactoryPlug.sol

| Error | Signature |
| ------------------------- | ------------ |
| `DeploymentFailed()` | `0x30116425` |
| `ExecutionFailed()` | `0xacfdb444` |
| `information(bool,bytes)` | `0x1a5c6d63` |
| Error | Signature |
| -------------------------- | ------------ |
| `DeploymentFailed()` | `0x30116425` |
| `ExecutionFailed()` | `0xacfdb444` |
| `information(bool,,bytes)` | `0x3a82a1f3` |

## protocol/payload-delivery/FeesManager.sol

| Error | Signature |
| ----------------------------- | ------------ |
| `InsufficientFeesAvailable()` | `0x51488f54` |
| `NoFeesForTransmitter()` | `0x248bac55` |
| `NoFeesBlocked()` | `0x116d68f9` |
| `InvalidWatcherSignature()` | `0x5029f14f` |
| `NonceUsed()` | `0x1f6d5aef` |
| `InvalidCaller()` | `0x48f5c3ed` |
| Error | Signature |
| -------------------------------- | ------------ |
| `InsufficientCreditsAvailable()` | `0xe61dc0aa` |
| `NoFeesForTransmitter()` | `0x248bac55` |
| `NoCreditsBlocked()` | `0xada9eb4c` |
| `InvalidCaller()` | `0x48f5c3ed` |
| `InvalidUserSignature()` | `0xe3fb657c` |
| `AppGatewayNotWhitelisted()` | `0x84e5309f` |
| `InvalidAmount()` | `0x2c5211c6` |
| `InsufficientBalance()` | `0xf4d678b8` |

## protocol/payload-delivery/FeesPlug.sol

| Error | Signature |
| ----------------------------------- | ------------ |
| `FeesAlreadyPaid()` | `0xd3b1ad69` |
| `InsufficientTokenBalance(address)` | `0x642faafa` |
| `InvalidDepositAmount()` | `0xfe9ba5cd` |
| `TokenNotWhitelisted(address)` | `0xea3bff2e` |
| Error | Signature |
| --------------------------------------------------- | ------------ |
| `InsufficientTokenBalance(address,uint256,uint256)` | `0xebd6ced9` |
| `InvalidDepositAmount()` | `0xfe9ba5cd` |
| `TokenNotWhitelisted(address)` | `0xea3bff2e` |

## protocol/payload-delivery/app-gateway/DeliveryUtils.sol

| Error | Signature |
| ----------------------- | ------------ |
| `AllPayloadsExecuted()` | `0x6bc43bfe` |
| `NotFromForwarder()` | `0xe83aa6bd` |
| `CallFailed(bytes32)` | `0xe22e3683` |
| `PayloadTooLarge()` | `0x492f620d` |
| `OnlyAppGateway()` | `0xfec944ea` |
| `WinningBidExists()` | `0xe8733654` |
| `InsufficientFees()` | `0x8d53e553` |
| `ReadOnlyRequests()` | `0x5f16b0e6` |
| Error | Signature |
| ------------------------------------ | ------------ |
| `PayloadTooLarge()` | `0x492f620d` |
| `OnlyAppGateway()` | `0xfec944ea` |
| `WinningBidExists()` | `0xe8733654` |
| `InsufficientFees()` | `0x8d53e553` |
| `ReadOnlyRequests()` | `0x5f16b0e6` |
| `RequestPayloadCountLimitExceeded()` | `0xcbef144b` |
| `MaxMsgValueLimitExceeded()` | `0x97b4e8ce` |

## protocol/payload-delivery/app-gateway/FeesHelpers.sol

| Error | Signature |
| --------------------------------------------- | ------------ |
| `NewMaxFeesLowerThanCurrent(uint256,uint256)` | `0x1345dda1` |

## protocol/socket/Socket.sol

Expand All @@ -109,6 +102,8 @@
| `LowGasLimit()` | `0xd38edae0` |
| `InvalidSlug()` | `0x290a8315` |
| `DeadlinePassed()` | `0x70f65caa` |
| `InsufficientMsgValue()` | `0x78f38f76` |
| `ReadOnlyCall()` | `0xcf8fd6f1` |

## protocol/socket/SocketConfig.sol

Expand All @@ -119,11 +114,12 @@
| `SwitchboardExists()` | `0x2dff8555` |
| `SwitchboardExistsOrDisabled()` | `0x1c7d2487` |

## protocol/socket/SocketUtils.sol
## protocol/socket/SocketFeeManager.sol

| Error | Signature |
| ---------------------- | ------------ |
| `InvalidTransmitter()` | `0x58a70a0a` |
| Error | Signature |
| -------------------- | ------------ |
| `InsufficientFees()` | `0x8d53e553` |
| `FeeTooLow()` | `0x732f9413` |

## protocol/socket/switchboard/FastSwitchboard.sol

Expand All @@ -132,12 +128,6 @@
| `AlreadyAttested()` | `0x35d90805` |
| `WatcherNotFound()` | `0xa278e4ad` |

## protocol/socket/switchboard/SwitchboardBase.sol

| Error | Signature |
| ---------------- | ------------ |
| `InvalidNonce()` | `0x756688fe` |

## protocol/utils/AccessControl.sol

| Error | Signature |
Expand All @@ -156,31 +146,22 @@

| Error | Signature |
| ---------------------------- | ------------ |
| `NotAuthorized()` | `0xea8e4eb5` |
| `NotBridge()` | `0x7fea9dc5` |
| `NotSocket()` | `0xc59f8f7c` |
| `ConnectorUnavailable()` | `0xb1efb84a` |
| `InvalidTokenContract()` | `0x29bdfb34` |
| `ZeroAddressReceiver()` | `0x96bbcf1e` |
| `ZeroAddress()` | `0xd92e233d` |
| `ZeroAmount()` | `0x1f2a2005` |
| `InsufficientFunds()` | `0x356680b7` |
| `InvalidSigner()` | `0x815e1d64` |
| `InvalidFunction()` | `0xdb2079c3` |
| `TimeoutDelayTooLarge()` | `0xc10bfe64` |
| `TimeoutAlreadyResolved()` | `0x7dc8be06` |
| `ResolvingTimeoutTooEarly()` | `0x28fd4c50` |
| `LimitReached()` | `0x3dd19101` |
| `FeesAlreadyPaid()` | `0xd3b1ad69` |
| `NotAuctionManager()` | `0x87944c26` |
| `CallFailed()` | `0x3204506f` |
| `PlugDisconnected()` | `0xe741bafb` |
| `PlugNotFound()` | `0x5f1ac76a` |
| `InvalidAppGateway()` | `0x82ded261` |
| `AppGatewayAlreadyCalled()` | `0xb224683f` |
| `InvalidInboxCaller()` | `0x4f1aa61e` |
| `InvalidCallerTriggered()` | `0x3292d247` |
| `PromisesNotResolved()` | `0xb91dbe7d` |
| `InvalidPromise()` | `0x45f2d176` |
| `InvalidIndex()` | `0x63df8171` |
| `InvalidTransmitter()` | `0x58a70a0a` |
| `FeesNotSet()` | `0x2a831034` |
| `InvalidTokenAddress()` | `0x1eb00b06` |
Expand All @@ -191,12 +172,22 @@
| `BidExceedsMaxFees()` | `0x4c923f3c` |
| `LowerBidAlreadyExists()` | `0xaaa1f709` |
| `AsyncModifierNotUsed()` | `0xb9521e1a` |
| `InvalidIndex()` | `0x63df8171` |
| `RequestAlreadyExecuted()` | `0xd6f1f946` |
| `NoAsyncPromiseFound()` | `0xa2928f68` |
| `PromiseCallerMismatch()` | `0x2b87f115` |
| `RequestCountMismatch()` | `0x98bbcbff` |
| `DeliveryHelperNotSet()` | `0x07e6c946` |

## protocol/watcherPrecompile/WatcherPrecompileConfig.sol

| Error | Signature |
| --------------------------- | ------------ |
| `InvalidGateway()` | `0xfc9dfe85` |
| `InvalidSwitchboard()` | `0xf63c9e4d` |
| `NonceUsed()` | `0x1f6d5aef` |
| `InvalidWatcherSignature()` | `0x5029f14f` |
| Error | Signature |
| ---------------------- | ------------ |
| `InvalidGateway()` | `0xfc9dfe85` |
| `InvalidSwitchboard()` | `0xf63c9e4d` |

## protocol/watcherPrecompile/WatcherPrecompileLimits.sol

| Error | Signature |
| ---------------------------- | ------------ |
| `WatcherFeesNotSet(bytes32)` | `0x1ce1de3f` |
Loading