otomato-sdk 1.5.20 → 1.5.22

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.
@@ -21,28 +21,37 @@ export const TRIGGERS = {
21
21
  "key": "chainId",
22
22
  "type": "chainId",
23
23
  "description": "Chain ID of the EVM blockchain",
24
- "mandatory": true
24
+ "mandatory": true,
25
+ "category": 0
25
26
  },
26
27
  {
27
28
  "key": "abiParams.from",
28
29
  "type": "address",
29
- "description": "Address that transfers the funds"
30
+ "description": "Address that transfers the funds",
31
+ "category": 1
30
32
  },
31
33
  {
32
34
  "key": "abiParams.value",
33
35
  "type": "uint256",
34
- "description": "Amount of crypto to transfer"
36
+ "description": "Amount of crypto to transfer",
37
+ "category": 1,
38
+ "erc20FormattedAmount": {
39
+ "contractAddress": "{{parameters.contractAddress}}",
40
+ "chain": "{{parameters.chainId}}"
41
+ }
35
42
  },
36
43
  {
37
44
  "key": "abiParams.to",
38
45
  "type": "address",
39
- "description": "Address that receives the funds"
46
+ "description": "Address that receives the funds",
47
+ "category": 1
40
48
  },
41
49
  {
42
50
  "key": "contractAddress",
43
51
  "type": "erc20",
44
52
  "description": "The contract address of the ERC20",
45
- "mandatory": true
53
+ "mandatory": true,
54
+ "category": 0
46
55
  },
47
56
  ],
