@nexusmutual/sdk 0.8.12 → 0.8.14

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/index.mjs CHANGED
@@ -758,8 +758,14 @@ var productCategoryMap = {
758
758
  // Shadow
759
759
  284: "uncategorized" /* Uncategorized */,
760
760
  // Cork
761
- 285: "yield-optimizer" /* YieldOptimizer */
761
+ 285: "yield-optimizer" /* YieldOptimizer */,
762
762
  // Rings
763
+ 286: "depeg" /* Depeg */,
764
+ // DOLA Depeg
765
+ 287: "uncategorized" /* Uncategorized */,
766
+ // Ensuro Yield
767
+ 288: "lending" /* Lending */
768
+ // Coinshift USDL Morpho Vault
763
769
  };
764
770
 
765
771
  // src/constants/index.ts
@@ -819,7 +825,7 @@ var coverDesignatedWalletsSchema = z.object({
819
825
  wallets: z.array(
820
826
  z.object({
821
827
  wallet: z.string().regex(ethereumAddressRegex, "Invalid Ethereum address"),
822
- amount: z.string().regex(/^\d+$/, "Amount must be a valid wei value"),
828
+ amount: z.string().regex(/^(?!,$)[\d,.]+$/, "Amount must be a valid number"),
823
829
  currency: z.string().min(1, "Currency cannot be empty")
824
830
  })
825
831
  ).min(1, "At least one wallet object is required")
@@ -1149,6 +1155,9 @@ var allLogoFileNames = [
1149
1155
  "shadow.svg",
1150
1156
  "cork.svg",
1151
1157
  "rings.svg",
1158
+ "dola.svg",
1159
+ "ensuro-yield.svg",
1160
+ "coinshift-usdl-morpho-vault.svg",
1152
1161
  "aave-v1.svg",
1153
1162
  "akropolis.svg",
1154
1163
  "alpha-homora.svg",
@@ -1490,6 +1499,9 @@ var allLogoNames = [
1490
1499
  "shadow",
1491
1500
  "cork",
1492
1501
  "rings",
1502
+ "dola",
1503
+ "ensuro-yield",
1504
+ "coinshift-usdl-morpho-vault",
1493
1505
  "aave-v1",
1494
1506
  "akropolis",
1495
1507
  "alpha-homora",
@@ -1568,6 +1580,7 @@ var ProductTypes = /* @__PURE__ */ ((ProductTypes2) => {
1568
1580
  ProductTypes2[ProductTypes2["generalisedFundPortfolio"] = 20] = "generalisedFundPortfolio";
1569
1581
  ProductTypes2[ProductTypes2["crypto"] = 21] = "crypto";
1570
1582
  ProductTypes2[ProductTypes2["nativeSyndicate"] = 22] = "nativeSyndicate";
1583
+ ProductTypes2[ProductTypes2["spearbitCantina"] = 23] = "spearbitCantina";
1571
1584
  return ProductTypes2;
1572
1585
  })(ProductTypes || {});
1573
1586
 
@@ -1612,7 +1625,8 @@ var IPFS_CONTENT_TYPE_BY_PRODUCT_TYPE = {
1612
1625
  [15 /* sherlockBugBounty */]: void 0,
1613
1626
  [18 /* immunefiBugBounty */]: void 0,
1614
1627
  [21 /* crypto */]: void 0,
1615
- [22 /* nativeSyndicate */]: void 0
1628
+ [22 /* nativeSyndicate */]: void 0,
1629
+ [23 /* spearbitCantina */]: void 0
1616
1630
  };
1617
1631
 
1618
1632
  // src/ipfs/validateIPFSContent.ts
@@ -1653,7 +1667,7 @@ var validateIPFSContent = (type, content) => {
1653
1667
  };
1654
1668
 
1655
1669
  // generated/version.json
1656
- var version = "0.8.12";
1670
+ var version = "0.8.14";
1657
1671
 
1658
1672
  // src/ipfs/uploadIPFSContent.ts
1659
1673
  var uploadToIPFS = async (nexusApiUrl, [type, content]) => {
@@ -1856,6 +1870,13 @@ var product_types_default = [
1856
1870
  name: "Native Syndicate Cover",
1857
1871
  gracePeriod: 3024e3,
1858
1872
  claimMethod: 0
1873
+ },
1874
+ {
1875
+ id: 23,
1876
+ coverWordingURL: "https://api.nexusmutual.io/ipfs/QmR8jRGHA3fsLnBK5dtj27evTDQ3Vyic3zJnCh7dVas3pL",
1877
+ name: "Spearbit Cantina Cover",
1878
+ gracePeriod: 3024e3,
1879
+ claimMethod: 0
1859
1880
  }
1860
1881
  ];
1861
1882
 
@@ -2721,7 +2742,7 @@ var products_default = [
2721
2742
  "cbBTC"
2722
2743
  ],
2723
2744
  isPrivate: false,
2724
- timestamp: 1726758407,
2745
+ timestamp: 1728046187,
2725
2746
  minPrice: 60
2726
2747
  },
2727
2748
  {
@@ -4283,7 +4304,7 @@ var products_default = [
4283
4304
  useFixedPrice: false,
4284
4305
  logo: "hyperliquid.svg",
4285
4306
  metadata: {
4286
- annex: "QmWisWKYeYTiBjDFi6LwdRQ8h35eRkxT4jyj5hZUGiCav7"
4307
+ annex: "QmZYgda3f3CBbV7TRBViiMqc9cNRZ8Ud3bsTUMFnRD1arb"
4287
4308
  },
4288
4309
  coverAssets: [
4289
4310
  "ETH",
@@ -5199,7 +5220,7 @@ var products_default = [
5199
5220
  "cbBTC"
5200
5221
  ],
5201
5222
  isPrivate: false,
5202
- timestamp: 1734557999,
5223
+ timestamp: 1726227311,
5203
5224
  minPrice: 100
5204
5225
  },
5205
5226
  {
@@ -5362,7 +5383,7 @@ var products_default = [
5362
5383
  "cbBTC"
5363
5384
  ],
5364
5385
  isPrivate: false,
5365
- timestamp: 1725264851,
5386
+ timestamp: 1734557999,
5366
5387
  minPrice: 100
5367
5388
  },
5368
5389
  {
@@ -5716,7 +5737,7 @@ var products_default = [
5716
5737
  "ETH"
5717
5738
  ],
5718
5739
  isPrivate: false,
5719
- timestamp: 1734557999,
5740
+ timestamp: 1731583079,
5720
5741
  minPrice: 100
5721
5742
  },
5722
5743
  {
@@ -5755,7 +5776,7 @@ var products_default = [
5755
5776
  "cbBTC"
5756
5777
  ],
5757
5778
  isPrivate: false,
5758
- timestamp: 1741267523,
5779
+ timestamp: 1734557999,
5759
5780
  minPrice: 100
5760
5781
  },
5761
5782
  {
@@ -5958,7 +5979,7 @@ var products_default = [
5958
5979
  "cbBTC"
5959
5980
  ],
5960
5981
  isPrivate: false,
5961
- timestamp: 1724341943,
5982
+ timestamp: 1734557999,
5962
5983
  minPrice: 100
5963
5984
  },
5964
5985
  {
@@ -5997,7 +6018,7 @@ var products_default = [
5997
6018
  "cbBTC"
5998
6019
  ],
5999
6020
  isPrivate: false,
6000
- timestamp: 1734557999,
6021
+ timestamp: 1726227311,
6001
6022
  minPrice: 100
6002
6023
  },
6003
6024
  {
@@ -6035,7 +6056,7 @@ var products_default = [
6035
6056
  "cbBTC"
6036
6057
  ],
6037
6058
  isPrivate: false,
6038
- timestamp: 1725264851,
6059
+ timestamp: 1734557999,
6039
6060
  minPrice: 100
6040
6061
  },
6041
6062
  {
@@ -6054,7 +6075,7 @@ var products_default = [
6054
6075
  "cbBTC"
6055
6076
  ],
6056
6077
  isPrivate: true,
6057
- timestamp: 1740672395,
6078
+ timestamp: 1728564167,
6058
6079
  minPrice: 275
6059
6080
  },
6060
6081
  {
@@ -6073,7 +6094,7 @@ var products_default = [
6073
6094
  "cbBTC"
6074
6095
  ],
6075
6096
  isPrivate: false,
6076
- timestamp: 1741267523,
6097
+ timestamp: 1728046187,
6077
6098
  minPrice: 100
6078
6099
  },
6079
6100
  {
@@ -6092,7 +6113,7 @@ var products_default = [
6092
6113
  "cbBTC"
6093
6114
  ],
6094
6115
  isPrivate: false,
6095
- timestamp: 1741267523,
6116
+ timestamp: 1726227311,
6096
6117
  minPrice: 100
6097
6118
  },
6098
6119
  {
@@ -6168,7 +6189,7 @@ var products_default = [
6168
6189
  "cbBTC"
6169
6190
  ],
6170
6191
  isPrivate: true,
6171
- timestamp: 1739969915,
6192
+ timestamp: 1726227311,
6172
6193
  minPrice: 100
6173
6194
  },
6174
6195
  {
@@ -6238,7 +6259,7 @@ var products_default = [
6238
6259
  "USDC"
6239
6260
  ],
6240
6261
  isPrivate: false,
6241
- timestamp: 1734557999,
6262
+ timestamp: 1726758407,
6242
6263
  minPrice: 100
6243
6264
  },
6244
6265
  {
@@ -6302,7 +6323,7 @@ var products_default = [
6302
6323
  "USDC"
6303
6324
  ],
6304
6325
  isPrivate: false,
6305
- timestamp: 1738243583,
6326
+ timestamp: 1731583079,
6306
6327
  minPrice: 25
6307
6328
  },
6308
6329
  {
@@ -6372,7 +6393,7 @@ var products_default = [
6372
6393
  "cbBTC"
6373
6394
  ],
6374
6395
  isPrivate: false,
6375
- timestamp: 1740672395,
6396
+ timestamp: 1733753135,
6376
6397
  minPrice: 49
6377
6398
  },
6378
6399
  {
@@ -6391,7 +6412,7 @@ var products_default = [
6391
6412
  "cbBTC"
6392
6413
  ],
6393
6414
  isPrivate: false,
6394
- timestamp: 1733326763,
6415
+ timestamp: 1733753135,
6395
6416
  minPrice: 225
6396
6417
  },
6397
6418
  {
@@ -6410,7 +6431,7 @@ var products_default = [
6410
6431
  "cbBTC"
6411
6432
  ],
6412
6433
  isPrivate: false,
6413
- timestamp: 1739537399,
6434
+ timestamp: 1733753135,
6414
6435
  minPrice: 310
6415
6436
  },
6416
6437
  {
@@ -6429,7 +6450,7 @@ var products_default = [
6429
6450
  "cbBTC"
6430
6451
  ],
6431
6452
  isPrivate: false,
6432
- timestamp: 1734557999,
6453
+ timestamp: 1733326763,
6433
6454
  minPrice: 100
6434
6455
  },
6435
6456
  {
@@ -6457,7 +6478,7 @@ var products_default = [
6457
6478
  useFixedPrice: true,
6458
6479
  logo: "fasanara.svg",
6459
6480
  metadata: {
6460
- annex: "QmdJAfkkRZDUzhGFVfByB9gDc9mJr9ghc1fXFZNFCjuorG"
6481
+ annex: "QmXYsW8DnaSBXRguCQiqDxVLeX65sfyDJJvjca3jS1htqH"
6461
6482
  },
6462
6483
  coverAssets: [
6463
6484
  "ETH",
@@ -6643,7 +6664,7 @@ var products_default = [
6643
6664
  "cbBTC"
6644
6665
  ],
6645
6666
  isPrivate: true,
6646
- timestamp: 1739969915,
6667
+ timestamp: 1740672395,
6647
6668
  minPrice: 505
6648
6669
  },
6649
6670
  {
@@ -6817,7 +6838,7 @@ var products_default = [
6817
6838
  "cbBTC"
6818
6839
  ],
6819
6840
  isPrivate: false,
6820
- timestamp: 1739447471,
6841
+ timestamp: 1739537399,
6821
6842
  minPrice: 50
6822
6843
  },
6823
6844
  {
@@ -6836,7 +6857,7 @@ var products_default = [
6836
6857
  "cbBTC"
6837
6858
  ],
6838
6859
  isPrivate: false,
6839
- timestamp: 1739537399,
6860
+ timestamp: 1739447471,
6840
6861
  minPrice: 235
6841
6862
  },
6842
6863
  {
@@ -6874,7 +6895,7 @@ var products_default = [
6874
6895
  "cbBTC"
6875
6896
  ],
6876
6897
  isPrivate: true,
6877
- timestamp: 1740672395,
6898
+ timestamp: 1739969915,
6878
6899
  minPrice: 225
6879
6900
  },
6880
6901
  {
@@ -7096,6 +7117,57 @@ var products_default = [
7096
7117
  isPrivate: false,
7097
7118
  timestamp: 1741267523,
7098
7119
  minPrice: 100
7120
+ },
7121
+ {
7122
+ id: 286,
7123
+ name: "DOLA Depeg",
7124
+ productType: 21,
7125
+ isDeprecated: false,
7126
+ useFixedPrice: false,
7127
+ logo: "dola.svg",
7128
+ metadata: {
7129
+ annex: "QmdkAeebUf2Un5UiniA2q48CBNgmdo7SNoSo2JbeMZBcNT"
7130
+ },
7131
+ coverAssets: [
7132
+ "USDC"
7133
+ ],
7134
+ isPrivate: false,
7135
+ timestamp: 1742481059,
7136
+ minPrice: 100
7137
+ },
7138
+ {
7139
+ id: 287,
7140
+ name: "Ensuro Yield",
7141
+ productType: 17,
7142
+ isDeprecated: false,
7143
+ useFixedPrice: true,
7144
+ logo: "ensuro-yield.svg",
7145
+ metadata: {
7146
+ annex: "QmdtKHudPiq18i85Zrw66T7pff4mPMz637VVdNEBh3BonN"
7147
+ },
7148
+ coverAssets: [
7149
+ "USDC"
7150
+ ],
7151
+ isPrivate: false,
7152
+ timestamp: 1742481059,
7153
+ minPrice: 100
7154
+ },
7155
+ {
7156
+ id: 288,
7157
+ name: "Coinshift USDL Morpho Vault",
7158
+ productType: 21,
7159
+ isDeprecated: false,
7160
+ useFixedPrice: false,
7161
+ logo: "coinshift-usdl-morpho-vault.svg",
7162
+ metadata: {
7163
+ annex: "QmR4unkw6mabN6sxNHg5HyaQfgfD9PzEa91rCig5Q1BQ2N"
7164
+ },
7165
+ coverAssets: [
7166
+ "USDC"
7167
+ ],
7168
+ isPrivate: false,
7169
+ timestamp: 1742481059,
7170
+ minPrice: 185
7099
7171
  }
7100
7172
  ];
7101
7173