@nexusmutual/sdk 0.16.1 → 0.17.0-rc.0
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 +28 -19
- package/dist/index.d.ts +28 -19
- package/dist/index.js +50 -19
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +49 -19
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/data/products.json
CHANGED
|
@@ -2429,7 +2429,7 @@
|
|
|
2429
2429
|
"cbBTC"
|
|
2430
2430
|
],
|
|
2431
2431
|
"isPrivate": false,
|
|
2432
|
-
"timestamp":
|
|
2432
|
+
"timestamp": 1739447471,
|
|
2433
2433
|
"minPrice": 100
|
|
2434
2434
|
},
|
|
2435
2435
|
{
|
|
@@ -2790,7 +2790,7 @@
|
|
|
2790
2790
|
"ETH"
|
|
2791
2791
|
],
|
|
2792
2792
|
"isPrivate": false,
|
|
2793
|
-
"timestamp":
|
|
2793
|
+
"timestamp": 1734557999,
|
|
2794
2794
|
"minPrice": 100
|
|
2795
2795
|
},
|
|
2796
2796
|
{
|
|
@@ -2914,7 +2914,7 @@
|
|
|
2914
2914
|
"cbBTC"
|
|
2915
2915
|
],
|
|
2916
2916
|
"isPrivate": false,
|
|
2917
|
-
"timestamp":
|
|
2917
|
+
"timestamp": 1733326763,
|
|
2918
2918
|
"minPrice": 100
|
|
2919
2919
|
},
|
|
2920
2920
|
{
|
|
@@ -3058,7 +3058,7 @@
|
|
|
3058
3058
|
"USDC"
|
|
3059
3059
|
],
|
|
3060
3060
|
"isPrivate": false,
|
|
3061
|
-
"timestamp":
|
|
3061
|
+
"timestamp": 1731583079,
|
|
3062
3062
|
"minPrice": 100
|
|
3063
3063
|
},
|
|
3064
3064
|
{
|
|
@@ -4041,7 +4041,7 @@
|
|
|
4041
4041
|
"USDC"
|
|
4042
4042
|
],
|
|
4043
4043
|
"isPrivate": false,
|
|
4044
|
-
"timestamp":
|
|
4044
|
+
"timestamp": 1722950807,
|
|
4045
4045
|
"minPrice": 100
|
|
4046
4046
|
},
|
|
4047
4047
|
{
|
|
@@ -4076,7 +4076,7 @@
|
|
|
4076
4076
|
"cbBTC"
|
|
4077
4077
|
],
|
|
4078
4078
|
"isPrivate": false,
|
|
4079
|
-
"timestamp":
|
|
4079
|
+
"timestamp": 1734557999,
|
|
4080
4080
|
"minPrice": 100
|
|
4081
4081
|
},
|
|
4082
4082
|
{
|
|
@@ -4230,7 +4230,7 @@
|
|
|
4230
4230
|
"cbBTC"
|
|
4231
4231
|
],
|
|
4232
4232
|
"isPrivate": false,
|
|
4233
|
-
"timestamp":
|
|
4233
|
+
"timestamp": 1747055891,
|
|
4234
4234
|
"minPrice": 100
|
|
4235
4235
|
},
|
|
4236
4236
|
{
|
|
@@ -4359,7 +4359,7 @@
|
|
|
4359
4359
|
"USDC"
|
|
4360
4360
|
],
|
|
4361
4361
|
"isPrivate": false,
|
|
4362
|
-
"timestamp":
|
|
4362
|
+
"timestamp": 1726758407,
|
|
4363
4363
|
"minPrice": 100
|
|
4364
4364
|
},
|
|
4365
4365
|
{
|
|
@@ -4376,7 +4376,7 @@
|
|
|
4376
4376
|
"USDC"
|
|
4377
4377
|
],
|
|
4378
4378
|
"isPrivate": false,
|
|
4379
|
-
"timestamp":
|
|
4379
|
+
"timestamp": 1734557999,
|
|
4380
4380
|
"minPrice": 100
|
|
4381
4381
|
},
|
|
4382
4382
|
{
|
|
@@ -4510,7 +4510,7 @@
|
|
|
4510
4510
|
"cbBTC"
|
|
4511
4511
|
],
|
|
4512
4512
|
"isPrivate": false,
|
|
4513
|
-
"timestamp":
|
|
4513
|
+
"timestamp": 1740672395,
|
|
4514
4514
|
"minPrice": 49
|
|
4515
4515
|
},
|
|
4516
4516
|
{
|
|
@@ -4529,7 +4529,7 @@
|
|
|
4529
4529
|
"cbBTC"
|
|
4530
4530
|
],
|
|
4531
4531
|
"isPrivate": false,
|
|
4532
|
-
"timestamp":
|
|
4532
|
+
"timestamp": 1740672395,
|
|
4533
4533
|
"minPrice": 225
|
|
4534
4534
|
},
|
|
4535
4535
|
{
|
|
@@ -4658,7 +4658,7 @@
|
|
|
4658
4658
|
"USDC"
|
|
4659
4659
|
],
|
|
4660
4660
|
"isPrivate": false,
|
|
4661
|
-
"timestamp":
|
|
4661
|
+
"timestamp": 1739447471,
|
|
4662
4662
|
"minPrice": 300
|
|
4663
4663
|
},
|
|
4664
4664
|
{
|
|
@@ -4798,7 +4798,7 @@
|
|
|
4798
4798
|
"USDC"
|
|
4799
4799
|
],
|
|
4800
4800
|
"isPrivate": false,
|
|
4801
|
-
"timestamp":
|
|
4801
|
+
"timestamp": 1744902863,
|
|
4802
4802
|
"minPrice": 50
|
|
4803
4803
|
},
|
|
4804
4804
|
{
|
|
@@ -4955,7 +4955,7 @@
|
|
|
4955
4955
|
"cbBTC"
|
|
4956
4956
|
],
|
|
4957
4957
|
"isPrivate": false,
|
|
4958
|
-
"timestamp":
|
|
4958
|
+
"timestamp": 1739447471,
|
|
4959
4959
|
"minPrice": 50
|
|
4960
4960
|
},
|
|
4961
4961
|
{
|
|
@@ -4993,7 +4993,7 @@
|
|
|
4993
4993
|
"cbBTC"
|
|
4994
4994
|
],
|
|
4995
4995
|
"isPrivate": false,
|
|
4996
|
-
"timestamp":
|
|
4996
|
+
"timestamp": 1739447471,
|
|
4997
4997
|
"minPrice": 380
|
|
4998
4998
|
},
|
|
4999
4999
|
{
|
package/dist/index.d.mts
CHANGED
|
@@ -36,7 +36,15 @@ declare enum ProductTypes {
|
|
|
36
36
|
declare enum CoverAsset {
|
|
37
37
|
ETH = 0,
|
|
38
38
|
DAI = 1,
|
|
39
|
-
USDC = 6
|
|
39
|
+
USDC = 6,
|
|
40
|
+
cbBTC = 7
|
|
41
|
+
}
|
|
42
|
+
declare enum PaymentAsset {
|
|
43
|
+
ETH = 0,
|
|
44
|
+
DAI = 1,
|
|
45
|
+
USDC = 6,
|
|
46
|
+
cbBTC = 7,
|
|
47
|
+
NXM = 255
|
|
40
48
|
}
|
|
41
49
|
declare enum CoverId {
|
|
42
50
|
BUY = 0
|
|
@@ -2616,7 +2624,7 @@ var products = [
|
|
|
2616
2624
|
"cbBTC"
|
|
2617
2625
|
],
|
|
2618
2626
|
isPrivate: false,
|
|
2619
|
-
timestamp:
|
|
2627
|
+
timestamp: 1739447471,
|
|
2620
2628
|
minPrice: 100
|
|
2621
2629
|
},
|
|
2622
2630
|
{
|
|
@@ -2988,7 +2996,7 @@ var products = [
|
|
|
2988
2996
|
"ETH"
|
|
2989
2997
|
],
|
|
2990
2998
|
isPrivate: false,
|
|
2991
|
-
timestamp:
|
|
2999
|
+
timestamp: 1734557999,
|
|
2992
3000
|
minPrice: 100
|
|
2993
3001
|
},
|
|
2994
3002
|
{
|
|
@@ -3113,7 +3121,7 @@ var products = [
|
|
|
3113
3121
|
"cbBTC"
|
|
3114
3122
|
],
|
|
3115
3123
|
isPrivate: false,
|
|
3116
|
-
timestamp:
|
|
3124
|
+
timestamp: 1733326763,
|
|
3117
3125
|
minPrice: 100
|
|
3118
3126
|
},
|
|
3119
3127
|
{
|
|
@@ -3257,7 +3265,7 @@ var products = [
|
|
|
3257
3265
|
"USDC"
|
|
3258
3266
|
],
|
|
3259
3267
|
isPrivate: false,
|
|
3260
|
-
timestamp:
|
|
3268
|
+
timestamp: 1731583079,
|
|
3261
3269
|
minPrice: 100
|
|
3262
3270
|
},
|
|
3263
3271
|
{
|
|
@@ -4255,7 +4263,7 @@ var products = [
|
|
|
4255
4263
|
"USDC"
|
|
4256
4264
|
],
|
|
4257
4265
|
isPrivate: false,
|
|
4258
|
-
timestamp:
|
|
4266
|
+
timestamp: 1722950807,
|
|
4259
4267
|
minPrice: 100
|
|
4260
4268
|
},
|
|
4261
4269
|
{
|
|
@@ -4290,7 +4298,7 @@ var products = [
|
|
|
4290
4298
|
"cbBTC"
|
|
4291
4299
|
],
|
|
4292
4300
|
isPrivate: false,
|
|
4293
|
-
timestamp:
|
|
4301
|
+
timestamp: 1734557999,
|
|
4294
4302
|
minPrice: 100
|
|
4295
4303
|
},
|
|
4296
4304
|
{
|
|
@@ -4445,7 +4453,7 @@ var products = [
|
|
|
4445
4453
|
"cbBTC"
|
|
4446
4454
|
],
|
|
4447
4455
|
isPrivate: false,
|
|
4448
|
-
timestamp:
|
|
4456
|
+
timestamp: 1747055891,
|
|
4449
4457
|
minPrice: 100
|
|
4450
4458
|
},
|
|
4451
4459
|
{
|
|
@@ -4578,7 +4586,7 @@ var products = [
|
|
|
4578
4586
|
"USDC"
|
|
4579
4587
|
],
|
|
4580
4588
|
isPrivate: false,
|
|
4581
|
-
timestamp:
|
|
4589
|
+
timestamp: 1726758407,
|
|
4582
4590
|
minPrice: 100
|
|
4583
4591
|
},
|
|
4584
4592
|
{
|
|
@@ -4595,7 +4603,7 @@ var products = [
|
|
|
4595
4603
|
"USDC"
|
|
4596
4604
|
],
|
|
4597
4605
|
isPrivate: false,
|
|
4598
|
-
timestamp:
|
|
4606
|
+
timestamp: 1734557999,
|
|
4599
4607
|
minPrice: 100
|
|
4600
4608
|
},
|
|
4601
4609
|
{
|
|
@@ -4733,7 +4741,7 @@ var products = [
|
|
|
4733
4741
|
"cbBTC"
|
|
4734
4742
|
],
|
|
4735
4743
|
isPrivate: false,
|
|
4736
|
-
timestamp:
|
|
4744
|
+
timestamp: 1740672395,
|
|
4737
4745
|
minPrice: 49
|
|
4738
4746
|
},
|
|
4739
4747
|
{
|
|
@@ -4752,7 +4760,7 @@ var products = [
|
|
|
4752
4760
|
"cbBTC"
|
|
4753
4761
|
],
|
|
4754
4762
|
isPrivate: false,
|
|
4755
|
-
timestamp:
|
|
4763
|
+
timestamp: 1740672395,
|
|
4756
4764
|
minPrice: 225
|
|
4757
4765
|
},
|
|
4758
4766
|
{
|
|
@@ -4882,7 +4890,7 @@ var products = [
|
|
|
4882
4890
|
"USDC"
|
|
4883
4891
|
],
|
|
4884
4892
|
isPrivate: false,
|
|
4885
|
-
timestamp:
|
|
4893
|
+
timestamp: 1739447471,
|
|
4886
4894
|
minPrice: 300
|
|
4887
4895
|
},
|
|
4888
4896
|
{
|
|
@@ -5027,7 +5035,7 @@ var products = [
|
|
|
5027
5035
|
"USDC"
|
|
5028
5036
|
],
|
|
5029
5037
|
isPrivate: false,
|
|
5030
|
-
timestamp:
|
|
5038
|
+
timestamp: 1744902863,
|
|
5031
5039
|
minPrice: 50
|
|
5032
5040
|
},
|
|
5033
5041
|
{
|
|
@@ -5184,7 +5192,7 @@ var products = [
|
|
|
5184
5192
|
"cbBTC"
|
|
5185
5193
|
],
|
|
5186
5194
|
isPrivate: false,
|
|
5187
|
-
timestamp:
|
|
5195
|
+
timestamp: 1739447471,
|
|
5188
5196
|
minPrice: 50
|
|
5189
5197
|
},
|
|
5190
5198
|
{
|
|
@@ -5222,7 +5230,7 @@ var products = [
|
|
|
5222
5230
|
"cbBTC"
|
|
5223
5231
|
],
|
|
5224
5232
|
isPrivate: false,
|
|
5225
|
-
timestamp:
|
|
5233
|
+
timestamp: 1739447471,
|
|
5226
5234
|
minPrice: 380
|
|
5227
5235
|
},
|
|
5228
5236
|
{
|
|
@@ -6175,8 +6183,8 @@ type ProductDTO = Omit<(typeof products)[number], 'productType'> & {
|
|
|
6175
6183
|
productType: ProductTypes;
|
|
6176
6184
|
};
|
|
6177
6185
|
declare const productsMap: Record<number, ProductDTO>;
|
|
6178
|
-
declare function getQuoteAndBuyCoverInputs(productId: Integer, coverAmount: IntString, coverPeriod: Integer, coverAsset: CoverAsset, coverBuyerAddress: Address, slippage?: number, ipfsCid?: string, nexusApiUrl?: string, commissionRatio?: number, commissionDestination?: Address): Promise<GetQuoteApiResponse | ErrorApiResponse>;
|
|
6179
|
-
declare function getQuoteAndBuyCoverInputs<ProductTypes extends keyof IPFSContentForProductType>(productId: Integer, coverAmount: IntString, coverPeriod: Integer, coverAsset: CoverAsset, coverBuyerAddress: Address, slippage?: number, ipfsContent?: IPFSContentForProductType[ProductTypes], nexusApiUrl?: string, commissionRatio?: number, commissionDestination?: Address): Promise<GetQuoteApiResponse | ErrorApiResponse>;
|
|
6186
|
+
declare function getQuoteAndBuyCoverInputs(productId: Integer, coverAmount: IntString, coverPeriod: Integer, coverAsset: CoverAsset, coverBuyerAddress: Address, slippage?: number, ipfsCid?: string, nexusApiUrl?: string, commissionRatio?: number, commissionDestination?: Address, paymentAsset?: PaymentAsset): Promise<GetQuoteApiResponse | ErrorApiResponse>;
|
|
6187
|
+
declare function getQuoteAndBuyCoverInputs<ProductTypes extends keyof IPFSContentForProductType>(productId: Integer, coverAmount: IntString, coverPeriod: Integer, coverAsset: CoverAsset, coverBuyerAddress: Address, slippage?: number, ipfsContent?: IPFSContentForProductType[ProductTypes], nexusApiUrl?: string, commissionRatio?: number, commissionDestination?: Address, paymentAsset?: PaymentAsset): Promise<GetQuoteApiResponse | ErrorApiResponse>;
|
|
6180
6188
|
|
|
6181
6189
|
type Reserves = {
|
|
6182
6190
|
ethReserve: bigint;
|
|
@@ -6470,6 +6478,7 @@ declare const validateIPFSContent: (type: ContentType, content: IPFSContentTypes
|
|
|
6470
6478
|
declare const nexusSdk: {
|
|
6471
6479
|
allPrivateProductsIds: number[];
|
|
6472
6480
|
CoverAsset: typeof CoverAsset;
|
|
6481
|
+
PaymentAsset: typeof PaymentAsset;
|
|
6473
6482
|
CoverId: typeof CoverId;
|
|
6474
6483
|
COMMISSION_DENOMINATOR: 10000;
|
|
6475
6484
|
SLIPPAGE_DENOMINATOR: 10000;
|
|
@@ -42274,4 +42283,4 @@ declare const nexusSdk: {
|
|
|
42274
42283
|
}];
|
|
42275
42284
|
};
|
|
42276
42285
|
|
|
42277
|
-
export { Address, ApiResponse, AssessmentCriteriaAnswers, BUY_COVER_COMMISSION_DESTINATION_BY_PRODUCT_TYPE, BUY_COVER_COMMISSION_RATIO_BY_PRODUCT_TYPE, BuyCoverInput, BuyCoverParams, COMMISSION_DENOMINATOR, CRYPTO_COVER_COMMISSION_RATIO, Capacity, ClaimProof, ContentType, CoverAsset, CoverAumCoverAmountPercentage, CoverDesignatedWallets, CoverFreeText, CoverId, CoverQuotaShare, CoverRouterProductCapacityResponse, CoverRouterQuoteResponse, CoverValidators, CoverWalletAddress, CoverWalletAddresses, DEFAULT_COMMISSION_RATIO, DEFAULT_SLIPPAGE, DEFI_PASS_COMMISSION_RATIO, DefiPassContent, ErrorApiResponse, ErrorResponse, FUND_PORTFOLIO_COMMISSION_RATIO, FloatString, GENERALISED_FUND_PORTFOLIO_COMMISSION_RATIO, GetQuoteApiResponse, GetQuoteResponse, GovernanceCategory, GovernanceProposal, IMMUNEFI_ADDRESS, IPFSContentForProductType, IPFSContentTypes, IPFSTypeContentTuple, IPFSUploadServiceResponse, IPFS_CONTENT_TYPE_BY_PRODUCT_TYPE, IntString, Integer, LogoFileName, LogoName, MAXIMUM_COVER_PERIOD, MINIMUM_COVER_PERIOD, NEXUS_MUTUAL_COVER_COMMISSION_RATIO, NEXUS_MUTUAL_DAO_TREASURY_ADDRESS, NO_COMMISSION, NO_COMMISSION_DESTINATION, PoolAllocationRequest, PoolCapacity, ProductCategoryEnum, ProductTypes, Quote, QuoteDisplayInfo, Reserves, SHERLOCK_BUG_BOUNTY_COMMISSION_RATIO, SLIPPAGE_DENOMINATOR, SPEARBIT_CANTINA_ADDRESS, StakingPoolDetails, TARGET_PRICE_DENOMINATOR, TRM_COMMISSION_RATIO, UNITY_ADDRESS, allLogoFileNames, allLogoNames, allPrivateProductsIds, calculateEthForExactNxm, calculateExactEthForNxm, calculateExactNxmForEth, calculateNxmForExactEth, calculatePremiumWithCommissionAndSlippage, calculatePriceImpactA, calculatePriceImpactB, calculateSpotPrice, categoryLabelByEnum, nexusSdk as default, getQuoteAndBuyCoverInputs, productCategoryMap, productTypes, products, productsMap, uploadIPFSContent, validateIPFSCid, validateIPFSContent };
|
|
42286
|
+
export { Address, ApiResponse, AssessmentCriteriaAnswers, BUY_COVER_COMMISSION_DESTINATION_BY_PRODUCT_TYPE, BUY_COVER_COMMISSION_RATIO_BY_PRODUCT_TYPE, BuyCoverInput, BuyCoverParams, COMMISSION_DENOMINATOR, CRYPTO_COVER_COMMISSION_RATIO, Capacity, ClaimProof, ContentType, CoverAsset, CoverAumCoverAmountPercentage, CoverDesignatedWallets, CoverFreeText, CoverId, CoverQuotaShare, CoverRouterProductCapacityResponse, CoverRouterQuoteResponse, CoverValidators, CoverWalletAddress, CoverWalletAddresses, DEFAULT_COMMISSION_RATIO, DEFAULT_SLIPPAGE, DEFI_PASS_COMMISSION_RATIO, DefiPassContent, ErrorApiResponse, ErrorResponse, FUND_PORTFOLIO_COMMISSION_RATIO, FloatString, GENERALISED_FUND_PORTFOLIO_COMMISSION_RATIO, GetQuoteApiResponse, GetQuoteResponse, GovernanceCategory, GovernanceProposal, IMMUNEFI_ADDRESS, IPFSContentForProductType, IPFSContentTypes, IPFSTypeContentTuple, IPFSUploadServiceResponse, IPFS_CONTENT_TYPE_BY_PRODUCT_TYPE, IntString, Integer, LogoFileName, LogoName, MAXIMUM_COVER_PERIOD, MINIMUM_COVER_PERIOD, NEXUS_MUTUAL_COVER_COMMISSION_RATIO, NEXUS_MUTUAL_DAO_TREASURY_ADDRESS, NO_COMMISSION, NO_COMMISSION_DESTINATION, PaymentAsset, PoolAllocationRequest, PoolCapacity, ProductCategoryEnum, ProductTypes, Quote, QuoteDisplayInfo, Reserves, SHERLOCK_BUG_BOUNTY_COMMISSION_RATIO, SLIPPAGE_DENOMINATOR, SPEARBIT_CANTINA_ADDRESS, StakingPoolDetails, TARGET_PRICE_DENOMINATOR, TRM_COMMISSION_RATIO, UNITY_ADDRESS, allLogoFileNames, allLogoNames, allPrivateProductsIds, calculateEthForExactNxm, calculateExactEthForNxm, calculateExactNxmForEth, calculateNxmForExactEth, calculatePremiumWithCommissionAndSlippage, calculatePriceImpactA, calculatePriceImpactB, calculateSpotPrice, categoryLabelByEnum, nexusSdk as default, getQuoteAndBuyCoverInputs, productCategoryMap, productTypes, products, productsMap, uploadIPFSContent, validateIPFSCid, validateIPFSContent };
|
package/dist/index.d.ts
CHANGED
|
@@ -36,7 +36,15 @@ declare enum ProductTypes {
|
|
|
36
36
|
declare enum CoverAsset {
|
|
37
37
|
ETH = 0,
|
|
38
38
|
DAI = 1,
|
|
39
|
-
USDC = 6
|
|
39
|
+
USDC = 6,
|
|
40
|
+
cbBTC = 7
|
|
41
|
+
}
|
|
42
|
+
declare enum PaymentAsset {
|
|
43
|
+
ETH = 0,
|
|
44
|
+
DAI = 1,
|
|
45
|
+
USDC = 6,
|
|
46
|
+
cbBTC = 7,
|
|
47
|
+
NXM = 255
|
|
40
48
|
}
|
|
41
49
|
declare enum CoverId {
|
|
42
50
|
BUY = 0
|
|
@@ -2616,7 +2624,7 @@ var products = [
|
|
|
2616
2624
|
"cbBTC"
|
|
2617
2625
|
],
|
|
2618
2626
|
isPrivate: false,
|
|
2619
|
-
timestamp:
|
|
2627
|
+
timestamp: 1739447471,
|
|
2620
2628
|
minPrice: 100
|
|
2621
2629
|
},
|
|
2622
2630
|
{
|
|
@@ -2988,7 +2996,7 @@ var products = [
|
|
|
2988
2996
|
"ETH"
|
|
2989
2997
|
],
|
|
2990
2998
|
isPrivate: false,
|
|
2991
|
-
timestamp:
|
|
2999
|
+
timestamp: 1734557999,
|
|
2992
3000
|
minPrice: 100
|
|
2993
3001
|
},
|
|
2994
3002
|
{
|
|
@@ -3113,7 +3121,7 @@ var products = [
|
|
|
3113
3121
|
"cbBTC"
|
|
3114
3122
|
],
|
|
3115
3123
|
isPrivate: false,
|
|
3116
|
-
timestamp:
|
|
3124
|
+
timestamp: 1733326763,
|
|
3117
3125
|
minPrice: 100
|
|
3118
3126
|
},
|
|
3119
3127
|
{
|
|
@@ -3257,7 +3265,7 @@ var products = [
|
|
|
3257
3265
|
"USDC"
|
|
3258
3266
|
],
|
|
3259
3267
|
isPrivate: false,
|
|
3260
|
-
timestamp:
|
|
3268
|
+
timestamp: 1731583079,
|
|
3261
3269
|
minPrice: 100
|
|
3262
3270
|
},
|
|
3263
3271
|
{
|
|
@@ -4255,7 +4263,7 @@ var products = [
|
|
|
4255
4263
|
"USDC"
|
|
4256
4264
|
],
|
|
4257
4265
|
isPrivate: false,
|
|
4258
|
-
timestamp:
|
|
4266
|
+
timestamp: 1722950807,
|
|
4259
4267
|
minPrice: 100
|
|
4260
4268
|
},
|
|
4261
4269
|
{
|
|
@@ -4290,7 +4298,7 @@ var products = [
|
|
|
4290
4298
|
"cbBTC"
|
|
4291
4299
|
],
|
|
4292
4300
|
isPrivate: false,
|
|
4293
|
-
timestamp:
|
|
4301
|
+
timestamp: 1734557999,
|
|
4294
4302
|
minPrice: 100
|
|
4295
4303
|
},
|
|
4296
4304
|
{
|
|
@@ -4445,7 +4453,7 @@ var products = [
|
|
|
4445
4453
|
"cbBTC"
|
|
4446
4454
|
],
|
|
4447
4455
|
isPrivate: false,
|
|
4448
|
-
timestamp:
|
|
4456
|
+
timestamp: 1747055891,
|
|
4449
4457
|
minPrice: 100
|
|
4450
4458
|
},
|
|
4451
4459
|
{
|
|
@@ -4578,7 +4586,7 @@ var products = [
|
|
|
4578
4586
|
"USDC"
|
|
4579
4587
|
],
|
|
4580
4588
|
isPrivate: false,
|
|
4581
|
-
timestamp:
|
|
4589
|
+
timestamp: 1726758407,
|
|
4582
4590
|
minPrice: 100
|
|
4583
4591
|
},
|
|
4584
4592
|
{
|
|
@@ -4595,7 +4603,7 @@ var products = [
|
|
|
4595
4603
|
"USDC"
|
|
4596
4604
|
],
|
|
4597
4605
|
isPrivate: false,
|
|
4598
|
-
timestamp:
|
|
4606
|
+
timestamp: 1734557999,
|
|
4599
4607
|
minPrice: 100
|
|
4600
4608
|
},
|
|
4601
4609
|
{
|
|
@@ -4733,7 +4741,7 @@ var products = [
|
|
|
4733
4741
|
"cbBTC"
|
|
4734
4742
|
],
|
|
4735
4743
|
isPrivate: false,
|
|
4736
|
-
timestamp:
|
|
4744
|
+
timestamp: 1740672395,
|
|
4737
4745
|
minPrice: 49
|
|
4738
4746
|
},
|
|
4739
4747
|
{
|
|
@@ -4752,7 +4760,7 @@ var products = [
|
|
|
4752
4760
|
"cbBTC"
|
|
4753
4761
|
],
|
|
4754
4762
|
isPrivate: false,
|
|
4755
|
-
timestamp:
|
|
4763
|
+
timestamp: 1740672395,
|
|
4756
4764
|
minPrice: 225
|
|
4757
4765
|
},
|
|
4758
4766
|
{
|
|
@@ -4882,7 +4890,7 @@ var products = [
|
|
|
4882
4890
|
"USDC"
|
|
4883
4891
|
],
|
|
4884
4892
|
isPrivate: false,
|
|
4885
|
-
timestamp:
|
|
4893
|
+
timestamp: 1739447471,
|
|
4886
4894
|
minPrice: 300
|
|
4887
4895
|
},
|
|
4888
4896
|
{
|
|
@@ -5027,7 +5035,7 @@ var products = [
|
|
|
5027
5035
|
"USDC"
|
|
5028
5036
|
],
|
|
5029
5037
|
isPrivate: false,
|
|
5030
|
-
timestamp:
|
|
5038
|
+
timestamp: 1744902863,
|
|
5031
5039
|
minPrice: 50
|
|
5032
5040
|
},
|
|
5033
5041
|
{
|
|
@@ -5184,7 +5192,7 @@ var products = [
|
|
|
5184
5192
|
"cbBTC"
|
|
5185
5193
|
],
|
|
5186
5194
|
isPrivate: false,
|
|
5187
|
-
timestamp:
|
|
5195
|
+
timestamp: 1739447471,
|
|
5188
5196
|
minPrice: 50
|
|
5189
5197
|
},
|
|
5190
5198
|
{
|
|
@@ -5222,7 +5230,7 @@ var products = [
|
|
|
5222
5230
|
"cbBTC"
|
|
5223
5231
|
],
|
|
5224
5232
|
isPrivate: false,
|
|
5225
|
-
timestamp:
|
|
5233
|
+
timestamp: 1739447471,
|
|
5226
5234
|
minPrice: 380
|
|
5227
5235
|
},
|
|
5228
5236
|
{
|
|
@@ -6175,8 +6183,8 @@ type ProductDTO = Omit<(typeof products)[number], 'productType'> & {
|
|
|
6175
6183
|
productType: ProductTypes;
|
|
6176
6184
|
};
|
|
6177
6185
|
declare const productsMap: Record<number, ProductDTO>;
|
|
6178
|
-
declare function getQuoteAndBuyCoverInputs(productId: Integer, coverAmount: IntString, coverPeriod: Integer, coverAsset: CoverAsset, coverBuyerAddress: Address, slippage?: number, ipfsCid?: string, nexusApiUrl?: string, commissionRatio?: number, commissionDestination?: Address): Promise<GetQuoteApiResponse | ErrorApiResponse>;
|
|
6179
|
-
declare function getQuoteAndBuyCoverInputs<ProductTypes extends keyof IPFSContentForProductType>(productId: Integer, coverAmount: IntString, coverPeriod: Integer, coverAsset: CoverAsset, coverBuyerAddress: Address, slippage?: number, ipfsContent?: IPFSContentForProductType[ProductTypes], nexusApiUrl?: string, commissionRatio?: number, commissionDestination?: Address): Promise<GetQuoteApiResponse | ErrorApiResponse>;
|
|
6186
|
+
declare function getQuoteAndBuyCoverInputs(productId: Integer, coverAmount: IntString, coverPeriod: Integer, coverAsset: CoverAsset, coverBuyerAddress: Address, slippage?: number, ipfsCid?: string, nexusApiUrl?: string, commissionRatio?: number, commissionDestination?: Address, paymentAsset?: PaymentAsset): Promise<GetQuoteApiResponse | ErrorApiResponse>;
|
|
6187
|
+
declare function getQuoteAndBuyCoverInputs<ProductTypes extends keyof IPFSContentForProductType>(productId: Integer, coverAmount: IntString, coverPeriod: Integer, coverAsset: CoverAsset, coverBuyerAddress: Address, slippage?: number, ipfsContent?: IPFSContentForProductType[ProductTypes], nexusApiUrl?: string, commissionRatio?: number, commissionDestination?: Address, paymentAsset?: PaymentAsset): Promise<GetQuoteApiResponse | ErrorApiResponse>;
|
|
6180
6188
|
|
|
6181
6189
|
type Reserves = {
|
|
6182
6190
|
ethReserve: bigint;
|
|
@@ -6470,6 +6478,7 @@ declare const validateIPFSContent: (type: ContentType, content: IPFSContentTypes
|
|
|
6470
6478
|
declare const nexusSdk: {
|
|
6471
6479
|
allPrivateProductsIds: number[];
|
|
6472
6480
|
CoverAsset: typeof CoverAsset;
|
|
6481
|
+
PaymentAsset: typeof PaymentAsset;
|
|
6473
6482
|
CoverId: typeof CoverId;
|
|
6474
6483
|
COMMISSION_DENOMINATOR: 10000;
|
|
6475
6484
|
SLIPPAGE_DENOMINATOR: 10000;
|
|
@@ -42274,4 +42283,4 @@ declare const nexusSdk: {
|
|
|
42274
42283
|
}];
|
|
42275
42284
|
};
|
|
42276
42285
|
|
|
42277
|
-
export { Address, ApiResponse, AssessmentCriteriaAnswers, BUY_COVER_COMMISSION_DESTINATION_BY_PRODUCT_TYPE, BUY_COVER_COMMISSION_RATIO_BY_PRODUCT_TYPE, BuyCoverInput, BuyCoverParams, COMMISSION_DENOMINATOR, CRYPTO_COVER_COMMISSION_RATIO, Capacity, ClaimProof, ContentType, CoverAsset, CoverAumCoverAmountPercentage, CoverDesignatedWallets, CoverFreeText, CoverId, CoverQuotaShare, CoverRouterProductCapacityResponse, CoverRouterQuoteResponse, CoverValidators, CoverWalletAddress, CoverWalletAddresses, DEFAULT_COMMISSION_RATIO, DEFAULT_SLIPPAGE, DEFI_PASS_COMMISSION_RATIO, DefiPassContent, ErrorApiResponse, ErrorResponse, FUND_PORTFOLIO_COMMISSION_RATIO, FloatString, GENERALISED_FUND_PORTFOLIO_COMMISSION_RATIO, GetQuoteApiResponse, GetQuoteResponse, GovernanceCategory, GovernanceProposal, IMMUNEFI_ADDRESS, IPFSContentForProductType, IPFSContentTypes, IPFSTypeContentTuple, IPFSUploadServiceResponse, IPFS_CONTENT_TYPE_BY_PRODUCT_TYPE, IntString, Integer, LogoFileName, LogoName, MAXIMUM_COVER_PERIOD, MINIMUM_COVER_PERIOD, NEXUS_MUTUAL_COVER_COMMISSION_RATIO, NEXUS_MUTUAL_DAO_TREASURY_ADDRESS, NO_COMMISSION, NO_COMMISSION_DESTINATION, PoolAllocationRequest, PoolCapacity, ProductCategoryEnum, ProductTypes, Quote, QuoteDisplayInfo, Reserves, SHERLOCK_BUG_BOUNTY_COMMISSION_RATIO, SLIPPAGE_DENOMINATOR, SPEARBIT_CANTINA_ADDRESS, StakingPoolDetails, TARGET_PRICE_DENOMINATOR, TRM_COMMISSION_RATIO, UNITY_ADDRESS, allLogoFileNames, allLogoNames, allPrivateProductsIds, calculateEthForExactNxm, calculateExactEthForNxm, calculateExactNxmForEth, calculateNxmForExactEth, calculatePremiumWithCommissionAndSlippage, calculatePriceImpactA, calculatePriceImpactB, calculateSpotPrice, categoryLabelByEnum, nexusSdk as default, getQuoteAndBuyCoverInputs, productCategoryMap, productTypes, products, productsMap, uploadIPFSContent, validateIPFSCid, validateIPFSContent };
|
|
42286
|
+
export { Address, ApiResponse, AssessmentCriteriaAnswers, BUY_COVER_COMMISSION_DESTINATION_BY_PRODUCT_TYPE, BUY_COVER_COMMISSION_RATIO_BY_PRODUCT_TYPE, BuyCoverInput, BuyCoverParams, COMMISSION_DENOMINATOR, CRYPTO_COVER_COMMISSION_RATIO, Capacity, ClaimProof, ContentType, CoverAsset, CoverAumCoverAmountPercentage, CoverDesignatedWallets, CoverFreeText, CoverId, CoverQuotaShare, CoverRouterProductCapacityResponse, CoverRouterQuoteResponse, CoverValidators, CoverWalletAddress, CoverWalletAddresses, DEFAULT_COMMISSION_RATIO, DEFAULT_SLIPPAGE, DEFI_PASS_COMMISSION_RATIO, DefiPassContent, ErrorApiResponse, ErrorResponse, FUND_PORTFOLIO_COMMISSION_RATIO, FloatString, GENERALISED_FUND_PORTFOLIO_COMMISSION_RATIO, GetQuoteApiResponse, GetQuoteResponse, GovernanceCategory, GovernanceProposal, IMMUNEFI_ADDRESS, IPFSContentForProductType, IPFSContentTypes, IPFSTypeContentTuple, IPFSUploadServiceResponse, IPFS_CONTENT_TYPE_BY_PRODUCT_TYPE, IntString, Integer, LogoFileName, LogoName, MAXIMUM_COVER_PERIOD, MINIMUM_COVER_PERIOD, NEXUS_MUTUAL_COVER_COMMISSION_RATIO, NEXUS_MUTUAL_DAO_TREASURY_ADDRESS, NO_COMMISSION, NO_COMMISSION_DESTINATION, PaymentAsset, PoolAllocationRequest, PoolCapacity, ProductCategoryEnum, ProductTypes, Quote, QuoteDisplayInfo, Reserves, SHERLOCK_BUG_BOUNTY_COMMISSION_RATIO, SLIPPAGE_DENOMINATOR, SPEARBIT_CANTINA_ADDRESS, StakingPoolDetails, TARGET_PRICE_DENOMINATOR, TRM_COMMISSION_RATIO, UNITY_ADDRESS, allLogoFileNames, allLogoNames, allPrivateProductsIds, calculateEthForExactNxm, calculateExactEthForNxm, calculateExactNxmForEth, calculateNxmForExactEth, calculatePremiumWithCommissionAndSlippage, calculatePriceImpactA, calculatePriceImpactB, calculateSpotPrice, categoryLabelByEnum, nexusSdk as default, getQuoteAndBuyCoverInputs, productCategoryMap, productTypes, products, productsMap, uploadIPFSContent, validateIPFSCid, validateIPFSContent };
|