otomato-sdk 1.5.35 → 1.5.37

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.
@@ -470,7 +470,7 @@ export const TRIGGERS = {
470
470
  34443
471
471
  ],
472
472
  "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/ionic.jpg",
473
- "DEPOSIT": {
473
+ "LENDING_RATE": {
474
474
  "name": "Lending rate",
475
475
  "description": "Get the lending rate of any asset on Ionic",
476
476
  "type": 1,
@@ -1028,6 +1028,24 @@ export const TRIGGERS = {
1028
1028
  "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/blackrock.jpeg"
1029
1029
  }
1030
1030
  }
1031
+ },
1032
+ "NFTS": {
1033
+ "BLUR": {
1034
+ "description": "The NFT marketplace for pro traders",
1035
+ "chains": [
1036
+ 1
1037
+ ],
1038
+ "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/blur.jpg"
1039
+ }
1040
+ },
1041
+ "PRE_MARKET": {
1042
+ "WHALES_MARKET": {
1043
+ "description": "Trade Airdrop allocations and points",
1044
+ "chains": [
1045
+ 1
1046
+ ],
1047
+ "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/whalesmarket.png"
1048
+ }
1031
1049
  }
1032
1050
  };
1033
1051
  export const ACTIONS = {
@@ -1097,6 +1115,126 @@ export const ACTIONS = {
1097
1115
  "blockId": 100011,
1098
1116
  "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/delay.png"
1099
1117
  }
1118
+ },
1119
+ "SWAP": {
1120
+ "description": "Swap two assets using the best market rates accross multiple pools",
1121
+ "chains": [
1122
+ 34443
1123
+ ],
1124
+ "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/delay.png",
1125
+ "SWAP": {
1126
+ "name": "Swap",
1127
+ "description": "Swap two assets using the best market rates accross multiple pools",
1128
+ "type": 1,
1129
+ "contractAddress": "0x7E15EB462cdc67Cf92Af1f7102465a8F8c784874",
1130
+ "requiredApprovals": [
1131
+ {
1132
+ "address": "{{parameters.tokenIn}}",
1133
+ "amount": "{{parameters.amount}}",
1134
+ "to": "0x7E15EB462cdc67Cf92Af1f7102465a8F8c784874"
1135
+ }
1136
+ ],
1137
+ "checks": [
1138
+ {
1139
+ "type": 0,
1140
+ "chainId": "{{parameters.chainId}}",
1141
+ "contractAddress": "{{parameters.tokenIn}}",
1142
+ "amount": "{{parameters.amount}}"
1143
+ }
1144
+ ],
1145
+ "output": {
1146
+ "amountIn": "uint256",
1147
+ "tokenIn": "erc20",
1148
+ "amountOut": "uint256",
1149
+ "tokenOut": "erc20",
1150
+ "transactionHash": "string"
1151
+ },
1152
+ "parameters": [
1153
+ {
1154
+ "key": "chainId",
1155
+ "type": "chainId",
1156
+ "description": "Chain ID of the network",
1157
+ "mandatory": true,
1158
+ "category": 0
1159
+ },
1160
+ {
1161
+ "key": "tokenIn",
1162
+ "type": "erc20",
1163
+ "description": "Token to sell",
1164
+ "mandatory": true,
1165
+ "category": 0
1166
+ },
1167
+ {
1168
+ "key": "tokenOut",
1169
+ "type": "erc20",
1170
+ "description": "Token to buy",
1171
+ "mandatory": true,
1172
+ "category": 0
1173
+ },
1174
+ {
1175
+ "key": "amount",
1176
+ "type": "uint256",
1177
+ "description": "Amount to sell",
1178
+ "mandatory": true,
1179
+ "category": 0,
1180
+ "erc20FormattedAmount": {
1181
+ "contractAddress": "0x7E15EB462cdc67Cf92Af1f7102465a8F8c784874",
1182
+ "chain": "{{parameters.chainId}}"
1183
+ }
1184
+ },
1185
+ {
1186
+ "key": "slippage",
1187
+ "type": "percentage",
1188
+ "description": "The maximum allowable difference between the expected price and the actual price at the time of execution, expressed as a percentage. This protects the transaction from significant price fluctuations.",
1189
+ "value": 0.3,
1190
+ "mandatory": true,
1191
+ "category": 1
1192
+ },
1193
+ ],
1194
+ "examples": [
1195
+ {
1196
+ "name": "Swap USDC to WETH",
1197
+ "description": "Swap 100 USDC to WETH on Mode Network using Odos",
1198
+ "parameters": [
1199
+ {
1200
+ "key": "chainId",
1201
+ "value": 34443
1202
+ },
1203
+ {
1204
+ "key": "tokenIn",
1205
+ "value": "0xd988097fb8612cc24eeC14542bC03424c656005f"
1206
+ },
1207
+ {
1208
+ "key": "tokenOut",
1209
+ "value": "0x4200000000000000000000000000000000000006"
1210
+ },
1211
+ {
1212
+ "key": "amount",
1213
+ "value": "100000000n"
1214
+ },
1215
+ {
1216
+ "key": "slippage",
1217
+ "value": 0.3
1218
+ }
1219
+ ]
1220
+ }
1221
+ ],
1222
+ "permissions": {
1223
+ "approvedTargets": [
1224
+ "0x7E15EB462cdc67Cf92Af1f7102465a8F8c784874",
1225
+ "{{parameters.tokenIn}}"
1226
+ ],
1227
+ "label": [
1228
+ "Swap {{tokenSymbol({{parameters.chainId}}, {{parameters.tokenIn}})}} to {{tokenSymbol({{parameters.chainId}}, {{parameters.tokenOut}})}}"
1229
+ ],
1230
+ "labelNotAuthorized": [
1231
+ "Transfer ETH"
1232
+ ]
1233
+ },
1234
+ "duplicate": true,
1235
+ "blockId": 100005,
1236
+ "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/delay.png"
1237
+ }
1100
1238
  }
