otomato-sdk 2.0.644 → 2.0.645

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.
@@ -17,4 +17,5 @@ export const CHAINS = {
17
17
  MANTLE: 5000,
18
18
  INK: 57073,
19
19
  PLASMA: 9745,
20
+ MONAD: 143,
20
21
  };
@@ -2112,6 +2112,52 @@ export const TOKENS = {
2112
2112
  decimals: 18,
2113
2113
  image: null,
2114
2114
  },
2115
+ ],
2116
+ 143: [
2117
+ {
2118
+ contractAddress: "0x0000000000000000000000000000000000000000",
2119
+ name: "Monad",
2120
+ symbol: "MON",
2121
+ decimals: 18,
2122
+ nativeCurrency: true,
2123
+ equivalentERC20: "0x3bd359c1119da7da1d913d1c4d2b7c461115433a",
2124
+ image: null,
2125
+ },
2126
+ {
2127
+ contractAddress: "0x3bd359c1119da7da1d913d1c4d2b7c461115433a",
2128
+ name: "Wrapped Monad",
2129
+ symbol: "WMON",
2130
+ decimals: 18,
2131
+ image: null,
2132
+ },
2133
+ {
2134
+ contractAddress: "0x754704bc059f8c67012fed69bc8a327a5aafb603",
2135
+ name: "USDC",
2136
+ symbol: "USDC",
2137
+ decimals: 6,
2138
+ image: null,
2139
+ },
2140
+ {
2141
+ contractAddress: "0xe7cd86e13ac4309349f30b3435a9d337750fc82d",
2142
+ name: "USDT0",
2143
+ symbol: "USDT0",
2144
+ decimals: 6,
2145
+ image: null,
2146
+ },
2147
+ {
2148
+ contractAddress: "0xee8c0e9f1bffb4eb878d8f15f368a02a35481242",
2149
+ name: "Wrapped Ether",
2150
+ symbol: "WETH",
2151
+ decimals: 18,
2152
+ image: null,
2153
+ },
2154
+ {
2155
+ contractAddress: "0xfc421ad3c883bf9e7c4f42de845c4e4405799e73",
2156
+ name: "GHO",
2157
+ symbol: "GHO",
2158
+ decimals: 18,
2159
+ image: null,
2160
+ },
2115
2161
  ]
2116
2162
  };
