@nexusmutual/sdk 0.5.5 → 0.5.7
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.
- package/dist/data/product-types.json +7 -0
- package/dist/data/products.json +4 -4
- package/dist/index.d.mts +76 -6
- package/dist/index.d.ts +76 -6
- package/dist/index.js +22 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +21 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -124,5 +124,12 @@
|
|
|
124
124
|
"name": "Follow On Cover",
|
|
125
125
|
"gracePeriod": 8640000,
|
|
126
126
|
"claimMethod": 0
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"id": 18,
|
|
130
|
+
"coverWordingURL": "https://api.nexusmutual.io/ipfs/QmRzT2MF4aWQs2UJZBTHU8gFnPsEGQWRQ75zwQP4dh514Y",
|
|
131
|
+
"name": "Immunefi Bug Bounty Cover",
|
|
132
|
+
"gracePeriod": 3024000,
|
|
133
|
+
"claimMethod": 0
|
|
127
134
|
}
|
|
128
135
|
]
|
package/dist/data/products.json
CHANGED
|
@@ -2647,7 +2647,7 @@
|
|
|
2647
2647
|
"ETH"
|
|
2648
2648
|
],
|
|
2649
2649
|
"isPrivate": false,
|
|
2650
|
-
"timestamp":
|
|
2650
|
+
"timestamp": 1723127459
|
|
2651
2651
|
},
|
|
2652
2652
|
{
|
|
2653
2653
|
"id": 151,
|
|
@@ -3980,7 +3980,7 @@
|
|
|
3980
3980
|
"cbBTC"
|
|
3981
3981
|
],
|
|
3982
3982
|
"isPrivate": true,
|
|
3983
|
-
"timestamp":
|
|
3983
|
+
"timestamp": 1728564167
|
|
3984
3984
|
},
|
|
3985
3985
|
{
|
|
3986
3986
|
"id": 228,
|
|
@@ -3998,7 +3998,7 @@
|
|
|
3998
3998
|
"cbBTC"
|
|
3999
3999
|
],
|
|
4000
4000
|
"isPrivate": false,
|
|
4001
|
-
"timestamp":
|
|
4001
|
+
"timestamp": 1726227311
|
|
4002
4002
|
},
|
|
4003
4003
|
{
|
|
4004
4004
|
"id": 229,
|
|
@@ -4016,7 +4016,7 @@
|
|
|
4016
4016
|
"cbBTC"
|
|
4017
4017
|
],
|
|
4018
4018
|
"isPrivate": false,
|
|
4019
|
-
"timestamp":
|
|
4019
|
+
"timestamp": 1731583079
|
|
4020
4020
|
},
|
|
4021
4021
|
{
|
|
4022
4022
|
"id": 230,
|
package/dist/index.d.mts
CHANGED
|
@@ -198,7 +198,8 @@ declare enum ProductTypes {
|
|
|
198
198
|
fundPortfolio = 14,
|
|
199
199
|
sherlockBugBounty = 15,
|
|
200
200
|
deFiPass = 16,
|
|
201
|
-
followOn = 17
|
|
201
|
+
followOn = 17,
|
|
202
|
+
immunefiBugBounty = 18
|
|
202
203
|
}
|
|
203
204
|
|
|
204
205
|
var products = [
|
|
@@ -2964,7 +2965,7 @@ var products = [
|
|
|
2964
2965
|
"ETH"
|
|
2965
2966
|
],
|
|
2966
2967
|
isPrivate: false,
|
|
2967
|
-
timestamp:
|
|
2968
|
+
timestamp: 1723127459
|
|
2968
2969
|
},
|
|
2969
2970
|
{
|
|
2970
2971
|
id: 151,
|
|
@@ -4314,7 +4315,7 @@ var products = [
|
|
|
4314
4315
|
"cbBTC"
|
|
4315
4316
|
],
|
|
4316
4317
|
isPrivate: true,
|
|
4317
|
-
timestamp:
|
|
4318
|
+
timestamp: 1728564167
|
|
4318
4319
|
},
|
|
4319
4320
|
{
|
|
4320
4321
|
id: 228,
|
|
@@ -4332,7 +4333,7 @@ var products = [
|
|
|
4332
4333
|
"cbBTC"
|
|
4333
4334
|
],
|
|
4334
4335
|
isPrivate: false,
|
|
4335
|
-
timestamp:
|
|
4336
|
+
timestamp: 1726227311
|
|
4336
4337
|
},
|
|
4337
4338
|
{
|
|
4338
4339
|
id: 229,
|
|
@@ -4350,7 +4351,7 @@ var products = [
|
|
|
4350
4351
|
"cbBTC"
|
|
4351
4352
|
],
|
|
4352
4353
|
isPrivate: false,
|
|
4353
|
-
timestamp:
|
|
4354
|
+
timestamp: 1731583079
|
|
4354
4355
|
},
|
|
4355
4356
|
{
|
|
4356
4357
|
id: 230,
|
|
@@ -4737,6 +4738,13 @@ var productTypes = [
|
|
|
4737
4738
|
name: "Follow On Cover",
|
|
4738
4739
|
gracePeriod: 8640000,
|
|
4739
4740
|
claimMethod: 0
|
|
4741
|
+
},
|
|
4742
|
+
{
|
|
4743
|
+
id: 18,
|
|
4744
|
+
coverWordingURL: "https://api.nexusmutual.io/ipfs/QmRzT2MF4aWQs2UJZBTHU8gFnPsEGQWRQ75zwQP4dh514Y",
|
|
4745
|
+
name: "Immunefi Bug Bounty Cover",
|
|
4746
|
+
gracePeriod: 3024000,
|
|
4747
|
+
claimMethod: 0
|
|
4740
4748
|
}
|
|
4741
4749
|
];
|
|
4742
4750
|
|
|
@@ -42536,4 +42544,66 @@ declare const nexusSdk: {
|
|
|
42536
42544
|
}];
|
|
42537
42545
|
};
|
|
42538
42546
|
|
|
42539
|
-
|
|
42547
|
+
declare const productsMap: Record<number, {
|
|
42548
|
+
id: number;
|
|
42549
|
+
name: string;
|
|
42550
|
+
productType: number;
|
|
42551
|
+
isDeprecated: boolean;
|
|
42552
|
+
useFixedPrice: boolean;
|
|
42553
|
+
logo: string;
|
|
42554
|
+
metadata: {
|
|
42555
|
+
exclusions?: undefined;
|
|
42556
|
+
schedule?: undefined;
|
|
42557
|
+
annex?: undefined;
|
|
42558
|
+
};
|
|
42559
|
+
coverAssets: string[];
|
|
42560
|
+
isPrivate: boolean;
|
|
42561
|
+
timestamp: number;
|
|
42562
|
+
} | {
|
|
42563
|
+
id: number;
|
|
42564
|
+
name: string;
|
|
42565
|
+
productType: number;
|
|
42566
|
+
isDeprecated: boolean;
|
|
42567
|
+
useFixedPrice: boolean;
|
|
42568
|
+
logo: string;
|
|
42569
|
+
metadata: {
|
|
42570
|
+
exclusions: string[];
|
|
42571
|
+
schedule?: undefined;
|
|
42572
|
+
annex?: undefined;
|
|
42573
|
+
};
|
|
42574
|
+
coverAssets: string[];
|
|
42575
|
+
isPrivate: boolean;
|
|
42576
|
+
timestamp: number;
|
|
42577
|
+
} | {
|
|
42578
|
+
id: number;
|
|
42579
|
+
name: string;
|
|
42580
|
+
productType: number;
|
|
42581
|
+
isDeprecated: boolean;
|
|
42582
|
+
useFixedPrice: boolean;
|
|
42583
|
+
logo: string;
|
|
42584
|
+
metadata: {
|
|
42585
|
+
schedule: string;
|
|
42586
|
+
exclusions?: undefined;
|
|
42587
|
+
annex?: undefined;
|
|
42588
|
+
};
|
|
42589
|
+
coverAssets: string[];
|
|
42590
|
+
isPrivate: boolean;
|
|
42591
|
+
timestamp: number;
|
|
42592
|
+
} | {
|
|
42593
|
+
id: number;
|
|
42594
|
+
name: string;
|
|
42595
|
+
productType: number;
|
|
42596
|
+
isDeprecated: boolean;
|
|
42597
|
+
useFixedPrice: boolean;
|
|
42598
|
+
logo: string;
|
|
42599
|
+
metadata: {
|
|
42600
|
+
annex: string;
|
|
42601
|
+
exclusions?: undefined;
|
|
42602
|
+
schedule?: undefined;
|
|
42603
|
+
};
|
|
42604
|
+
coverAssets: string[];
|
|
42605
|
+
isPrivate: boolean;
|
|
42606
|
+
timestamp: number;
|
|
42607
|
+
}>;
|
|
42608
|
+
|
|
42609
|
+
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
|
@@ -198,7 +198,8 @@ declare enum ProductTypes {
|
|
|
198
198
|
fundPortfolio = 14,
|
|
199
199
|
sherlockBugBounty = 15,
|
|
200
200
|
deFiPass = 16,
|
|
201
|
-
followOn = 17
|
|
201
|
+
followOn = 17,
|
|
202
|
+
immunefiBugBounty = 18
|
|
202
203
|
}
|
|
203
204
|
|
|
204
205
|
var products = [
|
|
@@ -2964,7 +2965,7 @@ var products = [
|
|
|
2964
2965
|
"ETH"
|
|
2965
2966
|
],
|
|
2966
2967
|
isPrivate: false,
|
|
2967
|
-
timestamp:
|
|
2968
|
+
timestamp: 1723127459
|
|
2968
2969
|
},
|
|
2969
2970
|
{
|
|
2970
2971
|
id: 151,
|
|
@@ -4314,7 +4315,7 @@ var products = [
|
|
|
4314
4315
|
"cbBTC"
|
|
4315
4316
|
],
|
|
4316
4317
|
isPrivate: true,
|
|
4317
|
-
timestamp:
|
|
4318
|
+
timestamp: 1728564167
|
|
4318
4319
|
},
|
|
4319
4320
|
{
|
|
4320
4321
|
id: 228,
|
|
@@ -4332,7 +4333,7 @@ var products = [
|
|
|
4332
4333
|
"cbBTC"
|
|
4333
4334
|
],
|
|
4334
4335
|
isPrivate: false,
|
|
4335
|
-
timestamp:
|
|
4336
|
+
timestamp: 1726227311
|
|
4336
4337
|
},
|
|
4337
4338
|
{
|
|
4338
4339
|
id: 229,
|
|
@@ -4350,7 +4351,7 @@ var products = [
|
|
|
4350
4351
|
"cbBTC"
|
|
4351
4352
|
],
|
|
4352
4353
|
isPrivate: false,
|
|
4353
|
-
timestamp:
|
|
4354
|
+
timestamp: 1731583079
|
|
4354
4355
|
},
|
|
4355
4356
|
{
|
|
4356
4357
|
id: 230,
|
|
@@ -4737,6 +4738,13 @@ var productTypes = [
|
|
|
4737
4738
|
name: "Follow On Cover",
|
|
4738
4739
|
gracePeriod: 8640000,
|
|
4739
4740
|
claimMethod: 0
|
|
4741
|
+
},
|
|
4742
|
+
{
|
|
4743
|
+
id: 18,
|
|
4744
|
+
coverWordingURL: "https://api.nexusmutual.io/ipfs/QmRzT2MF4aWQs2UJZBTHU8gFnPsEGQWRQ75zwQP4dh514Y",
|
|
4745
|
+
name: "Immunefi Bug Bounty Cover",
|
|
4746
|
+
gracePeriod: 3024000,
|
|
4747
|
+
claimMethod: 0
|
|
4740
4748
|
}
|
|
4741
4749
|
];
|
|
4742
4750
|
|
|
@@ -42536,4 +42544,66 @@ declare const nexusSdk: {
|
|
|
42536
42544
|
}];
|
|
42537
42545
|
};
|
|
42538
42546
|
|
|
42539
|
-
|
|
42547
|
+
declare const productsMap: Record<number, {
|
|
42548
|
+
id: number;
|
|
42549
|
+
name: string;
|
|
42550
|
+
productType: number;
|
|
42551
|
+
isDeprecated: boolean;
|
|
42552
|
+
useFixedPrice: boolean;
|
|
42553
|
+
logo: string;
|
|
42554
|
+
metadata: {
|
|
42555
|
+
exclusions?: undefined;
|
|
42556
|
+
schedule?: undefined;
|
|
42557
|
+
annex?: undefined;
|
|
42558
|
+
};
|
|
42559
|
+
coverAssets: string[];
|
|
42560
|
+
isPrivate: boolean;
|
|
42561
|
+
timestamp: number;
|
|
42562
|
+
} | {
|
|
42563
|
+
id: number;
|
|
42564
|
+
name: string;
|
|
42565
|
+
productType: number;
|
|
42566
|
+
isDeprecated: boolean;
|
|
42567
|
+
useFixedPrice: boolean;
|
|
42568
|
+
logo: string;
|
|
42569
|
+
metadata: {
|
|
42570
|
+
exclusions: string[];
|
|
42571
|
+
schedule?: undefined;
|
|
42572
|
+
annex?: undefined;
|
|
42573
|
+
};
|
|
42574
|
+
coverAssets: string[];
|
|
42575
|
+
isPrivate: boolean;
|
|
42576
|
+
timestamp: number;
|
|
42577
|
+
} | {
|
|
42578
|
+
id: number;
|
|
42579
|
+
name: string;
|
|
42580
|
+
productType: number;
|
|
42581
|
+
isDeprecated: boolean;
|
|
42582
|
+
useFixedPrice: boolean;
|
|
42583
|
+
logo: string;
|
|
42584
|
+
metadata: {
|
|
42585
|
+
schedule: string;
|
|
42586
|
+
exclusions?: undefined;
|
|
42587
|
+
annex?: undefined;
|
|
42588
|
+
};
|
|
42589
|
+
coverAssets: string[];
|
|
42590
|
+
isPrivate: boolean;
|
|
42591
|
+
timestamp: number;
|
|
42592
|
+
} | {
|
|
42593
|
+
id: number;
|
|
42594
|
+
name: string;
|
|
42595
|
+
productType: number;
|
|
42596
|
+
isDeprecated: boolean;
|
|
42597
|
+
useFixedPrice: boolean;
|
|
42598
|
+
logo: string;
|
|
42599
|
+
metadata: {
|
|
42600
|
+
annex: string;
|
|
42601
|
+
exclusions?: undefined;
|
|
42602
|
+
schedule?: undefined;
|
|
42603
|
+
};
|
|
42604
|
+
coverAssets: string[];
|
|
42605
|
+
isPrivate: boolean;
|
|
42606
|
+
timestamp: number;
|
|
42607
|
+
}>;
|
|
42608
|
+
|
|
42609
|
+
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"));
|
|
@@ -1071,6 +1072,13 @@ var product_types_default = [
|
|
|
1071
1072
|
name: "Follow On Cover",
|
|
1072
1073
|
gracePeriod: 864e4,
|
|
1073
1074
|
claimMethod: 0
|
|
1075
|
+
},
|
|
1076
|
+
{
|
|
1077
|
+
id: 18,
|
|
1078
|
+
coverWordingURL: "https://api.nexusmutual.io/ipfs/QmRzT2MF4aWQs2UJZBTHU8gFnPsEGQWRQ75zwQP4dh514Y",
|
|
1079
|
+
name: "Immunefi Bug Bounty Cover",
|
|
1080
|
+
gracePeriod: 3024e3,
|
|
1081
|
+
claimMethod: 0
|
|
1074
1082
|
}
|
|
1075
1083
|
];
|
|
1076
1084
|
|
|
@@ -3724,7 +3732,7 @@ var products_default = [
|
|
|
3724
3732
|
"ETH"
|
|
3725
3733
|
],
|
|
3726
3734
|
isPrivate: false,
|
|
3727
|
-
timestamp:
|
|
3735
|
+
timestamp: 1723127459
|
|
3728
3736
|
},
|
|
3729
3737
|
{
|
|
3730
3738
|
id: 151,
|
|
@@ -5057,7 +5065,7 @@ var products_default = [
|
|
|
5057
5065
|
"cbBTC"
|
|
5058
5066
|
],
|
|
5059
5067
|
isPrivate: true,
|
|
5060
|
-
timestamp:
|
|
5068
|
+
timestamp: 1728564167
|
|
5061
5069
|
},
|
|
5062
5070
|
{
|
|
5063
5071
|
id: 228,
|
|
@@ -5075,7 +5083,7 @@ var products_default = [
|
|
|
5075
5083
|
"cbBTC"
|
|
5076
5084
|
],
|
|
5077
5085
|
isPrivate: false,
|
|
5078
|
-
timestamp:
|
|
5086
|
+
timestamp: 1726227311
|
|
5079
5087
|
},
|
|
5080
5088
|
{
|
|
5081
5089
|
id: 229,
|
|
@@ -5093,7 +5101,7 @@ var products_default = [
|
|
|
5093
5101
|
"cbBTC"
|
|
5094
5102
|
],
|
|
5095
5103
|
isPrivate: false,
|
|
5096
|
-
timestamp:
|
|
5104
|
+
timestamp: 1731583079
|
|
5097
5105
|
},
|
|
5098
5106
|
{
|
|
5099
5107
|
id: 230,
|
|
@@ -5972,6 +5980,7 @@ var ProductTypes = /* @__PURE__ */ ((ProductTypes2) => {
|
|
|
5972
5980
|
ProductTypes2[ProductTypes2["sherlockBugBounty"] = 15] = "sherlockBugBounty";
|
|
5973
5981
|
ProductTypes2[ProductTypes2["deFiPass"] = 16] = "deFiPass";
|
|
5974
5982
|
ProductTypes2[ProductTypes2["followOn"] = 17] = "followOn";
|
|
5983
|
+
ProductTypes2[ProductTypes2["immunefiBugBounty"] = 18] = "immunefiBugBounty";
|
|
5975
5984
|
return ProductTypes2;
|
|
5976
5985
|
})(ProductTypes || {});
|
|
5977
5986
|
|
|
@@ -5988,6 +5997,13 @@ var nexusSdk = {
|
|
|
5988
5997
|
...quote_exports,
|
|
5989
5998
|
...constants_exports
|
|
5990
5999
|
};
|
|
6000
|
+
var productsMap = nexusSdk.products.reduce(
|
|
6001
|
+
(acc, product) => ({
|
|
6002
|
+
...acc,
|
|
6003
|
+
[product.id]: product
|
|
6004
|
+
}),
|
|
6005
|
+
{}
|
|
6006
|
+
);
|
|
5991
6007
|
var src_default = nexusSdk;
|
|
5992
6008
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5993
6009
|
0 && (module.exports = {
|
|
@@ -6019,6 +6035,7 @@ var src_default = nexusSdk;
|
|
|
6019
6035
|
productCategoryMap,
|
|
6020
6036
|
productTypes,
|
|
6021
6037
|
products,
|
|
6038
|
+
productsMap,
|
|
6022
6039
|
...require("@nexusmutual/deployments")
|
|
6023
6040
|
});
|
|
6024
6041
|
//# sourceMappingURL=index.js.map
|