@nexusmutual/sdk 0.3.16 → 0.3.17

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.
@@ -1435,7 +1435,7 @@
1435
1435
  "USDC"
1436
1436
  ],
1437
1437
  "isPrivate": true,
1438
- "timestamp": 1704981731
1438
+ "timestamp": 1684312727
1439
1439
  },
1440
1440
  {
1441
1441
  "id": 84,
@@ -1501,7 +1501,7 @@
1501
1501
  "USDC"
1502
1502
  ],
1503
1503
  "isPrivate": true,
1504
- "timestamp": 1684312727
1504
+ "timestamp": 1704980411
1505
1505
  },
1506
1506
  {
1507
1507
  "id": 88,
@@ -1519,7 +1519,7 @@
1519
1519
  "USDC"
1520
1520
  ],
1521
1521
  "isPrivate": true,
1522
- "timestamp": 1684312727
1522
+ "timestamp": 1704980411
1523
1523
  },
1524
1524
  {
1525
1525
  "id": 89,
@@ -1776,7 +1776,7 @@
1776
1776
  "USDC"
1777
1777
  ],
1778
1778
  "isPrivate": true,
1779
- "timestamp": 1689782903
1779
+ "timestamp": 1704980411
1780
1780
  },
1781
1781
  {
1782
1782
  "id": 105,
@@ -1794,7 +1794,7 @@
1794
1794
  "USDC"
1795
1795
  ],
1796
1796
  "isPrivate": true,
1797
- "timestamp": 1689782903
1797
+ "timestamp": 1704980411
1798
1798
  },
1799
1799
  {
1800
1800
  "id": 106,
@@ -2287,7 +2287,7 @@
2287
2287
  "ETH"
2288
2288
  ],
2289
2289
  "isPrivate": false,
2290
- "timestamp": 1709310707
2290
+ "timestamp": 1709311739
2291
2291
  },
2292
2292
  {
2293
2293
  "id": 137,
@@ -2365,7 +2365,7 @@
2365
2365
  "USDC"
2366
2366
  ],
2367
2367
  "isPrivate": false,
2368
- "timestamp": 1710254231
2368
+ "timestamp": 1715349875
2369
2369
  },
2370
2370
  {
2371
2371
  "id": 142,
@@ -2435,7 +2435,7 @@
2435
2435
  "USDC"
2436
2436
  ],
2437
2437
  "isPrivate": false,
2438
- "timestamp": 1715349875
2438
+ "timestamp": 1710254231
2439
2439
  },
2440
2440
  {
2441
2441
  "id": 146,
@@ -2519,7 +2519,7 @@
2519
2519
  "ETH"
2520
2520
  ],
2521
2521
  "isPrivate": false,
2522
- "timestamp": 1711473767
2522
+ "timestamp": 1715349875
2523
2523
  },
2524
2524
  {
2525
2525
  "id": 151,
@@ -2554,7 +2554,7 @@
2554
2554
  "USDC"
2555
2555
  ],
2556
2556
  "isPrivate": false,
2557
- "timestamp": 1711473767
2557
+ "timestamp": 1715349875
2558
2558
  },
2559
2559
  {
2560
2560
  "id": 153,
@@ -2570,7 +2570,7 @@
2570
2570
  "ETH"
2571
2571
  ],
2572
2572
  "isPrivate": false,
2573
- "timestamp": 1711473767
2573
+ "timestamp": 1715349875
2574
2574
  },
2575
2575
  {
2576
2576
  "id": 154,
@@ -2586,7 +2586,7 @@
2586
2586
  "ETH"
2587
2587
  ],
2588
2588
  "isPrivate": false,
2589
- "timestamp": 1715349875
2589
+ "timestamp": 1711473767
2590
2590
  },
2591
2591
  {
2592
2592
  "id": 155,
@@ -2602,7 +2602,7 @@
2602
2602
  "ETH"
2603
2603
  ],
2604
2604
  "isPrivate": false,
2605
- "timestamp": 1715349875
2605
+ "timestamp": 1711473767
2606
2606
  },
2607
2607
  {
2608
2608
  "id": 156,
@@ -2652,7 +2652,7 @@
2652
2652
  "ETH"
2653
2653
  ],
2654
2654
  "isPrivate": false,
2655
- "timestamp": 1712244083
2655
+ "timestamp": 1715349875
2656
2656
  },
2657
2657
  {
2658
2658
  "id": 159,
@@ -2686,7 +2686,7 @@
2686
2686
  "ETH"
2687
2687
  ],
