@northstake/northstakeapi 1.0.7 → 1.0.8

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.
Files changed (149) hide show
  1. package/.openapi-generator/FILES +23 -15
  2. package/api/apis.ts +17 -9
  3. package/api/northstake.ts +47 -23
  4. package/api/portfolioApi.ts +4 -4
  5. package/api/stakingPartnerManagedUsersApi.ts +0 -279
  6. package/api/stakingPartnerManagedUsersDepositAddressesApi.ts +167 -0
  7. package/api/stakingPartnerManagedUsersPortfolioApi.ts +167 -0
  8. package/api/stakingPartnerManagedUsersStatsApi.ts +167 -0
  9. package/api/stakingPartnerManagedUsersValidatorsApi.ts +167 -0
  10. package/api/statsApi.ts +0 -73
  11. package/api/{rfqMarketPlaceBuyersApi.ts → validatorMarketplaceBuyersApi.ts} +31 -21
  12. package/api/{rfqMarketPlaceSellersApi.ts → validatorMarketplaceSellersApi.ts} +68 -60
  13. package/api/{rfqMarketPlaceWebhooksApi.ts → validatorMarketplaceWebhooksApi.ts} +7 -7
  14. package/api/validatorsApi.ts +172 -0
  15. package/dist/api/apis.d.ts +17 -9
  16. package/dist/api/apis.js +17 -9
  17. package/dist/api/northstake.d.ts +16 -8
  18. package/dist/api/northstake.js +32 -16
  19. package/dist/api/portfolioApi.d.ts +2 -2
  20. package/dist/api/portfolioApi.js +1 -1
  21. package/dist/api/stakingPartnerManagedUsersApi.d.ts +0 -55
  22. package/dist/api/stakingPartnerManagedUsersApi.js +0 -264
  23. package/dist/api/stakingPartnerManagedUsersDepositAddressesApi.d.ts +53 -0
  24. package/dist/api/stakingPartnerManagedUsersDepositAddressesApi.js +146 -0
  25. package/dist/api/stakingPartnerManagedUsersPortfolioApi.d.ts +53 -0
  26. package/dist/api/stakingPartnerManagedUsersPortfolioApi.js +146 -0
  27. package/dist/api/stakingPartnerManagedUsersStatsApi.d.ts +53 -0
  28. package/dist/api/stakingPartnerManagedUsersStatsApi.js +146 -0
  29. package/dist/api/{stakingPartnerValidatorKeysApi.d.ts → stakingPartnerManagedUsersValidatorsApi.d.ts} +5 -31
  30. package/dist/api/stakingPartnerManagedUsersValidatorsApi.js +146 -0
  31. package/dist/api/statsApi.d.ts +0 -15
  32. package/dist/api/statsApi.js +0 -68
  33. package/dist/api/{rfqMarketPlaceBuyersApi.d.ts → validatorMarketplaceBuyersApi.d.ts} +11 -10
  34. package/dist/api/{rfqMarketPlaceBuyersApi.js → validatorMarketplaceBuyersApi.js} +32 -24
  35. package/dist/api/{rfqMarketPlaceSellersApi.d.ts → validatorMarketplaceSellersApi.d.ts} +27 -26
  36. package/dist/api/{rfqMarketPlaceSellersApi.js → validatorMarketplaceSellersApi.js} +64 -57
  37. package/dist/api/{rfqMarketPlaceWebhooksApi.d.ts → validatorMarketplaceWebhooksApi.d.ts} +2 -2
  38. package/dist/api/{rfqMarketPlaceWebhooksApi.js → validatorMarketplaceWebhooksApi.js} +11 -11
  39. package/dist/api/validatorsApi.d.ts +56 -0
  40. package/dist/api/validatorsApi.js +148 -0
  41. package/dist/model/{createRFQDocumentForSellerRequest.d.ts → createRFQDocumentRequest.d.ts} +1 -1
  42. package/dist/model/{createRFQDocumentForSellerRequest.js → createRFQDocumentRequest.js} +6 -6
  43. package/dist/model/{registerRewardRecipientSettlementRequestInner.d.ts → exitEstimateBase.d.ts} +3 -3
  44. package/dist/model/exitEstimateBase.js +33 -0
  45. package/dist/model/{exitEstimate.d.ts → exitEstimateSeller.d.ts} +2 -2
  46. package/dist/model/{exitEstimate.js → exitEstimateSeller.js} +10 -10
  47. package/dist/model/models.d.ts +15 -11
  48. package/dist/model/models.js +45 -33
  49. package/dist/model/{getRewardsStatistics200ResponseInner.d.ts → portfolioEntity.d.ts} +7 -6
  50. package/dist/model/portfolioEntity.js +38 -0
  51. package/dist/model/rFQDocumentBase.d.ts +4 -3
  52. package/dist/model/rFQDocumentBase.js +3 -8
  53. package/dist/model/rFQDocumentBuyer.d.ts +7 -4
  54. package/dist/model/rFQDocumentBuyer.js +8 -8
  55. package/dist/model/{rFQDocumentBaseValidatorsInner.d.ts → rFQDocumentBuyerAllOfValidators.d.ts} +3 -3
  56. package/dist/model/{rFQDocumentBaseValidatorsInner.js → rFQDocumentBuyerAllOfValidators.js} +9 -9
  57. package/dist/model/rFQDocumentSeller.d.ts +8 -4
  58. package/dist/model/rFQDocumentSeller.js +16 -11
  59. package/dist/model/rFQDocumentSellerAllOfValidators.d.ts +28 -0
  60. package/dist/model/rFQDocumentSellerAllOfValidators.js +38 -0
  61. package/dist/model/rFQDocumentStatusEnum.d.ts +17 -0
  62. package/dist/model/rFQDocumentStatusEnum.js +21 -0
  63. package/dist/model/{acceptBidForRFQDocumentRequest.d.ts → rejectQuoteForRFQDocumentRequest.d.ts} +1 -1
  64. package/dist/model/{acceptBidForRFQDocumentRequest.js → rejectQuoteForRFQDocumentRequest.js} +6 -6
  65. package/dist/model/settlementStepEscrowPayment.d.ts +1 -0
  66. package/dist/model/settlementStepEscrowPayment.js +5 -0
  67. package/dist/model/settlementStepEscrowReleased.d.ts +2 -0
  68. package/dist/model/settlementStepEscrowReleased.js +10 -0
  69. package/dist/model/{settlementStepRewardRecipientSettlementInner.d.ts → settlementStepWithdrawalRecipientSettlementInner.d.ts} +1 -1
  70. package/dist/model/{settlementStepRewardRecipientSettlementInner.js → settlementStepWithdrawalRecipientSettlementInner.js} +6 -6
  71. package/dist/model/settlementSteps.d.ts +2 -2
  72. package/dist/model/settlementSteps.js +3 -3
  73. package/dist/model/stakeStep.d.ts +1 -1
  74. package/dist/model/stepStatus.d.ts +1 -1
  75. package/dist/model/stepStatus.js +1 -1
  76. package/dist/model/submitQuoteForRFQDocumentRequest.d.ts +25 -0
  77. package/dist/model/submitQuoteForRFQDocumentRequest.js +28 -0
  78. package/dist/model/tokenEnum.d.ts +1 -3
  79. package/dist/model/tokenEnum.js +1 -3
  80. package/dist/model/unstakeStep.d.ts +1 -1
  81. package/dist/model/unstakeStepType.d.ts +1 -1
  82. package/dist/model/unstakeStepType.js +1 -1
  83. package/dist/model/validatorContractTypeEnum.d.ts +15 -0
  84. package/dist/model/validatorContractTypeEnum.js +19 -0
  85. package/dist/model/validatorInfo.d.ts +6 -1
  86. package/dist/model/validatorInfo.js +17 -2
  87. package/dist/model/{portfolioTableRow.d.ts → validatorInfoValidatorType.d.ts} +6 -10
  88. package/dist/model/validatorInfoValidatorType.js +33 -0
  89. package/dist/model/validatorInfoValidatorTypeContract.d.ts +29 -0
  90. package/dist/model/validatorInfoValidatorTypeContract.js +33 -0
  91. package/dist/model/validatorKeyHolderEnum.d.ts +15 -0
  92. package/dist/model/validatorKeyHolderEnum.js +19 -0
  93. package/dist/model/webhookPayloadRFQAvailable.d.ts +2 -2
  94. package/dist/model/webhookPayloadRFQAvailable.js +1 -1
  95. package/dist/model/webhookPayloadRFQEscrowReleasedDetails.d.ts +1 -0
  96. package/dist/model/webhookPayloadRFQEscrowReleasedDetails.js +5 -0
  97. package/dist/model/webhookPayloadRFQValidatorWithdrawalChange.d.ts +2 -2
  98. package/dist/model/webhookPayloadRFQValidatorWithdrawalChange.js +1 -1
  99. package/dist/model/{webhookPayloadRFQValidatorWithdrawalChangeDetailsInner.d.ts → webhookPayloadRFQValidatorWithdrawalChangeDetails.d.ts} +1 -2
  100. package/dist/model/{webhookPayloadRFQValidatorWithdrawalChangeDetailsInner.js → webhookPayloadRFQValidatorWithdrawalChangeDetails.js} +6 -11
  101. package/dist/model/withdrawalStep.d.ts +1 -1
  102. package/dist/model/withdrawalStepType.d.ts +1 -1
  103. package/dist/model/withdrawalStepType.js +1 -1
  104. package/model/{createRFQDocumentForSellerRequest.ts → createRFQDocumentRequest.ts} +2 -2
  105. package/model/exitEstimateBase.ts +37 -0
  106. package/model/{exitEstimate.ts → exitEstimateSeller.ts} +7 -7
  107. package/model/models.ts +45 -33
  108. package/model/portfolioEntity.ts +46 -0
  109. package/model/rFQDocumentBase.ts +7 -11
  110. package/model/rFQDocumentBuyer.ts +15 -12
  111. package/model/{rFQDocumentBaseValidatorsInner.ts → rFQDocumentBuyerAllOfValidators.ts} +7 -7
  112. package/model/rFQDocumentSeller.ts +24 -15
  113. package/model/{registerRewardRecipientSettlementRequestInner.ts → rFQDocumentSellerAllOfValidators.ts} +15 -8
  114. package/model/rFQDocumentStatusEnum.ts +20 -0
  115. package/model/{acceptBidForRFQDocumentRequest.ts → rejectQuoteForRFQDocumentRequest.ts} +2 -2
  116. package/model/settlementStepEscrowPayment.ts +6 -0
  117. package/model/settlementStepEscrowReleased.ts +12 -0
  118. package/model/{settlementStepRewardRecipientSettlementInner.ts → settlementStepWithdrawalRecipientSettlementInner.ts} +2 -2
  119. package/model/settlementSteps.ts +5 -5
  120. package/model/stakeStep.ts +1 -1
  121. package/model/stepStatus.ts +1 -1
  122. package/model/{rFQMarketPlaceMetadata.ts → submitQuoteForRFQDocumentRequest.ts} +5 -17
  123. package/model/tokenEnum.ts +1 -3
  124. package/model/unstakeStep.ts +1 -1
  125. package/model/unstakeStepType.ts +1 -1
  126. package/model/validatorContractTypeEnum.ts +18 -0
  127. package/model/validatorInfo.ts +23 -3
  128. package/model/validatorInfoValidatorType.ts +41 -0
  129. package/model/validatorInfoValidatorTypeContract.ts +40 -0
  130. package/model/validatorKeyHolderEnum.ts +18 -0
  131. package/model/webhookPayloadRFQAvailable.ts +3 -3
  132. package/model/webhookPayloadRFQEscrowReleasedDetails.ts +6 -0
  133. package/model/webhookPayloadRFQValidatorWithdrawalChange.ts +3 -3
  134. package/model/{webhookPayloadRFQValidatorWithdrawalChangeDetailsInner.ts → webhookPayloadRFQValidatorWithdrawalChangeDetails.ts} +2 -8
  135. package/model/withdrawalStep.ts +1 -1
  136. package/model/withdrawalStepType.ts +1 -1
  137. package/package.json +1 -1
  138. package/api/stakingPartnerValidatorKeysApi.ts +0 -292
  139. package/dist/api/stakingPartnerValidatorKeysApi.js +0 -265
  140. package/dist/model/getRewardsStatistics200ResponseInner.js +0 -48
  141. package/dist/model/getValidatorKeys200ResponseInner.d.ts +0 -40
  142. package/dist/model/getValidatorKeys200ResponseInner.js +0 -43
  143. package/dist/model/portfolioTableRow.js +0 -58
  144. package/dist/model/rFQMarketPlaceMetadata.d.ts +0 -32
  145. package/dist/model/rFQMarketPlaceMetadata.js +0 -33
  146. package/dist/model/registerRewardRecipientSettlementRequestInner.js +0 -33
  147. package/model/getRewardsStatistics200ResponseInner.ts +0 -55
  148. package/model/getValidatorKeys200ResponseInner.ts +0 -61
  149. package/model/portfolioTableRow.ts +0 -70
