@lifi/composer-sdk 0.7.1 → 0.9.0
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 +5 -2
- package/dist/_virtual/_rolldown/runtime.cjs +33 -0
- package/dist/_virtual/_rolldown/runtime.js +13 -0
- package/dist/authoring/FlowBuilderCore.cjs +102 -120
- package/dist/authoring/FlowBuilderCore.cjs.map +1 -1
- package/dist/authoring/FlowBuilderCore.d.cts +58 -61
- package/dist/authoring/FlowBuilderCore.d.ts +58 -61
- package/dist/authoring/FlowBuilderCore.js +99 -97
- package/dist/authoring/FlowBuilderCore.js.map +1 -1
- package/dist/authoring/handles.cjs +25 -40
- package/dist/authoring/handles.cjs.map +1 -1
- package/dist/authoring/handles.d.cts +33 -34
- package/dist/authoring/handles.d.ts +33 -34
- package/dist/authoring/handles.js +21 -13
- package/dist/authoring/handles.js.map +1 -1
- package/dist/authoring/raw.cjs +85 -44
- package/dist/authoring/raw.cjs.map +1 -1
- package/dist/authoring/raw.d.cts +8 -8
- package/dist/authoring/raw.d.ts +8 -8
- package/dist/authoring/raw.js +83 -19
- package/dist/authoring/raw.js.map +1 -1
- package/dist/authoring/signatureArgs.cjs +81 -103
- package/dist/authoring/signatureArgs.cjs.map +1 -1
- package/dist/authoring/signatureArgs.d.cts +63 -64
- package/dist/authoring/signatureArgs.d.ts +63 -64
- package/dist/authoring/signatureArgs.js +76 -75
- package/dist/authoring/signatureArgs.js.map +1 -1
- package/dist/client.cjs +172 -220
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +131 -131
- package/dist/client.d.ts +131 -131
- package/dist/client.js +165 -198
- package/dist/client.js.map +1 -1
- package/dist/discovery.cjs +0 -17
- package/dist/discovery.d.cts +57 -56
- package/dist/discovery.d.ts +57 -56
- package/dist/discovery.js +1 -1
- package/dist/errors.cjs +211 -159
- package/dist/errors.cjs.map +1 -1
- package/dist/errors.d.cts +84 -84
- package/dist/errors.d.ts +84 -84
- package/dist/errors.js +201 -120
- package/dist/errors.js.map +1 -1
- package/dist/generated/config.generated.cjs +0 -17
- package/dist/generated/config.generated.d.cts +805 -895
- package/dist/generated/config.generated.d.ts +805 -895
- package/dist/generated/config.generated.js +1 -1
- package/dist/generated/guards.generated.cjs +27 -31
- package/dist/generated/guards.generated.cjs.map +1 -1
- package/dist/generated/guards.generated.d.cts +20 -4
- package/dist/generated/guards.generated.d.ts +20 -4
- package/dist/generated/guards.generated.js +21 -8
- package/dist/generated/guards.generated.js.map +1 -1
- package/dist/generated/materialisers.generated.cjs +25 -35
- package/dist/generated/materialisers.generated.cjs.map +1 -1
- package/dist/generated/materialisers.generated.d.cts +17 -4
- package/dist/generated/materialisers.generated.d.ts +17 -4
- package/dist/generated/materialisers.generated.js +19 -11
- package/dist/generated/materialisers.generated.js.map +1 -1
- package/dist/generated/operations.generated.cjs +236 -250
- package/dist/generated/operations.generated.cjs.map +1 -1
- package/dist/generated/operations.generated.d.cts +740 -657
- package/dist/generated/operations.generated.d.ts +740 -657
- package/dist/generated/operations.generated.js +235 -229
- package/dist/generated/operations.generated.js.map +1 -1
- package/dist/generated/preconditions.generated.cjs +25 -35
- package/dist/generated/preconditions.generated.cjs.map +1 -1
- package/dist/generated/preconditions.generated.d.cts +17 -4
- package/dist/generated/preconditions.generated.d.ts +17 -4
- package/dist/generated/preconditions.generated.js +19 -11
- package/dist/generated/preconditions.generated.js.map +1 -1
- package/dist/index.cjs +131 -97
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +29 -43
- package/dist/index.d.ts +29 -43
- package/dist/index.js +96 -45
- package/dist/index.js.map +1 -1
- package/dist/outputs.cjs +11 -32
- package/dist/outputs.cjs.map +1 -1
- package/dist/outputs.d.cts +5 -5
- package/dist/outputs.d.ts +5 -5
- package/dist/outputs.js +10 -8
- package/dist/outputs.js.map +1 -1
- package/dist/raw.cjs +21 -33
- package/dist/raw.cjs.map +1 -1
- package/dist/raw.d.cts +8 -4
- package/dist/raw.d.ts +8 -4
- package/dist/raw.js +12 -7
- package/dist/raw.js.map +1 -1
- package/dist/reachability.cjs +82 -112
- package/dist/reachability.cjs.map +1 -1
- package/dist/reachability.d.cts +33 -59
- package/dist/reachability.d.ts +33 -59
- package/dist/reachability.js +81 -88
- package/dist/reachability.js.map +1 -1
- package/dist/resources.cjs +47 -32
- package/dist/resources.cjs.map +1 -1
- package/dist/resources.d.cts +50 -3
- package/dist/resources.d.ts +50 -3
- package/dist/resources.js +42 -9
- package/dist/resources.js.map +1 -1
- package/dist/responseSchemas.cjs +99 -111
- package/dist/responseSchemas.cjs.map +1 -1
- package/dist/responseSchemas.d.cts +34 -34
- package/dist/responseSchemas.d.ts +34 -34
- package/dist/responseSchemas.js +85 -66
- package/dist/responseSchemas.js.map +1 -1
- package/dist/routeAmount.cjs +61 -31
- package/dist/routeAmount.cjs.map +1 -1
- package/dist/routeAmount.d.cts +52 -2
- package/dist/routeAmount.d.ts +52 -2
- package/dist/routeAmount.js +56 -8
- package/dist/routeAmount.js.map +1 -1
- package/dist/run/inputs.cjs +56 -48
- package/dist/run/inputs.cjs.map +1 -1
- package/dist/run/inputs.d.cts +70 -74
- package/dist/run/inputs.d.ts +70 -74
- package/dist/run/inputs.js +54 -23
- package/dist/run/inputs.js.map +1 -1
- package/dist/run/simulate.cjs +38 -43
- package/dist/run/simulate.cjs.map +1 -1
- package/dist/run/simulate.d.cts +36 -36
- package/dist/run/simulate.d.ts +36 -36
- package/dist/run/simulate.js +37 -19
- package/dist/run/simulate.js.map +1 -1
- package/dist/sdk.cjs +55 -66
- package/dist/sdk.cjs.map +1 -1
- package/dist/sdk.d.cts +108 -111
- package/dist/sdk.d.ts +108 -111
- package/dist/sdk.js +52 -44
- package/dist/sdk.js.map +1 -1
- package/dist/types.cjs +0 -17
- package/dist/types.d.cts +22 -22
- package/dist/types.d.ts +22 -22
- package/dist/types.js +1 -1
- package/package.json +4 -4
- package/src/client.ts +2 -2
- package/src/examples/aaveClaimRewards.ts +2 -1
- package/src/examples/emitCustomEvent.ts +1 -2
- package/src/examples/run.ts +14 -1
- package/src/examples/transferTokens.ts +21 -17
- package/src/examples/uniswapV2AddLiquidity.ts +106 -0
- package/src/examples/uniswapV3Mint.ts +95 -0
- package/src/generated/config.generated.ts +102 -47
- package/src/generated/guards.generated.ts +9 -0
- package/src/generated/operations.generated.ts +161 -5
- package/src/index.ts +0 -3
- package/dist/discovery.cjs.map +0 -1
- package/dist/discovery.js.map +0 -1
- package/dist/generated/config.generated.cjs.map +0 -1
- package/dist/generated/config.generated.js.map +0 -1
- package/dist/guards.generated-BPLFwe7y.d.ts +0 -19
- package/dist/guards.generated-M3VAIevI.d.cts +0 -19
- package/dist/materialisers.generated-BMkBQgWZ.d.ts +0 -24
- package/dist/materialisers.generated-BWq5oePO.d.cts +0 -24
- package/dist/preconditions.generated-DblS13Wq.d.cts +0 -24
- package/dist/preconditions.generated-U7YpVh30.d.ts +0 -24
- package/dist/raw-BvRghN3r.d.ts +0 -20
- package/dist/raw-s1rer8X3.d.cts +0 -20
- package/dist/resources-BKlFxjo8.d.cts +0 -56
- package/dist/resources-CYis1_DS.d.ts +0 -56
- package/dist/routeAmount-DdbJYJyM.d.cts +0 -55
- package/dist/routeAmount-DdbJYJyM.d.ts +0 -55
- package/dist/types.cjs.map +0 -1
- package/dist/types.js.map +0 -1
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { Address, IntegerStringInput } from "../types.js";
|
|
2
|
+
//#region src/generated/config.generated.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* a number between 0 and 10000
|
|
6
5
|
*/
|
|
7
|
-
type Between010000 = number;
|
|
8
|
-
interface CoreSplitConfig {
|
|
9
|
-
|
|
6
|
+
export type Between010000 = number;
|
|
7
|
+
export interface CoreSplitConfig {
|
|
8
|
+
bps: Between010000;
|
|
9
|
+
}
|
|
10
|
+
export interface CoreSplitAtConfig {
|
|
11
|
+
amount: IntegerStringInput;
|
|
10
12
|
}
|
|
11
13
|
/**
|
|
12
14
|
* an array of at most 16 item(s)
|
|
@@ -14,1087 +16,995 @@ interface CoreSplitConfig {
|
|
|
14
16
|
* @minItems 2
|
|
15
17
|
* @maxItems 16
|
|
16
18
|
*/
|
|
17
|
-
type MaxItems16 = [Between19999, Between19999] | [Between19999, Between19999, Between19999] | [Between19999, Between19999, Between19999, Between19999] | [Between19999, Between19999, Between19999, Between19999, Between19999] | [
|
|
18
|
-
Between19999,
|
|
19
|
-
Between19999,
|
|
20
|
-
Between19999,
|
|
21
|
-
Between19999,
|
|
22
|
-
Between19999,
|
|
23
|
-
Between19999
|
|
24
|
-
] | [
|
|
25
|
-
Between19999,
|
|
26
|
-
Between19999,
|
|
27
|
-
Between19999,
|
|
28
|
-
Between19999,
|
|
29
|
-
Between19999,
|
|
30
|
-
Between19999,
|
|
31
|
-
Between19999
|
|
32
|
-
] | [
|
|
33
|
-
Between19999,
|
|
34
|
-
Between19999,
|
|
35
|
-
Between19999,
|
|
36
|
-
Between19999,
|
|
37
|
-
Between19999,
|
|
38
|
-
Between19999,
|
|
39
|
-
Between19999,
|
|
40
|
-
Between19999
|
|
41
|
-
] | [
|
|
42
|
-
Between19999,
|
|
43
|
-
Between19999,
|
|
44
|
-
Between19999,
|
|
45
|
-
Between19999,
|
|
46
|
-
Between19999,
|
|
47
|
-
Between19999,
|
|
48
|
-
Between19999,
|
|
49
|
-
Between19999,
|
|
50
|
-
Between19999
|
|
51
|
-
] | [
|
|
52
|
-
Between19999,
|
|
53
|
-
Between19999,
|
|
54
|
-
Between19999,
|
|
55
|
-
Between19999,
|
|
56
|
-
Between19999,
|
|
57
|
-
Between19999,
|
|
58
|
-
Between19999,
|
|
59
|
-
Between19999,
|
|
60
|
-
Between19999,
|
|
61
|
-
Between19999
|
|
62
|
-
] | [
|
|
63
|
-
Between19999,
|
|
64
|
-
Between19999,
|
|
65
|
-
Between19999,
|
|
66
|
-
Between19999,
|
|
67
|
-
Between19999,
|
|
68
|
-
Between19999,
|
|
69
|
-
Between19999,
|
|
70
|
-
Between19999,
|
|
71
|
-
Between19999,
|
|
72
|
-
Between19999,
|
|
73
|
-
Between19999
|
|
74
|
-
] | [
|
|
75
|
-
Between19999,
|
|
76
|
-
Between19999,
|
|
77
|
-
Between19999,
|
|
78
|
-
Between19999,
|
|
79
|
-
Between19999,
|
|
80
|
-
Between19999,
|
|
81
|
-
Between19999,
|
|
82
|
-
Between19999,
|
|
83
|
-
Between19999,
|
|
84
|
-
Between19999,
|
|
85
|
-
Between19999,
|
|
86
|
-
Between19999
|
|
87
|
-
] | [
|
|
88
|
-
Between19999,
|
|
89
|
-
Between19999,
|
|
90
|
-
Between19999,
|
|
91
|
-
Between19999,
|
|
92
|
-
Between19999,
|
|
93
|
-
Between19999,
|
|
94
|
-
Between19999,
|
|
95
|
-
Between19999,
|
|
96
|
-
Between19999,
|
|
97
|
-
Between19999,
|
|
98
|
-
Between19999,
|
|
99
|
-
Between19999,
|
|
100
|
-
Between19999
|
|
101
|
-
] | [
|
|
102
|
-
Between19999,
|
|
103
|
-
Between19999,
|
|
104
|
-
Between19999,
|
|
105
|
-
Between19999,
|
|
106
|
-
Between19999,
|
|
107
|
-
Between19999,
|
|
108
|
-
Between19999,
|
|
109
|
-
Between19999,
|
|
110
|
-
Between19999,
|
|
111
|
-
Between19999,
|
|
112
|
-
Between19999,
|
|
113
|
-
Between19999,
|
|
114
|
-
Between19999,
|
|
115
|
-
Between19999
|
|
116
|
-
] | [
|
|
117
|
-
Between19999,
|
|
118
|
-
Between19999,
|
|
119
|
-
Between19999,
|
|
120
|
-
Between19999,
|
|
121
|
-
Between19999,
|
|
122
|
-
Between19999,
|
|
123
|
-
Between19999,
|
|
124
|
-
Between19999,
|
|
125
|
-
Between19999,
|
|
126
|
-
Between19999,
|
|
127
|
-
Between19999,
|
|
128
|
-
Between19999,
|
|
129
|
-
Between19999,
|
|
130
|
-
Between19999,
|
|
131
|
-
Between19999
|
|
132
|
-
] | [
|
|
133
|
-
Between19999,
|
|
134
|
-
Between19999,
|
|
135
|
-
Between19999,
|
|
136
|
-
Between19999,
|
|
137
|
-
Between19999,
|
|
138
|
-
Between19999,
|
|
139
|
-
Between19999,
|
|
140
|
-
Between19999,
|
|
141
|
-
Between19999,
|
|
142
|
-
Between19999,
|
|
143
|
-
Between19999,
|
|
144
|
-
Between19999,
|
|
145
|
-
Between19999,
|
|
146
|
-
Between19999,
|
|
147
|
-
Between19999,
|
|
148
|
-
Between19999
|
|
149
|
-
];
|
|
19
|
+
export type MaxItems16 = [Between19999, Between19999] | [Between19999, Between19999, Between19999] | [Between19999, Between19999, Between19999, Between19999] | [Between19999, Between19999, Between19999, Between19999, Between19999] | [Between19999, Between19999, Between19999, Between19999, Between19999, Between19999] | [Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999] | [Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999] | [Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999] | [Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999] | [Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999] | [Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999] | [Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999] | [Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999] | [Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999] | [Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999, Between19999];
|
|
150
20
|
/**
|
|
151
21
|
* a number between 1 and 9999
|
|
152
22
|
*/
|
|
153
|
-
type Between19999 = number;
|
|
154
|
-
interface CorePartitionConfig {
|
|
155
|
-
|
|
23
|
+
export type Between19999 = number;
|
|
24
|
+
export interface CorePartitionConfig {
|
|
25
|
+
bps: MaxItems16;
|
|
156
26
|
}
|
|
157
27
|
/**
|
|
158
28
|
* a positive number
|
|
159
29
|
*/
|
|
160
|
-
type Positive = number;
|
|
30
|
+
export type Positive = number;
|
|
31
|
+
/**
|
|
32
|
+
* a number between 0 and 1
|
|
33
|
+
*/
|
|
34
|
+
export type Between01 = number;
|
|
161
35
|
/**
|
|
162
36
|
* a string at most 64 character(s) long
|
|
163
37
|
*/
|
|
164
|
-
type MaxLength64 = string;
|
|
38
|
+
export type MaxLength64 = string;
|
|
165
39
|
/**
|
|
166
40
|
* an array of at most 50 item(s)
|
|
167
41
|
*
|
|
168
42
|
* @maxItems 50
|
|
169
43
|
*/
|
|
170
|
-
type MaxItems50 = MaxLength64[];
|
|
171
|
-
interface LifiSwapConfig {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* EVM address: 0x followed by 40 hex characters
|
|
179
|
-
*/
|
|
180
|
-
token: Address;
|
|
181
|
-
chainId: Positive;
|
|
182
|
-
};
|
|
183
|
-
slippage?: number;
|
|
184
|
-
timing?: {
|
|
185
|
-
swapStepTimingStrategies?: {
|
|
186
|
-
strategy: 'minWaitTime';
|
|
187
|
-
minWaitTimeMs: number;
|
|
188
|
-
startingExpectedResults: number;
|
|
189
|
-
reduceEveryMs: number;
|
|
190
|
-
}[];
|
|
191
|
-
routeTimingStrategies?: {
|
|
192
|
-
strategy: 'minWaitTime';
|
|
193
|
-
minWaitTimeMs: number;
|
|
194
|
-
startingExpectedResults: number;
|
|
195
|
-
reduceEveryMs: number;
|
|
196
|
-
}[];
|
|
197
|
-
};
|
|
198
|
-
exchanges?: {
|
|
199
|
-
allow?: MaxItems50;
|
|
200
|
-
deny?: MaxItems50;
|
|
201
|
-
prefer?: MaxItems50;
|
|
202
|
-
};
|
|
203
|
-
}
|
|
204
|
-
/**
|
|
205
|
-
* a string starting with "0x"
|
|
206
|
-
*/
|
|
207
|
-
type StartsWith0X = string;
|
|
208
|
-
/**
|
|
209
|
-
* a number between 0 and 1
|
|
210
|
-
*/
|
|
211
|
-
type Between01 = number;
|
|
212
|
-
interface LifiBridgeConfig {
|
|
213
|
-
resourceOut: {
|
|
214
|
-
kind: 'native';
|
|
215
|
-
chainId: Positive;
|
|
216
|
-
} | {
|
|
217
|
-
kind: 'erc20';
|
|
218
|
-
/**
|
|
219
|
-
* EVM address: 0x followed by 40 hex characters
|
|
220
|
-
*/
|
|
221
|
-
token: Address;
|
|
222
|
-
chainId: Positive;
|
|
223
|
-
};
|
|
224
|
-
destination: StartsWith0X;
|
|
225
|
-
slippage?: Between01;
|
|
226
|
-
timing?: {
|
|
227
|
-
swapStepTimingStrategies?: {
|
|
228
|
-
strategy: 'minWaitTime';
|
|
229
|
-
minWaitTimeMs: number;
|
|
230
|
-
startingExpectedResults: number;
|
|
231
|
-
reduceEveryMs: number;
|
|
232
|
-
}[];
|
|
233
|
-
routeTimingStrategies?: {
|
|
234
|
-
strategy: 'minWaitTime';
|
|
235
|
-
minWaitTimeMs: number;
|
|
236
|
-
startingExpectedResults: number;
|
|
237
|
-
reduceEveryMs: number;
|
|
238
|
-
}[];
|
|
239
|
-
};
|
|
240
|
-
bridges?: {
|
|
241
|
-
allow?: MaxItems50;
|
|
242
|
-
deny?: MaxItems50;
|
|
243
|
-
prefer?: MaxItems50;
|
|
244
|
-
};
|
|
245
|
-
exchanges?: {
|
|
246
|
-
allow?: MaxItems50;
|
|
247
|
-
deny?: MaxItems50;
|
|
248
|
-
prefer?: MaxItems50;
|
|
249
|
-
};
|
|
250
|
-
order?: 'FASTEST' | 'CHEAPEST';
|
|
251
|
-
}
|
|
252
|
-
interface InvariantNumericConfig {
|
|
253
|
-
op: 'gte' | 'gt' | 'lte' | 'lt' | 'eq' | 'neq';
|
|
254
|
-
threshold: IntegerStringInput;
|
|
255
|
-
}
|
|
256
|
-
interface InvariantNumericInRangeConfig {
|
|
257
|
-
min: IntegerStringInput;
|
|
258
|
-
max: IntegerStringInput;
|
|
259
|
-
}
|
|
260
|
-
interface InvariantGteConfig {
|
|
261
|
-
threshold: IntegerStringInput;
|
|
262
|
-
}
|
|
263
|
-
interface InvariantGtConfig {
|
|
264
|
-
threshold: IntegerStringInput;
|
|
265
|
-
}
|
|
266
|
-
interface InvariantLteConfig {
|
|
267
|
-
threshold: IntegerStringInput;
|
|
268
|
-
}
|
|
269
|
-
interface InvariantLtConfig {
|
|
270
|
-
threshold: IntegerStringInput;
|
|
271
|
-
}
|
|
272
|
-
interface InvariantEqConfig {
|
|
273
|
-
threshold: IntegerStringInput;
|
|
274
|
-
}
|
|
275
|
-
interface InvariantNeqConfig {
|
|
276
|
-
threshold: IntegerStringInput;
|
|
277
|
-
}
|
|
278
|
-
/**
|
|
279
|
-
* a non-negative number
|
|
280
|
-
*/
|
|
281
|
-
type NonNegative = number;
|
|
282
|
-
interface CoreBpsDownConfig {
|
|
283
|
-
bps: NonNegative;
|
|
284
|
-
}
|
|
285
|
-
interface CoreBpsUpConfig {
|
|
286
|
-
bps: NonNegative;
|
|
287
|
-
}
|
|
288
|
-
interface CoreApproveConfig {
|
|
44
|
+
export type MaxItems50 = MaxLength64[];
|
|
45
|
+
export interface LifiSwapConfig {
|
|
46
|
+
resourceOut: {
|
|
47
|
+
kind: "native";
|
|
48
|
+
chainId: Positive;
|
|
49
|
+
} | {
|
|
50
|
+
kind: "erc20";
|
|
289
51
|
/**
|
|
290
52
|
* EVM address: 0x followed by 40 hex characters
|
|
291
53
|
*/
|
|
292
|
-
|
|
54
|
+
token: Address;
|
|
55
|
+
chainId: Positive;
|
|
56
|
+
};
|
|
57
|
+
slippage?: Between01;
|
|
58
|
+
timing?: {
|
|
59
|
+
swapStepTimingStrategies?: {
|
|
60
|
+
strategy: "minWaitTime";
|
|
61
|
+
minWaitTimeMs: number;
|
|
62
|
+
startingExpectedResults: number;
|
|
63
|
+
reduceEveryMs: number;
|
|
64
|
+
}[];
|
|
65
|
+
routeTimingStrategies?: {
|
|
66
|
+
strategy: "minWaitTime";
|
|
67
|
+
minWaitTimeMs: number;
|
|
68
|
+
startingExpectedResults: number;
|
|
69
|
+
reduceEveryMs: number;
|
|
70
|
+
}[];
|
|
71
|
+
};
|
|
72
|
+
exchanges?: {
|
|
73
|
+
allow?: MaxItems50;
|
|
74
|
+
deny?: MaxItems50;
|
|
75
|
+
prefer?: MaxItems50;
|
|
76
|
+
};
|
|
293
77
|
}
|
|
294
|
-
|
|
78
|
+
/**
|
|
79
|
+
* a string starting with "0x"
|
|
80
|
+
*/
|
|
81
|
+
export type StartsWith0X = string;
|
|
82
|
+
export interface LifiBridgeConfig {
|
|
83
|
+
resourceOut: {
|
|
84
|
+
kind: "native";
|
|
85
|
+
chainId: Positive;
|
|
86
|
+
} | {
|
|
87
|
+
kind: "erc20";
|
|
295
88
|
/**
|
|
296
89
|
* EVM address: 0x followed by 40 hex characters
|
|
297
90
|
*/
|
|
298
91
|
token: Address;
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
92
|
+
chainId: Positive;
|
|
93
|
+
};
|
|
94
|
+
destination: StartsWith0X;
|
|
95
|
+
slippage?: Between01;
|
|
96
|
+
timing?: {
|
|
97
|
+
swapStepTimingStrategies?: {
|
|
98
|
+
strategy: "minWaitTime";
|
|
99
|
+
minWaitTimeMs: number;
|
|
100
|
+
startingExpectedResults: number;
|
|
101
|
+
reduceEveryMs: number;
|
|
102
|
+
}[];
|
|
103
|
+
routeTimingStrategies?: {
|
|
104
|
+
strategy: "minWaitTime";
|
|
105
|
+
minWaitTimeMs: number;
|
|
106
|
+
startingExpectedResults: number;
|
|
107
|
+
reduceEveryMs: number;
|
|
108
|
+
}[];
|
|
109
|
+
};
|
|
110
|
+
bridges?: {
|
|
111
|
+
allow?: MaxItems50;
|
|
112
|
+
deny?: MaxItems50;
|
|
113
|
+
prefer?: MaxItems50;
|
|
114
|
+
};
|
|
115
|
+
exchanges?: {
|
|
116
|
+
allow?: MaxItems50;
|
|
117
|
+
deny?: MaxItems50;
|
|
118
|
+
prefer?: MaxItems50;
|
|
119
|
+
};
|
|
120
|
+
order?: "FASTEST" | "CHEAPEST";
|
|
121
|
+
}
|
|
122
|
+
export interface InvariantNumericConfig {
|
|
123
|
+
op: "gte" | "gt" | "lte" | "lt" | "eq" | "neq";
|
|
124
|
+
threshold: IntegerStringInput;
|
|
125
|
+
}
|
|
126
|
+
export interface InvariantNumericInRangeConfig {
|
|
127
|
+
min: IntegerStringInput;
|
|
128
|
+
max: IntegerStringInput;
|
|
129
|
+
}
|
|
130
|
+
export interface InvariantGteConfig {
|
|
131
|
+
threshold: IntegerStringInput;
|
|
132
|
+
}
|
|
133
|
+
export interface InvariantGtConfig {
|
|
134
|
+
threshold: IntegerStringInput;
|
|
135
|
+
}
|
|
136
|
+
export interface InvariantLteConfig {
|
|
137
|
+
threshold: IntegerStringInput;
|
|
138
|
+
}
|
|
139
|
+
export interface InvariantLtConfig {
|
|
140
|
+
threshold: IntegerStringInput;
|
|
141
|
+
}
|
|
142
|
+
export interface InvariantEqConfig {
|
|
143
|
+
threshold: IntegerStringInput;
|
|
144
|
+
}
|
|
145
|
+
export interface InvariantNeqConfig {
|
|
146
|
+
threshold: IntegerStringInput;
|
|
315
147
|
}
|
|
316
|
-
|
|
317
|
-
|
|
148
|
+
/**
|
|
149
|
+
* a non-negative number
|
|
150
|
+
*/
|
|
151
|
+
export type NonNegative = number;
|
|
152
|
+
export interface CoreBpsDownConfig {
|
|
153
|
+
bps: NonNegative;
|
|
154
|
+
}
|
|
155
|
+
export interface CoreBpsUpConfig {
|
|
156
|
+
bps: NonNegative;
|
|
157
|
+
}
|
|
158
|
+
export interface CoreApproveConfig {
|
|
159
|
+
/**
|
|
160
|
+
* EVM address: 0x followed by 40 hex characters
|
|
161
|
+
*/
|
|
162
|
+
spender: Address;
|
|
163
|
+
}
|
|
164
|
+
export interface CoreBalanceOfConfig {
|
|
165
|
+
/**
|
|
166
|
+
* EVM address: 0x followed by 40 hex characters
|
|
167
|
+
*/
|
|
168
|
+
token: Address;
|
|
169
|
+
/**
|
|
170
|
+
* EVM address: 0x followed by 40 hex characters
|
|
171
|
+
*/
|
|
172
|
+
owner?: Address;
|
|
173
|
+
}
|
|
174
|
+
export type CoreTransferConfig = Record<string, never>;
|
|
175
|
+
export interface CoreEmitEvent1Config {
|
|
176
|
+
signature: string;
|
|
177
|
+
}
|
|
178
|
+
export interface CoreEmitEvent2Config {
|
|
179
|
+
signature: string;
|
|
180
|
+
}
|
|
181
|
+
export interface CoreEmitEvent3Config {
|
|
182
|
+
signature: string;
|
|
183
|
+
}
|
|
184
|
+
export interface CoreEmitEvent4Config {
|
|
185
|
+
signature: string;
|
|
318
186
|
}
|
|
319
187
|
/**
|
|
320
188
|
* a string at most 65536 character(s) long
|
|
321
189
|
*/
|
|
322
|
-
type MaxLength65536 = string;
|
|
323
|
-
interface CoreCallConfig {
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
}
|
|
346
|
-
interface CoreStaticCallConfig {
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
}
|
|
363
|
-
interface CoreRawCallConfig {
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
}
|
|
369
|
-
interface CoreInvokeConfig {
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
}
|
|
387
|
-
interface CoreAsResourceConfig {
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
/**
|
|
394
|
-
* EVM address: 0x followed by 40 hex characters
|
|
395
|
-
*/
|
|
396
|
-
token: Address;
|
|
397
|
-
chainId: Positive;
|
|
398
|
-
};
|
|
399
|
-
}
|
|
400
|
-
interface AaveBorrowConfig {
|
|
401
|
-
/**
|
|
402
|
-
* EVM address: 0x followed by 40 hex characters
|
|
403
|
-
*/
|
|
404
|
-
pool: string;
|
|
405
|
-
/**
|
|
406
|
-
* EVM address: 0x followed by 40 hex characters
|
|
407
|
-
*/
|
|
408
|
-
asset: string;
|
|
409
|
-
/**
|
|
410
|
-
* EVM address: 0x followed by 40 hex characters
|
|
411
|
-
*/
|
|
412
|
-
variableDebtToken: string;
|
|
413
|
-
amount: IntegerStringInput;
|
|
414
|
-
referralId?: number;
|
|
415
|
-
}
|
|
416
|
-
type AaveRepayConfig = {
|
|
190
|
+
export type MaxLength65536 = string;
|
|
191
|
+
export interface CoreCallConfig {
|
|
192
|
+
target: Address;
|
|
193
|
+
functionSignature: string;
|
|
194
|
+
callType?: "Call" | "ValueCall";
|
|
195
|
+
args?: ((MaxLength65536 | number | boolean | {
|
|
196
|
+
$ref: string;
|
|
197
|
+
}) | ((MaxLength65536 | number | boolean | {
|
|
198
|
+
$ref: string;
|
|
199
|
+
}) | ((MaxLength65536 | number | boolean | {
|
|
200
|
+
$ref: string;
|
|
201
|
+
}) | ((MaxLength65536 | number | boolean | {
|
|
202
|
+
$ref: string;
|
|
203
|
+
}) | ((MaxLength65536 | number | boolean | {
|
|
204
|
+
$ref: string;
|
|
205
|
+
}) | (MaxLength65536 | number | boolean | {
|
|
206
|
+
$ref: string;
|
|
207
|
+
})[])[])[])[])[])[];
|
|
208
|
+
approvals?: ({
|
|
209
|
+
spender: Address;
|
|
210
|
+
} | {
|
|
211
|
+
from: "sender";
|
|
212
|
+
})[];
|
|
213
|
+
}
|
|
214
|
+
export interface CoreStaticCallConfig {
|
|
215
|
+
target: Address;
|
|
216
|
+
functionSignature: string;
|
|
217
|
+
args?: ((MaxLength65536 | number | boolean | {
|
|
218
|
+
$ref: string;
|
|
219
|
+
}) | ((MaxLength65536 | number | boolean | {
|
|
220
|
+
$ref: string;
|
|
221
|
+
}) | ((MaxLength65536 | number | boolean | {
|
|
222
|
+
$ref: string;
|
|
223
|
+
}) | ((MaxLength65536 | number | boolean | {
|
|
224
|
+
$ref: string;
|
|
225
|
+
}) | ((MaxLength65536 | number | boolean | {
|
|
226
|
+
$ref: string;
|
|
227
|
+
}) | (MaxLength65536 | number | boolean | {
|
|
228
|
+
$ref: string;
|
|
229
|
+
})[])[])[])[])[])[];
|
|
230
|
+
}
|
|
231
|
+
export interface CoreRawCallConfig {
|
|
232
|
+
target: Address;
|
|
233
|
+
calldata: string;
|
|
234
|
+
callType?: "Call" | "StaticCall" | "ValueCall" | "DelegateCall";
|
|
235
|
+
resultType?: string;
|
|
236
|
+
}
|
|
237
|
+
export interface CoreInvokeConfig {
|
|
238
|
+
target: Address;
|
|
239
|
+
functionSignature: string;
|
|
240
|
+
callType?: "Call" | "ValueCall";
|
|
241
|
+
args?: ((MaxLength65536 | number | boolean | {
|
|
242
|
+
$ref: string;
|
|
243
|
+
}) | ((MaxLength65536 | number | boolean | {
|
|
244
|
+
$ref: string;
|
|
245
|
+
}) | ((MaxLength65536 | number | boolean | {
|
|
246
|
+
$ref: string;
|
|
247
|
+
}) | ((MaxLength65536 | number | boolean | {
|
|
248
|
+
$ref: string;
|
|
249
|
+
}) | ((MaxLength65536 | number | boolean | {
|
|
250
|
+
$ref: string;
|
|
251
|
+
}) | (MaxLength65536 | number | boolean | {
|
|
252
|
+
$ref: string;
|
|
253
|
+
})[])[])[])[])[])[];
|
|
254
|
+
}
|
|
255
|
+
export interface CoreAsResourceConfig {
|
|
256
|
+
resource: {
|
|
257
|
+
kind: "native";
|
|
258
|
+
chainId: Positive;
|
|
259
|
+
} | {
|
|
260
|
+
kind: "erc20";
|
|
417
261
|
/**
|
|
418
262
|
* EVM address: 0x followed by 40 hex characters
|
|
419
263
|
*/
|
|
420
|
-
|
|
421
|
-
|
|
264
|
+
token: Address;
|
|
265
|
+
chainId: Positive;
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
export interface AaveBorrowConfig {
|
|
269
|
+
/**
|
|
270
|
+
* EVM address: 0x followed by 40 hex characters
|
|
271
|
+
*/
|
|
272
|
+
pool: string;
|
|
273
|
+
/**
|
|
274
|
+
* EVM address: 0x followed by 40 hex characters
|
|
275
|
+
*/
|
|
276
|
+
asset: string;
|
|
277
|
+
/**
|
|
278
|
+
* EVM address: 0x followed by 40 hex characters
|
|
279
|
+
*/
|
|
280
|
+
variableDebtToken: string;
|
|
281
|
+
amount: IntegerStringInput;
|
|
282
|
+
referralId?: number;
|
|
283
|
+
}
|
|
284
|
+
export type AaveRepayConfig = {
|
|
285
|
+
/**
|
|
286
|
+
* EVM address: 0x followed by 40 hex characters
|
|
287
|
+
*/
|
|
288
|
+
pool: string;
|
|
289
|
+
mode: "exact";
|
|
422
290
|
} | {
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
291
|
+
/**
|
|
292
|
+
* EVM address: 0x followed by 40 hex characters
|
|
293
|
+
*/
|
|
294
|
+
pool: string;
|
|
295
|
+
mode: "max";
|
|
428
296
|
};
|
|
429
|
-
interface AaveRepayWithATokensConfig {
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
}
|
|
439
|
-
interface AaveClaimRewardsConfig {
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
297
|
+
export interface AaveRepayWithATokensConfig {
|
|
298
|
+
/**
|
|
299
|
+
* EVM address: 0x followed by 40 hex characters
|
|
300
|
+
*/
|
|
301
|
+
pool: string;
|
|
302
|
+
/**
|
|
303
|
+
* EVM address: 0x followed by 40 hex characters
|
|
304
|
+
*/
|
|
305
|
+
asset: string;
|
|
306
|
+
}
|
|
307
|
+
export interface AaveClaimRewardsConfig {
|
|
308
|
+
/**
|
|
309
|
+
* EVM address: 0x followed by 40 hex characters
|
|
310
|
+
*/
|
|
311
|
+
rewardsController: string;
|
|
312
|
+
assets: string[];
|
|
313
|
+
/**
|
|
314
|
+
* EVM address: 0x followed by 40 hex characters
|
|
315
|
+
*/
|
|
316
|
+
reward: string;
|
|
317
|
+
amount?: IntegerStringInput;
|
|
318
|
+
/**
|
|
319
|
+
* EVM address: 0x followed by 40 hex characters
|
|
320
|
+
*/
|
|
321
|
+
to?: string;
|
|
454
322
|
}
|
|
455
323
|
/**
|
|
456
324
|
* a number between 0 and 255
|
|
457
325
|
*/
|
|
458
|
-
type Between0255 = number;
|
|
459
|
-
interface AaveSetEModeConfig {
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
}
|
|
466
|
-
interface AaveGetHealthFactorConfig {
|
|
326
|
+
export type Between0255 = number;
|
|
327
|
+
export interface AaveSetEModeConfig {
|
|
328
|
+
/**
|
|
329
|
+
* EVM address: 0x followed by 40 hex characters
|
|
330
|
+
*/
|
|
331
|
+
pool: string;
|
|
332
|
+
category: Between0255;
|
|
333
|
+
}
|
|
334
|
+
export interface AaveGetHealthFactorConfig {
|
|
335
|
+
/**
|
|
336
|
+
* EVM address: 0x followed by 40 hex characters
|
|
337
|
+
*/
|
|
338
|
+
pool: string;
|
|
339
|
+
/**
|
|
340
|
+
* EVM address: 0x followed by 40 hex characters
|
|
341
|
+
*/
|
|
342
|
+
user?: string;
|
|
343
|
+
}
|
|
344
|
+
export type MorphoBlueSupplyCollateralConfig = ({
|
|
345
|
+
/**
|
|
346
|
+
* EVM address: 0x followed by 40 hex characters
|
|
347
|
+
*/
|
|
348
|
+
morpho?: string;
|
|
349
|
+
/**
|
|
350
|
+
* EVM address: 0x followed by 40 hex characters
|
|
351
|
+
*/
|
|
352
|
+
onBehalfOf?: string;
|
|
353
|
+
mode: "exact";
|
|
354
|
+
/**
|
|
355
|
+
* a string matching the pattern ^0x[0-9a-fA-F]{64}$
|
|
356
|
+
*/
|
|
357
|
+
marketId: string;
|
|
358
|
+
} | {
|
|
359
|
+
/**
|
|
360
|
+
* EVM address: 0x followed by 40 hex characters
|
|
361
|
+
*/
|
|
362
|
+
morpho?: string;
|
|
363
|
+
/**
|
|
364
|
+
* EVM address: 0x followed by 40 hex characters
|
|
365
|
+
*/
|
|
366
|
+
onBehalfOf?: string;
|
|
367
|
+
mode: "exact";
|
|
368
|
+
marketParams: {
|
|
467
369
|
/**
|
|
468
370
|
* EVM address: 0x followed by 40 hex characters
|
|
469
371
|
*/
|
|
470
|
-
|
|
372
|
+
loanToken: string;
|
|
471
373
|
/**
|
|
472
374
|
* EVM address: 0x followed by 40 hex characters
|
|
473
375
|
*/
|
|
474
|
-
|
|
475
|
-
}
|
|
476
|
-
type MorphoBlueSupplyCollateralConfig = ({
|
|
376
|
+
collateralToken: string;
|
|
477
377
|
/**
|
|
478
378
|
* EVM address: 0x followed by 40 hex characters
|
|
479
379
|
*/
|
|
480
|
-
|
|
380
|
+
oracle: string;
|
|
481
381
|
/**
|
|
482
382
|
* EVM address: 0x followed by 40 hex characters
|
|
483
383
|
*/
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
384
|
+
irm: string;
|
|
385
|
+
lltv: string;
|
|
386
|
+
};
|
|
387
|
+
}) | ({
|
|
388
|
+
/**
|
|
389
|
+
* EVM address: 0x followed by 40 hex characters
|
|
390
|
+
*/
|
|
391
|
+
morpho?: string;
|
|
392
|
+
/**
|
|
393
|
+
* EVM address: 0x followed by 40 hex characters
|
|
394
|
+
*/
|
|
395
|
+
onBehalfOf?: string;
|
|
396
|
+
mode: "all";
|
|
397
|
+
/**
|
|
398
|
+
* a string matching the pattern ^0x[0-9a-fA-F]{64}$
|
|
399
|
+
*/
|
|
400
|
+
marketId: string;
|
|
490
401
|
} | {
|
|
402
|
+
/**
|
|
403
|
+
* EVM address: 0x followed by 40 hex characters
|
|
404
|
+
*/
|
|
405
|
+
morpho?: string;
|
|
406
|
+
/**
|
|
407
|
+
* EVM address: 0x followed by 40 hex characters
|
|
408
|
+
*/
|
|
409
|
+
onBehalfOf?: string;
|
|
410
|
+
mode: "all";
|
|
411
|
+
marketParams: {
|
|
491
412
|
/**
|
|
492
413
|
* EVM address: 0x followed by 40 hex characters
|
|
493
414
|
*/
|
|
494
|
-
|
|
415
|
+
loanToken: string;
|
|
495
416
|
/**
|
|
496
417
|
* EVM address: 0x followed by 40 hex characters
|
|
497
418
|
*/
|
|
498
|
-
|
|
499
|
-
mode: 'exact';
|
|
500
|
-
marketParams: {
|
|
501
|
-
/**
|
|
502
|
-
* EVM address: 0x followed by 40 hex characters
|
|
503
|
-
*/
|
|
504
|
-
loanToken: string;
|
|
505
|
-
/**
|
|
506
|
-
* EVM address: 0x followed by 40 hex characters
|
|
507
|
-
*/
|
|
508
|
-
collateralToken: string;
|
|
509
|
-
/**
|
|
510
|
-
* EVM address: 0x followed by 40 hex characters
|
|
511
|
-
*/
|
|
512
|
-
oracle: string;
|
|
513
|
-
/**
|
|
514
|
-
* EVM address: 0x followed by 40 hex characters
|
|
515
|
-
*/
|
|
516
|
-
irm: string;
|
|
517
|
-
lltv: string;
|
|
518
|
-
};
|
|
519
|
-
}) | ({
|
|
419
|
+
collateralToken: string;
|
|
520
420
|
/**
|
|
521
421
|
* EVM address: 0x followed by 40 hex characters
|
|
522
422
|
*/
|
|
523
|
-
|
|
423
|
+
oracle: string;
|
|
524
424
|
/**
|
|
525
425
|
* EVM address: 0x followed by 40 hex characters
|
|
526
426
|
*/
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
427
|
+
irm: string;
|
|
428
|
+
lltv: string;
|
|
429
|
+
};
|
|
430
|
+
});
|
|
431
|
+
export type MorphoBlueWithdrawCollateralConfig = {
|
|
432
|
+
/**
|
|
433
|
+
* EVM address: 0x followed by 40 hex characters
|
|
434
|
+
*/
|
|
435
|
+
morpho?: string;
|
|
436
|
+
amount: IntegerStringInput;
|
|
437
|
+
/**
|
|
438
|
+
* EVM address: 0x followed by 40 hex characters
|
|
439
|
+
*/
|
|
440
|
+
onBehalfOf?: string;
|
|
441
|
+
/**
|
|
442
|
+
* EVM address: 0x followed by 40 hex characters
|
|
443
|
+
*/
|
|
444
|
+
receiver?: string;
|
|
445
|
+
/**
|
|
446
|
+
* a string matching the pattern ^0x[0-9a-fA-F]{64}$
|
|
447
|
+
*/
|
|
448
|
+
marketId: string;
|
|
533
449
|
} | {
|
|
450
|
+
/**
|
|
451
|
+
* EVM address: 0x followed by 40 hex characters
|
|
452
|
+
*/
|
|
453
|
+
morpho?: string;
|
|
454
|
+
amount: IntegerStringInput;
|
|
455
|
+
/**
|
|
456
|
+
* EVM address: 0x followed by 40 hex characters
|
|
457
|
+
*/
|
|
458
|
+
onBehalfOf?: string;
|
|
459
|
+
/**
|
|
460
|
+
* EVM address: 0x followed by 40 hex characters
|
|
461
|
+
*/
|
|
462
|
+
receiver?: string;
|
|
463
|
+
marketParams: {
|
|
534
464
|
/**
|
|
535
465
|
* EVM address: 0x followed by 40 hex characters
|
|
536
466
|
*/
|
|
537
|
-
|
|
538
|
-
/**
|
|
539
|
-
* EVM address: 0x followed by 40 hex characters
|
|
540
|
-
*/
|
|
541
|
-
onBehalfOf?: string;
|
|
542
|
-
mode: 'all';
|
|
543
|
-
marketParams: {
|
|
544
|
-
/**
|
|
545
|
-
* EVM address: 0x followed by 40 hex characters
|
|
546
|
-
*/
|
|
547
|
-
loanToken: string;
|
|
548
|
-
/**
|
|
549
|
-
* EVM address: 0x followed by 40 hex characters
|
|
550
|
-
*/
|
|
551
|
-
collateralToken: string;
|
|
552
|
-
/**
|
|
553
|
-
* EVM address: 0x followed by 40 hex characters
|
|
554
|
-
*/
|
|
555
|
-
oracle: string;
|
|
556
|
-
/**
|
|
557
|
-
* EVM address: 0x followed by 40 hex characters
|
|
558
|
-
*/
|
|
559
|
-
irm: string;
|
|
560
|
-
lltv: string;
|
|
561
|
-
};
|
|
562
|
-
});
|
|
563
|
-
type MorphoBlueWithdrawCollateralConfig = {
|
|
467
|
+
loanToken: string;
|
|
564
468
|
/**
|
|
565
469
|
* EVM address: 0x followed by 40 hex characters
|
|
566
470
|
*/
|
|
567
|
-
|
|
568
|
-
amount: IntegerStringInput;
|
|
471
|
+
collateralToken: string;
|
|
569
472
|
/**
|
|
570
473
|
* EVM address: 0x followed by 40 hex characters
|
|
571
474
|
*/
|
|
572
|
-
|
|
475
|
+
oracle: string;
|
|
573
476
|
/**
|
|
574
477
|
* EVM address: 0x followed by 40 hex characters
|
|
575
478
|
*/
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
479
|
+
irm: string;
|
|
480
|
+
lltv: string;
|
|
481
|
+
};
|
|
482
|
+
};
|
|
483
|
+
export type MorphoBlueBorrowConfig = {
|
|
484
|
+
/**
|
|
485
|
+
* EVM address: 0x followed by 40 hex characters
|
|
486
|
+
*/
|
|
487
|
+
morpho?: string;
|
|
488
|
+
amount: IntegerStringInput;
|
|
489
|
+
/**
|
|
490
|
+
* EVM address: 0x followed by 40 hex characters
|
|
491
|
+
*/
|
|
492
|
+
onBehalfOf?: string;
|
|
493
|
+
/**
|
|
494
|
+
* EVM address: 0x followed by 40 hex characters
|
|
495
|
+
*/
|
|
496
|
+
receiver?: string;
|
|
497
|
+
/**
|
|
498
|
+
* a string matching the pattern ^0x[0-9a-fA-F]{64}$
|
|
499
|
+
*/
|
|
500
|
+
marketId: string;
|
|
581
501
|
} | {
|
|
502
|
+
/**
|
|
503
|
+
* EVM address: 0x followed by 40 hex characters
|
|
504
|
+
*/
|
|
505
|
+
morpho?: string;
|
|
506
|
+
amount: IntegerStringInput;
|
|
507
|
+
/**
|
|
508
|
+
* EVM address: 0x followed by 40 hex characters
|
|
509
|
+
*/
|
|
510
|
+
onBehalfOf?: string;
|
|
511
|
+
/**
|
|
512
|
+
* EVM address: 0x followed by 40 hex characters
|
|
513
|
+
*/
|
|
514
|
+
receiver?: string;
|
|
515
|
+
marketParams: {
|
|
582
516
|
/**
|
|
583
517
|
* EVM address: 0x followed by 40 hex characters
|
|
584
518
|
*/
|
|
585
|
-
|
|
586
|
-
amount: IntegerStringInput;
|
|
587
|
-
/**
|
|
588
|
-
* EVM address: 0x followed by 40 hex characters
|
|
589
|
-
*/
|
|
590
|
-
onBehalfOf?: string;
|
|
591
|
-
/**
|
|
592
|
-
* EVM address: 0x followed by 40 hex characters
|
|
593
|
-
*/
|
|
594
|
-
receiver?: string;
|
|
595
|
-
marketParams: {
|
|
596
|
-
/**
|
|
597
|
-
* EVM address: 0x followed by 40 hex characters
|
|
598
|
-
*/
|
|
599
|
-
loanToken: string;
|
|
600
|
-
/**
|
|
601
|
-
* EVM address: 0x followed by 40 hex characters
|
|
602
|
-
*/
|
|
603
|
-
collateralToken: string;
|
|
604
|
-
/**
|
|
605
|
-
* EVM address: 0x followed by 40 hex characters
|
|
606
|
-
*/
|
|
607
|
-
oracle: string;
|
|
608
|
-
/**
|
|
609
|
-
* EVM address: 0x followed by 40 hex characters
|
|
610
|
-
*/
|
|
611
|
-
irm: string;
|
|
612
|
-
lltv: string;
|
|
613
|
-
};
|
|
614
|
-
};
|
|
615
|
-
type MorphoBlueBorrowConfig = {
|
|
519
|
+
loanToken: string;
|
|
616
520
|
/**
|
|
617
521
|
* EVM address: 0x followed by 40 hex characters
|
|
618
522
|
*/
|
|
619
|
-
|
|
620
|
-
amount: IntegerStringInput;
|
|
523
|
+
collateralToken: string;
|
|
621
524
|
/**
|
|
622
525
|
* EVM address: 0x followed by 40 hex characters
|
|
623
526
|
*/
|
|
624
|
-
|
|
527
|
+
oracle: string;
|
|
625
528
|
/**
|
|
626
529
|
* EVM address: 0x followed by 40 hex characters
|
|
627
530
|
*/
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
531
|
+
irm: string;
|
|
532
|
+
lltv: string;
|
|
533
|
+
};
|
|
534
|
+
};
|
|
535
|
+
export type MorphoBlueRepayConfig = ({
|
|
536
|
+
/**
|
|
537
|
+
* EVM address: 0x followed by 40 hex characters
|
|
538
|
+
*/
|
|
539
|
+
morpho?: string;
|
|
540
|
+
mode: "exact";
|
|
541
|
+
/**
|
|
542
|
+
* a string matching the pattern ^0x[0-9a-fA-F]{64}$
|
|
543
|
+
*/
|
|
544
|
+
marketId: string;
|
|
633
545
|
} | {
|
|
546
|
+
/**
|
|
547
|
+
* EVM address: 0x followed by 40 hex characters
|
|
548
|
+
*/
|
|
549
|
+
morpho?: string;
|
|
550
|
+
mode: "exact";
|
|
551
|
+
marketParams: {
|
|
634
552
|
/**
|
|
635
553
|
* EVM address: 0x followed by 40 hex characters
|
|
636
554
|
*/
|
|
637
|
-
|
|
638
|
-
amount: IntegerStringInput;
|
|
639
|
-
/**
|
|
640
|
-
* EVM address: 0x followed by 40 hex characters
|
|
641
|
-
*/
|
|
642
|
-
onBehalfOf?: string;
|
|
555
|
+
loanToken: string;
|
|
643
556
|
/**
|
|
644
557
|
* EVM address: 0x followed by 40 hex characters
|
|
645
558
|
*/
|
|
646
|
-
|
|
647
|
-
marketParams: {
|
|
648
|
-
/**
|
|
649
|
-
* EVM address: 0x followed by 40 hex characters
|
|
650
|
-
*/
|
|
651
|
-
loanToken: string;
|
|
652
|
-
/**
|
|
653
|
-
* EVM address: 0x followed by 40 hex characters
|
|
654
|
-
*/
|
|
655
|
-
collateralToken: string;
|
|
656
|
-
/**
|
|
657
|
-
* EVM address: 0x followed by 40 hex characters
|
|
658
|
-
*/
|
|
659
|
-
oracle: string;
|
|
660
|
-
/**
|
|
661
|
-
* EVM address: 0x followed by 40 hex characters
|
|
662
|
-
*/
|
|
663
|
-
irm: string;
|
|
664
|
-
lltv: string;
|
|
665
|
-
};
|
|
666
|
-
};
|
|
667
|
-
type MorphoBlueRepayConfig = ({
|
|
559
|
+
collateralToken: string;
|
|
668
560
|
/**
|
|
669
561
|
* EVM address: 0x followed by 40 hex characters
|
|
670
562
|
*/
|
|
671
|
-
|
|
672
|
-
mode: 'exact';
|
|
673
|
-
/**
|
|
674
|
-
* a string matching the pattern ^0x[0-9a-fA-F]{64}$
|
|
675
|
-
*/
|
|
676
|
-
marketId: string;
|
|
677
|
-
} | {
|
|
563
|
+
oracle: string;
|
|
678
564
|
/**
|
|
679
565
|
* EVM address: 0x followed by 40 hex characters
|
|
680
566
|
*/
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
/**
|
|
685
|
-
* EVM address: 0x followed by 40 hex characters
|
|
686
|
-
*/
|
|
687
|
-
loanToken: string;
|
|
688
|
-
/**
|
|
689
|
-
* EVM address: 0x followed by 40 hex characters
|
|
690
|
-
*/
|
|
691
|
-
collateralToken: string;
|
|
692
|
-
/**
|
|
693
|
-
* EVM address: 0x followed by 40 hex characters
|
|
694
|
-
*/
|
|
695
|
-
oracle: string;
|
|
696
|
-
/**
|
|
697
|
-
* EVM address: 0x followed by 40 hex characters
|
|
698
|
-
*/
|
|
699
|
-
irm: string;
|
|
700
|
-
lltv: string;
|
|
701
|
-
};
|
|
567
|
+
irm: string;
|
|
568
|
+
lltv: string;
|
|
569
|
+
};
|
|
702
570
|
}) | ({
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
571
|
+
/**
|
|
572
|
+
* EVM address: 0x followed by 40 hex characters
|
|
573
|
+
*/
|
|
574
|
+
morpho?: string;
|
|
575
|
+
mode: "max";
|
|
576
|
+
/**
|
|
577
|
+
* a string matching the pattern ^0x[0-9a-fA-F]{64}$
|
|
578
|
+
*/
|
|
579
|
+
marketId: string;
|
|
712
580
|
} | {
|
|
581
|
+
/**
|
|
582
|
+
* EVM address: 0x followed by 40 hex characters
|
|
583
|
+
*/
|
|
584
|
+
morpho?: string;
|
|
585
|
+
mode: "max";
|
|
586
|
+
marketParams: {
|
|
713
587
|
/**
|
|
714
588
|
* EVM address: 0x followed by 40 hex characters
|
|
715
589
|
*/
|
|
716
|
-
|
|
717
|
-
mode: 'max';
|
|
718
|
-
marketParams: {
|
|
719
|
-
/**
|
|
720
|
-
* EVM address: 0x followed by 40 hex characters
|
|
721
|
-
*/
|
|
722
|
-
loanToken: string;
|
|
723
|
-
/**
|
|
724
|
-
* EVM address: 0x followed by 40 hex characters
|
|
725
|
-
*/
|
|
726
|
-
collateralToken: string;
|
|
727
|
-
/**
|
|
728
|
-
* EVM address: 0x followed by 40 hex characters
|
|
729
|
-
*/
|
|
730
|
-
oracle: string;
|
|
731
|
-
/**
|
|
732
|
-
* EVM address: 0x followed by 40 hex characters
|
|
733
|
-
*/
|
|
734
|
-
irm: string;
|
|
735
|
-
lltv: string;
|
|
736
|
-
};
|
|
737
|
-
});
|
|
738
|
-
type MorphoBlueSupplyConfig = {
|
|
590
|
+
loanToken: string;
|
|
739
591
|
/**
|
|
740
592
|
* EVM address: 0x followed by 40 hex characters
|
|
741
593
|
*/
|
|
742
|
-
|
|
594
|
+
collateralToken: string;
|
|
743
595
|
/**
|
|
744
596
|
* EVM address: 0x followed by 40 hex characters
|
|
745
597
|
*/
|
|
746
|
-
|
|
747
|
-
/**
|
|
748
|
-
* a string matching the pattern ^0x[0-9a-fA-F]{64}$
|
|
749
|
-
*/
|
|
750
|
-
marketId: string;
|
|
751
|
-
} | {
|
|
598
|
+
oracle: string;
|
|
752
599
|
/**
|
|
753
600
|
* EVM address: 0x followed by 40 hex characters
|
|
754
601
|
*/
|
|
755
|
-
|
|
602
|
+
irm: string;
|
|
603
|
+
lltv: string;
|
|
604
|
+
};
|
|
605
|
+
});
|
|
606
|
+
export type MorphoBlueSupplyConfig = {
|
|
607
|
+
/**
|
|
608
|
+
* EVM address: 0x followed by 40 hex characters
|
|
609
|
+
*/
|
|
610
|
+
morpho?: string;
|
|
611
|
+
/**
|
|
612
|
+
* EVM address: 0x followed by 40 hex characters
|
|
613
|
+
*/
|
|
614
|
+
onBehalfOf?: string;
|
|
615
|
+
/**
|
|
616
|
+
* a string matching the pattern ^0x[0-9a-fA-F]{64}$
|
|
617
|
+
*/
|
|
618
|
+
marketId: string;
|
|
619
|
+
} | {
|
|
620
|
+
/**
|
|
621
|
+
* EVM address: 0x followed by 40 hex characters
|
|
622
|
+
*/
|
|
623
|
+
morpho?: string;
|
|
624
|
+
/**
|
|
625
|
+
* EVM address: 0x followed by 40 hex characters
|
|
626
|
+
*/
|
|
627
|
+
onBehalfOf?: string;
|
|
628
|
+
marketParams: {
|
|
756
629
|
/**
|
|
757
630
|
* EVM address: 0x followed by 40 hex characters
|
|
758
631
|
*/
|
|
759
|
-
|
|
760
|
-
marketParams: {
|
|
761
|
-
/**
|
|
762
|
-
* EVM address: 0x followed by 40 hex characters
|
|
763
|
-
*/
|
|
764
|
-
loanToken: string;
|
|
765
|
-
/**
|
|
766
|
-
* EVM address: 0x followed by 40 hex characters
|
|
767
|
-
*/
|
|
768
|
-
collateralToken: string;
|
|
769
|
-
/**
|
|
770
|
-
* EVM address: 0x followed by 40 hex characters
|
|
771
|
-
*/
|
|
772
|
-
oracle: string;
|
|
773
|
-
/**
|
|
774
|
-
* EVM address: 0x followed by 40 hex characters
|
|
775
|
-
*/
|
|
776
|
-
irm: string;
|
|
777
|
-
lltv: string;
|
|
778
|
-
};
|
|
779
|
-
};
|
|
780
|
-
type MorphoBlueWithdrawConfig = ({
|
|
632
|
+
loanToken: string;
|
|
781
633
|
/**
|
|
782
634
|
* EVM address: 0x followed by 40 hex characters
|
|
783
635
|
*/
|
|
784
|
-
|
|
785
|
-
mode: 'exact';
|
|
786
|
-
amount: IntegerStringInput;
|
|
636
|
+
collateralToken: string;
|
|
787
637
|
/**
|
|
788
638
|
* EVM address: 0x followed by 40 hex characters
|
|
789
639
|
*/
|
|
790
|
-
|
|
640
|
+
oracle: string;
|
|
791
641
|
/**
|
|
792
642
|
* EVM address: 0x followed by 40 hex characters
|
|
793
643
|
*/
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
644
|
+
irm: string;
|
|
645
|
+
lltv: string;
|
|
646
|
+
};
|
|
647
|
+
};
|
|
648
|
+
export type MorphoBlueWithdrawConfig = ({
|
|
649
|
+
/**
|
|
650
|
+
* EVM address: 0x followed by 40 hex characters
|
|
651
|
+
*/
|
|
652
|
+
morpho?: string;
|
|
653
|
+
mode: "exact";
|
|
654
|
+
amount: IntegerStringInput;
|
|
655
|
+
/**
|
|
656
|
+
* EVM address: 0x followed by 40 hex characters
|
|
657
|
+
*/
|
|
658
|
+
onBehalfOf?: string;
|
|
659
|
+
/**
|
|
660
|
+
* EVM address: 0x followed by 40 hex characters
|
|
661
|
+
*/
|
|
662
|
+
receiver?: string;
|
|
663
|
+
/**
|
|
664
|
+
* a string matching the pattern ^0x[0-9a-fA-F]{64}$
|
|
665
|
+
*/
|
|
666
|
+
marketId: string;
|
|
799
667
|
} | {
|
|
668
|
+
/**
|
|
669
|
+
* EVM address: 0x followed by 40 hex characters
|
|
670
|
+
*/
|
|
671
|
+
morpho?: string;
|
|
672
|
+
mode: "exact";
|
|
673
|
+
amount: IntegerStringInput;
|
|
674
|
+
/**
|
|
675
|
+
* EVM address: 0x followed by 40 hex characters
|
|
676
|
+
*/
|
|
677
|
+
onBehalfOf?: string;
|
|
678
|
+
/**
|
|
679
|
+
* EVM address: 0x followed by 40 hex characters
|
|
680
|
+
*/
|
|
681
|
+
receiver?: string;
|
|
682
|
+
marketParams: {
|
|
800
683
|
/**
|
|
801
684
|
* EVM address: 0x followed by 40 hex characters
|
|
802
685
|
*/
|
|
803
|
-
|
|
804
|
-
mode: 'exact';
|
|
805
|
-
amount: IntegerStringInput;
|
|
806
|
-
/**
|
|
807
|
-
* EVM address: 0x followed by 40 hex characters
|
|
808
|
-
*/
|
|
809
|
-
onBehalfOf?: string;
|
|
686
|
+
loanToken: string;
|
|
810
687
|
/**
|
|
811
688
|
* EVM address: 0x followed by 40 hex characters
|
|
812
689
|
*/
|
|
813
|
-
|
|
814
|
-
marketParams: {
|
|
815
|
-
/**
|
|
816
|
-
* EVM address: 0x followed by 40 hex characters
|
|
817
|
-
*/
|
|
818
|
-
loanToken: string;
|
|
819
|
-
/**
|
|
820
|
-
* EVM address: 0x followed by 40 hex characters
|
|
821
|
-
*/
|
|
822
|
-
collateralToken: string;
|
|
823
|
-
/**
|
|
824
|
-
* EVM address: 0x followed by 40 hex characters
|
|
825
|
-
*/
|
|
826
|
-
oracle: string;
|
|
827
|
-
/**
|
|
828
|
-
* EVM address: 0x followed by 40 hex characters
|
|
829
|
-
*/
|
|
830
|
-
irm: string;
|
|
831
|
-
lltv: string;
|
|
832
|
-
};
|
|
833
|
-
}) | ({
|
|
690
|
+
collateralToken: string;
|
|
834
691
|
/**
|
|
835
692
|
* EVM address: 0x followed by 40 hex characters
|
|
836
693
|
*/
|
|
837
|
-
|
|
838
|
-
mode: 'max';
|
|
694
|
+
oracle: string;
|
|
839
695
|
/**
|
|
840
696
|
* EVM address: 0x followed by 40 hex characters
|
|
841
697
|
*/
|
|
842
|
-
|
|
698
|
+
irm: string;
|
|
699
|
+
lltv: string;
|
|
700
|
+
};
|
|
701
|
+
}) | ({
|
|
702
|
+
/**
|
|
703
|
+
* EVM address: 0x followed by 40 hex characters
|
|
704
|
+
*/
|
|
705
|
+
morpho?: string;
|
|
706
|
+
mode: "max";
|
|
707
|
+
/**
|
|
708
|
+
* EVM address: 0x followed by 40 hex characters
|
|
709
|
+
*/
|
|
710
|
+
onBehalfOf?: string;
|
|
711
|
+
/**
|
|
712
|
+
* EVM address: 0x followed by 40 hex characters
|
|
713
|
+
*/
|
|
714
|
+
receiver?: string;
|
|
715
|
+
/**
|
|
716
|
+
* a string matching the pattern ^0x[0-9a-fA-F]{64}$
|
|
717
|
+
*/
|
|
718
|
+
marketId: string;
|
|
719
|
+
} | {
|
|
720
|
+
/**
|
|
721
|
+
* EVM address: 0x followed by 40 hex characters
|
|
722
|
+
*/
|
|
723
|
+
morpho?: string;
|
|
724
|
+
mode: "max";
|
|
725
|
+
/**
|
|
726
|
+
* EVM address: 0x followed by 40 hex characters
|
|
727
|
+
*/
|
|
728
|
+
onBehalfOf?: string;
|
|
729
|
+
/**
|
|
730
|
+
* EVM address: 0x followed by 40 hex characters
|
|
731
|
+
*/
|
|
732
|
+
receiver?: string;
|
|
733
|
+
marketParams: {
|
|
843
734
|
/**
|
|
844
735
|
* EVM address: 0x followed by 40 hex characters
|
|
845
736
|
*/
|
|
846
|
-
|
|
847
|
-
/**
|
|
848
|
-
* a string matching the pattern ^0x[0-9a-fA-F]{64}$
|
|
849
|
-
*/
|
|
850
|
-
marketId: string;
|
|
851
|
-
} | {
|
|
737
|
+
loanToken: string;
|
|
852
738
|
/**
|
|
853
739
|
* EVM address: 0x followed by 40 hex characters
|
|
854
740
|
*/
|
|
855
|
-
|
|
856
|
-
mode: 'max';
|
|
741
|
+
collateralToken: string;
|
|
857
742
|
/**
|
|
858
743
|
* EVM address: 0x followed by 40 hex characters
|
|
859
744
|
*/
|
|
860
|
-
|
|
745
|
+
oracle: string;
|
|
861
746
|
/**
|
|
862
747
|
* EVM address: 0x followed by 40 hex characters
|
|
863
748
|
*/
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
* EVM address: 0x followed by 40 hex characters
|
|
868
|
-
*/
|
|
869
|
-
loanToken: string;
|
|
870
|
-
/**
|
|
871
|
-
* EVM address: 0x followed by 40 hex characters
|
|
872
|
-
*/
|
|
873
|
-
collateralToken: string;
|
|
874
|
-
/**
|
|
875
|
-
* EVM address: 0x followed by 40 hex characters
|
|
876
|
-
*/
|
|
877
|
-
oracle: string;
|
|
878
|
-
/**
|
|
879
|
-
* EVM address: 0x followed by 40 hex characters
|
|
880
|
-
*/
|
|
881
|
-
irm: string;
|
|
882
|
-
lltv: string;
|
|
883
|
-
};
|
|
749
|
+
irm: string;
|
|
750
|
+
lltv: string;
|
|
751
|
+
};
|
|
884
752
|
});
|
|
885
|
-
type MorphoBlueGetPositionConfig = {
|
|
753
|
+
export type MorphoBlueGetPositionConfig = {
|
|
754
|
+
/**
|
|
755
|
+
* EVM address: 0x followed by 40 hex characters
|
|
756
|
+
*/
|
|
757
|
+
morpho?: string;
|
|
758
|
+
/**
|
|
759
|
+
* EVM address: 0x followed by 40 hex characters
|
|
760
|
+
*/
|
|
761
|
+
user?: string;
|
|
762
|
+
/**
|
|
763
|
+
* a string matching the pattern ^0x[0-9a-fA-F]{64}$
|
|
764
|
+
*/
|
|
765
|
+
marketId: string;
|
|
766
|
+
} | {
|
|
767
|
+
/**
|
|
768
|
+
* EVM address: 0x followed by 40 hex characters
|
|
769
|
+
*/
|
|
770
|
+
morpho?: string;
|
|
771
|
+
/**
|
|
772
|
+
* EVM address: 0x followed by 40 hex characters
|
|
773
|
+
*/
|
|
774
|
+
user?: string;
|
|
775
|
+
marketParams: {
|
|
886
776
|
/**
|
|
887
777
|
* EVM address: 0x followed by 40 hex characters
|
|
888
778
|
*/
|
|
889
|
-
|
|
779
|
+
loanToken: string;
|
|
890
780
|
/**
|
|
891
781
|
* EVM address: 0x followed by 40 hex characters
|
|
892
782
|
*/
|
|
893
|
-
|
|
894
|
-
/**
|
|
895
|
-
* a string matching the pattern ^0x[0-9a-fA-F]{64}$
|
|
896
|
-
*/
|
|
897
|
-
marketId: string;
|
|
898
|
-
} | {
|
|
783
|
+
collateralToken: string;
|
|
899
784
|
/**
|
|
900
785
|
* EVM address: 0x followed by 40 hex characters
|
|
901
786
|
*/
|
|
902
|
-
|
|
787
|
+
oracle: string;
|
|
903
788
|
/**
|
|
904
789
|
* EVM address: 0x followed by 40 hex characters
|
|
905
790
|
*/
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
* EVM address: 0x followed by 40 hex characters
|
|
910
|
-
*/
|
|
911
|
-
loanToken: string;
|
|
912
|
-
/**
|
|
913
|
-
* EVM address: 0x followed by 40 hex characters
|
|
914
|
-
*/
|
|
915
|
-
collateralToken: string;
|
|
916
|
-
/**
|
|
917
|
-
* EVM address: 0x followed by 40 hex characters
|
|
918
|
-
*/
|
|
919
|
-
oracle: string;
|
|
920
|
-
/**
|
|
921
|
-
* EVM address: 0x followed by 40 hex characters
|
|
922
|
-
*/
|
|
923
|
-
irm: string;
|
|
924
|
-
lltv: string;
|
|
925
|
-
};
|
|
791
|
+
irm: string;
|
|
792
|
+
lltv: string;
|
|
793
|
+
};
|
|
926
794
|
};
|
|
927
|
-
interface LifiFlashloanRepayConfig {
|
|
928
|
-
|
|
929
|
-
|
|
795
|
+
export interface LifiFlashloanRepayConfig {
|
|
796
|
+
leg: string;
|
|
797
|
+
fee?: string;
|
|
930
798
|
}
|
|
931
|
-
|
|
932
|
-
|
|
799
|
+
export interface LifiZapConfig {
|
|
800
|
+
resourceOut: {
|
|
801
|
+
kind: "native";
|
|
933
802
|
chainId: Positive;
|
|
803
|
+
} | {
|
|
804
|
+
kind: "erc20";
|
|
934
805
|
/**
|
|
935
806
|
* EVM address: 0x followed by 40 hex characters
|
|
936
807
|
*/
|
|
937
808
|
token: Address;
|
|
938
|
-
/**
|
|
939
|
-
* EVM address: 0x followed by 40 hex characters
|
|
940
|
-
*/
|
|
941
|
-
owner: Address;
|
|
942
|
-
minAmount: string;
|
|
943
|
-
} | {
|
|
944
|
-
kind: 'nativeBalanceGte';
|
|
945
|
-
chainId: Positive;
|
|
946
|
-
/**
|
|
947
|
-
* EVM address: 0x followed by 40 hex characters
|
|
948
|
-
*/
|
|
949
|
-
owner: Address;
|
|
950
|
-
minAmount: string;
|
|
951
|
-
} | {
|
|
952
|
-
kind: 'call';
|
|
953
809
|
chainId: Positive;
|
|
954
|
-
|
|
955
|
-
* EVM address: 0x followed by 40 hex characters
|
|
956
|
-
*/
|
|
957
|
-
to: string;
|
|
958
|
-
/**
|
|
959
|
-
* Hex bytes: 0x followed by an even number of hex characters
|
|
960
|
-
*/
|
|
961
|
-
calldata: string;
|
|
962
|
-
comparator: 'gte' | 'eq' | 'lte';
|
|
963
|
-
value: string;
|
|
964
|
-
};
|
|
965
|
-
interface LifiZapConfig {
|
|
966
|
-
resourceOut: {
|
|
967
|
-
kind: 'native';
|
|
968
|
-
chainId: Positive;
|
|
969
|
-
} | {
|
|
970
|
-
kind: 'erc20';
|
|
971
|
-
/**
|
|
972
|
-
* EVM address: 0x followed by 40 hex characters
|
|
973
|
-
*/
|
|
974
|
-
token: Address;
|
|
975
|
-
chainId: Positive;
|
|
976
|
-
};
|
|
810
|
+
};
|
|
977
811
|
}
|
|
978
|
-
interface LifiZapAsyncConfig {
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
/**
|
|
985
|
-
* EVM address: 0x followed by 40 hex characters
|
|
986
|
-
*/
|
|
987
|
-
token: Address;
|
|
988
|
-
chainId: Positive;
|
|
989
|
-
};
|
|
990
|
-
}
|
|
991
|
-
interface ParaswapBuyConfig {
|
|
992
|
-
resourceOut: {
|
|
993
|
-
kind: 'native';
|
|
994
|
-
chainId: Positive;
|
|
995
|
-
} | {
|
|
996
|
-
kind: 'erc20';
|
|
997
|
-
/**
|
|
998
|
-
* EVM address: 0x followed by 40 hex characters
|
|
999
|
-
*/
|
|
1000
|
-
token: Address;
|
|
1001
|
-
chainId: Positive;
|
|
1002
|
-
};
|
|
1003
|
-
exactAmountOut: string;
|
|
1004
|
-
srcDecimals: NonNegative;
|
|
1005
|
-
destDecimals: NonNegative;
|
|
1006
|
-
maxSlippageBps?: Between010000;
|
|
1007
|
-
partner?: string;
|
|
812
|
+
export interface LifiZapAsyncConfig {
|
|
813
|
+
resourceOut: {
|
|
814
|
+
kind: "native";
|
|
815
|
+
chainId: Positive;
|
|
816
|
+
} | {
|
|
817
|
+
kind: "erc20";
|
|
1008
818
|
/**
|
|
1009
819
|
* EVM address: 0x followed by 40 hex characters
|
|
1010
820
|
*/
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
*/
|
|
1015
|
-
partnerFeeBps?: string;
|
|
821
|
+
token: Address;
|
|
822
|
+
chainId: Positive;
|
|
823
|
+
};
|
|
1016
824
|
}
|
|
1017
|
-
interface
|
|
825
|
+
export interface ParaswapBuyConfig {
|
|
826
|
+
resourceOut: {
|
|
827
|
+
kind: "native";
|
|
828
|
+
chainId: Positive;
|
|
829
|
+
} | {
|
|
830
|
+
kind: "erc20";
|
|
1018
831
|
/**
|
|
1019
832
|
* EVM address: 0x followed by 40 hex characters
|
|
1020
833
|
*/
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
834
|
+
token: Address;
|
|
835
|
+
chainId: Positive;
|
|
836
|
+
};
|
|
837
|
+
exactAmountOut: string;
|
|
838
|
+
srcDecimals: NonNegative;
|
|
839
|
+
destDecimals: NonNegative;
|
|
840
|
+
maxSlippageBps?: Between010000;
|
|
841
|
+
partner?: string;
|
|
842
|
+
/**
|
|
843
|
+
* EVM address: 0x followed by 40 hex characters
|
|
844
|
+
*/
|
|
845
|
+
partnerAddress?: string;
|
|
846
|
+
/**
|
|
847
|
+
* Integrator fee in basis points; non-negative integer string capped at 9000.
|
|
848
|
+
*/
|
|
849
|
+
partnerFeeBps?: string;
|
|
850
|
+
}
|
|
851
|
+
export interface CorePeekConfig {
|
|
852
|
+
/**
|
|
853
|
+
* EVM address: 0x followed by 40 hex characters
|
|
854
|
+
*/
|
|
855
|
+
target: Address;
|
|
856
|
+
functionSignature: string;
|
|
857
|
+
args?: (MaxLength65536 | (MaxLength65536 | (MaxLength65536 | (MaxLength65536 | (MaxLength65536 | MaxLength65536[])[])[])[])[])[];
|
|
1024
858
|
}
|
|
1025
859
|
/**
|
|
1026
860
|
* a number between 0 and 3318
|
|
1027
861
|
*/
|
|
1028
|
-
type Between03318 = number;
|
|
862
|
+
export type Between03318 = number;
|
|
1029
863
|
/**
|
|
1030
864
|
* a number between 0 and 5000
|
|
1031
865
|
*/
|
|
1032
|
-
type Between05000 = number;
|
|
1033
|
-
interface FlySwapConfig {
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
/**
|
|
1040
|
-
* EVM address: 0x followed by 40 hex characters
|
|
1041
|
-
*/
|
|
1042
|
-
token: Address;
|
|
1043
|
-
chainId: Positive;
|
|
1044
|
-
};
|
|
1045
|
-
inputVarianceBps?: Between03318;
|
|
1046
|
-
maxSlippageBps?: Between05000;
|
|
1047
|
-
}
|
|
1048
|
-
interface SlippageGuardConfig {
|
|
1049
|
-
port: string;
|
|
1050
|
-
bps: Between010000;
|
|
1051
|
-
}
|
|
1052
|
-
interface CoreNumericInvariantGuardConfig {
|
|
1053
|
-
port: string;
|
|
1054
|
-
op: 'gte' | 'gt' | 'lte' | 'lt' | 'eq' | 'neq';
|
|
1055
|
-
threshold: IntegerStringInput;
|
|
1056
|
-
}
|
|
1057
|
-
interface BalanceOfMaterialiserConfig {
|
|
866
|
+
export type Between05000 = number;
|
|
867
|
+
export interface FlySwapConfig {
|
|
868
|
+
resourceOut: {
|
|
869
|
+
kind: "native";
|
|
870
|
+
chainId: Positive;
|
|
871
|
+
} | {
|
|
872
|
+
kind: "erc20";
|
|
1058
873
|
/**
|
|
1059
874
|
* EVM address: 0x followed by 40 hex characters
|
|
1060
875
|
*/
|
|
1061
|
-
|
|
876
|
+
token: Address;
|
|
877
|
+
chainId: Positive;
|
|
878
|
+
};
|
|
879
|
+
inputVarianceBps?: Between03318;
|
|
880
|
+
maxSlippageBps?: Between05000;
|
|
881
|
+
}
|
|
882
|
+
export interface UniswapV2AddLiquidityConfig {
|
|
883
|
+
/**
|
|
884
|
+
* EVM address: 0x followed by 40 hex characters
|
|
885
|
+
*/
|
|
886
|
+
router: string;
|
|
887
|
+
/**
|
|
888
|
+
* EVM address: 0x followed by 40 hex characters
|
|
889
|
+
*/
|
|
890
|
+
factory: string;
|
|
891
|
+
/**
|
|
892
|
+
* EVM address: 0x followed by 40 hex characters
|
|
893
|
+
*/
|
|
894
|
+
pair: string;
|
|
895
|
+
}
|
|
896
|
+
export interface UniswapV2RemoveLiquidityConfig {
|
|
897
|
+
/**
|
|
898
|
+
* EVM address: 0x followed by 40 hex characters
|
|
899
|
+
*/
|
|
900
|
+
router: string;
|
|
901
|
+
/**
|
|
902
|
+
* EVM address: 0x followed by 40 hex characters
|
|
903
|
+
*/
|
|
904
|
+
factory: string;
|
|
905
|
+
/**
|
|
906
|
+
* EVM address: 0x followed by 40 hex characters
|
|
907
|
+
*/
|
|
908
|
+
tokenA: string;
|
|
909
|
+
/**
|
|
910
|
+
* EVM address: 0x followed by 40 hex characters
|
|
911
|
+
*/
|
|
912
|
+
tokenB: string;
|
|
1062
913
|
}
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
914
|
+
/**
|
|
915
|
+
* a number between 0 and 999999
|
|
916
|
+
*/
|
|
917
|
+
export type Between0999999 = number;
|
|
918
|
+
/**
|
|
919
|
+
* a number between -887272 and 887272
|
|
920
|
+
*/
|
|
921
|
+
export type Between887272887272 = number;
|
|
922
|
+
export interface UniswapV3MintConfig {
|
|
923
|
+
/**
|
|
924
|
+
* EVM address: 0x followed by 40 hex characters
|
|
925
|
+
*/
|
|
926
|
+
positionManager: string;
|
|
927
|
+
/**
|
|
928
|
+
* EVM address: 0x followed by 40 hex characters
|
|
929
|
+
*/
|
|
930
|
+
factory: string;
|
|
931
|
+
/**
|
|
932
|
+
* EVM address: 0x followed by 40 hex characters
|
|
933
|
+
*/
|
|
934
|
+
pool: string;
|
|
935
|
+
fee: Between0999999;
|
|
936
|
+
tickLower: Between887272887272;
|
|
937
|
+
tickUpper: Between887272887272;
|
|
938
|
+
}
|
|
939
|
+
export interface UniswapV3IncreaseLiquidityConfig {
|
|
940
|
+
/**
|
|
941
|
+
* EVM address: 0x followed by 40 hex characters
|
|
942
|
+
*/
|
|
943
|
+
positionManager: string;
|
|
944
|
+
/**
|
|
945
|
+
* EVM address: 0x followed by 40 hex characters
|
|
946
|
+
*/
|
|
947
|
+
factory: string;
|
|
948
|
+
/**
|
|
949
|
+
* EVM address: 0x followed by 40 hex characters
|
|
950
|
+
*/
|
|
951
|
+
pool: string;
|
|
952
|
+
tokenId: string;
|
|
953
|
+
}
|
|
954
|
+
export interface SlippageGuardConfig {
|
|
955
|
+
port: string;
|
|
956
|
+
bps: Between010000;
|
|
957
|
+
}
|
|
958
|
+
export interface CoreNumericInvariantGuardConfig {
|
|
959
|
+
port: string;
|
|
960
|
+
op: "gte" | "gt" | "lte" | "lt" | "eq" | "neq";
|
|
961
|
+
threshold: IntegerStringInput;
|
|
962
|
+
}
|
|
963
|
+
export interface BandGuardConfig {
|
|
964
|
+
port: string;
|
|
965
|
+
bps: Between010000;
|
|
966
|
+
}
|
|
967
|
+
export interface BalanceOfMaterialiserConfig {
|
|
968
|
+
/**
|
|
969
|
+
* EVM address: 0x followed by 40 hex characters
|
|
970
|
+
*/
|
|
971
|
+
owner: Address;
|
|
972
|
+
}
|
|
973
|
+
export type DirectDepositMaterialiserConfig = {
|
|
974
|
+
amount: IntegerStringInput;
|
|
975
|
+
allowNonExact?: false;
|
|
1066
976
|
} | {
|
|
1067
|
-
|
|
1068
|
-
|
|
977
|
+
amount: IntegerStringInput;
|
|
978
|
+
allowNonExact: true;
|
|
1069
979
|
} | {
|
|
1070
|
-
|
|
1071
|
-
|
|
980
|
+
allowNonExact: true;
|
|
981
|
+
simAmount?: string;
|
|
1072
982
|
};
|
|
1073
|
-
interface CallMaterialiserConfig {
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
}
|
|
1080
|
-
interface FlashloanMaterialiserConfig {
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
}
|
|
1084
|
-
interface Erc20BalancePreconditionConfig {
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
}
|
|
1089
|
-
interface NativeBalancePreconditionConfig {
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
}
|
|
1093
|
-
interface Erc20AllowancePreconditionConfig {
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
}
|
|
1099
|
-
|
|
1100
|
-
|
|
983
|
+
export interface CallMaterialiserConfig {
|
|
984
|
+
/**
|
|
985
|
+
* EVM address: 0x followed by 40 hex characters
|
|
986
|
+
*/
|
|
987
|
+
target: Address;
|
|
988
|
+
calldata: string;
|
|
989
|
+
}
|
|
990
|
+
export interface FlashloanMaterialiserConfig {
|
|
991
|
+
providerKind: "aave-v3" | "erc3156" | "balancer-v2" | "morpho-blue";
|
|
992
|
+
amount: IntegerStringInput;
|
|
993
|
+
}
|
|
994
|
+
export interface Erc20BalancePreconditionConfig {
|
|
995
|
+
wallet: Address;
|
|
996
|
+
token: Address;
|
|
997
|
+
balance: IntegerStringInput;
|
|
998
|
+
}
|
|
999
|
+
export interface NativeBalancePreconditionConfig {
|
|
1000
|
+
wallet: Address;
|
|
1001
|
+
balance: IntegerStringInput;
|
|
1002
|
+
}
|
|
1003
|
+
export interface Erc20AllowancePreconditionConfig {
|
|
1004
|
+
owner: Address;
|
|
1005
|
+
spender: Address;
|
|
1006
|
+
token: Address;
|
|
1007
|
+
allowance: IntegerStringInput;
|
|
1008
|
+
}
|
|
1009
|
+
//#endregion
|
|
1010
|
+
//# sourceMappingURL=config.generated.d.ts.map
|