48
57
  "examples": [
@@ -69,7 +78,7 @@ export const TRIGGERS = {
69
78
  "description": "Fetches the balance of an ERC20 and checks it against the specified condition.",
70
79
  "type": 1,
71
80
  "method": "function balanceOf(address account) view returns (uint256)",
72
- "handler": "output => { const params=JSON.parse(output);const balance = BigInt(params)/1000000n; return {balance: Number(balance)}; }",
81
+ "handler": "output => { const params=JSON.parse(output);const balance = BigInt(params)/1000000n; return {balance: Number(balance), comparisonValue: Number(balance)}; }",
73
82
  "output": {
74
83
  "balance": "integer"
75
84
  },
@@ -78,31 +87,40 @@ export const TRIGGERS = {
78
87
  "key": "chainId",
79
88
  "type": "chainId",
80
89
  "description": "Chain ID of the EVM blockchain",
81
- "mandatory": true
90
+ "mandatory": true,
91
+ "category": 0
82
92
  },
83
93
  {
84
94
  "key": "abiParams.account",
85
95
  "type": "address",
86
96
  "description": "Amount of crypto to transfer",
87
- "mandatory": true
97
+ "mandatory": true,
98
+ "category": 0
88
99
  },
89
100
  {
90
101
  "key": "contractAddress",
91
102
  "type": "address",
92
103
  "description": "The contract address of the ERC20",
93
- "mandatory": true
104
+ "mandatory": true,
105
+ "category": 0
94
106
  },
95
107
  {
96
108
  "key": "condition",
97
109
  "type": "logic_operator",
98
110
  "description": "Logic operator used for the comparison: <, >, <=, >=, ==, ...",
99
- "mandatory": true
111
+ "mandatory": true,
112
+ "category": 0
100
113
  },
101
114
  {
102
115
  "key": "comparisonValue",
103
116
  "type": "any",
104
117
  "description": "The value to compare to",
105
- "mandatory": true
118
+ "mandatory": true,
119
+ "category": 0,
120
+ "erc20FormattedAmount": {
121
+ "contractAddress": "{{parameters.contractAddress}}",
122
+ "chain": "{{parameters.chainId}}"
123
+ }
106
124
  },
107
125
  ],
108
126
  "examples": [
@@ -116,7 +134,7 @@ export const TRIGGERS = {
116
134
  },
117
135
  {
118
136
  "key": "comparisonValue",
119
- "value": 10000
137
+ "value": {}
120
138
  },
121
139
  {
122
140
  "key": "condition",
@@ -162,29 +180,35 @@ export const TRIGGERS = {
162
180
  {
163
181
  "key": "abiParams.caller",
164
182
  "type": "address",
165
- "description": "Caller address"
183
+ "description": "Caller address",
184
+ "category": 1
166
185
  },
167
186
  {
168
187
  "key": "abiParams.market",
169
188
  "type": "address",
170
- "description": "Market address"
189
+ "description": "Market address",
190
+ "category": 1
171
191
  },
172
192
  {
173
193
  "key": "abiParams.receiver",
174
194
  "type": "address",
175
- "description": "Receiver address"
195
+ "description": "Receiver address",
196
+ "category": 1
176
197
  },
177
198
  {
178
199
  "key": "abiParams.netPtToAccount",
179
200
  "type": "int256",
180
- "description": "Net PT to account"
201
+ "description": "Net PT to account",
202
+ "category": 1
181
203
  },
182
204
  {
183
205
  "key": "abiParams.netSyToAccount",
184
206
  "type": "int256",
185
- "description": "Net SY to account"
207
+ "description": "Net SY to account",
208
+ "category": 1
186
209
  },
187
210
  ],
211
+ "examples": [],
188
212
  "blockId": 2,
189
213
  "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/splicefi.png"
190
214
  },
@@ -206,34 +230,41 @@ export const TRIGGERS = {
206
230
  {
207
231
  "key": "abiParams.caller",
208
232
  "type": "address",
209
- "description": "Caller address"
233
+ "description": "Caller address",
234
+ "category": 1
210
235
  },
211
236
  {
212
237
  "key": "abiParams.market",
213
238
  "type": "address",
214
- "description": "Market address"
239
+ "description": "Market address",
240
+ "category": 1
215
241
  },
216
242
  {
217
243
  "key": "abiParams.receiver",
218
244
  "type": "address",
219
- "description": "Receiver address"
245
+ "description": "Receiver address",
246
+ "category": 1
220
247
  },
221
248
  {
222
249
  "key": "abiParams.netLpToRemove",
223
250
  "type": "uint256",
224
- "description": "Net LP to remove"
251
+ "description": "Net LP to remove",
252
+ "category": 1
225
253
  },
226
254
  {
227
255
  "key": "abiParams.netPtOut",
228
256
  "type": "uint256",
229
- "description": "Net PT out"
257
+ "description": "Net PT out",
258
+ "category": 1
230
259
  },
231
260
  {
232
261
  "key": "abiParams.netSyOut",
233
262
  "type": "uint256",
234
- "description": "Net SY out"
263
+ "description": "Net SY out",
264
+ "category": 1
235
265
  },
236
266
  ],
267
+ "examples": [],
237
268
  "blockId": 6,
238
269
  "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/splicefi.png"
239
270
  },
@@ -254,29 +285,35 @@ export const TRIGGERS = {
254
285
  {
255
286
  "key": "abiParams.market",
256
287
  "type": "address",
257
- "description": "Market address"
288
+ "description": "Market address",
289
+ "category": 1
258
290
  },
259
291
  {
260
292
  "key": "abiParams.PT",
261
293
  "type": "address",
262
- "description": "PT address"
294
+ "description": "PT address",
295
+ "category": 1
263
296
  },
264
297
  {
265
298
  "key": "abiParams.scalarRoot",
266
299
  "type": "int256",
267
- "description": "Scalar root"
300
+ "description": "Scalar root",
301
+ "category": 1
268
302
  },
269
303
  {
270
304
  "key": "abiParams.initialAnchor",
271
305
  "type": "int256",
272
- "description": "Initial anchor"
306
+ "description": "Initial anchor",
307
+ "category": 1
273
308
  },
274
309
  {
275
310
  "key": "abiParams.lnFeeRateRoot",
276
311
  "type": "uint256",
277
- "description": "LN fee rate root"
312
+ "description": "LN fee rate root",
313
+ "category": 1
278
314
  },
279
315
  ],
316
+ "examples": [],
280
317
  "blockId": 7,
281
318
  "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/splicefi.png"
282
319
  },