@@ -11,12 +11,12 @@
11
11
  */
12
12
 
13
13
  import { RequestFile } from './models';
14
- import { ExitEstimate } from './exitEstimate';
14
+ import { ExitEstimateBase } from './exitEstimateBase';
15
15
 
16
- export class RFQDocumentBaseValidatorsInner {
16
+ export class RFQDocumentBuyerAllOfValidators {
17
17
  'validatorIndex': number;
18
18
  'balance': number;
19
- 'exitEstimates'?: Array<ExitEstimate>;
19
+ 'exitEstimate': ExitEstimateBase;
20
20
 
21
21
  static discriminator: string | undefined = undefined;
22
22
 
@@ -32,13 +32,13 @@ export class RFQDocumentBaseValidatorsInner {
32
32
  "type": "number"
33
33
  },
34
34
  {
35
- "name": "exitEstimates",
36
- "baseName": "exit_estimates",
37
- "type": "Array<ExitEstimate>"
35
+ "name": "exitEstimate",
36
+ "baseName": "exit_estimate",
37
+ "type": "ExitEstimateBase"
38
38
  } ];
39
39
 
40
40
  static getAttributeTypeMap() {
41
- return RFQDocumentBaseValidatorsInner.attributeTypeMap;
41
+ return RFQDocumentBuyerAllOfValidators.attributeTypeMap;
42
42
  }
43
43
  }