2117
2163
  export const NFTS = {
@@ -1,4 +1,4 @@
1
- export const SDK_VERSION = '2.0.644';
1
+ export const SDK_VERSION = '2.0.645';
2
2
  export function compareVersions(v1, v2) {
3
3
  // Split the version strings into parts
4
4
  const v1Parts = v1.split('.').map(Number);
@@ -54,6 +54,9 @@ class RPCServices {
54
54
  if (env.INK_HTTPS_PROVIDER) {
55
55
  this.rpcUrls[CHAINS.INK] = env.INK_HTTPS_PROVIDER;
56
56
  }
57
+ if (env.MONAD_HTTPS_PROVIDER) {
58
+ this.rpcUrls[CHAINS.MONAD] = env.MONAD_HTTPS_PROVIDER;
59
+ }
57
60
  }
58
61
  // Function to get the RPC URL for a specific chainId
59
62
  getRPC(chainId) {
@@ -1586,7 +1586,7 @@ export declare const TRIGGERS: {
1586
1586
  };
1587
1587
  PENDLE: {
1588
1588
  description: string;
1589
- chains: number[];
1589
+ chains: (number | null)[];
1590
1590
  image: string;
1591
1591
  PT_IMPLIED_YIELD: {
1592
1592
  name: string;
@@ -1798,6 +1798,7 @@ export declare const TRIGGERS: {
1798
1798
  previousCap: string;
1799
1799
  newCap: string;
1800
1800
  direction: string;
1801
+ changeAmount: string;
1801
1802
  timestamp: string;
1802
1803
  };
1803
1804
  examples: {
@@ -1946,6 +1947,9 @@ export declare const TRIGGERS: {
1946
1947
  }[];
1947
1948
  output: {
1948
1949
  lendingRate: string;
1950
+ metricValue: string;
1951
+ referenceValue: string;
1952
+ severity: string;
1949
1953
  };
1950
1954
  blockId: number;
1951
1955
  image: string;
@@ -1972,6 +1976,9 @@ export declare const TRIGGERS: {
1972
1976
  }[];
1973
1977
  output: {
1974
1978
  borrowingRate: string;
1979
+ metricValue: string;
1980
+ referenceValue: string;
1981
+ severity: string;
1975
1982
  };
1976
1983
  blockId: number;
1977
1984
  image: string;
@@ -2011,7 +2018,7 @@ export declare const TRIGGERS: {
2011
2018
  };
2012
2019
  AAVE: {
2013
2020
  description: string;
2014
- chains: number[];
2021
+ chains: (number | null)[];
2015
2022
  image: string;
2016
2023
  LENDING_RATE: {
2017
2024
  name: string;
@@ -2023,6 +2030,9 @@ export declare const TRIGGERS: {
2023
2030
  parameters: Parameter[];
2024
2031
  output: {
2025
2032
  lendingRate: string;
2033
+ metricValue: string;
2034
+ referenceValue: string;
2035
+ severity: string;
2026
2036
  };
2027
2037
  examples: ({
2028
2038
  name: string;
@@ -2060,6 +2070,9 @@ export declare const TRIGGERS: {
2060
2070
  parameters: Parameter[];
2061
2071
  output: {
2062
2072
  borrowingRate: string;
2073
+ metricValue: string;
2074
+ referenceValue: string;
2075
+ severity: string;
2063
2076
  };
2064
2077
  examples: ({
2065
2078
  name: string;
@@ -2289,6 +2302,9 @@ export declare const TRIGGERS: {
2289
2302
  parameters: Parameter[];
2290
2303
  output: {
2291
2304
  lendingRate: string;
2305
+ metricValue: string;
2306
+ referenceValue: string;
2307
+ severity: string;
2292
2308
  };
2293
2309
  examples: {
2294
2310
  name: string;
@@ -2315,6 +2331,9 @@ export declare const TRIGGERS: {
2315
2331
  parameters: Parameter[];
2316
2332
  output: {
2317
2333
  borrowingRate: string;
2334
+ metricValue: string;
2335
+ referenceValue: string;
2336
+ severity: string;
2318
2337
  };
2319
2338
  examples: {
2320
2339
  name: string;
@@ -2435,6 +2454,9 @@ export declare const TRIGGERS: {
2435
2454
  }[];
2436
2455
  output: {
2437
2456
  lendingRate: string;
2457
+ metricValue: string;
2458
+ referenceValue: string;
2459
+ severity: string;
2438
2460
  };
2439
2461
  blockId: number;
2440
2462
  image: string;
@@ -2472,6 +2494,9 @@ export declare const TRIGGERS: {
2472
2494
  })[];
2473
2495
  output: {
2474
2496
  borrowingRate: string;
2497
+ metricValue: string;
2498
+ referenceValue: string;
2499
+ severity: string;
2475
2500
  };
2476
2501
  blockId: number;
2477
2502
  image: string;
@@ -2593,6 +2618,9 @@ export declare const TRIGGERS: {
2593
2618
  parameters: Parameter[];
2594
2619
  output: {
2595
2620
  lendingRate: string;
2621
+ metricValue: string;
2622
+ referenceValue: string;
2623
+ severity: string;
2596
2624
  };
2597
2625
  examples: {
2598
2626
  name: string;
@@ -2619,6 +2647,9 @@ export declare const TRIGGERS: {
2619
2647
  parameters: Parameter[];
2620
2648
  output: {
2621
2649
  borrowingRate: string;
2650
+ metricValue: string;
2651
+ referenceValue: string;
2652
+ severity: string;
2622
2653
  };
2623
2654
  examples: {
2624
2655
  name: string;
@@ -2649,6 +2680,9 @@ export declare const TRIGGERS: {
2649
2680
  method: string;
2650
2681
  output: {
2651
2682
  lendingRate: string;
2683
+ metricValue: string;
2684
+ referenceValue: string;
2685
+ severity: string;
2652
2686
  };
2653
2687
  parameters: Parameter[];
2654
2688
  examples: {
@@ -2680,7 +2714,9 @@ export declare const TRIGGERS: {
2680
2714
  parameters: Parameter[];
2681
2715
  output: {
2682
2716
  lendingRate: string;
2683
- comparisonValue: string;
2717
+ metricValue: string;
2718
+ referenceValue: string;
2719
+ severity: string;
2684
2720
  };
2685
2721
  examples: {
2686
2722
  name: string;
@@ -2706,7 +2742,9 @@ export declare const TRIGGERS: {
2706
2742
  parameters: Parameter[];
2707
2743
  output: {
2708
2744
  borrowingRate: string;
2709
- comparisonValue: string;
2745
+ metricValue: string;
2746
+ referenceValue: string;
2747
+ severity: string;
2710
2748
  };
2711
2749
  examples: {
2712
2750
  name: string;
@@ -2761,7 +2799,9 @@ export declare const TRIGGERS: {
2761
2799
  parameters: Parameter[];
2762
2800
  output: {
2763
2801
  supplyRate: string;
2764
- comparisonValue: string;
2802
+ metricValue: string;
2803
+ referenceValue: string;
2804
+ severity: string;
2765
2805
  };
2766
2806
  examples: {
2767
2807
  name: string;
@@ -2781,7 +2821,7 @@ export declare const TRIGGERS: {
2781
2821
  };
2782
2822
  MORPHO: {
2783
2823
  description: string;
2784
- chains: number[];
2824
+ chains: (number | null)[];
2785
2825
  image: string;
2786
2826
  LENDING_RATE: {
2787
2827
  name: string;
@@ -2804,6 +2844,9 @@ export declare const TRIGGERS: {
2804
2844
  }[];
2805
2845
  output: {
2806
2846
  lendingRate: string;
2847
+ metricValue: string;
2848
+ referenceValue: string;
2849
+ severity: string;
2807
2850
  };
2808
2851
  blockId: number;
2809
2852
  image: string;
@@ -2829,6 +2872,9 @@ export declare const TRIGGERS: {
2829
2872
  }[];
2830
2873
  output: {
2831
2874
  borrowingRate: string;
2875
+ metricValue: string;
2876
+ referenceValue: string;
2877
+ severity: string;
2832
2878
  };
2833
2879
  blockId: number;
2834
2880
  image: string;
@@ -3005,6 +3051,9 @@ export declare const TRIGGERS: {
3005
3051
  parameters: Parameter[];
3006
3052
  output: {
3007
3053
  apy: string;
3054
+ metricValue: string;
3055
+ referenceValue: string;
3056
+ severity: string;
3008
3057
  };
3009
3058
  examples: {
3010
3059
  name: string;
@@ -3314,6 +3363,9 @@ export declare const TRIGGERS: {
3314
3363
  parameters: Parameter[];
3315
3364
  output: {
3316
3365
  lendingRate: string;
3366
+ metricValue: string;
3367
+ referenceValue: string;
3368
+ severity: string;
3317
3369
  };
3318
3370
  examples: {
3319
3371
  name: string;
@@ -3340,6 +3392,9 @@ export declare const TRIGGERS: {
3340
3392
  parameters: Parameter[];
3341
3393
  output: {
3342
3394
  borrowingRate: string;
3395
+ metricValue: string;
3396
+ referenceValue: string;
3397
+ severity: string;
3343
3398
  };
3344
3399
  examples: {
3345
3400
  name: string;
@@ -3394,6 +3449,9 @@ export declare const TRIGGERS: {
3394
3449
  type: number;
3395
3450
  output: {
3396
3451
  hyperbeatVaultApy: string;
3452
+ metricValue: string;
3453
+ referenceValue: string;
3454
+ severity: string;
3397
3455
  };
3398
3456
  parameters: Parameter[];
3399
3457
  examples: {
@@ -3426,6 +3484,9 @@ export declare const TRIGGERS: {
3426
3484
  parameters: Parameter[];
3427
3485
  output: {
3428
3486
  lendingRate: string;
3487
+ metricValue: string;
3488
+ referenceValue: string;
3489
+ severity: string;
3429
3490
  };
3430
3491
  examples: {
3431
3492
  name: string;
@@ -3452,6 +3513,9 @@ export declare const TRIGGERS: {
3452
3513
  parameters: Parameter[];
3453
3514
  output: {
3454
3515
  borrowingRate: string;
3516
+ metricValue: string;
3517
+ referenceValue: string;
3518
+ severity: string;
3455
3519
  };
3456
3520
  examples: {
3457
3521
  name: string;
@@ -3534,6 +3598,9 @@ export declare const TRIGGERS: {
3534
3598
  parameters: Parameter[];
3535
3599
  output: {
3536
3600
  lendingRate: string;
3601
+ metricValue: string;
3602
+ referenceValue: string;
3603
+ severity: string;
3537
3604
  };
3538
3605
  examples: {
3539
3606
  name: string;
@@ -3560,6 +3627,9 @@ export declare const TRIGGERS: {
3560
3627
  parameters: Parameter[];
3561
3628
  output: {
3562
3629
  borrowingRate: string;
3630
+ metricValue: string;
3631
+ referenceValue: string;
3632
+ severity: string;
3563
3633
  };
3564
3634
  examples: {
3565
3635
  name: string;
@@ -3639,7 +3709,9 @@ export declare const TRIGGERS: {
3639
3709
  parameters: Parameter[];
3640
3710
  output: {
3641
3711
  lendingRate: string;
3642
- comparisonValue: string;
3712
+ metricValue: string;
3713
+ referenceValue: string;
3714
+ severity: string;
3643
3715
  };
3644
3716
  examples: {
3645
3717
  name: string;
@@ -3716,7 +3788,9 @@ export declare const TRIGGERS: {
3716
3788
  }[];
3717
3789
  output: {
3718
3790
  borrowingRate: string;
3719
- comparisonValue: string;
3791
+ metricValue: string;
3792
+ referenceValue: string;
3793
+ severity: string;
3720
3794
  };
3721
3795
  blockId: number;
3722
3796
  image: string;
@@ -3741,7 +3815,9 @@ export declare const TRIGGERS: {
3741
3815
  }[];
3742
3816
  output: {
3743
3817
  lendingRate: string;
3744
- comparisonValue: string;
3818
+ metricValue: string;
3819
+ referenceValue: string;
3820
+ severity: string;
3745
3821
  };
3746
3822
  blockId: number;
3747
3823
  image: string;
@@ -3788,8 +3864,8 @@ export declare const TRIGGERS: {
3788
3864
  parameters: Parameter[];
3789
3865
  output: {
3790
3866
  netAPY: string;
3791
- netAPYValue: string;
3792
- referenceNetAPY: string;
3867
+ metricValue: string;
3868
+ referenceValue: string;
3793
3869
  severity: string;
3794
3870
  };
3795
3871
  examples: {
@@ -3848,6 +3924,9 @@ export declare const TRIGGERS: {
3848
3924
  parameters: Parameter[];
3849
3925
  output: {
3850
3926
  borrowingRate: string;
3927
+ metricValue: string;
3928
+ referenceValue: string;
3929
+ severity: string;
3851
3930
  };
3852
3931
  examples: {
3853
3932
  name: string;
@@ -3872,6 +3951,9 @@ export declare const TRIGGERS: {
3872
3951
  parameters: Parameter[];
3873
3952
  output: {
3874
3953
  lendingRate: string;
3954
+ metricValue: string;
3955
+ referenceValue: string;
3956
+ severity: string;
3875
3957
  };
3876
3958
  examples: {
3877
3959
  name: string;
@@ -4647,6 +4729,28 @@ export declare const TRIGGERS: {
4647
4729
  blockId: number;
4648
4730
  image: string;
4649
4731
  };
4732
+ POSITION_LIQUIDATED: {
4733
+ name: string;
4734
+ dynamicName: string;
4735
+ description: string;
4736
+ type: number;
4737
+ output: {
4738
+ message: string;
4739
+ liquidationEventsJson: string;
4740
+ };
4741
+ parameters: Parameter[];
4742
+ examples: {
4743
+ name: string;
4744
+ description: string;
4745
+ externalVariableDescription: string;
4746
+ parameters: {
4747
+ key: string;
4748
+ value: string;
4749
+ }[];
4750
+ }[];
4751
+ blockId: number;
4752
+ image: string;
4753
+ };
4650
4754
  PRICE_MOVEMENT: {
4651
4755
  name: string;
4652
4756
  dynamicName: string;
@@ -5647,6 +5751,28 @@ export declare const TRIGGERS: {
5647
5751
  blockId: number;
5648
5752
  image: string;
5649
5753
  };
5754
+ POSITION_LIQUIDATED: {
5755
+ name: string;
5756
+ dynamicName: string;
5757
+ description: string;
5758
+ type: number;
5759
+ output: {
5760
+ message: string;
5761
+ liquidationEventsJson: string;
5762
+ };
5763
+ parameters: Parameter[];
5764
+ examples: {
5765
+ name: string;
5766
+ description: string;
5767
+ externalVariableDescription: string;
5768
+ parameters: {
5769
+ key: string;
5770
+ value: string;
5771
+ }[];
5772
+ }[];
5773
+ blockId: number;
5774
+ image: string;
5775
+ };
5650
5776
  PRICE_MOVEMENT: {
5651
5777
  name: string;
5652
5778
  dynamicName: string;
@@ -17,4 +17,5 @@ export declare const CHAINS: {
17
17
  MANTLE: number;
18
18
  INK: number;
19
19
  PLASMA: number;
20
+ MONAD: number;
20
21
  };
@@ -1,2 +1,2 @@
1
- export declare const SDK_VERSION = "2.0.644";
1
+ export declare const SDK_VERSION = "2.0.645";
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.644",
3
+ "version": "2.0.645",
4
4
  "description": "An SDK for building and managing automations on Otomato",
5
5
  "repository": {
6
6
  "type": "git",