Skip to content

Commit 7ece1fa

Browse files
Merge pull request #157 from SocketDotTech/staging
Staging
2 parents 38accd5 + c7c425a commit 7ece1fa

File tree

145 files changed

+8410
-7400
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+8410
-7400
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@ broadcast/
2929
deployments/local_addresses.json
3030
deployments/local_verification.json
3131

32-
testScript.sh
32+
testScript.sh
33+
CLAUDE.md

Errors.md

Lines changed: 89 additions & 140 deletions
Original file line numberDiff line numberDiff line change
@@ -1,193 +1,142 @@
11
# Custom Error Codes
22

3-
## base/PlugBase.sol
4-
5-
| Error | Signature |
6-
| ---------------------------- | ------------ |
7-
| `SocketAlreadyInitialized()` | `0xc9500b00` |
8-
9-
## interfaces/IWatcherPrecompile.sol
10-
11-
| Error | Signature |
12-
| ------------------------------------- | ------------ |
13-
| `InvalidChainSlug()` | `0xbff6b106` |
14-
| `InvalidConnection()` | `0x63228f29` |
15-
| `InvalidTimeoutRequest()` | `0x600ca372` |
16-
| `InvalidPayloadId()` | `0xfa0b8c86` |
17-
| `InvalidCaller()` | `0x48f5c3ed` |
18-
| `InvalidGateway()` | `0xfc9dfe85` |
19-
| `InvalidSwitchboard()` | `0xf63c9e4d` |
20-
| `RequestAlreadyCancelled()` | `0xc70f47d8` |
21-
| `RequestCancelled()` | `0xe3cf2258` |
22-
| `AlreadyStarted()` | `0x1fbde445` |
23-
| `RequestNotProcessing()` | `0x07ba8aaa` |
24-
| `InvalidLevelNumber()` | `0x5022f14b` |
25-
| `DeadlineNotPassedForOnChainRevert()` | `0x7006aa10` |
26-
27-
## protocol/AddressResolver.sol
28-
29-
| Error | Signature |
30-
| ---------------------------- | ------------ |
31-
| `InvalidAppGateway(address)` | `0x0e66940d` |
32-
33-
## protocol/AsyncPromise.sol
3+
## evmx/fees/FeesPool.sol
344

35-
| Error | Signature |
36-
| ------------------------------- | ------------ |
37-
| `PromiseAlreadyResolved()` | `0x56b63537` |
38-
| `OnlyForwarderOrLocalInvoker()` | `0xa9fb0b28` |
39-
| `PromiseAlreadySetUp()` | `0x927c53d5` |
40-
| `PromiseRevertFailed()` | `0x0175b9de` |
41-
42-
## protocol/payload-delivery/AuctionManager.sol
5+
| Error | Signature |
6+
| ------------------ | ------------ |
7+
| `TransferFailed()` | `0x90b8ec18` |
438

44-
| Error | Signature |
45-
| ---------------------------- | ------------ |
46-
| `InvalidBid()` | `0xc6388ef7` |
47-
| `MaxReAuctionCountReached()` | `0xf2b4388c` |
48-
49-
## protocol/payload-delivery/ContractFactoryPlug.sol
9+
## evmx/helpers/AsyncPromise.sol
5010

5111
| Error | Signature |
5212
| -------------------------- | ------------ |
53-
| `DeploymentFailed()` | `0x30116425` |
54-
| `ExecutionFailed()` | `0xacfdb444` |
55-
| `information(bool,,bytes)` | `0x3a82a1f3` |
13+
| `PromiseAlreadyResolved()` | `0x56b63537` |
14+
| `OnlyInvoker()` | `0x74ed21f5` |
15+
| `PromiseAlreadySetUp()` | `0x927c53d5` |
16+
| `PromiseRevertFailed()` | `0x0175b9de` |
17+
| `NotLatestPromise()` | `0x39ca95d3` |
5618

57-
## protocol/payload-delivery/FeesManager.sol
19+
## evmx/plugs/ContractFactoryPlug.sol
5820