2688
2688
  "isPrivate": false,
2689
- "timestamp": 1713185771
2689
+ "timestamp": 1715349875
2690
2690
  },
2691
2691
  {
2692
2692
  "id": 161,
@@ -2702,7 +2702,7 @@
2702
2702
  "ETH"
2703
2703
  ],
2704
2704
  "isPrivate": false,
2705
- "timestamp": 1713185771
2705
+ "timestamp": 1715349875
2706
2706
  },
2707
2707
  {
2708
2708
  "id": 162,
package/dist/index.d.mts CHANGED
@@ -34,6 +34,8 @@ declare const productCategoryMap: {
34
34
  [productId: number]: ProductCategoryEnum;
35
35
  };
36
36
 
37
+ declare const allPrivateProductsIds: number[];
38
+
37
39
  type ApiResponse<R, E> = {
38
40
  result: R;
39
41
  error: E;
@@ -1677,7 +1679,7 @@ var products = [
1677
1679
  "USDC"
1678
1680
  ],
1679
1681
  isPrivate: true,
1680
- timestamp: 1704981731
1682
+ timestamp: 1684312727
1681
1683
  },
1682
1684
  {
1683
1685
  id: 84,
@@ -1746,7 +1748,7 @@ var products = [
1746
1748
  "USDC"
1747
1749
  ],
1748
1750
  isPrivate: true,
1749
- timestamp: 1684312727
1751
+ timestamp: 1704980411
1750
1752
  },
1751
1753
  {
1752
1754
  id: 88,
@@ -1764,7 +1766,7 @@ var products = [
1764
1766
  "USDC"
1765
1767
  ],
1766
1768
  isPrivate: true,
1767
- timestamp: 1684312727
1769
+ timestamp: 1704980411
1768
1770
  },
1769
1771
  {
1770
1772
  id: 89,
@@ -2033,7 +2035,7 @@ var products = [
2033
2035
  "USDC"
2034
2036
  ],
2035
2037
  isPrivate: true,
2036
- timestamp: 1689782903
2038
+ timestamp: 1704980411
2037
2039
  },
2038
2040
  {
2039
2041
  id: 105,
@@ -2051,7 +2053,7 @@ var products = [
2051
2053
  "USDC"
2052
2054
  ],
2053
2055
  isPrivate: true,
2054
- timestamp: 1689782903
2056
+ timestamp: 1704980411
2055
2057
  },
2056
2058
  {
2057
2059
  id: 106,
@@ -2573,7 +2575,7 @@ var products = [
2573
2575
  "ETH"
2574
2576
  ],
2575
2577
  isPrivate: false,
2576
- timestamp: 1709310707
2578
+ timestamp: 1709311739
2577
2579
  },
2578
2580
  {
2579
2581
  id: 137,
@@ -2655,7 +2657,7 @@ var products = [
2655
2657
  "USDC"
2656
2658
  ],
2657
2659
  isPrivate: false,
2658
- timestamp: 1710254231
2660
+ timestamp: 1715349875
2659
2661
  },
2660
2662
  {
2661
2663
  id: 142,
@@ -2725,7 +2727,7 @@ var products = [
2725
2727
  "USDC"
2726
2728
  ],
2727
2729
  isPrivate: false,
2728
- timestamp: 1715349875
2730
+ timestamp: 1710254231
2729
2731
  },
2730
2732
  {
2731
2733
  id: 146,
@@ -2811,7 +2813,7 @@ var products = [
2811
2813
  "ETH"
2812
2814
  ],
2813
2815
  isPrivate: false,
2814
- timestamp: 1711473767
2816
+ timestamp: 1715349875
2815
2817
  },
2816
2818
  {
2817
2819
  id: 151,
@@ -2846,7 +2848,7 @@ var products = [
2846
2848
  "USDC"
2847
2849
  ],
2848
2850
  isPrivate: false,
2849
- timestamp: 1711473767
2851
+ timestamp: 1715349875
2850
2852
  },
2851
2853
  {
2852
2854
  id: 153,
@@ -2862,7 +2864,7 @@ var products = [
2862
2864
  "ETH"
2863
2865
  ],
2864
2866
  isPrivate: false,
2865
- timestamp: 1711473767
2867
+ timestamp: 1715349875
2866
2868
  },
2867
2869
  {
2868
2870
  id: 154,
@@ -2878,7 +2880,7 @@ var products = [
2878
2880
  "ETH"
2879
2881
  ],
2880
2882
  isPrivate: false,
2881
- timestamp: 1715349875
2883
+ timestamp: 1711473767
2882
2884
  },
2883
2885
  {
2884
2886
  id: 155,
@@ -2894,7 +2896,7 @@ var products = [
2894
2896
  "ETH"
2895
2897
  ],
2896
2898
  isPrivate: false,
2897
- timestamp: 1715349875
2899
+ timestamp: 1711473767
2898
2900
  },
2899
2901
  {
2900
2902
  id: 156,
@@ -2945,7 +2947,7 @@ var products = [
2945
2947
  "ETH"
2946
2948
  ],
2947
2949
  isPrivate: false,
2948
- timestamp: 1712244083
2950
+ timestamp: 1715349875
2949
2951
  },
2950
2952
  {
2951
2953
  id: 159,
@@ -2979,7 +2981,7 @@ var products = [
2979
2981
  "ETH"
2980
2982
  ],
2981
2983
  isPrivate: false,
2982
- timestamp: 1713185771
2984
+ timestamp: 1715349875
2983
2985
  },
2984
2986
  {
2985
2987
  id: 161,
@@ -2995,7 +2997,7 @@ var products = [
2995
2997
  "ETH"
2996
2998
  ],
2997
2999
  isPrivate: false,
2998
- timestamp: 1713185771
3000
+ timestamp: 1715349875
2999
3001
  },
3000
3002
  {
3001
3003
  id: 162,
@@ -3244,6 +3246,7 @@ type LogoName = (typeof allLogoNames)[number];
3244
3246
  declare const calculatePremiumWithCommissionAndSlippage: (premium: bigint, commission?: number, slippage?: number) => bigint;
3245
3247
 
3246
3248
  declare const nexusSdk: {
3249
+ allPrivateProductsIds: number[];
3247
3250
  CoverAsset: typeof CoverAsset;
3248
3251
  CoverId: typeof CoverId;
3249
3252
  COMMISSION_DENOMINATOR: 10000;
@@ -40216,4 +40219,4 @@ declare const nexusSdk: {
40216
40219
  }];
40217
40220
  };
40218
40221
 
40219
- 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 };
40222
+ 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, allPrivateProductsIds, calculateEthForExactNxm, calculateExactEthForNxm, calculateExactNxmForEth, calculateNxmForExactEth, calculatePremiumWithCommissionAndSlippage, calculatePriceImpactA, calculatePriceImpactB, calculateSpotPrice, categoryLabelByEnum, nexusSdk as default, getQuoteAndBuyCoverInputs, productCategoryMap, productTypes, products };
package/dist/index.d.ts CHANGED
@@ -34,6 +34,8 @@ declare const productCategoryMap: {
34
34
  [productId: number]: ProductCategoryEnum;
35
35
  };
