@lifi/composer-sdk 0.8.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.
Files changed (161) hide show
  1. package/README.md +3 -2
  2. package/dist/_virtual/_rolldown/runtime.cjs +33 -0
  3. package/dist/_virtual/_rolldown/runtime.js +13 -0
  4. package/dist/authoring/FlowBuilderCore.cjs +102 -120
  5. package/dist/authoring/FlowBuilderCore.cjs.map +1 -1
  6. package/dist/authoring/FlowBuilderCore.d.cts +58 -61
  7. package/dist/authoring/FlowBuilderCore.d.ts +58 -61
  8. package/dist/authoring/FlowBuilderCore.js +99 -97
  9. package/dist/authoring/FlowBuilderCore.js.map +1 -1
  10. package/dist/authoring/handles.cjs +25 -40
  11. package/dist/authoring/handles.cjs.map +1 -1
  12. package/dist/authoring/handles.d.cts +33 -34
  13. package/dist/authoring/handles.d.ts +33 -34
  14. package/dist/authoring/handles.js +21 -13
  15. package/dist/authoring/handles.js.map +1 -1
  16. package/dist/authoring/raw.cjs +85 -44
  17. package/dist/authoring/raw.cjs.map +1 -1
  18. package/dist/authoring/raw.d.cts +8 -8
  19. package/dist/authoring/raw.d.ts +8 -8
  20. package/dist/authoring/raw.js +83 -19
  21. package/dist/authoring/raw.js.map +1 -1
  22. package/dist/authoring/signatureArgs.cjs +81 -103
  23. package/dist/authoring/signatureArgs.cjs.map +1 -1
  24. package/dist/authoring/signatureArgs.d.cts +63 -64
  25. package/dist/authoring/signatureArgs.d.ts +63 -64
  26. package/dist/authoring/signatureArgs.js +76 -75
  27. package/dist/authoring/signatureArgs.js.map +1 -1
  28. package/dist/client.cjs +172 -220
  29. package/dist/client.cjs.map +1 -1
  30. package/dist/client.d.cts +131 -131
  31. package/dist/client.d.ts +131 -131
  32. package/dist/client.js +165 -198
  33. package/dist/client.js.map +1 -1
  34. package/dist/discovery.cjs +0 -17
  35. package/dist/discovery.d.cts +57 -56
  36. package/dist/discovery.d.ts +57 -56
  37. package/dist/discovery.js +1 -1
  38. package/dist/errors.cjs +211 -159
  39. package/dist/errors.cjs.map +1 -1
  40. package/dist/errors.d.cts +84 -84
  41. package/dist/errors.d.ts +84 -84
  42. package/dist/errors.js +201 -120
  43. package/dist/errors.js.map +1 -1
  44. package/dist/generated/config.generated.cjs +0 -17
  45. package/dist/generated/config.generated.d.cts +804 -936
  46. package/dist/generated/config.generated.d.ts +804 -936
  47. package/dist/generated/config.generated.js +1 -1
  48. package/dist/generated/guards.generated.cjs +25 -35
  49. package/dist/generated/guards.generated.cjs.map +1 -1
  50. package/dist/generated/guards.generated.d.cts +20 -4
  51. package/dist/generated/guards.generated.d.ts +20 -4
  52. package/dist/generated/guards.generated.js +19 -11
  53. package/dist/generated/guards.generated.js.map +1 -1
  54. package/dist/generated/materialisers.generated.cjs +25 -35
  55. package/dist/generated/materialisers.generated.cjs.map +1 -1
  56. package/dist/generated/materialisers.generated.d.cts +17 -4
  57. package/dist/generated/materialisers.generated.d.ts +17 -4
  58. package/dist/generated/materialisers.generated.js +19 -11
  59. package/dist/generated/materialisers.generated.js.map +1 -1
  60. package/dist/generated/operations.generated.cjs +236 -277
  61. package/dist/generated/operations.generated.cjs.map +1 -1
  62. package/dist/generated/operations.generated.d.cts +719 -708
  63. package/dist/generated/operations.generated.d.ts +719 -708
  64. package/dist/generated/operations.generated.js +235 -256
  65. package/dist/generated/operations.generated.js.map +1 -1
  66. package/dist/generated/preconditions.generated.cjs +25 -35
  67. package/dist/generated/preconditions.generated.cjs.map +1 -1
  68. package/dist/generated/preconditions.generated.d.cts +17 -4
  69. package/dist/generated/preconditions.generated.d.ts +17 -4
  70. package/dist/generated/preconditions.generated.js +19 -11
  71. package/dist/generated/preconditions.generated.js.map +1 -1
  72. package/dist/index.cjs +131 -97
  73. package/dist/index.cjs.map +1 -1
  74. package/dist/index.d.cts +29 -43
  75. package/dist/index.d.ts +29 -43
  76. package/dist/index.js +96 -45
  77. package/dist/index.js.map +1 -1
  78. package/dist/outputs.cjs +11 -32
  79. package/dist/outputs.cjs.map +1 -1
  80. package/dist/outputs.d.cts +5 -5
  81. package/dist/outputs.d.ts +5 -5
  82. package/dist/outputs.js +10 -8
  83. package/dist/outputs.js.map +1 -1
  84. package/dist/raw.cjs +21 -33
  85. package/dist/raw.cjs.map +1 -1
  86. package/dist/raw.d.cts +8 -4
  87. package/dist/raw.d.ts +8 -4
  88. package/dist/raw.js +12 -7
  89. package/dist/raw.js.map +1 -1
  90. package/dist/reachability.cjs +82 -112
  91. package/dist/reachability.cjs.map +1 -1
  92. package/dist/reachability.d.cts +33 -59
  93. package/dist/reachability.d.ts +33 -59
  94. package/dist/reachability.js +81 -88
  95. package/dist/reachability.js.map +1 -1
  96. package/dist/resources.cjs +47 -32
  97. package/dist/resources.cjs.map +1 -1
  98. package/dist/resources.d.cts +50 -3
  99. package/dist/resources.d.ts +50 -3
  100. package/dist/resources.js +42 -9
  101. package/dist/resources.js.map +1 -1
  102. package/dist/responseSchemas.cjs +99 -111
  103. package/dist/responseSchemas.cjs.map +1 -1
  104. package/dist/responseSchemas.d.cts +34 -34
  105. package/dist/responseSchemas.d.ts +34 -34
  106. package/dist/responseSchemas.js +85 -66
  107. package/dist/responseSchemas.js.map +1 -1
  108. package/dist/routeAmount.cjs +61 -31
  109. package/dist/routeAmount.cjs.map +1 -1
  110. package/dist/routeAmount.d.cts +52 -2
  111. package/dist/routeAmount.d.ts +52 -2
  112. package/dist/routeAmount.js +56 -8
  113. package/dist/routeAmount.js.map +1 -1
  114. package/dist/run/inputs.cjs +56 -48
  115. package/dist/run/inputs.cjs.map +1 -1
  116. package/dist/run/inputs.d.cts +70 -74
  117. package/dist/run/inputs.d.ts +70 -74
  118. package/dist/run/inputs.js +54 -23
  119. package/dist/run/inputs.js.map +1 -1
  120. package/dist/run/simulate.cjs +38 -43
  121. package/dist/run/simulate.cjs.map +1 -1
  122. package/dist/run/simulate.d.cts +36 -36
  123. package/dist/run/simulate.d.ts +36 -36
  124. package/dist/run/simulate.js +37 -19
  125. package/dist/run/simulate.js.map +1 -1
  126. package/dist/sdk.cjs +55 -66
  127. package/dist/sdk.cjs.map +1 -1
  128. package/dist/sdk.d.cts +108 -111
  129. package/dist/sdk.d.ts +108 -111
  130. package/dist/sdk.js +52 -44
  131. package/dist/sdk.js.map +1 -1
  132. package/dist/types.cjs +0 -17
  133. package/dist/types.d.cts +22 -22
  134. package/dist/types.d.ts +22 -22
  135. package/dist/types.js +1 -1
  136. package/package.json +4 -4
  137. package/src/client.ts +2 -2
  138. package/src/examples/aaveClaimRewards.ts +2 -1
  139. package/src/examples/emitCustomEvent.ts +1 -2
  140. package/src/examples/run.ts +1 -1
  141. package/src/examples/transferTokens.ts +21 -17
  142. package/src/generated/config.generated.ts +20 -9
  143. package/src/generated/operations.generated.ts +28 -5
  144. package/dist/discovery.cjs.map +0 -1
  145. package/dist/discovery.js.map +0 -1
  146. package/dist/generated/config.generated.cjs.map +0 -1
  147. package/dist/generated/config.generated.js.map +0 -1
  148. package/dist/guards.generated-CDCgYGZo.d.cts +0 -24
  149. package/dist/guards.generated-CdYcs4h0.d.ts +0 -24
  150. package/dist/materialisers.generated-BMkBQgWZ.d.ts +0 -24
  151. package/dist/materialisers.generated-BWq5oePO.d.cts +0 -24
  152. package/dist/preconditions.generated-DblS13Wq.d.cts +0 -24
  153. package/dist/preconditions.generated-U7YpVh30.d.ts +0 -24
  154. package/dist/raw-BvRghN3r.d.ts +0 -20
  155. package/dist/raw-s1rer8X3.d.cts +0 -20
  156. package/dist/resources-BKlFxjo8.d.cts +0 -56
  157. package/dist/resources-CYis1_DS.d.ts +0 -56
  158. package/dist/routeAmount-DdbJYJyM.d.cts +0 -55
  159. package/dist/routeAmount-DdbJYJyM.d.ts +0 -55
  160. package/dist/types.cjs.map +0 -1
  161. package/dist/types.js.map +0 -1