@@ -294,12 +331,14 @@ export const TRIGGERS = {
294
331
  {
295
332
  "key": "abiParams.timestamp",
296
333
  "type": "uint256",
297
- "description": "Timestamp"
334
+ "description": "Timestamp",
335
+ "category": 1
298
336
  },
299
337
  {
300
338
  "key": "abiParams.lastLnImpliedRate",
301
339
  "type": "int256",
302
- "description": "Last LN implied rate"
340
+ "description": "Last LN implied rate",
341
+ "category": 1
303
342
  },
304
343
  {
305
344
  "key": "contractAddress",
@@ -311,9 +350,11 @@ export const TRIGGERS = {
311
350
  "0x34cf9BF641bd5f34197060A3f3478a1f97f78f0a",
312
351
  "0xb950A73Ea0842B0Cd06D0e369aE974799BB346f1",
313
352
  "0xbF14932e1A7962C77D0b31be80075936bE1A43D4"
314
- ]
353
+ ],
354
+ "category": 0
315
355
  },
316
356
  ],
357
+ "examples": [],
317
358
  "blockId": 9,
318
359
  "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/splicefi.png"
319
360
  }
@@ -330,7 +371,7 @@ export const TRIGGERS = {
330
371
  "name": "Lend Recalled",
331
372
  "description": "Lend recalled in Astaria",
332
373
  "type": 0,
333
- "contractAddress": "0x34cf9BF641bd5f34197060A3f3478a1f97f78f0a",
374
+ "contractAddress": "0x0000000002546f9C641E000DD4b22875236BC147",
334
375
  "output": {
335
376
  "loanId": "uint256",
336
377
  "recaller": "address",
@@ -342,22 +383,26 @@ export const TRIGGERS = {
342
383
  "key": "chainId",
343
384
  "type": "chainId",
344
385
  "description": "Chain ID of the EVM blockchain",
345
- "mandatory": true
386
+ "mandatory": true,
387
+ "category": 0
346
388
  },
347
389
  {
348
390
  "key": "abiParams.loanId",
349
391
  "type": "uint256",
350
- "description": "Loan ID"
392
+ "description": "Loan ID",
393
+ "category": 0
351
394
  },
352
395
  {
353
396
  "key": "abiParams.recaller",
354
397
  "type": "address",
355
- "description": "Recaller address"
398
+ "description": "Recaller address",
399
+ "category": 1
356
400
  },
357
401
  {
358
402
  "key": "abiParams.end",
359
403
  "type": "uint256",
360
- "description": "End time"
404
+ "description": "End time",
405
+ "category": 1
361
406
  },
362
407
  ],
363
408
  "examples": [
@@ -432,32 +477,38 @@ export const TRIGGERS = {
432
477
  "key": "chainId",
433
478
  "type": "chainId",
434
479
  "description": "Chain ID of the EVM blockchain",
435
- "mandatory": true
480
+ "mandatory": true,
481
+ "category": 0
436
482
  },
437
483
  {
438
484
  "key": "abiParams.sender",
439
485
  "type": "address",
440
- "description": "Sender address"
486
+ "description": "Sender address",
487
+ "category": 0
441
488
  },
442
489
  {
443
490
  "key": "abiParams.inputAmount",
444
491
  "type": "uint256",
445
- "description": "Input amount"
492
+ "description": "Input amount",
493
+ "category": 0
446
494
  },
447
495
  {
448
496
  "key": "abiParams.inputToken",
449
497
  "type": "address",
450
- "description": "Input token address"
498
+ "description": "Input token address",
499
+ "category": 0
451
500
  },
452
501
  {
453
502
  "key": "abiParams.amountOut",
454
503
  "type": "uint256",
455
- "description": "Output amount"
504
+ "description": "Output amount",
505
+ "category": 0
456
506
  },
457
507
  {
458
508
  "key": "abiParams.outputToken",
459
509
  "type": "address",
460
- "description": "Output token address"
510
+ "description": "Output token address",
511
+ "category": 0
461
512
  },
462
513
  ],
463
514
  "examples": [
@@ -481,13 +532,7 @@ export const TRIGGERS = {
481
532
  },
482
533
  {
483
534
  "key": "abiParams.inputToken",
484
- "value": {
485
- "contractAddress": "0x4200000000000000000000000000000000000006",
486
- "symbol": "WETH",
487
- "name": "Wrapped Ether",
488
- "decimals": 18,
489
- "image": "https://static.debank.com/image/mtr_token/logo_url/0x79a61d3a28f8c8537a3df63092927cfa1150fb3c/61844453e63cf81301f845d7864236f6.png"
490
- }
535
+ "value": "0x4200000000000000000000000000000000000006"
491
536
  }
492
537
  ]
493
538
  }
