@rabby-wallet/rabby-bridge 0.0.13-alpha.0 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) hide show
  1. package/README.md +1 -131
  2. package/dist/chains.d.ts +2 -1
  3. package/dist/chains.js +2 -0
  4. package/dist/data.d.ts +3 -0
  5. package/dist/data.js +3 -0
  6. package/dist/index.d.ts +1 -7
  7. package/dist/index.js +0 -3
  8. package/dist/quote.d.ts +4 -18
  9. package/dist/quote.js +65 -282
  10. package/package.json +3 -13
  11. package/dist/calldata/abi.d.ts +0 -29
  12. package/dist/calldata/abi.js +0 -160
  13. package/dist/calldata/across/deposit.d.ts +0 -2
  14. package/dist/calldata/across/deposit.js +0 -36
  15. package/dist/calldata/across/depositNative.d.ts +0 -2
  16. package/dist/calldata/across/depositNative.js +0 -45
  17. package/dist/calldata/across/depositNow.d.ts +0 -2
  18. package/dist/calldata/across/depositNow.js +0 -35
  19. package/dist/calldata/across/depositV3.d.ts +0 -2
  20. package/dist/calldata/across/depositV3.js +0 -35
  21. package/dist/calldata/across/depositV3Now.d.ts +0 -2
  22. package/dist/calldata/across/depositV3Now.js +0 -34
  23. package/dist/calldata/across/index.d.ts +0 -4
  24. package/dist/calldata/across/index.js +0 -31
  25. package/dist/calldata/across/swapAndBridge.d.ts +0 -2
  26. package/dist/calldata/across/swapAndBridge.js +0 -70
  27. package/dist/calldata/across/validate.d.ts +0 -3
  28. package/dist/calldata/across/validate.js +0 -30
  29. package/dist/calldata/chains.d.ts +0 -2
  30. package/dist/calldata/chains.js +0 -35
  31. package/dist/calldata/destination.d.ts +0 -6
  32. package/dist/calldata/destination.js +0 -148
  33. package/dist/calldata/diagnostics.d.ts +0 -4
  34. package/dist/calldata/diagnostics.js +0 -18
  35. package/dist/calldata/expect.d.ts +0 -25
  36. package/dist/calldata/expect.js +0 -129
  37. package/dist/calldata/hex.d.ts +0 -6
  38. package/dist/calldata/hex.js +0 -46
  39. package/dist/calldata/index.d.ts +0 -20
  40. package/dist/calldata/index.js +0 -85
  41. package/dist/calldata/lifi/across/acrossV4Erc20Min.d.ts +0 -2
  42. package/dist/calldata/lifi/across/acrossV4Erc20Min.js +0 -26
  43. package/dist/calldata/lifi/across/acrossV4NativeMin.d.ts +0 -2
  44. package/dist/calldata/lifi/across/acrossV4NativeMin.js +0 -22
  45. package/dist/calldata/lifi/across/index.d.ts +0 -6
  46. package/dist/calldata/lifi/across/index.js +0 -19
  47. package/dist/calldata/lifi/allbridge/index.d.ts +0 -3
  48. package/dist/calldata/lifi/allbridge/index.js +0 -26
  49. package/dist/calldata/lifi/celer/index.d.ts +0 -4
  50. package/dist/calldata/lifi/celer/index.js +0 -10
  51. package/dist/calldata/lifi/centrifuge/index.d.ts +0 -3
  52. package/dist/calldata/lifi/centrifuge/index.js +0 -22
  53. package/dist/calldata/lifi/frax/index.d.ts +0 -4
  54. package/dist/calldata/lifi/frax/index.js +0 -29
  55. package/dist/calldata/lifi/garden/index.d.ts +0 -3
  56. package/dist/calldata/lifi/garden/index.js +0 -22
  57. package/dist/calldata/lifi/gaszip/index.d.ts +0 -6
  58. package/dist/calldata/lifi/gaszip/index.js +0 -15
  59. package/dist/calldata/lifi/index.d.ts +0 -4
  60. package/dist/calldata/lifi/index.js +0 -60
  61. package/dist/calldata/lifi/intents/index.d.ts +0 -4
  62. package/dist/calldata/lifi/intents/index.js +0 -10
  63. package/dist/calldata/lifi/layerswap/index.d.ts +0 -4
  64. package/dist/calldata/lifi/layerswap/index.js +0 -10
  65. package/dist/calldata/lifi/m0/index.d.ts +0 -3
  66. package/dist/calldata/lifi/m0/index.js +0 -33
  67. package/dist/calldata/lifi/mayan/index.d.ts +0 -4
  68. package/dist/calldata/lifi/mayan/index.js +0 -10
  69. package/dist/calldata/lifi/method.d.ts +0 -6
  70. package/dist/calldata/lifi/method.js +0 -16
  71. package/dist/calldata/lifi/native/index.d.ts +0 -4
  72. package/dist/calldata/lifi/native/index.js +0 -80
  73. package/dist/calldata/lifi/params.d.ts +0 -30
  74. package/dist/calldata/lifi/params.js +0 -370
  75. package/dist/calldata/lifi/paxos/index.d.ts +0 -4
  76. package/dist/calldata/lifi/paxos/index.js +0 -10
  77. package/dist/calldata/lifi/polymer/index.d.ts +0 -4
  78. package/dist/calldata/lifi/polymer/index.js +0 -10
  79. package/dist/calldata/lifi/relay/index.d.ts +0 -6
  80. package/dist/calldata/lifi/relay/index.js +0 -15
  81. package/dist/calldata/lifi/shape.d.ts +0 -4
  82. package/dist/calldata/lifi/shape.js +0 -31
  83. package/dist/calldata/lifi/squid/index.d.ts +0 -6
  84. package/dist/calldata/lifi/squid/index.js +0 -15
  85. package/dist/calldata/lifi/stargate/index.d.ts +0 -5
  86. package/dist/calldata/lifi/stargate/index.js +0 -15
  87. package/dist/calldata/lifi/swap/index.d.ts +0 -5
  88. package/dist/calldata/lifi/swap/index.js +0 -18
  89. package/dist/calldata/lifi/swap/swapMethod.d.ts +0 -2
  90. package/dist/calldata/lifi/swap/swapMethod.js +0 -40
  91. package/dist/calldata/match.d.ts +0 -3
  92. package/dist/calldata/match.js +0 -21
  93. package/dist/calldata/mayan/destination.d.ts +0 -2
  94. package/dist/calldata/mayan/destination.js +0 -13
  95. package/dist/calldata/mayan/fastMctpBridge.d.ts +0 -3
  96. package/dist/calldata/mayan/fastMctpBridge.js +0 -43
  97. package/dist/calldata/mayan/fastMctpCreateOrder.d.ts +0 -3
  98. package/dist/calldata/mayan/fastMctpCreateOrder.js +0 -39
  99. package/dist/calldata/mayan/forward.d.ts +0 -8
  100. package/dist/calldata/mayan/forward.js +0 -35
  101. package/dist/calldata/mayan/forwardERC20.d.ts +0 -2
  102. package/dist/calldata/mayan/forwardERC20.js +0 -19
  103. package/dist/calldata/mayan/forwardEth.d.ts +0 -2
  104. package/dist/calldata/mayan/forwardEth.js +0 -16
  105. package/dist/calldata/mayan/index.d.ts +0 -4
  106. package/dist/calldata/mayan/index.js +0 -21
  107. package/dist/calldata/mayan/mctp.d.ts +0 -5
  108. package/dist/calldata/mayan/mctp.js +0 -41
  109. package/dist/calldata/mayan/readProtocol.d.ts +0 -2
  110. package/dist/calldata/mayan/readProtocol.js +0 -29
  111. package/dist/calldata/mayan/swapAndForwardERC20.d.ts +0 -2
  112. package/dist/calldata/mayan/swapAndForwardERC20.js +0 -24
  113. package/dist/calldata/mayan/swapAndForwardEth.d.ts +0 -2
  114. package/dist/calldata/mayan/swapAndForwardEth.js +0 -23
  115. package/dist/calldata/mayan/swiftCreateOrder.d.ts +0 -3
  116. package/dist/calldata/mayan/swiftCreateOrder.js +0 -49
  117. package/dist/calldata/mayan/validate.d.ts +0 -3
  118. package/dist/calldata/mayan/validate.js +0 -20
  119. package/dist/calldata/protocols.d.ts +0 -9
  120. package/dist/calldata/protocols.js +0 -56
  121. package/dist/calldata/relay/calls.d.ts +0 -13
  122. package/dist/calldata/relay/calls.js +0 -54
  123. package/dist/calldata/relay/depositErc20.d.ts +0 -2
  124. package/dist/calldata/relay/depositErc20.js +0 -22
  125. package/dist/calldata/relay/depositErc20Allowance.d.ts +0 -2
  126. package/dist/calldata/relay/depositErc20Allowance.js +0 -20
  127. package/dist/calldata/relay/depositNative.d.ts +0 -2
  128. package/dist/calldata/relay/depositNative.js +0 -20
  129. package/dist/calldata/relay/index.d.ts +0 -4
  130. package/dist/calldata/relay/index.js +0 -40
  131. package/dist/calldata/relay/multicall.d.ts +0 -2
  132. package/dist/calldata/relay/multicall.js +0 -15
  133. package/dist/calldata/relay/permit2TransferAndMulticall.d.ts +0 -2
  134. package/dist/calldata/relay/permit2TransferAndMulticall.js +0 -42
  135. package/dist/calldata/relay/permit3009TransferAndMulticall.d.ts +0 -2
  136. package/dist/calldata/relay/permit3009TransferAndMulticall.js +0 -41
  137. package/dist/calldata/relay/permit3009TransferAndMulticallSigned.d.ts +0 -2
  138. package/dist/calldata/relay/permit3009TransferAndMulticallSigned.js +0 -40
  139. package/dist/calldata/relay/permitTransferAndMulticall.d.ts +0 -2
  140. package/dist/calldata/relay/permitTransferAndMulticall.js +0 -34
  141. package/dist/calldata/relay/permitTransferAndMulticallLegacy.d.ts +0 -2
  142. package/dist/calldata/relay/permitTransferAndMulticallLegacy.js +0 -35
  143. package/dist/calldata/relay/transferAndMulticall.d.ts +0 -2
  144. package/dist/calldata/relay/transferAndMulticall.js +0 -26
  145. package/dist/calldata/relay/validate.d.ts +0 -3
  146. package/dist/calldata/relay/validate.js +0 -18
  147. package/dist/calldata/resolve.d.ts +0 -2
  148. package/dist/calldata/resolve.js +0 -28
  149. package/dist/calldata/socket/bridge.d.ts +0 -2
  150. package/dist/calldata/socket/bridge.js +0 -28
  151. package/dist/calldata/socket/exec.d.ts +0 -2
  152. package/dist/calldata/socket/exec.js +0 -71
  153. package/dist/calldata/socket/index.d.ts +0 -4
  154. package/dist/calldata/socket/index.js +0 -13
  155. package/dist/calldata/socket/params.d.ts +0 -5
  156. package/dist/calldata/socket/params.js +0 -14
  157. package/dist/calldata/socket/protocols/ccip.d.ts +0 -2
  158. package/dist/calldata/socket/protocols/ccip.js +0 -32
  159. package/dist/calldata/socket/protocols/cctp.d.ts +0 -2
  160. package/dist/calldata/socket/protocols/cctp.js +0 -24
  161. package/dist/calldata/socket/protocols/eco.d.ts +0 -2
  162. package/dist/calldata/socket/protocols/eco.js +0 -20
  163. package/dist/calldata/socket/protocols/index.d.ts +0 -3
  164. package/dist/calldata/socket/protocols/index.js +0 -81
  165. package/dist/calldata/socket/protocols/native.d.ts +0 -2
  166. package/dist/calldata/socket/protocols/native.js +0 -70
  167. package/dist/calldata/socket/protocols/oft.d.ts +0 -2
  168. package/dist/calldata/socket/protocols/oft.js +0 -31
  169. package/dist/calldata/socket/protocols/swapsXYZ.d.ts +0 -2
  170. package/dist/calldata/socket/protocols/swapsXYZ.js +0 -62
  171. package/dist/calldata/socket/swapAndBridge.d.ts +0 -2
  172. package/dist/calldata/socket/swapAndBridge.js +0 -37
  173. package/dist/calldata/socket/validate.d.ts +0 -3
  174. package/dist/calldata/socket/validate.js +0 -21
  175. package/dist/calldata/types.d.ts +0 -82
  176. package/dist/calldata/types.js +0 -20
  177. package/dist/errors/constants.d.ts +0 -876
  178. package/dist/errors/constants.js +0 -883
  179. package/dist/errors/index.d.ts +0 -61
  180. package/dist/errors/index.js +0 -53
  181. package/dist/errors/sanitize.d.ts +0 -3
  182. package/dist/errors/sanitize.js +0 -75
  183. package/dist/providers/data.d.ts +0 -23
  184. package/dist/providers/data.js +0 -116
  185. package/dist/providers/errors.d.ts +0 -7
  186. package/dist/providers/errors.js +0 -10
  187. package/dist/providers/index.d.ts +0 -7
  188. package/dist/providers/index.js +0 -340
  189. package/dist/providers/layerswap.d.ts +0 -9
  190. package/dist/providers/layerswap.js +0 -95
  191. package/dist/providers/relay.d.ts +0 -59
  192. package/dist/providers/relay.js +0 -185
  193. package/dist/providers/request.d.ts +0 -23
  194. package/dist/providers/request.js +0 -69
  195. package/dist/providers/socket.d.ts +0 -5
  196. package/dist/providers/socket.js +0 -57
  197. package/dist/providers/types.d.ts +0 -36
  198. package/dist/providers/types.js +0 -1
