otomato-sdk 2.0.193 → 2.0.194

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.
@@ -508,6 +508,69 @@ export const TRIGGERS = {
508
508
  "blockId": 10,
509
509
  "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/trend-up.png"
510
510
  }
511
+ },
512
+ "NATIVE_TRANSFER": {
513
+ "description": "Monitors native asset balance fluctuations",
514
+ "chains": [
515
+ 8453,
516
+ 42161,
517
+ 1,
518
+ 10,
519
+ 2741,
520
+ 34443
521
+ ],
522
+ "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/Transfer.svg",
523
+ "ETH_TRANSFER": {
524
+ "name": "ETH transfer",
525
+ "description": "This block gets triggered when the target wallet transfers ETH",
526
+ "type": 6,
527
+ "prototype": "nativeBalance",
528
+ "output": {
529
+ "amount": "float",
530
+ "currentBalance": "float"
531
+ },
532
+ "parameters": [
533
+ {
534
+ "key": "chainId",
535
+ "type": "chainId",
536
+ "description": "Chain ID of the EVM blockchain",
537
+ "mandatory": true,
538
+ "category": 0
539
+ },
540
+ {
541
+ "key": "wallet",
542
+ "type": "address",
543
+ "description": "Wallet address to monitor",
544
+ "category": 0,
545
+ "mandatory": true
546
+ },
547
+ {
548
+ "key": "threshold",
549
+ "type": "float",
550
+ "description": "Threshold for the balance change",
551
+ "category": 0,
552
+ "mandatory": true
553
+ },
554
+ ],
555
+ "examples": [
556
+ {
557
+ "name": "ETH transfer",
558
+ "description": "Gets triggered when the target wallet transfers ETH on BASE",
559
+ "parameters": [
560
+ {
561
+ "key": "chainId",
562
+ "value": 8453
563
+ },
564
+ {
565
+ "key": "threshold",
566
+ "value": "0.0005"
567
+ }
568
+ ]
569
+ }
570
+ ],
571
+ "blockId": 47,
572
+ "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/Transfer.svg"
573
+ }
511
574
  }
512
575
  },
513
576
  "YIELD": {
@@ -1,4 +1,4 @@
1
- export const SDK_VERSION = '2.0.193';
1
+ export const SDK_VERSION = '2.0.194';
2
2
  export function compareVersions(v1, v2) {
3
3
  // Split the version strings into parts
4
4
  const v1Parts = v1.split('.').map(Number);
@@ -187,6 +187,35 @@ export declare const TRIGGERS: {
187
187
  image: string;
188
188
  };
189
189
  };
190
+ NATIVE_TRANSFER: {
191
+ description: string;
192
+ chains: number[];
193
+ image: string;
194
+ ETH_TRANSFER: {
195
+ name: string;
196
+ description: string;
197
+ type: number;
198
+ prototype: string;
199
+ output: {
200
+ amount: string;
201
+ currentBalance: string;
202
+ };
203
+ parameters: Parameter[];
204
+ examples: {
205
+ name: string;
206
+ description: string;
207
+ parameters: ({
208
+ key: string;
209
+ value: number;
210
+ } | {
211
+ key: string;
212
+ value: string;
213
+ })[];
214
+ }[];
215
+ blockId: number;
216
+ image: string;
217
+ };
218
+ };
190
219
  };
191
220
  YIELD: {
192
221
  ETHENA: {
@@ -1,2 +1,2 @@
1
- export declare const SDK_VERSION = "2.0.193";
1
+ export declare const SDK_VERSION = "2.0.194";
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.193",
3
+ "version": "2.0.194",
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",