otomato-sdk 2.0.69 → 2.0.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.
@@ -411,6 +411,31 @@ export const TOKENS = {
411
411
  decimals: 18,
412
412
  image: "https://assets.coingecko.com/coins/images/26133/small/WELL.png?1696525221"
413
413
  }
414
+ ],
415
+ 2741: [
416
+ {
417
+ contractAddress: "0x3439153eb7af838ad19d56e1571fbd09333c2809",
418
+ name: "WETH",
419
+ symbol: "WETH",
420
+ decimals: 18,
421
+ image: "https://static.debank.com/image/eth_token/logo_url/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2/61844453e63cf81301f845d7864236f6.png"
422
+ },
423
+ {
424
+ contractAddress: "0x84a71ccd554cc1b02749b35d22f684cc8ec987e1",
425
+ name: "USDC",
426
+ symbol: "USDC.e",
427
+ decimals: 6,
428
+ image: "https://static.debank.com/image/coin/logo_url/usdc/e87790bfe0b3f2ea855dc29069b38818.png"
429
+ },
430
+ {
431
+ contractAddress: "0x0000000000000000000000000000000000000000",
432
+ name: "ETH",
433
+ symbol: "ETH",
434
+ decimals: 18,
435
+ nativeCurrency: true,
436
+ equivalentERC20: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
437
+ image: "https://static.debank.com/image/chain/logo_url/eth/42ba589cd077e7bdd97db6480b0ff61d.png"
438
+ },
414
439
  ]
415
440
  };
416
441
  export const NFTS = {
@@ -1,4 +1,4 @@
1
- export const SDK_VERSION = '2.0.69';
1
+ export const SDK_VERSION = '2.0.71';
2
2
  export function compareVersions(v1, v2) {
3
3
  // Split the version strings into parts
4
4
  const v1Parts = v1.split('.').map(Number);
@@ -29,6 +29,9 @@ export class Workflow {
29
29
  this.nodes.push(...nodes);
30
30
  positionWorkflowNodes(this);
31
31
  }
32
+ getNode(ref) {
33
+ return this.nodes.find(node => node.getRef() === ref) || null;
34
+ }
32
35
  deleteNode(nodeToDelete) {
33
36
  // Remove the node from the nodes array
34
37
  const nodeIndex = this.nodes.findIndex(node => node === nodeToDelete);
@@ -0,0 +1,7 @@
1
+ /*************************************
2
+ * File: stop-lending-aggregator.ts
3
+ *************************************/
4
+ /*************************************
5
+ * 3. Build the 'Stop Lending Aggregator' Workflow
6
+ *************************************/
7
+ export declare function stopLendingAggregator(): Promise<void>;
@@ -1,2 +1,2 @@
1
- export declare const SDK_VERSION = "2.0.69";
1
+ export declare const SDK_VERSION = "2.0.71";
2
2
  export declare function compareVersions(v1: string, v2: string): number;
@@ -17,6 +17,7 @@ export declare class Workflow {
17
17
  setName(name: string): void;
18
18
  addNode(node: Node): void;
19
19
  addNodes(nodes: Node[]): void;
20
+ getNode(ref: string): Node | null;
20
21
  deleteNode(nodeToDelete: Node): void;
21
22
  /**
22
23
  * Inserts a new node into the workflow, potentially splitting an existing edge.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "otomato-sdk",
3
- "version": "2.0.69",
3
+ "version": "2.0.71",
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",
@@ -1,7 +0,0 @@
1
- /**
2
- * Example workflow:
3
- * Trigger -> Delay -> Condition
4
- * ├─(true)─> Split(3)
5
- * └─(false)-> Delay
6
- */
7
- export declare function conditionSplitDemo(): Promise<void>;