@northstake/northstakeapi 1.0.7 → 1.0.9
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/.openapi-generator/FILES +25 -15
- package/api/apis.ts +17 -9
- package/api/northstake.ts +47 -23
- package/api/portfolioApi.ts +4 -4
- package/api/stakingPartnerManagedUsersApi.ts +0 -279
- package/api/stakingPartnerManagedUsersDepositAddressesApi.ts +167 -0
- package/api/stakingPartnerManagedUsersPortfolioApi.ts +167 -0
- package/api/stakingPartnerManagedUsersStatsApi.ts +167 -0
- package/api/stakingPartnerManagedUsersValidatorsApi.ts +167 -0
- package/api/statsApi.ts +0 -73
- package/api/{rfqMarketPlaceBuyersApi.ts → validatorMarketplaceBuyersApi.ts} +34 -21
- package/api/{rfqMarketPlaceSellersApi.ts → validatorMarketplaceSellersApi.ts} +69 -60
- package/api/{rfqMarketPlaceWebhooksApi.ts → validatorMarketplaceWebhooksApi.ts} +7 -7
- package/api/validatorsApi.ts +172 -0
- package/dist/api/apis.d.ts +17 -9
- package/dist/api/apis.js +17 -9
- package/dist/api/northstake.d.ts +16 -8
- package/dist/api/northstake.js +32 -16
- package/dist/api/portfolioApi.d.ts +2 -2
- package/dist/api/portfolioApi.js +1 -1
- package/dist/api/stakingPartnerManagedUsersApi.d.ts +0 -55
- package/dist/api/stakingPartnerManagedUsersApi.js +0 -264
- package/dist/api/stakingPartnerManagedUsersDepositAddressesApi.d.ts +53 -0
- package/dist/api/stakingPartnerManagedUsersDepositAddressesApi.js +146 -0
- package/dist/api/stakingPartnerManagedUsersPortfolioApi.d.ts +53 -0
- package/dist/api/stakingPartnerManagedUsersPortfolioApi.js +146 -0
- package/dist/api/stakingPartnerManagedUsersStatsApi.d.ts +53 -0
- package/dist/api/stakingPartnerManagedUsersStatsApi.js +146 -0
- package/dist/api/{stakingPartnerValidatorKeysApi.d.ts → stakingPartnerManagedUsersValidatorsApi.d.ts} +5 -31
- package/dist/api/stakingPartnerManagedUsersValidatorsApi.js +146 -0
- package/dist/api/statsApi.d.ts +0 -15
- package/dist/api/statsApi.js +0 -68
- package/dist/api/{rfqMarketPlaceBuyersApi.d.ts → validatorMarketplaceBuyersApi.d.ts} +12 -10
- package/dist/api/{rfqMarketPlaceBuyersApi.js → validatorMarketplaceBuyersApi.js} +36 -24
- package/dist/api/{rfqMarketPlaceSellersApi.d.ts → validatorMarketplaceSellersApi.d.ts} +28 -26
- package/dist/api/{rfqMarketPlaceSellersApi.js → validatorMarketplaceSellersApi.js} +64 -57
- package/dist/api/{rfqMarketPlaceWebhooksApi.d.ts → validatorMarketplaceWebhooksApi.d.ts} +2 -2
- package/dist/api/{rfqMarketPlaceWebhooksApi.js → validatorMarketplaceWebhooksApi.js} +11 -11
- package/dist/api/validatorsApi.d.ts +56 -0
- package/dist/api/validatorsApi.js +148 -0
- package/dist/model/{createRFQDocumentForSellerRequest.d.ts → createRFQDocumentRequest.d.ts} +1 -1
- package/dist/model/{createRFQDocumentForSellerRequest.js → createRFQDocumentRequest.js} +6 -6
- package/dist/model/{registerRewardRecipientSettlementRequestInner.d.ts → exitEstimateBase.d.ts} +3 -3
- package/dist/model/exitEstimateBase.js +33 -0
- package/dist/model/{exitEstimate.d.ts → exitEstimateSeller.d.ts} +2 -2
- package/dist/model/{exitEstimate.js → exitEstimateSeller.js} +10 -10
- package/dist/model/models.d.ts +17 -11
- package/dist/model/models.js +51 -33
- package/dist/model/{getRewardsStatistics200ResponseInner.d.ts → portfolioEntity.d.ts} +7 -6
- package/dist/model/portfolioEntity.js +38 -0
- package/dist/model/rFQDocumentBase.d.ts +6 -3
- package/dist/model/rFQDocumentBase.js +8 -8
- package/dist/model/rFQDocumentBuyer.d.ts +7 -4
- package/dist/model/rFQDocumentBuyer.js +8 -8
- package/dist/model/{rFQDocumentBaseValidatorsInner.d.ts → rFQDocumentBuyerAllOfValidators.d.ts} +3 -3
- package/dist/model/{rFQDocumentBaseValidatorsInner.js → rFQDocumentBuyerAllOfValidators.js} +9 -9
- package/dist/model/rFQDocumentBuyerStatusFilterEnum.d.ts +19 -0
- package/dist/model/rFQDocumentBuyerStatusFilterEnum.js +23 -0
- package/dist/model/rFQDocumentSeller.d.ts +8 -4
- package/dist/model/rFQDocumentSeller.js +18 -13
- package/dist/model/rFQDocumentSellerAllOfValidators.d.ts +28 -0
- package/dist/model/rFQDocumentSellerAllOfValidators.js +38 -0
- package/dist/model/rFQDocumentSellerStatusFilterEnum.d.ts +20 -0
- package/dist/model/rFQDocumentSellerStatusFilterEnum.js +24 -0
- package/dist/model/rFQDocumentStatusEnum.d.ts +17 -0
- package/dist/model/rFQDocumentStatusEnum.js +21 -0
- package/dist/model/{acceptBidForRFQDocumentRequest.d.ts → rejectQuoteForRFQDocumentRequest.d.ts} +1 -1
- package/dist/model/{acceptBidForRFQDocumentRequest.js → rejectQuoteForRFQDocumentRequest.js} +6 -6
- package/dist/model/settlementStepEscrowPayment.d.ts +1 -0
- package/dist/model/settlementStepEscrowPayment.js +5 -0
- package/dist/model/settlementStepEscrowReleased.d.ts +2 -0
- package/dist/model/settlementStepEscrowReleased.js +10 -0
- package/dist/model/{settlementStepRewardRecipientSettlementInner.d.ts → settlementStepWithdrawalRecipientSettlement.d.ts} +1 -2
- package/dist/model/{settlementStepRewardRecipientSettlementInner.js → settlementStepWithdrawalRecipientSettlement.js} +6 -11
- package/dist/model/settlementSteps.d.ts +2 -2
- package/dist/model/settlementSteps.js +3 -3
- package/dist/model/stakeStep.d.ts +1 -1
- package/dist/model/stepStatus.d.ts +1 -1
- package/dist/model/stepStatus.js +1 -1
- package/dist/model/submitQuoteForRFQDocumentRequest.d.ts +25 -0
- package/dist/model/submitQuoteForRFQDocumentRequest.js +28 -0
- package/dist/model/tokenEnum.d.ts +1 -3
- package/dist/model/tokenEnum.js +1 -3
- package/dist/model/unstakeStep.d.ts +1 -1
- package/dist/model/unstakeStepType.d.ts +1 -1
- package/dist/model/unstakeStepType.js +1 -1
- package/dist/model/validatorContractTypeEnum.d.ts +15 -0
- package/dist/model/validatorContractTypeEnum.js +19 -0
- package/dist/model/validatorInfo.d.ts +6 -1
- package/dist/model/validatorInfo.js +17 -2
- package/dist/model/{portfolioTableRow.d.ts → validatorInfoValidatorType.d.ts} +6 -10
- package/dist/model/validatorInfoValidatorType.js +33 -0
- package/dist/model/validatorInfoValidatorTypeContract.d.ts +29 -0
- package/dist/model/validatorInfoValidatorTypeContract.js +33 -0
- package/dist/model/validatorKeyHolderEnum.d.ts +15 -0
- package/dist/model/validatorKeyHolderEnum.js +19 -0
- package/dist/model/webhookPayloadRFQAvailable.d.ts +2 -2
- package/dist/model/webhookPayloadRFQAvailable.js +1 -1
- package/dist/model/webhookPayloadRFQEscrowReleasedDetails.d.ts +1 -0
- package/dist/model/webhookPayloadRFQEscrowReleasedDetails.js +5 -0
- package/dist/model/webhookPayloadRFQValidatorWithdrawalChange.d.ts +2 -2
- package/dist/model/webhookPayloadRFQValidatorWithdrawalChange.js +1 -1
- package/dist/model/{webhookPayloadRFQValidatorWithdrawalChangeDetailsInner.d.ts → webhookPayloadRFQValidatorWithdrawalChangeDetails.d.ts} +1 -2
- package/dist/model/{webhookPayloadRFQValidatorWithdrawalChangeDetailsInner.js → webhookPayloadRFQValidatorWithdrawalChangeDetails.js} +6 -11
- package/dist/model/withdrawalStep.d.ts +1 -1
- package/dist/model/withdrawalStepType.d.ts +1 -1
- package/dist/model/withdrawalStepType.js +1 -1
- package/model/{createRFQDocumentForSellerRequest.ts → createRFQDocumentRequest.ts} +2 -2
- package/model/exitEstimateBase.ts +37 -0
- package/model/{exitEstimate.ts → exitEstimateSeller.ts} +7 -7
- package/model/models.ts +51 -33
- package/model/portfolioEntity.ts +46 -0
- package/model/rFQDocumentBase.ts +14 -11
- package/model/rFQDocumentBuyer.ts +15 -12
- package/model/{rFQDocumentBaseValidatorsInner.ts → rFQDocumentBuyerAllOfValidators.ts} +7 -7
- package/model/rFQDocumentBuyerStatusFilterEnum.ts +22 -0
- package/model/rFQDocumentSeller.ts +26 -17
- package/model/{registerRewardRecipientSettlementRequestInner.ts → rFQDocumentSellerAllOfValidators.ts} +15 -8
- package/model/rFQDocumentSellerStatusFilterEnum.ts +23 -0
- package/model/rFQDocumentStatusEnum.ts +20 -0
- package/model/{acceptBidForRFQDocumentRequest.ts → rejectQuoteForRFQDocumentRequest.ts} +2 -2
- package/model/settlementStepEscrowPayment.ts +6 -0
- package/model/settlementStepEscrowReleased.ts +12 -0
- package/model/{settlementStepRewardRecipientSettlementInner.ts → settlementStepWithdrawalRecipientSettlement.ts} +2 -8
- package/model/settlementSteps.ts +5 -5
- package/model/stakeStep.ts +1 -1
- package/model/stepStatus.ts +1 -1
- package/model/{rFQMarketPlaceMetadata.ts → submitQuoteForRFQDocumentRequest.ts} +5 -17
- package/model/tokenEnum.ts +1 -3
- package/model/unstakeStep.ts +1 -1
- package/model/unstakeStepType.ts +1 -1
- package/model/validatorContractTypeEnum.ts +18 -0
- package/model/validatorInfo.ts +23 -3
- package/model/validatorInfoValidatorType.ts +41 -0
- package/model/validatorInfoValidatorTypeContract.ts +40 -0
- package/model/validatorKeyHolderEnum.ts +18 -0
- package/model/webhookPayloadRFQAvailable.ts +3 -3
- package/model/webhookPayloadRFQEscrowReleasedDetails.ts +6 -0
- package/model/webhookPayloadRFQValidatorWithdrawalChange.ts +3 -3
- package/model/{webhookPayloadRFQValidatorWithdrawalChangeDetailsInner.ts → webhookPayloadRFQValidatorWithdrawalChangeDetails.ts} +2 -8
- package/model/withdrawalStep.ts +1 -1
- package/model/withdrawalStepType.ts +1 -1
- package/package.json +1 -1
- package/api/stakingPartnerValidatorKeysApi.ts +0 -292
- package/dist/api/stakingPartnerValidatorKeysApi.js +0 -265
- package/dist/model/getRewardsStatistics200ResponseInner.js +0 -48
- package/dist/model/getValidatorKeys200ResponseInner.d.ts +0 -40
- package/dist/model/getValidatorKeys200ResponseInner.js +0 -43
- package/dist/model/portfolioTableRow.js +0 -58
- package/dist/model/rFQMarketPlaceMetadata.d.ts +0 -32
- package/dist/model/rFQMarketPlaceMetadata.js +0 -33
- package/dist/model/registerRewardRecipientSettlementRequestInner.js +0 -33
- package/model/getRewardsStatistics200ResponseInner.ts +0 -55
- package/model/getValidatorKeys200ResponseInner.ts +0 -61
- package/model/portfolioTableRow.ts +0 -70
package/model/rFQDocumentBase.ts
CHANGED
|
@@ -12,16 +12,17 @@
|
|
|
12
12
|
|
|
13
13
|
import { RequestFile } from './models';
|
|
14
14
|
import { RFQDocumentBaseUniqueEscrowVault } from './rFQDocumentBaseUniqueEscrowVault';
|
|
15
|
-
import {
|
|
15
|
+
import { RFQDocumentStatusEnum } from './rFQDocumentStatusEnum';
|
|
16
|
+
import { SettlementSteps } from './settlementSteps';
|
|
16
17
|
|
|
17
18
|
export class RFQDocumentBase {
|
|
18
19
|
'id': string;
|
|
19
|
-
'
|
|
20
|
+
'status': RFQDocumentStatusEnum;
|
|
20
21
|
'totalBalance': number;
|
|
21
22
|
'paymentAddress': string;
|
|
22
|
-
'estimatedExitTransactionDeadline': Date;
|
|
23
23
|
'estimatedAllValidatorsExitedAt': Date;
|
|
24
24
|
'uniqueEscrowVault'?: RFQDocumentBaseUniqueEscrowVault;
|
|
25
|
+
'settlementSteps'?: SettlementSteps;
|
|
25
26
|
|
|
26
27
|
static discriminator: string | undefined = undefined;
|
|
27
28
|
|
|
@@ -32,9 +33,9 @@ export class RFQDocumentBase {
|
|
|
32
33
|
"type": "string"
|
|
33
34
|
},
|
|
34
35
|
{
|
|
35
|
-
"name": "
|
|
36
|
-
"baseName": "
|
|
37
|
-
"type": "
|
|
36
|
+
"name": "status",
|
|
37
|
+
"baseName": "status",
|
|
38
|
+
"type": "RFQDocumentStatusEnum"
|
|
38
39
|
},
|
|
39
40
|
{
|
|
40
41
|
"name": "totalBalance",
|
|
@@ -46,11 +47,6 @@ export class RFQDocumentBase {
|
|
|
46
47
|
"baseName": "payment_address",
|
|
47
48
|
"type": "string"
|
|
48
49
|
},
|
|
49
|
-
{
|
|
50
|
-
"name": "estimatedExitTransactionDeadline",
|
|
51
|
-
"baseName": "estimated_exit_transaction_deadline",
|
|
52
|
-
"type": "Date"
|
|
53
|
-
},
|
|
54
50
|
{
|
|
55
51
|
"name": "estimatedAllValidatorsExitedAt",
|
|
56
52
|
"baseName": "estimated_all_validators_exited_at",
|
|
@@ -60,6 +56,11 @@ export class RFQDocumentBase {
|
|
|
60
56
|
"name": "uniqueEscrowVault",
|
|
61
57
|
"baseName": "unique_escrow_vault",
|
|
62
58
|
"type": "RFQDocumentBaseUniqueEscrowVault"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "settlementSteps",
|
|
62
|
+
"baseName": "settlement_steps",
|
|
63
|
+
"type": "SettlementSteps"
|
|
63
64
|
} ];
|
|
64
65
|
|
|
65
66
|
static getAttributeTypeMap() {
|
|
@@ -67,3 +68,5 @@ export class RFQDocumentBase {
|
|
|
67
68
|
}
|
|
68
69
|
}
|
|
69
70
|
|
|
71
|
+
export namespace RFQDocumentBase {
|
|
72
|
+
}
|
|
@@ -13,19 +13,20 @@
|
|
|
13
13
|
import { RequestFile } from './models';
|
|
14
14
|
import { Quote } from './quote';
|
|
15
15
|
import { RFQDocumentBaseUniqueEscrowVault } from './rFQDocumentBaseUniqueEscrowVault';
|
|
16
|
-
import {
|
|
16
|
+
import { RFQDocumentBuyerAllOfValidators } from './rFQDocumentBuyerAllOfValidators';
|
|
17
|
+
import { RFQDocumentStatusEnum } from './rFQDocumentStatusEnum';
|
|
17
18
|
import { SettlementSteps } from './settlementSteps';
|
|
18
19
|
|
|
19
20
|
export class RFQDocumentBuyer {
|
|
20
21
|
'id': string;
|
|
21
|
-
'
|
|
22
|
+
'status': RFQDocumentStatusEnum;
|
|
22
23
|
'totalBalance': number;
|
|
23
24
|
'paymentAddress': string;
|
|
24
|
-
'estimatedExitTransactionDeadline': Date;
|
|
25
25
|
'estimatedAllValidatorsExitedAt': Date;
|
|
26
26
|
'uniqueEscrowVault'?: RFQDocumentBaseUniqueEscrowVault;
|
|
27
27
|
'settlementSteps'?: SettlementSteps;
|
|
28
|
-
'
|
|
28
|
+
'validators': Array<RFQDocumentBuyerAllOfValidators>;
|
|
29
|
+
'quote'?: Quote;
|
|
29
30
|
|
|
30
31
|
static discriminator: string | undefined = undefined;
|
|
31
32
|
|
|
@@ -36,9 +37,9 @@ export class RFQDocumentBuyer {
|
|
|
36
37
|
"type": "string"
|
|
37
38
|
},
|
|
38
39
|
{
|
|
39
|
-
"name": "
|
|
40
|
-
"baseName": "
|
|
41
|
-
"type": "
|
|
40
|
+
"name": "status",
|
|
41
|
+
"baseName": "status",
|
|
42
|
+
"type": "RFQDocumentStatusEnum"
|
|
42
43
|
},
|
|
43
44
|
{
|
|
44
45
|
"name": "totalBalance",
|
|
@@ -50,11 +51,6 @@ export class RFQDocumentBuyer {
|
|
|
50
51
|
"baseName": "payment_address",
|
|
51
52
|
"type": "string"
|
|
52
53
|
},
|
|
53
|
-
{
|
|
54
|
-
"name": "estimatedExitTransactionDeadline",
|
|
55
|
-
"baseName": "estimated_exit_transaction_deadline",
|
|
56
|
-
"type": "Date"
|
|
57
|
-
},
|
|
58
54
|
{
|
|
59
55
|
"name": "estimatedAllValidatorsExitedAt",
|
|
60
56
|
"baseName": "estimated_all_validators_exited_at",
|
|
@@ -70,6 +66,11 @@ export class RFQDocumentBuyer {
|
|
|
70
66
|
"baseName": "settlement_steps",
|
|
71
67
|
"type": "SettlementSteps"
|
|
72
68
|
},
|
|
69
|
+
{
|
|
70
|
+
"name": "validators",
|
|
71
|
+
"baseName": "validators",
|
|
72
|
+
"type": "Array<RFQDocumentBuyerAllOfValidators>"
|
|
73
|
+
},
|
|
73
74
|
{
|
|
74
75
|
"name": "quote",
|
|
75
76
|
"baseName": "quote",
|
|
@@ -81,3 +82,5 @@ export class RFQDocumentBuyer {
|
|
|
81
82
|
}
|
|
82
83
|
}
|
|
83
84
|
|
|
85
|
+
export namespace RFQDocumentBuyer {
|
|
86
|
+
}
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { RequestFile } from './models';
|
|
14
|
-
import {
|
|
14
|
+
import { ExitEstimateBase } from './exitEstimateBase';
|
|
15
15
|
|
|
16
|
-
export class
|
|
16
|
+
export class RFQDocumentBuyerAllOfValidators {
|
|
17
17
|
'validatorIndex': number;
|
|
18
18
|
'balance': number;
|
|
19
|
-
'
|
|
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": "
|
|
36
|
-
"baseName": "
|
|
37
|
-
"type": "
|
|
35
|
+
"name": "exitEstimate",
|
|
36
|
+
"baseName": "exit_estimate",
|
|
37
|
+
"type": "ExitEstimateBase"
|
|
38
38
|
} ];
|
|
39
39
|
|
|
40
40
|
static getAttributeTypeMap() {
|
|
41
|
-
return
|
|
41
|
+
return RFQDocumentBuyerAllOfValidators.attributeTypeMap;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -0,0 +1,22 @@
|
|
|
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 RFQDocumentBuyerStatusFilterEnum {
|
|
16
|
+
Open = <any> 'open',
|
|
17
|
+
Submitted = <any> 'submitted',
|
|
18
|
+
Accepted = <any> 'accepted',
|
|
19
|
+
Outbid = <any> 'outbid',
|
|
20
|
+
Rejected = <any> 'rejected',
|
|
21
|
+
Expired = <any> 'expired'
|
|
22
|
+
}
|
|
@@ -13,19 +13,21 @@
|
|
|
13
13
|
import { RequestFile } from './models';
|
|
14
14
|
import { Quote } from './quote';
|
|
15
15
|
import { RFQDocumentBaseUniqueEscrowVault } from './rFQDocumentBaseUniqueEscrowVault';
|
|
16
|
-
import {
|
|
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
|
-
'
|
|
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>;
|
|
28
27
|
'settlementSteps'?: SettlementSteps;
|
|
28
|
+
'validators': Array<RFQDocumentSellerAllOfValidators>;
|
|
29
|
+
'estimatedExitTransactionDeadline': Date;
|
|
30
|
+
'bestQuote'?: Quote;
|
|
29
31
|
|
|
30
32
|
static discriminator: string | undefined = undefined;
|
|
31
33
|
|
|
@@ -36,9 +38,9 @@ export class RFQDocumentSeller {
|
|
|
36
38
|
"type": "string"
|
|
37
39
|
},
|
|
38
40
|
{
|
|
39
|
-
"name": "
|
|
40
|
-
"baseName": "
|
|
41
|
-
"type": "
|
|
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",
|
|
@@ -65,15 +62,25 @@ export class RFQDocumentSeller {
|
|
|
65
62
|
"baseName": "unique_escrow_vault",
|
|
66
63
|
"type": "RFQDocumentBaseUniqueEscrowVault"
|
|
67
64
|
},
|
|
68
|
-
{
|
|
69
|
-
"name": "quotes",
|
|
70
|
-
"baseName": "quotes",
|
|
71
|
-
"type": "Array<Quote>"
|
|
72
|
-
},
|
|
73
65
|
{
|
|
74
66
|
"name": "settlementSteps",
|
|
75
67
|
"baseName": "settlement_steps",
|
|
76
68
|
"type": "SettlementSteps"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "validators",
|
|
72
|
+
"baseName": "validators",
|
|
73
|
+
"type": "Array<RFQDocumentSellerAllOfValidators>"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "estimatedExitTransactionDeadline",
|
|
77
|
+
"baseName": "estimated_exit_transaction_deadline",
|
|
78
|
+
"type": "Date"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "bestQuote",
|
|
82
|
+
"baseName": "best_quote",
|
|
83
|
+
"type": "Quote"
|
|
77
84
|
} ];
|
|
78
85
|
|
|
79
86
|
static getAttributeTypeMap() {
|
|
@@ -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
|
|
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
|
|
41
|
+
return RFQDocumentSellerAllOfValidators.attributeTypeMap;
|
|
35
42
|
}
|
|
36
43
|
}
|
|
37
44
|
|
|
@@ -0,0 +1,23 @@
|
|
|
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 RFQDocumentSellerStatusFilterEnum {
|
|
16
|
+
Active = <any> 'active',
|
|
17
|
+
Accepted = <any> 'accepted',
|
|
18
|
+
EscrowPaid = <any> 'escrow_paid',
|
|
19
|
+
RewardRecipientSettled = <any> 'reward_recipient_settled',
|
|
20
|
+
EscrowReleased = <any> 'escrow_released',
|
|
21
|
+
Rejected = <any> 'rejected',
|
|
22
|
+
Expired = <any> 'expired'
|
|
23
|
+
}
|
|
@@ -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
|
|
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
|
|
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,10 +12,9 @@
|
|
|
12
12
|
|
|
13
13
|
import { RequestFile } from './models';
|
|
14
14
|
|
|
15
|
-
export class
|
|
15
|
+
export class SettlementStepWithdrawalRecipientSettlement {
|
|
16
16
|
'timestamp': string;
|
|
17
17
|
'transactionHash': string;
|
|
18
|
-
'validatorIndex': number;
|
|
19
18
|
|
|
20
19
|
static discriminator: string | undefined = undefined;
|
|
21
20
|
|
|
@@ -29,15 +28,10 @@ export class SettlementStepRewardRecipientSettlementInner {
|
|
|
29
28
|
"name": "transactionHash",
|
|
30
29
|
"baseName": "transaction_hash",
|
|
31
30
|
"type": "string"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"name": "validatorIndex",
|
|
35
|
-
"baseName": "validator_index",
|
|
36
|
-
"type": "number"
|
|
37
31
|
} ];
|
|
38
32
|
|
|
39
33
|
static getAttributeTypeMap() {
|
|
40
|
-
return
|
|
34
|
+
return SettlementStepWithdrawalRecipientSettlement.attributeTypeMap;
|
|
41
35
|
}
|
|
42
36
|
}
|
|
43
37
|
|
package/model/settlementSteps.ts
CHANGED
|
@@ -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 {
|
|
17
|
+
import { SettlementStepWithdrawalRecipientSettlement } from './settlementStepWithdrawalRecipientSettlement';
|
|
18
18
|
|
|
19
19
|
export class SettlementSteps {
|
|
20
20
|
'acceptedQuote'?: SettlementStepAcceptedQuote;
|
|
21
21
|
'escrowPayment'?: SettlementStepEscrowPayment;
|
|
22
|
-
'
|
|
22
|
+
'withdrawalRecipientSettlement'?: SettlementStepWithdrawalRecipientSettlement;
|
|
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": "
|
|
40
|
-
"baseName": "
|
|
41
|
-
"type": "
|
|
39
|
+
"name": "withdrawalRecipientSettlement",
|
|
40
|
+
"baseName": "withdrawal_recipient_settlement",
|
|
41
|
+
"type": "SettlementStepWithdrawalRecipientSettlement"
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
"name": "escrowReleased",
|
package/model/stakeStep.ts
CHANGED
package/model/stepStatus.ts
CHANGED
|
@@ -12,32 +12,20 @@
|
|
|
12
12
|
|
|
13
13
|
import { RequestFile } from './models';
|
|
14
14
|
|
|
15
|
-
export class
|
|
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": "
|
|
30
|
-
"baseName": "
|
|
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
|
|
28
|
+
return SubmitQuoteForRFQDocumentRequest.attributeTypeMap;
|
|
41
29
|
}
|
|
42
30
|
}
|
|
43
31
|
|
package/model/tokenEnum.ts
CHANGED
|
@@ -13,18 +13,16 @@
|
|
|
13
13
|
import { RequestFile } from './models';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
* Supported
|
|
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
|
}
|
package/model/unstakeStep.ts
CHANGED
package/model/unstakeStepType.ts
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
import { RequestFile } from './models';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
* Specifies the
|
|
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
|
+
}
|
package/model/validatorInfo.ts
CHANGED
|
@@ -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
|
-
'
|
|
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": "
|
|
46
|
-
"baseName": "
|
|
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() {
|