@nexusmutual/sdk 0.3.8 → 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,
@@ -1683,7 +1683,7 @@
1683
1683
  "DAI"
1684
1684
  ],
1685
1685
  "isPrivate": true,
1686
- "timestamp": 1704981731
1686
+ "timestamp": 1689782903
1687
1687
  },
1688
1688
  {
1689
1689
  "id": 105,
@@ -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,
@@ -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,
@@ -2420,7 +2420,7 @@
2420
2420
  "DAI"
2421
2421
  ],
2422
2422
  "isPrivate": false,
2423
- "timestamp": 1715349875
2423
+ "timestamp": 1711473767
2424
2424
  },
2425
2425
  {
2426
2426
  "id": 153,
@@ -2452,7 +2452,7 @@
2452
2452
  "ETH"
2453
2453
  ],
2454
2454
  "isPrivate": false,
2455
- "timestamp": 1715349875
2455
+ "timestamp": 1711473767
2456
2456
  },
2457
2457
  {
2458
2458
  "id": 155,
@@ -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,
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,
@@ -1922,7 +1939,7 @@ var products = [
1922
1939
  "DAI"
1923
1940
  ],
1924
1941
  isPrivate: true,
1925
- timestamp: 1704981731
1942
+ timestamp: 1689782903
1926
1943
  },
1927
1944
  {
1928
1945
  id: 105,
@@ -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,
@@ -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,
@@ -2694,7 +2711,7 @@ var products = [
2694
2711
  "DAI"
2695
2712
  ],
2696
2713
  isPrivate: false,
2697
- timestamp: 1715349875
2714
+ timestamp: 1711473767
2698
2715
  },
2699
2716
  {
2700
2717
  id: 153,
@@ -2726,7 +2743,7 @@ var products = [
2726
2743
  "ETH"
2727
2744
  ],
2728
2745
  isPrivate: false,
2729
- timestamp: 1715349875
2746
+ timestamp: 1711473767
2730
2747
  },
2731
2748
  {
2732
2749
  id: 155,
@@ -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,
@@ -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,
@@ -1922,7 +1939,7 @@ var products = [
1922
1939
  "DAI"
1923
1940
  ],
1924
1941
  isPrivate: true,
1925
- timestamp: 1704981731
1942
+ timestamp: 1689782903
1926
1943
  },
1927
1944
  {
1928
1945
  id: 105,
@@ -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,
@@ -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,
@@ -2694,7 +2711,7 @@ var products = [
2694
2711
  "DAI"
2695
2712
  ],
2696
2713
  isPrivate: false,
2697
- timestamp: 1715349875
2714
+ timestamp: 1711473767
2698
2715
  },
2699
2716
  {
2700
2717
  id: 153,
@@ -2726,7 +2743,7 @@ var products = [
2726
2743
  "ETH"
2727
2744
  ],
2728
2745
  isPrivate: false,
2729
- timestamp: 1715349875
2746
+ timestamp: 1711473767
2730
2747
  },
2731
2748
  {
2732
2749
  id: 155,
@@ -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,
@@ -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 };