otomato-sdk 2.0.2 → 2.0.3
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.
|
@@ -2289,6 +2289,90 @@ export const ACTIONS = {
|
|
|
2289
2289
|
"blockId": 100021,
|
|
2290
2290
|
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/aave.jpg"
|
|
2291
2291
|
}
|
|
2292
|
+
},
|
|
2293
|
+
"COMPOUND": {
|
|
2294
|
+
"description": "Decentralized lending protocol",
|
|
2295
|
+
"chains": [
|
|
2296
|
+
8453
|
|
2297
|
+
],
|
|
2298
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/aave.jpg",
|
|
2299
|
+
"DEPOSIT": {
|
|
2300
|
+
"name": "Supply Asset to Aave",
|
|
2301
|
+
"description": "Supply an asset to AAVE",
|
|
2302
|
+
"type": 1,
|
|
2303
|
+
"method": "function supply(address asset, uint256 amount, address onBehalfOf, uint16 referralCode)",
|
|
2304
|
+
"contractAddress": "0xA238Dd80C259a72e81d7e4664a9801593F98d1c5",
|
|
2305
|
+
"parameters": [
|
|
2306
|
+
{
|
|
2307
|
+
"key": "chainId",
|
|
2308
|
+
"type": "chainId",
|
|
2309
|
+
"description": "Chain ID of the network",
|
|
2310
|
+
"mandatory": true,
|
|
2311
|
+
"category": 0
|
|
2312
|
+
},
|
|
2313
|
+
{
|
|
2314
|
+
"key": "asset",
|
|
2315
|
+
"type": "erc20",
|
|
2316
|
+
"description": "The token to supply",
|
|
2317
|
+
"mandatory": true,
|
|
2318
|
+
"enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n\n return availableLendingTokens[env.parameters.chainId];\n }",
|
|
2319
|
+
"category": 0
|
|
2320
|
+
},
|
|
2321
|
+
{
|
|
2322
|
+
"key": "amount",
|
|
2323
|
+
"type": "uint256",
|
|
2324
|
+
"description": "The amount of the asset to supply",
|
|
2325
|
+
"mandatory": true,
|
|
2326
|
+
"category": 0,
|
|
2327
|
+
"erc20FormattedAmount": {
|
|
2328
|
+
"contractAddress": "{{parameters.asset}}",
|
|
2329
|
+
"chain": "{{parameters.chainId}}"
|
|
2330
|
+
}
|
|
2331
|
+
},
|
|
2332
|
+
{
|
|
2333
|
+
"key": "onBehalfOf",
|
|
2334
|
+
"type": "address",
|
|
2335
|
+
"description": "The address to receive aTokens",
|
|
2336
|
+
"mandatory": true,
|
|
2337
|
+
"hideInUI": true,
|
|
2338
|
+
"category": 1,
|
|
2339
|
+
"value": "{{user.smartAccountAddress}}"
|
|
2340
|
+
},
|
|
2341
|
+
{
|
|
2342
|
+
"key": "referralCode",
|
|
2343
|
+
"type": "uint16",
|
|
2344
|
+
"description": "Referral code (use 0, as inactive)",
|
|
2345
|
+
"mandatory": true,
|
|
2346
|
+
"hideInUI": true,
|
|
2347
|
+
"category": 1,
|
|
2348
|
+
"value": 0
|
|
2349
|
+
},
|
|
2350
|
+
],
|
|
2351
|
+
"requiredApprovals": [
|
|
2352
|
+
{
|
|
2353
|
+
"address": "{{parameters.asset}}",
|
|
2354
|
+
"amount": "{{parameters.amount}}",
|
|
2355
|
+
"to": "0xA238Dd80C259a72e81d7e4664a9801593F98d1c5"
|
|
2356
|
+
}
|
|
2357
|
+
],
|
|
2358
|
+
"output": {
|
|
2359
|
+
"transactionHash": "string"
|
|
2360
|
+
},
|
|
2361
|
+
"permissions": {
|
|
2362
|
+
"approvedTargets": [
|
|
2363
|
+
"{{parameters.asset}}",
|
|
2364
|
+
"0xA238Dd80C259a72e81d7e4664a9801593F98d1c5"
|
|
2365
|
+
],
|
|
2366
|
+
"label": [
|
|
2367
|
+
"Supply {{tokenSymbol({{parameters.chainId}}, {{parameters.asset}})}} on Aave"
|
|
2368
|
+
],
|
|
2369
|
+
"labelNotAuthorized": [
|
|
2370
|
+
"Transfer {{tokenSymbol({{parameters.chainId}}, {{parameters.asset}})}}"
|
|
2371
|
+
]
|
|
2372
|
+
},
|
|
2373
|
+
"blockId": 100022,
|
|
2374
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/aave.jpg"
|
|
2375
|
+
}
|
|
2292
2376
|
}
|
|
2293
2377
|
},
|
|
2294
2378
|
"SWAP": {
|
|
@@ -216,7 +216,42 @@ 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
|
-
}
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
contractAddress: "0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452",
|
|
222
|
+
name: "Wrapped liquid staked Ether 2.0",
|
|
223
|
+
symbol: "wstETH",
|
|
224
|
+
decimals: 18,
|
|
225
|
+
image: "https://basescan.org/token/images/wsteth3_32.png"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
contractAddress: "0x4200000000000000000000000000000000000006",
|
|
229
|
+
name: "Wrapped Ether",
|
|
230
|
+
symbol: "WETH",
|
|
231
|
+
decimals: 18,
|
|
232
|
+
image: "https://basescan.org/token/images/weth_28.png"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
contractAddress: "0x5d3a1Ff2b6BAb83b63cd9AD0787074081a52ef34",
|
|
236
|
+
name: "USDe",
|
|
237
|
+
symbol: "USDe",
|
|
238
|
+
decimals: 18,
|
|
239
|
+
image: "https://basescan.org/token/images/ethenausde_32.png"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
contractAddress: "0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf",
|
|
243
|
+
name: "Coinbase Wrapped BTC",
|
|
244
|
+
symbol: "cbBTC",
|
|
245
|
+
decimals: 8,
|
|
246
|
+
image: "https://basescan.org/token/images/cbbtc_32.png"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
contractAddress: "0x940181a94a35a4569e4529a3cdfb74e38fd98631",
|
|
250
|
+
name: "Aerodrome",
|
|
251
|
+
symbol: "AERO",
|
|
252
|
+
decimals: 18,
|
|
253
|
+
image: "https://basescan.org/token/images/aerodrome_32.png"
|
|
254
|
+
},
|
|
220
255
|
]
|
|
221
256
|
};
|
|
222
257
|
export const NFTS = {
|
|
@@ -979,6 +979,34 @@ export declare const ACTIONS: {
|
|
|
979
979
|
image: string;
|
|
980
980
|
};
|
|
981
981
|
};
|
|
982
|
+
COMPOUND: {
|
|
983
|
+
description: string;
|
|
984
|
+
chains: number[];
|
|
985
|
+
image: string;
|
|
986
|
+
DEPOSIT: {
|
|
987
|
+
name: string;
|
|
988
|
+
description: string;
|
|
989
|
+
type: number;
|
|
990
|
+
method: string;
|
|
991
|
+
contractAddress: string;
|
|
992
|
+
parameters: Parameter[];
|
|
993
|
+
requiredApprovals: {
|
|
994
|
+
address: string;
|
|
995
|
+
amount: string;
|
|
996
|
+
to: string;
|
|
997
|
+
}[];
|
|
998
|
+
output: {
|
|
999
|
+
transactionHash: string;
|
|
1000
|
+
};
|
|
1001
|
+
permissions: {
|
|
1002
|
+
approvedTargets: string[];
|
|
1003
|
+
label: string[];
|
|
1004
|
+
labelNotAuthorized: string[];
|
|
1005
|
+
};
|
|
1006
|
+
blockId: number;
|
|
1007
|
+
image: string;
|
|
1008
|
+
};
|
|
1009
|
+
};
|
|
982
1010
|
};
|
|
983
1011
|
SWAP: {
|
|
984
1012
|
ODOS: {
|