otomato-sdk 1.5.62 → 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": {
@@ -860,146 +998,6 @@ export const TRIGGERS = {
860
998
  }
861
999
  }
862
1000
  },
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"
1000
- }
1001
- }
1002
- },
1003
1001
  "ETFS": {
1004
1002
  "IBIT": {
1005
1003
  "description": "IBIT is Blackrock's Bitcoin ETF",
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "otomato-sdk",
3
- "version": "1.5.62",
3
+ "version": "1.5.63",
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",