otomato-sdk 2.0.143 → 2.0.145

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.
@@ -4437,6 +4437,82 @@ export const TRIGGERS = {
4437
4437
  "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/neby.webp"
4438
4438
  }
4439
4439
  },
4440
+ "STANDARD": {
4441
+ "description": "Monitors events on a standard DEX",
4442
+ "chains": [
4443
+ 50312
4444
+ ],
4445
+ "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/standard.webp",
4446
+ "SWAP": {
4447
+ "name": "Standard DEX Swap",
4448
+ "description": "Monitor swaps on Standard DEX",
4449
+ "type": 0,
4450
+ "output": {
4451
+ "orderbook": "address",
4452
+ "orderId": "integer",
4453
+ "sender": "address",
4454
+ "owner": "address",
4455
+ "price": "uint256",
4456
+ "amount": "float",
4457
+ "transactionHash": "string",
4458
+ "tokenIn": "address",
4459
+ "tokenOut": "address"
4460
+ },
4461
+ "parameters": [
4462
+ {
4463
+ "key": "chainId",
4464
+ "type": "chainId",
4465
+ "description": "Chain ID of the EVM blockchain",
4466
+ "mandatory": true,
4467
+ "category": 0
4468
+ },
4469
+ {
4470
+ "key": "abiParams.orderbook",
4471
+ "type": "address",
4472
+ "description": "Orderbook address",
4473
+ "category": 1
4474
+ },
4475
+ {
4476
+ "key": "abiParams.id",
4477
+ "type": "uint256",
4478
+ "description": "Order ID",
4479
+ "category": 1
4480
+ },
4481
+ {
4482
+ "key": "abiParams.isBid",
4483
+ "type": "boolean",
4484
+ "description": "Whether the order is a bid",
4485
+ "category": 1
4486
+ },
4487
+ {
4488
+ "key": "abiParams.price",
4489
+ "type": "uint256",
4490
+ "description": "Order price",
4491
+ "category": 1
4492
+ },
4493
+ {
4494
+ "key": "abiParams.amount",
4495
+ "type": "uint256",
4496
+ "description": "Order amount",
4497
+ "category": 1
4498
+ },
4499
+ ],
4500
+ "examples": [
4501
+ {
4502
+ "name": "Any standard DEX swap",
4503
+ "description": "Gets triggered when someone does a swap on a standard DEX",
4504
+ "parameters": [
4505
+ {
4506
+ "key": "chainId",
4507
+ "value": 50312
4508
+ }
4509
+ ]
4510
+ }
4511
+ ],
4512
+ "blockId": 67,
4513
+ "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/standard.webp"
4514
+ }
4515
+ },
4440
4516
  "SOMNEX": {
4441
4517
  "description": "Monitors events on Somnex",
4442
4518
  "chains": [
@@ -4445,7 +4521,7 @@ export const TRIGGERS = {
4445
4521
  "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/somnex.webp",
4446
4522
  "SWAP": {
4447
4523
  "name": "Somnex Swap",
4448
- "description": "Swap on Somnex",
4524
+ "description": "Monitor swaps on Somnex",
4449
4525
  "type": 0,
4450
4526
  "output": {
4451
4527
  "sender": "address",
@@ -1,4 +1,4 @@
1
- export const SDK_VERSION = '2.0.143';
1
+ export const SDK_VERSION = '2.0.145';
2
2
  export function compareVersions(v1, v2) {
3
3
  // Split the version strings into parts
4
4
  const v1Parts = v1.split('.').map(Number);
@@ -1690,6 +1690,38 @@ export declare const TRIGGERS: {
1690
1690
  image: string;
1691
1691
  };
1692
1692
  };
1693
+ STANDARD: {
1694
+ description: string;
1695
+ chains: number[];
1696
+ image: string;
1697
+ SWAP: {
1698
+ name: string;
1699
+ description: string;
1700
+ type: number;
1701
+ output: {
1702
+ orderbook: string;
1703
+ orderId: string;
1704
+ sender: string;
1705
+ owner: string;
1706
+ price: string;
1707
+ amount: string;
1708
+ transactionHash: string;
1709
+ tokenIn: string;
1710
+ tokenOut: string;
1711
+ };
1712
+ parameters: Parameter[];
1713
+ examples: {
1714
+ name: string;
1715
+ description: string;
1716
+ parameters: {
1717
+ key: string;
1718
+ value: number;
1719
+ }[];
1720
+ }[];
1721
+ blockId: number;
1722
+ image: string;
1723
+ };
1724
+ };
1693
1725
  SOMNEX: {
1694
1726
  description: string;
1695
1727
  chains: number[];
@@ -1,2 +1,2 @@
1
- export declare const SDK_VERSION = "2.0.143";
1
+ export declare const SDK_VERSION = "2.0.145";
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.143",
3
+ "version": "2.0.145",
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",