otomato-sdk 2.0.142 → 2.0.144
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,159 @@ 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
|
+
},
|
|
4516
|
+
"SOMNEX": {
|
|
4517
|
+
"description": "Monitors events on Somnex",
|
|
4518
|
+
"chains": [
|
|
4519
|
+
50312
|
|
4520
|
+
],
|
|
4521
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/somnex.webp",
|
|
4522
|
+
"SWAP": {
|
|
4523
|
+
"name": "Somnex Swap",
|
|
4524
|
+
"description": "Swap on Somnex",
|
|
4525
|
+
"type": 0,
|
|
4526
|
+
"output": {
|
|
4527
|
+
"sender": "address",
|
|
4528
|
+
"inputAmount": "float",
|
|
4529
|
+
"amountOut": "float",
|
|
4530
|
+
"exchangeRate": "float",
|
|
4531
|
+
"transactionHash": "string",
|
|
4532
|
+
"fee": "integer",
|
|
4533
|
+
"slippageFeeCollectorAmount": "integer",
|
|
4534
|
+
"slippageUserAmount": "integer",
|
|
4535
|
+
"tokenIn": "address",
|
|
4536
|
+
"tokenOut": "address"
|
|
4537
|
+
},
|
|
4538
|
+
"parameters": [
|
|
4539
|
+
{
|
|
4540
|
+
"key": "chainId",
|
|
4541
|
+
"type": "chainId",
|
|
4542
|
+
"description": "Chain ID of the EVM blockchain",
|
|
4543
|
+
"mandatory": true,
|
|
4544
|
+
"category": 0
|
|
4545
|
+
},
|
|
4546
|
+
{
|
|
4547
|
+
"key": "abiParams.sender",
|
|
4548
|
+
"type": "address",
|
|
4549
|
+
"description": "Sender",
|
|
4550
|
+
"category": 1
|
|
4551
|
+
},
|
|
4552
|
+
{
|
|
4553
|
+
"key": "abiParams.tokenIn",
|
|
4554
|
+
"type": "address",
|
|
4555
|
+
"description": "Token in",
|
|
4556
|
+
"category": 1
|
|
4557
|
+
},
|
|
4558
|
+
{
|
|
4559
|
+
"key": "abiParams.tokenOut",
|
|
4560
|
+
"type": "address",
|
|
4561
|
+
"description": "Token out",
|
|
4562
|
+
"category": 1
|
|
4563
|
+
},
|
|
4564
|
+
{
|
|
4565
|
+
"key": "abiParams.amountIn",
|
|
4566
|
+
"type": "int256",
|
|
4567
|
+
"description": "Amount in",
|
|
4568
|
+
"category": 1
|
|
4569
|
+
},
|
|
4570
|
+
{
|
|
4571
|
+
"key": "abiParams.amountOut",
|
|
4572
|
+
"type": "int256",
|
|
4573
|
+
"description": "Amount out",
|
|
4574
|
+
"category": 1
|
|
4575
|
+
},
|
|
4576
|
+
],
|
|
4577
|
+
"examples": [
|
|
4578
|
+
{
|
|
4579
|
+
"name": "Any Somnex swap",
|
|
4580
|
+
"description": "Gets triggered when someone does a swap on Somnex",
|
|
4581
|
+
"parameters": [
|
|
4582
|
+
{
|
|
4583
|
+
"key": "chainId",
|
|
4584
|
+
"value": 50312
|
|
4585
|
+
}
|
|
4586
|
+
]
|
|
4587
|
+
}
|
|
4588
|
+
],
|
|
4589
|
+
"blockId": 65,
|
|
4590
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/somnex.webp"
|
|
4591
|
+
}
|
|
4592
|
+
},
|
|
4440
4593
|
"QUICKSWAP": {
|
|
4441
4594
|
"description": "Monitors events on a Quickswap pool",
|
|
4442
4595
|
"chains": [
|
|
@@ -1690,6 +1690,71 @@ 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
|
+
};
|
|
1725
|
+
SOMNEX: {
|
|
1726
|
+
description: string;
|
|
1727
|
+
chains: number[];
|
|
1728
|
+
image: string;
|
|
1729
|
+
SWAP: {
|
|
1730
|
+
name: string;
|
|
1731
|
+
description: string;
|
|
1732
|
+
type: number;
|
|
1733
|
+
output: {
|
|
1734
|
+
sender: string;
|
|
1735
|
+
inputAmount: string;
|
|
1736
|
+
amountOut: string;
|
|
1737
|
+
exchangeRate: string;
|
|
1738
|
+
transactionHash: string;
|
|
1739
|
+
fee: string;
|
|
1740
|
+
slippageFeeCollectorAmount: string;
|
|
1741
|
+
slippageUserAmount: string;
|
|
1742
|
+
tokenIn: string;
|
|
1743
|
+
tokenOut: string;
|
|
1744
|
+
};
|
|
1745
|
+
parameters: Parameter[];
|
|
1746
|
+
examples: {
|
|
1747
|
+
name: string;
|
|
1748
|
+
description: string;
|
|
1749
|
+
parameters: {
|
|
1750
|
+
key: string;
|
|
1751
|
+
value: number;
|
|
1752
|
+
}[];
|
|
1753
|
+
}[];
|
|
1754
|
+
blockId: number;
|
|
1755
|
+
image: string;
|
|
1756
|
+
};
|
|
1757
|
+
};
|
|
1693
1758
|
QUICKSWAP: {
|
|
1694
1759
|
description: string;
|
|
1695
1760
|
chains: number[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.0.
|
|
1
|
+
export declare const SDK_VERSION = "2.0.144";
|
|
2
2
|
export declare function compareVersions(v1: string, v2: string): number;
|