36
36
 
37
+ declare const allPrivateProductsIds: number[];
38
+
37
39
  type ApiResponse<R, E> = {
38
40
  result: R;
39
41
  error: E;
@@ -1677,7 +1679,7 @@ var products = [
1677
1679
  "USDC"
1678
1680
  ],
1679
1681
  isPrivate: true,
1680
- timestamp: 1704981731
1682
+ timestamp: 1684312727
1681
1683
  },
1682
1684
  {
1683
1685
  id: 84,
@@ -1746,7 +1748,7 @@ var products = [
1746
1748
  "USDC"
1747
1749
  ],
1748
1750
  isPrivate: true,
1749
- timestamp: 1684312727
1751
+ timestamp: 1704980411
1750
1752
  },
1751
1753
  {
1752
1754
  id: 88,
@@ -1764,7 +1766,7 @@ var products = [
1764
1766
  "USDC"
1765
1767
  ],
1766
1768
  isPrivate: true,
1767
- timestamp: 1684312727
1769
+ timestamp: 1704980411
1768
1770
  },
1769
1771
  {
1770
1772
  id: 89,
@@ -2033,7 +2035,7 @@ var products = [
2033
2035
  "USDC"
2034
2036
  ],
2035
2037
  isPrivate: true,
2036
- timestamp: 1689782903
2038
+ timestamp: 1704980411
2037
2039
  },
2038
2040
  {
2039
2041
  id: 105,
@@ -2051,7 +2053,7 @@ var products = [
2051
2053
  "USDC"
2052
2054
  ],
2053
2055
  isPrivate: true,
2054
- timestamp: 1689782903
2056
+ timestamp: 1704980411
2055
2057
  },
