Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
139 commits
Select commit Hold shift + click to select a range
8cded4e
fix: rearrange files
ameeshaagrawal Apr 3, 2025
279f827
fix: proxy comments and tests
ameeshaagrawal Apr 3, 2025
86c0af2
fix: diff counter for timeout
ameeshaagrawal Apr 3, 2025
d2ae720
feat: fallback for inbox calls to socket
ameeshaagrawal Apr 3, 2025
0d61a5d
feat: inbox calls to app gateway
ameeshaagrawal Apr 3, 2025
b1d2a26
fix: tests
ameeshaagrawal Apr 3, 2025
cccc84e
fix: renames
ameeshaagrawal Apr 3, 2025
df32d7d
fix: rename
ameeshaagrawal Apr 3, 2025
2a0b554
Merge pull request #104 from SocketDotTech/timeout-id
ameeshaagrawal Apr 7, 2025
f203df3
fix: rename trigger params to overrides for plugs
ameeshaagrawal Apr 7, 2025
b9257c2
fix: decode app gateway from trigger id
ameeshaagrawal Apr 7, 2025
02401c8
feat: emit event on trigger call failure
ameeshaagrawal Apr 7, 2025
69cac40
feat: remove extra params from event
ameeshaagrawal Apr 7, 2025
6b12561
fix: non payable fallback
ameeshaagrawal Apr 7, 2025
4bc91b4
fix: rename
ameeshaagrawal Apr 7, 2025
ea338c0
Merge pull request #105 from SocketDotTech/inbox
ameeshaagrawal Apr 7, 2025
5ff4ec9
chore: cleanup switchboard
tHeMaskedMan981 Apr 8, 2025
20142b1
feat: add version to digest
tHeMaskedMan981 Apr 8, 2025
0c590a9
fix: retry failed payloads, switchboard check
tHeMaskedMan981 Apr 8, 2025
7146048
fix: deadline check for on-chain reverts
tHeMaskedMan981 Apr 8, 2025
92f1f62
fix: tests, added value in overrides
tHeMaskedMan981 Apr 8, 2025
93f0831
fix: excessively safe call
tHeMaskedMan981 Apr 8, 2025
c437fae
fix: payload limits, msgValue limits
tHeMaskedMan981 Apr 8, 2025
0856242
fix: comments
tHeMaskedMan981 Apr 8, 2025
e0899f7
fix: added LibCall from solady
tHeMaskedMan981 Apr 8, 2025
0d08d7e
Merge pull request #107 from SocketDotTech/fix/dos-vectors
tHeMaskedMan981 Apr 8, 2025
4695e97
Merge pull request #106 from SocketDotTech/fix/socket
tHeMaskedMan981 Apr 8, 2025
0447376
fix: async promise
ameeshaagrawal Apr 11, 2025
f775fe5
fix: .then sender and request validation
ameeshaagrawal Apr 11, 2025
9d44c65
fix: forwarder
ameeshaagrawal Apr 11, 2025
b483366
fix: open transmitter option, appGatewayId
tHeMaskedMan981 Apr 11, 2025
11a4d81
feat: socket fees support
tHeMaskedMan981 Apr 11, 2025
7a3e68b
fix: added events for socketFeesManager
tHeMaskedMan981 Apr 11, 2025
1f68edb
fix: addr resolver
ameeshaagrawal Apr 11, 2025
516a365
fix: refactor utils
ameeshaagrawal Apr 11, 2025
b2f1093
Merge branch 'dev' into fix-reauction
ameeshaagrawal Apr 14, 2025
c1edfb4
fix: watcher config
ameeshaagrawal Apr 14, 2025
b0ebff6
fix: utils and common
ameeshaagrawal Apr 14, 2025
7209c6b
fix: fees plug
ameeshaagrawal Apr 14, 2025
820fbb0
fix: base contracts
ameeshaagrawal Apr 14, 2025
e0dc258
fix: lint
ameeshaagrawal Apr 14, 2025
b476806
doc: auction manager
ameeshaagrawal Apr 14, 2025
7d312a9
fix: contract factory plug
ameeshaagrawal Apr 14, 2025
ad58512
docs: delivery helper
ameeshaagrawal Apr 14, 2025
abc03c2
docs: watcher limits
ameeshaagrawal Apr 14, 2025
2233f7d
fix: watcher precompile
ameeshaagrawal Apr 14, 2025
dfef0d1
doc: sb
ameeshaagrawal Apr 15, 2025
c62c1cf
doc: socket and batcher
ameeshaagrawal Apr 15, 2025
98367e7
fix: test and lint
ameeshaagrawal Apr 15, 2025
fe497a0
fix: version and license
ameeshaagrawal Apr 15, 2025
b4bd4b0
fix: triggerId
tHeMaskedMan981 Apr 15, 2025
c8896c4
Merge branch 'fix/evmx-context' into feat/socket-fee-switch
tHeMaskedMan981 Apr 15, 2025
5c0afed
Merge pull request #108 from SocketDotTech/fix/evmx-context
tHeMaskedMan981 Apr 15, 2025
a2ac761
fix: rename dump decoder
ameeshaagrawal Apr 15, 2025
dd6dd8c
feat: Socket Fees Manager tests
tHeMaskedMan981 Apr 15, 2025
a9fd06a
fix: check effect interaction
ameeshaagrawal Apr 15, 2025
bdd3cce
feat: fees changes, WIP
tHeMaskedMan981 Apr 16, 2025
5f293e0
fix: changes till auction
ameeshaagrawal Apr 17, 2025
aef1ebb
feat: watcher precompile fees and callback fees
ameeshaagrawal Apr 17, 2025
b9ca484
feat: callback fees in finalize
ameeshaagrawal Apr 18, 2025
2a7a8e8
fix: unblock and assign fees
ameeshaagrawal Apr 18, 2025
b2b49b0
feat: deduct fees from gateway
ameeshaagrawal Apr 18, 2025
9c39bd0
fix: remove token and chain context from evmx
ameeshaagrawal Apr 18, 2025
e38a395
fix: remove old structs
ameeshaagrawal Apr 18, 2025
6a399f0
fix: wip build fix
ameeshaagrawal Apr 18, 2025
fceb0df
fix: build, wip
tHeMaskedMan981 Apr 21, 2025
f525c11
fix: test build
ameeshaagrawal Apr 21, 2025
c38aeeb
fix: script and test build
ameeshaagrawal Apr 21, 2025
0ebb733
fix: added refund option on execute failure
tHeMaskedMan981 Apr 21, 2025
7243743
fix : use safetransfer for eth
tHeMaskedMan981 Apr 21, 2025
3cc306f
Merge branch 'dev' into fix-reauction
ameeshaagrawal Apr 21, 2025
a235fcc
fix: build
ameeshaagrawal Apr 21, 2025
45c3f83
fix: tests
ameeshaagrawal Apr 21, 2025
b39ae99
Merge pull request #110 from SocketDotTech/fix-reauction
ameeshaagrawal Apr 21, 2025
88d893c
Merge pull request #111 from SocketDotTech/compiler-version
ameeshaagrawal Apr 21, 2025
2788689
fix: default refundAddress
tHeMaskedMan981 Apr 21, 2025
c9d6d79
Merge pull request #109 from SocketDotTech/feat/socket-fee-switch
tHeMaskedMan981 Apr 21, 2025
8c48ba3
wip: consume limit
ameeshaagrawal Apr 21, 2025
3d542f3
feat: sb disable and enable
ameeshaagrawal Apr 22, 2025
914f4a3
fix: optimise trigger
ameeshaagrawal Apr 22, 2025
3be12b2
fix: rename errors
ameeshaagrawal Apr 22, 2025
c91ab9c
fix: event
ameeshaagrawal Apr 22, 2025
a807b55
Merge pull request #115 from SocketDotTech/fees-after-auction
arthcp Apr 22, 2025
8b63382
Merge pull request #116 from SocketDotTech/trigger-fees
arthcp Apr 22, 2025
6c803eb
Merge pull request #117 from SocketDotTech/fees-management
arthcp Apr 22, 2025
5e3a9c9
Merge pull request #118 from SocketDotTech/fees-test
arthcp Apr 22, 2025
1cc0007
fix: remove extra params
ameeshaagrawal Apr 22, 2025
33aeece
fix: emit and return call return details
ameeshaagrawal Apr 22, 2025
8658b95
fix: fee tests
tHeMaskedMan981 Apr 22, 2025
339938a
fix: clean execute params
ameeshaagrawal Apr 22, 2025
6651506
fix: tests
tHeMaskedMan981 Apr 22, 2025
4d75d32
fix: read reentrancy
ameeshaagrawal Apr 23, 2025
e7d5b02
feat: bump gas left by 5%
ameeshaagrawal Apr 23, 2025
9d946e5
fix: unique sign for each chain
ameeshaagrawal Apr 23, 2025
6a4d16f
fix: build
ameeshaagrawal Apr 23, 2025
c9ae29c
feat: store digest in socket
ameeshaagrawal Apr 23, 2025
15ae407
fix: renames
tHeMaskedMan981 Apr 23, 2025
250bc8f
fix: app gateway id
ameeshaagrawal Apr 23, 2025
1e284fd
Merge branch 'dev' into fix/evmx-context
ameeshaagrawal Apr 23, 2025
c36e8d8
Merge pull request #119 from SocketDotTech/fix/evmx-context
ameeshaagrawal Apr 23, 2025
f23d9ea
Merge branch 'dev' into fees-test
ameeshaagrawal Apr 23, 2025
0613efa
feat: wrap unwrap fees
ameeshaagrawal Apr 23, 2025
a8856eb
fix: cache trigger prefix
ameeshaagrawal Apr 23, 2025
930caf8
feat: extra data in digest
ameeshaagrawal Apr 23, 2025
2ef4bcc
fix: tests
ameeshaagrawal Apr 23, 2025
ca5d7d5
fix: comments
ameeshaagrawal Apr 23, 2025
02e9067
fix: tests
ameeshaagrawal Apr 24, 2025
f1a6ce3
fix: payable deposit credit
ameeshaagrawal Apr 24, 2025
91dbe9d
fix: remove approval data from middleware and watcher
ameeshaagrawal Apr 24, 2025
eb419c3
feat: modifier with consume from in case gateways resolve it
ameeshaagrawal Apr 24, 2025
a1e40a4
Merge pull request #112 from SocketDotTech/rename-lib
ameeshaagrawal Apr 24, 2025
28e678e
Merge pull request #121 from SocketDotTech/fees-test
ameeshaagrawal Apr 24, 2025
0d22438
Merge branch 'dev' into socket-review-changes
ameeshaagrawal Apr 24, 2025
011773b
Merge pull request #120 from SocketDotTech/socket-review-changes
ameeshaagrawal Apr 25, 2025
581971e
Merge branch 'dev' into fees
ameeshaagrawal Apr 25, 2025
9570785
Merge pull request #114 from SocketDotTech/fees
ameeshaagrawal Apr 25, 2025
c745562
Merge branch 'master' into dev
ameeshaagrawal Apr 25, 2025
32dbc2b
fix: optimise contract size
ameeshaagrawal Apr 25, 2025
d8e2bad
feat: optimise watcher
ameeshaagrawal Apr 25, 2025
fbf9e49
fix: remove timeout id from params
ameeshaagrawal Apr 25, 2025
7126112
chore: publish socket-protocol
ameeshaagrawal Apr 25, 2025
b0bfc28
Merge pull request #124 from SocketDotTech/update-package
ameeshaagrawal Apr 25, 2025
a7b6343
wip: event fixes
ameeshaagrawal Apr 29, 2025
746c0ca
feat: memory to calldata
ameeshaagrawal Apr 30, 2025
df9d7bb
fix: remove query digest
ameeshaagrawal Apr 30, 2025
2e90f14
fix: build
ameeshaagrawal Apr 30, 2025
7412f04
fix: event and fees sign
ameeshaagrawal May 1, 2025
ff52d07
fix: tests
ameeshaagrawal May 1, 2025
275e89b
Merge pull request #125 from SocketDotTech/optimise-socket
ameeshaagrawal May 1, 2025
631ce85
Merge pull request #126 from SocketDotTech/fix-events
ameeshaagrawal May 1, 2025
5bd85fa
fix : deploy scripts
tHeMaskedMan981 May 1, 2025
34295d8
chore: version
tHeMaskedMan981 May 1, 2025
3c96cd2
Merge pull request #127 from SocketDotTech/fix/hardhat-scripts-audit
ameeshaagrawal May 2, 2025
6de98d4
fix : deployment
tHeMaskedMan981 May 2, 2025
504d48a
fix: override type
ameeshaagrawal May 2, 2025
cfe15e3
fix: removed finalize
tHeMaskedMan981 May 2, 2025
9c1be23
fix: stage deploy
tHeMaskedMan981 May 2, 2025
17eca2a
Merge pull request #128 from SocketDotTech/fix/hardhat-scripts-audit
tHeMaskedMan981 May 2, 2025
9fd2518
Merge pull request #123 from SocketDotTech/dev
arthcp May 2, 2025
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