@nexusmutual/sdk 0.5.5 → 0.5.6

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.
@@ -816,7 +816,7 @@
816
816
  "ETH"
817
817
  ],
818
818
  "isPrivate": false,
819
- "timestamp": 1726758407
819
+ "timestamp": 1728046187
820
820
  },
821
821
  {
822
822
  "id": 46,
@@ -2647,7 +2647,7 @@
2647
2647
  "ETH"
2648
2648
  ],
2649
2649
  "isPrivate": false,
2650
- "timestamp": 1731583079
2650
+ "timestamp": 1723127459
2651
2651
  },
2652
2652
  {
2653
2653
  "id": 151,
@@ -2888,7 +2888,7 @@
2888
2888
  "cbBTC"
2889
2889
  ],
2890
2890
  "isPrivate": true,
2891
- "timestamp": 1728564167
2891
+ "timestamp": 1725537203
2892
2892
  },
2893
2893
  {
2894
2894
  "id": 165,
@@ -3868,7 +3868,7 @@
3868
3868
  "cbBTC"
3869
3869
  ],
3870
3870
  "isPrivate": false,
3871
- "timestamp": 1724341943
3871
+ "timestamp": 1731583079
3872
3872
  },
3873
3873
  {
3874
3874
  "id": 222,
@@ -3925,7 +3925,7 @@
3925
3925
  "cbBTC"
3926
3926
  ],
3927
3927
  "isPrivate": false,
3928
- "timestamp": 1724341943
3928
+ "timestamp": 1726227311
3929
3929
  },
3930
3930
  {
3931
3931
  "id": 225,
@@ -3980,7 +3980,7 @@
3980
3980
  "cbBTC"
3981
3981
  ],
3982
3982
  "isPrivate": true,
3983
- "timestamp": 1725264851
3983
+ "timestamp": 1728564167
3984
3984
  },
3985
3985
  {
3986
3986
  "id": 228,
@@ -4016,7 +4016,7 @@
4016
4016
  "cbBTC"
4017
4017
  ],
4018
4018
  "isPrivate": false,
4019
- "timestamp": 1728046187
4019
+ "timestamp": 1728564167
4020
4020
  },
4021
4021
  {
4022
4022
  "id": 230,
package/dist/index.d.mts CHANGED
@@ -1056,7 +1056,7 @@ var products = [
1056
1056
  "ETH"
1057
1057
  ],
1058
1058
  isPrivate: false,
1059
- timestamp: 1726758407
1059
+ timestamp: 1728046187
1060
1060
  },
1061
1061
  {
1062
1062
  id: 46,
@@ -2964,7 +2964,7 @@ var products = [
2964
2964
  "ETH"
2965
2965
  ],
2966
2966
  isPrivate: false,
2967
- timestamp: 1731583079
2967
+ timestamp: 1723127459
2968
2968
  },
2969
2969
  {
2970
2970
  id: 151,
@@ -3206,7 +3206,7 @@ var products = [
3206
3206
  "cbBTC"
3207
3207
  ],
3208
3208
  isPrivate: true,
3209
- timestamp: 1728564167
3209
+ timestamp: 1725537203
3210
3210
  },
3211
3211
  {
3212
3212
  id: 165,
@@ -4201,7 +4201,7 @@ var products = [
4201
4201
  "cbBTC"
4202
4202
  ],
4203
4203
  isPrivate: false,
4204
- timestamp: 1724341943
4204
+ timestamp: 1731583079
4205
4205
  },
4206
4206
  {
4207
4207
  id: 222,
@@ -4258,7 +4258,7 @@ var products = [
4258
4258
  "cbBTC"
4259
4259
  ],
4260
4260
  isPrivate: false,
4261
- timestamp: 1724341943
4261
+ timestamp: 1726227311
4262
4262
  },
4263
4263
  {
4264
4264
  id: 225,
@@ -4314,7 +4314,7 @@ var products = [
4314
4314
  "cbBTC"
4315
4315
  ],
4316
4316
  isPrivate: true,
4317
- timestamp: 1725264851
4317
+ timestamp: 1728564167
4318
4318
  },
4319
4319
  {
4320
4320
  id: 228,
@@ -4350,7 +4350,7 @@ var products = [
4350
4350
  "cbBTC"
4351
4351
  ],
4352
4352
  isPrivate: false,
4353
- timestamp: 1728046187
4353
+ timestamp: 1728564167
4354
4354
  },
4355
4355
  {
4356
4356
  id: 230,
@@ -42536,4 +42536,66 @@ declare const nexusSdk: {
42536
42536
  }];
42537
42537
  };
42538
42538
 