@@ -1,12 +1,14 @@
1
- import { IntegerStringInput, Address } from '../types.js';
2
- import '@lifi/compose-spec';
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
- bps: Between010000;
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,1129 +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
- bps: MaxItems16;
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
- resourceOut: {
173
- kind: 'native';
174
- chainId: Positive;
175
- } | {
176
- kind: 'erc20';
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
- spender: Address;
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
- interface CoreBalanceOfConfig {
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
- * EVM address: 0x followed by 40 hex characters
301
- */
302
- owner?: Address;
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;
303
147
  }
304
- interface CoreTransferConfig {
305
- amount?: IntegerStringInput;
306
- }
307
- interface CoreEmitEvent1Config {
308
- signature: string;
309
- }
310
- interface CoreEmitEvent2Config {
311
- signature: string;
312
- }
313
- interface CoreEmitEvent3Config {
314
- signature: string;
315
- }
316
- interface CoreEmitEvent4Config {
317
- signature: string;
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
- target: Address;
325
- functionSignature: string;
326
- callType?: 'Call' | 'ValueCall';
327
- args?: ((MaxLength65536 | number | boolean | {
328
- $ref: string;
329
- }) | ((MaxLength65536 | number | boolean | {
330
- $ref: string;
331
- }) | ((MaxLength65536 | number | boolean | {
332
- $ref: string;
333
- }) | ((MaxLength65536 | number | boolean | {
334
- $ref: string;
335
- }) | ((MaxLength65536 | number | boolean | {
336
- $ref: string;
337
- }) | (MaxLength65536 | number | boolean | {
338
- $ref: string;
339
- })[])[])[])[])[])[];
340
- approvals?: ({
341
- spender: Address;
342
- } | {
343
- from: 'sender';
344
- })[];
345
- }
346
- interface CoreStaticCallConfig {
347
- target: Address;
348
- functionSignature: string;
349
- args?: ((MaxLength65536 | number | boolean | {
350
- $ref: string;
351
- }) | ((MaxLength65536 | number | boolean | {
352
- $ref: string;
353
- }) | ((MaxLength65536 | number | boolean | {
354
- $ref: string;
355
- }) | ((MaxLength65536 | number | boolean | {
356
- $ref: string;
357
- }) | ((MaxLength65536 | number | boolean | {
358
- $ref: string;
359
- }) | (MaxLength65536 | number | boolean | {
360
- $ref: string;
361
- })[])[])[])[])[])[];
362
- }
363
- interface CoreRawCallConfig {
364
- target: Address;
365
- calldata: string;
366
- callType?: 'Call' | 'StaticCall' | 'ValueCall' | 'DelegateCall';
367
- resultType?: string;
368
- }
369
- interface CoreInvokeConfig {
370
- target: Address;
371
- functionSignature: string;
372
- callType?: 'Call' | 'ValueCall';
373
- args?: ((MaxLength65536 | number | boolean | {
374
- $ref: string;
375
- }) | ((MaxLength65536 | number | boolean | {
376
- $ref: string;
377
- }) | ((MaxLength65536 | number | boolean | {
378
- $ref: string;
379
- }) | ((MaxLength65536 | number | boolean | {
380
- $ref: string;
381
- }) | ((MaxLength65536 | number | boolean | {
382
- $ref: string;
383
- }) | (MaxLength65536 | number | boolean | {
384
- $ref: string;
385
- })[])[])[])[])[])[];
386
- }
387
- interface CoreAsResourceConfig {
388
- resource: {
389
- kind: 'native';
390
- chainId: Positive;
391
- } | {
392
- kind: 'erc20';
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
- pool: string;
421
- mode: 'exact';
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
- * EVM address: 0x followed by 40 hex characters
425
- */
426
- pool: string;
427
- mode: 'max';
291
+ /**
292
+ * EVM address: 0x followed by 40 hex characters
293
+ */
294
+ pool: string;
295
+ mode: "max";
428
296
  };
429
- interface AaveRepayWithATokensConfig {
430
- /**
431
- * EVM address: 0x followed by 40 hex characters
432
- */
433
- pool: string;
434
- /**
435
- * EVM address: 0x followed by 40 hex characters
436
- */
437
- asset: string;
438
- }
439
- interface AaveClaimRewardsConfig {
440
- /**
441
- * EVM address: 0x followed by 40 hex characters
442
- */
443
- rewardsController: string;
444
- assets: string[];
445
- /**
446
- * EVM address: 0x followed by 40 hex characters
447
- */
448
- reward: string;
449
- amount?: IntegerStringInput;
450
- /**
451
- * EVM address: 0x followed by 40 hex characters
452
- */
453
- to?: string;
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
- * EVM address: 0x followed by 40 hex characters
462
- */
463
- pool: string;
464
- category: Between0255;
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
- pool: string;
372
+ loanToken: string;
471
373
  /**
472
374
  * EVM address: 0x followed by 40 hex characters
473
375
  */
474
- user?: string;
475
- }
476
- type MorphoBlueSupplyCollateralConfig = ({
376
+ collateralToken: string;
477
377
  /**
478
378
  * EVM address: 0x followed by 40 hex characters
479
379
  */
480
- morpho?: string;
380
+ oracle: string;
481
381
  /**
482
382
  * EVM address: 0x followed by 40 hex characters
483
383
  */
484
- onBehalfOf?: string;
485
- mode: 'exact';
486
- /**
487
- * a string matching the pattern ^0x[0-9a-fA-F]{64}$
488
- */
489
- marketId: string;
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
- morpho?: string;
415
+ loanToken: string;
495
416
  /**
496
417
  * EVM address: 0x followed by 40 hex characters
497
418
  */
498
- onBehalfOf?: string;
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
- morpho?: string;
423
+ oracle: string;
524
424
  /**
525
425
  * EVM address: 0x followed by 40 hex characters
526
426
  */
527
- onBehalfOf?: string;
528
- mode: 'all';
529
- /**
530
- * a string matching the pattern ^0x[0-9a-fA-F]{64}$
531
- */
532
- marketId: string;
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
- morpho?: string;
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
- morpho?: string;
568
- amount: IntegerStringInput;
471
+ collateralToken: string;
569
472
  /**
570
473
  * EVM address: 0x followed by 40 hex characters
571
474
  */
572
- onBehalfOf?: string;
475
+ oracle: string;
573
476
  /**
574
477
  * EVM address: 0x followed by 40 hex characters
575
478
  */
576
- receiver?: string;
577
- /**
578
- * a string matching the pattern ^0x[0-9a-fA-F]{64}$
579
- */
580
- marketId: string;
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
- morpho?: string;
586
- amount: IntegerStringInput;
519
+ loanToken: string;
587
520
  /**
588
521
  * EVM address: 0x followed by 40 hex characters
589
522
  */
590
- onBehalfOf?: string;
523
+ collateralToken: string;
591
524
  /**
592
525
  * EVM address: 0x followed by 40 hex characters
593
526
  */
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 = {
527
+ oracle: string;
616
528
  /**
617
529
  * EVM address: 0x followed by 40 hex characters
618
530
  */
619
- morpho?: string;
620
- amount: IntegerStringInput;
621
- /**
622
- * EVM address: 0x followed by 40 hex characters
623
- */
624
- onBehalfOf?: string;
625
- /**
626
- * EVM address: 0x followed by 40 hex characters
627
- */
628
- receiver?: string;
629
- /**
630
- * a string matching the pattern ^0x[0-9a-fA-F]{64}$
631
- */
632
- marketId: string;
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
- morpho?: string;
638
- amount: IntegerStringInput;
555
+ loanToken: string;
639
556
  /**
640
557
  * EVM address: 0x followed by 40 hex characters
641
558
  */
642
- onBehalfOf?: string;
559
+ collateralToken: string;
643
560
  /**
644
561
  * EVM address: 0x followed by 40 hex characters
645
562
  */
646
- receiver?: string;
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 = ({
563
+ oracle: string;
668
564
  /**
669
565
  * EVM address: 0x followed by 40 hex characters
670
566
  */
671
- morpho?: string;
672
- mode: 'exact';
673
- /**
674
- * a string matching the pattern ^0x[0-9a-fA-F]{64}$
675
- */
676
- marketId: string;
677
- } | {
678
- /**
679
- * EVM address: 0x followed by 40 hex characters
680
- */
681
- morpho?: string;
682
- mode: 'exact';
683
- marketParams: {
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
- * EVM address: 0x followed by 40 hex characters
705
- */
706
- morpho?: string;
707
- mode: 'max';
708
- /**
709
- * a string matching the pattern ^0x[0-9a-fA-F]{64}$
710
- */
711
- marketId: string;
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
- morpho?: string;
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
- morpho?: string;
594
+ collateralToken: string;
743
595
  /**
744
596
  * EVM address: 0x followed by 40 hex characters
745
597
  */
746
- onBehalfOf?: string;
598
+ oracle: string;
747
599
  /**
748
- * a string matching the pattern ^0x[0-9a-fA-F]{64}$
600
+ * EVM address: 0x followed by 40 hex characters
749
601
  */
750
- marketId: string;
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;
751
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: {
752
629
  /**
753
630
  * EVM address: 0x followed by 40 hex characters
754
631
  */
755
- morpho?: string;
632
+ loanToken: string;
756
633
  /**
757
634
  * EVM address: 0x followed by 40 hex characters
758
635
  */
759
- onBehalfOf?: string;
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 = ({
636
+ collateralToken: string;
781
637
  /**
782
638
  * EVM address: 0x followed by 40 hex characters
783
639
  */
784
- morpho?: string;
785
- mode: 'exact';
786
- amount: IntegerStringInput;
640
+ oracle: string;
787
641
  /**
788
642
  * EVM address: 0x followed by 40 hex characters
789
643
  */
790
- onBehalfOf?: string;
791
- /**
792
- * EVM address: 0x followed by 40 hex characters
793
- */
794
- receiver?: string;
795
- /**
796
- * a string matching the pattern ^0x[0-9a-fA-F]{64}$
797
- */
798
- marketId: string;
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
- morpho?: string;
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
- receiver?: string;
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
- morpho?: string;
838
- mode: 'max';
694
+ oracle: string;
839
695
  /**
840
696
  * EVM address: 0x followed by 40 hex characters
841
697
  */
842
- onBehalfOf?: string;
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
- receiver?: string;
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
- morpho?: string;
856
- mode: 'max';
741
+ collateralToken: string;
857
742
  /**
858
743
  * EVM address: 0x followed by 40 hex characters
859
744
  */
860
- onBehalfOf?: string;
745
+ oracle: string;
861
746
  /**
862
747
  * EVM address: 0x followed by 40 hex characters
863
748
  */
864
- receiver?: string;
865
- marketParams: {
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
- morpho?: string;
779
+ loanToken: string;
890
780
  /**
891
781
  * EVM address: 0x followed by 40 hex characters
892
782
  */
893
- user?: string;
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
- morpho?: string;
787
+ oracle: string;
903
788
  /**
904
789
  * EVM address: 0x followed by 40 hex characters
905
790
  */
906
- user?: string;
907
- marketParams: {
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
- leg: string;
929
- fee?: string;
930
- }
931
- interface LifiZapConfig {
932
- resourceOut: {
933
- kind: 'native';
934
- chainId: Positive;
935
- } | {
936
- kind: 'erc20';
937
- /**
938
- * EVM address: 0x followed by 40 hex characters
939
- */
940
- token: Address;
941
- chainId: Positive;
942
- };
943
- }
944
- interface LifiZapAsyncConfig {
945
- resourceOut: {
946
- kind: 'native';
947
- chainId: Positive;
948
- } | {
949
- kind: 'erc20';
950
- /**
951
- * EVM address: 0x followed by 40 hex characters
952
- */
953
- token: Address;
954
- chainId: Positive;
955
- };
795
+ export interface LifiFlashloanRepayConfig {
796
+ leg: string;
797
+ fee?: string;
956
798
  }
957
- interface ParaswapBuyConfig {
958
- resourceOut: {
959
- kind: 'native';
960
- chainId: Positive;
961
- } | {
962
- kind: 'erc20';
963
- /**
964
- * EVM address: 0x followed by 40 hex characters
965
- */
966
- token: Address;
967
- chainId: Positive;
968
- };
969
- exactAmountOut: string;
970
- srcDecimals: NonNegative;
971
- destDecimals: NonNegative;
972
- maxSlippageBps?: Between010000;
973
- partner?: string;
799
+ export interface LifiZapConfig {
800
+ resourceOut: {
801
+ kind: "native";
802
+ chainId: Positive;
803
+ } | {
804
+ kind: "erc20";
974
805
  /**
975
806
  * EVM address: 0x followed by 40 hex characters
976
807
  */
977
- partnerAddress?: string;
808
+ token: Address;
809
+ chainId: Positive;
810
+ };
811
+ }
812
+ export interface LifiZapAsyncConfig {
813
+ resourceOut: {
814
+ kind: "native";
815
+ chainId: Positive;
816
+ } | {
817
+ kind: "erc20";
978
818
  /**
979
- * Integrator fee in basis points; non-negative integer string capped at 9000.
819
+ * EVM address: 0x followed by 40 hex characters
980
820
  */
981
- partnerFeeBps?: string;
821
+ token: Address;
822
+ chainId: Positive;
823
+ };
982
824
  }
983
- interface CorePeekConfig {
825
+ export interface ParaswapBuyConfig {
826
+ resourceOut: {
827
+ kind: "native";
828
+ chainId: Positive;
829
+ } | {
830
+ kind: "erc20";
984
831
  /**
985
832
  * EVM address: 0x followed by 40 hex characters
986
833
  */
987
- target: Address;
988
- functionSignature: string;
989
- args?: string[];
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[])[])[])[])[])[];
990
858
  }
991
859
  /**
992
860
  * a number between 0 and 3318
993
861
  */
994
- type Between03318 = number;
862
+ export type Between03318 = number;
995
863
  /**
996
864
  * a number between 0 and 5000
997
865
  */
998
- type Between05000 = number;
999
- interface FlySwapConfig {
1000
- resourceOut: {
1001
- kind: 'native';
1002
- chainId: Positive;
1003
- } | {
1004
- kind: 'erc20';
1005
- /**
1006
- * EVM address: 0x followed by 40 hex characters
1007
- */
1008
- token: Address;
1009
- chainId: Positive;
1010
- };
1011
- inputVarianceBps?: Between03318;
1012
- maxSlippageBps?: Between05000;
1013
- }
1014
- interface UniswapV2AddLiquidityConfig {
866
+ export type Between05000 = number;
867
+ export interface FlySwapConfig {
868
+ resourceOut: {
869
+ kind: "native";
870
+ chainId: Positive;
871
+ } | {
872
+ kind: "erc20";
1015
873
  /**
1016
874
  * EVM address: 0x followed by 40 hex characters
1017
875
  */
1018
- router: string;
1019
- /**
1020
- * EVM address: 0x followed by 40 hex characters
1021
- */
1022
- factory: string;
1023
- /**
1024
- * EVM address: 0x followed by 40 hex characters
1025
- */
1026
- pair: string;
1027
- }
1028
- interface UniswapV2RemoveLiquidityConfig {
1029
- /**
1030
- * EVM address: 0x followed by 40 hex characters
1031
- */
1032
- router: string;
1033
- /**
1034
- * EVM address: 0x followed by 40 hex characters
1035
- */
1036
- factory: string;
1037
- /**
1038
- * EVM address: 0x followed by 40 hex characters
1039
- */
1040
- tokenA: string;
1041
- /**
1042
- * EVM address: 0x followed by 40 hex characters
1043
- */
1044
- tokenB: string;
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;
1045
913
  }
1046
914
  /**
1047
915
  * a number between 0 and 999999
1048
916
  */
1049
- type Between0999999 = number;
917
+ export type Between0999999 = number;
1050
918
  /**
1051
919
  * a number between -887272 and 887272
1052
920
  */
1053
- type Between887272887272 = number;
1054
- interface UniswapV3MintConfig {
1055
- /**
1056
- * EVM address: 0x followed by 40 hex characters
1057
- */
1058
- positionManager: string;
1059
- /**
1060
- * EVM address: 0x followed by 40 hex characters
1061
- */
1062
- factory: string;
1063
- /**
1064
- * EVM address: 0x followed by 40 hex characters
1065
- */
1066
- pool: string;
1067
- fee: Between0999999;
1068
- tickLower: Between887272887272;
1069
- tickUpper: Between887272887272;
1070
- }
1071
- interface UniswapV3IncreaseLiquidityConfig {
1072
- /**
1073
- * EVM address: 0x followed by 40 hex characters
1074
- */
1075
- positionManager: string;
1076
- /**
1077
- * EVM address: 0x followed by 40 hex characters
1078
- */
1079
- factory: string;
1080
- /**
1081
- * EVM address: 0x followed by 40 hex characters
1082
- */
1083
- pool: string;
1084
- tokenId: string;
1085
- }
1086
- interface SlippageGuardConfig {
1087
- port: string;
1088
- bps: Between010000;
1089
- }
1090
- interface CoreNumericInvariantGuardConfig {
1091
- port: string;
1092
- op: 'gte' | 'gt' | 'lte' | 'lt' | 'eq' | 'neq';
1093
- threshold: IntegerStringInput;
1094
- }
1095
- interface BandGuardConfig {
1096
- port: string;
1097
- bps: Between010000;
1098
- }
1099
- interface BalanceOfMaterialiserConfig {
1100
- /**
1101
- * EVM address: 0x followed by 40 hex characters
1102
- */
1103
- owner: Address;
1104
- }
1105
- type DirectDepositMaterialiserConfig = {
1106
- amount: IntegerStringInput;
1107
- allowNonExact?: false;
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;
1108
976
  } | {
1109
- amount: IntegerStringInput;
1110
- allowNonExact: true;
977
+ amount: IntegerStringInput;
978
+ allowNonExact: true;
1111
979
  } | {
1112
- allowNonExact: true;
1113
- simAmount?: string;
980
+ allowNonExact: true;
981
+ simAmount?: string;
1114
982
  };
1115
- interface CallMaterialiserConfig {
1116
- /**
1117
- * EVM address: 0x followed by 40 hex characters
1118
- */
1119
- target: Address;
1120
- calldata: string;
1121
- }
1122
- interface FlashloanMaterialiserConfig {
1123
- providerKind: 'aave-v3' | 'erc3156' | 'balancer-v2' | 'morpho-blue';
1124
- amount: IntegerStringInput;
1125
- }
1126
- interface Erc20BalancePreconditionConfig {
1127
- wallet: Address;
1128
- token: Address;
1129
- balance: IntegerStringInput;
1130
- }
1131
- interface NativeBalancePreconditionConfig {
1132
- wallet: Address;
1133
- balance: IntegerStringInput;
1134
- }
1135
- interface Erc20AllowancePreconditionConfig {
1136
- owner: Address;
1137
- spender: Address;
1138
- token: Address;
1139
- allowance: IntegerStringInput;
1140
- }
1141
-
1142
- export type { AaveBorrowConfig, AaveClaimRewardsConfig, AaveGetHealthFactorConfig, AaveRepayConfig, AaveRepayWithATokensConfig, AaveSetEModeConfig, BalanceOfMaterialiserConfig, BandGuardConfig, Between01, Between010000, Between0255, Between03318, Between05000, Between0999999, Between19999, Between887272887272, CallMaterialiserConfig, CoreApproveConfig, CoreAsResourceConfig, CoreBalanceOfConfig, CoreBpsDownConfig, CoreBpsUpConfig, CoreCallConfig, CoreEmitEvent1Config, CoreEmitEvent2Config, CoreEmitEvent3Config, CoreEmitEvent4Config, CoreInvokeConfig, CoreNumericInvariantGuardConfig, CorePartitionConfig, CorePeekConfig, CoreRawCallConfig, CoreSplitConfig, CoreStaticCallConfig, CoreTransferConfig, DirectDepositMaterialiserConfig, Erc20AllowancePreconditionConfig, Erc20BalancePreconditionConfig, FlashloanMaterialiserConfig, FlySwapConfig, InvariantEqConfig, InvariantGtConfig, InvariantGteConfig, InvariantLtConfig, InvariantLteConfig, InvariantNeqConfig, InvariantNumericConfig, InvariantNumericInRangeConfig, LifiBridgeConfig, LifiFlashloanRepayConfig, LifiSwapConfig, LifiZapAsyncConfig, LifiZapConfig, MaxItems16, MaxItems50, MaxLength64, MaxLength65536, MorphoBlueBorrowConfig, MorphoBlueGetPositionConfig, MorphoBlueRepayConfig, MorphoBlueSupplyCollateralConfig, MorphoBlueSupplyConfig, MorphoBlueWithdrawCollateralConfig, MorphoBlueWithdrawConfig, NativeBalancePreconditionConfig, NonNegative, ParaswapBuyConfig, Positive, SlippageGuardConfig, StartsWith0X, UniswapV2AddLiquidityConfig, UniswapV2RemoveLiquidityConfig, UniswapV3IncreaseLiquidityConfig, UniswapV3MintConfig };
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