1101
1239
  },
1102
1240
  "NOTIFICATIONS": {
@@ -1187,13 +1325,6 @@ export const ACTIONS = {
1187
1325
  "message": "string"
1188
1326
  },
1189
1327
  "parameters": [
1190
- {
1191
- "key": "webhook",
1192
- "type": "url",
1193
- "description": "The webhook URL for the Telegram bot",
1194
- "mandatory": true,
1195
- "private": true
1196
- },
1197
1328
  {
1198
1329
  "key": "message",
1199
1330
  "type": "paragraph",
@@ -1227,7 +1358,7 @@ export const ACTIONS = {
1227
1358
  "ERC20": {
1228
1359
  "description": "The most used standard for tokens on ethereum compatible blockchains",
1229
1360
  "chains": [
1230
- 0
1361
+ 34443
1231
1362
  ],
1232
1363
  "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/ethereum.webp",
1233
1364
  "TRANSFER": {
@@ -1272,6 +1403,14 @@ export const ACTIONS = {
1272
1403
  "category": 0
1273
1404
  },
1274
1405
  ],
1406
+ "checks": [
1407
+ {
1408
+ "type": 0,
1409
+ "chainId": "{{parameters.chainId}}",
1410
+ "contractAddress": "{{parameters.contractAddress}}",
1411
+ "amount": "{{parameters.abi.parameters.amount}}"
1412
+ }
1413
+ ],
1275
1414
  "examples": [
1276
1415
  {
1277
1416
  "name": "Transfer USDC",
@@ -1372,6 +1511,14 @@ export const ACTIONS = {
1372
1511
  ]
1373
1512
  }
1374
1513
  ],
1514
+ "checks": [
1515
+ {
1516
+ "type": 0,
1517
+ "chainId": "{{parameters.chainId}}",
1518
+ "contractAddress": "{{parameters.tokenToDeposit}}",
1519
+ "amount": "{{parameters.abi.parameters.amount}}"
1520
+ }
1521
+ ],
1375
1522
  "requiredApprovals": [
1376
1523
  {
1377
1524
  "address": "{{parameters.tokenToDeposit}}",
@@ -1394,6 +1541,23 @@ export const ACTIONS = {
1394
1541
  "Transfer {{tokenSymbol({{parameters.chainId}}, {{parameters.tokenToDeposit}})}}"
1395
1542
  ]
1396
1543
  },
1544
+ "batchWith": [
1545
+ {
1546
+ "id": 100012,
1547
+ "type": 1,
1548
+ "conditions": [],
1549
+ "parameters": {
1550
+ "chainId": "{{parameters.chainId}}",
1551
+ "abi": {
1552
+ "parameters": {
1553
+ "tokens": [
1554
+ "{{parameters.tokenToDeposit}}"
1555
+ ]
1556
+ }
1557
+ }
1558
+ }
1559
+ }
1560
+ ],
1397
1561
  "blockId": 100006,
1398
1562
  "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/ionic.jpg"
1399
1563
  },
@@ -1572,6 +1736,14 @@ export const ACTIONS = {
1572
1736
  }
1573
1737
  },
1574
1738
  ],
1739
+ "checks": [
1740
+ {
1741
+ "type": 0,
1742
+ "chainId": "{{parameters.chainId}}",
1743
+ "contractAddress": "{{parameters.tokenToRepay}}",
1744
+ "amount": "{{parameters.abi.parameters.amount}}"
1745
+ }
1746
+ ],
1575
1747
  "examples": [
1576
1748
  {
1577
1749
  "name": "Repay 100 USDT",
@@ -1615,7 +1787,59 @@ export const ACTIONS = {
1615
1787
  },
1616
1788
  "blockId": 100009,
1617
1789
  "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/ionic.jpg"
1790
+ },
1791
+ "ENABLE_COLLATERAL": {
1792
+ "showInUI": false,
1793
+ "name": "Enable collaterals",
1794
+ "description": "Enable collateral to be able to borrow against it.",
1795
+ "type": 1,
1796
+ "method": "function enterMarkets(address[] tokens) returns (uint256[])",
1797
+ "contractAddress": "0xFB3323E24743Caf4ADD0fDCCFB268565c0685556",
1798
+ "parameters": [
1799
+ {
1800
+ "key": "chainId",
1801
+ "type": "chainId",
1802
+ "description": "Chain ID of the network",
1803
+ "mandatory": true,
1804
+ "category": 0
1805
+ },
1806
+ {
1807
+ "key": "abiParams.tokens",
1808
+ "type": "uint256",
1809
+ "description": "List of collaterals",
1810
+ "mandatory": true,
1811
+ "category": 0
1812
+ },
1813
+ ],
1814
+ "examples": [],
1815
+ "permissions": {
1816
+ "approvedTargets": [
1817
+ "0xFB3323E24743Caf4ADD0fDCCFB268565c0685556"
1818
+ ],
1819
+ "label": [
1820
+ "Borrow against {{tokenSymbol({{parameters.chainId}}, {{parameters.abiParams.tokens[0]}})}} on IONIC"
1821
+ ],
1822
+ "labelNotAuthorized": [
1823
+ "Transfer {{tokenSymbol({{parameters.chainId}}, {{parameters.abiParams.tokens[0]}})}}"
1824
+ ]
1825
+ },
1826
+ "blockId": 100012,
1827
+ "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/ionic.jpg"
1618
1828
  }
1829
+ },
1830
+ "ETHER_FI": {
1831
+ "description": "Liquid restaking on Ethereum",
1832
+ "chains": [
1833
+ 34443
1834
+ ],
1835
+ "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/etherfi.jpg"
1836
+ },
1837
+ "RENZO": {
1838
+ "description": "Liquid restaking on Ethereum",
1839
+ "chains": [
1840
+ 34443
1841
+ ],
1842
+ "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/renzo.jpg"
1619
1843
  }
1620
1844
  },
1621
1845
  "SWAP": {
@@ -1637,6 +1861,14 @@ export const ACTIONS = {
1637
1861
  "to": "0x7E15EB462cdc67Cf92Af1f7102465a8F8c784874"
1638
1862
  }
1639
1863
  ],
1864
+ "checks": [
1865
+ {
1866
+ "type": 0,
1867
+ "chainId": "{{parameters.chainId}}",
1868
+ "contractAddress": "{{parameters.tokenIn}}",
1869
+ "amount": "{{parameters.amount}}"
1870
+ }
1871
+ ],
1640
1872
  "output": {
1641
1873
  "amountIn": "uint256",
1642
1874
  "tokenIn": "erc20",
@@ -1730,5 +1962,14 @@ export const ACTIONS = {
1730
1962
  "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/odos.jpg"
1731
1963
  }
1732
1964
  }
1965
+ },
1966
+ "NFTS": {
1967
+ "BLUR": {
1968
+ "description": "The NFT marketplace for pro traders",
1969
+ "chains": [
1970
+ 1
1971
+ ],
1972
+ "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/blur.jpg"
1973
+ }
1733
1974
  }
1734
1975
  };
