otomato-sdk 2.0.13 → 2.0.14

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.
@@ -1361,6 +1361,148 @@ export const TRIGGERS = {
1361
1361
  "blockId": 24,
1362
1362
  "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/compound.png"
1363
1363
  }
1364
+ },
1365
+ "IRONCLAD": {
1366
+ "description": "DeFi needs safe, liquid lending markets and steady stablecoins that drives value to users. We’ve built that foundation and made it Ironclad.",
1367
+ "chains": [
1368
+ 8453,
1369
+ 34443
1370
+ ],
1371
+ "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/ironclad.png",
1372
+ "LENDING_RATE": {
1373
+ "name": "Lending rate",
1374
+ "description": "Get the lending rate of any asset on Ironclad",
1375
+ "prototype": "ironcladLendingRate",
1376
+ "type": 1,
1377
+ "method": "function getReserveData(address asset) external view returns ((uint256 data) configuration, uint128 liquidityIndex, uint128 variableBorrowIndex, uint128 currentLiquidityRate, uint128 currentVariableBorrowRate, uint128 currentStableBorrowRate, uint40 lastUpdateTimestamp, address aTokenAddress, address stableDebtTokenAddress, address variableDebtTokenAddress, address interestRateStrategyAddress, uint8 id)",
1378
+ "parameters": [
1379
+ {
1380
+ "key": "chainId",
1381
+ "type": "chainId",
1382
+ "description": "Chain ID of the network",
1383
+ "mandatory": true,
1384
+ "category": 0
1385
+ },
1386
+ {
1387
+ "key": "abiParams.asset",
1388
+ "type": "erc20",
1389
+ "description": "The token you want to fetch the lending rate",
1390
+ "mandatory": true,
1391
+ "enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n\n const availableLendingTokens = {\n \"8453\": [\n \"0x940181a94a35a4569e4529a3cdfb74e38fd98631\",\n \"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf\",\n \"0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22\",\n \"0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb\",\n \"0x4200000000000000000000000000000000000006\",\n \"0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA\",\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\"\n ],\n \"34443\": [\n \"0xd988097fb8612cc24eeC14542bC03424c656005f\",\n \"0xf0F161fDA2712DB8b566946122a5af183995e2eD\",\n \"0x4200000000000000000000000000000000000006\",\n \"0x2416092f143378750bb29b79eD961ab195CcEea5\",\n \"0x4200000000000000000000000000000000000006\",\n \"0xe7903B1F75C534Dd8159b313d92cDCfbC62cB3Cd\",\n \"0x59889b7021243dB5B1e065385F918316cD90D46c\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0xDfc7C877a950e49D2610114102175A06C2e3167a\"\n ]\n};\n return availableLendingTokens[env.parameters.chainId] || [];\n }",
1392
+ "category": 0
1393
+ },
1394
+ {
1395
+ "key": "condition",
1396
+ "type": "logic_operator",
1397
+ "description": "Logic operator used for the comparison: <, >, <=, >=, ==, ...",
1398
+ "mandatory": true,
1399
+ "category": 0
1400
+ },
1401
+ {
1402
+ "key": "comparisonValue",
1403
+ "type": "float",
1404
+ "description": "The value to compare to",
1405
+ "mandatory": true,
1406
+ "category": 0
1407
+ },
1408
+ ],
1409
+ "output": {
1410
+ "lendingRate": "float"
1411
+ },
1412
+ "examples": [
1413
+ {
1414
+ "name": "USDT Lending Rate is above 5%",
1415
+ "description": "USDT Lending Rate is above 5%",
1416
+ "parameters": [
1417
+ {
1418
+ "key": "chainId",
1419
+ "value": 34443
1420
+ },
1421
+ {
1422
+ "key": "abiParams.asset",
1423
+ "value": "0xf0F161fDA2712DB8b566946122a5af183995e2eD"
1424
+ },
1425
+ {
1426
+ "key": "condition",
1427
+ "value": "gt"
1428
+ },
1429
+ {
1430
+ "key": "comparisonValue",
1431
+ "value": 5
1432
+ }
1433
+ ]
1434
+ }
1435
+ ],
1436
+ "blockId": 25,
1437
+ "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/ironclad.png"
1438
+ },
1439
+ "BORROWING_RATES": {
1440
+ "name": "Borrowing rate",
1441
+ "description": "Get the borrowing rate of any asset on Ironclad",
1442
+ "type": 1,
1443
+ "prototype": "ironcladBorrowingRate",
1444
+ "method": "function getReserveData(address asset) external view returns ((uint256 data) configuration, uint128 liquidityIndex, uint128 variableBorrowIndex, uint128 currentLiquidityRate, uint128 currentVariableBorrowRate, uint128 currentStableBorrowRate, uint40 lastUpdateTimestamp, address aTokenAddress, address stableDebtTokenAddress, address variableDebtTokenAddress, address interestRateStrategyAddress, uint8 id)",
1445
+ "parameters": [
1446
+ {
1447
+ "key": "chainId",
1448
+ "type": "chainId",
1449
+ "description": "Chain ID of the network",
1450
+ "mandatory": true,
1451
+ "category": 0
1452
+ },
1453
+ {
1454
+ "key": "abiParams.asset",
1455
+ "type": "erc20",
1456
+ "description": "The token you want to fetch the borrow rate for",
1457
+ "mandatory": true,
1458
+ "enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n\n const availableLendingTokens = {\n \"8453\": [\n \"0x940181a94a35a4569e4529a3cdfb74e38fd98631\",\n \"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf\",\n \"0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22\",\n \"0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb\",\n \"0x4200000000000000000000000000000000000006\",\n \"0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA\",\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\"\n ],\n \"34443\": [\n \"0xd988097fb8612cc24eeC14542bC03424c656005f\",\n \"0xf0F161fDA2712DB8b566946122a5af183995e2eD\",\n \"0x4200000000000000000000000000000000000006\",\n \"0x2416092f143378750bb29b79eD961ab195CcEea5\",\n \"0x4200000000000000000000000000000000000006\",\n \"0xe7903B1F75C534Dd8159b313d92cDCfbC62cB3Cd\",\n \"0x59889b7021243dB5B1e065385F918316cD90D46c\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0xDfc7C877a950e49D2610114102175A06C2e3167a\"\n ]\n};\n return availableLendingTokens[env.parameters.chainId] || [];\n }",
1459
+ "category": 0
1460
+ },
1461
+ {
1462
+ "key": "condition",
1463
+ "type": "logic_operator",
1464
+ "description": "Logic operator used for the comparison: <, >, <=, >=, ==, ...",
1465
+ "mandatory": true,
1466
+ "category": 0
1467
+ },
1468
+ {
1469
+ "key": "comparisonValue",
1470
+ "type": "float",
1471
+ "description": "The value to compare to",
1472
+ "mandatory": true,
1473
+ "category": 0
1474
+ },
1475
+ ],
1476
+ "output": {
1477
+ "borrowingRate": "float"
1478
+ },
1479
+ "examples": [
1480
+ {
1481
+ "name": "USDT Borrowing Rate is above 3%",
1482
+ "description": "USDT Borrowing Rate is above 3%",
1483
+ "parameters": [
1484
+ {
1485
+ "key": "chainId",
1486
+ "value": 34443
1487
+ },
1488
+ {
1489
+ "key": "abiParams.asset",
1490
+ "value": "0xf0F161fDA2712DB8b566946122a5af183995e2eD"
1491
+ },
1492
+ {
1493
+ "key": "condition",
1494
+ "value": "gt"
1495
+ },
1496
+ {
1497
+ "key": "comparisonValue",
1498
+ "value": 3
1499
+ }
1500
+ ]
1501
+ }
1502
+ ],
1503
+ "blockId": 26,
1504
+ "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/ironclad.png"
1505
+ }
1364
1506
  }
