otomato-sdk 2.0.228 → 2.0.229

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.
@@ -328,6 +328,68 @@ export const TRIGGERS = {
328
328
  ],
329
329
  "blockId": 5,
330
330
  "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/BalanceCheck.svg"
331
+ },
332
+ "BALANCE_MOVEMENT": {
333
+ "name": "Balance movement",
334
+ "description": "Detects incoming and outgoing movements from a wallet",
335
+ "prototype": "balanceMovement",
336
+ "type": 3,
337
+ "parameters": [
338
+ {
339
+ "key": "walletAddress",
340
+ "type": "address",
341
+ "description": "The wallet address to check for the token balance",
342
+ "mandatory": true,
343
+ "category": 0
344
+ },
345
+ {
346
+ "key": "threshold",
347
+ "type": "float",
348
+ "description": "The threshold for the balance movement in USD",
349
+ "category": 1
350
+ },
351
+ {
352
+ "key": "condition",
353
+ "type": "logic_operator",
354
+ "description": "The condition to check for the token balance",
355
+ "mandatory": true,
356
+ "hidden": true,
357
+ "category": 0
358
+ },
359
+ {
360
+ "key": "comparisonValue",
361
+ "type": "boolean",
362
+ "description": "The value to compare to",
363
+ "mandatory": true,
364
+ "hidden": true,
365
+ "category": 0
366
+ },
367
+ ],
368
+ "output": {
369
+ "balanceChanges": "string"
370
+ },
371
+ "examples": [
372
+ {
373
+ "name": "Vitalik wallet monitoring",
374
+ "description": "Gets triggered when a token movement is detected from Vitalik's wallet",
375
+ "parameters": [
376
+ {
377
+ "key": "walletAddress",
378
+ "value": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
379
+ },
380
+ {
381
+ "key": "condition",
382
+ "value": "eq"
383
+ },
384
+ {
385
+ "key": "comparisonValue",
386
+ "value": true
387
+ }
388
+ ]
389
+ }
390
+ ],
391
+ "blockId": 6,
392
+ "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/BalanceCheck.svg"
331
393
  }
332
394
  },
333
395
  "APPROVAL": {
@@ -1,4 +1,4 @@
1
- export const SDK_VERSION = '2.0.228';
1
+ export const SDK_VERSION = '2.0.229';
2
2
  export function compareVersions(v1, v2) {
3
3
  // Split the version strings into parts
4
4
  const v1Parts = v1.split('.').map(Number);
@@ -144,6 +144,29 @@ export declare const TRIGGERS: {
144
144
  blockId: number;
145
145
  image: string;
146
146
  };
147
+ BALANCE_MOVEMENT: {
148
+ name: string;
149
+ description: string;
150
+ prototype: string;
151
+ type: number;
152
+ parameters: Parameter[];
153
+ output: {
154
+ balanceChanges: string;
155
+ };
156
+ examples: {
157
+ name: string;
158
+ description: string;
159
+ parameters: ({
160
+ key: string;
161
+ value: string;
162
+ } | {
163
+ key: string;
164
+ value: boolean;
165
+ })[];
166
+ }[];
167
+ blockId: number;
168
+ image: string;
169
+ };
147
170
  };
148
171
  APPROVAL: {
149
172
  description: string;
@@ -1,2 +1,2 @@
1
- export declare const SDK_VERSION = "2.0.228";
1
+ export declare const SDK_VERSION = "2.0.229";
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.228",
3
+ "version": "2.0.229",
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",