@@ -1,876 +0,0 @@
1
- /** Stable reporting codes. Add new entries; do not reuse or rename existing error_code values. */
2
- export declare const BRIDGE_ERRORS: {
3
- readonly MISSING_BUILD_API: {
4
- readonly error_code: "BRIDGE_MISSING_BUILD_API";
5
- readonly stage: "input";
6
- readonly message: "Bridge API does not provide a build tx method";
7
- };
8
- readonly MISSING_QUOTE_API: {
9
- readonly error_code: "BRIDGE_MISSING_QUOTE_API";
10
- readonly stage: "input";
11
- readonly message: "Bridge API does not provide a quote list method";
12
- };
13
- readonly DIRECT_PROVIDER_CLIENT_IS_REQUIRED: {
14
- readonly error_code: "BRIDGE_DIRECT_PROVIDER_CLIENT_IS_REQUIRED";
15
- readonly stage: "input";
16
- readonly message: "direct provider client is required";
17
- };
18
- readonly FROM_ADDRESS_MISMATCH: {
19
- readonly error_code: "BRIDGE_FROM_ADDRESS_MISMATCH";
20
- readonly stage: "input";
21
- readonly message: "from_address";
22
- };
23
- readonly FROM_CHAIN_MISMATCH: {
24
- readonly error_code: "BRIDGE_FROM_CHAIN_MISMATCH";
25
- readonly stage: "input";
26
- readonly message: "from_chain";
27
- };
28
- readonly INVALID_SOCKET_API: {
29
- readonly error_code: "BRIDGE_INVALID_SOCKET_API";
30
- readonly stage: "input";
31
- readonly message: "invalid Socket API";
32
- };
33
- readonly INVALID_PROVIDER_TIMEOUT: {
34
- readonly error_code: "BRIDGE_INVALID_PROVIDER_TIMEOUT";
35
- readonly stage: "input";
36
- readonly message: "invalid provider timeout";
37
- };
38
- readonly INVALID_QUOTE_KEY: {
39
- readonly error_code: "BRIDGE_INVALID_QUOTE_KEY";
40
- readonly stage: "input";
41
- readonly message: "invalid quote key";
42
- };
43
- readonly INVALID_TRANSACTION_VALUE: {
44
- readonly error_code: "BRIDGE_INVALID_TRANSACTION_VALUE";
45
- readonly stage: "input";
46
- readonly message: "invalid transaction value";
47
- };
48
- readonly SLIPPAGE_IS_REQUIRED_FOR_THIS_API_CALL: {
49
- readonly error_code: "BRIDGE_SLIPPAGE_IS_REQUIRED_FOR_THIS_API_CALL";
50
- readonly stage: "input";
51
- readonly message: "slippage is required for this API call";
52
- };
53
- readonly UNSUPPORTED_BRIDGE_AGGREGATOR: {
54
- readonly error_code: "BRIDGE_UNSUPPORTED_BRIDGE_AGGREGATOR";
55
- readonly stage: "input";
56
- readonly message: "unsupported bridge aggregator";
57
- };
58
- readonly UNSUPPORTED_CHAIN: {
59
- readonly error_code: "BRIDGE_UNSUPPORTED_CHAIN";
60
- readonly stage: "input";
61
- readonly message: "unsupported chain";
62
- };
63
- readonly UNSUPPORTED_DIRECT_PROVIDER: {
64
- readonly error_code: "BRIDGE_UNSUPPORTED_DIRECT_PROVIDER";
65
- readonly stage: "input";
66
- readonly message: "unsupported direct provider";
67
- };
68
- readonly UNSUPPORTED_FEE_RATE: {
69
- readonly error_code: "BRIDGE_UNSUPPORTED_FEE_RATE";
70
- readonly stage: "input";
71
- readonly message: "unsupported fee rate";
72
- };
73
- readonly UNSUPPORTED_SOURCE_CHAIN: {
74
- readonly error_code: "BRIDGE_UNSUPPORTED_SOURCE_CHAIN";
75
- readonly stage: "input";
76
- readonly message: "unsupported source chain";
77
- };
78
- readonly ROUTER_NOT_ALLOWED: {
79
- readonly error_code: "BRIDGE_ROUTER_NOT_ALLOWED";
80
- readonly stage: "contract";
81
- readonly message: "router is not in the allowlist";
82
- };
83
- readonly SPENDER_NOT_ALLOWED: {
84
- readonly error_code: "BRIDGE_SPENDER_NOT_ALLOWED";
85
- readonly stage: "contract";
86
- readonly message: "spender is not in the allowlist";
87
- };
88
- readonly ABI_ARRAY_TOO_LONG: {
89
- readonly error_code: "BRIDGE_ABI_ARRAY_TOO_LONG";
90
- readonly stage: "decode";
91
- readonly message: "calldata array is too long";
92
- };
93
- readonly ABI_BYTES_OUT_OF_BOUNDS: {
94
- readonly error_code: "BRIDGE_ABI_BYTES_OUT_OF_BOUNDS";
95
- readonly stage: "decode";
96
- readonly message: "calldata bytes overrun";
97
- };
98
- readonly CALLDATA_DECODE_FAILED: {
99
- readonly error_code: "BRIDGE_CALLDATA_DECODE_FAILED";
100
- readonly stage: "decode";
101
- readonly message: "calldata does not match the method";
102
- };
103
- readonly ABI_WORD_OUT_OF_BOUNDS: {
104
- readonly error_code: "BRIDGE_ABI_WORD_OUT_OF_BOUNDS";
105
- readonly stage: "decode";
106
- readonly message: "calldata ended before the next word";
107
- };
108
- readonly ABI_OFFSET_OUT_OF_BOUNDS: {
109
- readonly error_code: "BRIDGE_ABI_OFFSET_OUT_OF_BOUNDS";
110
- readonly stage: "decode";
111
- readonly message: "calldata offset is out of range";
112
- };
113
- readonly EXPECTED_ARRAY: {
114
- readonly error_code: "BRIDGE_EXPECTED_ARRAY";
115
- readonly stage: "decode";
116
- readonly message: "expected array";
117
- };
118
- readonly EXPECTED_STRING: {
119
- readonly error_code: "BRIDGE_EXPECTED_STRING";
120
- readonly stage: "decode";
121
- readonly message: "expected string";
122
- };
123
- readonly EXPECTED_TUPLE: {
124
- readonly error_code: "BRIDGE_EXPECTED_TUPLE";
125
- readonly stage: "decode";
126
- readonly message: "expected tuple";
127
- };
128
- readonly EXPECTED_UINT: {
129
- readonly error_code: "BRIDGE_EXPECTED_UINT";
130
- readonly stage: "decode";
131
- readonly message: "expected uint";
132
- };
133
- readonly INVALID_ABI_ADDRESS: {
134
- readonly error_code: "BRIDGE_INVALID_ABI_ADDRESS";
135
- readonly stage: "decode";
136
- readonly message: "invalid ABI address";
137
- };
138
- readonly INVALID_BOOL: {
139
- readonly error_code: "BRIDGE_INVALID_BOOL";
140
- readonly stage: "decode";
141
- readonly message: "invalid bool";
142
- };
143
- readonly INVALID_CALLDATA: {
144
- readonly error_code: "BRIDGE_INVALID_CALLDATA";
145
- readonly stage: "decode";
146
- readonly message: "invalid calldata";
147
- };
148
- readonly INVALID_HEX: {
149
- readonly error_code: "BRIDGE_INVALID_HEX";
150
- readonly stage: "decode";
151
- readonly message: "invalid hex";
152
- };
153
- readonly INVALID_SELECTOR: {
154
- readonly error_code: "BRIDGE_INVALID_SELECTOR";
155
- readonly stage: "decode";
156
- readonly message: "invalid selector";
157
- };
158
- readonly MISSING_CALLDATA: {
159
- readonly error_code: "BRIDGE_MISSING_CALLDATA";
160
- readonly stage: "decode";
161
- readonly message: "missing calldata";
162
- };
163
- readonly MISSING_SELECTOR: {
164
- readonly error_code: "BRIDGE_MISSING_SELECTOR";
165
- readonly stage: "decode";
166
- readonly message: "missing selector";
167
- };
168
- readonly UNSUPPORTED_ABI_TYPE: {
169
- readonly error_code: "BRIDGE_UNSUPPORTED_ABI_TYPE";
170
- readonly stage: "decode";
171
- readonly message: "unsupported abi type";
172
- };
173
- readonly UNSUPPORTED_METHOD: {
174
- readonly error_code: "BRIDGE_UNSUPPORTED_METHOD";
175
- readonly stage: "decode";
176
- readonly message: "unsupported method";
177
- };
178
- readonly UNSUPPORTED_CALLDATA_AGGREGATOR: {
179
- readonly error_code: "BRIDGE_UNSUPPORTED_CALLDATA_AGGREGATOR";
180
- readonly stage: "decode";
181
- readonly message: "no calldata parser for this aggregator";
182
- };
183
- readonly UNRECOGNIZED_MAYAN_PROTOCOL_CALLDATA: {
184
- readonly error_code: "BRIDGE_UNRECOGNIZED_MAYAN_PROTOCOL_CALLDATA";
185
- readonly stage: "decode";
186
- readonly message: "unrecognized mayan protocol calldata";
187
- };
188
- readonly UNRECOGNIZED_SOCKET_BRIDGE_CALLDATA: {
189
- readonly error_code: "BRIDGE_UNRECOGNIZED_SOCKET_BRIDGE_CALLDATA";
190
- readonly stage: "decode";
191
- readonly message: "unrecognized socket bridge calldata";
192
- };
193
- readonly UNRECOGNIZED_SOCKET_ROUTER_CALLDATA: {
194
- readonly error_code: "BRIDGE_UNRECOGNIZED_SOCKET_ROUTER_CALLDATA";
195
- readonly stage: "decode";
196
- readonly message: "unrecognized socket router calldata";
197
- };
198
- readonly UNSUPPORTED_MAYAN_PROTOCOL_CALLDATA: {
199
- readonly error_code: "BRIDGE_UNSUPPORTED_MAYAN_PROTOCOL_CALLDATA";
200
- readonly stage: "decode";
201
- readonly message: "unsupported Mayan protocol calldata";
202
- };
203
- readonly UNSUPPORTED_NON_EVM_M0_DESTINATION: {
204
- readonly error_code: "BRIDGE_UNSUPPORTED_NON_EVM_M0_DESTINATION";
205
- readonly stage: "structure";
206
- readonly message: "unsupported non-EVM M0 destination";
207
- };
208
- readonly M0_REFUND_RECIPIENT_MISMATCH: {
209
- readonly error_code: "BRIDGE_M0_REFUND_RECIPIENT_MISMATCH";
210
- readonly stage: "structure";
211
- readonly message: "M0 refund recipient mismatch";
212
- };
213
- readonly M0_RECEIVER_MISMATCH: {
214
- readonly error_code: "BRIDGE_M0_RECEIVER_MISMATCH";
215
- readonly stage: "structure";
216
- readonly message: "M0 receiver mismatch";
217
- };
218
- readonly ACROSS_FALLBACK_RECEIVER_MISMATCH: {
219
- readonly error_code: "BRIDGE_ACROSS_FALLBACK_RECEIVER_MISMATCH";
220
- readonly stage: "structure";
221
- readonly message: "Across fallback recipient does not match the payout";
222
- };
223
- readonly ACROSS_FALLBACK_TOKEN_MISMATCH: {
224
- readonly error_code: "BRIDGE_ACROSS_FALLBACK_TOKEN_MISMATCH";
225
- readonly stage: "structure";
226
- readonly message: "Across fallback token does not match the payout";
227
- };
228
- readonly ACROSS_NATIVE_VALUE_MISMATCH: {
229
- readonly error_code: "BRIDGE_ACROSS_NATIVE_VALUE_MISMATCH";
230
- readonly stage: "structure";
231
- readonly message: "Across native value does not match input amount";
232
- };
233
- readonly ACROSS_SWAP_VALUE_MISMATCH: {
234
- readonly error_code: "BRIDGE_ACROSS_SWAP_VALUE_MISMATCH";
235
- readonly stage: "structure";
236
- readonly message: "Across native value does not match swap amount";
237
- };
238
- readonly ALLBRIDGE_RECEIVER_MISMATCH: {
239
- readonly error_code: "BRIDGE_ALLBRIDGE_RECEIVER_MISMATCH";
240
- readonly stage: "structure";
241
- readonly message: "AllBridge receiver mismatch";
242
- };
243
- readonly CCIP_REQUIRES_ONE_BRIDGE_ASSET: {
244
- readonly error_code: "BRIDGE_CCIP_REQUIRES_ONE_BRIDGE_ASSET";
245
- readonly stage: "structure";
246
- readonly message: "CCIP requires one bridge asset";
247
- };
248
- readonly CENTRIFUGE_REFUND_RECIPIENT_MISMATCH: {
249
- readonly error_code: "BRIDGE_CENTRIFUGE_REFUND_RECIPIENT_MISMATCH";
250
- readonly stage: "structure";
251
- readonly message: "Centrifuge refund recipient mismatch";
252
- };
253
- readonly HYPERLANE_BALANCE_AMOUNT_REQUIRES_EXECUTION_STATE: {
254
- readonly error_code: "BRIDGE_HYPERLANE_BALANCE_AMOUNT_REQUIRES_EXECUTION_STATE";
255
- readonly stage: "structure";
256
- readonly message: "Hyperlane balance amount requires execution state";
257
- };
258
- readonly HYPERLANE_COMMAND_LENGTH_MISMATCH: {
259
- readonly error_code: "BRIDGE_HYPERLANE_COMMAND_LENGTH_MISMATCH";
260
- readonly stage: "structure";
261
- readonly message: "Hyperlane command length mismatch";
262
- };
263
- readonly SOCKET_CCTP_TOKEN_DOES_NOT_MATCH_BRIDGE_ASSET: {
264
- readonly error_code: "BRIDGE_SOCKET_CCTP_TOKEN_DOES_NOT_MATCH_BRIDGE_ASSET";
265
- readonly stage: "structure";
266
- readonly message: "Socket CCTP token does not match bridge asset";
267
- };
268
- readonly SOCKET_RFQ_TOKEN_DOES_NOT_MATCH_BRIDGE_ASSET: {
269
- readonly error_code: "BRIDGE_SOCKET_RFQ_TOKEN_DOES_NOT_MATCH_BRIDGE_ASSET";
270
- readonly stage: "structure";
271
- readonly message: "Socket RFQ token does not match bridge asset";
272
- };
273
- readonly SOCKET_ALLOWANCE_AMOUNT_MISMATCH: {
274
- readonly error_code: "BRIDGE_SOCKET_ALLOWANCE_AMOUNT_MISMATCH";
275
- readonly stage: "structure";
276
- readonly message: "Socket allowance does not match the source amount";
277
- };
278
- readonly SOCKET_ALLOWANCE_TOKEN_MISMATCH: {
279
- readonly error_code: "BRIDGE_SOCKET_ALLOWANCE_TOKEN_MISMATCH";
280
- readonly stage: "structure";
281
- readonly message: "Socket allowance token does not match the source input";
282
- };
283
- readonly SOCKET_DEPOSIT_AMOUNT_MISMATCH: {
284
- readonly error_code: "BRIDGE_SOCKET_DEPOSIT_AMOUNT_MISMATCH";
285
- readonly stage: "structure";
286
- readonly message: "Socket deposit amount does not match net input";
287
- };
288
- readonly SOCKET_NATIVE_VALUE_MISMATCH: {
289
- readonly error_code: "BRIDGE_SOCKET_NATIVE_VALUE_MISMATCH";
290
- readonly stage: "structure";
291
- readonly message: "Socket native value does not match source input";
292
- };
293
- readonly BRIDGE_FEES_EXCEED_THE_INPUT_AMOUNT: {
294
- readonly error_code: "BRIDGE_BRIDGE_FEES_EXCEED_THE_INPUT_AMOUNT";
295
- readonly stage: "structure";
296
- readonly message: "bridge fees exceed the input amount";
297
- };
298
- readonly BRIDGE_OFFSET_EXCEEDS_CALLDATA: {
299
- readonly error_code: "BRIDGE_BRIDGE_OFFSET_EXCEEDS_CALLDATA";
300
- readonly stage: "structure";
301
- readonly message: "bridge offset exceeds calldata";
302
- };
303
- readonly BRIDGE_SPLICE_DOES_NOT_TARGET_THE_INPUT_AMOUNT: {
304
- readonly error_code: "BRIDGE_BRIDGE_SPLICE_DOES_NOT_TARGET_THE_INPUT_AMOUNT";
305
- readonly stage: "structure";
306
- readonly message: "bridge splice does not target the input amount";
307
- };
308
- readonly INVALID_FASTMCTP_REFERRER_FEE: {
309
- readonly error_code: "BRIDGE_INVALID_FASTMCTP_REFERRER_FEE";
310
- readonly stage: "structure";
311
- readonly message: "invalid FastMCTP referrer fee";
312
- };
313
- readonly INVALID_SUPERSET_OMNI_TOKEN_PATH: {
314
- readonly error_code: "BRIDGE_INVALID_SUPERSET_OMNI_TOKEN_PATH";
315
- readonly stage: "structure";
316
- readonly message: "invalid Superset omni-token path";
317
- };
318
- readonly INVALID_BRIDGE_OFFSET: {
319
- readonly error_code: "BRIDGE_INVALID_BRIDGE_OFFSET";
320
- readonly stage: "structure";
321
- readonly message: "invalid bridge offset";
322
- };
323
- readonly MISSING_HYPERLANE_TRANSFER: {
324
- readonly error_code: "BRIDGE_MISSING_HYPERLANE_TRANSFER";
325
- readonly stage: "structure";
326
- readonly message: "missing Hyperlane transfer";
327
- };
328
- readonly MISSING_MEGAETH_DESTINATION_TOKEN: {
329
- readonly error_code: "BRIDGE_MISSING_MEGAETH_DESTINATION_TOKEN";
330
- readonly stage: "structure";
331
- readonly message: "missing MegaETH destination token";
332
- };
333
- readonly MISSING_DESTINATION: {
334
- readonly error_code: "BRIDGE_MISSING_DESTINATION";
335
- readonly stage: "structure";
336
- readonly message: "missing destination";
337
- };
338
- readonly MISSING_DESTINATION_CHAIN: {
339
- readonly error_code: "BRIDGE_MISSING_DESTINATION_CHAIN";
340
- readonly stage: "structure";
341
- readonly message: "missing destination chain";
342
- };
343
- readonly MISSING_MIN_OUTPUT: {
344
- readonly error_code: "BRIDGE_MISSING_MIN_OUTPUT";
345
- readonly stage: "structure";
346
- readonly message: "missing min output";
347
- };
348
- readonly MISSING_OUTPUT_TOKEN: {
349
- readonly error_code: "BRIDGE_MISSING_OUTPUT_TOKEN";
350
- readonly stage: "structure";
351
- readonly message: "missing output token";
352
- };
353
- readonly MISSING_QUOTE_ID: {
354
- readonly error_code: "BRIDGE_MISSING_QUOTE_ID";
355
- readonly stage: "structure";
356
- readonly message: "missing quote id";
357
- };
358
- readonly MISSING_RECEIVER: {
359
- readonly error_code: "BRIDGE_MISSING_RECEIVER";
360
- readonly stage: "structure";
361
- readonly message: "missing receiver";
362
- };
363
- readonly MISSING_RELAY_ORDER_ID: {
364
- readonly error_code: "BRIDGE_MISSING_RELAY_ORDER_ID";
365
- readonly stage: "structure";
366
- readonly message: "missing relay order id";
367
- };
368
- readonly MISSING_SOURCE_AMOUNT: {
369
- readonly error_code: "BRIDGE_MISSING_SOURCE_AMOUNT";
370
- readonly stage: "structure";
371
- readonly message: "missing source amount";
372
- };
373
- readonly MISSING_SOURCE_TOKEN: {
374
- readonly error_code: "BRIDGE_MISSING_SOURCE_TOKEN";
375
- readonly stage: "structure";
376
- readonly message: "missing source token";
377
- };
378
- readonly MULTIPLE_SOURCE_ASSETS_ARE_NOT_SUPPORTED: {
379
- readonly error_code: "BRIDGE_MULTIPLE_SOURCE_ASSETS_ARE_NOT_SUPPORTED";
380
- readonly stage: "structure";
381
- readonly message: "multiple source assets are not supported";
382
- };
383
- readonly SPOKE_POOL_IS_NOT_IN_THE_ALLOWLIST: {
384
- readonly error_code: "BRIDGE_SPOKE_POOL_IS_NOT_IN_THE_ALLOWLIST";
385
- readonly stage: "structure";
386
- readonly message: "spoke pool is not in the allowlist";
387
- };
388
- readonly UNSUPPORTED_HYPERLANE_OPERATION: {
389
- readonly error_code: "BRIDGE_UNSUPPORTED_HYPERLANE_OPERATION";
390
- readonly stage: "structure";
391
- readonly message: "unsupported Hyperlane operation";
392
- };
393
- readonly UNSUPPORTED_RELAY_SOURCE_ASSET_LIST: {
394
- readonly error_code: "BRIDGE_UNSUPPORTED_RELAY_SOURCE_ASSET_LIST";
395
- readonly stage: "structure";
396
- readonly message: "unsupported Relay source asset list";
397
- };
398
- readonly UNSUPPORTED_SOCKET_CCTP_TARGET_SPENDER_OR_VALUE: {
399
- readonly error_code: "BRIDGE_UNSUPPORTED_SOCKET_CCTP_TARGET_SPENDER_OR_VALUE";
400
- readonly stage: "structure";
401
- readonly message: "unsupported Socket CCTP target, spender or value";
402
- };
403
- readonly UNSUPPORTED_SOCKET_RFQ_TARGET_SPENDER_OR_VALUE: {
404
- readonly error_code: "BRIDGE_UNSUPPORTED_SOCKET_RFQ_TARGET_SPENDER_OR_VALUE";
405
- readonly stage: "structure";
406
- readonly message: "unsupported Socket RFQ target, spender or value";
407
- };
408
- readonly UNSUPPORTED_SOCKET_OPERATOR_OR_ROUTER: {
409
- readonly error_code: "BRIDGE_UNSUPPORTED_SOCKET_OPERATOR_OR_ROUTER";
410
- readonly stage: "structure";
411
- readonly message: "unsupported Socket operator or router";
412
- };
413
- readonly UNSUPPORTED_DESTINATION_CALL: {
414
- readonly error_code: "BRIDGE_UNSUPPORTED_DESTINATION_CALL";
415
- readonly stage: "structure";
416
- readonly message: "unsupported destination call";
417
- };
418
- readonly UNSUPPORTED_NON_EVM_FRAX_RECEIVER: {
419
- readonly error_code: "BRIDGE_UNSUPPORTED_NON_EVM_FRAX_RECEIVER";
420
- readonly stage: "structure";
421
- readonly message: "unsupported non-EVM Frax receiver";
422
- };
423
- readonly UNSUPPORTED_SWAPS_XYZ_EXECUTION: {
424
- readonly error_code: "BRIDGE_UNSUPPORTED_SWAPS_XYZ_EXECUTION";
425
- readonly stage: "structure";
426
- readonly message: "unsupported swaps-xyz execution";
427
- };
428
- readonly DEPOSITOR_MISMATCH: {
429
- readonly error_code: "BRIDGE_DEPOSITOR_MISMATCH";
430
- readonly stage: "intent";
431
- readonly message: "depositor";
432
- };
433
- readonly FROM_AMOUNT_MISMATCH: {
434
- readonly error_code: "BRIDGE_FROM_AMOUNT_MISMATCH";
435
- readonly stage: "intent";
436
- readonly message: "from_amount";
437
- };
438
- readonly FROM_TOKEN_MISMATCH: {
439
- readonly error_code: "BRIDGE_FROM_TOKEN_MISMATCH";
440
- readonly stage: "intent";
441
- readonly message: "from_token";
442
- };
443
- readonly MIN_RECEIVE_MISMATCH: {
444
- readonly error_code: "BRIDGE_MIN_RECEIVE_MISMATCH";
445
- readonly stage: "intent";
446
- readonly message: "min_receive";
447
- };
448
- readonly RECEIVER_MISMATCH: {
449
- readonly error_code: "BRIDGE_RECEIVER_MISMATCH";
450
- readonly stage: "intent";
451
- readonly message: "receiver";
452
- };
453
- readonly TO_CHAIN_MISMATCH: {
454
- readonly error_code: "BRIDGE_TO_CHAIN_MISMATCH";
455
- readonly stage: "intent";
456
- readonly message: "to_chain";
457
- };
458
- readonly TO_TOKEN_MISMATCH: {
459
- readonly error_code: "BRIDGE_TO_TOKEN_MISMATCH";
460
- readonly stage: "intent";
461
- readonly message: "to_token";
462
- };
463
- readonly PROVIDER_HTTP_ERROR: {
464
- readonly error_code: "BRIDGE_PROVIDER_HTTP_ERROR";
465
- readonly stage: "provider_request";
466
- readonly message: "Bridge provider HTTP error";
467
- };
468
- readonly LAYERSWAP_LOOKUP_TIMED_OUT: {
469
- readonly error_code: "BRIDGE_LAYERSWAP_LOOKUP_TIMED_OUT";
470
- readonly stage: "provider_request";
471
- readonly message: "LayerSwap lookup timed out";
472
- };
473
- readonly LAYERSWAP_ORDER_NOT_FOUND: {
474
- readonly error_code: "BRIDGE_LAYERSWAP_ORDER_NOT_FOUND";
475
- readonly stage: "provider_request";
476
- readonly message: "LayerSwap order was not found within the lookup limit";
477
- };
478
- readonly LAYERSWAP_PAGINATION_DID_NOT_ADVANCE: {
479
- readonly error_code: "BRIDGE_LAYERSWAP_PAGINATION_DID_NOT_ADVANCE";
480
- readonly stage: "provider_request";
481
- readonly message: "LayerSwap pagination did not advance";
482
- };
483
- readonly SOCKET_QUOTE_REQUEST_REJECTED: {
484
- readonly error_code: "BRIDGE_SOCKET_QUOTE_REQUEST_REJECTED";
485
- readonly stage: "provider_request";
486
- readonly message: "Socket quote request rejected";
487
- };
488
- readonly BACKEND_BUILD_REQUEST_FAILED: {
489
- readonly error_code: "BRIDGE_BACKEND_BUILD_REQUEST_FAILED";
490
- readonly stage: "provider_request";
491
- readonly message: "backend build request failed";
492
- };
493
- readonly BACKEND_QUOTE_REQUEST_FAILED: {
494
- readonly error_code: "BRIDGE_BACKEND_QUOTE_REQUEST_FAILED";
495
- readonly stage: "provider_request";
496
- readonly message: "backend quote request failed";
497
- };
498
- readonly REQUEST_TIMED_OUT: {
499
- readonly error_code: "BRIDGE_REQUEST_TIMED_OUT";
500
- readonly stage: "provider_request";
501
- readonly message: "request timed out";
502
- };
503
- readonly SERVICE_REQUEST_FAILED: {
504
- readonly error_code: "BRIDGE_SERVICE_REQUEST_FAILED";
505
- readonly stage: "provider_request";
506
- readonly message: "service request failed";
507
- };
508
- readonly UNSUPPORTED_SERVICE_PATH: {
509
- readonly error_code: "BRIDGE_UNSUPPORTED_SERVICE_PATH";
510
- readonly stage: "provider_request";
511
- readonly message: "unsupported service path";
512
- };
513
- readonly LAYERSWAP_AMOUNT_EXCEEDS_TOKEN_PRECISION: {
514
- readonly error_code: "BRIDGE_LAYERSWAP_AMOUNT_EXCEEDS_TOKEN_PRECISION";
515
- readonly stage: "provider_response";
516
- readonly message: "LayerSwap amount exceeds token precision";
517
- };
518
- readonly LAYERSWAP_BRIDGE_ID_MISMATCH: {
519
- readonly error_code: "BRIDGE_LAYERSWAP_BRIDGE_ID_MISMATCH";
520
- readonly stage: "provider_response";
521
- readonly message: "LayerSwap bridge id mismatch";
522
- };
523
- readonly LAYERSWAP_BRIDGE_INPUT_MISMATCH: {
524
- readonly error_code: "BRIDGE_LAYERSWAP_BRIDGE_INPUT_MISMATCH";
525
- readonly stage: "provider_response";
526
- readonly message: "LayerSwap bridge input mismatch";
527
- };
528
- readonly LAYERSWAP_CHAIN_MISMATCH: {
529
- readonly error_code: "BRIDGE_LAYERSWAP_CHAIN_MISMATCH";
530
- readonly stage: "provider_response";
531
- readonly message: "LayerSwap chain mismatch";
532
- };
533
- readonly LAYERSWAP_QUOTE_TOKEN_MISMATCH: {
534
- readonly error_code: "BRIDGE_LAYERSWAP_QUOTE_TOKEN_MISMATCH";
535
- readonly stage: "provider_response";
536
- readonly message: "LayerSwap quote token mismatch";
537
- };
538
- readonly LAYERSWAP_QUOTED_AMOUNT_CHANGED: {
539
- readonly error_code: "BRIDGE_LAYERSWAP_QUOTED_AMOUNT_CHANGED";
540
- readonly stage: "provider_response";
541
- readonly message: "LayerSwap quoted amount changed";
542
- };
543
- readonly LAYERSWAP_RECEIVER_MISMATCH: {
544
- readonly error_code: "BRIDGE_LAYERSWAP_RECEIVER_MISMATCH";
545
- readonly stage: "provider_response";
546
- readonly message: "LayerSwap receiver mismatch";
547
- };
548
- readonly LAYERSWAP_REFUND_RECIPIENT_MISMATCH: {
549
- readonly error_code: "BRIDGE_LAYERSWAP_REFUND_RECIPIENT_MISMATCH";
550
- readonly stage: "provider_response";
551
- readonly message: "LayerSwap refund recipient mismatch";
552
- };
553
- readonly LAYERSWAP_REQUEST_ID_MISMATCH: {
554
- readonly error_code: "BRIDGE_LAYERSWAP_REQUEST_ID_MISMATCH";
555
- readonly stage: "provider_response";
556
- readonly message: "LayerSwap request id mismatch";
557
- };
558
- readonly LAYERSWAP_SOURCE_VALUE_MISMATCH: {
559
- readonly error_code: "BRIDGE_LAYERSWAP_SOURCE_VALUE_MISMATCH";
560
- readonly stage: "provider_response";
561
- readonly message: "LayerSwap source value mismatch";
562
- };
563
- readonly RELAY_APPROVAL_MISMATCH: {
564
- readonly error_code: "BRIDGE_RELAY_APPROVAL_MISMATCH";
565
- readonly stage: "provider_response";
566
- readonly message: "Relay approval mismatch";
567
- };
568
- readonly RELAY_CANONICAL_DEPOSITORY_MISMATCH: {
569
- readonly error_code: "BRIDGE_RELAY_CANONICAL_DEPOSITORY_MISMATCH";
570
- readonly stage: "provider_response";
571
- readonly message: "Relay canonical depository mismatch";
572
- };
573
- readonly RELAY_DISPLAY_AMOUNT_MISMATCH: {
574
- readonly error_code: "BRIDGE_RELAY_DISPLAY_AMOUNT_MISMATCH";
575
- readonly stage: "provider_response";
576
- readonly message: "Relay display amount does not match order";
577
- };
578
- readonly RELAY_ORDER_CHAIN_MISMATCH: {
579
- readonly error_code: "BRIDGE_RELAY_ORDER_CHAIN_MISMATCH";
580
- readonly stage: "provider_response";
581
- readonly message: "Relay order chain mismatch";
582
- };
583
- readonly RELAY_ORDER_HASH_MISMATCH: {
584
- readonly error_code: "BRIDGE_RELAY_ORDER_HASH_MISMATCH";
585
- readonly stage: "provider_response";
586
- readonly message: "Relay order hash does not match";
587
- };
588
- readonly RELAY_PROTOCOL_CHAIN_MISMATCH: {
589
- readonly error_code: "BRIDGE_RELAY_PROTOCOL_CHAIN_MISMATCH";
590
- readonly stage: "provider_response";
591
- readonly message: "Relay protocol chain mismatch";
592
- };
593
- readonly RELAY_REFUND_RECIPIENT_MISMATCH: {
594
- readonly error_code: "BRIDGE_RELAY_REFUND_RECIPIENT_MISMATCH";
595
- readonly stage: "provider_response";
596
- readonly message: "Relay refund recipient mismatch";
597
- };
598
- readonly RELAY_SOURCE_PAYMENT_MISMATCH: {
599
- readonly error_code: "BRIDGE_RELAY_SOURCE_PAYMENT_MISMATCH";
600
- readonly stage: "provider_response";
601
- readonly message: "Relay source payment mismatch";
602
- };
603
- readonly RELAY_SOURCE_VALUE_MISMATCH: {
604
- readonly error_code: "BRIDGE_RELAY_SOURCE_VALUE_MISMATCH";
605
- readonly stage: "provider_response";
606
- readonly message: "Relay source value mismatch";
607
- };
608
- readonly SOCKET_RFQ_ORDER_MISMATCH: {
609
- readonly error_code: "BRIDGE_SOCKET_RFQ_ORDER_MISMATCH";
610
- readonly stage: "provider_response";
611
- readonly message: "Socket RFQ order mismatch";
612
- };
613
- readonly SOCKET_APPROVAL_MISMATCH: {
614
- readonly error_code: "BRIDGE_SOCKET_APPROVAL_MISMATCH";
615
- readonly stage: "provider_response";
616
- readonly message: "Socket approval mismatch";
617
- };
618
- readonly SOCKET_BRIDGE_CHAIN_MISMATCH: {
619
- readonly error_code: "BRIDGE_SOCKET_BRIDGE_CHAIN_MISMATCH";
620
- readonly stage: "provider_response";
621
- readonly message: "Socket bridge chain mismatch";
622
- };
623
- readonly SOCKET_BRIDGE_OUTPUT_MISMATCH: {
624
- readonly error_code: "BRIDGE_SOCKET_BRIDGE_OUTPUT_MISMATCH";
625
- readonly stage: "provider_response";
626
- readonly message: "Socket bridge output mismatch";
627
- };
628
- readonly SOCKET_PUBLIC_APP_FEE_UNSUPPORTED: {
629
- readonly error_code: "BRIDGE_SOCKET_PUBLIC_APP_FEE_UNSUPPORTED";
630
- readonly stage: "provider_response";
631
- readonly message: "Socket public API does not support app fees; dedicated client access is required";
632
- };
633
- readonly SOCKET_QUOTE_INPUT_MISMATCH: {
634
- readonly error_code: "BRIDGE_SOCKET_QUOTE_INPUT_MISMATCH";
635
- readonly stage: "provider_response";
636
- readonly message: "Socket quote input mismatch";
637
- };
638
- readonly SOCKET_SOURCE_QUOTE_MISMATCH: {
639
- readonly error_code: "BRIDGE_SOCKET_SOURCE_QUOTE_MISMATCH";
640
- readonly stage: "provider_response";
641
- readonly message: "Socket source quote mismatch";
642
- };
643
- readonly AMBIGUOUS_LAYERSWAP_REQUEST_ID: {
644
- readonly error_code: "BRIDGE_AMBIGUOUS_LAYERSWAP_REQUEST_ID";
645
- readonly stage: "provider_response";
646
- readonly message: "ambiguous LayerSwap request id";
647
- };
648
- readonly AMBIGUOUS_RELAY_CHAIN: {
649
- readonly error_code: "BRIDGE_AMBIGUOUS_RELAY_CHAIN";
650
- readonly stage: "provider_response";
651
- readonly message: "ambiguous Relay chain";
652
- };
653
- readonly INVALID_LAYERSWAP_AMOUNT: {
654
- readonly error_code: "BRIDGE_INVALID_LAYERSWAP_AMOUNT";
655
- readonly stage: "provider_response";
656
- readonly message: "invalid LayerSwap amount";
657
- };
658
- readonly INVALID_LAYERSWAP_OUTPUT_AMOUNT: {
659
- readonly error_code: "BRIDGE_INVALID_LAYERSWAP_OUTPUT_AMOUNT";
660
- readonly stage: "provider_response";
661
- readonly message: "invalid LayerSwap output amount";
662
- };
663
- readonly INVALID_LAYERSWAP_SWAP_ID: {
664
- readonly error_code: "BRIDGE_INVALID_LAYERSWAP_SWAP_ID";
665
- readonly stage: "provider_response";
666
- readonly message: "invalid LayerSwap swap id";
667
- };
668
- readonly INVALID_ADDRESS: {
669
- readonly error_code: "BRIDGE_INVALID_ADDRESS";
670
- readonly stage: "provider_response";
671
- readonly message: "invalid address";
672
- };
673
- readonly INVALID_AMOUNT: {
674
- readonly error_code: "BRIDGE_INVALID_AMOUNT";
675
- readonly stage: "provider_response";
676
- readonly message: "invalid amount";
677
- };
678
- readonly INVALID_AMOUNT_EXPONENT: {
679
- readonly error_code: "BRIDGE_INVALID_AMOUNT_EXPONENT";
680
- readonly stage: "provider_response";
681
- readonly message: "invalid amount exponent";
682
- };
683
- readonly INVALID_ARRAY: {
684
- readonly error_code: "BRIDGE_INVALID_ARRAY";
685
- readonly stage: "provider_response";
686
- readonly message: "invalid array";
687
- };
688
- readonly INVALID_BYTES: {
689
- readonly error_code: "BRIDGE_INVALID_BYTES";
690
- readonly stage: "provider_response";
691
- readonly message: "invalid bytes";
692
- };
693
- readonly INVALID_FEE_DISPLAY: {
694
- readonly error_code: "BRIDGE_INVALID_FEE_DISPLAY";
695
- readonly stage: "provider_response";
696
- readonly message: "invalid fee display";
697
- };
698
- readonly INVALID_MINIMUM_PRECISION: {
699
- readonly error_code: "BRIDGE_INVALID_MINIMUM_PRECISION";
700
- readonly stage: "provider_response";
701
- readonly message: "invalid minimum precision";
702
- };
703
- readonly INVALID_OBJECT: {
704
- readonly error_code: "BRIDGE_INVALID_OBJECT";
705
- readonly stage: "provider_response";
706
- readonly message: "invalid object";
707
- };
708
- readonly INVALID_RESPONSE: {
709
- readonly error_code: "BRIDGE_INVALID_RESPONSE";
710
- readonly stage: "provider_response";
711
- readonly message: "invalid response";
712
- };
713
- readonly INVALID_SLIPPAGE: {
714
- readonly error_code: "BRIDGE_INVALID_SLIPPAGE";
715
- readonly stage: "provider_response";
716
- readonly message: "invalid slippage";
717
- };
718
- readonly INVALID_STRING: {
719
- readonly error_code: "BRIDGE_INVALID_STRING";
720
- readonly stage: "provider_response";
721
- readonly message: "invalid string";
722
- };
723
- readonly MISSING_LAYERSWAP_AMOUNT: {
724
- readonly error_code: "BRIDGE_MISSING_LAYERSWAP_AMOUNT";
725
- readonly stage: "provider_response";
726
- readonly message: "missing LayerSwap amount";
727
- };
728
- readonly PROVIDER_RESPONSE_IS_NOT_VALID_JSON: {
729
- readonly error_code: "BRIDGE_PROVIDER_RESPONSE_IS_NOT_VALID_JSON";
730
- readonly stage: "provider_response";
731
- readonly message: "provider response is not valid JSON";
732
- };
733
- readonly INVALID_SLIPPAGE_PRECISION: {
734
- readonly error_code: "BRIDGE_INVALID_SLIPPAGE_PRECISION";
735
- readonly stage: "provider_response";
736
- readonly message: "slippage must be a fraction with at most four decimals";
737
- };
738
- readonly UNSAFE_LAYERSWAP_AMOUNT: {
739
- readonly error_code: "BRIDGE_UNSAFE_LAYERSWAP_AMOUNT";
740
- readonly stage: "provider_response";
741
- readonly message: "unsafe LayerSwap amount";
742
- };
743
- readonly UNSAFE_NUMBER: {
744
- readonly error_code: "BRIDGE_UNSAFE_NUMBER";
745
- readonly stage: "provider_response";
746
- readonly message: "unsafe number";
747
- };
748
- readonly UNSUPPORTED_LAYERSWAP_NON_EVM_RECEIVER: {
749
- readonly error_code: "BRIDGE_UNSUPPORTED_LAYERSWAP_NON_EVM_RECEIVER";
750
- readonly stage: "provider_response";
751
- readonly message: "unsupported LayerSwap non-EVM receiver";
752
- };
753
- readonly UNSUPPORTED_LAYERSWAP_TRANSACTION: {
754
- readonly error_code: "BRIDGE_UNSUPPORTED_LAYERSWAP_TRANSACTION";
755
- readonly stage: "provider_response";
756
- readonly message: "unsupported LayerSwap transaction";
757
- };
758
- readonly UNSUPPORTED_RELAY_VM: {
759
- readonly error_code: "BRIDGE_UNSUPPORTED_RELAY_VM";
760
- readonly stage: "provider_response";
761
- readonly message: "unsupported Relay VM";
762
- };
763
- readonly UNSUPPORTED_RELAY_APPROVAL: {
764
- readonly error_code: "BRIDGE_UNSUPPORTED_RELAY_APPROVAL";
765
- readonly stage: "provider_response";
766
- readonly message: "unsupported Relay approval";
767
- };
768
- readonly UNSUPPORTED_RELAY_APPROVAL_COUNT: {
769
- readonly error_code: "BRIDGE_UNSUPPORTED_RELAY_APPROVAL_COUNT";
770
- readonly stage: "provider_response";
771
- readonly message: "unsupported Relay approval count";
772
- };
773
- readonly UNSUPPORTED_RELAY_DEPOSIT: {
774
- readonly error_code: "BRIDGE_UNSUPPORTED_RELAY_DEPOSIT";
775
- readonly stage: "provider_response";
776
- readonly message: "unsupported Relay deposit";
777
- };
778
- readonly UNSUPPORTED_RELAY_DEPOSIT_COUNT: {
779
- readonly error_code: "BRIDGE_UNSUPPORTED_RELAY_DEPOSIT_COUNT";
780
- readonly stage: "provider_response";
781
- readonly message: "unsupported Relay deposit count";
782
- };
783
- readonly UNSUPPORTED_RELAY_DEPOSIT_METHOD: {
784
- readonly error_code: "BRIDGE_UNSUPPORTED_RELAY_DEPOSIT_METHOD";
785
- readonly stage: "provider_response";
786
- readonly message: "unsupported Relay deposit method";
787
- };
788
- readonly UNSUPPORTED_RELAY_ORDER_SHAPE: {
789
- readonly error_code: "BRIDGE_UNSUPPORTED_RELAY_ORDER_SHAPE";
790
- readonly stage: "provider_response";
791
- readonly message: "unsupported Relay order shape";
792
- };
793
- readonly UNSUPPORTED_RELAY_ORDER_VERSION: {
794
- readonly error_code: "BRIDGE_UNSUPPORTED_RELAY_ORDER_VERSION";
795
- readonly stage: "provider_response";
796
- readonly message: "unsupported Relay order version";
797
- };
798
- readonly UNSUPPORTED_RELAY_STEP: {
799
- readonly error_code: "BRIDGE_UNSUPPORTED_RELAY_STEP";
800
- readonly stage: "provider_response";
801
- readonly message: "unsupported Relay step";
802
- };
803
- readonly UNSUPPORTED_SOCKET_CCTP_RECEIVER: {
804
- readonly error_code: "BRIDGE_UNSUPPORTED_SOCKET_CCTP_RECEIVER";
805
- readonly stage: "provider_response";
806
- readonly message: "unsupported Socket CCTP receiver";
807
- };
808
- readonly UNSUPPORTED_SOCKET_SERVICE_ROUTE: {
809
- readonly error_code: "BRIDGE_UNSUPPORTED_SOCKET_SERVICE_ROUTE";
810
- readonly stage: "provider_response";
811
- readonly message: "unsupported Socket service route";
812
- };
813
- readonly UNSUPPORTED_SOCKET_TRANSACTION: {
814
- readonly error_code: "BRIDGE_UNSUPPORTED_SOCKET_TRANSACTION";
815
- readonly stage: "provider_response";
816
- readonly message: "unsupported Socket transaction";
817
- };
818
- readonly LAYERSWAP_TRANSACTION_IS_REQUIRED: {
819
- readonly error_code: "BRIDGE_LAYERSWAP_TRANSACTION_IS_REQUIRED";
820
- readonly stage: "provider_binding";
821
- readonly message: "LayerSwap transaction is required";
822
- };
823
- readonly A_DIRECT_PROVIDER_QUOTE_IS_REQUIRED: {
824
- readonly error_code: "BRIDGE_A_DIRECT_PROVIDER_QUOTE_IS_REQUIRED";
825
- readonly stage: "provider_binding";
826
- readonly message: "a direct provider quote is required";
827
- };
828
- readonly PROVIDER_DESTINATION_UNBOUND: {
829
- readonly error_code: "BRIDGE_PROVIDER_DESTINATION_UNBOUND";
830
- readonly stage: "provider_binding";
831
- readonly message: "destination conditions are not bound to a verified provider transaction";
832
- };
833
- readonly INVALID_TRANSACTION: {
834
- readonly error_code: "BRIDGE_INVALID_TRANSACTION";
835
- readonly stage: "provider_binding";
836
- readonly message: "invalid transaction";
837
- };
838
- readonly PROVIDER_CLIENT_CONTEXT_CHANGED: {
839
- readonly error_code: "BRIDGE_PROVIDER_CLIENT_CONTEXT_CHANGED";
840
- readonly stage: "provider_binding";
841
- readonly message: "provider client context changed";
842
- };
843
- readonly QUOTE_DOES_NOT_MATCH_LOCAL_INTENT: {
844
- readonly error_code: "BRIDGE_QUOTE_DOES_NOT_MATCH_LOCAL_INTENT";
845
- readonly stage: "provider_binding";
846
- readonly message: "quote does not match local intent";
847
- };
848
- readonly QUOTE_REQUEST_WAS_INVALIDATED: {
849
- readonly error_code: "BRIDGE_QUOTE_REQUEST_WAS_INVALIDATED";
850
- readonly stage: "provider_binding";
851
- readonly message: "quote request was invalidated";
852
- };
853
- readonly QUOTED_AMOUNT_CHANGED: {
854
- readonly error_code: "BRIDGE_QUOTED_AMOUNT_CHANGED";
855
- readonly stage: "provider_binding";
856
- readonly message: "quoted amount changed";
857
- };
858
- readonly SOURCE_TRANSACTION_CHANGED: {
859
- readonly error_code: "BRIDGE_SOURCE_TRANSACTION_CHANGED";
860
- readonly stage: "provider_binding";
861
- readonly message: "source transaction changed";
862
- };
863
- readonly UNVERIFIED_BRIDGE_FIELDS: {
864
- readonly error_code: "BRIDGE_UNVERIFIED_BRIDGE_FIELDS";
865
- readonly stage: "completeness";
866
- readonly message: "unverified bridge fields";
867
- };
868
- readonly UNKNOWN: {
869
- readonly error_code: "BRIDGE_UNKNOWN";
870
- readonly stage: "unknown";
871
- readonly message: "unknown bridge error";
872
- };
873
- };
874
- export type BridgeErrorDefinition = typeof BRIDGE_ERRORS[keyof typeof BRIDGE_ERRORS];
875
- export type BridgeErrorCode = BridgeErrorDefinition['error_code'];
876
- export type BridgeErrorStage = BridgeErrorDefinition['stage'];