1365
1507
  },
1366
1508
  "DEXES": {
@@ -2312,14 +2454,14 @@ export const ACTIONS = {
2312
2454
  "batchWith": [
2313
2455
  {
2314
2456
  "id": 100012,
2315
- "type": 1,
2457
+ "type": 0,
2316
2458
  "conditions": [],
2317
2459
  "parameters": {
2318
2460
  "chainId": "{{parameters.chainId}}",
2319
2461
  "abi": {
2320
2462
  "parameters": {
2321
2463
  "tokens": [
2322
- "{{parameters.tokenToDeposit}}"
2464
+ "{{before.contractAddress}}"
2323
2465
  ]
2324
2466
  }
2325
2467
  }
@@ -2357,7 +2499,7 @@ export const ACTIONS = {
2357
2499
  "mandatory": true,
2358
2500
  "category": 0,
2359
2501
  "erc20FormattedAmount": {
2360
- "contractAddress": "{{parameters.tokenToWithdraw}}",
2502
+ "contractAddress": "{{before.contractAddress}}",
2361
2503
  "chain": "{{parameters.chainId}}"
2362
2504
  }
2363
2505
  },
@@ -2592,7 +2734,6 @@ export const ACTIONS = {
2592
2734
  "description": "Enable collateral to be able to borrow against it.",
2593
2735
  "type": 1,
2594
2736
  "method": "function enterMarkets(address[] tokens) returns (uint256[])",
2595
- "contractAddress": "0xFB3323E24743Caf4ADD0fDCCFB268565c0685556",
2596
2737
  "parameters": [
2597
2738
  {
2598
2739
  "key": "chainId",
@@ -2612,7 +2753,7 @@ export const ACTIONS = {
2612
2753
  "examples": [],
2613
2754
  "permissions": {
2614
2755
  "approvedTargets": [
2615
- "0xFB3323E24743Caf4ADD0fDCCFB268565c0685556"
2756
+ "{{before.contractAddress}}"
2616
2757
  ],
2617
2758
  "label": [
2618
2759
  "Enable {{tokenSymbol({{parameters.chainId}}, {{parameters.abi.parameters.tokens[0]}})}} as collateral on IONIC"
@@ -2689,7 +2830,6 @@ export const ACTIONS = {
2689
2830
  "key": "abiParams.referralCode",
2690
2831
  "type": "uint16",
2691
2832
  "description": "Referral code (use 0, as inactive)",
2692
- "mandatory": true,
2693
2833
  "hideInUI": true,
2694
2834
  "category": 1,
2695
2835
  "value": 0
@@ -2840,8 +2980,7 @@ export const ACTIONS = {
2840
2980
  }
2841
2981
  ],
2842
2982
  "output": {
2843
- "transactionHash": "string",
2844
- "amountWithdrawn": "uint256"
2983
+ "transactionHash": "string"
2845
2984
  },
2846
2985
  "permissions": {
2847
2986
  "approvedTargets": [
@@ -2939,14 +3078,14 @@ export const ACTIONS = {
2939
3078
  "batchWith": [
2940
3079
  {
2941
3080
  "id": 100026,
2942
- "type": 1,
3081
+ "type": 0,
2943
3082
  "conditions": [],
2944
3083
  "parameters": {
2945
3084
  "chainId": "{{parameters.chainId}}",
2946
3085
  "abi": {
2947
3086
  "parameters": {
2948
3087
  "tokens": [
2949
- "{{parameters.tokenToDeposit}}"
3088
+ "{{before.contractAddress}}"
2950
3089
  ]
2951
3090
  }
2952
3091
  }
@@ -3449,6 +3588,232 @@ export const ACTIONS = {
3449
3588
  "blockId": 100028,
3450
3589
  "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/compound.png"
3451
3590
  }
3591
+ },
3592
+ "IRONCLAD": {
3593
+ "description": "DeFi needs safe, liquid lending markets and steady stablecoins that drives value to users. We've built that foundation and made it Ironclad.",
3594
+ "chains": [
3595
+ 8453,
3596
+ 34443
3597
+ ],
3598
+ "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/ironclad.png",
3599
+ "SUPPLY": {
3600
+ "name": "Supply Asset to Ironclad",
3601
+ "description": "Supply an asset to ironclad",
3602
+ "type": 1,
3603
+ "method": "function deposit(address asset, uint256 amount, address onBehalfOf, uint16 referralCode)",
3604
+ "parameters": [
3605
+ {
3606
+ "key": "chainId",
3607
+ "type": "chainId",
3608
+ "description": "Chain ID of the network",
3609
+ "mandatory": true,
3610
+ "category": 0
3611
+ },
3612
+ {
3613
+ "key": "abiParams.asset",
3614
+ "type": "erc20",
3615
+ "description": "The token to supply",
3616
+ "mandatory": true,
3617
+ "enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n\n const availableLendingTokens = {\n \"8453\": [\n \"0x940181a94a35a4569e4529a3cdfb74e38fd98631\",\n \"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf\",\n \"0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22\",\n \"0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb\",\n \"0x4200000000000000000000000000000000000006\",\n \"0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA\",\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\"\n ],\n \"34443\": [\n \"0xd988097fb8612cc24eeC14542bC03424c656005f\",\n \"0xf0F161fDA2712DB8b566946122a5af183995e2eD\",\n \"0x4200000000000000000000000000000000000006\",\n \"0x2416092f143378750bb29b79eD961ab195CcEea5\",\n \"0x4200000000000000000000000000000000000006\",\n \"0xe7903B1F75C534Dd8159b313d92cDCfbC62cB3Cd\",\n \"0x59889b7021243dB5B1e065385F918316cD90D46c\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0xDfc7C877a950e49D2610114102175A06C2e3167a\"\n ]\n};\n return availableLendingTokens[env.parameters.chainId] || [];\n }",
3618
+ "category": 0
3619
+ },
3620
+ {
3621
+ "key": "abiParams.amount",
3622
+ "type": "uint256",
3623
+ "description": "The amount of the asset to supply",
3624
+ "mandatory": true,
3625
+ "category": 0,
3626
+ "erc20FormattedAmount": {
3627
+ "contractAddress": "{{parameters.abi.parameters.asset}}",
3628
+ "chain": "{{parameters.chainId}}"
3629
+ }
3630
+ },
3631
+ {
3632
+ "key": "abiParams.onBehalfOf",
3633
+ "type": "address",
3634
+ "description": "The address to receive aTokens",
3635
+ "hideInUI": true,
3636
+ "category": 1
3637
+ },
3638
+ {
3639
+ "key": "abiParams.referralCode",
3640
+ "type": "uint16",
3641
+ "description": "Referral code (use 0, as inactive)",
3642
+ "hideInUI": true,
3643
+ "category": 1,
3644
+ "value": 0
3645
+ },
3646
+ ],
3647
+ "requiredApprovals": [
3648
+ {
3649
+ "address": "{{parameters.abi.parameters.asset}}",
3650
+ "amount": "{{parameters.abi.parameters.amount}}",
3651
+ "to": "{{before.contractAddress}}"
3652
+ }
3653
+ ],
3654
+ "checks": [
3655
+ {
3656
+ "type": 0,
3657
+ "chainId": "{{parameters.chainId}}",
3658
+ "contractAddress": "{{parameters.abi.parameters.asset}}",
3659
+ "amount": "{{parameters.abi.parameters.amount}}"
3660
+ }
3661
+ ],
3662
+ "examples": [
3663
+ {
3664
+ "name": "Supply USDC",
3665
+ "description": "Supply 100 USDC to Ironclad on the Mode network",
3666
+ "parameters": [
3667
+ {
3668
+ "key": "chainId",
3669
+ "value": 34443
3670
+ },
3671
+ {
3672
+ "key": "abiParams.asset",
3673
+ "value": "0xd988097fb8612cc24eeC14542bC03424c656005f"
3674
+ },
3675
+ {
3676
+ "key": "abiParams.amount",
3677
+ "value": "100000000n"
3678
+ },
3679
+ {
3680
+ "key": "abiParams.onBehalfOf",
3681
+ "value": ""
3682
+ },
3683
+ {
3684
+ "key": "abiParams.referralCode",
3685
+ "value": 0
3686
+ }
3687
+ ]
3688
+ }
3689
+ ],
3690
+ "output": {
3691
+ "transactionHash": "string"
3692
+ },
3693
+ "permissions": {
3694
+ "approvedTargets": [
3695
+ "{{parameters.abi.parameters.asset}}",
3696
+ "{{before.contractAddress}}"
3697
+ ],
3698
+ "label": [
3699
+ "Supply {{tokenSymbol({{parameters.chainId}}, {{parameters.abi.parameters.asset}})}} on Ironclad"
3700
+ ],
3701
+ "labelNotAuthorized": [
3702
+ "Transfer {{tokenSymbol({{parameters.chainId}}, {{parameters.abi.parameters.asset}})}}"
3703
+ ]
3704
+ },
3705
+ "blockId": 100029,
3706
+ "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/ironclad.png"
3707
+ },
3708
+ "WITHDRAW": {
3709
+ "name": "Withdraw Asset from Ironclad",
3710
+ "description": "Withdraw a supplied asset from the Ironclad pool.",
3711
+ "type": 1,
3712
+ "method": "function withdraw(address asset, uint256 amount, address to) returns (uint256)",
3713
+ "parameters": [
3714
+ {
3715
+ "key": "chainId",
3716
+ "type": "chainId",
3717
+ "description": "Chain ID of the network",
3718
+ "mandatory": true,
3719
+ "category": 0
3720
+ },
3721
+ {
3722
+ "key": "abiParams.asset",
3723
+ "type": "erc20",
3724
+ "description": "The address of the asset to withdraw",
3725
+ "mandatory": true,
3726
+ "enum": "\n (env) => {\n if (!env.parameters.chainId)\n throw new Error('You need to provide the chainId first');\n\n const availableLendingTokens = {\n \"8453\": [\n \"0x940181a94a35a4569e4529a3cdfb74e38fd98631\",\n \"0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf\",\n \"0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22\",\n \"0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb\",\n \"0x4200000000000000000000000000000000000006\",\n \"0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA\",\n \"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913\"\n ],\n \"34443\": [\n \"0xd988097fb8612cc24eeC14542bC03424c656005f\",\n \"0xf0F161fDA2712DB8b566946122a5af183995e2eD\",\n \"0x4200000000000000000000000000000000000006\",\n \"0x2416092f143378750bb29b79eD961ab195CcEea5\",\n \"0x4200000000000000000000000000000000000006\",\n \"0xe7903B1F75C534Dd8159b313d92cDCfbC62cB3Cd\",\n \"0x59889b7021243dB5B1e065385F918316cD90D46c\",\n \"0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A\",\n \"0xDfc7C877a950e49D2610114102175A06C2e3167a\"\n ]\n};\n return availableLendingTokens[env.parameters.chainId] || [];\n }",
3727
+ "category": 0
3728
+ },
3729
+ {
3730
+ "key": "abiParams.amount",
3731
+ "type": "uint256",
3732
+ "description": "The amount of the asset to withdraw. Use type(uint).max for full balance.",
3733
+ "mandatory": true,
3734
+ "category": 0,
3735
+ "erc20FormattedAmount": {
3736
+ "contractAddress": "{{parameters.abi.parameters.asset}}",
3737
+ "chain": "{{parameters.chainId}}"
3738
+ },
3739
+ "default": "type(uint256).max"
3740
+ },
3741
+ {
3742
+ "key": "abiParams.to",
3743
+ "type": "address",
3744
+ "description": "The address to receive the withdrawn asset",
3745
+ "category": 0,
3746
+ "hideInUI": true
3747
+ },
3748
+ ],
3749
+ "examples": [
3750
+ {
3751
+ "name": "Withdraw USDC",
3752
+ "description": "Withdraw 10 USDC from Ironclad on the Mode network",
3753
+ "parameters": [
3754
+ {
3755
+ "key": "chainId",
3756
+ "value": 34443
3757
+ },
3758
+ {
3759
+ "key": "abiParams.asset",
3760
+ "value": "0xd988097fb8612cc24eeC14542bC03424c656005f"
3761
+ },
3762
+ {
3763
+ "key": "abiParams.amount",
3764
+ "value": "10000000n"
3765
+ },
3766
+ {
3767
+ "key": "abiParams.to",
3768
+ "value": ""
3769
+ }
3770
+ ]
3771
+ },
3772
+ {
3773
+ "name": "Withdraw all",
3774
+ "description": "Withdraw all supplied amount of an asset",
3775
+ "parameters": [
3776
+ {
3777
+ "key": "chainId",
3778
+ "value": 8453
3779
+ },
3780
+ {
3781
+ "key": "abiParams.amount",
3782
+ "value": "115792089237316195423570985008687907853269984665640564039457584007913129639935n"
3783
+ },
3784
+ {
3785
+ "key": "abiParams.to",
3786
+ "value": ""
3787
+ }
3788
+ ]
3789
+ }
3790
+ ],
3791
+ "output": {
3792
+ "transactionHash": "string"
3793
+ },
3794
+ "permissions": {
3795
+ "approvedTargets": [
3796
+ "{{parameters.abi.parameters.asset}}",
3797
+ "{{before.contractAddress}}"
3798
+ ],
3799
+ "label": [
3800
+ "Withdraw {{tokenSymbol({{parameters.chainId}}, {{parameters.abi.parameters.asset}})}} from Ironclad"
3801
+ ],
3802
+ "labelNotAuthorized": [
3803
+ "Transfer {{tokenSymbol({{parameters.chainId}}, {{parameters.abi.parameters.asset}})}}"
3804
+ ]
3805
+ },
3806
+ "checks": [
3807
+ {
3808
+ "type": 0,
3809
+ "chainId": "{{parameters.chainId}}",
3810
+ "contractAddress": "{{before.ironcladToken}}",
3811
+ "amount": "{{parameters.abi.parameters.amount}}"
3812
+ }
3813
+ ],
3814
+ "blockId": 100030,
3815
+ "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/ironclad.png"
3816
+ }
3452
3817
  }
3453
3818
  },
3454
3819
  "SWAP": {
@@ -1,4 +1,4 @@
1
- export const SDK_VERSION = '2.0.13';
1
+ export const SDK_VERSION = '2.0.14';
2
2
  export function compareVersions(v1, v2) {
3
3
  // Split the version strings into parts
4
4
  const v1Parts = v1.split('.').map(Number);
@@ -71,7 +71,6 @@ export class Node {
71
71
  return this.state;
72
72
  }
73
73
  setParameter(key, value) {
74
- console.log(`${key} - ${value}`);
75
74
  if (key in this.parameters) {
76
75
  const param = this.parameters[key];
77
76
  try {
@@ -186,7 +185,6 @@ export class Node {
186
185
  throw new Error('Cannot delete a node without an ID.');
187
186
  }
188
187
  try {
189
- console.log(this.id);
190
188
  const response = yield apiServices.delete(`/nodes/${this.id}`);
191
189
  if (response.status === 204) {
192
190
  return { success: true };
@@ -509,6 +509,59 @@ export declare const TRIGGERS: {
509
509
  image: string;
510
510
  };
511
511
  };
512
+ IRONCLAD: {
513
+ description: string;
514
+ chains: number[];
515
+ image: string;
516
+ LENDING_RATE: {
517
+ name: string;
518
+ description: string;
519
+ prototype: string;
520
+ type: number;
521
+ method: string;
522
+ parameters: Parameter[];
523
+ output: {
524
+ lendingRate: string;
525
+ };
526
+ examples: {
527
+ name: string;
528
+ description: string;
529
+ parameters: ({
530
+ key: string;
531
+ value: number;
532
+ } | {
533
+ key: string;
534
+ value: string;
535
+ })[];
536
+ }[];
537
+ blockId: number;
538
+ image: string;
539
+ };
540
+ BORROWING_RATES: {
541
+ name: string;
542
+ description: string;
543
+ type: number;
544
+ prototype: string;
545
+ method: string;
546
+ parameters: Parameter[];
547
+ output: {
548
+ borrowingRate: string;
549
+ };
550
+ examples: {
551
+ name: string;
552
+ description: string;
553
+ parameters: ({
554
+ key: string;
555
+ value: number;
556
+ } | {
557
+ key: string;
558
+ value: string;
559
+ })[];
560
+ }[];
561
+ blockId: number;
562
+ image: string;
563
+ };
564
+ };
512
565
  };
513
566
  DEXES: {
514
567
  ODOS: {
@@ -1102,7 +1155,6 @@ export declare const ACTIONS: {
1102
1155
  description: string;
1103
1156
  type: number;
1104
1157
  method: string;
1105
- contractAddress: string;
1106
1158
  parameters: Parameter[];
1107
1159
  examples: never[];
1108
1160
  permissions: {
@@ -1186,7 +1238,6 @@ export declare const ACTIONS: {
1186
1238
  }[];
1187
1239
  output: {
1188
1240
  transactionHash: string;
1189
- amountWithdrawn: string;
1190
1241
  };
1191
1242
  permissions: {
1192
1243
  approvedTargets: string[];
@@ -1458,6 +1509,84 @@ export declare const ACTIONS: {
1458
1509
  image: string;
1459
1510
  };
1460
1511
  };
1512
+ IRONCLAD: {
1513
+ description: string;
1514
+ chains: number[];
1515
+ image: string;
1516
+ SUPPLY: {
1517
+ name: string;
1518
+ description: string;
1519
+ type: number;
1520
+ method: string;
1521
+ parameters: Parameter[];
1522
+ requiredApprovals: {
1523
+ address: string;
1524
+ amount: string;
1525
+ to: string;
1526
+ }[];
1527
+ checks: {
1528
+ type: number;
1529
+ chainId: string;
1530
+ contractAddress: string;
1531
+ amount: string;
1532
+ }[];
1533
+ examples: {
1534
+ name: string;
1535
+ description: string;
1536
+ parameters: ({
1537
+ key: string;
1538
+ value: number;
1539
+ } | {
1540
+ key: string;
1541
+ value: string;
1542
+ })[];
1543
+ }[];
1544
+ output: {
1545
+ transactionHash: string;
1546
+ };
1547
+ permissions: {
1548
+ approvedTargets: string[];
1549
+ label: string[];
1550
+ labelNotAuthorized: string[];
1551
+ };
1552
+ blockId: number;
1553
+ image: string;
1554
+ };
1555
+ WITHDRAW: {
1556
+ name: string;
1557
+ description: string;
1558
+ type: number;
1559
+ method: string;
1560
+ parameters: Parameter[];
1561
+ examples: {
1562
+ name: string;
1563
+ description: string;
1564
+ parameters: ({
1565
+ key: string;
1566
+ value: number;
1567
+ } | {
1568
+ key: string;
1569
+ value: string;
1570
+ })[];
1571
+ }[];
1572
+ output: {
1573
+ transactionHash: string;
1574
+ };
1575
+ permissions: {
1576
+ approvedTargets: string[];
1577
+ label: string[];
1578
+ labelNotAuthorized: string[];
1579
+ };
1580
+ checks: {
1581
+ type: number;
1582
+ chainId: string;
1583
+ contractAddress: string;
1584
+ amount: string;
1585
+ }[];
1586
+ blockId: number;
1587
+ image: string;
1588
+ };
1589
+ };
1461
1590
  };
1462
1591
  SWAP: {
1463
1592
  ODOS: {
@@ -1,2 +1,2 @@
1
- export declare const SDK_VERSION = "2.0.13";
1
+ export declare const SDK_VERSION = "2.0.14";
2
2
  export declare function compareVersions(v1: string, v2: string): number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "otomato-sdk",
3
- "version": "2.0.13",
3
+ "version": "2.0.14",
4
4
  "description": "An SDK for building and managing automations on Otomato",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/types/src/index.d.ts",