5921
| Error | Signature |
6022
| -------------------------------- | ------------ |
61-
| `InsufficientCreditsAvailable()` | `0xe61dc0aa` |
62-
| `NoFeesForTransmitter()` | `0x248bac55` |
63-
| `NoCreditsBlocked()` | `0xada9eb4c` |
64-
| `InvalidCaller()` | `0x48f5c3ed` |
65-
| `InvalidUserSignature()` | `0xe3fb657c` |
66-
| `AppGatewayNotWhitelisted()` | `0x84e5309f` |
67-
| `InvalidAmount()` | `0x2c5211c6` |
68-
| `InsufficientBalance()` | `0xf4d678b8` |
23+
| `DeploymentFailed()` | `0x30116425` |
24+
| `ExecutionFailed(bytes32,bytes)` | `0xd255d8a3` |
25+
| `information(bool,,bytes)` | `0x3a82a1f3` |
6926

70-
## protocol/payload-delivery/FeesPlug.sol
27+
## evmx/plugs/FeesPlug.sol
7128

7229
| Error | Signature |
7330
| --------------------------------------------------- | ------------ |
7431
| `InsufficientTokenBalance(address,uint256,uint256)` | `0xebd6ced9` |
7532
| `InvalidDepositAmount()` | `0xfe9ba5cd` |
7633
| `TokenNotWhitelisted(address)` | `0xea3bff2e` |
7734

78-
## protocol/payload-delivery/app-gateway/DeliveryUtils.sol
79-
80-
| Error | Signature |
81-
| ------------------------------------ | ------------ |
82-
| `PayloadTooLarge()` | `0x492f620d` |
83-
| `OnlyAppGateway()` | `0xfec944ea` |
84-
| `WinningBidExists()` | `0xe8733654` |
85-
| `InsufficientFees()` | `0x8d53e553` |
86-
| `ReadOnlyRequests()` | `0x5f16b0e6` |
87-
| `RequestPayloadCountLimitExceeded()` | `0xcbef144b` |
88-
| `MaxMsgValueLimitExceeded()` | `0x97b4e8ce` |
35+
## evmx/watcher/RequestHandler.sol
8936

90-
## protocol/payload-delivery/app-gateway/FeesHelpers.sol
91-
92-
| Error | Signature |
93-
| --------------------------------------------- | ------------ |
94-
| `NewMaxFeesLowerThanCurrent(uint256,uint256)` | `0x1345dda1` |
37+
| Error | Signature |
38+
| ----------------------- | ------------ |
39+
| `InsufficientMaxFees()` | `0x0e5bc492` |
9540

96-
## protocol/socket/Socket.sol
41+
## protocol/Socket.sol
9742

9843
| Error | Signature |
9944
| ----------------------------------------- | ------------ |
10045
| `PayloadAlreadyExecuted(ExecutionStatus)` | `0xf4c54edd` |
10146
| `VerificationFailed()` | `0x439cc0cd` |
10247
| `LowGasLimit()` | `0xd38edae0` |
103-
| `InvalidSlug()` | `0x290a8315` |
104-
| `DeadlinePassed()` | `0x70f65caa` |
10548
| `InsufficientMsgValue()` | `0x78f38f76` |
106-
| `ReadOnlyCall()` | `0xcf8fd6f1` |
10749

108-
## protocol/socket/SocketConfig.sol
50+
## protocol/SocketConfig.sol
10951

11052
| Error | Signature |
11153
| ------------------------------- | ------------ |
112-
| `InvalidConnection()` | `0x63228f29` |
113-
| `InvalidSwitchboard()` | `0xf63c9e4d` |
11454
| `SwitchboardExists()` | `0x2dff8555` |
11555
| `SwitchboardExistsOrDisabled()` | `0x1c7d2487` |
11656

117-
## protocol/socket/SocketFeeManager.sol
57+
## protocol/SocketFeeManager.sol
11858

11959
| Error | Signature |
12060
| -------------------- | ------------ |
12161
| `InsufficientFees()` | `0x8d53e553` |
12262
| `FeeTooLow()` | `0x732f9413` |
12363

124-
## protocol/socket/switchboard/FastSwitchboard.sol
64+
## protocol/SocketUtils.sol
65+
66+
| Error | Signature |
67+
| -------------------- | ------------ |
68+
| `OnlyOffChain()` | `0x9cbfe066` |
69+
| `SimulationFailed()` | `0x2fbab3ac` |
70+
71+
## protocol/switchboard/FastSwitchboard.sol
12572

