@nexusmutual/sdk 0.3.7 → 0.3.9

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.
@@ -1516,7 +1516,7 @@
1516
1516
  "DAI"
1517
1517
  ],
1518
1518
  "isPrivate": true,
1519
- "timestamp": 1684312727
1519
+ "timestamp": 1704981731
1520
1520
  },
1521
1521
  {
1522
1522
  "id": 94,
@@ -1700,7 +1700,7 @@
1700
1700
  "DAI"
1701
1701
  ],
1702
1702
  "isPrivate": true,
1703
- "timestamp": 1689782903
1703
+ "timestamp": 1704980411
1704
1704
  },
1705
1705
  {
1706
1706
  "id": 106,
@@ -1822,7 +1822,7 @@
1822
1822
  "DAI"
1823
1823
  ],
1824
1824
  "isPrivate": true,
1825
- "timestamp": 1691493035
1825
+ "timestamp": 1691495087
1826
1826
  },
1827
1827
  {
1828
1828
  "id": 114,
@@ -2165,7 +2165,7 @@
2165
2165
  "ETH"
2166
2166
  ],
2167
2167
  "isPrivate": false,
2168
- "timestamp": 1709310707
2168
+ "timestamp": 1709311739
2169
2169
  },
2170
2170
  {
2171
2171
  "id": 137,
@@ -2240,7 +2240,7 @@
2240
2240
  "DAI"
2241
2241
  ],
2242
2242
  "isPrivate": false,
2243
- "timestamp": 1715349875
2243
+ "timestamp": 1710254231
2244
2244
  },
2245
2245
  {
2246
2246
  "id": 142,
@@ -2290,7 +2290,7 @@
2290
2290
  "DAI"
2291
2291
  ],
2292
2292
  "isPrivate": false,
2293
- "timestamp": 1715349875
2293
+ "timestamp": 1710254231
2294
2294
  },
2295
2295
  {
2296
2296
  "id": 145,
@@ -2307,7 +2307,7 @@
2307
2307
  "DAI"
2308
2308
  ],
2309
2309
  "isPrivate": false,
2310
- "timestamp": 1715349875
2310
+ "timestamp": 1710254231
2311
2311
  },
2312
2312
  {
2313
2313
  "id": 146,
@@ -2371,7 +2371,7 @@
2371
2371
  "DAI"
2372
2372
  ],
2373
2373
  "isPrivate": false,
2374
- "timestamp": 1715349875
2374
+ "timestamp": 1710850979
2375
2375
  },
2376
2376
  {
2377
2377
  "id": 150,
@@ -2387,7 +2387,7 @@
2387
2387
  "ETH"
2388
2388
  ],
2389
2389
  "isPrivate": false,
2390
- "timestamp": 1711473767
2390
+ "timestamp": 1715349875
2391
2391
  },
2392
2392
  {
2393
2393
  "id": 151,
@@ -2468,7 +2468,7 @@
2468
2468
  "ETH"
2469
2469
  ],
2470
2470
  "isPrivate": false,
2471
- "timestamp": 1711473767
2471
+ "timestamp": 1715349875
2472
2472
  },
2473
2473
  {
2474
2474
  "id": 156,
@@ -2500,7 +2500,7 @@
2500
2500
  "DAI"
2501
2501
  ],
2502
2502
  "isPrivate": false,
2503
- "timestamp": 1712244083
2503
+ "timestamp": 1715349875
2504
2504
  },
2505
2505
  {
2506
2506
  "id": 158,
@@ -2516,7 +2516,7 @@
2516
2516
  "ETH"
2517
2517
  ],
2518
2518
  "isPrivate": false,
2519
- "timestamp": 1712244083
2519
+ "timestamp": 1715349875
2520
2520
  },
2521
2521
  {
2522
2522
  "id": 159,
@@ -2565,7 +2565,7 @@
2565
2565
  "ETH"
2566
2566
  ],
2567
2567
  "isPrivate": false,
2568
- "timestamp": 1713185771
2568
+ "timestamp": 1715349875
2569
2569
  },
