@nexusmutual/sdk 0.4.10 → 0.4.12
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 +1 -1
- package/dist/data/products.json +54 -2
- package/dist/index.d.mts +84 -11
- package/dist/index.d.ts +84 -11
- package/dist/index.js +94 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +93 -5
- package/dist/index.mjs.map +1 -1
- package/dist/logos/base.svg +1 -0
- package/dist/logos/beefy-velodrome.svg +1 -0
- package/dist/logos/pancake-swap.svg +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -112,8 +112,10 @@ var require_privateProducts = __commonJS({
|
|
|
112
112
|
// Dialectic Moonphase
|
|
113
113
|
196,
|
|
114
114
|
// Dialectic Chronograph
|
|
115
|
-
220
|
|
115
|
+
220,
|
|
116
116
|
// Flat Money (Sherlock)
|
|
117
|
+
227
|
|
118
|
+
// Base DeFi Pass
|
|
117
119
|
];
|
|
118
120
|
module2.exports = {
|
|
119
121
|
allPrivateProductsIds: allPrivateProductsIds2
|
|
@@ -133,6 +135,7 @@ __export(src_exports, {
|
|
|
133
135
|
MINIMUM_COVER_PERIOD: () => MINIMUM_COVER_PERIOD,
|
|
134
136
|
NEXUS_MUTUAL_DAO_TREASURY_ADDRESS: () => NEXUS_MUTUAL_DAO_TREASURY_ADDRESS,
|
|
135
137
|
ProductCategoryEnum: () => ProductCategoryEnum,
|
|
138
|
+
ProductTypes: () => ProductTypes,
|
|
136
139
|
SLIPPAGE_DENOMINATOR: () => SLIPPAGE_DENOMINATOR,
|
|
137
140
|
TARGET_PRICE_DENOMINATOR: () => TARGET_PRICE_DENOMINATOR,
|
|
138
141
|
allLogoFileNames: () => allLogoFileNames,
|
|
@@ -669,8 +672,14 @@ var productCategoryMap = {
|
|
|
669
672
|
// Contango + Compound v3
|
|
670
673
|
223: "yield-optimizer" /* YieldOptimizer */,
|
|
671
674
|
// Contango + Aave v3
|
|
672
|
-
224: "yield-optimizer" /* YieldOptimizer
|
|
675
|
+
224: "yield-optimizer" /* YieldOptimizer */,
|
|
673
676
|
// Contango + Morpho Blue
|
|
677
|
+
225: "dex" /* Dex */,
|
|
678
|
+
// PancakeSwap
|
|
679
|
+
226: "yield-optimizer" /* YieldOptimizer */,
|
|
680
|
+
// Beefy + Velodrome
|
|
681
|
+
227: "uncategorized" /* Uncategorized */
|
|
682
|
+
// Base
|
|
674
683
|
};
|
|
675
684
|
|
|
676
685
|
// src/constants/index.ts
|
|
@@ -991,7 +1000,7 @@ var product_types_default = [
|
|
|
991
1000
|
{
|
|
992
1001
|
id: 13,
|
|
993
1002
|
coverWordingURL: "https://api.nexusmutual.io/ipfs/QmWRir4JSeSv3oKbHyDRz1xFKXh1d8wgew5Rr4koCMeYYu",
|
|
994
|
-
name: "
|
|
1003
|
+
name: "OpenCover Transaction",
|
|
995
1004
|
gracePeriod: 3024e3,
|
|
996
1005
|
claimMethod: 0
|
|
997
1006
|
},
|
|
@@ -4188,13 +4197,13 @@ var products_default = [
|
|
|
4188
4197
|
useFixedPrice: false,
|
|
4189
4198
|
logo: "toros-bitcoin.png",
|
|
4190
4199
|
metadata: {
|
|
4191
|
-
annex: "
|
|
4200
|
+
annex: "QmRBUhHndDqdRY2y2ETMuekGVMwSFBqA1E8ieUkiGHjxYD"
|
|
4192
4201
|
},
|
|
4193
4202
|
coverAssets: [
|
|
4194
4203
|
"ETH"
|
|
4195
4204
|
],
|
|
4196
4205
|
isPrivate: false,
|
|
4197
|
-
timestamp:
|
|
4206
|
+
timestamp: 1725264851
|
|
4198
4207
|
},
|
|
4199
4208
|
{
|
|
4200
4209
|
id: 190,
|
|
@@ -4781,12 +4790,65 @@ var products_default = [
|
|
|
4781
4790
|
],
|
|
4782
4791
|
isPrivate: false,
|
|
4783
4792
|
timestamp: 1724341943
|
|
4793
|
+
},
|
|
4794
|
+
{
|
|
4795
|
+
id: 225,
|
|
4796
|
+
name: "PancakeSwap",
|
|
4797
|
+
productType: 0,
|
|
4798
|
+
isDeprecated: false,
|
|
4799
|
+
useFixedPrice: false,
|
|
4800
|
+
logo: "pancake-swap.svg",
|
|
4801
|
+
metadata: {},
|
|
4802
|
+
coverAssets: [
|
|
4803
|
+
"ETH",
|
|
4804
|
+
"DAI",
|
|
4805
|
+
"USDC"
|
|
4806
|
+
],
|
|
4807
|
+
isPrivate: false,
|
|
4808
|
+
timestamp: 1725264851
|
|
4809
|
+
},
|
|
4810
|
+
{
|
|
4811
|
+
id: 226,
|
|
4812
|
+
name: "Beefy + Velodrome",
|
|
4813
|
+
productType: 11,
|
|
4814
|
+
isDeprecated: false,
|
|
4815
|
+
useFixedPrice: false,
|
|
4816
|
+
logo: "beefy-velodrome.svg",
|
|
4817
|
+
metadata: {
|
|
4818
|
+
annex: "QmNeuhDq2mbi2oyBCxNc1giLPUfAWHrjJTn1gkmGtbMerm"
|
|
4819
|
+
},
|
|
4820
|
+
coverAssets: [
|
|
4821
|
+
"ETH",
|
|
4822
|
+
"DAI",
|
|
4823
|
+
"USDC"
|
|
4824
|
+
],
|
|
4825
|
+
isPrivate: false,
|
|
4826
|
+
timestamp: 1725264851
|
|
4827
|
+
},
|
|
4828
|
+
{
|
|
4829
|
+
id: 227,
|
|
4830
|
+
name: "Base DeFi Pass",
|
|
4831
|
+
productType: 16,
|
|
4832
|
+
isDeprecated: false,
|
|
4833
|
+
useFixedPrice: true,
|
|
4834
|
+
logo: "base.svg",
|
|
4835
|
+
metadata: {
|
|
4836
|
+
annex: "QmY42uaSGhHcHn446MvcGL6x5ihShWzer6tZNkFEqc4MXw"
|
|
4837
|
+
},
|
|
4838
|
+
coverAssets: [
|
|
4839
|
+
"ETH",
|
|
4840
|
+
"DAI",
|
|
4841
|
+
"USDC"
|
|
4842
|
+
],
|
|
4843
|
+
isPrivate: true,
|
|
4844
|
+
timestamp: 1725264851
|
|
4784
4845
|
}
|
|
4785
4846
|
];
|
|
4786
4847
|
|
|
4787
4848
|
// generated/types.ts
|
|
4788
4849
|
var types_exports2 = {};
|
|
4789
4850
|
__export(types_exports2, {
|
|
4851
|
+
ProductTypes: () => ProductTypes,
|
|
4790
4852
|
allLogoFileNames: () => allLogoFileNames,
|
|
4791
4853
|
allLogoNames: () => allLogoNames
|
|
4792
4854
|
});
|
|
@@ -5016,6 +5078,9 @@ var allLogoFileNames = [
|
|
|
5016
5078
|
"contango-compound.svg",
|
|
5017
5079
|
"contango-aave.svg",
|
|
5018
5080
|
"contango-morpho.svg",
|
|
5081
|
+
"pancake-swap.svg",
|
|
5082
|
+
"beefy-velodrome.svg",
|
|
5083
|
+
"base.svg",
|
|
5019
5084
|
"aave-v1.svg",
|
|
5020
5085
|
"akropolis.svg",
|
|
5021
5086
|
"alpha-homora.svg",
|
|
@@ -5296,6 +5361,9 @@ var allLogoNames = [
|
|
|
5296
5361
|
"contango-compound",
|
|
5297
5362
|
"contango-aave",
|
|
5298
5363
|
"contango-morpho",
|
|
5364
|
+
"pancake-swap",
|
|
5365
|
+
"beefy-velodrome",
|
|
5366
|
+
"base",
|
|
5299
5367
|
"aave-v1",
|
|
5300
5368
|
"akropolis",
|
|
5301
5369
|
"alpha-homora",
|
|
@@ -5350,6 +5418,26 @@ var allLogoNames = [
|
|
|
5350
5418
|
"vesper-veth",
|
|
5351
5419
|
"zksync"
|
|
5352
5420
|
];
|
|
5421
|
+
var ProductTypes = /* @__PURE__ */ ((ProductTypes2) => {
|
|
5422
|
+
ProductTypes2[ProductTypes2["protocol"] = 0] = "protocol";
|
|
5423
|
+
ProductTypes2[ProductTypes2["custody"] = 1] = "custody";
|
|
5424
|
+
ProductTypes2[ProductTypes2["yieldToken"] = 2] = "yieldToken";
|
|
5425
|
+
ProductTypes2[ProductTypes2["sherlockExcess"] = 3] = "sherlockExcess";
|
|
5426
|
+
ProductTypes2[ProductTypes2["stakewiseEthStaking"] = 4] = "stakewiseEthStaking";
|
|
5427
|
+
ProductTypes2[ProductTypes2["liquidCollectiveEthStaking"] = 5] = "liquidCollectiveEthStaking";
|
|
5428
|
+
ProductTypes2[ProductTypes2["ethSlashing"] = 6] = "ethSlashing";
|
|
5429
|
+
ProductTypes2[ProductTypes2["sherlockQuotaShare"] = 7] = "sherlockQuotaShare";
|
|
5430
|
+
ProductTypes2[ProductTypes2["nativeProtocol"] = 8] = "nativeProtocol";
|
|
5431
|
+
ProductTypes2[ProductTypes2["theRetailMutual"] = 9] = "theRetailMutual";
|
|
5432
|
+
ProductTypes2[ProductTypes2["unoReQuotaShare"] = 10] = "unoReQuotaShare";
|
|
5433
|
+
ProductTypes2[ProductTypes2["bundledProtocol"] = 11] = "bundledProtocol";
|
|
5434
|
+
ProductTypes2[ProductTypes2["ethSlashingUmbrella"] = 12] = "ethSlashingUmbrella";
|
|
5435
|
+
ProductTypes2[ProductTypes2["openCoverTransaction"] = 13] = "openCoverTransaction";
|
|
5436
|
+
ProductTypes2[ProductTypes2["fundPortfolio"] = 14] = "fundPortfolio";
|
|
5437
|
+
ProductTypes2[ProductTypes2["sherlockBugBounty"] = 15] = "sherlockBugBounty";
|
|
5438
|
+
ProductTypes2[ProductTypes2["deFiPass"] = 16] = "deFiPass";
|
|
5439
|
+
return ProductTypes2;
|
|
5440
|
+
})(ProductTypes || {});
|
|
5353
5441
|
|
|
5354
5442
|
// src/index.ts
|
|
5355
5443
|
__reExport(src_exports, require("@nexusmutual/deployments"), module.exports);
|
|
@@ -5376,6 +5464,7 @@ var src_default = nexusSdk;
|
|
|
5376
5464
|
MINIMUM_COVER_PERIOD,
|
|
5377
5465
|
NEXUS_MUTUAL_DAO_TREASURY_ADDRESS,
|
|
5378
5466
|
ProductCategoryEnum,
|
|
5467
|
+
ProductTypes,
|
|
5379
5468
|
SLIPPAGE_DENOMINATOR,
|
|
5380
5469
|
TARGET_PRICE_DENOMINATOR,
|
|
5381
5470
|
allLogoFileNames,
|