@@ -519,17 +564,20 @@ export const TRIGGERS = {
519
564
  {
520
565
  "key": "abiParams.id",
521
566
  "type": "uint256",
522
- "description": "ID of the name registered"
567
+ "description": "ID of the name registered",
568
+ "category": 1
523
569
  },
524
570
  {
525
571
  "key": "abiParams.owner",
526
572
  "type": "address",
527
- "description": "Owner address"
573
+ "description": "Owner address",
574
+ "category": 1
528
575
  },
529
576
  {
530
577
  "key": "abiParams.expires",
531
578
  "type": "uint256",
532
- "description": "Expiration time"
579
+ "description": "Expiration time",
580
+ "category": 1
533
581
  },
534
582
  ],
535
583
  "examples": [],
@@ -546,7 +594,7 @@ export const TRIGGERS = {
546
594
  "description": "Fetches the Fear and Greed Index from the specified API and processes the result.",
547
595
  "type": 3,
548
596
  "url": "https://api.alternative.me/fng/",
549
- "handler": "async (res) => { return {value: res.data?.[0]?.value} }",
597
+ "handler": "async (res) => { return {value: res.data?.[0]?.value, comparisonValue: res.data?.[0]?.value} }",
550
598
  "output": {
551
599
  "value": "integer"
552
600
  },
@@ -555,13 +603,15 @@ export const TRIGGERS = {
555
603
  "key": "condition",
556
604
  "type": "logic_operator",
557
605
  "description": "Logic operator used for the comparison: <, >, <=, >=, ==, ...",
558
- "mandatory": true
606
+ "mandatory": true,
607
+ "category": 0
559
608
  },
560
609
  {
561
610
  "key": "comparisonValue",
562
611
  "type": "integer",
563
612
  "description": "The value to compare to",
564
- "mandatory": true
613
+ "mandatory": true,
614
+ "category": 0
565
615
  },
566
616
  ],
567
617
  "examples": [
@@ -618,13 +668,15 @@ export const TRIGGERS = {
618
668
  "key": "chainId",
619
669
  "type": "chainId",
620
670
  "description": "Chain ID of the blockchain to monitor",
621
- "mandatory": true
671
+ "mandatory": true,
672
+ "category": 0
622
673
  },
623
674
  {
624
675
  "key": "comparisonValue",
625
676
  "type": "float",
626
677
  "description": "The price to compare against",
627
- "mandatory": true
678
+ "mandatory": true,
679
+ "category": 0
628
680
  },
629
681
  {
630
682
  "key": "currency",
@@ -633,19 +685,23 @@ export const TRIGGERS = {
633
685
  "enum": [
634
686
  "USD"
635
687
  ],
636
- "mandatory": true
688
+ "value": "USD",
689
+ "mandatory": true,
690
+ "category": 1
637
691
  },
638
692
  {
639
693
  "key": "condition",
640
694
  "type": "logic_operator",
641
695
  "description": "The logic operator used for the comparison (e.g., >, <, >=, <=, ==, !=)",
642
- "mandatory": true
696
+ "mandatory": true,
697
+ "category": 0
643
698
  },
644
699
  {
645
700
  "key": "contractAddress",
646
701
  "type": "erc20",
647
702
  "description": "The asset that you want to track",
648
- "mandatory": true
703
+ "mandatory": true,
704
+ "category": 0
649
705
  },
650
706
  ],
651
707
  "examples": [
@@ -752,13 +808,15 @@ export const ACTIONS = {
752
808
  "type": "url",
753
809
  "description": "The webhook URL for the Slack channel (e.g https://hooks.slack.com/services/T087SUVQ0DA/B07DEEGF9PK/FKkRaqagLR)",
754
810
  "mandatory": true,
755
- "private": true
811
+ "private": true,
812
+ "category": 0
756
813
  },
757
814
  {
758
815
  "key": "message",
759
816
  "type": "paragraph",
760
817
  "description": "The text content to send",
761
- "mandatory": true
818
+ "mandatory": true,
819
+ "category": 0
762
820
  },
763
821
  ],
764
822
  "template": {
@@ -767,6 +825,7 @@ export const ACTIONS = {
767
825
  "text": "{{message}}"
768
826
  }
769
827
  },
828
+ "examples": [],
770
829
  "blockId": 100002,
771
830
  "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/slack.png"
772
831
  }