2056
2058
  {
2057
2059
  id: 106,
@@ -2573,7 +2575,7 @@ var products = [
2573
2575
  "ETH"
2574
2576
  ],
2575
2577
  isPrivate: false,
2576
- timestamp: 1709310707
2578
+ timestamp: 1709311739
2577
2579
  },
2578
2580
  {
2579
2581
  id: 137,
@@ -2655,7 +2657,7 @@ var products = [
2655
2657
  "USDC"
2656
2658
  ],
2657
2659
  isPrivate: false,
2658
- timestamp: 1710254231
2660
+ timestamp: 1715349875
2659
2661
  },
2660
2662
  {
2661
2663
  id: 142,
@@ -2725,7 +2727,7 @@ var products = [
2725
2727
  "USDC"
2726
2728
  ],
2727
2729
  isPrivate: false,
2728
- timestamp: 1715349875
2730
+ timestamp: 1710254231
2729
2731
  },
2730
2732
  {
2731
2733
  id: 146,
@@ -2811,7 +2813,7 @@ var products = [
2811
2813
  "ETH"
2812
2814
  ],
2813
2815
  isPrivate: false,
2814
- timestamp: 1711473767
2816
+ timestamp: 1715349875
2815
2817
  },
2816
2818
  {
2817
2819
  id: 151,
@@ -2846,7 +2848,7 @@ var products = [
2846
2848
  "USDC"
2847
2849
  ],
2848
2850
  isPrivate: false,
2849
- timestamp: 1711473767
2851
+ timestamp: 1715349875
2850
2852
  },
2851
2853
  {
2852
2854
  id: 153,
@@ -2862,7 +2864,7 @@ var products = [
2862
2864
  "ETH"
2863
2865
  ],
2864
2866
  isPrivate: false,
2865
- timestamp: 1711473767
2867
+ timestamp: 1715349875
2866
2868
  },
2867
2869
  {
2868
2870
  id: 154,
@@ -2878,7 +2880,7 @@ var products = [
2878
2880
  "ETH"
2879
2881
  ],
2880
2882
  isPrivate: false,
2881
- timestamp: 1715349875
2883
+ timestamp: 1711473767
2882
2884
  },
2883
2885
  {
2884
2886
  id: 155,
@@ -2894,7 +2896,7 @@ var products = [
2894
2896
  "ETH"
2895
2897
  ],
2896
2898
  isPrivate: false,
2897
- timestamp: 1715349875
2899
+ timestamp: 1711473767
2898
2900
  },
2899
2901
  {
2900
2902
  id: 156,
@@ -2945,7 +2947,7 @@ var products = [
2945
2947
  "ETH"
2946
2948
  ],
2947
2949
  isPrivate: false,
2948
- timestamp: 1712244083
2950
+ timestamp: 1715349875
2949
2951
  },
2950
2952
  {
2951
2953
  id: 159,
@@ -2979,7 +2981,7 @@ var products = [
2979
2981
  "ETH"
2980
2982
  ],
2981
2983
  isPrivate: false,
2982
- timestamp: 1713185771
2984
+ timestamp: 1715349875
2983
2985
  },
2984
2986
  {
2985
2987
  id: 161,
@@ -2995,7 +2997,7 @@ var products = [
2995
2997
  "ETH"
2996
2998
  ],
2997
2999
  isPrivate: false,
2998
- timestamp: 1713185771
3000
+ timestamp: 1715349875
2999
3001
  },
3000
3002
  {
3001
3003
  id: 162,
@@ -3244,6 +3246,7 @@ type LogoName = (typeof allLogoNames)[number];
3244
3246
  declare const calculatePremiumWithCommissionAndSlippage: (premium: bigint, commission?: number, slippage?: number) => bigint;
3245
3247
 
3246
3248
  declare const nexusSdk: {
3249
+ allPrivateProductsIds: number[];
3247
3250
  CoverAsset: typeof CoverAsset;
3248
3251
  CoverId: typeof CoverId;
3249
3252
  COMMISSION_DENOMINATOR: 10000;
@@ -40216,4 +40219,4 @@ declare const nexusSdk: {
40216
40219
  }];
40217
40220
  };
40218
40221
 
40219
- 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 };
40222
+ 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, allPrivateProductsIds, calculateEthForExactNxm, calculateExactEthForNxm, calculateExactNxmForEth, calculateNxmForExactEth, calculatePremiumWithCommissionAndSlippage, calculatePriceImpactA, calculatePriceImpactB, calculateSpotPrice, categoryLabelByEnum, nexusSdk as default, getQuoteAndBuyCoverInputs, productCategoryMap, productTypes, products };