otomato-sdk 2.0.145 → 2.0.146

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.
@@ -372,9 +372,10 @@ export const TRIGGERS = {
372
372
  "name": "On-Chain Price Movement Against Fiat Currency",
373
373
  "prototype": "priceMovementAgainstCurrency",
374
374
  "description": "This trigger activates when the on-chain price of an asset moves against a specified currency based on the given condition.",
375
- "type": 2,
375
+ "type": 3,
376
376
  "output": {
377
- "price": "float"
377
+ "price": "float",
378
+ "currency": "string"
378
379
  },
379
380
  "parameters": [
380
381
  {
@@ -396,7 +397,9 @@ export const TRIGGERS = {
396
397
  "type": "string",
397
398
  "description": "The currency in which the comparison price is denominated",
398
399
  "enum": [
399
- "USD"
400
+ "USD",
401
+ "ETH",
402
+ "BTC"
400
403
  ],
401
404
  "value": "USD",
402
405
  "mandatory": true,
@@ -1,4 +1,4 @@
1
- export const SDK_VERSION = '2.0.145';
1
+ export const SDK_VERSION = '2.0.146';
2
2
  export function compareVersions(v1, v2) {
3
3
  // Split the version strings into parts
4
4
  const v1Parts = v1.split('.').map(Number);
@@ -157,6 +157,7 @@ export declare const TRIGGERS: {
157
157
  type: number;
158
158
  output: {
159
159
  price: string;
160
+ currency: string;
160
161
  };
161
162
  parameters: Parameter[];
162
163
  examples: ({
@@ -1,2 +1,2 @@
1
- export declare const SDK_VERSION = "2.0.145";
1
+ export declare const SDK_VERSION = "2.0.146";
2
2
  export declare function compareVersions(v1: string, v2: string): number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "otomato-sdk",
3
- "version": "2.0.145",
3
+ "version": "2.0.146",
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",