@@ -787,13 +846,15 @@ export const ACTIONS = {
787
846
  "type": "url",
788
847
  "description": "The webhook URL for the Discord channel",
789
848
  "mandatory": true,
790
- "private": true
849
+ "private": true,
850
+ "category": 0
791
851
  },
792
852
  {
793
853
  "key": "message",
794
854
  "type": "paragraph",
795
855
  "description": "The text content to send",
796
- "mandatory": true
856
+ "mandatory": true,
857
+ "category": 0
797
858
  },
798
859
  ],
799
860
  "template": {
@@ -802,6 +863,7 @@ export const ACTIONS = {
802
863
  "content": "{{message}}"
803
864
  }
804
865
  },
866
+ "examples": [],
805
867
  "blockId": 100003,
806
868
  "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/discord.png"
807
869
  }
@@ -828,14 +890,16 @@ export const ACTIONS = {
828
890
  "key": "message",
829
891
  "type": "paragraph",
830
892
  "description": "The text content to send",
831
- "mandatory": true
893
+ "mandatory": true,
894
+ "category": 0
832
895
  },
833
896
  {
834
897
  "key": "chat_id",
835
898
  "type": "string",
836
899
  "description": "Channel id",
837
900
  "mandatory": true,
838
- "private": true
901
+ "private": true,
902
+ "category": 0
839
903
  },
840
904
  ],
841
905
  "template": {
@@ -845,6 +909,7 @@ export const ACTIONS = {
845
909
  "text": "{{message}}"
846
910
  }
847
911
  },
912
+ "examples": [],
848
913
  "blockId": 100001,
849
914
  "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/telegram.jpeg"
850
915
  }
@@ -870,27 +935,59 @@ export const ACTIONS = {
870
935
  "key": "chainId",
871
936
  "type": "chainId",
872
937
  "description": "Chain ID of the network",
873
- "mandatory": true
938
+ "mandatory": true,
939
+ "category": 0
874
940
  },
875
941
  {
876
942
  "key": "abiParams.value",
877
943
  "type": "uint256",
878
944
  "description": "Amount of crypto to transfer",
879
- "mandatory": true
945
+ "mandatory": true,
946
+ "category": 0,
947
+ "erc20FormattedAmount": {
948
+ "contractAddress": "{{parameters.contractAddress}}",
949
+ "chain": "{{parameters.chainId}}"
950
+ }
880
951
  },
881
952
  {
882
953
  "key": "abiParams.to",
883
954
  "type": "address",
884
955
  "description": "Address to transfer crypto to",
885
- "mandatory": true
956
+ "mandatory": true,
957
+ "category": 0
886
958
  },
887
959
  {
888
960
  "key": "contractAddress",
889
961
  "type": "erc20",
890
962
  "description": "The contract address of the ERC20",
891
- "mandatory": true
963
+ "mandatory": true,
964
+ "category": 0
892
965
  },
893
966
  ],
967
+ "examples": [
968
+ {
969
+ "name": "Transfer USDC",
970
+ "description": "Transfer 100 USDC to vitalik.eth on Mode",
971
+ "parameters": [
972
+ {
973
+ "key": "chainId",
974
+ "value": 34443
975
+ },
976
+ {
977
+ "key": "abiParams.value",
978
+ "value": {}
979
+ },
980
+ {
981
+ "key": "abiParams.to",
982
+ "value": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
983
+ },
984
+ {
985
+ "key": "contractAddress",
986
+ "value": "0xd988097fb8612cc24eeC14542bC03424c656005f"
987
+ }
988
+ ]
989
+ }
990
+ ],
894
991
  "permissions": {
895
992
  "approvedTargets": [
896
993
  "{{parameters.contractAddress}}"
@@ -924,13 +1021,19 @@ export const ACTIONS = {
924
1021
  "key": "chainId",
925
1022
  "type": "chainId",
926
1023
  "description": "Chain ID of the network",
927
- "mandatory": true
1024
+ "mandatory": true,
1025
+ "category": 0
928
1026
  },
929
1027
  {
930
1028
  "key": "abiParams.mintAmount",
931
1029
  "type": "uint256",
932
1030
  "description": "Amount of crypto to deposit",
933
- "mandatory": true
1031
+ "mandatory": true,
1032
+ "category": 0,
1033
+ "erc20FormattedAmount": {
1034
+ "contractAddress": "{{parameters.contractAddress}}",
1035
+ "chain": "{{parameters.chainId}}"
1036
+ }
934
1037
  },
935
1038
  {
936
1039
  "key": "contractAddress",
@@ -942,9 +1045,30 @@ export const ACTIONS = {
942
1045
  "0xd988097fb8612cc24eeC14542bC03424c656005f",
943
1046
  "0x4200000000000000000000000000000000000006",
944
1047
  "0x2416092f143378750bb29b79eD961ab195CcEea5"
945
- ]
1048
+ ],
1049
+ "category": 0
946
1050
  },
947
1051
  ],