42539
- 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, ProductTypes, 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 };
42539
+ declare const productsMap: Record<number, {
42540
+ id: number;
42541
+ name: string;
42542
+ productType: number;
42543
+ isDeprecated: boolean;
42544
+ useFixedPrice: boolean;
42545
+ logo: string;
42546
+ metadata: {
42547
+ exclusions?: undefined;
42548
+ schedule?: undefined;
42549
+ annex?: undefined;
42550
+ };
42551
+ coverAssets: string[];
42552
+ isPrivate: boolean;
42553
+ timestamp: number;
42554
+ } | {
42555
+ id: number;
42556
+ name: string;
42557
+ productType: number;
42558
+ isDeprecated: boolean;
42559
+ useFixedPrice: boolean;
42560
+ logo: string;
42561
+ metadata: {
42562
+ exclusions: string[];
42563
+ schedule?: undefined;
42564
+ annex?: undefined;
42565
+ };
42566
+ coverAssets: string[];
42567
+ isPrivate: boolean;
42568
+ timestamp: number;
42569
+ } | {
42570
+ id: number;
42571
+ name: string;
42572
+ productType: number;
42573
+ isDeprecated: boolean;
42574
+ useFixedPrice: boolean;
42575
+ logo: string;
42576
+ metadata: {
42577
+ schedule: string;
42578
+ exclusions?: undefined;
42579
+ annex?: undefined;
42580
+ };
42581
+ coverAssets: string[];
42582
+ isPrivate: boolean;
42583
+ timestamp: number;
42584
+ } | {
42585
+ id: number;
42586
+ name: string;
42587
+ productType: number;
42588
+ isDeprecated: boolean;
42589
+ useFixedPrice: boolean;
42590
+ logo: string;
42591
+ metadata: {
42592
+ annex: string;
42593
+ exclusions?: undefined;
42594
+ schedule?: undefined;
42595
+ };
42596
+ coverAssets: string[];
42597
+ isPrivate: boolean;
42598
+ timestamp: number;
42599
+ }>;
42600
+
42601
+ 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, ProductTypes, 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, productsMap };
package/dist/index.d.ts CHANGED
@@ -1056,7 +1056,7 @@ var products = [
1056
1056
  "ETH"
1057
1057
  ],
1058
1058
  isPrivate: false,
1059
- timestamp: 1726758407
1059
+ timestamp: 1728046187
1060
1060
  },
1061
1061
  {
1062
1062
  id: 46,
@@ -2964,7 +2964,7 @@ var products = [
2964
2964
  "ETH"
2965
2965
  ],
2966
2966
  isPrivate: false,
2967
- timestamp: 1731583079
2967
+ timestamp: 1723127459
2968
2968
  },
2969
2969
  {
2970
2970
  id: 151,
@@ -3206,7 +3206,7 @@ var products = [
3206
3206
  "cbBTC"
3207
3207
  ],
3208
3208
  isPrivate: true,
3209
- timestamp: 1728564167
3209
+ timestamp: 1725537203
3210
3210
  },
3211
3211
  {
3212
3212
  id: 165,
@@ -4201,7 +4201,7 @@ var products = [
4201
4201
  "cbBTC"
4202
4202
  ],
4203
4203
  isPrivate: false,
4204
- timestamp: 1724341943
4204
+ timestamp: 1731583079
4205
4205
  },
4206
4206
  {
4207
4207
  id: 222,
@@ -4258,7 +4258,7 @@ var products = [
4258
4258
  "cbBTC"
4259
4259
  ],
4260
4260
  isPrivate: false,
4261
- timestamp: 1724341943
4261
+ timestamp: 1726227311
4262
4262
  },
4263
4263
  {
4264
4264
  id: 225,
@@ -4314,7 +4314,7 @@ var products = [
4314
4314
  "cbBTC"
4315
4315
  ],
4316
4316
  isPrivate: true,
4317
- timestamp: 1725264851
4317
+ timestamp: 1728564167
4318
4318
  },
4319
4319
  {
4320
4320
  id: 228,
@@ -4350,7 +4350,7 @@ var products = [
4350
4350
  "cbBTC"
4351
4351
  ],
4352
4352
  isPrivate: false,
4353
- timestamp: 1728046187
4353
+ timestamp: 1728564167
4354
4354
  },
4355
4355
  {
4356
4356
  id: 230,
@@ -42536,4 +42536,66 @@ declare const nexusSdk: {
42536
42536
  }];
42537
42537
  };
42538
42538
 
