@orbs-network/spot 2.11.0 → 2.11.2
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.
- package/README.md +21 -3
- package/config.json +3 -2
- package/out/06_DeployApprovalAdapter.s.sol/DeployApprovalAdapter.abi.json +28 -0
- package/out/ApprovalDexAdapter.sol/ApprovalDexAdapter.abi.json +471 -0
- package/out/ApprovalDexAdapter.t.sol/ApprovalDexAdapterTest.abi.json +929 -0
- package/out/Settler.t.sol/VmContractHelper154.abi.json +233 -0
- package/package.json +1 -1
- /package/out/{BaseTest.sol/VmContractHelper115.abi.json → ApprovalDexAdapter.t.sol/VmContractHelper122.abi.json} +0 -0
- /package/out/{CosignerIntegration.t.sol/VmContractHelper120.abi.json → BaseTest.sol/VmContractHelper117.abi.json} +0 -0
- /package/out/{DefaultDexAdapter.t.sol/VmContractHelper123.abi.json → CosignerIntegration.t.sol/VmContractHelper127.abi.json} +0 -0
- /package/out/{DynamicP2DexAdapter.t.sol/VmContractHelper125.abi.json → DefaultDexAdapter.t.sol/VmContractHelper129.abi.json} +0 -0
- /package/out/{Executor.t.sol → DynamicP2DexAdapter.t.sol}/VmContractHelper131.abi.json +0 -0
- /package/out/{OrderReactor.E2E.t.sol/VmContractHelper134.abi.json → Executor.t.sol/VmContractHelper136.abi.json} +0 -0
- /package/out/{P2DexAdapter.t.sol → OrderReactor.E2E.t.sol}/VmContractHelper139.abi.json +0 -0
- /package/out/OrderReactorPause.t.sol/{VmContractHelper135.abi.json → VmContractHelper140.abi.json} +0 -0
- /package/out/{ParaswapDexAdapter.t.sol/VmContractHelper142.abi.json → P2DexAdapter.t.sol/VmContractHelper144.abi.json} +0 -0
- /package/out/{Refinery.t.sol → ParaswapDexAdapter.t.sol}/VmContractHelper145.abi.json +0 -0
- /package/out/{Settler.t.sol/VmContractHelper151.abi.json → Refinery.t.sol/VmContractHelper148.abi.json} +0 -0
package/README.md
CHANGED
|
@@ -25,15 +25,33 @@ Spot provides non-custodial market, limit, TWAP, stop-loss, take-profit, and del
|
|
|
25
25
|
|
|
26
26
|
## Supported Chains
|
|
27
27
|
|
|
28
|
-
Spot supports
|
|
28
|
+
Spot supports explicitly included chains with all six core contracts and at least one deployed shared (`*`) or chain-specific adapter. See [`config.json`](./config.json) for the supported chain configurations and [`skill/SKILL.md`](./skill/SKILL.md#supported-chains) for the matching chain list. Existing deployments do not add a chain to the supported set; Mantle and Manta remain excluded.
|
|
29
29
|
|
|
30
30
|
Run `t` before local order QA. `npm test` includes `npm run test:e2e`, a read-only live dependency check using `chain`, `cast`, `jq`, `curl`, and GNU `parallel`. It fetches the current production [offchain oracle config](https://github.com/orbs-network/offchain-oracle/blob/master/config.json) once per run and reports the union of Spot config, skill chains, and oracle chains in a coverage table. `npm run test:e2e -- 1` scopes the report to Ethereum.
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
The E2E table shows core deployment, deployed/known adapter counts, support status, and oracle health separately. Every explicit Spot chain requires all six core contracts and at least one deployed adapter; named solver counts are informational. Shared integrations whose adapters are undeployed are omitted from that chain's active integrations, while missing chain-specific integrations remain failures. Configured chains missing a skill listing also fail. Unlisted chains remain unsupported even when contracts and adapters are deployed.
|
|
33
|
+
|
|
34
|
+
Oracle checks require a deployed USD oracle and aggregator, deployed and registered oracle adapters, the correct binding, and positive USD quotes for native, wrapped native, and configured oracle connectors. Missing config, contracts, quotes, or RPC access fail with visible details for supported chains. Oracle-only chains show deployment discovery and configured oracle coverage. Discovery covers the selected config/skill/oracle chain set, not every EVM network. `SPOT_ORACLE_CONFIG_JSON` can supply an explicit snapshot for diagnostics; normal tests fetch production directly.
|
|
35
|
+
|
|
36
|
+
Live relay and taker coverage is reviewed manually by the AI during `qa`, following `AGENTS.md`. Normal tests do not query relay/taker health or require their integration coverage. The QA review checks relay health, listeners, registered adapters, active taker polling and loops, and chain/refinery/solver metadata, accounting for deployed versions and SAFO/backup/L3 assignments. Private taker health URLs come from `SPOT_TAKER_HEALTH_URLS`; missing configuration skips that check. Observed health is distinct from successful order execution.
|
|
37
|
+
|
|
38
|
+
Notion checking is a manual AI review during `qa`, following the repository’s `AGENTS.md`; normal tests do not access Notion or check board readiness. The AI uses `NOTION_API_KEY` from the private environment to review SPOT contracts, oracle, taker, and relay readiness, chain membership, and solver labels. It accounts for runtime versions, taker assignments, user-confirmed readiness, and integrations already marked Dead, then reports only a concise grouped fix list. Board updates require user authorization and are verified afterward.
|
|
33
39
|
|
|
34
40
|
Orvex uses Spot's universal integration on Robinhood Chain (`4663`), with execution routing selected at fill time. No other Orvex mainnet deployment is listed in its [official contract directory](https://docs.orvex.fi/developer-resources/contract-addresses).
|
|
35
41
|
|
|
36
|
-
Robinhood's solver adapters cover Kyber,
|
|
42
|
+
Robinhood's solver adapters cover Kyber, OpenOcean, LI.FI (`LiFi`), 0x (`ZeroX`), and OKX. Orders use the universal integration to select a solver adapter at fill time. 0x uses `DefaultDexAdapter` with its [AllowanceHolder](https://github.com/0xProject/0x-settler/blob/master/chain_config.json); OKX uses `ApprovalDexAdapter` with separate [router and approval contracts](https://web3.okx.com/onchainos/dev-docs/trade/dex-smart-contract).
|
|
43
|
+
|
|
44
|
+
Deploy the Robinhood solver adapters with the chain-managed signer:
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
chain robinhood
|
|
48
|
+
dev true
|
|
49
|
+
ADAPTER_TYPE=default ROUTER=0x0000000000001fF3684f28c67538d4D072C22734 script/deploy --adapter ZeroX --broadcast --sender "$ETH_FROM"
|
|
50
|
+
ADAPTER_TYPE=approval ROUTER=0x6e2a35a7ad683cf634d91492d73bb7ff774c6919 SPENDER=0x42170295F1173c9e5874ea9d00c6d137E1a4f53d script/deploy --adapter OKX --broadcast --sender "$ETH_FROM"
|
|
51
|
+
npm run build
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Omit `--broadcast` to simulate. Successful broadcasts write the adapter addresses to `config.json`; configured adapters are skipped on subsequent runs.
|
|
37
55
|
|
|
38
56
|
## How It Works
|
|
39
57
|
|
package/config.json
CHANGED
|
@@ -504,9 +504,10 @@
|
|
|
504
504
|
"4663": {
|
|
505
505
|
"adapter": {
|
|
506
506
|
"Kyber": "0x6bbE14b2205a87FA0EAdE5f0795C7bb16B5347EA",
|
|
507
|
-
"Magpie": "0xe757b37EDbE768f487a8Fc66BB48bbdb85412570",
|
|
508
507
|
"OpenOcean": "0xF4087df1F43De3B8e84171c1434da5aE0355796C",
|
|
509
|
-
"LiFi": "0xA75eA4C3570Ec0ebCbe79176B8D6E06839C36c84"
|
|
508
|
+
"LiFi": "0xA75eA4C3570Ec0ebCbe79176B8D6E06839C36c84",
|
|
509
|
+
"ZeroX": "0x196F49fafBC3A5B6BB3661660892978Ca3679927",
|
|
510
|
+
"OKX": "0x98Ccd2a85bdA82b628d4E043faA44C10ffa3de04"
|
|
510
511
|
},
|
|
511
512
|
"dex": {
|
|
512
513
|
"orvex": {
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "function",
|
|
4
|
+
"name": "IS_SCRIPT",
|
|
5
|
+
"inputs": [],
|
|
6
|
+
"outputs": [
|
|
7
|
+
{
|
|
8
|
+
"name": "",
|
|
9
|
+
"type": "bool",
|
|
10
|
+
"internalType": "bool"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"stateMutability": "view"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"type": "function",
|
|
17
|
+
"name": "run",
|
|
18
|
+
"inputs": [],
|
|
19
|
+
"outputs": [
|
|
20
|
+
{
|
|
21
|
+
"name": "adapter",
|
|
22
|
+
"type": "address",
|
|
23
|
+
"internalType": "address"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"stateMutability": "nonpayable"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
@@ -0,0 +1,471 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "constructor",
|
|
4
|
+
"inputs": [
|
|
5
|
+
{
|
|
6
|
+
"name": "_router",
|
|
7
|
+
"type": "address",
|
|
8
|
+
"internalType": "address"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"name": "_spender",
|
|
12
|
+
"type": "address",
|
|
13
|
+
"internalType": "address"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"stateMutability": "nonpayable"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"type": "function",
|
|
20
|
+
"name": "delegateSwap",
|
|
21
|
+
"inputs": [
|
|
22
|
+
{
|
|
23
|
+
"name": "",
|
|
24
|
+
"type": "bytes32",
|
|
25
|
+
"internalType": "bytes32"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "",
|
|
29
|
+
"type": "uint256",
|
|
30
|
+
"internalType": "uint256"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "co",
|
|
34
|
+
"type": "tuple",
|
|
35
|
+
"internalType": "struct CosignedOrder",
|
|
36
|
+
"components": [
|
|
37
|
+
{
|
|
38
|
+
"name": "order",
|
|
39
|
+
"type": "tuple",
|
|
40
|
+
"internalType": "struct Order",
|
|
41
|
+
"components": [
|
|
42
|
+
{
|
|
43
|
+
"name": "reactor",
|
|
44
|
+
"type": "address",
|
|
45
|
+
"internalType": "address"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "executor",
|
|
49
|
+
"type": "address",
|
|
50
|
+
"internalType": "address"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "exchange",
|
|
54
|
+
"type": "tuple",
|
|
55
|
+
"internalType": "struct Exchange",
|
|
56
|
+
"components": [
|
|
57
|
+
{
|
|
58
|
+
"name": "adapter",
|
|
59
|
+
"type": "address",
|
|
60
|
+
"internalType": "address"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "ref",
|
|
64
|
+
"type": "address",
|
|
65
|
+
"internalType": "address"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "share",
|
|
69
|
+
"type": "uint32",
|
|
70
|
+
"internalType": "uint32"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "data",
|
|
74
|
+
"type": "bytes",
|
|
75
|
+
"internalType": "bytes"
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "swapper",
|
|
81
|
+
"type": "address",
|
|
82
|
+
"internalType": "address"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"name": "nonce",
|
|
86
|
+
"type": "uint256",
|
|
87
|
+
"internalType": "uint256"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"name": "start",
|
|
91
|
+
"type": "uint256",
|
|
92
|
+
"internalType": "uint256"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "deadline",
|
|
96
|
+
"type": "uint256",
|
|
97
|
+
"internalType": "uint256"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "chainid",
|
|
101
|
+
"type": "uint256",
|
|
102
|
+
"internalType": "uint256"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "exclusivity",
|
|
106
|
+
"type": "uint32",
|
|
107
|
+
"internalType": "uint32"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"name": "epoch",
|
|
111
|
+
"type": "uint32",
|
|
112
|
+
"internalType": "uint32"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "slippage",
|
|
116
|
+
"type": "uint32",
|
|
117
|
+
"internalType": "uint32"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"name": "freshness",
|
|
121
|
+
"type": "uint32",
|
|
122
|
+
"internalType": "uint32"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "input",
|
|
126
|
+
"type": "tuple",
|
|
127
|
+
"internalType": "struct Input",
|
|
128
|
+
"components": [
|
|
129
|
+
{
|
|
130
|
+
"name": "token",
|
|
131
|
+
"type": "address",
|
|
132
|
+
"internalType": "address"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"name": "amount",
|
|
136
|
+
"type": "uint256",
|
|
137
|
+
"internalType": "uint256"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"name": "maxAmount",
|
|
141
|
+
"type": "uint256",
|
|
142
|
+
"internalType": "uint256"
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"name": "output",
|
|
148
|
+
"type": "tuple",
|
|
149
|
+
"internalType": "struct Output",
|
|
150
|
+
"components": [
|
|
151
|
+
{
|
|
152
|
+
"name": "token",
|
|
153
|
+
"type": "address",
|
|
154
|
+
"internalType": "address"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"name": "limit",
|
|
158
|
+
"type": "uint256",
|
|
159
|
+
"internalType": "uint256"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"name": "triggerLower",
|
|
163
|
+
"type": "uint256",
|
|
164
|
+
"internalType": "uint256"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "triggerUpper",
|
|
168
|
+
"type": "uint256",
|
|
169
|
+
"internalType": "uint256"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"name": "recipient",
|
|
173
|
+
"type": "address",
|
|
174
|
+
"internalType": "address"
|
|
175
|
+
}
|
|
176
|
+
]
|
|
177
|
+
}
|
|
178
|
+
]
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"name": "signature",
|
|
182
|
+
"type": "bytes",
|
|
183
|
+
"internalType": "bytes"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"name": "trigger",
|
|
187
|
+
"type": "tuple",
|
|
188
|
+
"internalType": "struct Cosignature",
|
|
189
|
+
"components": [
|
|
190
|
+
{
|
|
191
|
+
"name": "cosigner",
|
|
192
|
+
"type": "address",
|
|
193
|
+
"internalType": "address"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"name": "reactor",
|
|
197
|
+
"type": "address",
|
|
198
|
+
"internalType": "address"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"name": "chainid",
|
|
202
|
+
"type": "uint256",
|
|
203
|
+
"internalType": "uint256"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"name": "timestamp",
|
|
207
|
+
"type": "uint256",
|
|
208
|
+
"internalType": "uint256"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"name": "input",
|
|
212
|
+
"type": "tuple",
|
|
213
|
+
"internalType": "struct CosignedValue",
|
|
214
|
+
"components": [
|
|
215
|
+
{
|
|
216
|
+
"name": "token",
|
|
217
|
+
"type": "address",
|
|
218
|
+
"internalType": "address"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"name": "value",
|
|
222
|
+
"type": "uint256",
|
|
223
|
+
"internalType": "uint256"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"name": "decimals",
|
|
227
|
+
"type": "uint8",
|
|
228
|
+
"internalType": "uint8"
|
|
229
|
+
}
|
|
230
|
+
]
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"name": "output",
|
|
234
|
+
"type": "tuple",
|
|
235
|
+
"internalType": "struct CosignedValue",
|
|
236
|
+
"components": [
|
|
237
|
+
{
|
|
238
|
+
"name": "token",
|
|
239
|
+
"type": "address",
|
|
240
|
+
"internalType": "address"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"name": "value",
|
|
244
|
+
"type": "uint256",
|
|
245
|
+
"internalType": "uint256"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"name": "decimals",
|
|
249
|
+
"type": "uint8",
|
|
250
|
+
"internalType": "uint8"
|
|
251
|
+
}
|
|
252
|
+
]
|
|
253
|
+
}
|
|
254
|
+
]
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"name": "current",
|
|
258
|
+
"type": "tuple",
|
|
259
|
+
"internalType": "struct Cosignature",
|
|
260
|
+
"components": [
|
|
261
|
+
{
|
|
262
|
+
"name": "cosigner",
|
|
263
|
+
"type": "address",
|
|
264
|
+
"internalType": "address"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"name": "reactor",
|
|
268
|
+
"type": "address",
|
|
269
|
+
"internalType": "address"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"name": "chainid",
|
|
273
|
+
"type": "uint256",
|
|
274
|
+
"internalType": "uint256"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"name": "timestamp",
|
|
278
|
+
"type": "uint256",
|
|
279
|
+
"internalType": "uint256"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"name": "input",
|
|
283
|
+
"type": "tuple",
|
|
284
|
+
"internalType": "struct CosignedValue",
|
|
285
|
+
"components": [
|
|
286
|
+
{
|
|
287
|
+
"name": "token",
|
|
288
|
+
"type": "address",
|
|
289
|
+
"internalType": "address"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"name": "value",
|
|
293
|
+
"type": "uint256",
|
|
294
|
+
"internalType": "uint256"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"name": "decimals",
|
|
298
|
+
"type": "uint8",
|
|
299
|
+
"internalType": "uint8"
|
|
300
|
+
}
|
|
301
|
+
]
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"name": "output",
|
|
305
|
+
"type": "tuple",
|
|
306
|
+
"internalType": "struct CosignedValue",
|
|
307
|
+
"components": [
|
|
308
|
+
{
|
|
309
|
+
"name": "token",
|
|
310
|
+
"type": "address",
|
|
311
|
+
"internalType": "address"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"name": "value",
|
|
315
|
+
"type": "uint256",
|
|
316
|
+
"internalType": "uint256"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"name": "decimals",
|
|
320
|
+
"type": "uint8",
|
|
321
|
+
"internalType": "uint8"
|
|
322
|
+
}
|
|
323
|
+
]
|
|
324
|
+
}
|
|
325
|
+
]
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"name": "triggerCosignature",
|
|
329
|
+
"type": "bytes",
|
|
330
|
+
"internalType": "bytes"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"name": "currentCosignature",
|
|
334
|
+
"type": "bytes",
|
|
335
|
+
"internalType": "bytes"
|
|
336
|
+
}
|
|
337
|
+
]
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"name": "x",
|
|
341
|
+
"type": "tuple",
|
|
342
|
+
"internalType": "struct Execution",
|
|
343
|
+
"components": [
|
|
344
|
+
{
|
|
345
|
+
"name": "minAmountOut",
|
|
346
|
+
"type": "uint256",
|
|
347
|
+
"internalType": "uint256"
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"name": "fees",
|
|
351
|
+
"type": "tuple[]",
|
|
352
|
+
"internalType": "struct Output[]",
|
|
353
|
+
"components": [
|
|
354
|
+
{
|
|
355
|
+
"name": "token",
|
|
356
|
+
"type": "address",
|
|
357
|
+
"internalType": "address"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"name": "limit",
|
|
361
|
+
"type": "uint256",
|
|
362
|
+
"internalType": "uint256"
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"name": "triggerLower",
|
|
366
|
+
"type": "uint256",
|
|
367
|
+
"internalType": "uint256"
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"name": "triggerUpper",
|
|
371
|
+
"type": "uint256",
|
|
372
|
+
"internalType": "uint256"
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"name": "recipient",
|
|
376
|
+
"type": "address",
|
|
377
|
+
"internalType": "address"
|
|
378
|
+
}
|
|
379
|
+
]
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
"name": "target",
|
|
383
|
+
"type": "address",
|
|
384
|
+
"internalType": "address"
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
"name": "data",
|
|
388
|
+
"type": "bytes",
|
|
389
|
+
"internalType": "bytes"
|
|
390
|
+
}
|
|
391
|
+
]
|
|
392
|
+
}
|
|
393
|
+
],
|
|
394
|
+
"outputs": [],
|
|
395
|
+
"stateMutability": "nonpayable"
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"type": "function",
|
|
399
|
+
"name": "router",
|
|
400
|
+
"inputs": [],
|
|
401
|
+
"outputs": [
|
|
402
|
+
{
|
|
403
|
+
"name": "",
|
|
404
|
+
"type": "address",
|
|
405
|
+
"internalType": "address"
|
|
406
|
+
}
|
|
407
|
+
],
|
|
408
|
+
"stateMutability": "view"
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
"type": "function",
|
|
412
|
+
"name": "spender",
|
|
413
|
+
"inputs": [],
|
|
414
|
+
"outputs": [
|
|
415
|
+
{
|
|
416
|
+
"name": "",
|
|
417
|
+
"type": "address",
|
|
418
|
+
"internalType": "address"
|
|
419
|
+
}
|
|
420
|
+
],
|
|
421
|
+
"stateMutability": "view"
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"type": "error",
|
|
425
|
+
"name": "AddressEmptyCode",
|
|
426
|
+
"inputs": [
|
|
427
|
+
{
|
|
428
|
+
"name": "target",
|
|
429
|
+
"type": "address",
|
|
430
|
+
"internalType": "address"
|
|
431
|
+
}
|
|
432
|
+
]
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
"type": "error",
|
|
436
|
+
"name": "FailedCall",
|
|
437
|
+
"inputs": []
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
"type": "error",
|
|
441
|
+
"name": "InsufficientBalance",
|
|
442
|
+
"inputs": [
|
|
443
|
+
{
|
|
444
|
+
"name": "balance",
|
|
445
|
+
"type": "uint256",
|
|
446
|
+
"internalType": "uint256"
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"name": "needed",
|
|
450
|
+
"type": "uint256",
|
|
451
|
+
"internalType": "uint256"
|
|
452
|
+
}
|
|
453
|
+
]
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"type": "error",
|
|
457
|
+
"name": "InvalidTarget",
|
|
458
|
+
"inputs": []
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"type": "error",
|
|
462
|
+
"name": "SafeERC20FailedOperation",
|
|
463
|
+
"inputs": [
|
|
464
|
+
{
|
|
465
|
+
"name": "token",
|
|
466
|
+
"type": "address",
|
|
467
|
+
"internalType": "address"
|
|
468
|
+
}
|
|
469
|
+
]
|
|
470
|
+
}
|
|
471
|
+
]
|