@nexusmutual/sdk 1.26.0-rc.1 → 1.27.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 +19 -19
- package/dist/data/version.json +1 -1
- package/dist/index.d.mts +38 -23
- package/dist/index.d.ts +38 -23
- package/dist/index.js +27 -20
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +27 -20
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/data/products.json
CHANGED
|
@@ -2787,7 +2787,7 @@
|
|
|
2787
2787
|
"ETH"
|
|
2788
2788
|
],
|
|
2789
2789
|
"isPrivate": false,
|
|
2790
|
-
"timestamp":
|
|
2790
|
+
"timestamp": 1758283931,
|
|
2791
2791
|
"minPrice": 100
|
|
2792
2792
|
},
|
|
2793
2793
|
{
|
|
@@ -4033,7 +4033,7 @@
|
|
|
4033
4033
|
"USDC"
|
|
4034
4034
|
],
|
|
4035
4035
|
"isPrivate": false,
|
|
4036
|
-
"timestamp":
|
|
4036
|
+
"timestamp": 1722950807,
|
|
4037
4037
|
"minPrice": 100
|
|
4038
4038
|
},
|
|
4039
4039
|
{
|
|
@@ -4222,7 +4222,7 @@
|
|
|
4222
4222
|
"cbBTC"
|
|
4223
4223
|
],
|
|
4224
4224
|
"isPrivate": false,
|
|
4225
|
-
"timestamp":
|
|
4225
|
+
"timestamp": 1764188807,
|
|
4226
4226
|
"minPrice": 100
|
|
4227
4227
|
},
|
|
4228
4228
|
{
|
|
@@ -4540,7 +4540,7 @@
|
|
|
4540
4540
|
"cbBTC"
|
|
4541
4541
|
],
|
|
4542
4542
|
"isPrivate": false,
|
|
4543
|
-
"timestamp":
|
|
4543
|
+
"timestamp": 1762356047,
|
|
4544
4544
|
"minPrice": 300
|
|
4545
4545
|
},
|
|
4546
4546
|
{
|
|
@@ -4595,7 +4595,7 @@
|
|
|
4595
4595
|
"cbBTC"
|
|
4596
4596
|
],
|
|
4597
4597
|
"isPrivate": true,
|
|
4598
|
-
"timestamp":
|
|
4598
|
+
"timestamp": 1761314531,
|
|
4599
4599
|
"minPrice": 100
|
|
4600
4600
|
},
|
|
4601
4601
|
{
|
|
@@ -4947,7 +4947,7 @@
|
|
|
4947
4947
|
"cbBTC"
|
|
4948
4948
|
],
|
|
4949
4949
|
"isPrivate": false,
|
|
4950
|
-
"timestamp":
|
|
4950
|
+
"timestamp": 1739537399,
|
|
4951
4951
|
"minPrice": 50
|
|
4952
4952
|
},
|
|
4953
4953
|
{
|
|
@@ -4966,7 +4966,7 @@
|
|
|
4966
4966
|
"cbBTC"
|
|
4967
4967
|
],
|
|
4968
4968
|
"isPrivate": false,
|
|
4969
|
-
"timestamp":
|
|
4969
|
+
"timestamp": 1739537399,
|
|
4970
4970
|
"minPrice": 235
|
|
4971
4971
|
},
|
|
4972
4972
|
{
|
|
@@ -5349,7 +5349,7 @@
|
|
|
5349
5349
|
"USDC"
|
|
5350
5350
|
],
|
|
5351
5351
|
"isPrivate": true,
|
|
5352
|
-
"timestamp":
|
|
5352
|
+
"timestamp": 1743670835,
|
|
5353
5353
|
"minPrice": 1586
|
|
5354
5354
|
},
|
|
5355
5355
|
{
|
|
@@ -5366,7 +5366,7 @@
|
|
|
5366
5366
|
"USDC"
|
|
5367
5367
|
],
|
|
5368
5368
|
"isPrivate": false,
|
|
5369
|
-
"timestamp":
|
|
5369
|
+
"timestamp": 1748970347,
|
|
5370
5370
|
"minPrice": 150
|
|
5371
5371
|
},
|
|
5372
5372
|
{
|
|
@@ -5613,7 +5613,7 @@
|
|
|
5613
5613
|
"cbBTC"
|
|
5614
5614
|
],
|
|
5615
5615
|
"isPrivate": false,
|
|
5616
|
-
"timestamp":
|
|
5616
|
+
"timestamp": 1750162583,
|
|
5617
5617
|
"minPrice": 100
|
|
5618
5618
|
},
|
|
5619
5619
|
{
|
|
@@ -5683,7 +5683,7 @@
|
|
|
5683
5683
|
"USDC"
|
|
5684
5684
|
],
|
|
5685
5685
|
"isPrivate": false,
|
|
5686
|
-
"timestamp":
|
|
5686
|
+
"timestamp": 1752150803,
|
|
5687
5687
|
"minPrice": 50
|
|
5688
5688
|
},
|
|
5689
5689
|
{
|
|
@@ -5700,7 +5700,7 @@
|
|
|
5700
5700
|
"USDC"
|
|
5701
5701
|
],
|
|
5702
5702
|
"isPrivate": false,
|
|
5703
|
-
"timestamp":
|
|
5703
|
+
"timestamp": 1757074607,
|
|
5704
5704
|
"minPrice": 50
|
|
5705
5705
|
},
|
|
5706
5706
|
{
|
|
@@ -5717,7 +5717,7 @@
|
|
|
5717
5717
|
"USDC"
|
|
5718
5718
|
],
|
|
5719
5719
|
"isPrivate": false,
|
|
5720
|
-
"timestamp":
|
|
5720
|
+
"timestamp": 1757074607,
|
|
5721
5721
|
"minPrice": 300
|
|
5722
5722
|
},
|
|
5723
5723
|
{
|
|
@@ -5804,7 +5804,7 @@
|
|
|
5804
5804
|
"USDC"
|
|
5805
5805
|
],
|
|
5806
5806
|
"isPrivate": false,
|
|
5807
|
-
"timestamp":
|
|
5807
|
+
"timestamp": 1753877075,
|
|
5808
5808
|
"minPrice": 50
|
|
5809
5809
|
},
|
|
5810
5810
|
{
|
|
@@ -5838,7 +5838,7 @@
|
|
|
5838
5838
|
"USDC"
|
|
5839
5839
|
],
|
|
5840
5840
|
"isPrivate": false,
|
|
5841
|
-
"timestamp":
|
|
5841
|
+
"timestamp": 1764022895,
|
|
5842
5842
|
"minPrice": 100
|
|
5843
5843
|
},
|
|
5844
5844
|
{
|
|
@@ -6092,7 +6092,7 @@
|
|
|
6092
6092
|
"cbBTC"
|
|
6093
6093
|
],
|
|
6094
6094
|
"isPrivate": true,
|
|
6095
|
-
"timestamp":
|
|
6095
|
+
"timestamp": 1759764875,
|
|
6096
6096
|
"minPrice": 100
|
|
6097
6097
|
},
|
|
6098
6098
|
{
|
|
@@ -6162,7 +6162,7 @@
|
|
|
6162
6162
|
"USDC"
|
|
6163
6163
|
],
|
|
6164
6164
|
"isPrivate": false,
|
|
6165
|
-
"timestamp":
|
|
6165
|
+
"timestamp": 1764022895,
|
|
6166
6166
|
"minPrice": 100
|
|
6167
6167
|
},
|
|
6168
6168
|
{
|
|
@@ -6213,7 +6213,7 @@
|
|
|
6213
6213
|
"ETH"
|
|
6214
6214
|
],
|
|
6215
6215
|
"isPrivate": true,
|
|
6216
|
-
"timestamp":
|
|
6216
|
+
"timestamp": 1763029895,
|
|
6217
6217
|
"minPrice": 100
|
|
6218
6218
|
},
|
|
6219
6219
|
{
|
|
@@ -6417,7 +6417,7 @@
|
|
|
6417
6417
|
"ETH"
|
|
6418
6418
|
],
|
|
6419
6419
|
"isPrivate": true,
|
|
6420
|
-
"timestamp":
|
|
6420
|
+
"timestamp": 1761842555,
|
|
6421
6421
|
"minPrice": 50
|
|
6422
6422
|
},
|
|
6423
6423
|
{
|
package/dist/data/version.json
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -466,6 +466,16 @@ declare const fileSchema: z.ZodObject<{
|
|
|
466
466
|
version: "1.0";
|
|
467
467
|
file: string;
|
|
468
468
|
}>;
|
|
469
|
+
declare const productAnnexSchema: z.ZodObject<{
|
|
470
|
+
version: z.ZodLiteral<"1.0">;
|
|
471
|
+
annex: z.ZodString;
|
|
472
|
+
}, "strip", z.ZodTypeAny, {
|
|
473
|
+
annex: string;
|
|
474
|
+
version: "1.0";
|
|
475
|
+
}, {
|
|
476
|
+
annex: string;
|
|
477
|
+
version: "1.0";
|
|
478
|
+
}>;
|
|
469
479
|
|
|
470
480
|
declare enum ContentType {
|
|
471
481
|
coverValidators = "coverValidators",
|
|
@@ -482,7 +492,8 @@ declare enum ContentType {
|
|
|
482
492
|
assessmentReason = "assessmentReason",
|
|
483
493
|
governanceProposal = "governanceProposal",
|
|
484
494
|
governanceCategory = "governanceCategory",
|
|
485
|
-
file = "file"
|
|
495
|
+
file = "file",
|
|
496
|
+
productAnnex = "productAnnex"
|
|
486
497
|
}
|
|
487
498
|
type CoverValidators = z.infer<typeof coverValidatorsSchema>;
|
|
488
499
|
type CoverQuotaShare = z.infer<typeof coverQuotaShareSchema>;
|
|
@@ -499,8 +510,9 @@ type GovernanceProposal = z.infer<typeof governanceProposalSchema>;
|
|
|
499
510
|
type GovernanceCategory = z.infer<typeof governanceCategorySchema>;
|
|
500
511
|
type File = z.infer<typeof fileSchema>;
|
|
501
512
|
type AssessmentReason = z.infer<typeof assessmentReasonSchema>;
|
|
502
|
-
type
|
|
503
|
-
type
|
|
513
|
+
type ProductAnnex = z.infer<typeof productAnnexSchema>;
|
|
514
|
+
type IPFSContentTypes = CoverValidators | CoverQuotaShare | CoverAumCoverAmountPercentage | CoverWalletAddress | CoverWalletAddresses | CoverFreeText | CoverDesignatedWallets | DefiPassContent | StakingPoolDetails | ClaimProof | AssessmentCriteriaAnswers | AssessmentReason | GovernanceProposal | GovernanceCategory | File | ProductAnnex;
|
|
515
|
+
type IPFSTypeContentTuple = [type: ContentType.coverValidators, content: CoverValidators] | [type: ContentType.coverQuotaShare, content: CoverQuotaShare] | [type: ContentType.coverAumCoverAmountPercentage, content: CoverAumCoverAmountPercentage] | [type: ContentType.coverWalletAddress, content: CoverWalletAddress] | [type: ContentType.coverWalletAddresses, content: CoverWalletAddresses] | [type: ContentType.coverFreeText, content: CoverFreeText] | [type: ContentType.coverDesignatedWallets, content: CoverDesignatedWallets] | [type: ContentType.defiPassContent, content: DefiPassContent] | [type: ContentType.stakingPoolDetails, content: StakingPoolDetails] | [type: ContentType.claimProof, content: ClaimProof] | [type: ContentType.assessmentCriteriaAnswers, content: AssessmentCriteriaAnswers] | [type: ContentType.assessmentReason, content: AssessmentReason] | [type: ContentType.governanceProposal, content: GovernanceProposal] | [type: ContentType.governanceCategory, content: GovernanceCategory] | [type: ContentType.file, content: File] | [type: ContentType.productAnnex, content: ProductAnnex];
|
|
504
516
|
declare const IPFS_CONTENT_TYPE_BY_PRODUCT_TYPE: Record<ProductTypes, ContentType | undefined>;
|
|
505
517
|
interface IPFSContentForProductType {
|
|
506
518
|
[ProductTypes.ethSlashing]: CoverValidators;
|
|
@@ -712,6 +724,9 @@ declare class Ipfs extends NexusSDKBase {
|
|
|
712
724
|
} | {
|
|
713
725
|
version: "1.0";
|
|
714
726
|
file: string;
|
|
727
|
+
} | {
|
|
728
|
+
annex: string;
|
|
729
|
+
version: "1.0";
|
|
715
730
|
};
|
|
716
731
|
/**
|
|
717
732
|
* Convert IPFS CID to 32-byte hex string
|
|
@@ -3753,7 +3768,7 @@ var products = [
|
|
|
3753
3768
|
"ETH"
|
|
3754
3769
|
],
|
|
3755
3770
|
isPrivate: false,
|
|
3756
|
-
timestamp:
|
|
3771
|
+
timestamp: 1758283931,
|
|
3757
3772
|
minPrice: 100
|
|
3758
3773
|
},
|
|
3759
3774
|
{
|
|
@@ -5015,7 +5030,7 @@ var products = [
|
|
|
5015
5030
|
"USDC"
|
|
5016
5031
|
],
|
|
5017
5032
|
isPrivate: false,
|
|
5018
|
-
timestamp:
|
|
5033
|
+
timestamp: 1722950807,
|
|
5019
5034
|
minPrice: 100
|
|
5020
5035
|
},
|
|
5021
5036
|
{
|
|
@@ -5205,7 +5220,7 @@ var products = [
|
|
|
5205
5220
|
"cbBTC"
|
|
5206
5221
|
],
|
|
5207
5222
|
isPrivate: false,
|
|
5208
|
-
timestamp:
|
|
5223
|
+
timestamp: 1764188807,
|
|
5209
5224
|
minPrice: 100
|
|
5210
5225
|
},
|
|
5211
5226
|
{
|
|
@@ -5531,7 +5546,7 @@ var products = [
|
|
|
5531
5546
|
"cbBTC"
|
|
5532
5547
|
],
|
|
5533
5548
|
isPrivate: false,
|
|
5534
|
-
timestamp:
|
|
5549
|
+
timestamp: 1762356047,
|
|
5535
5550
|
minPrice: 300
|
|
5536
5551
|
},
|
|
5537
5552
|
{
|
|
@@ -5587,7 +5602,7 @@ var products = [
|
|
|
5587
5602
|
"cbBTC"
|
|
5588
5603
|
],
|
|
5589
5604
|
isPrivate: true,
|
|
5590
|
-
timestamp:
|
|
5605
|
+
timestamp: 1761314531,
|
|
5591
5606
|
minPrice: 100
|
|
5592
5607
|
},
|
|
5593
5608
|
{
|
|
@@ -5944,7 +5959,7 @@ var products = [
|
|
|
5944
5959
|
"cbBTC"
|
|
5945
5960
|
],
|
|
5946
5961
|
isPrivate: false,
|
|
5947
|
-
timestamp:
|
|
5962
|
+
timestamp: 1739537399,
|
|
5948
5963
|
minPrice: 50
|
|
5949
5964
|
},
|
|
5950
5965
|
{
|
|
@@ -5963,7 +5978,7 @@ var products = [
|
|
|
5963
5978
|
"cbBTC"
|
|
5964
5979
|
],
|
|
5965
5980
|
isPrivate: false,
|
|
5966
|
-
timestamp:
|
|
5981
|
+
timestamp: 1739537399,
|
|
5967
5982
|
minPrice: 235
|
|
5968
5983
|
},
|
|
5969
5984
|
{
|
|
@@ -6349,7 +6364,7 @@ var products = [
|
|
|
6349
6364
|
"USDC"
|
|
6350
6365
|
],
|
|
6351
6366
|
isPrivate: true,
|
|
6352
|
-
timestamp:
|
|
6367
|
+
timestamp: 1743670835,
|
|
6353
6368
|
minPrice: 1586
|
|
6354
6369
|
},
|
|
6355
6370
|
{
|
|
@@ -6366,7 +6381,7 @@ var products = [
|
|
|
6366
6381
|
"USDC"
|
|
6367
6382
|
],
|
|
6368
6383
|
isPrivate: false,
|
|
6369
|
-
timestamp:
|
|
6384
|
+
timestamp: 1748970347,
|
|
6370
6385
|
minPrice: 150
|
|
6371
6386
|
},
|
|
6372
6387
|
{
|
|
@@ -6620,7 +6635,7 @@ var products = [
|
|
|
6620
6635
|
"cbBTC"
|
|
6621
6636
|
],
|
|
6622
6637
|
isPrivate: false,
|
|
6623
|
-
timestamp:
|
|
6638
|
+
timestamp: 1750162583,
|
|
6624
6639
|
minPrice: 100
|
|
6625
6640
|
},
|
|
6626
6641
|
{
|
|
@@ -6691,7 +6706,7 @@ var products = [
|
|
|
6691
6706
|
"USDC"
|
|
6692
6707
|
],
|
|
6693
6708
|
isPrivate: false,
|
|
6694
|
-
timestamp:
|
|
6709
|
+
timestamp: 1752150803,
|
|
6695
6710
|
minPrice: 50
|
|
6696
6711
|
},
|
|
6697
6712
|
{
|
|
@@ -6708,7 +6723,7 @@ var products = [
|
|
|
6708
6723
|
"USDC"
|
|
6709
6724
|
],
|
|
6710
6725
|
isPrivate: false,
|
|
6711
|
-
timestamp:
|
|
6726
|
+
timestamp: 1757074607,
|
|
6712
6727
|
minPrice: 50
|
|
6713
6728
|
},
|
|
6714
6729
|
{
|
|
@@ -6725,7 +6740,7 @@ var products = [
|
|
|
6725
6740
|
"USDC"
|
|
6726
6741
|
],
|
|
6727
6742
|
isPrivate: false,
|
|
6728
|
-
timestamp:
|
|
6743
|
+
timestamp: 1757074607,
|
|
6729
6744
|
minPrice: 300
|
|
6730
6745
|
},
|
|
6731
6746
|
{
|
|
@@ -6814,7 +6829,7 @@ var products = [
|
|
|
6814
6829
|
"USDC"
|
|
6815
6830
|
],
|
|
6816
6831
|
isPrivate: false,
|
|
6817
|
-
timestamp:
|
|
6832
|
+
timestamp: 1753877075,
|
|
6818
6833
|
minPrice: 50
|
|
6819
6834
|
},
|
|
6820
6835
|
{
|
|
@@ -6848,7 +6863,7 @@ var products = [
|
|
|
6848
6863
|
"USDC"
|
|
6849
6864
|
],
|
|
6850
6865
|
isPrivate: false,
|
|
6851
|
-
timestamp:
|
|
6866
|
+
timestamp: 1764022895,
|
|
6852
6867
|
minPrice: 100
|
|
6853
6868
|
},
|
|
6854
6869
|
{
|
|
@@ -7106,7 +7121,7 @@ var products = [
|
|
|
7106
7121
|
"cbBTC"
|
|
7107
7122
|
],
|
|
7108
7123
|
isPrivate: true,
|
|
7109
|
-
timestamp:
|
|
7124
|
+
timestamp: 1759764875,
|
|
7110
7125
|
minPrice: 100
|
|
7111
7126
|
},
|
|
7112
7127
|
{
|
|
@@ -7176,7 +7191,7 @@ var products = [
|
|
|
7176
7191
|
"USDC"
|
|
7177
7192
|
],
|
|
7178
7193
|
isPrivate: false,
|
|
7179
|
-
timestamp:
|
|
7194
|
+
timestamp: 1764022895,
|
|
7180
7195
|
minPrice: 100
|
|
7181
7196
|
},
|
|
7182
7197
|
{
|
|
@@ -7228,7 +7243,7 @@ var products = [
|
|
|
7228
7243
|
"ETH"
|
|
7229
7244
|
],
|
|
7230
7245
|
isPrivate: true,
|
|
7231
|
-
timestamp:
|
|
7246
|
+
timestamp: 1763029895,
|
|
7232
7247
|
minPrice: 100
|
|
7233
7248
|
},
|
|
7234
7249
|
{
|
|
@@ -7437,7 +7452,7 @@ var products = [
|
|
|
7437
7452
|
"ETH"
|
|
7438
7453
|
],
|
|
7439
7454
|
isPrivate: true,
|
|
7440
|
-
timestamp:
|
|
7455
|
+
timestamp: 1761842555,
|
|
7441
7456
|
minPrice: 50
|
|
7442
7457
|
},
|
|
7443
7458
|
{
|
|
@@ -43972,4 +43987,4 @@ declare const nexusSdk: {
|
|
|
43972
43987
|
}];
|
|
43973
43988
|
};
|
|
43974
43989
|
|
|
43975
|
-
export { Address, ApiResponse, AssessmentCriteriaAnswers, AssessmentReason, 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, CoverQuotaShare, CoverRouterProductCapacityResponse, CoverRouterQuoteResponse, CoverValidators, CoverWalletAddress, CoverWalletAddresses, DEFAULT_COMMISSION_RATIO, DEFAULT_SLIPPAGE, DEFI_PASS_COMMISSION_RATIO, DefiPassContent, ErrorApiResponse, ErrorResponse, FUND_PORTFOLIO_COMMISSION_RATIO, File, FloatString, GENERALIZED_FUND_PORTFOLIO_COMMISSION_RATIO, GetQuoteAndBuyCoverInputsParams, GetQuoteApiResponse, GetQuoteResponse, GovernanceCategory, GovernanceProposal, IMMUNEFI_ADDRESS, IPFSContentForProductType, IPFSContentTypes, IPFSTypeContentTuple, IPFSUploadServiceResponse, IPFS_CONTENT_TYPE_BY_PRODUCT_TYPE, IntString, Integer, Ipfs, KIDNAP_AND_RANSOM_COVER_COMMISSION_RATIO, LEVERAGED_LIQUIDATION_COMMISSION_RATIO, LogoFileName, LogoName, MAXIMUM_COVER_PERIOD, MINIMUM_COVER_PERIOD, NEXUS_MUTUAL_COVER_COMMISSION_RATIO, NEXUS_MUTUAL_DAO_TREASURY_ADDRESS, NON_EVM_PROTOCOL_COMMISSION_RATIO, NO_COMMISSION, NO_COMMISSION_DESTINATION, NexusSDK, NexusSDKConfig, PaymentAsset, PoolAllocationRequest, PoolCapacity, ProductCategoryEnum, ProductTypes, Quote, QuoteDisplayInfo, QuoteParams, Reserves, SHERLOCK_BUG_BOUNTY_COMMISSION_RATIO, SLIPPAGE_DENOMINATOR, SPEARBIT_CANTINA_ADDRESS, StakingPoolDetails, Swap, TARGET_PRICE_DENOMINATOR, TRM_COMMISSION_RATIO, allLogoFileNames, allLogoNames, allPrivateProductsIds, categoryLabelByEnum, nexusSdk as default, productCategoryMap, productTypes, products };
|
|
43990
|
+
export { Address, ApiResponse, AssessmentCriteriaAnswers, AssessmentReason, 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, CoverQuotaShare, CoverRouterProductCapacityResponse, CoverRouterQuoteResponse, CoverValidators, CoverWalletAddress, CoverWalletAddresses, DEFAULT_COMMISSION_RATIO, DEFAULT_SLIPPAGE, DEFI_PASS_COMMISSION_RATIO, DefiPassContent, ErrorApiResponse, ErrorResponse, FUND_PORTFOLIO_COMMISSION_RATIO, File, FloatString, GENERALIZED_FUND_PORTFOLIO_COMMISSION_RATIO, GetQuoteAndBuyCoverInputsParams, GetQuoteApiResponse, GetQuoteResponse, GovernanceCategory, GovernanceProposal, IMMUNEFI_ADDRESS, IPFSContentForProductType, IPFSContentTypes, IPFSTypeContentTuple, IPFSUploadServiceResponse, IPFS_CONTENT_TYPE_BY_PRODUCT_TYPE, IntString, Integer, Ipfs, KIDNAP_AND_RANSOM_COVER_COMMISSION_RATIO, LEVERAGED_LIQUIDATION_COMMISSION_RATIO, LogoFileName, LogoName, MAXIMUM_COVER_PERIOD, MINIMUM_COVER_PERIOD, NEXUS_MUTUAL_COVER_COMMISSION_RATIO, NEXUS_MUTUAL_DAO_TREASURY_ADDRESS, NON_EVM_PROTOCOL_COMMISSION_RATIO, NO_COMMISSION, NO_COMMISSION_DESTINATION, NexusSDK, NexusSDKConfig, PaymentAsset, PoolAllocationRequest, PoolCapacity, ProductAnnex, ProductCategoryEnum, ProductTypes, Quote, QuoteDisplayInfo, QuoteParams, Reserves, SHERLOCK_BUG_BOUNTY_COMMISSION_RATIO, SLIPPAGE_DENOMINATOR, SPEARBIT_CANTINA_ADDRESS, StakingPoolDetails, Swap, TARGET_PRICE_DENOMINATOR, TRM_COMMISSION_RATIO, allLogoFileNames, allLogoNames, allPrivateProductsIds, categoryLabelByEnum, nexusSdk as default, productCategoryMap, productTypes, products };
|
package/dist/index.d.ts
CHANGED
|
@@ -466,6 +466,16 @@ declare const fileSchema: z.ZodObject<{
|
|
|
466
466
|
version: "1.0";
|
|
467
467
|
file: string;
|
|
468
468
|
}>;
|
|
469
|
+
declare const productAnnexSchema: z.ZodObject<{
|
|
470
|
+
version: z.ZodLiteral<"1.0">;
|
|
471
|
+
annex: z.ZodString;
|
|
472
|
+
}, "strip", z.ZodTypeAny, {
|
|
473
|
+
annex: string;
|
|
474
|
+
version: "1.0";
|
|
475
|
+
}, {
|
|
476
|
+
annex: string;
|
|
477
|
+
version: "1.0";
|
|
478
|
+
}>;
|
|
469
479
|
|
|
470
480
|
declare enum ContentType {
|
|
471
481
|
coverValidators = "coverValidators",
|
|
@@ -482,7 +492,8 @@ declare enum ContentType {
|
|
|
482
492
|
assessmentReason = "assessmentReason",
|
|
483
493
|
governanceProposal = "governanceProposal",
|
|
484
494
|
governanceCategory = "governanceCategory",
|
|
485
|
-
file = "file"
|
|
495
|
+
file = "file",
|
|
496
|
+
productAnnex = "productAnnex"
|
|
486
497
|
}
|
|
487
498
|
type CoverValidators = z.infer<typeof coverValidatorsSchema>;
|
|
488
499
|
type CoverQuotaShare = z.infer<typeof coverQuotaShareSchema>;
|
|
@@ -499,8 +510,9 @@ type GovernanceProposal = z.infer<typeof governanceProposalSchema>;
|
|
|
499
510
|
type GovernanceCategory = z.infer<typeof governanceCategorySchema>;
|
|
500
511
|
type File = z.infer<typeof fileSchema>;
|
|
501
512
|
type AssessmentReason = z.infer<typeof assessmentReasonSchema>;
|
|
502
|
-
type
|
|
503
|
-
type
|
|
513
|
+
type ProductAnnex = z.infer<typeof productAnnexSchema>;
|
|
514
|
+
type IPFSContentTypes = CoverValidators | CoverQuotaShare | CoverAumCoverAmountPercentage | CoverWalletAddress | CoverWalletAddresses | CoverFreeText | CoverDesignatedWallets | DefiPassContent | StakingPoolDetails | ClaimProof | AssessmentCriteriaAnswers | AssessmentReason | GovernanceProposal | GovernanceCategory | File | ProductAnnex;
|
|
515
|
+
type IPFSTypeContentTuple = [type: ContentType.coverValidators, content: CoverValidators] | [type: ContentType.coverQuotaShare, content: CoverQuotaShare] | [type: ContentType.coverAumCoverAmountPercentage, content: CoverAumCoverAmountPercentage] | [type: ContentType.coverWalletAddress, content: CoverWalletAddress] | [type: ContentType.coverWalletAddresses, content: CoverWalletAddresses] | [type: ContentType.coverFreeText, content: CoverFreeText] | [type: ContentType.coverDesignatedWallets, content: CoverDesignatedWallets] | [type: ContentType.defiPassContent, content: DefiPassContent] | [type: ContentType.stakingPoolDetails, content: StakingPoolDetails] | [type: ContentType.claimProof, content: ClaimProof] | [type: ContentType.assessmentCriteriaAnswers, content: AssessmentCriteriaAnswers] | [type: ContentType.assessmentReason, content: AssessmentReason] | [type: ContentType.governanceProposal, content: GovernanceProposal] | [type: ContentType.governanceCategory, content: GovernanceCategory] | [type: ContentType.file, content: File] | [type: ContentType.productAnnex, content: ProductAnnex];
|
|
504
516
|
declare const IPFS_CONTENT_TYPE_BY_PRODUCT_TYPE: Record<ProductTypes, ContentType | undefined>;
|
|
505
517
|
interface IPFSContentForProductType {
|
|
506
518
|
[ProductTypes.ethSlashing]: CoverValidators;
|
|
@@ -712,6 +724,9 @@ declare class Ipfs extends NexusSDKBase {
|
|
|
712
724
|
} | {
|
|
713
725
|
version: "1.0";
|
|
714
726
|
file: string;
|
|
727
|
+
} | {
|
|
728
|
+
annex: string;
|
|
729
|
+
version: "1.0";
|
|
715
730
|
};
|
|
716
731
|
/**
|
|
717
732
|
* Convert IPFS CID to 32-byte hex string
|
|
@@ -3753,7 +3768,7 @@ var products = [
|
|
|
3753
3768
|
"ETH"
|
|
3754
3769
|
],
|
|
3755
3770
|
isPrivate: false,
|
|
3756
|
-
timestamp:
|
|
3771
|
+
timestamp: 1758283931,
|
|
3757
3772
|
minPrice: 100
|
|
3758
3773
|
},
|
|
3759
3774
|
{
|
|
@@ -5015,7 +5030,7 @@ var products = [
|
|
|
5015
5030
|
"USDC"
|
|
5016
5031
|
],
|
|
5017
5032
|
isPrivate: false,
|
|
5018
|
-
timestamp:
|
|
5033
|
+
timestamp: 1722950807,
|
|
5019
5034
|
minPrice: 100
|
|
5020
5035
|
},
|
|
5021
5036
|
{
|
|
@@ -5205,7 +5220,7 @@ var products = [
|
|
|
5205
5220
|
"cbBTC"
|
|
5206
5221
|
],
|
|
5207
5222
|
isPrivate: false,
|
|
5208
|
-
timestamp:
|
|
5223
|
+
timestamp: 1764188807,
|
|
5209
5224
|
minPrice: 100
|
|
5210
5225
|
},
|
|
5211
5226
|
{
|
|
@@ -5531,7 +5546,7 @@ var products = [
|
|
|
5531
5546
|
"cbBTC"
|
|
5532
5547
|
],
|
|
5533
5548
|
isPrivate: false,
|
|
5534
|
-
timestamp:
|
|
5549
|
+
timestamp: 1762356047,
|
|
5535
5550
|
minPrice: 300
|
|
5536
5551
|
},
|
|
5537
5552
|
{
|
|
@@ -5587,7 +5602,7 @@ var products = [
|
|
|
5587
5602
|
"cbBTC"
|
|
5588
5603
|
],
|
|
5589
5604
|
isPrivate: true,
|
|
5590
|
-
timestamp:
|
|
5605
|
+
timestamp: 1761314531,
|
|
5591
5606
|
minPrice: 100
|
|
5592
5607
|
},
|
|
5593
5608
|
{
|
|
@@ -5944,7 +5959,7 @@ var products = [
|
|
|
5944
5959
|
"cbBTC"
|
|
5945
5960
|
],
|
|
5946
5961
|
isPrivate: false,
|
|
5947
|
-
timestamp:
|
|
5962
|
+
timestamp: 1739537399,
|
|
5948
5963
|
minPrice: 50
|
|
5949
5964
|
},
|
|
5950
5965
|
{
|
|
@@ -5963,7 +5978,7 @@ var products = [
|
|
|
5963
5978
|
"cbBTC"
|
|
5964
5979
|
],
|
|
5965
5980
|
isPrivate: false,
|
|
5966
|
-
timestamp:
|
|
5981
|
+
timestamp: 1739537399,
|
|
5967
5982
|
minPrice: 235
|
|
5968
5983
|
},
|
|
5969
5984
|
{
|
|
@@ -6349,7 +6364,7 @@ var products = [
|
|
|
6349
6364
|
"USDC"
|
|
6350
6365
|
],
|
|
6351
6366
|
isPrivate: true,
|
|
6352
|
-
timestamp:
|
|
6367
|
+
timestamp: 1743670835,
|
|
6353
6368
|
minPrice: 1586
|
|
6354
6369
|
},
|
|
6355
6370
|
{
|
|
@@ -6366,7 +6381,7 @@ var products = [
|
|
|
6366
6381
|
"USDC"
|
|
6367
6382
|
],
|
|
6368
6383
|
isPrivate: false,
|
|
6369
|
-
timestamp:
|
|
6384
|
+
timestamp: 1748970347,
|
|
6370
6385
|
minPrice: 150
|
|
6371
6386
|
},
|
|
6372
6387
|
{
|
|
@@ -6620,7 +6635,7 @@ var products = [
|
|
|
6620
6635
|
"cbBTC"
|
|
6621
6636
|
],
|
|
6622
6637
|
isPrivate: false,
|
|
6623
|
-
timestamp:
|
|
6638
|
+
timestamp: 1750162583,
|
|
6624
6639
|
minPrice: 100
|
|
6625
6640
|
},
|
|
6626
6641
|
{
|
|
@@ -6691,7 +6706,7 @@ var products = [
|
|
|
6691
6706
|
"USDC"
|
|
6692
6707
|
],
|
|
6693
6708
|
isPrivate: false,
|
|
6694
|
-
timestamp:
|
|
6709
|
+
timestamp: 1752150803,
|
|
6695
6710
|
minPrice: 50
|
|
6696
6711
|
},
|
|
6697
6712
|
{
|
|
@@ -6708,7 +6723,7 @@ var products = [
|
|
|
6708
6723
|
"USDC"
|
|
6709
6724
|
],
|
|
6710
6725
|
isPrivate: false,
|
|
6711
|
-
timestamp:
|
|
6726
|
+
timestamp: 1757074607,
|
|
6712
6727
|
minPrice: 50
|
|
6713
6728
|
},
|
|
6714
6729
|
{
|
|
@@ -6725,7 +6740,7 @@ var products = [
|
|
|
6725
6740
|
"USDC"
|
|
6726
6741
|
],
|
|
6727
6742
|
isPrivate: false,
|
|
6728
|
-
timestamp:
|
|
6743
|
+
timestamp: 1757074607,
|
|
6729
6744
|
minPrice: 300
|
|
6730
6745
|
},
|
|
6731
6746
|
{
|
|
@@ -6814,7 +6829,7 @@ var products = [
|
|
|
6814
6829
|
"USDC"
|
|
6815
6830
|
],
|
|
6816
6831
|
isPrivate: false,
|
|
6817
|
-
timestamp:
|
|
6832
|
+
timestamp: 1753877075,
|
|
6818
6833
|
minPrice: 50
|
|
6819
6834
|
},
|
|
6820
6835
|
{
|
|
@@ -6848,7 +6863,7 @@ var products = [
|
|
|
6848
6863
|
"USDC"
|
|
6849
6864
|
],
|
|
6850
6865
|
isPrivate: false,
|
|
6851
|
-
timestamp:
|
|
6866
|
+
timestamp: 1764022895,
|
|
6852
6867
|
minPrice: 100
|
|
6853
6868
|
},
|
|
6854
6869
|
{
|
|
@@ -7106,7 +7121,7 @@ var products = [
|
|
|
7106
7121
|
"cbBTC"
|
|
7107
7122
|
],
|
|
7108
7123
|
isPrivate: true,
|
|
7109
|
-
timestamp:
|
|
7124
|
+
timestamp: 1759764875,
|
|
7110
7125
|
minPrice: 100
|
|
7111
7126
|
},
|
|
7112
7127
|
{
|
|
@@ -7176,7 +7191,7 @@ var products = [
|
|
|
7176
7191
|
"USDC"
|
|
7177
7192
|
],
|
|
7178
7193
|
isPrivate: false,
|
|
7179
|
-
timestamp:
|
|
7194
|
+
timestamp: 1764022895,
|
|
7180
7195
|
minPrice: 100
|
|
7181
7196
|
},
|
|
7182
7197
|
{
|
|
@@ -7228,7 +7243,7 @@ var products = [
|
|
|
7228
7243
|
"ETH"
|
|
7229
7244
|
],
|
|
7230
7245
|
isPrivate: true,
|
|
7231
|
-
timestamp:
|
|
7246
|
+
timestamp: 1763029895,
|
|
7232
7247
|
minPrice: 100
|
|
7233
7248
|
},
|
|
7234
7249
|
{
|
|
@@ -7437,7 +7452,7 @@ var products = [
|
|
|
7437
7452
|
"ETH"
|
|
7438
7453
|
],
|
|
7439
7454
|
isPrivate: true,
|
|
7440
|
-
timestamp:
|
|
7455
|
+
timestamp: 1761842555,
|
|
7441
7456
|
minPrice: 50
|
|
7442
7457
|
},
|
|
7443
7458
|
{
|
|
@@ -43972,4 +43987,4 @@ declare const nexusSdk: {
|
|
|
43972
43987
|
}];
|
|
43973
43988
|
};
|
|
43974
43989
|
|
|
43975
|
-
export { Address, ApiResponse, AssessmentCriteriaAnswers, AssessmentReason, 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, CoverQuotaShare, CoverRouterProductCapacityResponse, CoverRouterQuoteResponse, CoverValidators, CoverWalletAddress, CoverWalletAddresses, DEFAULT_COMMISSION_RATIO, DEFAULT_SLIPPAGE, DEFI_PASS_COMMISSION_RATIO, DefiPassContent, ErrorApiResponse, ErrorResponse, FUND_PORTFOLIO_COMMISSION_RATIO, File, FloatString, GENERALIZED_FUND_PORTFOLIO_COMMISSION_RATIO, GetQuoteAndBuyCoverInputsParams, GetQuoteApiResponse, GetQuoteResponse, GovernanceCategory, GovernanceProposal, IMMUNEFI_ADDRESS, IPFSContentForProductType, IPFSContentTypes, IPFSTypeContentTuple, IPFSUploadServiceResponse, IPFS_CONTENT_TYPE_BY_PRODUCT_TYPE, IntString, Integer, Ipfs, KIDNAP_AND_RANSOM_COVER_COMMISSION_RATIO, LEVERAGED_LIQUIDATION_COMMISSION_RATIO, LogoFileName, LogoName, MAXIMUM_COVER_PERIOD, MINIMUM_COVER_PERIOD, NEXUS_MUTUAL_COVER_COMMISSION_RATIO, NEXUS_MUTUAL_DAO_TREASURY_ADDRESS, NON_EVM_PROTOCOL_COMMISSION_RATIO, NO_COMMISSION, NO_COMMISSION_DESTINATION, NexusSDK, NexusSDKConfig, PaymentAsset, PoolAllocationRequest, PoolCapacity, ProductCategoryEnum, ProductTypes, Quote, QuoteDisplayInfo, QuoteParams, Reserves, SHERLOCK_BUG_BOUNTY_COMMISSION_RATIO, SLIPPAGE_DENOMINATOR, SPEARBIT_CANTINA_ADDRESS, StakingPoolDetails, Swap, TARGET_PRICE_DENOMINATOR, TRM_COMMISSION_RATIO, allLogoFileNames, allLogoNames, allPrivateProductsIds, categoryLabelByEnum, nexusSdk as default, productCategoryMap, productTypes, products };
|
|
43990
|
+
export { Address, ApiResponse, AssessmentCriteriaAnswers, AssessmentReason, 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, CoverQuotaShare, CoverRouterProductCapacityResponse, CoverRouterQuoteResponse, CoverValidators, CoverWalletAddress, CoverWalletAddresses, DEFAULT_COMMISSION_RATIO, DEFAULT_SLIPPAGE, DEFI_PASS_COMMISSION_RATIO, DefiPassContent, ErrorApiResponse, ErrorResponse, FUND_PORTFOLIO_COMMISSION_RATIO, File, FloatString, GENERALIZED_FUND_PORTFOLIO_COMMISSION_RATIO, GetQuoteAndBuyCoverInputsParams, GetQuoteApiResponse, GetQuoteResponse, GovernanceCategory, GovernanceProposal, IMMUNEFI_ADDRESS, IPFSContentForProductType, IPFSContentTypes, IPFSTypeContentTuple, IPFSUploadServiceResponse, IPFS_CONTENT_TYPE_BY_PRODUCT_TYPE, IntString, Integer, Ipfs, KIDNAP_AND_RANSOM_COVER_COMMISSION_RATIO, LEVERAGED_LIQUIDATION_COMMISSION_RATIO, LogoFileName, LogoName, MAXIMUM_COVER_PERIOD, MINIMUM_COVER_PERIOD, NEXUS_MUTUAL_COVER_COMMISSION_RATIO, NEXUS_MUTUAL_DAO_TREASURY_ADDRESS, NON_EVM_PROTOCOL_COMMISSION_RATIO, NO_COMMISSION, NO_COMMISSION_DESTINATION, NexusSDK, NexusSDKConfig, PaymentAsset, PoolAllocationRequest, PoolCapacity, ProductAnnex, ProductCategoryEnum, ProductTypes, Quote, QuoteDisplayInfo, QuoteParams, Reserves, SHERLOCK_BUG_BOUNTY_COMMISSION_RATIO, SLIPPAGE_DENOMINATOR, SPEARBIT_CANTINA_ADDRESS, StakingPoolDetails, Swap, TARGET_PRICE_DENOMINATOR, TRM_COMMISSION_RATIO, allLogoFileNames, allLogoNames, allPrivateProductsIds, categoryLabelByEnum, nexusSdk as default, productCategoryMap, productTypes, products };
|