otomato-sdk 1.5.27 → 1.5.28
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.
|
@@ -79,21 +79,21 @@ export const WORKFLOW_TEMPLATES = [
|
|
|
79
79
|
'name': 'Buy ETH when the market sentiment is extremely fearful',
|
|
80
80
|
'description': 'Buy ETH when the Bitcoin Fear and Greed Index is below 30',
|
|
81
81
|
'tags': [WORKFLOW_TEMPLATES_TAGS.TRADING, WORKFLOW_TEMPLATES_TAGS.SOCIALS],
|
|
82
|
-
'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/
|
|
82
|
+
'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/fear_and_greed.jpg',
|
|
83
83
|
createWorkflow: createETHFearAndGreedBuy
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
'name': 'Buy sUSDE when the yield is above 20%',
|
|
87
87
|
'description': 'Buy sUSDE when the yield is above 20%',
|
|
88
88
|
'tags': [WORKFLOW_TEMPLATES_TAGS.TRADING, WORKFLOW_TEMPLATES_TAGS.ON_CHAIN_MONITORING],
|
|
89
|
-
'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/
|
|
89
|
+
'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/buySusde.jpg',
|
|
90
90
|
createWorkflow: createSUsdeYieldBuy
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
'name': 'Short ENA when sUSDE yield is negative',
|
|
94
94
|
'description': 'Short ENA when sUSDE yield is negative',
|
|
95
95
|
'tags': [WORKFLOW_TEMPLATES_TAGS.TRADING, WORKFLOW_TEMPLATES_TAGS.ON_CHAIN_MONITORING],
|
|
96
|
-
'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/
|
|
96
|
+
'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/shortEna.jpg',
|
|
97
97
|
createWorkflow: createSusdeYieldShortEna
|
|
98
98
|
},
|
|
99
99
|
];
|
package/dist/src/models/Node.js
CHANGED
|
@@ -113,7 +113,15 @@ export class Node {
|
|
|
113
113
|
return `{{nodeMap.${this.getRef()}.output.${outputKey}}}`;
|
|
114
114
|
}
|
|
115
115
|
getParameterVariableName(parameterKey) {
|
|
116
|
-
|
|
116
|
+
const parameters = this.getParameters();
|
|
117
|
+
if (parameters.abi && parameters.abi.parameters && parameters.abi.parameters.hasOwnProperty(parameterKey)) {
|
|
118
|
+
// If the key is inside abi.parameters, format accordingly
|
|
119
|
+
return `{{nodeMap.${this.getRef()}.parameters.abi.parameters.${parameterKey}}}`;
|
|
120
|
+
}
|
|
121
|
+
else {
|
|
122
|
+
// If the key is not inside abi.parameters, use the default format
|
|
123
|
+
return `{{nodeMap.${this.getRef()}.parameters.${parameterKey}}}`;
|
|
124
|
+
}
|
|
117
125
|
}
|
|
118
126
|
toJSON() {
|
|
119
127
|
const serializeBigInt = (key, value) => {
|