@@ -0,0 +1 @@
1
+ export {};
@@ -187,7 +187,7 @@ export declare const TRIGGERS: {
187
187
  description: string;
188
188
  chains: number[];
189
189
  image: string;
190
- DEPOSIT: {
190
+ LENDING_RATE: {
191
191
  name: string;
192
192
  description: string;
193
193
  type: number;
@@ -390,6 +390,20 @@ export declare const TRIGGERS: {
390
390
  };
391
391
  };
392
392
  };
393
+ NFTS: {
394
+ BLUR: {
395
+ description: string;
396
+ chains: number[];
397
+ image: string;
398
+ };
399
+ };
400
+ PRE_MARKET: {
401
+ WHALES_MARKET: {
402
+ description: string;
403
+ chains: number[];
404
+ image: string;
405
+ };
406
+ };
393
407
  };
394
408
  export declare const ACTIONS: {
395
409
  CORE: {
@@ -435,6 +449,55 @@ export declare const ACTIONS: {
435
449
  image: string;
436
450
  };
437
451
  };
452
+ SWAP: {
453
+ description: string;
454
+ chains: number[];
455
+ image: string;
456
+ SWAP: {
457
+ name: string;
458
+ description: string;
459
+ type: number;
460
+ contractAddress: string;
461
+ requiredApprovals: {
462
+ address: string;
463
+ amount: string;
464
+ to: string;
465
+ }[];
466
+ checks: {
467
+ type: number;
468
+ chainId: string;
469
+ contractAddress: string;
470
+ amount: string;
471
+ }[];
472
+ output: {
473
+ amountIn: string;
474
+ tokenIn: string;
475
+ amountOut: string;
476
+ tokenOut: string;
477
+ transactionHash: string;
478
+ };
479
+ parameters: Parameter[];
480
+ examples: {
481
+ name: string;
482
+ description: string;
483
+ parameters: ({
484
+ key: string;
485
+ value: number;
486
+ } | {
487
+ key: string;
488
+ value: string;
489
+ })[];
490
+ }[];
491
+ permissions: {
492
+ approvedTargets: string[];
493
+ label: string[];
494
+ labelNotAuthorized: string[];
495
+ };
496
+ duplicate: boolean;
497
+ blockId: number;
498
+ image: string;
499
+ };
500
+ };
438
501
  };