1052
+ "examples": [
1053
+ {
1054
+ "name": "Deposit 100 USDT",
1055
+ "description": "Lend 100 USDT on Ionic on Mode",
1056
+ "parameters": [
1057
+ {
1058
+ "key": "chainId",
1059
+ "value": 34443
1060
+ },
1061
+ {
1062
+ "key": "abiParams.mintAmount",
1063
+ "value": {}
1064
+ },
1065
+ {
1066
+ "key": "contractAddress",
1067
+ "value": "0xf0F161fDA2712DB8b566946122a5af183995e2eD"
1068
+ }
1069
+ ]
1070
+ }
1071
+ ],
948
1072
  "requiredApprovals": [
949
1073
  {
950
1074
  "address": "{{parameters.contractAddress}}",
@@ -1002,34 +1126,71 @@ export const ACTIONS = {
1002
1126
  "key": "chainId",
1003
1127
  "type": "chainId",
1004
1128
  "description": "Chain ID of the network",
1005
- "mandatory": true
1129
+ "mandatory": true,
1130
+ "category": 0
1006
1131
  },
1007
1132
  {
1008
1133
  "key": "tokenIn",
1009
1134
  "type": "erc20",
1010
1135
  "description": "Token to sell",
1011
- "mandatory": true
1136
+ "mandatory": true,
1137
+ "category": 0
1012
1138
  },
1013
1139
  {
1014
1140
  "key": "tokenOut",
1015
1141
  "type": "erc20",
1016
1142
  "description": "Token to buy",
1017
- "mandatory": true
1143
+ "mandatory": true,
1144
+ "category": 0
1018
1145
  },
1019
1146
  {
1020
1147
  "key": "amount",
1021
1148
  "type": "uint256",
1022
1149
  "description": "Amount to sell",
1023
- "mandatory": true
1150
+ "mandatory": true,
1151
+ "category": 0,
1152
+ "erc20FormattedAmount": {
1153
+ "contractAddress": "{{parameters.contractAddress}}",
1154
+ "chain": "{{parameters.chainId}}"
1155
+ }
1024
1156
  },
1025
1157
  {
1026
1158
  "key": "slippage",
1027
1159
  "type": "percentage",
1028
1160
  "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.",
1029
1161
  "value": 0.3,
1030
- "mandatory": true
1162
+ "mandatory": true,
1163
+ "category": 1
1031
1164
  },
1032
1165
  ],
1166
+ "examples": [
1167
+ {
1168
+ "name": "Swap USDC to WETH",
1169
+ "description": "Swap 100 USDC to WETH on Mode Network using Odos",
1170
+ "parameters": [
1171
+ {
1172
+ "key": "chainId",
1173
+ "value": 34443
1174
+ },
1175
+ {
1176
+ "key": "tokenIn",
1177
+ "value": "0xd988097fb8612cc24eeC14542bC03424c656005f"
1178
+ },
1179
+ {
1180
+ "key": "tokenOut",
1181
+ "value": "0x4200000000000000000000000000000000000006"
1182
+ },
1183
+ {
1184
+ "key": "amount",
1185
+ "value": {}
1186
+ },
1187
+ {
1188
+ "key": "slippage",
1189
+ "value": 0.3
1190
+ }
1191
+ ]
1192
+ }
1193
+ ],
1033
1194
  "permissions": {
1034
1195
  "approvedTargets": [
1035
1196
  "0x7E15EB462cdc67Cf92Af1f7102465a8F8c784874",
@@ -46,6 +46,9 @@ export declare const TRIGGERS: {
46
46
  parameters: ({
47
47
  key: string;
48
48
  value: number;
49
+ } | {
50
+ key: string;
51
+ value: {};
49
52
  } | {
50
53
  key: string;
51
54
  value: string;
@@ -75,6 +78,7 @@ export declare const TRIGGERS: {
75
78
  transactionHash: string;
76
79
  };
77
80
  parameters: Parameter[];
81
+ examples: never[];
78
82
  blockId: number;
79
83
  image: string;
80
84
  };
@@ -93,6 +97,7 @@ export declare const TRIGGERS: {
93
97
  transactionHash: string;
94
98
  };
95
99
  parameters: Parameter[];
100
+ examples: never[];
96
101
  blockId: number;
97
102
  image: string;
98
103
  };
@@ -110,6 +115,7 @@ export declare const TRIGGERS: {
110
115
  transactionHash: string;
111
116
  };
112
117
  parameters: Parameter[];
118
+ examples: never[];
113
119
  blockId: number;
114
120
  image: string;
115
121
  };
@@ -124,6 +130,7 @@ export declare const TRIGGERS: {
124
130
  transactionHash: string;
125
131
  };
126
132
  parameters: Parameter[];
133
+ examples: never[];
127
134
  blockId: number;
128
135
  image: string;
129
136
  };
@@ -190,13 +197,7 @@ export declare const TRIGGERS: {
190
197
  value: number;
191
198
  } | {
192
199
  key: string;
193
- value: {
194
- contractAddress: string;
195
- symbol: string;
196
- name: string;
197
- decimals: number;
198
- image: string;
199
- };
200
+ value: string;
200
201
  })[];
201
202
  }[];