12673
| Error | Signature |
12774
| ------------------- | ------------ |
12875
| `AlreadyAttested()` | `0x35d90805` |
12976
| `WatcherNotFound()` | `0xa278e4ad` |
13077

131-
## protocol/utils/AccessControl.sol
78+
## utils/AccessControl.sol
13279

13380
| Error | Signature |
13481
| ------------------- | ------------ |
13582
| `NoPermit(bytes32)` | `0x962f6333` |
13683

137-
## protocol/utils/AddressResolverUtil.sol
84+
## utils/common/Errors.sol
13885

139-
| Error | Signature |
140-
| ----------------------------------------- | ------------ |
141-
| `OnlyPayloadDelivery()` | `0x7ccc3a43` |
142-
| `OnlyWatcherPrecompile()` | `0x663a892a` |
143-
| `OnlyWatcherPrecompileOrDeliveryHelper()` | `0xe93a2814` |
144-
145-
## protocol/utils/common/Errors.sol
146-
147-
| Error | Signature |
148-
| ---------------------------- | ------------ |
149-
| `NotSocket()` | `0xc59f8f7c` |
150-
| `ZeroAddress()` | `0xd92e233d` |
151-
| `TimeoutDelayTooLarge()` | `0xc10bfe64` |
152-
| `TimeoutAlreadyResolved()` | `0x7dc8be06` |
153-
| `ResolvingTimeoutTooEarly()` | `0x28fd4c50` |
154-
| `LimitReached()` | `0x3dd19101` |
155-
| `FeesAlreadyPaid()` | `0xd3b1ad69` |
156-
| `NotAuctionManager()` | `0x87944c26` |
157-
| `CallFailed()` | `0x3204506f` |
158-
| `PlugNotFound()` | `0x5f1ac76a` |
159-
| `InvalidAppGateway()` | `0x82ded261` |
160-
| `AppGatewayAlreadyCalled()` | `0xb224683f` |
161-
| `InvalidInboxCaller()` | `0x4f1aa61e` |
162-
| `InvalidCallerTriggered()` | `0x3292d247` |
163-
| `PromisesNotResolved()` | `0xb91dbe7d` |
164-
| `InvalidPromise()` | `0x45f2d176` |
165-
| `InvalidTransmitter()` | `0x58a70a0a` |
166-
| `FeesNotSet()` | `0x2a831034` |
167-
| `InvalidTokenAddress()` | `0x1eb00b06` |
168-
| `InvalidWatcherSignature()` | `0x5029f14f` |
169-
| `NonceUsed()` | `0x1f6d5aef` |
170-
| `AuctionClosed()` | `0x36b6b46d` |
171-
| `AuctionAlreadyStarted()` | `0x628e3883` |
172-
| `BidExceedsMaxFees()` | `0x4c923f3c` |
173-
| `LowerBidAlreadyExists()` | `0xaaa1f709` |
174-
| `AsyncModifierNotUsed()` | `0xb9521e1a` |
175-
| `InvalidIndex()` | `0x63df8171` |
176-
| `RequestAlreadyExecuted()` | `0xd6f1f946` |
177-
| `NoAsyncPromiseFound()` | `0xa2928f68` |
178-
| `PromiseCallerMismatch()` | `0x2b87f115` |
179-
| `RequestCountMismatch()` | `0x98bbcbff` |
180-
| `DeliveryHelperNotSet()` | `0x07e6c946` |
181-
182-
## protocol/watcherPrecompile/WatcherPrecompileConfig.sol
183-
184-
| Error | Signature |
185-
| ---------------------- | ------------ |
186-
| `InvalidGateway()` | `0xfc9dfe85` |
187-
| `InvalidSwitchboard()` | `0xf63c9e4d` |
188-
189-
## protocol/watcherPrecompile/WatcherPrecompileLimits.sol
190-
191-
| Error | Signature |
192-
| ---------------------------- | ------------ |
193-
| `WatcherFeesNotSet(bytes32)` | `0x1ce1de3f` |
86+
| Error | Signature |
87+
| --------------------------------------------- | ------------ |
88+
| `ZeroAddress()` | `0xd92e233d` |
89+
| `InvalidTransmitter()` | `0x58a70a0a` |
90+
| `InvalidTokenAddress()` | `0x1eb00b06` |
91+
| `InvalidSwitchboard()` | `0xf63c9e4d` |
92+
| `SocketAlreadyInitialized()` | `0xc9500b00` |
93+
| `NotSocket()` | `0xc59f8f7c` |
94+
| `PlugNotFound()` | `0x5f1ac76a` |
95+
| `ResolvingScheduleTooEarly()` | `0x207e8731` |
96+
| `CallFailed()` | `0x3204506f` |
97+
| `InvalidAppGateway()` | `0x82ded261` |
98+
| `AppGatewayAlreadyCalled()` | `0xb224683f` |
99+
| `InvalidCallerTriggered()` | `0x3292d247` |
100+
| `InvalidPromise()` | `0x45f2d176` |
101+
| `InvalidWatcherSignature()` | `0x5029f14f` |
102+
| `NonceUsed()` | `0x1f6d5aef` |
103+
| `AsyncModifierNotSet()` | `0xcae106f9` |
104+
| `WatcherNotSet()` | `0x42d473a7` |
105+
| `InvalidTarget()` | `0x82d5d76a` |
106+
| `InvalidIndex()` | `0x63df8171` |
107+
| `InvalidChainSlug()` | `0xbff6b106` |
108+
| `InvalidPayloadSize()` | `0xfbdf7954` |
109+
| `InvalidOnChainAddress()` | `0xb758c606` |
110+
| `InvalidScheduleDelay()` | `0x9a993219` |
111+
| `AuctionClosed()` | `0x36b6b46d` |
112+
| `AuctionNotOpen()` | `0xf0460077` |
113+
| `BidExceedsMaxFees()` | `0x4c923f3c` |
114+
| `LowerBidAlreadyExists()` | `0xaaa1f709` |
115+
| `RequestCountMismatch()` | `0x98bbcbff` |
116+
| `InvalidAmount()` | `0x2c5211c6` |
117+
| `InsufficientCreditsAvailable()` | `0xe61dc0aa` |
118+
| `InsufficientBalance()` | `0xf4d678b8` |
119+
| `InvalidCaller()` | `0x48f5c3ed` |
120+
| `InvalidGateway()` | `0xfc9dfe85` |
121+
| `RequestAlreadyCancelled()` | `0xc70f47d8` |
122+
| `DeadlineNotPassedForOnChainRevert()` | `0x7006aa10` |
123+
| `InvalidBid()` | `0xc6388ef7` |
124+
| `MaxReAuctionCountReached()` | `0xf2b4388c` |
125+
| `MaxMsgValueLimitExceeded()` | `0x97b4e8ce` |
126+
| `OnlyWatcherAllowed()` | `0xdf7d227c` |
127+
| `InvalidPrecompileData()` | `0x320062c0` |
128+
| `InvalidCallType()` | `0x39d2eb55` |
129+
| `NotRequestHandler()` | `0x8f8cba5b` |
130+
| `NotInvoker()` | `0x8a6353d1` |
131+
| `NotPromiseResolver()` | `0x86d876b2` |
132+
| `RequestPayloadCountLimitExceeded()` | `0xcbef144b` |
133+
| `InsufficientFees()` | `0x8d53e553` |
134+
| `RequestAlreadySettled()` | `0x66fad465` |
135+
| `NoWriteRequest()` | `0x9dcd3065` |
136+
| `AlreadyAssigned()` | `0x9688dc51` |
137+
| `OnlyAppGateway()` | `0xfec944ea` |
138+
| `NewMaxFeesLowerThanCurrent(uint256,uint256)` | `0x1345dda1` |
139+
| `InvalidContract()` | `0x6eefed20` |
140+
| `InvalidData()` | `0x5cb045db` |
141+
| `InvalidSignature()` | `0x8baa579f` |
142+
| `DeadlinePassed()` | `0x70f65caa` |

0 commit comments

Comments
 (0)