otomato-sdk 2.0.2 → 2.0.4
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/dist/src/constants/Blocks.js +578 -35
- package/dist/src/constants/tokens.js +182 -0
- package/dist/src/constants/version.js +1 -1
- package/dist/src/utils/externalVariables.js +4 -0
- package/dist/types/examples/aave-trigger-borrow-action-borrow.d.ts +1 -0
- package/dist/types/examples/aave-trigger-supply-action-supply.d.ts +1 -0
- package/dist/types/examples/create-workflow-with-external-variable-condition.d.ts +1 -0
- package/dist/types/examples/ionic-base-supply.d.ts +1 -0
- package/dist/types/examples/ionic-base-withdraw.d.ts +1 -0
- package/dist/types/examples/ionic-trigger-lending.d.ts +1 -0
- package/dist/types/examples/ionic-trigger-withdraw.d.ts +1 -0
- package/dist/types/examples/moonwell-borrow-trigger-deposit-action.d.ts +1 -0
- package/dist/types/examples/moonwell-borrow.d.ts +1 -0
- package/dist/types/examples/moonwell-repay.d.ts +1 -0
- package/dist/types/examples/moonwell-supply-trigger-withdraw-action.d.ts +1 -0
- package/dist/types/examples/protocols/aave_trigger_borrow_action_borrow.d.ts +1 -0
- package/dist/types/examples/protocols/aave_trigger_borrow_action_withdraw.d.ts +1 -0
- package/dist/types/examples/protocols/aave_trigger_supply_action_supply.d.ts +1 -0
- package/dist/types/examples/protocols/ionic_base_supply.d.ts +1 -0
- package/dist/types/examples/protocols/ionic_base_withdraw.d.ts +1 -0
- package/dist/types/examples/yield-comparator.d.ts +1 -0
- package/dist/types/src/constants/Blocks.d.ts +223 -2
- package/dist/types/src/constants/WorkflowTemplates.d.ts +1 -0
- package/dist/types/src/constants/version.d.ts +1 -1
- package/dist/types/src/utils/externalVariables.d.ts +1 -0
- package/dist/types/test/externalVariables.spec.d.ts +1 -0
- package/package.json +1 -1
|
@@ -216,6 +216,188 @@ export const TOKENS = {
|
|
|
216
216
|
symbol: "USDC",
|
|
217
217
|
decimals: 6,
|
|
218
218
|
image: "https://static.debank.com/image/coin/logo_url/usdc/e87790bfe0b3f2ea855dc29069b38818.png"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
contractAddress: "0x2416092f143378750bb29b79eD961ab195CcEea5",
|
|
222
|
+
name: "Renzo Restaked ETH",
|
|
223
|
+
symbol: "ezETH",
|
|
224
|
+
decimals: 18,
|
|
225
|
+
image: "https://assets.coingecko.com/coins/images/34753/small/Ezeth_logo_circle.png?1713496404"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
contractAddress: "0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452",
|
|
229
|
+
name: "Wrapped liquid staked Ether 2.0",
|
|
230
|
+
symbol: "wstETH",
|
|
231
|
+
decimals: 18,
|
|
232
|
+
image: "https://basescan.org/token/images/wsteth3_32.png"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
contractAddress: "0x4200000000000000000000000000000000000006",
|
|
236
|
+
name: "Wrapped Ether",
|
|
237
|
+
symbol: "WETH",
|
|
238
|
+
decimals: 18,
|
|
239
|
+
image: "https://basescan.org/token/images/weth_28.png"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
contractAddress: "0x5d3a1Ff2b6BAb83b63cd9AD0787074081a52ef34",
|
|
243
|
+
name: "USDe",
|
|
244
|
+
symbol: "USDe",
|
|
245
|
+
decimals: 18,
|
|
246
|
+
image: "https://basescan.org/token/images/ethenausde_32.png"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
contractAddress: "0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf",
|
|
250
|
+
name: "Coinbase Wrapped BTC",
|
|
251
|
+
symbol: "cbBTC",
|
|
252
|
+
decimals: 8,
|
|
253
|
+
image: "https://basescan.org/token/images/cbbtc_32.png"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
contractAddress: "0x940181a94a35a4569e4529a3cdfb74e38fd98631",
|
|
257
|
+
name: "Aerodrome",
|
|
258
|
+
symbol: "AERO",
|
|
259
|
+
decimals: 18,
|
|
260
|
+
image: "https://basescan.org/token/images/aerodrome_32.png"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
contractAddress: "0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22",
|
|
264
|
+
name: "Coinbase Wrapped Staked ETH",
|
|
265
|
+
symbol: "cbETH",
|
|
266
|
+
decimals: 18,
|
|
267
|
+
image: "https://assets.coingecko.com/coins/images/27008/small/cbeth.png?1709186989"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
contractAddress: "0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A",
|
|
271
|
+
name: "Wrapped Ethereum",
|
|
272
|
+
symbol: "weETH",
|
|
273
|
+
decimals: 18,
|
|
274
|
+
image: "https://assets.coingecko.com/coins/images/39950/small/WETH.PNG?1724902237"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
contractAddress: "0xCfA3Ef56d303AE4fAabA0592388F19d7C3399FB4",
|
|
278
|
+
name: "Electronic Dollar",
|
|
279
|
+
symbol: "eUSD",
|
|
280
|
+
decimals: 18,
|
|
281
|
+
image: "https://assets.coingecko.com/coins/images/28445/small/0xa0d69e286b938e21cbf7e51d71f6a4c8918f482f.png?1696527441"
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
contractAddress: "0xCb327b99fF831bF8223cCEd12B1338FF3aA322Ff",
|
|
285
|
+
name: "Based ETH",
|
|
286
|
+
symbol: "bsdETH",
|
|
287
|
+
decimals: 18,
|
|
288
|
+
image: "https://assets.coingecko.com/coins/images/35774/small/Icon_White_on_Blue.png?1709793654"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
contractAddress: "0xCc7FF230365bD730eE4B352cC2492CEdAC49383e",
|
|
292
|
+
name: "High Yield USD",
|
|
293
|
+
symbol: "hyUSD",
|
|
294
|
+
decimals: 18,
|
|
295
|
+
image: "https://assets.coingecko.com/coins/images/33636/small/hyusdlogo.png?1702536133"
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
contractAddress: "0xaB36452DbAC151bE02b16Ca17d8919826072f64a",
|
|
299
|
+
name: "Reserve Rights",
|
|
300
|
+
symbol: "RSR",
|
|
301
|
+
decimals: 18,
|
|
302
|
+
image: "https://assets.coingecko.com/coins/images/8365/small/RSR_Blue_Circle_1000.png?1721777856"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
contractAddress: "0xDBFeFD2e8460a6Ee4955A68582F85708BAEA60A3",
|
|
306
|
+
name: "Super OETH",
|
|
307
|
+
symbol: "superOETH",
|
|
308
|
+
decimals: 18,
|
|
309
|
+
image: "https://assets.coingecko.com/coins/images/39828/small/Super_OETH.png?1724208268"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
contractAddress: "0x59D9356E565Ab3A36dD77763Fc0d87fEaf85508C",
|
|
313
|
+
name: "Mountain Protocol USD",
|
|
314
|
+
symbol: "wUSDM",
|
|
315
|
+
decimals: 18,
|
|
316
|
+
image: "https://assets.coingecko.com/coins/images/31719/small/usdm.png?1696530540"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
contractAddress: "0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42",
|
|
320
|
+
name: "Euro Coin",
|
|
321
|
+
symbol: "EURC",
|
|
322
|
+
decimals: 6,
|
|
323
|
+
image: "https://static.debank.com/image/coin/logo_url/eurc.png"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
contractAddress: "0x7002458B1DF59EccB57387bC79fFc7C29E22e6f7",
|
|
327
|
+
name: "OriginToken",
|
|
328
|
+
symbol: "OGN",
|
|
329
|
+
decimals: 18,
|
|
330
|
+
image: "https://assets.coingecko.com/coins/images/3296/small/op.jpg?1696504006"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
contractAddress: "0xb79dd08ea68a908a97220c76d19a6aa9cbde4376",
|
|
334
|
+
name: "USD+",
|
|
335
|
+
symbol: "USD+",
|
|
336
|
+
decimals: 6,
|
|
337
|
+
image: "https://static.debank.com/image/coin/logo_url/usdplus.png"
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
contractAddress: "0x04D5ddf5f3a8939889F11E97f8c4BB48317F1938",
|
|
341
|
+
name: "USDz",
|
|
342
|
+
symbol: "USDz",
|
|
343
|
+
decimals: 18,
|
|
344
|
+
image: "https://assets.coingecko.com/coins/images/38039/small/usdz-image-200x200.png?1716334412"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
contractAddress: "0xd95ca61CE9aAF2143E81Ef5462C0c2325172E028",
|
|
348
|
+
name: "Wrapped USD+",
|
|
349
|
+
symbol: "wUSD+",
|
|
350
|
+
decimals: 6,
|
|
351
|
+
image: null
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
contractAddress: "0xe31eE12bDFDD0573D634124611e85338e2cBF0cF",
|
|
355
|
+
name: "Stable USDz",
|
|
356
|
+
symbol: "sUSDz",
|
|
357
|
+
decimals: 18,
|
|
358
|
+
image: "https://assets.coingecko.com/coins/images/38040/small/susdz-symbol-200x200.png?1716334492"
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
contractAddress: "0x9B8Df6E244526ab5F6e6400d331DB28C8fdDdb55",
|
|
362
|
+
name: "Solana (Universal)",
|
|
363
|
+
symbol: "uSOL",
|
|
364
|
+
decimals: 18,
|
|
365
|
+
image: "https://assets.coingecko.com/coins/images/39987/small/UA-SOL_1.png?1725027946"
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
contractAddress: "0xb0505e5a99abd03d94a1169e638B78EDfEd26ea4",
|
|
369
|
+
name: "Sui (Universal)",
|
|
370
|
+
symbol: "uSUI",
|
|
371
|
+
decimals: 18,
|
|
372
|
+
image: "https://assets.coingecko.com/coins/images/50482/small/UA-SUI-PAD.png?1727888681"
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
contractAddress: "0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb",
|
|
376
|
+
name: "Dai Stablecoin",
|
|
377
|
+
symbol: "DAI",
|
|
378
|
+
decimals: 18,
|
|
379
|
+
image: "https://assets.coingecko.com/coins/images/39807/small/dai.png?1724126571"
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
contractAddress: "0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA",
|
|
383
|
+
name: "USD Base Coin",
|
|
384
|
+
symbol: "USDbC",
|
|
385
|
+
decimals: 6,
|
|
386
|
+
image: "https://assets.coingecko.com/coins/images/31164/small/baseusdc.jpg?1696529993"
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
contractAddress: "0xB6fe221Fe9EeF5aBa221c348bA20A1Bf5e73624c",
|
|
390
|
+
name: "Rocket Pool ETH",
|
|
391
|
+
symbol: "rETH",
|
|
392
|
+
decimals: 18,
|
|
393
|
+
image: "https://assets.coingecko.com/coins/images/20764/small/reth.png?1696520159"
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
contractAddress: "0xEDfa23602D0EC14714057867A78d01e94176BEA0",
|
|
397
|
+
name: "Wrapped rsETH",
|
|
398
|
+
symbol: "wrsETH",
|
|
399
|
+
decimals: 18,
|
|
400
|
+
image: "https://assets.coingecko.com/coins/images/37919/small/rseth.png?1715936438"
|
|
219
401
|
}
|
|
220
402
|
]
|
|
221
403
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
import { Parameter } from '../models/Parameter.js';
|
|
2
2
|
export declare const TRIGGERS: {
|
|
3
|
+
CORE: {
|
|
4
|
+
EVERY_PERIOD: {
|
|
5
|
+
description: string;
|
|
6
|
+
image: string;
|
|
7
|
+
EVERY_PERIOD: {
|
|
8
|
+
name: string;
|
|
9
|
+
type: number;
|
|
10
|
+
description: string;
|
|
11
|
+
parameters: Parameter[];
|
|
12
|
+
blockId: number;
|
|
13
|
+
image: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
3
17
|
TOKENS: {
|
|
4
18
|
TRANSFER: {
|
|
5
19
|
description: string;
|
|
@@ -48,6 +62,7 @@ export declare const TRIGGERS: {
|
|
|
48
62
|
BALANCE: {
|
|
49
63
|
name: string;
|
|
50
64
|
description: string;
|
|
65
|
+
prototype: string;
|
|
51
66
|
type: number;
|
|
52
67
|
method: string;
|
|
53
68
|
output: {
|
|
@@ -85,6 +100,7 @@ export declare const TRIGGERS: {
|
|
|
85
100
|
image: string;
|
|
86
101
|
PRICE_MOVEMENT_AGAINST_CURRENCY: {
|
|
87
102
|
name: string;
|
|
103
|
+
prototype: string;
|
|
88
104
|
description: string;
|
|
89
105
|
type: number;
|
|
90
106
|
output: {
|
|
@@ -115,6 +131,7 @@ export declare const TRIGGERS: {
|
|
|
115
131
|
name: string;
|
|
116
132
|
description: string;
|
|
117
133
|
type: number;
|
|
134
|
+
prototype: string;
|
|
118
135
|
output: {
|
|
119
136
|
yield: string;
|
|
120
137
|
};
|
|
@@ -137,6 +154,7 @@ export declare const TRIGGERS: {
|
|
|
137
154
|
name: string;
|
|
138
155
|
description: string;
|
|
139
156
|
type: number;
|
|
157
|
+
prototype: string;
|
|
140
158
|
method: string;
|
|
141
159
|
output: {
|
|
142
160
|
supply: string;
|
|
@@ -243,6 +261,7 @@ export declare const TRIGGERS: {
|
|
|
243
261
|
LENDING_RATE: {
|
|
244
262
|
name: string;
|
|
245
263
|
description: string;
|
|
264
|
+
prototype: string;
|
|
246
265
|
type: number;
|
|
247
266
|
method: string;
|
|
248
267
|
parameters: Parameter[];
|
|
@@ -267,6 +286,7 @@ export declare const TRIGGERS: {
|
|
|
267
286
|
name: string;
|
|
268
287
|
description: string;
|
|
269
288
|
type: number;
|
|
289
|
+
prototype: string;
|
|
270
290
|
method: string;
|
|
271
291
|
parameters: Parameter[];
|
|
272
292
|
examples: {
|
|
@@ -318,6 +338,68 @@ export declare const TRIGGERS: {
|
|
|
318
338
|
image: string;
|
|
319
339
|
};
|
|
320
340
|
};
|
|
341
|
+
AAVE: {
|
|
342
|
+
description: string;
|
|
343
|
+
chains: number[];
|
|
344
|
+
image: string;
|
|
345
|
+
LENDING_RATE: {
|
|
346
|
+
name: string;
|
|
347
|
+
description: string;
|
|
348
|
+
prototype: string;
|
|
349
|
+
type: number;
|
|
350
|
+
method: string;
|
|
351
|
+
parameters: Parameter[];
|
|
352
|
+
output: {
|
|
353
|
+
lendingRate: string;
|
|
354
|
+
};
|
|
355
|
+
blockId: number;
|
|
356
|
+
image: string;
|
|
357
|
+
};
|
|
358
|
+
BORROWING_RATES: {
|
|
359
|
+
name: string;
|
|
360
|
+
description: string;
|
|
361
|
+
type: number;
|
|
362
|
+
prototype: string;
|
|
363
|
+
method: string;
|
|
364
|
+
parameters: Parameter[];
|
|
365
|
+
output: {
|
|
366
|
+
borrowingRate: string;
|
|
367
|
+
};
|
|
368
|
+
blockId: number;
|
|
369
|
+
image: string;
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
MOONWELL: {
|
|
373
|
+
description: string;
|
|
374
|
+
chains: number[];
|
|
375
|
+
image: string;
|
|
376
|
+
LENDING_RATE: {
|
|
377
|
+
name: string;
|
|
378
|
+
description: string;
|
|
379
|
+
prototype: string;
|
|
380
|
+
type: number;
|
|
381
|
+
method: string;
|
|
382
|
+
parameters: Parameter[];
|
|
383
|
+
output: {
|
|
384
|
+
lendingRate: string;
|
|
385
|
+
};
|
|
386
|
+
blockId: number;
|
|
387
|
+
image: string;
|
|
388
|
+
};
|
|
389
|
+
BORROWING_RATES: {
|
|
390
|
+
name: string;
|
|
391
|
+
description: string;
|
|
392
|
+
type: number;
|
|
393
|
+
prototype: string;
|
|
394
|
+
method: string;
|
|
395
|
+
parameters: Parameter[];
|
|
396
|
+
output: {
|
|
397
|
+
borrowingRate: string;
|
|
398
|
+
};
|
|
399
|
+
blockId: number;
|
|
400
|
+
image: string;
|
|
401
|
+
};
|
|
402
|
+
};
|
|
321
403
|
};
|
|
322
404
|
DEXES: {
|
|
323
405
|
ODOS: {
|
|
@@ -400,6 +482,7 @@ export declare const TRIGGERS: {
|
|
|
400
482
|
GET_FEAR_AND_GREED_INDEX: {
|
|
401
483
|
name: string;
|
|
402
484
|
description: string;
|
|
485
|
+
prototype: string;
|
|
403
486
|
type: number;
|
|
404
487
|
output: {
|
|
405
488
|
value: string;
|
|
@@ -428,6 +511,7 @@ export declare const TRIGGERS: {
|
|
|
428
511
|
AUM: {
|
|
429
512
|
name: string;
|
|
430
513
|
description: string;
|
|
514
|
+
prototype: string;
|
|
431
515
|
type: number;
|
|
432
516
|
output: {
|
|
433
517
|
asset_under_management: string;
|
|
@@ -470,6 +554,7 @@ export declare const TRIGGERS: {
|
|
|
470
554
|
GAS_API: {
|
|
471
555
|
name: string;
|
|
472
556
|
description: string;
|
|
557
|
+
prototype: string;
|
|
473
558
|
type: number;
|
|
474
559
|
output: {
|
|
475
560
|
gasPrice: string;
|
|
@@ -941,13 +1026,18 @@ export declare const ACTIONS: {
|
|
|
941
1026
|
description: string;
|
|
942
1027
|
type: number;
|
|
943
1028
|
method: string;
|
|
944
|
-
contractAddress: string;
|
|
945
1029
|
parameters: Parameter[];
|
|
946
1030
|
requiredApprovals: {
|
|
947
1031
|
address: string;
|
|
948
1032
|
amount: string;
|
|
949
1033
|
to: string;
|
|
950
1034
|
}[];
|
|
1035
|
+
checks: {
|
|
1036
|
+
type: number;
|
|
1037
|
+
chainId: string;
|
|
1038
|
+
contractAddress: string;
|
|
1039
|
+
amount: string;
|
|
1040
|
+
}[];
|
|
951
1041
|
output: {
|
|
952
1042
|
transactionHash: string;
|
|
953
1043
|
};
|
|
@@ -964,7 +1054,6 @@ export declare const ACTIONS: {
|
|
|
964
1054
|
description: string;
|
|
965
1055
|
type: number;
|
|
966
1056
|
method: string;
|
|
967
|
-
contractAddress: string;
|
|
968
1057
|
parameters: Parameter[];
|
|
969
1058
|
output: {
|
|
970
1059
|
transactionHash: string;
|
|
@@ -979,6 +1068,138 @@ export declare const ACTIONS: {
|
|
|
979
1068
|
image: string;
|
|
980
1069
|
};
|
|
981
1070
|
};
|
|
1071
|
+
MOONWELL: {
|
|
1072
|
+
description: string;
|
|
1073
|
+
chains: number[];
|
|
1074
|
+
image: string;
|
|
1075
|
+
DEPOSIT: {
|
|
1076
|
+
name: string;
|
|
1077
|
+
description: string;
|
|
1078
|
+
type: number;
|
|
1079
|
+
method: string;
|
|
1080
|
+
parameters: Parameter[];
|
|
1081
|
+
checks: {
|
|
1082
|
+
type: number;
|
|
1083
|
+
chainId: string;
|
|
1084
|
+
contractAddress: string;
|
|
1085
|
+
amount: string;
|
|
1086
|
+
}[];
|
|
1087
|
+
requiredApprovals: {
|
|
1088
|
+
address: string;
|
|
1089
|
+
amount: string;
|
|
1090
|
+
to: string;
|
|
1091
|
+
}[];
|
|
1092
|
+
output: {
|
|
1093
|
+
transactionHash: string;
|
|
1094
|
+
};
|
|
1095
|
+
permissions: {
|
|
1096
|
+
approvedTargets: string[];
|
|
1097
|
+
label: string[];
|
|
1098
|
+
labelNotAuthorized: string[];
|
|
1099
|
+
};
|
|
1100
|
+
batchWith: {
|
|
1101
|
+
id: number;
|
|
1102
|
+
type: number;
|
|
1103
|
+
conditions: never[];
|
|
1104
|
+
parameters: {
|
|
1105
|
+
chainId: string;
|
|
1106
|
+
abi: {
|
|
1107
|
+
parameters: {
|
|
1108
|
+
tokens: string[];
|
|
1109
|
+
};
|
|
1110
|
+
};
|
|
1111
|
+
};
|
|
1112
|
+
}[];
|
|
1113
|
+
blockId: number;
|
|
1114
|
+
image: string;
|
|
1115
|
+
};
|
|
1116
|
+
WITHDRAW: {
|
|
1117
|
+
name: string;
|
|
1118
|
+
description: string;
|
|
1119
|
+
type: number;
|
|
1120
|
+
method: string;
|
|
1121
|
+
parameters: Parameter[];
|
|
1122
|
+
requiredApprovals: never[];
|
|
1123
|
+
output: {
|
|
1124
|
+
transactionHash: string;
|
|
1125
|
+
};
|
|
1126
|
+
permissions: {
|
|
1127
|
+
approvedTargets: string[];
|
|
1128
|
+
label: string[];
|
|
1129
|
+
labelNotAuthorized: string[];
|
|
1130
|
+
};
|
|
1131
|
+
checks: {
|
|
1132
|
+
type: number;
|
|
1133
|
+
chainId: string;
|
|
1134
|
+
contractAddress: string;
|
|
1135
|
+
amount: string;
|
|
1136
|
+
}[];
|
|
1137
|
+
blockId: number;
|
|
1138
|
+
image: string;
|
|
1139
|
+
};
|
|
1140
|
+
BORROW: {
|
|
1141
|
+
name: string;
|
|
1142
|
+
description: string;
|
|
1143
|
+
type: number;
|
|
1144
|
+
method: string;
|
|
1145
|
+
parameters: Parameter[];
|
|
1146
|
+
requiredApprovals: never[];
|
|
1147
|
+
output: {
|
|
1148
|
+
transactionHash: string;
|
|
1149
|
+
};
|
|
1150
|
+
permissions: {
|
|
1151
|
+
approvedTargets: string[];
|
|
1152
|
+
label: string[];
|
|
1153
|
+
labelNotAuthorized: string[];
|
|
1154
|
+
};
|
|
1155
|
+
blockId: number;
|
|
1156
|
+
image: string;
|
|
1157
|
+
};
|
|
1158
|
+
REPAY: {
|
|
1159
|
+
name: string;
|
|
1160
|
+
description: string;
|
|
1161
|
+
type: number;
|
|
1162
|
+
method: string;
|
|
1163
|
+
parameters: Parameter[];
|
|
1164
|
+
checks: {
|
|
1165
|
+
type: number;
|
|
1166
|
+
chainId: string;
|
|
1167
|
+
contractAddress: string;
|
|
1168
|
+
amount: string;
|
|
1169
|
+
}[];
|
|
1170
|
+
requiredApprovals: {
|
|
1171
|
+
address: string;
|
|
1172
|
+
amount: string;
|
|
1173
|
+
to: string;
|
|
1174
|
+
}[];
|
|
1175
|
+
output: {
|
|
1176
|
+
transactionHash: string;
|
|
1177
|
+
};
|
|
1178
|
+
permissions: {
|
|
1179
|
+
approvedTargets: string[];
|
|
1180
|
+
label: string[];
|
|
1181
|
+
labelNotAuthorized: string[];
|
|
1182
|
+
};
|
|
1183
|
+
blockId: number;
|
|
1184
|
+
image: string;
|
|
1185
|
+
};
|
|
1186
|
+
ENABLE_COLLATERAL: {
|
|
1187
|
+
showInUI: boolean;
|
|
1188
|
+
name: string;
|
|
1189
|
+
description: string;
|
|
1190
|
+
type: number;
|
|
1191
|
+
method: string;
|
|
1192
|
+
parameters: Parameter[];
|
|
1193
|
+
examples: never[];
|
|
1194
|
+
permissions: {
|
|
1195
|
+
approvedTargets: string[];
|
|
1196
|
+
label: string[];
|
|
1197
|
+
labelNotAuthorized: string[];
|
|
1198
|
+
};
|
|
1199
|
+
blockId: number;
|
|
1200
|
+
image: string;
|
|
1201
|
+
};
|
|
1202
|
+
};
|
|
982
1203
|
};
|
|
983
1204
|
SWAP: {
|
|
984
1205
|
ODOS: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.0.
|
|
1
|
+
export declare const SDK_VERSION = "2.0.4";
|
|
2
2
|
export declare function compareVersions(v1: string, v2: string): number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getExternalVariable(prototype: String, args: Array<any>): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|