439
502
  NOTIFICATIONS: {
440
503
  SLACK: {
@@ -519,6 +582,12 @@ export declare const ACTIONS: {
519
582
  transactionHash: string;
520
583
  };
521
584
  parameters: Parameter[];
585
+ checks: {
586
+ type: number;
587
+ chainId: string;
588
+ contractAddress: string;
589
+ amount: string;
590
+ }[];
522
591
  examples: {
523
592
  name: string;
524
593
  description: string;
@@ -562,6 +631,12 @@ export declare const ACTIONS: {
562
631
  value: string;
563
632
  })[];
564
633
  }[];
634
+ checks: {
635
+ type: number;
636
+ chainId: string;
637
+ contractAddress: string;
638
+ amount: string;
639
+ }[];
565
640
  requiredApprovals: {
566
641
  address: string;
567
642
  amount: string;
@@ -575,6 +650,19 @@ export declare const ACTIONS: {
575
650
  label: string[];
576
651
  labelNotAuthorized: string[];
577
652
  };
653
+ batchWith: {
654
+ id: number;
655
+ type: number;
656
+ conditions: never[];
657
+ parameters: {
658
+ chainId: string;
659
+ abi: {
660
+ parameters: {
661
+ tokens: string[];
662
+ };
663
+ };
664
+ };
665
+ }[];
578
666
  blockId: number;
579
667
  image: string;
580
668
  };
@@ -642,6 +730,12 @@ export declare const ACTIONS: {
642
730
  type: number;
643
731
  method: string;
644
732
  parameters: Parameter[];
733
+ checks: {
734
+ type: number;
735
+ chainId: string;
736
+ contractAddress: string;
737
+ amount: string;
738
+ }[];
645
739
  examples: {
646
740
  name: string;
647
741
  description: string;
@@ -669,6 +763,33 @@ export declare const ACTIONS: {
669
763
  blockId: number;
670
764
  image: string;
671
765
  };
766
+ ENABLE_COLLATERAL: {
767
+ showInUI: boolean;
768
+ name: string;
769
+ description: string;
770
+ type: number;
771
+ method: string;
772
+ contractAddress: string;
773
+ parameters: Parameter[];
774
+ examples: never[];
775
+ permissions: {
776
+ approvedTargets: string[];
777
+ label: string[];
778
+ labelNotAuthorized: string[];
779
+ };
780
+ blockId: number;
781
+ image: string;
782
+ };
783
+ };
784
+ ETHER_FI: {
785
+ description: string;
786
+ chains: number[];
787
+ image: string;
788
+ };
789
+ RENZO: {
790
+ description: string;
791
+ chains: number[];
792
+ image: string;
672
793
  };
673
794
  };
674
795
  SWAP: {
@@ -686,6 +807,12 @@ export declare const ACTIONS: {
686
807
  amount: string;
687
808
  to: string;
688
809
  }[];
810
+ checks: {
811
+ type: number;
812
+ chainId: string;
813
+ contractAddress: string;
814
+ amount: string;
815
+ }[];
689
816
  output: {
690
817
  amountIn: string;
691
818
  tokenIn: string;
@@ -715,4 +842,11 @@ export declare const ACTIONS: {
715
842
  };
716
843
  };
717
844
  };
845
+ NFTS: {
846
+ BLUR: {
847
+ description: string;
848
+ chains: number[];
849
+ image: string;
850
+ };
851
+ };
718
852
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "otomato-sdk",
3
- "version": "1.5.35",
3
+ "version": "1.5.37",
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",