@nexusmutual/sdk 1.26.0-rc.0 → 1.26.0-rc.1
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/products.json +24 -24
- package/dist/index.d.mts +24 -24
- package/dist/index.d.ts +24 -24
- package/dist/index.js +27 -26
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +27 -26
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -27384,7 +27384,7 @@ var products_default = [
|
|
|
27384
27384
|
"cbBTC"
|
|
27385
27385
|
],
|
|
27386
27386
|
isPrivate: false,
|
|
27387
|
-
timestamp:
|
|
27387
|
+
timestamp: 1757074607,
|
|
27388
27388
|
minPrice: 100
|
|
27389
27389
|
},
|
|
27390
27390
|
{
|
|
@@ -27746,7 +27746,7 @@ var products_default = [
|
|
|
27746
27746
|
"cbBTC"
|
|
27747
27747
|
],
|
|
27748
27748
|
isPrivate: false,
|
|
27749
|
-
timestamp:
|
|
27749
|
+
timestamp: 1733326763,
|
|
27750
27750
|
minPrice: 100
|
|
27751
27751
|
},
|
|
27752
27752
|
{
|
|
@@ -27889,7 +27889,7 @@ var products_default = [
|
|
|
27889
27889
|
"USDC"
|
|
27890
27890
|
],
|
|
27891
27891
|
isPrivate: false,
|
|
27892
|
-
timestamp:
|
|
27892
|
+
timestamp: 1758283931,
|
|
27893
27893
|
minPrice: 100
|
|
27894
27894
|
},
|
|
27895
27895
|
{
|
|
@@ -28328,7 +28328,7 @@ var products_default = [
|
|
|
28328
28328
|
"cbBTC"
|
|
28329
28329
|
],
|
|
28330
28330
|
isPrivate: false,
|
|
28331
|
-
timestamp:
|
|
28331
|
+
timestamp: 1758283931,
|
|
28332
28332
|
minPrice: 100
|
|
28333
28333
|
},
|
|
28334
28334
|
{
|
|
@@ -28868,7 +28868,7 @@ var products_default = [
|
|
|
28868
28868
|
"USDC"
|
|
28869
28869
|
],
|
|
28870
28870
|
isPrivate: false,
|
|
28871
|
-
timestamp:
|
|
28871
|
+
timestamp: 1723127459,
|
|
28872
28872
|
minPrice: 100
|
|
28873
28873
|
},
|
|
28874
28874
|
{
|
|
@@ -29038,7 +29038,7 @@ var products_default = [
|
|
|
29038
29038
|
"cbBTC"
|
|
29039
29039
|
],
|
|
29040
29040
|
isPrivate: false,
|
|
29041
|
-
timestamp:
|
|
29041
|
+
timestamp: 1764188807,
|
|
29042
29042
|
minPrice: 100
|
|
29043
29043
|
},
|
|
29044
29044
|
{
|
|
@@ -29057,7 +29057,7 @@ var products_default = [
|
|
|
29057
29057
|
"cbBTC"
|
|
29058
29058
|
],
|
|
29059
29059
|
isPrivate: false,
|
|
29060
|
-
timestamp:
|
|
29060
|
+
timestamp: 1749739367,
|
|
29061
29061
|
minPrice: 100
|
|
29062
29062
|
},
|
|
29063
29063
|
{
|
|
@@ -29625,7 +29625,7 @@ var products_default = [
|
|
|
29625
29625
|
"USDC"
|
|
29626
29626
|
],
|
|
29627
29627
|
isPrivate: false,
|
|
29628
|
-
timestamp:
|
|
29628
|
+
timestamp: 1757074607,
|
|
29629
29629
|
minPrice: 50
|
|
29630
29630
|
},
|
|
29631
29631
|
{
|
|
@@ -29710,7 +29710,7 @@ var products_default = [
|
|
|
29710
29710
|
"ETH"
|
|
29711
29711
|
],
|
|
29712
29712
|
isPrivate: false,
|
|
29713
|
-
timestamp:
|
|
29713
|
+
timestamp: 1757074607,
|
|
29714
29714
|
minPrice: 100
|
|
29715
29715
|
},
|
|
29716
29716
|
{
|
|
@@ -29744,7 +29744,7 @@ var products_default = [
|
|
|
29744
29744
|
"cbBTC"
|
|
29745
29745
|
],
|
|
29746
29746
|
isPrivate: false,
|
|
29747
|
-
timestamp:
|
|
29747
|
+
timestamp: 1757074607,
|
|
29748
29748
|
minPrice: 75
|
|
29749
29749
|
},
|
|
29750
29750
|
{
|
|
@@ -29763,7 +29763,7 @@ var products_default = [
|
|
|
29763
29763
|
"cbBTC"
|
|
29764
29764
|
],
|
|
29765
29765
|
isPrivate: false,
|
|
29766
|
-
timestamp:
|
|
29766
|
+
timestamp: 1758283931,
|
|
29767
29767
|
minPrice: 100
|
|
29768
29768
|
},
|
|
29769
29769
|
{
|
|
@@ -29801,7 +29801,7 @@ var products_default = [
|
|
|
29801
29801
|
"cbBTC"
|
|
29802
29802
|
],
|
|
29803
29803
|
isPrivate: false,
|
|
29804
|
-
timestamp:
|
|
29804
|
+
timestamp: 1739447471,
|
|
29805
29805
|
minPrice: 235
|
|
29806
29806
|
},
|
|
29807
29807
|
{
|
|
@@ -29856,7 +29856,7 @@ var products_default = [
|
|
|
29856
29856
|
"ETH"
|
|
29857
29857
|
],
|
|
29858
29858
|
isPrivate: true,
|
|
29859
|
-
timestamp:
|
|
29859
|
+
timestamp: 1741267523,
|
|
29860
29860
|
minPrice: 95
|
|
29861
29861
|
},
|
|
29862
29862
|
{
|
|
@@ -30184,7 +30184,7 @@ var products_default = [
|
|
|
30184
30184
|
"USDC"
|
|
30185
30185
|
],
|
|
30186
30186
|
isPrivate: true,
|
|
30187
|
-
timestamp:
|
|
30187
|
+
timestamp: 1743603467,
|
|
30188
30188
|
minPrice: 1586
|
|
30189
30189
|
},
|
|
30190
30190
|
{
|
|
@@ -30201,7 +30201,7 @@ var products_default = [
|
|
|
30201
30201
|
"USDC"
|
|
30202
30202
|
],
|
|
30203
30203
|
isPrivate: false,
|
|
30204
|
-
timestamp:
|
|
30204
|
+
timestamp: 1757074607,
|
|
30205
30205
|
minPrice: 150
|
|
30206
30206
|
},
|
|
30207
30207
|
{
|
|
@@ -30412,7 +30412,7 @@ var products_default = [
|
|
|
30412
30412
|
"cbBTC"
|
|
30413
30413
|
],
|
|
30414
30414
|
isPrivate: false,
|
|
30415
|
-
timestamp:
|
|
30415
|
+
timestamp: 1758283931,
|
|
30416
30416
|
minPrice: 100
|
|
30417
30417
|
},
|
|
30418
30418
|
{
|
|
@@ -30501,7 +30501,7 @@ var products_default = [
|
|
|
30501
30501
|
"USDC"
|
|
30502
30502
|
],
|
|
30503
30503
|
isPrivate: false,
|
|
30504
|
-
timestamp:
|
|
30504
|
+
timestamp: 1757074607,
|
|
30505
30505
|
minPrice: 50
|
|
30506
30506
|
},
|
|
30507
30507
|
{
|
|
@@ -30552,7 +30552,7 @@ var products_default = [
|
|
|
30552
30552
|
"USDC"
|
|
30553
30553
|
],
|
|
30554
30554
|
isPrivate: false,
|
|
30555
|
-
timestamp:
|
|
30555
|
+
timestamp: 1752834371,
|
|
30556
30556
|
minPrice: 300
|
|
30557
30557
|
},
|
|
30558
30558
|
{
|
|
@@ -30673,7 +30673,7 @@ var products_default = [
|
|
|
30673
30673
|
"USDC"
|
|
30674
30674
|
],
|
|
30675
30675
|
isPrivate: false,
|
|
30676
|
-
timestamp:
|
|
30676
|
+
timestamp: 1753877075,
|
|
30677
30677
|
minPrice: 100
|
|
30678
30678
|
},
|
|
30679
30679
|
{
|
|
@@ -30781,7 +30781,7 @@ var products_default = [
|
|
|
30781
30781
|
"USDC"
|
|
30782
30782
|
],
|
|
30783
30783
|
isPrivate: false,
|
|
30784
|
-
timestamp:
|
|
30784
|
+
timestamp: 1755778907,
|
|
30785
30785
|
minPrice: 100
|
|
30786
30786
|
},
|
|
30787
30787
|
{
|
|
@@ -30927,7 +30927,7 @@ var products_default = [
|
|
|
30927
30927
|
"cbBTC"
|
|
30928
30928
|
],
|
|
30929
30929
|
isPrivate: true,
|
|
30930
|
-
timestamp:
|
|
30930
|
+
timestamp: 1758283931,
|
|
30931
30931
|
minPrice: 100
|
|
30932
30932
|
},
|
|
30933
30933
|
{
|
|
@@ -30997,7 +30997,7 @@ var products_default = [
|
|
|
30997
30997
|
"USDC"
|
|
30998
30998
|
],
|
|
30999
30999
|
isPrivate: false,
|
|
31000
|
-
timestamp:
|
|
31000
|
+
timestamp: 1759764875,
|
|
31001
31001
|
minPrice: 100
|
|
31002
31002
|
},
|
|
31003
31003
|
{
|
|
@@ -31048,7 +31048,7 @@ var products_default = [
|
|
|
31048
31048
|
"ETH"
|
|
31049
31049
|
],
|
|
31050
31050
|
isPrivate: true,
|
|
31051
|
-
timestamp:
|
|
31051
|
+
timestamp: 1759407239,
|
|
31052
31052
|
minPrice: 100
|
|
31053
31053
|
},
|
|
31054
31054
|
{
|
|
@@ -31065,7 +31065,7 @@ var products_default = [
|
|
|
31065
31065
|
"ETH"
|
|
31066
31066
|
],
|
|
31067
31067
|
isPrivate: true,
|
|
31068
|
-
timestamp:
|
|
31068
|
+
timestamp: 1759407239,
|
|
31069
31069
|
minPrice: 100
|
|
31070
31070
|
},
|
|
31071
31071
|
{
|
|
@@ -31742,8 +31742,9 @@ var Quote = class extends NexusSDKBase {
|
|
|
31742
31742
|
}
|
|
31743
31743
|
try {
|
|
31744
31744
|
const { quote } = await this.getQuote(quoteParams);
|
|
31745
|
+
const premium = paymentAssetEnum === 255 /* NXM */ ? quote.premiumInNXM : quote.premiumInAsset;
|
|
31745
31746
|
const maxPremiumInAsset = this.calculatePremiumWithCommissionAndSlippage(
|
|
31746
|
-
BigInt(
|
|
31747
|
+
BigInt(premium),
|
|
31747
31748
|
commissionRatio || BUY_COVER_COMMISSION_RATIO_BY_PRODUCT_TYPE[productType],
|
|
31748
31749
|
slippageValue
|
|
31749
31750
|
);
|
|
@@ -31770,7 +31771,7 @@ var Quote = class extends NexusSDKBase {
|
|
|
31770
31771
|
period: period * 60 * 60 * 24,
|
|
31771
31772
|
// seconds
|
|
31772
31773
|
maxPremiumInAsset: maxPremiumInAsset.toString(),
|
|
31773
|
-
paymentAsset:
|
|
31774
|
+
paymentAsset: paymentAssetEnum,
|
|
31774
31775
|
commissionRatio: commissionRatio || BUY_COVER_COMMISSION_RATIO_BY_PRODUCT_TYPE[productType],
|
|
31775
31776
|
commissionDestination: commissionDestination || BUY_COVER_COMMISSION_DESTINATION_BY_PRODUCT_TYPE[productType],
|
|
31776
31777
|
ipfsData
|