42539
- 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, ProductTypes, 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 };
42539
+ declare const productsMap: Record<number, {
42540
+ id: number;
42541
+ name: string;
42542
+ productType: number;
42543
+ isDeprecated: boolean;
42544
+ useFixedPrice: boolean;
42545
+ logo: string;
42546
+ metadata: {
42547
+ exclusions?: undefined;
42548
+ schedule?: undefined;
42549
+ annex?: undefined;
42550
+ };
42551
+ coverAssets: string[];
42552
+ isPrivate: boolean;
42553
+ timestamp: number;
42554
+ } | {
42555
+ id: number;
42556
+ name: string;
42557
+ productType: number;
42558
+ isDeprecated: boolean;
42559
+ useFixedPrice: boolean;
42560
+ logo: string;
42561
+ metadata: {
42562
+ exclusions: string[];
42563
+ schedule?: undefined;
42564
+ annex?: undefined;
42565
+ };
42566
+ coverAssets: string[];
42567
+ isPrivate: boolean;
42568
+ timestamp: number;
42569
+ } | {
42570
+ id: number;
42571
+ name: string;
42572
+ productType: number;
42573
+ isDeprecated: boolean;
42574
+ useFixedPrice: boolean;
42575
+ logo: string;
42576
+ metadata: {
42577
+ schedule: string;
42578
+ exclusions?: undefined;
42579
+ annex?: undefined;
42580
+ };
42581
+ coverAssets: string[];
42582
+ isPrivate: boolean;
42583
+ timestamp: number;
42584
+ } | {
42585
+ id: number;
42586
+ name: string;
42587
+ productType: number;
42588
+ isDeprecated: boolean;
42589
+ useFixedPrice: boolean;
42590
+ logo: string;
42591
+ metadata: {
42592
+ annex: string;
42593
+ exclusions?: undefined;
42594
+ schedule?: undefined;
42595
+ };
42596
+ coverAssets: string[];
42597
+ isPrivate: boolean;
42598
+ timestamp: number;
42599
+ }>;
42600
+
42601
+ 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, ProductTypes, 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, productsMap };
package/dist/index.js CHANGED
@@ -160,7 +160,8 @@ __export(src_exports, {
160
160
  getQuoteAndBuyCoverInputs: () => getQuoteAndBuyCoverInputs,
161
161
  productCategoryMap: () => productCategoryMap,
162
162
  productTypes: () => product_types_default,
163
- products: () => products_default
163
+ products: () => products_default,
164
+ productsMap: () => productsMap
164
165
  });
165
166
  module.exports = __toCommonJS(src_exports);
166
167
  var deployments = __toESM(require("@nexusmutual/deployments"));
@@ -1893,7 +1894,7 @@ var products_default = [
1893
1894
  "ETH"
1894
1895
  ],
1895
1896
  isPrivate: false,
1896
- timestamp: 1726758407
1897
+ timestamp: 1728046187
1897
1898
  },
1898
1899
  {
1899
1900
  id: 46,
@@ -3724,7 +3725,7 @@ var products_default = [
3724
3725
  "ETH"
3725
3726
  ],
3726
3727
  isPrivate: false,
3727
- timestamp: 1731583079
3728
+ timestamp: 1723127459
3728
3729
  },
3729
3730
  {
3730
3731
  id: 151,
@@ -3965,7 +3966,7 @@ var products_default = [
3965
3966
  "cbBTC"
3966
3967
  ],
3967
3968
  isPrivate: true,
3968
- timestamp: 1728564167
3969
+ timestamp: 1725537203
3969
3970
  },
3970
3971
  {
3971
3972
  id: 165,
@@ -4945,7 +4946,7 @@ var products_default = [
4945
4946
  "cbBTC"
4946
4947
  ],
4947
4948
  isPrivate: false,
4948
- timestamp: 1724341943
4949
+ timestamp: 1731583079
4949
4950
  },
4950
4951
  {
4951
4952
  id: 222,
@@ -5002,7 +5003,7 @@ var products_default = [
5002
5003
  "cbBTC"
5003
5004
  ],
5004
5005
  isPrivate: false,
5005
- timestamp: 1724341943
5006
+ timestamp: 1726227311
5006
5007
  },
5007
5008
  {
5008
5009
  id: 225,
@@ -5057,7 +5058,7 @@ var products_default = [
5057
5058
  "cbBTC"
5058
5059
  ],
5059
5060
  isPrivate: true,
5060
- timestamp: 1725264851
5061
+ timestamp: 1728564167
5061
5062
  },
5062
5063
  {
5063
5064
  id: 228,
@@ -5093,7 +5094,7 @@ var products_default = [
5093
5094
  "cbBTC"
5094
5095
  ],
5095
5096
  isPrivate: false,
5096
- timestamp: 1728046187
5097
+ timestamp: 1728564167
5097
5098
  },
5098
5099
  {
5099
5100
  id: 230,
@@ -5988,6 +5989,13 @@ var nexusSdk = {
5988
5989
  ...quote_exports,
5989
5990
  ...constants_exports
5990
5991
  };
5992
+ var productsMap = nexusSdk.products.reduce(
5993
+ (acc, product) => ({
5994
+ ...acc,
5995
+ [product.id]: product
5996
+ }),
5997
+ {}
5998
+ );
5991
5999
  var src_default = nexusSdk;
5992
6000
  // Annotate the CommonJS export names for ESM import in node:
5993
6001
  0 && (module.exports = {
@@ -6019,6 +6027,7 @@ var src_default = nexusSdk;
6019
6027
  productCategoryMap,
6020
6028
  productTypes,
6021
6029
  products,
6030
+ productsMap,
6022
6031
  ...require("@nexusmutual/deployments")
6023
6032
  });
6024
6033
  //# sourceMappingURL=index.js.map