@nexusmutual/sdk 0.3.12 → 0.3.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/data/products.json +15 -15
- package/dist/index.d.mts +33 -33
- package/dist/index.d.ts +33 -33
- package/dist/index.js +250 -245
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +250 -245
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/data/products.json
CHANGED
|
@@ -1422,7 +1422,7 @@
|
|
|
1422
1422
|
"DAI"
|
|
1423
1423
|
],
|
|
1424
1424
|
"isPrivate": true,
|
|
1425
|
-
"timestamp":
|
|
1425
|
+
"timestamp": 1684312727
|
|
1426
1426
|
},
|
|
1427
1427
|
{
|
|
1428
1428
|
"id": 88,
|
|
@@ -1439,7 +1439,7 @@
|
|
|
1439
1439
|
"DAI"
|
|
1440
1440
|
],
|
|
1441
1441
|
"isPrivate": true,
|
|
1442
|
-
"timestamp":
|
|
1442
|
+
"timestamp": 1684312727
|
|
1443
1443
|
},
|
|
1444
1444
|
{
|
|
1445
1445
|
"id": 89,
|
|
@@ -1683,7 +1683,7 @@
|
|
|
1683
1683
|
"DAI"
|
|
1684
1684
|
],
|
|
1685
1685
|
"isPrivate": true,
|
|
1686
|
-
"timestamp":
|
|
1686
|
+
"timestamp": 1704980411
|
|
1687
1687
|
},
|
|
1688
1688
|
{
|
|
1689
1689
|
"id": 105,
|
|
@@ -1700,7 +1700,7 @@
|
|
|
1700
1700
|
"DAI"
|
|
1701
1701
|
],
|
|
1702
1702
|
"isPrivate": true,
|
|
1703
|
-
"timestamp":
|
|
1703
|
+
"timestamp": 1704980411
|
|
1704
1704
|
},
|
|
1705
1705
|
{
|
|
1706
1706
|
"id": 106,
|
|
@@ -1822,7 +1822,7 @@
|
|
|
1822
1822
|
"DAI"
|
|
1823
1823
|
],
|
|
1824
1824
|
"isPrivate": true,
|
|
1825
|
-
"timestamp":
|
|
1825
|
+
"timestamp": 1691493035
|
|
1826
1826
|
},
|
|
1827
1827
|
{
|
|
1828
1828
|
"id": 114,
|
|
@@ -2165,7 +2165,7 @@
|
|
|
2165
2165
|
"ETH"
|
|
2166
2166
|
],
|
|
2167
2167
|
"isPrivate": false,
|
|
2168
|
-
"timestamp":
|
|
2168
|
+
"timestamp": 1709310707
|
|
2169
2169
|
},
|
|
2170
2170
|
{
|
|
2171
2171
|
"id": 137,
|
|
@@ -2257,7 +2257,7 @@
|
|
|
2257
2257
|
"DAI"
|
|
2258
2258
|
],
|
|
2259
2259
|
"isPrivate": false,
|
|
2260
|
-
"timestamp":
|
|
2260
|
+
"timestamp": 1710254231
|
|
2261
2261
|
},
|
|
2262
2262
|
{
|
|
2263
2263
|
"id": 143,
|
|
@@ -2290,7 +2290,7 @@
|
|
|
2290
2290
|
"DAI"
|
|
2291
2291
|
],
|
|
2292
2292
|
"isPrivate": false,
|
|
2293
|
-
"timestamp":
|
|
2293
|
+
"timestamp": 1710254231
|
|
2294
2294
|
},
|
|
2295
2295
|
{
|
|
2296
2296
|
"id": 145,
|
|
@@ -2307,7 +2307,7 @@
|
|
|
2307
2307
|
"DAI"
|
|
2308
2308
|
],
|
|
2309
2309
|
"isPrivate": false,
|
|
2310
|
-
"timestamp":
|
|
2310
|
+
"timestamp": 1710254231
|
|
2311
2311
|
},
|
|
2312
2312
|
{
|
|
2313
2313
|
"id": 146,
|
|
@@ -2371,7 +2371,7 @@
|
|
|
2371
2371
|
"DAI"
|
|
2372
2372
|
],
|
|
2373
2373
|
"isPrivate": false,
|
|
2374
|
-
"timestamp":
|
|
2374
|
+
"timestamp": 1715349875
|
|
2375
2375
|
},
|
|
2376
2376
|
{
|
|
2377
2377
|
"id": 150,
|
|
@@ -2436,7 +2436,7 @@
|
|
|
2436
2436
|
"ETH"
|
|
2437
2437
|
],
|
|
2438
2438
|
"isPrivate": false,
|
|
2439
|
-
"timestamp":
|
|
2439
|
+
"timestamp": 1711473767
|
|
2440
2440
|
},
|
|
2441
2441
|
{
|
|
2442
2442
|
"id": 154,
|
|
@@ -2516,7 +2516,7 @@
|
|
|
2516
2516
|
"ETH"
|
|
2517
2517
|
],
|
|
2518
2518
|
"isPrivate": false,
|
|
2519
|
-
"timestamp":
|
|
2519
|
+
"timestamp": 1715349875
|
|
2520
2520
|
},
|
|
2521
2521
|
{
|
|
2522
2522
|
"id": 159,
|
|
@@ -2549,7 +2549,7 @@
|
|
|
2549
2549
|
"ETH"
|
|
2550
2550
|
],
|
|
2551
2551
|
"isPrivate": false,
|
|
2552
|
-
"timestamp":
|
|
2552
|
+
"timestamp": 1713185771
|
|
2553
2553
|
},
|
|
2554
2554
|
{
|
|
2555
2555
|
"id": 161,
|
|
@@ -2565,7 +2565,7 @@
|
|
|
2565
2565
|
"ETH"
|
|
2566
2566
|
],
|
|
2567
2567
|
"isPrivate": false,
|
|
2568
|
-
"timestamp":
|
|
2568
|
+
"timestamp": 1713185771
|
|
2569
2569
|
},
|
|
2570
2570
|
{
|
|
2571
2571
|
"id": 162,
|
|
@@ -2581,7 +2581,7 @@
|
|
|
2581
2581
|
"ETH"
|
|
2582
2582
|
],
|
|
2583
2583
|
"isPrivate": false,
|
|
2584
|
-
"timestamp":
|
|
2584
|
+
"timestamp": 1713185771
|
|
2585
2585
|
},
|
|
2586
2586
|
{
|
|
2587
2587
|
"id": 163,
|
package/dist/index.d.mts
CHANGED
|
@@ -16,6 +16,23 @@ declare const DEFAULT_SLIPPAGE = 10;
|
|
|
16
16
|
declare const DEFAULT_COMMISSION_RATIO = 1500;
|
|
17
17
|
declare const NEXUS_MUTUAL_DAO_TREASURY_ADDRESS = "0x586b9b2F8010b284A0197f392156f1A7Eb5e86e9";
|
|
18
18
|
|
|
19
|
+
declare enum ProductCategoryEnum {
|
|
20
|
+
All = "all",
|
|
21
|
+
Lending = "lending",
|
|
22
|
+
Dex = "dex",
|
|
23
|
+
LiquidRestaking = "liquid-restaking",
|
|
24
|
+
YieldOptimizer = "yield-optimizer",
|
|
25
|
+
Perpetuals = "perpetuals",
|
|
26
|
+
SmartWallet = "smart-wallet",
|
|
27
|
+
RWA = "rwa",
|
|
28
|
+
ETHStaking = "eth-staking",
|
|
29
|
+
Unity = "unity"
|
|
30
|
+
}
|
|
31
|
+
declare const categoryLabelByEnum: Record<ProductCategoryEnum, string>;
|
|
32
|
+
declare const productCategoryMap: {
|
|
33
|
+
[productId: number]: ProductCategoryEnum;
|
|
34
|
+
};
|
|
35
|
+
|
|
19
36
|
type ApiResponse<R, E> = {
|
|
20
37
|
result: R;
|
|
21
38
|
error: E;
|
|
@@ -105,23 +122,6 @@ type GetQuoteResponse = {
|
|
|
105
122
|
buyCoverInput: BuyCoverInput;
|
|
106
123
|
};
|
|
107
124
|
type GetQuoteApiResponse = ApiResponse<GetQuoteResponse, undefined>;
|
|
108
|
-
declare enum ProductCategoryEnum {
|
|
109
|
-
All = "all",
|
|
110
|
-
Lending = "lending",
|
|
111
|
-
Dex = "dex",
|
|
112
|
-
LiquidRestaking = "liquid-restaking",
|
|
113
|
-
YieldOptimizer = "yield-optimizer",
|
|
114
|
-
Perpetuals = "perpetuals",
|
|
115
|
-
SmartWallet = "smart-wallet",
|
|
116
|
-
RWA = "rwa",
|
|
117
|
-
Coverage = "coverage",
|
|
118
|
-
ETHStaking = "eth-staking",
|
|
119
|
-
Unity = "unity"
|
|
120
|
-
}
|
|
121
|
-
declare const categoryLabelByEnum: Record<ProductCategoryEnum, string>;
|
|
122
|
-
declare const productCategoryMap: {
|
|
123
|
-
[productId: number]: ProductCategoryEnum;
|
|
124
|
-
};
|
|
125
125
|
|
|
126
126
|
/**
|
|
127
127
|
* Retrieves a quote for buying cover and prepares the necessary inputs for CoverBroker.buyCover method
|
|
@@ -1666,7 +1666,7 @@ var products = [
|
|
|
1666
1666
|
"DAI"
|
|
1667
1667
|
],
|
|
1668
1668
|
isPrivate: true,
|
|
1669
|
-
timestamp:
|
|
1669
|
+
timestamp: 1684312727
|
|
1670
1670
|
},
|
|
1671
1671
|
{
|
|
1672
1672
|
id: 88,
|
|
@@ -1683,7 +1683,7 @@ var products = [
|
|
|
1683
1683
|
"DAI"
|
|
1684
1684
|
],
|
|
1685
1685
|
isPrivate: true,
|
|
1686
|
-
timestamp:
|
|
1686
|
+
timestamp: 1684312727
|
|
1687
1687
|
},
|
|
1688
1688
|
{
|
|
1689
1689
|
id: 89,
|
|
@@ -1939,7 +1939,7 @@ var products = [
|
|
|
1939
1939
|
"DAI"
|
|
1940
1940
|
],
|
|
1941
1941
|
isPrivate: true,
|
|
1942
|
-
timestamp:
|
|
1942
|
+
timestamp: 1704980411
|
|
1943
1943
|
},
|
|
1944
1944
|
{
|
|
1945
1945
|
id: 105,
|
|
@@ -1956,7 +1956,7 @@ var products = [
|
|
|
1956
1956
|
"DAI"
|
|
1957
1957
|
],
|
|
1958
1958
|
isPrivate: true,
|
|
1959
|
-
timestamp:
|
|
1959
|
+
timestamp: 1704980411
|
|
1960
1960
|
},
|
|
1961
1961
|
{
|
|
1962
1962
|
id: 106,
|
|
@@ -2085,7 +2085,7 @@ var products = [
|
|
|
2085
2085
|
"DAI"
|
|
2086
2086
|
],
|
|
2087
2087
|
isPrivate: true,
|
|
2088
|
-
timestamp:
|
|
2088
|
+
timestamp: 1691493035
|
|
2089
2089
|
},
|
|
2090
2090
|
{
|
|
2091
2091
|
id: 114,
|
|
@@ -2450,7 +2450,7 @@ var products = [
|
|
|
2450
2450
|
"ETH"
|
|
2451
2451
|
],
|
|
2452
2452
|
isPrivate: false,
|
|
2453
|
-
timestamp:
|
|
2453
|
+
timestamp: 1709310707
|
|
2454
2454
|
},
|
|
2455
2455
|
{
|
|
2456
2456
|
id: 137,
|
|
@@ -2546,7 +2546,7 @@ var products = [
|
|
|
2546
2546
|
"DAI"
|
|
2547
2547
|
],
|
|
2548
2548
|
isPrivate: false,
|
|
2549
|
-
timestamp:
|
|
2549
|
+
timestamp: 1710254231
|
|
2550
2550
|
},
|
|
2551
2551
|
{
|
|
2552
2552
|
id: 143,
|
|
@@ -2579,7 +2579,7 @@ var products = [
|
|
|
2579
2579
|
"DAI"
|
|
2580
2580
|
],
|
|
2581
2581
|
isPrivate: false,
|
|
2582
|
-
timestamp:
|
|
2582
|
+
timestamp: 1710254231
|
|
2583
2583
|
},
|
|
2584
2584
|
{
|
|
2585
2585
|
id: 145,
|
|
@@ -2596,7 +2596,7 @@ var products = [
|
|
|
2596
2596
|
"DAI"
|
|
2597
2597
|
],
|
|
2598
2598
|
isPrivate: false,
|
|
2599
|
-
timestamp:
|
|
2599
|
+
timestamp: 1710254231
|
|
2600
2600
|
},
|
|
2601
2601
|
{
|
|
2602
2602
|
id: 146,
|
|
@@ -2662,7 +2662,7 @@ var products = [
|
|
|
2662
2662
|
"DAI"
|
|
2663
2663
|
],
|
|
2664
2664
|
isPrivate: false,
|
|
2665
|
-
timestamp:
|
|
2665
|
+
timestamp: 1715349875
|
|
2666
2666
|
},
|
|
2667
2667
|
{
|
|
2668
2668
|
id: 150,
|
|
@@ -2727,7 +2727,7 @@ var products = [
|
|
|
2727
2727
|
"ETH"
|
|
2728
2728
|
],
|
|
2729
2729
|
isPrivate: false,
|
|
2730
|
-
timestamp:
|
|
2730
|
+
timestamp: 1711473767
|
|
2731
2731
|
},
|
|
2732
2732
|
{
|
|
2733
2733
|
id: 154,
|
|
@@ -2808,7 +2808,7 @@ var products = [
|
|
|
2808
2808
|
"ETH"
|
|
2809
2809
|
],
|
|
2810
2810
|
isPrivate: false,
|
|
2811
|
-
timestamp:
|
|
2811
|
+
timestamp: 1715349875
|
|
2812
2812
|
},
|
|
2813
2813
|
{
|
|
2814
2814
|
id: 159,
|
|
@@ -2841,7 +2841,7 @@ var products = [
|
|
|
2841
2841
|
"ETH"
|
|
2842
2842
|
],
|
|
2843
2843
|
isPrivate: false,
|
|
2844
|
-
timestamp:
|
|
2844
|
+
timestamp: 1713185771
|
|
2845
2845
|
},
|
|
2846
2846
|
{
|
|
2847
2847
|
id: 161,
|
|
@@ -2857,7 +2857,7 @@ var products = [
|
|
|
2857
2857
|
"ETH"
|
|
2858
2858
|
],
|
|
2859
2859
|
isPrivate: false,
|
|
2860
|
-
timestamp:
|
|
2860
|
+
timestamp: 1713185771
|
|
2861
2861
|
},
|
|
2862
2862
|
{
|
|
2863
2863
|
id: 162,
|
|
@@ -2873,7 +2873,7 @@ var products = [
|
|
|
2873
2873
|
"ETH"
|
|
2874
2874
|
],
|
|
2875
2875
|
isPrivate: false,
|
|
2876
|
-
timestamp:
|
|
2876
|
+
timestamp: 1713185771
|
|
2877
2877
|
},
|
|
2878
2878
|
{
|
|
2879
2879
|
id: 163,
|
|
@@ -3111,12 +3111,12 @@ declare const nexusSdk: {
|
|
|
3111
3111
|
DEFAULT_SLIPPAGE: 10;
|
|
3112
3112
|
DEFAULT_COMMISSION_RATIO: 1500;
|
|
3113
3113
|
NEXUS_MUTUAL_DAO_TREASURY_ADDRESS: "0x586b9b2F8010b284A0197f392156f1A7Eb5e86e9";
|
|
3114
|
-
getQuoteAndBuyCoverInputs: typeof getQuoteAndBuyCoverInputs;
|
|
3115
3114
|
ProductCategoryEnum: typeof ProductCategoryEnum;
|
|
3116
3115
|
categoryLabelByEnum: Record<ProductCategoryEnum, string>;
|
|
3117
3116
|
productCategoryMap: {
|
|
3118
3117
|
[productId: number]: ProductCategoryEnum;
|
|
3119
3118
|
};
|
|
3119
|
+
getQuoteAndBuyCoverInputs: typeof getQuoteAndBuyCoverInputs;
|
|
3120
3120
|
calculatePremiumWithCommissionAndSlippage: (premium: bigint, commission?: number, slippage?: number) => bigint;
|
|
3121
3121
|
calculateExactNxmForEth: (ethIn: bigint, reserves: Reserves) => bigint;
|
|
3122
3122
|
calculateExactEthForNxm: (nxmIn: bigint, reserves: Reserves) => bigint;
|
package/dist/index.d.ts
CHANGED
|
@@ -16,6 +16,23 @@ declare const DEFAULT_SLIPPAGE = 10;
|
|
|
16
16
|
declare const DEFAULT_COMMISSION_RATIO = 1500;
|
|
17
17
|
declare const NEXUS_MUTUAL_DAO_TREASURY_ADDRESS = "0x586b9b2F8010b284A0197f392156f1A7Eb5e86e9";
|
|
18
18
|
|
|
19
|
+
declare enum ProductCategoryEnum {
|
|
20
|
+
All = "all",
|
|
21
|
+
Lending = "lending",
|
|
22
|
+
Dex = "dex",
|
|
23
|
+
LiquidRestaking = "liquid-restaking",
|
|
24
|
+
YieldOptimizer = "yield-optimizer",
|
|
25
|
+
Perpetuals = "perpetuals",
|
|
26
|
+
SmartWallet = "smart-wallet",
|
|
27
|
+
RWA = "rwa",
|
|
28
|
+
ETHStaking = "eth-staking",
|
|
29
|
+
Unity = "unity"
|
|
30
|
+
}
|
|
31
|
+
declare const categoryLabelByEnum: Record<ProductCategoryEnum, string>;
|
|
32
|
+
declare const productCategoryMap: {
|
|
33
|
+
[productId: number]: ProductCategoryEnum;
|
|
34
|
+
};
|
|
35
|
+
|
|
19
36
|
type ApiResponse<R, E> = {
|
|
20
37
|
result: R;
|
|
21
38
|
error: E;
|
|
@@ -105,23 +122,6 @@ type GetQuoteResponse = {
|
|
|
105
122
|
buyCoverInput: BuyCoverInput;
|
|
106
123
|
};
|
|
107
124
|
type GetQuoteApiResponse = ApiResponse<GetQuoteResponse, undefined>;
|
|
108
|
-
declare enum ProductCategoryEnum {
|
|
109
|
-
All = "all",
|
|
110
|
-
Lending = "lending",
|
|
111
|
-
Dex = "dex",
|
|
112
|
-
LiquidRestaking = "liquid-restaking",
|
|
113
|
-
YieldOptimizer = "yield-optimizer",
|
|
114
|
-
Perpetuals = "perpetuals",
|
|
115
|
-
SmartWallet = "smart-wallet",
|
|
116
|
-
RWA = "rwa",
|
|
117
|
-
Coverage = "coverage",
|
|
118
|
-
ETHStaking = "eth-staking",
|
|
119
|
-
Unity = "unity"
|
|
120
|
-
}
|
|
121
|
-
declare const categoryLabelByEnum: Record<ProductCategoryEnum, string>;
|
|
122
|
-
declare const productCategoryMap: {
|
|
123
|
-
[productId: number]: ProductCategoryEnum;
|
|
124
|
-
};
|
|
125
125
|
|
|
126
126
|
/**
|
|
127
127
|
* Retrieves a quote for buying cover and prepares the necessary inputs for CoverBroker.buyCover method
|
|
@@ -1666,7 +1666,7 @@ var products = [
|
|
|
1666
1666
|
"DAI"
|
|
1667
1667
|
],
|
|
1668
1668
|
isPrivate: true,
|
|
1669
|
-
timestamp:
|
|
1669
|
+
timestamp: 1684312727
|
|
1670
1670
|
},
|
|
1671
1671
|
{
|
|
1672
1672
|
id: 88,
|
|
@@ -1683,7 +1683,7 @@ var products = [
|
|
|
1683
1683
|
"DAI"
|
|
1684
1684
|
],
|
|
1685
1685
|
isPrivate: true,
|
|
1686
|
-
timestamp:
|
|
1686
|
+
timestamp: 1684312727
|
|
1687
1687
|
},
|
|
1688
1688
|
{
|
|
1689
1689
|
id: 89,
|
|
@@ -1939,7 +1939,7 @@ var products = [
|
|
|
1939
1939
|
"DAI"
|
|
1940
1940
|
],
|
|
1941
1941
|
isPrivate: true,
|
|
1942
|
-
timestamp:
|
|
1942
|
+
timestamp: 1704980411
|
|
1943
1943
|
},
|
|
1944
1944
|
{
|
|
1945
1945
|
id: 105,
|
|
@@ -1956,7 +1956,7 @@ var products = [
|
|
|
1956
1956
|
"DAI"
|
|
1957
1957
|
],
|
|
1958
1958
|
isPrivate: true,
|
|
1959
|
-
timestamp:
|
|
1959
|
+
timestamp: 1704980411
|
|
1960
1960
|
},
|
|
1961
1961
|
{
|
|
1962
1962
|
id: 106,
|
|
@@ -2085,7 +2085,7 @@ var products = [
|
|
|
2085
2085
|
"DAI"
|
|
2086
2086
|
],
|
|
2087
2087
|
isPrivate: true,
|
|
2088
|
-
timestamp:
|
|
2088
|
+
timestamp: 1691493035
|
|
2089
2089
|
},
|
|
2090
2090
|
{
|
|
2091
2091
|
id: 114,
|
|
@@ -2450,7 +2450,7 @@ var products = [
|
|
|
2450
2450
|
"ETH"
|
|
2451
2451
|
],
|
|
2452
2452
|
isPrivate: false,
|
|
2453
|
-
timestamp:
|
|
2453
|
+
timestamp: 1709310707
|
|
2454
2454
|
},
|
|
2455
2455
|
{
|
|
2456
2456
|
id: 137,
|
|
@@ -2546,7 +2546,7 @@ var products = [
|
|
|
2546
2546
|
"DAI"
|
|
2547
2547
|
],
|
|
2548
2548
|
isPrivate: false,
|
|
2549
|
-
timestamp:
|
|
2549
|
+
timestamp: 1710254231
|
|
2550
2550
|
},
|
|
2551
2551
|
{
|
|
2552
2552
|
id: 143,
|
|
@@ -2579,7 +2579,7 @@ var products = [
|
|
|
2579
2579
|
"DAI"
|
|
2580
2580
|
],
|
|
2581
2581
|
isPrivate: false,
|
|
2582
|
-
timestamp:
|
|
2582
|
+
timestamp: 1710254231
|
|
2583
2583
|
},
|
|
2584
2584
|
{
|
|
2585
2585
|
id: 145,
|
|
@@ -2596,7 +2596,7 @@ var products = [
|
|
|
2596
2596
|
"DAI"
|
|
2597
2597
|
],
|
|
2598
2598
|
isPrivate: false,
|
|
2599
|
-
timestamp:
|
|
2599
|
+
timestamp: 1710254231
|
|
2600
2600
|
},
|
|
2601
2601
|
{
|
|
2602
2602
|
id: 146,
|
|
@@ -2662,7 +2662,7 @@ var products = [
|
|
|
2662
2662
|
"DAI"
|
|
2663
2663
|
],
|
|
2664
2664
|
isPrivate: false,
|
|
2665
|
-
timestamp:
|
|
2665
|
+
timestamp: 1715349875
|
|
2666
2666
|
},
|
|
2667
2667
|
{
|
|
2668
2668
|
id: 150,
|
|
@@ -2727,7 +2727,7 @@ var products = [
|
|
|
2727
2727
|
"ETH"
|
|
2728
2728
|
],
|
|
2729
2729
|
isPrivate: false,
|
|
2730
|
-
timestamp:
|
|
2730
|
+
timestamp: 1711473767
|
|
2731
2731
|
},
|
|
2732
2732
|
{
|
|
2733
2733
|
id: 154,
|
|
@@ -2808,7 +2808,7 @@ var products = [
|
|
|
2808
2808
|
"ETH"
|
|
2809
2809
|
],
|
|
2810
2810
|
isPrivate: false,
|
|
2811
|
-
timestamp:
|
|
2811
|
+
timestamp: 1715349875
|
|
2812
2812
|
},
|
|
2813
2813
|
{
|
|
2814
2814
|
id: 159,
|
|
@@ -2841,7 +2841,7 @@ var products = [
|
|
|
2841
2841
|
"ETH"
|
|
2842
2842
|
],
|
|
2843
2843
|
isPrivate: false,
|
|
2844
|
-
timestamp:
|
|
2844
|
+
timestamp: 1713185771
|
|
2845
2845
|
},
|
|
2846
2846
|
{
|
|
2847
2847
|
id: 161,
|
|
@@ -2857,7 +2857,7 @@ var products = [
|
|
|
2857
2857
|
"ETH"
|
|
2858
2858
|
],
|
|
2859
2859
|
isPrivate: false,
|
|
2860
|
-
timestamp:
|
|
2860
|
+
timestamp: 1713185771
|
|
2861
2861
|
},
|
|
2862
2862
|
{
|
|
2863
2863
|
id: 162,
|
|
@@ -2873,7 +2873,7 @@ var products = [
|
|
|
2873
2873
|
"ETH"
|
|
2874
2874
|
],
|
|
2875
2875
|
isPrivate: false,
|
|
2876
|
-
timestamp:
|
|
2876
|
+
timestamp: 1713185771
|
|
2877
2877
|
},
|
|
2878
2878
|
{
|
|
2879
2879
|
id: 163,
|
|
@@ -3111,12 +3111,12 @@ declare const nexusSdk: {
|
|
|
3111
3111
|
DEFAULT_SLIPPAGE: 10;
|
|
3112
3112
|
DEFAULT_COMMISSION_RATIO: 1500;
|
|
3113
3113
|
NEXUS_MUTUAL_DAO_TREASURY_ADDRESS: "0x586b9b2F8010b284A0197f392156f1A7Eb5e86e9";
|
|
3114
|
-
getQuoteAndBuyCoverInputs: typeof getQuoteAndBuyCoverInputs;
|
|
3115
3114
|
ProductCategoryEnum: typeof ProductCategoryEnum;
|
|
3116
3115
|
categoryLabelByEnum: Record<ProductCategoryEnum, string>;
|
|
3117
3116
|
productCategoryMap: {
|
|
3118
3117
|
[productId: number]: ProductCategoryEnum;
|
|
3119
3118
|
};
|
|
3119
|
+
getQuoteAndBuyCoverInputs: typeof getQuoteAndBuyCoverInputs;
|
|
3120
3120
|
calculatePremiumWithCommissionAndSlippage: (premium: bigint, commission?: number, slippage?: number) => bigint;
|
|
3121
3121
|
calculateExactNxmForEth: (ethIn: bigint, reserves: Reserves) => bigint;
|
|
3122
3122
|
calculateExactEthForNxm: (nxmIn: bigint, reserves: Reserves) => bigint;
|