2570
2570
  {
2571
2571
  "id": 162,
package/dist/index.d.mts CHANGED
@@ -105,6 +105,23 @@ type GetQuoteResponse = {
105
105
  buyCoverInput: BuyCoverInput;
106
106
  };
107
107
  type GetQuoteApiResponse = ApiResponse<GetQuoteResponse, undefined>;
108
+ declare enum ProductCategoryEnum {
109
+ All = "all",
110
+ Lending = "lending",
111
+ Dex = "dex",
112
+ LiquidRestaking = "liquid-restaking",
113
+ YieldOptimizer = "yield-optimizer",
114
+ Perpetuals = "perpetuals",
115
+ SmartWallet = "smart-wallet",
116
+ RWA = "rwa",
117
+ Coverage = "coverage",
118
+ ETHStaking = "eth-staking",
119
+ Unity = "unity"
120
+ }
121
+ declare const categoryLabelByEnum: Record<ProductCategoryEnum, string>;
122
+ declare const productCategoryMap: {
123
+ [productId: number]: ProductCategoryEnum;
124
+ };
108
125
 
109
126
  /**
110
127
  * Retrieves a quote for buying cover and prepares the necessary inputs for CoverBroker.buyCover method
@@ -1747,7 +1764,7 @@ var products = [
1747
1764
  "DAI"
1748
1765
  ],
1749
1766
  isPrivate: true,
1750
- timestamp: 1684312727
1767
+ timestamp: 1704981731
1751
1768
  },
1752
1769
  {
1753
1770
  id: 94,
@@ -1939,7 +1956,7 @@ var products = [
1939
1956
  "DAI"
1940
1957
  ],
1941
1958
  isPrivate: true,
1942
- timestamp: 1689782903
1959
+ timestamp: 1704980411
1943
1960
  },
1944
1961
  {
1945
1962
  id: 106,
@@ -2068,7 +2085,7 @@ var products = [
2068
2085
  "DAI"
2069
2086
  ],
2070
2087
  isPrivate: true,
2071
- timestamp: 1691493035
2088
+ timestamp: 1691495087
2072
2089
  },
2073
2090
  {
2074
2091
  id: 114,
@@ -2433,7 +2450,7 @@ var products = [
2433
2450
  "ETH"
2434
2451
  ],
2435
2452
  isPrivate: false,
2436
- timestamp: 1709310707
2453
+ timestamp: 1709311739
2437
2454
  },
2438
2455
  {
2439
2456
  id: 137,
@@ -2512,7 +2529,7 @@ var products = [
2512
2529
  "DAI"
2513
2530
  ],
2514
2531
  isPrivate: false,
2515
- timestamp: 1715349875
2532
+ timestamp: 1710254231
2516
2533
  },
2517
2534
  {
2518
2535
  id: 142,
@@ -2562,7 +2579,7 @@ var products = [
2562
2579
  "DAI"
2563
2580
  ],
2564
2581
  isPrivate: false,
2565
- timestamp: 1715349875
2582
+ timestamp: 1710254231
2566
2583
  },
2567
2584
  {
2568
2585
  id: 145,
@@ -2579,7 +2596,7 @@ var products = [
2579
2596
  "DAI"
2580
2597
  ],
2581
2598
  isPrivate: false,
2582
- timestamp: 1715349875
2599
+ timestamp: 1710254231
2583
2600
  },
2584
2601
  {
2585
2602
  id: 146,
@@ -2645,7 +2662,7 @@ var products = [
2645
2662
  "DAI"
2646
2663
  ],
2647
2664
  isPrivate: false,
2648
- timestamp: 1715349875
2665
+ timestamp: 1710850979
2649
2666
  },
2650
2667
  {
2651
2668
  id: 150,
@@ -2661,7 +2678,7 @@ var products = [
2661
2678
  "ETH"
2662
2679
  ],
2663
2680
  isPrivate: false,
2664
- timestamp: 1711473767
2681
+ timestamp: 1715349875
2665
2682
  },
2666
2683
  {
2667
2684
  id: 151,
@@ -2742,7 +2759,7 @@ var products = [
2742
2759
  "ETH"
2743
2760
  ],
2744
2761
  isPrivate: false,
2745
- timestamp: 1711473767
2762
+ timestamp: 1715349875
2746
2763
  },
2747
2764
  {
2748
2765
  id: 156,
@@ -2775,7 +2792,7 @@ var products = [
2775
2792
  "DAI"
2776
2793
  ],
2777
2794
  isPrivate: false,
2778
- timestamp: 1712244083
2795
+ timestamp: 1715349875
2779
2796
  },
2780
2797
  {
2781
2798
  id: 158,
@@ -2791,7 +2808,7 @@ var products = [
2791
2808
  "ETH"
2792
2809
  ],
2793
2810
  isPrivate: false,
2794
- timestamp: 1712244083
2811
+ timestamp: 1715349875
2795
2812
  },
2796
2813
  {
2797
2814
  id: 159,
@@ -2840,7 +2857,7 @@ var products = [
2840
2857
  "ETH"
2841
2858
  ],
2842
2859
  isPrivate: false,
2843
- timestamp: 1713185771
2860
+ timestamp: 1715349875
2844
2861
  },
2845
2862
  {
2846
2863
  id: 162,
@@ -3079,6 +3096,11 @@ declare const nexusSdk: {
3079
3096
  DEFAULT_COMMISSION_RATIO: 1500;
3080
3097
  NEXUS_MUTUAL_DAO_TREASURY_ADDRESS: "0x586b9b2F8010b284A0197f392156f1A7Eb5e86e9";
3081
3098
  getQuoteAndBuyCoverInputs: typeof getQuoteAndBuyCoverInputs;
3099
+ ProductCategoryEnum: typeof ProductCategoryEnum;
3100
+ categoryLabelByEnum: Record<ProductCategoryEnum, string>;
3101
+ productCategoryMap: {
3102
+ [productId: number]: ProductCategoryEnum;
3103
+ };
3082
3104
  calculatePremiumWithCommissionAndSlippage: (premium: bigint, commission?: number, slippage?: number) => bigint;
3083
3105
  calculateExactNxmForEth: (ethIn: bigint, reserves: Reserves) => bigint;
3084
3106
  calculateExactEthForNxm: (nxmIn: bigint, reserves: Reserves) => bigint;
@@ -39097,4 +39119,4 @@ declare const nexusSdk: {
39097
39119
  }];
39098
39120
  };
39099
39121
 
39100
- export { Address, ApiResponse, BuyCoverInput, BuyCoverParams, COMMISSION_DENOMINATOR, Capacity, CoverAsset, CoverId, CoverRouterProductCapacityResponse, CoverRouterQuoteResponse, DEFAULT_COMMISSION_RATIO, DEFAULT_SLIPPAGE, ErrorApiResponse, ErrorResponse, FloatString, GetQuoteApiResponse, GetQuoteResponse, IntString, Integer, LogoFileName, LogoName, MAXIMUM_COVER_PERIOD, MINIMUM_COVER_PERIOD, NEXUS_MUTUAL_DAO_TREASURY_ADDRESS, PoolAllocationRequest, PoolCapacity, Quote, QuoteDisplayInfo, Reserves, SLIPPAGE_DENOMINATOR, TARGET_PRICE_DENOMINATOR, allLogoFileNames, allLogoNames, calculateEthForExactNxm, calculateExactEthForNxm, calculateExactNxmForEth, calculateNxmForExactEth, calculatePremiumWithCommissionAndSlippage, calculatePriceImpactA, calculatePriceImpactB, calculateSpotPrice, nexusSdk as default, getQuoteAndBuyCoverInputs, productTypes, products };
39122
+ export { Address, ApiResponse, BuyCoverInput, BuyCoverParams, COMMISSION_DENOMINATOR, Capacity, CoverAsset, CoverId, CoverRouterProductCapacityResponse, CoverRouterQuoteResponse, DEFAULT_COMMISSION_RATIO, DEFAULT_SLIPPAGE, ErrorApiResponse, ErrorResponse, FloatString, GetQuoteApiResponse, GetQuoteResponse, IntString, Integer, LogoFileName, LogoName, MAXIMUM_COVER_PERIOD, MINIMUM_COVER_PERIOD, NEXUS_MUTUAL_DAO_TREASURY_ADDRESS, PoolAllocationRequest, PoolCapacity, ProductCategoryEnum, Quote, QuoteDisplayInfo, Reserves, SLIPPAGE_DENOMINATOR, TARGET_PRICE_DENOMINATOR, allLogoFileNames, allLogoNames, calculateEthForExactNxm, calculateExactEthForNxm, calculateExactNxmForEth, calculateNxmForExactEth, calculatePremiumWithCommissionAndSlippage, calculatePriceImpactA, calculatePriceImpactB, calculateSpotPrice, categoryLabelByEnum, nexusSdk as default, getQuoteAndBuyCoverInputs, productCategoryMap, productTypes, products };
package/dist/index.d.ts CHANGED
@@ -105,6 +105,23 @@ type GetQuoteResponse = {
105
105
  buyCoverInput: BuyCoverInput;
106
106
  };
107
107
  type GetQuoteApiResponse = ApiResponse<GetQuoteResponse, undefined>;
108
+ declare enum ProductCategoryEnum {
109
+ All = "all",
110
+ Lending = "lending",
111
+ Dex = "dex",
112
+ LiquidRestaking = "liquid-restaking",
113
+ YieldOptimizer = "yield-optimizer",
114
+ Perpetuals = "perpetuals",
115
+ SmartWallet = "smart-wallet",
116
+ RWA = "rwa",
117
+ Coverage = "coverage",
118
+ ETHStaking = "eth-staking",
119
+ Unity = "unity"
120
+ }
121
+ declare const categoryLabelByEnum: Record<ProductCategoryEnum, string>;
122
+ declare const productCategoryMap: {
123
+ [productId: number]: ProductCategoryEnum;
124
+ };
108
125
 
109
126
  /**
110
127
  * Retrieves a quote for buying cover and prepares the necessary inputs for CoverBroker.buyCover method
@@ -1747,7 +1764,7 @@ var products = [
1747
1764
  "DAI"
1748
1765
  ],
1749
1766
  isPrivate: true,
1750
- timestamp: 1684312727
1767
+ timestamp: 1704981731
1751
1768
  },
1752
1769
  {
1753
1770
  id: 94,
@@ -1939,7 +1956,7 @@ var products = [
1939
1956
  "DAI"
1940
1957
  ],
1941
1958
  isPrivate: true,
1942
- timestamp: 1689782903
1959
+ timestamp: 1704980411
1943
1960
  },
1944
1961
  {
1945
1962
  id: 106,
@@ -2068,7 +2085,7 @@ var products = [
2068
2085
  "DAI"
2069
2086
  ],
2070
2087
  isPrivate: true,
2071
- timestamp: 1691493035
2088
+ timestamp: 1691495087
2072
2089
  },
2073
2090
  {
2074
2091
  id: 114,
@@ -2433,7 +2450,7 @@ var products = [
2433
2450
  "ETH"
2434
2451
  ],
2435
2452
  isPrivate: false,
2436
- timestamp: 1709310707
2453
+ timestamp: 1709311739
2437
2454
  },
2438
2455
  {
2439
2456
  id: 137,
@@ -2512,7 +2529,7 @@ var products = [
2512
2529
  "DAI"
2513
2530
  ],
2514
2531
  isPrivate: false,
2515
- timestamp: 1715349875
2532
+ timestamp: 1710254231
2516
2533
  },
2517
2534
  {
2518
2535
  id: 142,
@@ -2562,7 +2579,7 @@ var products = [
2562
2579
  "DAI"
2563
2580
  ],
2564
2581
  isPrivate: false,
2565
- timestamp: 1715349875
2582
+ timestamp: 1710254231
2566
2583
  },
2567
2584
  {
2568
2585
  id: 145,
@@ -2579,7 +2596,7 @@ var products = [
2579
2596
  "DAI"
2580
2597
  ],
2581
2598
  isPrivate: false,
2582
- timestamp: 1715349875
2599
+ timestamp: 1710254231
2583
2600
  },
2584
2601
  {
2585
2602
  id: 146,
@@ -2645,7 +2662,7 @@ var products = [
2645
2662
  "DAI"
2646
2663
  ],
2647
2664
  isPrivate: false,
2648
- timestamp: 1715349875
2665
+ timestamp: 1710850979
2649
2666
  },
2650
2667
  {
2651
2668
  id: 150,
@@ -2661,7 +2678,7 @@ var products = [
2661
2678
  "ETH"
2662
2679
  ],
2663
2680
  isPrivate: false,
2664
- timestamp: 1711473767
2681
+ timestamp: 1715349875
2665
2682
  },
2666
2683
  {
2667
2684
  id: 151,
@@ -2742,7 +2759,7 @@ var products = [
2742
2759
  "ETH"
2743
2760
  ],
2744
2761
  isPrivate: false,
2745
- timestamp: 1711473767
2762
+ timestamp: 1715349875
2746
2763
  },
2747
2764
  {
2748
2765
  id: 156,
@@ -2775,7 +2792,7 @@ var products = [
2775
2792
  "DAI"
2776
2793
  ],
2777
2794
  isPrivate: false,
2778
- timestamp: 1712244083
2795
+ timestamp: 1715349875
2779
2796
  },
2780
2797
  {
2781
2798
  id: 158,
@@ -2791,7 +2808,7 @@ var products = [
2791
2808
  "ETH"
2792
2809
  ],
2793
2810
  isPrivate: false,
2794
- timestamp: 1712244083
2811
+ timestamp: 1715349875
2795
2812
  },
2796
2813
  {
2797
2814
  id: 159,
@@ -2840,7 +2857,7 @@ var products = [
2840
2857
  "ETH"
2841
2858
  ],
2842
2859
  isPrivate: false,
2843
- timestamp: 1713185771
2860
+ timestamp: 1715349875
2844
2861
  },
2845
2862
  {
2846
2863
  id: 162,
@@ -3079,6 +3096,11 @@ declare const nexusSdk: {
3079
3096
  DEFAULT_COMMISSION_RATIO: 1500;
3080
3097
  NEXUS_MUTUAL_DAO_TREASURY_ADDRESS: "0x586b9b2F8010b284A0197f392156f1A7Eb5e86e9";
3081
3098
  getQuoteAndBuyCoverInputs: typeof getQuoteAndBuyCoverInputs;
3099
+ ProductCategoryEnum: typeof ProductCategoryEnum;
3100
+ categoryLabelByEnum: Record<ProductCategoryEnum, string>;
3101
+ productCategoryMap: {
3102
+ [productId: number]: ProductCategoryEnum;
3103
+ };
3082
3104
  calculatePremiumWithCommissionAndSlippage: (premium: bigint, commission?: number, slippage?: number) => bigint;
3083
3105
  calculateExactNxmForEth: (ethIn: bigint, reserves: Reserves) => bigint;
3084
3106
  calculateExactEthForNxm: (nxmIn: bigint, reserves: Reserves) => bigint;
@@ -39097,4 +39119,4 @@ declare const nexusSdk: {
39097
39119
  }];
39098
39120
  };
39099
39121
 
39100
- export { Address, ApiResponse, BuyCoverInput, BuyCoverParams, COMMISSION_DENOMINATOR, Capacity, CoverAsset, CoverId, CoverRouterProductCapacityResponse, CoverRouterQuoteResponse, DEFAULT_COMMISSION_RATIO, DEFAULT_SLIPPAGE, ErrorApiResponse, ErrorResponse, FloatString, GetQuoteApiResponse, GetQuoteResponse, IntString, Integer, LogoFileName, LogoName, MAXIMUM_COVER_PERIOD, MINIMUM_COVER_PERIOD, NEXUS_MUTUAL_DAO_TREASURY_ADDRESS, PoolAllocationRequest, PoolCapacity, Quote, QuoteDisplayInfo, Reserves, SLIPPAGE_DENOMINATOR, TARGET_PRICE_DENOMINATOR, allLogoFileNames, allLogoNames, calculateEthForExactNxm, calculateExactEthForNxm, calculateExactNxmForEth, calculateNxmForExactEth, calculatePremiumWithCommissionAndSlippage, calculatePriceImpactA, calculatePriceImpactB, calculateSpotPrice, nexusSdk as default, getQuoteAndBuyCoverInputs, productTypes, products };
39122
+ export { Address, ApiResponse, BuyCoverInput, BuyCoverParams, COMMISSION_DENOMINATOR, Capacity, CoverAsset, CoverId, CoverRouterProductCapacityResponse, CoverRouterQuoteResponse, DEFAULT_COMMISSION_RATIO, DEFAULT_SLIPPAGE, ErrorApiResponse, ErrorResponse, FloatString, GetQuoteApiResponse, GetQuoteResponse, IntString, Integer, LogoFileName, LogoName, MAXIMUM_COVER_PERIOD, MINIMUM_COVER_PERIOD, NEXUS_MUTUAL_DAO_TREASURY_ADDRESS, PoolAllocationRequest, PoolCapacity, ProductCategoryEnum, Quote, QuoteDisplayInfo, Reserves, SLIPPAGE_DENOMINATOR, TARGET_PRICE_DENOMINATOR, allLogoFileNames, allLogoNames, calculateEthForExactNxm, calculateExactEthForNxm, calculateExactNxmForEth, calculateNxmForExactEth, calculatePremiumWithCommissionAndSlippage, calculatePriceImpactA, calculatePriceImpactB, calculateSpotPrice, categoryLabelByEnum, nexusSdk as default, getQuoteAndBuyCoverInputs, productCategoryMap, productTypes, products };