otomato-sdk 1.5.69 → 1.5.71
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.
|
@@ -334,7 +334,6 @@ export const TRIGGERS = {
|
|
|
334
334
|
"name": "sUSDE yield",
|
|
335
335
|
"description": "Fetches Ethena's sUSDE yield",
|
|
336
336
|
"type": 3,
|
|
337
|
-
"url": "https://app.ethena.fi/api/yields/protocol-and-staking-yield",
|
|
338
337
|
"output": {
|
|
339
338
|
"yield": "float"
|
|
340
339
|
},
|
|
@@ -958,7 +957,6 @@ export const TRIGGERS = {
|
|
|
958
957
|
"name": "Fear and Greed Index",
|
|
959
958
|
"description": "Fetches the Fear and Greed Index from the specified API and processes the result.",
|
|
960
959
|
"type": 3,
|
|
961
|
-
"url": "https://api.alternative.me/fng/",
|
|
962
960
|
"output": {
|
|
963
961
|
"value": "integer"
|
|
964
962
|
},
|
|
@@ -1021,7 +1019,6 @@ export const TRIGGERS = {
|
|
|
1021
1019
|
"name": "Assets under management",
|
|
1022
1020
|
"description": "Fetches IBIT net assets (USD)",
|
|
1023
1021
|
"type": 3,
|
|
1024
|
-
"url": "https://www.alphavantage.co/query?function=ETF_PROFILE&symbol=IBIT&apikey=V343UMWZF0715R3A",
|
|
1025
1022
|
"output": {
|
|
1026
1023
|
"asset_under_management": "integer"
|
|
1027
1024
|
},
|
|
@@ -1093,6 +1090,82 @@ export const TRIGGERS = {
|
|
|
1093
1090
|
],
|
|
1094
1091
|
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/whalesmarket.png"
|
|
1095
1092
|
}
|
|
1093
|
+
},
|
|
1094
|
+
"TECHNICAL": {
|
|
1095
|
+
"GAS": {
|
|
1096
|
+
"description": "Monitors Ethereum gas prices",
|
|
1097
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/gas.svg",
|
|
1098
|
+
"GAS_API": {
|
|
1099
|
+
"name": "Ethereum Gas Price Monitor",
|
|
1100
|
+
"description": "Monitors Ethereum gas prices and triggers when the gas price meets the defined condition.",
|
|
1101
|
+
"type": 3,
|
|
1102
|
+
"output": {
|
|
1103
|
+
"gasPrice": "float"
|
|
1104
|
+
},
|
|
1105
|
+
"parameters": [
|
|
1106
|
+
{
|
|
1107
|
+
"key": "condition",
|
|
1108
|
+
"type": "logic_operator",
|
|
1109
|
+
"description": "The logical operator to compare the gas price, such as <, >, <=, >=, ==, etc.",
|
|
1110
|
+
"mandatory": true,
|
|
1111
|
+
"category": 0
|
|
1112
|
+
},
|
|
1113
|
+
{
|
|
1114
|
+
"key": "comparisonValue",
|
|
1115
|
+
"type": "float",
|
|
1116
|
+
"description": "The gas price value to compare against (in Gwei).",
|
|
1117
|
+
"mandatory": true,
|
|
1118
|
+
"category": 0
|
|
1119
|
+
},
|
|
1120
|
+
],
|
|
1121
|
+
"examples": [
|
|
1122
|
+
{
|
|
1123
|
+
"name": "Gas Price Below 6 Gwei",
|
|
1124
|
+
"description": "Triggers when the gas price is below 6 Gwei.",
|
|
1125
|
+
"parameters": [
|
|
1126
|
+
{
|
|
1127
|
+
"key": "condition",
|
|
1128
|
+
"value": "lte"
|
|
1129
|
+
},
|
|
1130
|
+
{
|
|
1131
|
+
"key": "comparisonValue",
|
|
1132
|
+
"value": "6"
|
|
1133
|
+
}
|
|
1134
|
+
]
|
|
1135
|
+
},
|
|
1136
|
+
{
|
|
1137
|
+
"name": "Gas Price Below 12 Gwei",
|
|
1138
|
+
"description": "Triggers when the gas price is below 12 Gwei.",
|
|
1139
|
+
"parameters": [
|
|
1140
|
+
{
|
|
1141
|
+
"key": "condition",
|
|
1142
|
+
"value": "lte"
|
|
1143
|
+
},
|
|
1144
|
+
{
|
|
1145
|
+
"key": "comparisonValue",
|
|
1146
|
+
"value": "12"
|
|
1147
|
+
}
|
|
1148
|
+
]
|
|
1149
|
+
},
|
|
1150
|
+
{
|
|
1151
|
+
"name": "Gas Price Above 40 Gwei",
|
|
1152
|
+
"description": "Triggers when the gas price exceeds 40 Gwei.",
|
|
1153
|
+
"parameters": [
|
|
1154
|
+
{
|
|
1155
|
+
"key": "condition",
|
|
1156
|
+
"value": "gte"
|
|
1157
|
+
},
|
|
1158
|
+
{
|
|
1159
|
+
"key": "comparisonValue",
|
|
1160
|
+
"value": "40"
|
|
1161
|
+
}
|
|
1162
|
+
]
|
|
1163
|
+
}
|
|
1164
|
+
],
|
|
1165
|
+
"blockId": 16,
|
|
1166
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/gas.svg"
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1096
1169
|
}
|
|
1097
1170
|
};
|
|
1098
1171
|
export const ACTIONS = {
|
|
@@ -1 +1,19 @@
|
|
|
1
|
-
export const SDK_VERSION = '1.5.
|
|
1
|
+
export const SDK_VERSION = '1.5.71';
|
|
2
|
+
export function compareVersions(v1, v2) {
|
|
3
|
+
// Split the version strings into parts
|
|
4
|
+
const v1Parts = v1.split('.').map(Number);
|
|
5
|
+
const v2Parts = v2.split('.').map(Number);
|
|
6
|
+
// Determine the maximum length to compare all parts
|
|
7
|
+
const len = Math.max(v1Parts.length, v2Parts.length);
|
|
8
|
+
// Compare each part
|
|
9
|
+
for (let i = 0; i < len; i++) {
|
|
10
|
+
const v1Part = v1Parts[i] || 0; // Default to 0 if undefined
|
|
11
|
+
const v2Part = v2Parts[i] || 0;
|
|
12
|
+
if (v1Part > v2Part)
|
|
13
|
+
return 1; // v1 is greater
|
|
14
|
+
if (v1Part < v2Part)
|
|
15
|
+
return -1; // v2 is greater
|
|
16
|
+
// If equal, continue to the next part
|
|
17
|
+
}
|
|
18
|
+
return 0; // Versions are equal
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -95,7 +95,6 @@ export declare const TRIGGERS: {
|
|
|
95
95
|
name: string;
|
|
96
96
|
description: string;
|
|
97
97
|
type: number;
|
|
98
|
-
url: string;
|
|
99
98
|
output: {
|
|
100
99
|
yield: string;
|
|
101
100
|
};
|
|
@@ -359,7 +358,6 @@ export declare const TRIGGERS: {
|
|
|
359
358
|
name: string;
|
|
360
359
|
description: string;
|
|
361
360
|
type: number;
|
|
362
|
-
url: string;
|
|
363
361
|
output: {
|
|
364
362
|
value: string;
|
|
365
363
|
};
|
|
@@ -388,7 +386,6 @@ export declare const TRIGGERS: {
|
|
|
388
386
|
name: string;
|
|
389
387
|
description: string;
|
|
390
388
|
type: number;
|
|
391
|
-
url: string;
|
|
392
389
|
output: {
|
|
393
390
|
asset_under_management: string;
|
|
394
391
|
};
|
|
@@ -423,6 +420,31 @@ export declare const TRIGGERS: {
|
|
|
423
420
|
image: string;
|
|
424
421
|
};
|
|
425
422
|
};
|
|
423
|
+
TECHNICAL: {
|
|
424
|
+
GAS: {
|
|
425
|
+
description: string;
|
|
426
|
+
image: string;
|
|
427
|
+
GAS_API: {
|
|
428
|
+
name: string;
|
|
429
|
+
description: string;
|
|
430
|
+
type: number;
|
|
431
|
+
output: {
|
|
432
|
+
gasPrice: string;
|
|
433
|
+
};
|
|
434
|
+
parameters: Parameter[];
|
|
435
|
+
examples: {
|
|
436
|
+
name: string;
|
|
437
|
+
description: string;
|
|
438
|
+
parameters: {
|
|
439
|
+
key: string;
|
|
440
|
+
value: string;
|
|
441
|
+
}[];
|
|
442
|
+
}[];
|
|
443
|
+
blockId: number;
|
|
444
|
+
image: string;
|
|
445
|
+
};
|
|
446
|
+
};
|
|
447
|
+
};
|
|
426
448
|
};
|
|
427
449
|
export declare const ACTIONS: {
|
|
428
450
|
CORE: {
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.5.
|
|
1
|
+
export declare const SDK_VERSION = "1.5.71";
|
|
2
|
+
export declare function compareVersions(v1: string, v2: string): number;
|