otomato-sdk 2.0.343 → 2.0.344

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.
@@ -6443,6 +6443,78 @@ export const TRIGGERS = {
6443
6443
  "blockId": 68,
6444
6444
  "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/quickswap.webp"
6445
6445
  }
6446
+ },
6447
+ "HYPERSWAP": {
6448
+ "description": "Monitors events on HyperSwap pools",
6449
+ "chains": [
6450
+ 999
6451
+ ],
6452
+ "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/hyperswap.webp",
6453
+ "IS_IN_RANGE": {
6454
+ "name": "Check if a given HyperSwap Position is in range or not",
6455
+ "dynamicName": "async (env, { otomatoSDK }) => {\n const { getDynamicNameWrapperHTML, getChainHTML } = otomatoSDK;\n return getDynamicNameWrapperHTML(\n 'If',\n '#' + env.parameters['abiParams.tokenId'],\n `is in range on ${getChainHTML(env.parameters.chainId)}`\n );\n }",
6456
+ "description": "Triggers when a given HyperSwap position is in range or not",
6457
+ "prototype": "hyperswapIsInRange",
6458
+ "type": 1,
6459
+ "method": "function positions(uint256 tokenId) public view returns (uint96 nonce, address operator, address token0, address token1, uint24 fee, int24 tickLower, int24 tickUpper, uint128 liquidity, uint256 feeGrowthInside0LastX128, uint256 feeGrowthInside1LastX128, uint128 tokensOwed0, uint128 tokensOwed1)",
6460
+ "parameters": [
6461
+ {
6462
+ "key": "chainId",
6463
+ "type": "chainId",
6464
+ "description": "Chain ID where the position exists",
6465
+ "category": 0,
6466
+ "mandatory": true
6467
+ },
6468
+ {
6469
+ "key": "abiParams.tokenId",
6470
+ "type": "uint256",
6471
+ "description": "Token ID of the HyperSwap position",
6472
+ "category": 0,
6473
+ "mandatory": true
6474
+ },
6475
+ {
6476
+ "key": "condition",
6477
+ "type": "logic_operator",
6478
+ "description": "Logic operator used for the comparison: <, >, <=, >=, ==, ...",
6479
+ "category": 0
6480
+ },
6481
+ {
6482
+ "key": "comparisonValue",
6483
+ "type": "boolean",
6484
+ "description": "The value to compare to",
6485
+ "category": 0
6486
+ },
6487
+ ],
6488
+ "examples": [
6489
+ {
6490
+ "name": "Check position range",
6491
+ "description": "Check if HyperSwap position #146508 is currently in range",
6492
+ "parameters": [
6493
+ {
6494
+ "key": "chainId",
6495
+ "value": 999
6496
+ },
6497
+ {
6498
+ "key": "abiParams.tokenId",
6499
+ "value": "146508"
6500
+ },
6501
+ {
6502
+ "key": "condition",
6503
+ "value": "eq"
6504
+ },
6505
+ {
6506
+ "key": "comparisonValue",
6507
+ "value": true
6508
+ }
6509
+ ]
6510
+ }
6511
+ ],
6512
+ "output": {
6513
+ "isInRange": "string"
6514
+ },
6515
+ "blockId": 80,
6516
+ "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/hyperswap.webp"
6517
+ }
6446
6518
  }
6447
6519
  },
6448
6520
  "SOCIALS": {
@@ -1,4 +1,4 @@
1
- export const SDK_VERSION = '2.0.343';
1
+ export const SDK_VERSION = '2.0.344';
2
2
  export function compareVersions(v1, v2) {
3
3
  // Split the version strings into parts
4
4
  const v1Parts = v1.split('.').map(Number);
@@ -2398,6 +2398,39 @@ export declare const TRIGGERS: {
2398
2398
  image: string;
2399
2399
  };
2400
2400
  };
2401
+ HYPERSWAP: {
2402
+ description: string;
2403
+ chains: number[];
2404
+ image: string;
2405
+ IS_IN_RANGE: {
2406
+ name: string;
2407
+ dynamicName: string;
2408
+ description: string;
2409
+ prototype: string;
2410
+ type: number;
2411
+ method: string;
2412
+ parameters: Parameter[];
2413
+ examples: {
2414
+ name: string;
2415
+ description: string;
2416
+ parameters: ({
2417
+ key: string;
2418
+ value: number;
2419
+ } | {
2420
+ key: string;
2421
+ value: string;
2422
+ } | {
2423
+ key: string;
2424
+ value: boolean;
2425
+ })[];
2426
+ }[];
2427
+ output: {
2428
+ isInRange: string;
2429
+ };
2430
+ blockId: number;
2431
+ image: string;
2432
+ };
2433
+ };
2401
2434
  };
2402
2435
  SOCIALS: {
2403
2436
  FEAR_AND_GREED: {
@@ -1,2 +1,2 @@
1
- export declare const SDK_VERSION = "2.0.343";
1
+ export declare const SDK_VERSION = "2.0.344";
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.343",
3
+ "version": "2.0.344",
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",