@nexusmutual/sdk 1.12.0-rc.2 → 1.12.0-rc.3

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.d.ts CHANGED
@@ -407,6 +407,9 @@ declare const claimProofSchema: z.ZodDiscriminatedUnion<"version", [z.ZodObject<
407
407
  incidentDescription: string;
408
408
  attachedFilesHashes?: string[] | undefined;
409
409
  }>]>;
410
+ /** @deprecated
411
+ * use assessmentReasonSchema instead
412
+ */
410
413
  declare const assessmentCriteriaAnswersSchema: z.ZodObject<{
411
414
  version: z.ZodLiteral<"1.0">;
412
415
  answers: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
@@ -417,6 +420,16 @@ declare const assessmentCriteriaAnswersSchema: z.ZodObject<{
417
420
  version: "1.0";
418
421
  answers: Record<string, string>;
419
422
  }>;
423
+ declare const assessmentReasonSchema: z.ZodObject<{
424
+ version: z.ZodLiteral<"1.0">;
425
+ reason: z.ZodString;
426
+ }, "strip", z.ZodTypeAny, {
427
+ version: "1.0";
428
+ reason: string;
429
+ }, {
430
+ version: "1.0";
431
+ reason: string;
432
+ }>;
420
433
  declare const governanceProposalSchema: z.ZodObject<{
421
434
  version: z.ZodLiteral<"1.0">;
422
435
  proposal: z.ZodString;
@@ -460,6 +473,7 @@ declare enum ContentType {
460
473
  stakingPoolDetails = "stakingPoolDetails",
461
474
  claimProof = "claimProof",
462
475
  assessmentCriteriaAnswers = "assessmentCriteriaAnswers",
476
+ assessmentReason = "assessmentReason",
463
477
  governanceProposal = "governanceProposal",
464
478
  governanceCategory = "governanceCategory",
465
479
  file = "file"
@@ -478,8 +492,9 @@ type AssessmentCriteriaAnswers = z.infer<typeof assessmentCriteriaAnswersSchema>
478
492
  type GovernanceProposal = z.infer<typeof governanceProposalSchema>;
479
493
  type GovernanceCategory = z.infer<typeof governanceCategorySchema>;
480
494
  type File = z.infer<typeof fileSchema>;
481
- type IPFSContentTypes = CoverValidators | CoverQuotaShare | CoverAumCoverAmountPercentage | CoverWalletAddress | CoverWalletAddresses | CoverFreeText | CoverDesignatedWallets | DefiPassContent | StakingPoolDetails | ClaimProof | AssessmentCriteriaAnswers | GovernanceProposal | GovernanceCategory | File;
482
- 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.governanceProposal, content: GovernanceProposal] | [type: ContentType.governanceCategory, content: GovernanceCategory] | [type: ContentType.file, content: File];
495
+ type AssessmentReason = z.infer<typeof assessmentReasonSchema>;
496
+ type IPFSContentTypes = CoverValidators | CoverQuotaShare | CoverAumCoverAmountPercentage | CoverWalletAddress | CoverWalletAddresses | CoverFreeText | CoverDesignatedWallets | DefiPassContent | StakingPoolDetails | ClaimProof | AssessmentCriteriaAnswers | AssessmentReason | GovernanceProposal | GovernanceCategory | File;
497
+ 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];
483
498
  declare const IPFS_CONTENT_TYPE_BY_PRODUCT_TYPE: Record<ProductTypes, ContentType | undefined>;
484
499
  interface IPFSContentForProductType {
485
500
  [ProductTypes.ethSlashing]: CoverValidators;
@@ -676,6 +691,9 @@ declare class Ipfs extends NexusSDKBase {
676
691
  } | {
677
692
  version: "1.0";
678
693
  answers: Record<string, string>;
694
+ } | {
695
+ version: "1.0";
696
+ reason: string;
679
697
  } | {
680
698
  version: "1.0";
681
699
  proposal: string;
@@ -1722,7 +1740,7 @@ var products = [
1722
1740
  "cbBTC"
1723
1741
  ],
1724
1742
  isPrivate: false,
1725
- timestamp: 1728046187,
1743
+ timestamp: 1726758407,
1726
1744
  minPrice: 60
1727
1745
  },
1728
1746
  {
@@ -3357,7 +3375,7 @@ var products = [
3357
3375
  "cbBTC"
3358
3376
  ],
3359
3377
  isPrivate: false,
3360
- timestamp: 1753877075,
3378
+ timestamp: 1754552351,
3361
3379
  minPrice: 100
3362
3380
  },
3363
3381
  {
@@ -3487,7 +3505,7 @@ var products = [
3487
3505
  "cbBTC"
3488
3506
  ],
3489
3507
  isPrivate: false,
3490
- timestamp: 1752150803,
3508
+ timestamp: 1757074607,
3491
3509
  minPrice: 100
3492
3510
  },
3493
3511
  {
@@ -3731,7 +3749,7 @@ var products = [
3731
3749
  "ETH"
3732
3750
  ],
3733
3751
  isPrivate: false,
3734
- timestamp: 1751550659,
3752
+ timestamp: 1734557999,
3735
3753
  minPrice: 100
3736
3754
  },
3737
3755
  {
@@ -3982,7 +4000,7 @@ var products = [
3982
4000
  "cbBTC"
3983
4001
  ],
3984
4002
  isPrivate: true,
3985
- timestamp: 1728564167,
4003
+ timestamp: 1736430671,
3986
4004
  minPrice: 100
3987
4005
  },
3988
4006
  {
@@ -3999,7 +4017,7 @@ var products = [
3999
4017
  "USDC"
4000
4018
  ],
4001
4019
  isPrivate: false,
4002
- timestamp: 1734557999,
4020
+ timestamp: 1751550659,
4003
4021
  minPrice: 100
4004
4022
  },
4005
4023
  {
@@ -4804,7 +4822,7 @@ var products = [
4804
4822
  "ETH"
4805
4823
  ],
4806
4824
  isPrivate: false,
4807
- timestamp: 1731583079,
4825
+ timestamp: 1734557999,
4808
4826
  minPrice: 100
4809
4827
  },
4810
4828
  {
@@ -4843,7 +4861,7 @@ var products = [
4843
4861
  "cbBTC"
4844
4862
  ],
4845
4863
  isPrivate: false,
4846
- timestamp: 1741267523,
4864
+ timestamp: 1744902863,
4847
4865
  minPrice: 100
4848
4866
  },
4849
4867
  {
@@ -4996,7 +5014,7 @@ var products = [
4996
5014
  "USDC"
4997
5015
  ],
4998
5016
  isPrivate: false,
4999
- timestamp: 1722950807,
5017
+ timestamp: 1723127459,
5000
5018
  minPrice: 100
5001
5019
  },
5002
5020
  {
@@ -5090,7 +5108,7 @@ var products = [
5090
5108
  "cbBTC"
5091
5109
  ],
5092
5110
  isPrivate: false,
5093
- timestamp: 1734557999,
5111
+ timestamp: 1724341943,
5094
5112
  minPrice: 100
5095
5113
  },
5096
5114
  {
@@ -5148,7 +5166,7 @@ var products = [
5148
5166
  "cbBTC"
5149
5167
  ],
5150
5168
  isPrivate: true,
5151
- timestamp: 1753877075,
5169
+ timestamp: 1725264851,
5152
5170
  minPrice: 275
5153
5171
  },
5154
5172
  {
@@ -5167,7 +5185,7 @@ var products = [
5167
5185
  "cbBTC"
5168
5186
  ],
5169
5187
  isPrivate: false,
5170
- timestamp: 1749739367,
5188
+ timestamp: 1757486507,
5171
5189
  minPrice: 100
5172
5190
  },
5173
5191
  {
@@ -5186,7 +5204,7 @@ var products = [
5186
5204
  "cbBTC"
5187
5205
  ],
5188
5206
  isPrivate: false,
5189
- timestamp: 1733326763,
5207
+ timestamp: 1736430671,
5190
5208
  minPrice: 100
5191
5209
  },
5192
5210
  {
@@ -5336,7 +5354,7 @@ var products = [
5336
5354
  "USDC"
5337
5355
  ],
5338
5356
  isPrivate: false,
5339
- timestamp: 1734557999,
5357
+ timestamp: 1726758407,
5340
5358
  minPrice: 100
5341
5359
  },
5342
5360
  {
@@ -5352,7 +5370,7 @@ var products = [
5352
5370
  "USDC"
5353
5371
  ],
5354
5372
  isPrivate: false,
5355
- timestamp: 1738243583,
5373
+ timestamp: 1726758407,
5356
5374
  minPrice: 10
5357
5375
  },
5358
5376
  {
@@ -5419,7 +5437,7 @@ var products = [
5419
5437
  "cbBTC"
5420
5438
  ],
5421
5439
  isPrivate: false,
5422
- timestamp: 1731583079,
5440
+ timestamp: 1734557999,
5423
5441
  minPrice: 100
5424
5442
  },
5425
5443
  {
@@ -5474,7 +5492,7 @@ var products = [
5474
5492
  "cbBTC"
5475
5493
  ],
5476
5494
  isPrivate: false,
5477
- timestamp: 1740672395,
5495
+ timestamp: 1733753135,
5478
5496
  minPrice: 49
5479
5497
  },
5480
5498
  {
@@ -5512,7 +5530,7 @@ var products = [
5512
5530
  "cbBTC"
5513
5531
  ],
5514
5532
  isPrivate: false,
5515
- timestamp: 1751550659,
5533
+ timestamp: 1753877075,
5516
5534
  minPrice: 300
5517
5535
  },
5518
5536
  {
@@ -5568,7 +5586,7 @@ var products = [
5568
5586
  "cbBTC"
5569
5587
  ],
5570
5588
  isPrivate: true,
5571
- timestamp: 1742481059,
5589
+ timestamp: 1753260539,
5572
5590
  minPrice: 100
5573
5591
  },
5574
5592
  {
@@ -5785,7 +5803,7 @@ var products = [
5785
5803
  "USDC"
5786
5804
  ],
5787
5805
  isPrivate: false,
5788
- timestamp: 1747055891,
5806
+ timestamp: 1739447471,
5789
5807
  minPrice: 150
5790
5808
  },
5791
5809
  {
@@ -5887,7 +5905,7 @@ var products = [
5887
5905
  "cbBTC"
5888
5906
  ],
5889
5907
  isPrivate: false,
5890
- timestamp: 1739447471,
5908
+ timestamp: 1757074607,
5891
5909
  minPrice: 75
5892
5910
  },
5893
5911
  {
@@ -5906,7 +5924,7 @@ var products = [
5906
5924
  "cbBTC"
5907
5925
  ],
5908
5926
  isPrivate: false,
5909
- timestamp: 1739447471,
5927
+ timestamp: 1741267523,
5910
5928
  minPrice: 100
5911
5929
  },
5912
5930
  {
@@ -5925,7 +5943,7 @@ var products = [
5925
5943
  "cbBTC"
5926
5944
  ],
5927
5945
  isPrivate: false,
5928
- timestamp: 1739447471,
5946
+ timestamp: 1739537399,
5929
5947
  minPrice: 50
5930
5948
  },
5931
5949
  {
@@ -5944,7 +5962,7 @@ var products = [
5944
5962
  "cbBTC"
5945
5963
  ],
5946
5964
  isPrivate: false,
5947
- timestamp: 1739447471,
5965
+ timestamp: 1739537399,
5948
5966
  minPrice: 235
5949
5967
  },
5950
5968
  {
@@ -5963,7 +5981,7 @@ var products = [
5963
5981
  "cbBTC"
5964
5982
  ],
5965
5983
  isPrivate: false,
5966
- timestamp: 1739537399,
5984
+ timestamp: 1739447471,
5967
5985
  minPrice: 380
5968
5986
  },
5969
5987
  {
@@ -5982,7 +6000,7 @@ var products = [
5982
6000
  "cbBTC"
5983
6001
  ],
5984
6002
  isPrivate: true,
5985
- timestamp: 1740672395,
6003
+ timestamp: 1747300211,
5986
6004
  minPrice: 225
5987
6005
  },
5988
6006
  {
@@ -6256,7 +6274,7 @@ var products = [
6256
6274
  "USDC"
6257
6275
  ],
6258
6276
  isPrivate: false,
6259
- timestamp: 1742481059,
6277
+ timestamp: 1747055891,
6260
6278
  minPrice: 185
6261
6279
  },
6262
6280
  {
@@ -6275,7 +6293,7 @@ var products = [
6275
6293
  "cbBTC"
6276
6294
  ],
6277
6295
  isPrivate: false,
6278
- timestamp: 1751550659,
6296
+ timestamp: 1743519947,
6279
6297
  minPrice: 100
6280
6298
  },
6281
6299
  {
@@ -6294,7 +6312,7 @@ var products = [
6294
6312
  "cbBTC"
6295
6313
  ],
6296
6314
  isPrivate: false,
6297
- timestamp: 1743519947,
6315
+ timestamp: 1749739367,
6298
6316
  minPrice: 100
6299
6317
  },
6300
6318
  {
@@ -6330,7 +6348,7 @@ var products = [
6330
6348
  "USDC"
6331
6349
  ],
6332
6350
  isPrivate: true,
6333
- timestamp: 1743670835,
6351
+ timestamp: 1744110779,
6334
6352
  minPrice: 1586
6335
6353
  },
6336
6354
  {
@@ -6347,7 +6365,7 @@ var products = [
6347
6365
  "USDC"
6348
6366
  ],
6349
6367
  isPrivate: false,
6350
- timestamp: 1744110779,
6368
+ timestamp: 1757074607,
6351
6369
  minPrice: 150
6352
6370
  },
6353
6371
  {
@@ -6439,7 +6457,7 @@ var products = [
6439
6457
  "cbBTC"
6440
6458
  ],
6441
6459
  isPrivate: false,
6442
- timestamp: 1751550659,
6460
+ timestamp: 1749739367,
6443
6461
  minPrice: 300
6444
6462
  },
6445
6463
  {
@@ -6601,7 +6619,7 @@ var products = [
6601
6619
  "cbBTC"
6602
6620
  ],
6603
6621
  isPrivate: false,
6604
- timestamp: 1750162583,
6622
+ timestamp: 1751550659,
6605
6623
  minPrice: 100
6606
6624
  },
6607
6625
  {
@@ -6655,7 +6673,7 @@ var products = [
6655
6673
  "USDC"
6656
6674
  ],
6657
6675
  isPrivate: false,
6658
- timestamp: 1757074607,
6676
+ timestamp: 1752150803,
6659
6677
  minPrice: 50
6660
6678
  },
6661
6679
  {
@@ -6672,7 +6690,7 @@ var products = [
6672
6690
  "USDC"
6673
6691
  ],
6674
6692
  isPrivate: false,
6675
- timestamp: 1757074607,
6693
+ timestamp: 1754552351,
6676
6694
  minPrice: 50
6677
6695
  },
6678
6696
  {
@@ -6706,7 +6724,7 @@ var products = [
6706
6724
  "USDC"
6707
6725
  ],
6708
6726
  isPrivate: false,
6709
- timestamp: 1757074607,
6727
+ timestamp: 1752834371,
6710
6728
  minPrice: 300
6711
6729
  },
6712
6730
  {
@@ -6795,7 +6813,7 @@ var products = [
6795
6813
  "USDC"
6796
6814
  ],
6797
6815
  isPrivate: false,
6798
- timestamp: 1753877075,
6816
+ timestamp: 1757074607,
6799
6817
  minPrice: 50
6800
6818
  },
6801
6819
  {
@@ -6938,7 +6956,7 @@ var products = [
6938
6956
  "USDC"
6939
6957
  ],
6940
6958
  isPrivate: false,
6941
- timestamp: 1757074607,
6959
+ timestamp: 1755778907,
6942
6960
  minPrice: 100
6943
6961
  },
6944
6962
  {
@@ -42941,4 +42959,4 @@ declare const nexusSdk: {
42941
42959
  }];
42942
42960
  };
42943
42961
 
42944
- 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, CoverQuotaShare, CoverRouterProductCapacityResponse, CoverRouterQuoteResponse, CoverValidators, CoverWalletAddress, CoverWalletAddresses, DEFAULT_COMMISSION_RATIO, DEFAULT_SLIPPAGE, DEFI_PASS_COMMISSION_RATIO, DefiPassContent, ErrorApiResponse, ErrorResponse, FUND_PORTFOLIO_COMMISSION_RATIO, File, FloatString, GENERALISED_FUND_PORTFOLIO_COMMISSION_RATIO, GetQuoteAndBuyCoverInputsParams, GetQuoteApiResponse, GetQuoteResponse, GovernanceCategory, GovernanceProposal, IMMUNEFI_ADDRESS, IPFSContentForProductType, IPFSContentTypes, IPFSTypeContentTuple, IPFSUploadServiceResponse, IPFS_CONTENT_TYPE_BY_PRODUCT_TYPE, IntString, Integer, Ipfs, LogoFileName, LogoName, MAXIMUM_COVER_PERIOD, MINIMUM_COVER_PERIOD, NEXUS_MUTUAL_COVER_COMMISSION_RATIO, NEXUS_MUTUAL_DAO_TREASURY_ADDRESS, 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 };
42962
+ 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, GENERALISED_FUND_PORTFOLIO_COMMISSION_RATIO, GetQuoteAndBuyCoverInputsParams, GetQuoteApiResponse, GetQuoteResponse, GovernanceCategory, GovernanceProposal, IMMUNEFI_ADDRESS, IPFSContentForProductType, IPFSContentTypes, IPFSTypeContentTuple, IPFSUploadServiceResponse, IPFS_CONTENT_TYPE_BY_PRODUCT_TYPE, IntString, Integer, Ipfs, LogoFileName, LogoName, MAXIMUM_COVER_PERIOD, MINIMUM_COVER_PERIOD, NEXUS_MUTUAL_COVER_COMMISSION_RATIO, NEXUS_MUTUAL_DAO_TREASURY_ADDRESS, 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 };