otomato-sdk 1.5.61 → 1.5.63
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.
|
@@ -186,6 +186,144 @@ export const TRIGGERS = {
|
|
|
186
186
|
"blockId": 5,
|
|
187
187
|
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/BalanceCheck.svg"
|
|
188
188
|
}
|
|
189
|
+
},
|
|
190
|
+
"ON_CHAIN_PRICE_MOVEMENT": {
|
|
191
|
+
"description": "Triggers based on the movement of on-chain prices against specified currencies",
|
|
192
|
+
"chains": [
|
|
193
|
+
0
|
|
194
|
+
],
|
|
195
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/trend-up.png",
|
|
196
|
+
"PRICE_MOVEMENT_AGAINST_CURRENCY": {
|
|
197
|
+
"name": "On-Chain Price Movement Against Fiat Currency",
|
|
198
|
+
"description": "This trigger activates when the on-chain price of an asset moves against a specified currency based on the given condition.",
|
|
199
|
+
"type": 2,
|
|
200
|
+
"output": {
|
|
201
|
+
"price": "float"
|
|
202
|
+
},
|
|
203
|
+
"parameters": [
|
|
204
|
+
{
|
|
205
|
+
"key": "chainId",
|
|
206
|
+
"type": "chainId",
|
|
207
|
+
"description": "Chain ID of the blockchain to monitor",
|
|
208
|
+
"mandatory": true,
|
|
209
|
+
"category": 0
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"key": "comparisonValue",
|
|
213
|
+
"type": "float",
|
|
214
|
+
"description": "The price to compare against",
|
|
215
|
+
"mandatory": true,
|
|
216
|
+
"category": 0
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"key": "currency",
|
|
220
|
+
"type": "string",
|
|
221
|
+
"description": "The currency in which the comparison price is denominated",
|
|
222
|
+
"enum": [
|
|
223
|
+
"USD"
|
|
224
|
+
],
|
|
225
|
+
"value": "USD",
|
|
226
|
+
"mandatory": true,
|
|
227
|
+
"category": 1
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"key": "condition",
|
|
231
|
+
"type": "logic_operator",
|
|
232
|
+
"description": "The logic operator used for the comparison (e.g., >, <, >=, <=, ==, !=)",
|
|
233
|
+
"mandatory": true,
|
|
234
|
+
"category": 0
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"key": "contractAddress",
|
|
238
|
+
"type": "erc20",
|
|
239
|
+
"description": "The asset that you want to track",
|
|
240
|
+
"mandatory": true,
|
|
241
|
+
"category": 0
|
|
242
|
+
},
|
|
243
|
+
],
|
|
244
|
+
"examples": [
|
|
245
|
+
{
|
|
246
|
+
"name": "ETH > 2850$",
|
|
247
|
+
"description": "Gets triggered when ETH rises above 2850$ on Mode",
|
|
248
|
+
"parameters": [
|
|
249
|
+
{
|
|
250
|
+
"key": "chainId",
|
|
251
|
+
"value": 34443
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"key": "comparisonValue",
|
|
255
|
+
"value": 2850
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"key": "currency",
|
|
259
|
+
"value": "USD"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"key": "condition",
|
|
263
|
+
"value": "gt"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"key": "contractAddress",
|
|
267
|
+
"value": "0x0000000000000000000000000000000000000000"
|
|
268
|
+
}
|
|
269
|
+
]
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"name": "ETH < 2100$",
|
|
273
|
+
"description": "Gets triggered when ETH falls below 2100$ on Mode",
|
|
274
|
+
"parameters": [
|
|
275
|
+
{
|
|
276
|
+
"key": "chainId",
|
|
277
|
+
"value": 34443
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"key": "comparisonValue",
|
|
281
|
+
"value": 2100
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"key": "currency",
|
|
285
|
+
"value": "USD"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"key": "condition",
|
|
289
|
+
"value": "lt"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"key": "contractAddress",
|
|
293
|
+
"value": "0x0000000000000000000000000000000000000000"
|
|
294
|
+
}
|
|
295
|
+
]
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"name": "MODE < 0.01$",
|
|
299
|
+
"description": "Gets triggered when MODE falls below 0.01$ on Mode Network",
|
|
300
|
+
"parameters": [
|
|
301
|
+
{
|
|
302
|
+
"key": "chainId",
|
|
303
|
+
"value": 34443
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"key": "comparisonValue",
|
|
307
|
+
"value": 0.01
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"key": "currency",
|
|
311
|
+
"value": "USD"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"key": "condition",
|
|
315
|
+
"value": "lt"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"key": "contractAddress",
|
|
319
|
+
"value": "0xDfc7C877a950e49D2610114102175A06C2e3167a"
|
|
320
|
+
}
|
|
321
|
+
]
|
|
322
|
+
}
|
|
323
|
+
],
|
|
324
|
+
"blockId": 10,
|
|
325
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/trend-up.png"
|
|
326
|
+
}
|
|
189
327
|
}
|
|
190
328
|
},
|
|
191
329
|
"YIELD": {
|
|
@@ -800,7 +938,7 @@ export const TRIGGERS = {
|
|
|
800
938
|
"FEAR_AND_GREED": {
|
|
801
939
|
"description": "Fetches the Fear and Greed Index",
|
|
802
940
|
"tags": {},
|
|
803
|
-
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/
|
|
941
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/fearAndGreed.png",
|
|
804
942
|
"GET_FEAR_AND_GREED_INDEX": {
|
|
805
943
|
"name": "Fear and Greed Index",
|
|
806
944
|
"description": "Fetches the Fear and Greed Index from the specified API and processes the result.",
|
|
@@ -856,147 +994,7 @@ export const TRIGGERS = {
|
|
|
856
994
|
}
|
|
857
995
|
],
|
|
858
996
|
"blockId": 11,
|
|
859
|
-
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/
|
|
860
|
-
}
|
|
861
|
-
}
|
|
862
|
-
},
|
|
863
|
-
"PRICE_ACTION": {
|
|
864
|
-
"ON_CHAIN_PRICE_MOVEMENT": {
|
|
865
|
-
"description": "Triggers based on the movement of on-chain prices against specified currencies",
|
|
866
|
-
"chains": [
|
|
867
|
-
0
|
|
868
|
-
],
|
|
869
|
-
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/trend-up.png",
|
|
870
|
-
"PRICE_MOVEMENT_AGAINST_CURRENCY": {
|
|
871
|
-
"name": "On-Chain Price Movement Against Fiat Currency",
|
|
872
|
-
"description": "This trigger activates when the on-chain price of an asset moves against a specified currency based on the given condition.",
|
|
873
|
-
"type": 2,
|
|
874
|
-
"output": {
|
|
875
|
-
"price": "float"
|
|
876
|
-
},
|
|
877
|
-
"parameters": [
|
|
878
|
-
{
|
|
879
|
-
"key": "chainId",
|
|
880
|
-
"type": "chainId",
|
|
881
|
-
"description": "Chain ID of the blockchain to monitor",
|
|
882
|
-
"mandatory": true,
|
|
883
|
-
"category": 0
|
|
884
|
-
},
|
|
885
|
-
{
|
|
886
|
-
"key": "comparisonValue",
|
|
887
|
-
"type": "float",
|
|
888
|
-
"description": "The price to compare against",
|
|
889
|
-
"mandatory": true,
|
|
890
|
-
"category": 0
|
|
891
|
-
},
|
|
892
|
-
{
|
|
893
|
-
"key": "currency",
|
|
894
|
-
"type": "string",
|
|
895
|
-
"description": "The currency in which the comparison price is denominated",
|
|
896
|
-
"enum": [
|
|
897
|
-
"USD"
|
|
898
|
-
],
|
|
899
|
-
"value": "USD",
|
|
900
|
-
"mandatory": true,
|
|
901
|
-
"category": 1
|
|
902
|
-
},
|
|
903
|
-
{
|
|
904
|
-
"key": "condition",
|
|
905
|
-
"type": "logic_operator",
|
|
906
|
-
"description": "The logic operator used for the comparison (e.g., >, <, >=, <=, ==, !=)",
|
|
907
|
-
"mandatory": true,
|
|
908
|
-
"category": 0
|
|
909
|
-
},
|
|
910
|
-
{
|
|
911
|
-
"key": "contractAddress",
|
|
912
|
-
"type": "erc20",
|
|
913
|
-
"description": "The asset that you want to track",
|
|
914
|
-
"mandatory": true,
|
|
915
|
-
"category": 0
|
|
916
|
-
},
|
|
917
|
-
],
|
|
918
|
-
"examples": [
|
|
919
|
-
{
|
|
920
|
-
"name": "ETH > 2850$",
|
|
921
|
-
"description": "Gets triggered when ETH rises above 2850$ on Mode",
|
|
922
|
-
"parameters": [
|
|
923
|
-
{
|
|
924
|
-
"key": "chainId",
|
|
925
|
-
"value": 34443
|
|
926
|
-
},
|
|
927
|
-
{
|
|
928
|
-
"key": "comparisonValue",
|
|
929
|
-
"value": 2850
|
|
930
|
-
},
|
|
931
|
-
{
|
|
932
|
-
"key": "currency",
|
|
933
|
-
"value": "USD"
|
|
934
|
-
},
|
|
935
|
-
{
|
|
936
|
-
"key": "condition",
|
|
937
|
-
"value": "gt"
|
|
938
|
-
},
|
|
939
|
-
{
|
|
940
|
-
"key": "contractAddress",
|
|
941
|
-
"value": "0x0000000000000000000000000000000000000000"
|
|
942
|
-
}
|
|
943
|
-
]
|
|
944
|
-
},
|
|
945
|
-
{
|
|
946
|
-
"name": "ETH < 2100$",
|
|
947
|
-
"description": "Gets triggered when ETH falls below 2100$ on Mode",
|
|
948
|
-
"parameters": [
|
|
949
|
-
{
|
|
950
|
-
"key": "chainId",
|
|
951
|
-
"value": 34443
|
|
952
|
-
},
|
|
953
|
-
{
|
|
954
|
-
"key": "comparisonValue",
|
|
955
|
-
"value": 2100
|
|
956
|
-
},
|
|
957
|
-
{
|
|
958
|
-
"key": "currency",
|
|
959
|
-
"value": "USD"
|
|
960
|
-
},
|
|
961
|
-
{
|
|
962
|
-
"key": "condition",
|
|
963
|
-
"value": "lt"
|
|
964
|
-
},
|
|
965
|
-
{
|
|
966
|
-
"key": "contractAddress",
|
|
967
|
-
"value": "0x0000000000000000000000000000000000000000"
|
|
968
|
-
}
|
|
969
|
-
]
|
|
970
|
-
},
|
|
971
|
-
{
|
|
972
|
-
"name": "MODE < 0.01$",
|
|
973
|
-
"description": "Gets triggered when MODE falls below 0.01$ on Mode Network",
|
|
974
|
-
"parameters": [
|
|
975
|
-
{
|
|
976
|
-
"key": "chainId",
|
|
977
|
-
"value": 34443
|
|
978
|
-
},
|
|
979
|
-
{
|
|
980
|
-
"key": "comparisonValue",
|
|
981
|
-
"value": 0.01
|
|
982
|
-
},
|
|
983
|
-
{
|
|
984
|
-
"key": "currency",
|
|
985
|
-
"value": "USD"
|
|
986
|
-
},
|
|
987
|
-
{
|
|
988
|
-
"key": "condition",
|
|
989
|
-
"value": "lt"
|
|
990
|
-
},
|
|
991
|
-
{
|
|
992
|
-
"key": "contractAddress",
|
|
993
|
-
"value": "0xDfc7C877a950e49D2610114102175A06C2e3167a"
|
|
994
|
-
}
|
|
995
|
-
]
|
|
996
|
-
}
|
|
997
|
-
],
|
|
998
|
-
"blockId": 10,
|
|
999
|
-
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/trend-up.png"
|
|
997
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/fearAndGreed.png"
|
|
1000
998
|
}
|
|
1001
999
|
}
|
|
1002
1000
|
},
|
|
@@ -1273,10 +1271,6 @@ export const ACTIONS = {
|
|
|
1273
1271
|
"description": "Checks for a condition before proceeding",
|
|
1274
1272
|
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/if.png",
|
|
1275
1273
|
},
|
|
1276
|
-
"SPLIT": {
|
|
1277
|
-
"description": "Split a branch in multiple ones",
|
|
1278
|
-
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/if.png",
|
|
1279
|
-
}
|
|
1280
1274
|
},
|
|
1281
1275
|
"NOTIFICATIONS": {
|
|
1282
1276
|
"EMAIL": {
|
|
@@ -179,7 +179,7 @@ export const WORKFLOW_TEMPLATES = [
|
|
|
179
179
|
'name': 'Buy ETH when the market sentiment is extremely fearful - capital efficient',
|
|
180
180
|
'description': 'Buy ETH when the Bitcoin Fear and Greed Index is below 45. The idle funds are generating yield on Ionic.',
|
|
181
181
|
'tags': [WORKFLOW_TEMPLATES_TAGS.TRADING, WORKFLOW_TEMPLATES_TAGS.SOCIALS, WORKFLOW_TEMPLATES_TAGS.YIELD],
|
|
182
|
-
'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/
|
|
182
|
+
'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/fearAndGreed2.png',
|
|
183
183
|
'image': [
|
|
184
184
|
TRIGGERS.SOCIALS.FEAR_AND_GREED.GET_FEAR_AND_GREED_INDEX.image,
|
|
185
185
|
ACTIONS.LENDING.IONIC.WITHDRAW.image,
|
|
@@ -215,7 +215,7 @@ export const WORKFLOW_TEMPLATES = [
|
|
|
215
215
|
'name': 'Deposit USDT on Ionic if yield > 10% APY',
|
|
216
216
|
'description': 'Deposit USDT on Ionic if the yield gets above 10%',
|
|
217
217
|
'tags': [WORKFLOW_TEMPLATES_TAGS.ON_CHAIN_MONITORING, WORKFLOW_TEMPLATES_TAGS.YIELD],
|
|
218
|
-
'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/
|
|
218
|
+
'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/ionic_10.jpg',
|
|
219
219
|
'image': [
|
|
220
220
|
TRIGGERS.LENDING.IONIC.LENDING_RATE.image,
|
|
221
221
|
ACTIONS.LENDING.IONIC.DEPOSIT.image,
|
|
@@ -226,7 +226,7 @@ export const WORKFLOW_TEMPLATES = [
|
|
|
226
226
|
'name': 'Withdraw USDC from Ionic if yield < 4% APY',
|
|
227
227
|
'description': 'Withdraw USDC from Ionic if the yield gets below 4%',
|
|
228
228
|
'tags': [WORKFLOW_TEMPLATES_TAGS.ON_CHAIN_MONITORING, WORKFLOW_TEMPLATES_TAGS.YIELD],
|
|
229
|
-
'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/
|
|
229
|
+
'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/yield_4.png',
|
|
230
230
|
'image': [
|
|
231
231
|
TRIGGERS.LENDING.IONIC.LENDING_RATE.image,
|
|
232
232
|
ACTIONS.LENDING.IONIC.WITHDRAW.image,
|
|
@@ -237,7 +237,7 @@ export const WORKFLOW_TEMPLATES = [
|
|
|
237
237
|
'name': 'Copy-trade the trades done on Odos by vitalik.eth',
|
|
238
238
|
'description': 'Buy 100$ of each token that vitalik.eth buys using Odos',
|
|
239
239
|
'tags': [WORKFLOW_TEMPLATES_TAGS.ON_CHAIN_MONITORING, WORKFLOW_TEMPLATES_TAGS.TRADING],
|
|
240
|
-
'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/
|
|
240
|
+
'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/copyTrading.png',
|
|
241
241
|
'image': [
|
|
242
242
|
TRIGGERS.DEXES.ODOS.SWAP.image,
|
|
243
243
|
ACTIONS.CORE.SWAP.SWAP.image,
|
|
@@ -59,6 +59,33 @@ export declare const TRIGGERS: {
|
|
|
59
59
|
image: string;
|
|
60
60
|
};
|
|
61
61
|
};
|
|
62
|
+
ON_CHAIN_PRICE_MOVEMENT: {
|
|
63
|
+
description: string;
|
|
64
|
+
chains: number[];
|
|
65
|
+
image: string;
|
|
66
|
+
PRICE_MOVEMENT_AGAINST_CURRENCY: {
|
|
67
|
+
name: string;
|
|
68
|
+
description: string;
|
|
69
|
+
type: number;
|
|
70
|
+
output: {
|
|
71
|
+
price: string;
|
|
72
|
+
};
|
|
73
|
+
parameters: Parameter[];
|
|
74
|
+
examples: {
|
|
75
|
+
name: string;
|
|
76
|
+
description: string;
|
|
77
|
+
parameters: ({
|
|
78
|
+
key: string;
|
|
79
|
+
value: number;
|
|
80
|
+
} | {
|
|
81
|
+
key: string;
|
|
82
|
+
value: string;
|
|
83
|
+
})[];
|
|
84
|
+
}[];
|
|
85
|
+
blockId: number;
|
|
86
|
+
image: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
62
89
|
};
|
|
63
90
|
YIELD: {
|
|
64
91
|
ETHENA: {
|
|
@@ -338,35 +365,6 @@ export declare const TRIGGERS: {
|
|
|
338
365
|
};
|
|
339
366
|
};
|
|
340
367
|
};
|
|
341
|
-
PRICE_ACTION: {
|
|
342
|
-
ON_CHAIN_PRICE_MOVEMENT: {
|
|
343
|
-
description: string;
|
|
344
|
-
chains: number[];
|
|
345
|
-
image: string;
|
|
346
|
-
PRICE_MOVEMENT_AGAINST_CURRENCY: {
|
|
347
|
-
name: string;
|
|
348
|
-
description: string;
|
|
349
|
-
type: number;
|
|
350
|
-
output: {
|
|
351
|
-
price: string;
|
|
352
|
-
};
|
|
353
|
-
parameters: Parameter[];
|
|
354
|
-
examples: {
|
|
355
|
-
name: string;
|
|
356
|
-
description: string;
|
|
357
|
-
parameters: ({
|
|
358
|
-
key: string;
|
|
359
|
-
value: number;
|
|
360
|
-
} | {
|
|
361
|
-
key: string;
|
|
362
|
-
value: string;
|
|
363
|
-
})[];
|
|
364
|
-
}[];
|
|
365
|
-
blockId: number;
|
|
366
|
-
image: string;
|
|
367
|
-
};
|
|
368
|
-
};
|
|
369
|
-
};
|
|
370
368
|
ETFS: {
|
|
371
369
|
IBIT: {
|
|
372
370
|
description: string;
|
|
@@ -507,10 +505,6 @@ export declare const ACTIONS: {
|
|
|
507
505
|
description: string;
|
|
508
506
|
image: string;
|
|
509
507
|
};
|
|
510
|
-
SPLIT: {
|
|
511
|
-
description: string;
|
|
512
|
-
image: string;
|
|
513
|
-
};
|
|
514
508
|
};
|
|
515
509
|
NOTIFICATIONS: {
|
|
516
510
|
EMAIL: {
|