202
203
  blockId: number;
@@ -305,6 +306,7 @@ export declare const ACTIONS: {
305
306
  text: string;
306
307
  };
307
308
  };
309
+ examples: never[];
308
310
  blockId: number;
309
311
  image: string;
310
312
  };
@@ -326,6 +328,7 @@ export declare const ACTIONS: {
326
328
  content: string;
327
329
  };
328
330
  };
331
+ examples: never[];
329
332
  blockId: number;
330
333
  image: string;
331
334
  };
@@ -348,6 +351,7 @@ export declare const ACTIONS: {
348
351
  text: string;
349
352
  };
350
353
  };
354
+ examples: never[];
351
355
  blockId: number;
352
356
  image: string;
353
357
  };
@@ -367,6 +371,20 @@ export declare const ACTIONS: {
367
371
  transactionHash: string;
368
372
  };
369
373
  parameters: Parameter[];
374
+ examples: {
375
+ name: string;
376
+ description: string;
377
+ parameters: ({
378
+ key: string;
379
+ value: number;
380
+ } | {
381
+ key: string;
382
+ value: {};
383
+ } | {
384
+ key: string;
385
+ value: string;
386
+ })[];
387
+ }[];
370
388
  permissions: {
371
389
  approvedTargets: string[];
372
390
  label: string[];
@@ -388,6 +406,20 @@ export declare const ACTIONS: {
388
406
  type: number;
389
407
  method: string;
390
408
  parameters: Parameter[];
409
+ examples: {
410
+ name: string;
411
+ description: string;
412
+ parameters: ({
413
+ key: string;
414
+ value: number;
415
+ } | {
416
+ key: string;
417
+ value: {};
418
+ } | {
419
+ key: string;
420
+ value: string;
421
+ })[];
422
+ }[];
391
423
  requiredApprovals: {
392
424
  address: string;
393
425
  amount: string;
@@ -429,6 +461,20 @@ export declare const ACTIONS: {
429
461
  transactionHash: string;
430
462
  };
431
463
  parameters: Parameter[];
464
+ examples: {
465
+ name: string;
466
+ description: string;
467
+ parameters: ({
468
+ key: string;
469
+ value: number;
470
+ } | {
471
+ key: string;
472
+ value: string;
473
+ } | {
474
+ key: string;
475
+ value: {};
476
+ })[];
477
+ }[];
432
478
  permissions: {
433
479
  approvedTargets: string[];
434
480
  label: string[];
@@ -2,6 +2,7 @@ export interface Parameter {
2
2
  key: string;
3
3
  type: string;
4
4
  description: string;
5
+ category: number;
5
6
  value?: any;
6
7
  mandatory?: boolean;
7
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "otomato-sdk",
3
- "version": "1.5.20",
3
+ "version": "1.5.22",
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",