44
44
 
@@ -13,18 +13,20 @@
13
13
  import { RequestFile } from './models';
14
14
  import { Quote } from './quote';
15
15
  import { RFQDocumentBaseUniqueEscrowVault } from './rFQDocumentBaseUniqueEscrowVault';
16
- import { RFQDocumentBaseValidatorsInner } from './rFQDocumentBaseValidatorsInner';
16
+ import { RFQDocumentSellerAllOfValidators } from './rFQDocumentSellerAllOfValidators';
17
+ import { RFQDocumentStatusEnum } from './rFQDocumentStatusEnum';
17
18
  import { SettlementSteps } from './settlementSteps';
18
19
 
19
20
  export class RFQDocumentSeller {
20
21
  'id': string;
21
- 'validators': Array<RFQDocumentBaseValidatorsInner>;
22
+ 'status': RFQDocumentStatusEnum;
22
23
  'totalBalance': number;
23
24
  'paymentAddress': string;
24
- 'estimatedExitTransactionDeadline': Date;
25
25
  'estimatedAllValidatorsExitedAt': Date;
26
26
  'uniqueEscrowVault'?: RFQDocumentBaseUniqueEscrowVault;
27
- 'quotes': Array<Quote>;
27
+ 'validators': Array<RFQDocumentSellerAllOfValidators>;
28
+ 'estimatedExitTransactionDeadline': Date;
29
+ 'bestQuote'?: Quote;
28
30
  'settlementSteps'?: SettlementSteps;
29
31
 
30
32
  static discriminator: string | undefined = undefined;
@@ -36,9 +38,9 @@ export class RFQDocumentSeller {
36
38
  "type": "string"
37
39
  },
38
40
  {
39
- "name": "validators",
40
- "baseName": "validators",
41
- "type": "Array<RFQDocumentBaseValidatorsInner>"
41
+ "name": "status",
42
+ "baseName": "status",
43
+ "type": "RFQDocumentStatusEnum"
42
44
  },
43
45
  {
44
46
  "name": "totalBalance",
@@ -50,11 +52,6 @@ export class RFQDocumentSeller {
50
52
  "baseName": "payment_address",
51
53
  "type": "string"
52
54
  },
53
- {
54
- "name": "estimatedExitTransactionDeadline",
55
- "baseName": "estimated_exit_transaction_deadline",
56
- "type": "Date"
57
- },
58
55
  {
59
56
  "name": "estimatedAllValidatorsExitedAt",
60
57
  "baseName": "estimated_all_validators_exited_at",
@@ -66,9 +63,19 @@ export class RFQDocumentSeller {
66
63
  "type": "RFQDocumentBaseUniqueEscrowVault"
67
64
  },
68
65
  {
69
- "name": "quotes",
70
- "baseName": "quotes",
71
- "type": "Array<Quote>"
66
+ "name": "validators",
67
+ "baseName": "validators",
68
+ "type": "Array<RFQDocumentSellerAllOfValidators>"
69
+ },
70
+ {
71
+ "name": "estimatedExitTransactionDeadline",
72
+ "baseName": "estimated_exit_transaction_deadline",
73
+ "type": "Date"
74
+ },
75
+ {
76
+ "name": "bestQuote",
77
+ "baseName": "best_quote",
78
+ "type": "Quote"
72
79
  },
73
80
  {
74
81
  "name": "settlementSteps",
@@ -81,3 +88,5 @@ export class RFQDocumentSeller {
81
88
  }
82
89
  }
83
90
 
91
+ export namespace RFQDocumentSeller {
92
+ }
@@ -11,27 +11,34 @@
11
11
  */
12
12
 
13
13
  import { RequestFile } from './models';
14
+ import { ExitEstimateSeller } from './exitEstimateSeller';
14
15
 
15
- export class RegisterRewardRecipientSettlementRequestInner {
16
- 'transactionHash': string;
16
+ export class RFQDocumentSellerAllOfValidators {
17
17
  'validatorIndex': number;
18
+ 'balance': number;
19
+ 'exitEstimate': ExitEstimateSeller;
18
20
 
19
21
  static discriminator: string | undefined = undefined;
20
22
 
21
23
  static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
22
- {
23
- "name": "transactionHash",
24
- "baseName": "transaction_hash",
25
- "type": "string"
26
- },
27
24
  {
28
25
  "name": "validatorIndex",
29
26
  "baseName": "validator_index",
30
27
  "type": "number"
28
+ },
29
+ {
30
+ "name": "balance",
31
+ "baseName": "balance",
32
+ "type": "number"
33
+ },
34
+ {
35
+ "name": "exitEstimate",
36
+ "baseName": "exit_estimate",
37
+ "type": "ExitEstimateSeller"
31
38
  } ];
32
39
 
33
40
  static getAttributeTypeMap() {
34
- return RegisterRewardRecipientSettlementRequestInner.attributeTypeMap;
41
+ return RFQDocumentSellerAllOfValidators.attributeTypeMap;
35
42
  }
36
43
  }
37
44
 
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Northstake
3
+ * Northstake api.
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+ import { RequestFile } from './models';
14
+
15
+ export enum RFQDocumentStatusEnum {
16
+ Active = <any> 'active',
17
+ Expired = <any> 'expired',
18
+ Rejected = <any> 'rejected',
19
+ Finished = <any> 'finished'
20
+ }
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { RequestFile } from './models';
14
14
 
15
- export class AcceptBidForRFQDocumentRequest {
15
+ export class RejectQuoteForRFQDocumentRequest {
16
16
  'quoteId': string;
17
17
 
18
18
  static discriminator: string | undefined = undefined;
@@ -25,7 +25,7 @@ export class AcceptBidForRFQDocumentRequest {
25
25
  } ];
26
26
 
27
27
  static getAttributeTypeMap() {
28
- return AcceptBidForRFQDocumentRequest.attributeTypeMap;
28
+ return RejectQuoteForRFQDocumentRequest.attributeTypeMap;
29
29
  }
30
30
  }
31
31
 
@@ -15,6 +15,7 @@ import { RequestFile } from './models';
15
15
  export class SettlementStepEscrowPayment {
16
16
  'timestamp': string;
17
17
  'transactionHash': string;
18
+ 'amount': number;
18
19
 
19
20
  static discriminator: string | undefined = undefined;
20
21
 
@@ -28,6 +29,11 @@ export class SettlementStepEscrowPayment {
28
29
  "name": "transactionHash",
29
30
  "baseName": "transaction_hash",
30
31
  "type": "string"
32
+ },
33
+ {
34
+ "name": "amount",
35
+ "baseName": "amount",
36
+ "type": "number"
31
37
  } ];
32
38
 
33
39
  static getAttributeTypeMap() {
@@ -15,6 +15,8 @@ import { RequestFile } from './models';
15
15
  export class SettlementStepEscrowReleased {
16
16
  'timestamp': string;
17
17
  'transactionHash': string;
18
+ 'amount': number;
19
+ 'gasAmount': number;
18
20
 
19
21
  static discriminator: string | undefined = undefined;
20
22
 
@@ -28,6 +30,16 @@ export class SettlementStepEscrowReleased {
28
30
  "name": "transactionHash",
29
31
  "baseName": "transaction_hash",
30
32
  "type": "string"
33
+ },
34
+ {
35
+ "name": "amount",
36
+ "baseName": "amount",
37
+ "type": "number"
38
+ },
39
+ {
40
+ "name": "gasAmount",
41
+ "baseName": "gas_amount",
42
+ "type": "number"
31
43
  } ];
32
44
 
33
45
  static getAttributeTypeMap() {
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { RequestFile } from './models';
14
14
 
15
- export class SettlementStepRewardRecipientSettlementInner {
15
+ export class SettlementStepWithdrawalRecipientSettlementInner {
16
16
  'timestamp': string;
17
17
  'transactionHash': string;
18
18
  'validatorIndex': number;
@@ -37,7 +37,7 @@ export class SettlementStepRewardRecipientSettlementInner {
37
37
  } ];
38
38
 
39
39
  static getAttributeTypeMap() {
40
- return SettlementStepRewardRecipientSettlementInner.attributeTypeMap;
40
+ return SettlementStepWithdrawalRecipientSettlementInner.attributeTypeMap;
41
41
  }
42
42
  }
43
43
 
@@ -14,12 +14,12 @@ import { RequestFile } from './models';
14
14
  import { SettlementStepAcceptedQuote } from './settlementStepAcceptedQuote';
15
15
  import { SettlementStepEscrowPayment } from './settlementStepEscrowPayment';
16
16
  import { SettlementStepEscrowReleased } from './settlementStepEscrowReleased';
17
- import { SettlementStepRewardRecipientSettlementInner } from './settlementStepRewardRecipientSettlementInner';
17
+ import { SettlementStepWithdrawalRecipientSettlementInner } from './settlementStepWithdrawalRecipientSettlementInner';
18
18
 
19
19
  export class SettlementSteps {
20
20
  'acceptedQuote'?: SettlementStepAcceptedQuote;
21
21
  'escrowPayment'?: SettlementStepEscrowPayment;
22
- 'rewardRecipientSettlement'?: Array<SettlementStepRewardRecipientSettlementInner>;
22
+ 'withdrawalRecipientSettlement'?: Array<SettlementStepWithdrawalRecipientSettlementInner>;
23
23
  'escrowReleased'?: SettlementStepEscrowReleased;
24
24
 
25
25
  static discriminator: string | undefined = undefined;
@@ -36,9 +36,9 @@ export class SettlementSteps {
36
36
  "type": "SettlementStepEscrowPayment"
37
37
  },
38
38
  {
39
- "name": "rewardRecipientSettlement",
40
- "baseName": "reward_recipient_settlement",
41
- "type": "Array<SettlementStepRewardRecipientSettlementInner>"
39
+ "name": "withdrawalRecipientSettlement",
40
+ "baseName": "withdrawal_recipient_settlement",
41
+ "type": "Array<SettlementStepWithdrawalRecipientSettlementInner>"
42
42
  },
43
43
  {
44
44
  "name": "escrowReleased",
@@ -14,7 +14,7 @@ import { RequestFile } from './models';
14
14
 
15
15
  export class StakeStep {
16
16
  /**
17
- * Specifies the type of stake step being performed.
17
+ * Specifies current status of the staking process.
18
18
  */
19
19
  'type'?: string;
20
20
  /**
@@ -13,7 +13,7 @@
13
13
  import { RequestFile } from './models';
14
14
 
15
15
  /**
16
- * Current status of the step in the processing sequence.
16
+ * Current status of the staking processing sequence.
17
17
  */
18
18
  export enum StepStatus {
19
19
  Running = <any> 'running',
@@ -12,32 +12,20 @@
12
12
 
13
13
  import { RequestFile } from './models';
14
14
 
15
- export class RFQMarketPlaceMetadata {
16
- /**
17
- * Total number of documents in the RFQ Marketplace
18
- */
19
- 'totalDocuments': number;
20
- /**
21
- * Number of documents with a \"submitted\" seller status
22
- */
23
- 'activeDocuments': number;
15
+ export class SubmitQuoteForRFQDocumentRequest {
16
+ 'ethAmount': number;
24
17
 
25
18
  static discriminator: string | undefined = undefined;
26
19
 
27
20
  static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
28
21
  {
29
- "name": "totalDocuments",
30
- "baseName": "total_documents",
31
- "type": "number"
32
- },
33
- {
34
- "name": "activeDocuments",
35
- "baseName": "active_documents",
22
+ "name": "ethAmount",
23
+ "baseName": "eth_amount",
36
24
  "type": "number"
37
25
  } ];
38
26
 
39
27
  static getAttributeTypeMap() {
40
- return RFQMarketPlaceMetadata.attributeTypeMap;
28
+ return SubmitQuoteForRFQDocumentRequest.attributeTypeMap;
41
29
  }
42
30
  }
43
31
 
@@ -13,18 +13,16 @@
13
13
  import { RequestFile } from './models';
14
14
 
15
15
  /**
16
- * Supported types of tokens.
16
+ * Supported assets.
17
17
  */
18
18
  export enum TokenEnum {
19
19
  Eth = <any> 'ETH',
20
- Egld = <any> 'EGLD',
21
20
  Avax = <any> 'AVAX',
22
21
  Ccd = <any> 'CCD',
23
22
  Ada = <any> 'ADA',
24
23
  Sol = <any> 'SOL',
25
24
  Dot = <any> 'DOT',
26
25
  Matic = <any> 'MATIC',
27
- Sgb = <any> 'SGB',
28
26
  Near = <any> 'NEAR',
29
27
  Btc = <any> 'BTC'
30
28
  }
@@ -16,7 +16,7 @@ import { UnstakeStepType } from './unstakeStepType';
16
16
  export class UnstakeStep {
17
17
  'type'?: UnstakeStepType;
18
18
  /**
19
- * The timestamp when the step was processed.
19
+ * The timestamp when unstaking was processed.
20
20
  */
21
21
  'timestamp'?: Date;
22
22
 
@@ -13,7 +13,7 @@
13
13
  import { RequestFile } from './models';
14
14
 
15
15
  /**
16
- * Specifies the type of unstake step being performed.
16
+ * Specifies the status of the unstaking process.
17
17
  */
18
18
  export enum UnstakeStepType {
19
19
  UnstakeTransactionRequested = <any> 'unstake_transaction_requested',
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Northstake
3
+ * Northstake api.
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+ import { RequestFile } from './models';
14
+
15
+ export enum ValidatorContractTypeEnum {
16
+ DefaultValidator = <any> 'default_validator',
17
+ TokenizedValidator = <any> 'tokenized_validator'
18
+ }
@@ -11,13 +11,16 @@
11
11
  */
12
12
 
13
13
  import { RequestFile } from './models';
14
+ import { ExitEstimateSeller } from './exitEstimateSeller';
15
+ import { ValidatorInfoValidatorType } from './validatorInfoValidatorType';
14
16
 
15
17
  export class ValidatorInfo {
18
+ 'balance'?: number;
16
19
  /**
17
20
  * Validator token
18
21
  */
19
22
  'token'?: ValidatorInfo.TokenEnum;
20
- 'validatorId'?: number;
23
+ 'validatorIndex'?: number;
21
24
  /**
22
25
  * Managed user reference id of the validator owner
23
26
  */
@@ -32,18 +35,25 @@ export class ValidatorInfo {
32
35
  'associatedOrderId'?: string;
33
36
  'startDate'?: number;
34
37
  'endDate'?: number;
38
+ 'exitEstimate'?: ExitEstimateSeller;
39
+ 'validatorType'?: ValidatorInfoValidatorType;
35
40
 
36
41
  static discriminator: string | undefined = undefined;
37
42
 
38
43
  static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
44
+ {
45
+ "name": "balance",
46
+ "baseName": "balance",
47
+ "type": "number"
48
+ },
39
49
  {
40
50
  "name": "token",
41
51
  "baseName": "token",
42
52
  "type": "ValidatorInfo.TokenEnum"
43
53
  },
44
54
  {
45
- "name": "validatorId",
46
- "baseName": "validator_id",
55
+ "name": "validatorIndex",
56
+ "baseName": "validator_index",
47
57
  "type": "number"
48
58
  },
49
59
  {
@@ -70,6 +80,16 @@ export class ValidatorInfo {
70
80
  "name": "endDate",
71
81
  "baseName": "end_date",
72
82
  "type": "number"
83
+ },
84
+ {
85
+ "name": "exitEstimate",
86
+ "baseName": "exit_estimate",
87
+ "type": "ExitEstimateSeller"
88
+ },
89
+ {
90
+ "name": "validatorType",
91
+ "baseName": "validator_type",
92
+ "type": "ValidatorInfoValidatorType"
73
93
  } ];
74
94
 
75
95
  static getAttributeTypeMap() {
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Northstake
3
+ * Northstake api.
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+ import { RequestFile } from './models';
14
+ import { ValidatorInfoValidatorTypeContract } from './validatorInfoValidatorTypeContract';
15
+ import { ValidatorKeyHolderEnum } from './validatorKeyHolderEnum';
16
+
17
+ export class ValidatorInfoValidatorType {
18
+ 'keyHolder'?: ValidatorKeyHolderEnum;
19
+ 'contract'?: ValidatorInfoValidatorTypeContract;
20
+
21
+ static discriminator: string | undefined = undefined;
22
+
23
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
24
+ {
25
+ "name": "keyHolder",
26
+ "baseName": "key_holder",
27
+ "type": "ValidatorKeyHolderEnum"
28
+ },
29
+ {
30
+ "name": "contract",
31
+ "baseName": "contract",
32
+ "type": "ValidatorInfoValidatorTypeContract"
33
+ } ];
34
+
35
+ static getAttributeTypeMap() {
36
+ return ValidatorInfoValidatorType.attributeTypeMap;
37
+ }
38
+ }
39
+
40
+ export namespace ValidatorInfoValidatorType {
41
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Northstake
3
+ * Northstake api.
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+ import { RequestFile } from './models';
14
+ import { ValidatorContractTypeEnum } from './validatorContractTypeEnum';
15
+
16
+ export class ValidatorInfoValidatorTypeContract {
17
+ 'address'?: string;
18
+ 'contractType'?: ValidatorContractTypeEnum;
19
+
20
+ static discriminator: string | undefined = undefined;
21
+
22
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
23
+ {
24
+ "name": "address",
25
+ "baseName": "address",
26
+ "type": "string"
27
+ },
28
+ {
29
+ "name": "contractType",
30
+ "baseName": "contract_type",
31
+ "type": "ValidatorContractTypeEnum"
32
+ } ];
33
+
34
+ static getAttributeTypeMap() {
35
+ return ValidatorInfoValidatorTypeContract.attributeTypeMap;
36
+ }
37
+ }
38
+
39
+ export namespace ValidatorInfoValidatorTypeContract {
40
+ }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Northstake
3
+ * Northstake api.
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+ import { RequestFile } from './models';
14
+
15
+ export enum ValidatorKeyHolderEnum {
16
+ Northstake = <any> 'northstake',
17
+ SelfManaged = <any> 'self_managed'
18
+ }
@@ -11,13 +11,13 @@
11
11
  */
12
12
 
13
13
  import { RequestFile } from './models';
14
- import { RFQDocumentBase } from './rFQDocumentBase';
14
+ import { RFQDocumentBuyer } from './rFQDocumentBuyer';
15
15
  import { RFQWebhookEventType } from './rFQWebhookEventType';
16
16
 
17
17
  export class WebhookPayloadRFQAvailable {
18
18
  'documentId'?: string;
19
19
  'event'?: RFQWebhookEventType;
20
- 'details'?: RFQDocumentBase;
20
+ 'details'?: RFQDocumentBuyer;
21
21
 
22
22
  static discriminator: string | undefined = undefined;
23
23
 
@@ -35,7 +35,7 @@ export class WebhookPayloadRFQAvailable {
35
35
  {
36
36
  "name": "details",
37
37
  "baseName": "details",
38
- "type": "RFQDocumentBase"
38
+ "type": "RFQDocumentBuyer"
39
39
  } ];
40
40
 
41
41
  static getAttributeTypeMap() {
@@ -16,6 +16,7 @@ export class WebhookPayloadRFQEscrowReleasedDetails {
16
16
  'timestamp'?: Date;
17
17
  'transactionHash'?: string;
18
18
  'amount'?: number;
19
+ 'gasAmount'?: number;
19
20
 
20
21
  static discriminator: string | undefined = undefined;
21
22
 
@@ -34,6 +35,11 @@ export class WebhookPayloadRFQEscrowReleasedDetails {
34
35
  "name": "amount",
35
36
  "baseName": "amount",
36
37
  "type": "number"
38
+ },
39
+ {
40
+ "name": "gasAmount",
41
+ "baseName": "gas_amount",
42
+ "type": "number"
37
43
  } ];
38
44
 
39
45
  static getAttributeTypeMap() {
@@ -12,12 +12,12 @@
12
12
 
13
13
  import { RequestFile } from './models';
14
14
  import { RFQWebhookEventType } from './rFQWebhookEventType';
15
- import { WebhookPayloadRFQValidatorWithdrawalChangeDetailsInner } from './webhookPayloadRFQValidatorWithdrawalChangeDetailsInner';
15
+ import { WebhookPayloadRFQValidatorWithdrawalChangeDetails } from './webhookPayloadRFQValidatorWithdrawalChangeDetails';
16
16
 
17
17
  export class WebhookPayloadRFQValidatorWithdrawalChange {
18
18
  'documentId'?: string;
19
19
  'event'?: RFQWebhookEventType;
20
- 'details'?: Array<WebhookPayloadRFQValidatorWithdrawalChangeDetailsInner>;
20
+ 'details'?: WebhookPayloadRFQValidatorWithdrawalChangeDetails;
21
21
 
22
22
  static discriminator: string | undefined = undefined;
23
23
 
@@ -35,7 +35,7 @@ export class WebhookPayloadRFQValidatorWithdrawalChange {
35
35
  {
36
36
  "name": "details",
37
37
  "baseName": "details",
38
- "type": "Array<WebhookPayloadRFQValidatorWithdrawalChangeDetailsInner>"
38
+ "type": "WebhookPayloadRFQValidatorWithdrawalChangeDetails"
39
39
  } ];
40
40
 
41
41
  static getAttributeTypeMap() {