@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.
- package/.openapi-generator/FILES +23 -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} +31 -21
- package/api/{rfqMarketPlaceSellersApi.ts → validatorMarketplaceSellersApi.ts} +68 -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} +11 -10
- package/dist/api/{rfqMarketPlaceBuyersApi.js → validatorMarketplaceBuyersApi.js} +32 -24
- package/dist/api/{rfqMarketPlaceSellersApi.d.ts → validatorMarketplaceSellersApi.d.ts} +27 -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 +15 -11
- package/dist/model/models.js +45 -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 +4 -3
- package/dist/model/rFQDocumentBase.js +3 -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/rFQDocumentSeller.d.ts +8 -4
- package/dist/model/rFQDocumentSeller.js +16 -11
- package/dist/model/rFQDocumentSellerAllOfValidators.d.ts +28 -0
- package/dist/model/rFQDocumentSellerAllOfValidators.js +38 -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 → settlementStepWithdrawalRecipientSettlementInner.d.ts} +1 -1
- package/dist/model/{settlementStepRewardRecipientSettlementInner.js → settlementStepWithdrawalRecipientSettlementInner.js} +6 -6
- 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 +45 -33
- package/model/portfolioEntity.ts +46 -0
- package/model/rFQDocumentBase.ts +7 -11
- package/model/rFQDocumentBuyer.ts +15 -12
- package/model/{rFQDocumentBaseValidatorsInner.ts → rFQDocumentBuyerAllOfValidators.ts} +7 -7
- package/model/rFQDocumentSeller.ts +24 -15
- package/model/{registerRewardRecipientSettlementRequestInner.ts → rFQDocumentSellerAllOfValidators.ts} +15 -8
- 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 → settlementStepWithdrawalRecipientSettlementInner.ts} +2 -2
- 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
|
@@ -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
|
|
|
@@ -13,18 +13,20 @@
|
|
|
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
|
-
'
|
|
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": "
|
|
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",
|
|
@@ -66,9 +63,19 @@ export class RFQDocumentSeller {
|
|
|
66
63
|
"type": "RFQDocumentBaseUniqueEscrowVault"
|
|
67
64
|
},
|
|
68
65
|
{
|
|
69
|
-
"name": "
|
|
70
|
-
"baseName": "
|
|
71
|
-
"type": "Array<
|
|
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
|
|
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,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,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { RequestFile } from './models';
|
|
14
14
|
|
|
15
|
-
export class
|
|
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
|
|
40
|
+
return SettlementStepWithdrawalRecipientSettlementInner.attributeTypeMap;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
|
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 { SettlementStepWithdrawalRecipientSettlementInner } from './settlementStepWithdrawalRecipientSettlementInner';
|
|
18
18
|
|
|
19
19
|
export class SettlementSteps {
|
|
20
20
|
'acceptedQuote'?: SettlementStepAcceptedQuote;
|
|
21
21
|
'escrowPayment'?: SettlementStepEscrowPayment;
|
|
22
|
-
'
|
|
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": "
|
|
40
|
-
"baseName": "
|
|
41
|
-
"type": "Array<
|
|
39
|
+
"name": "withdrawalRecipientSettlement",
|
|
40
|
+
"baseName": "withdrawal_recipient_settlement",
|
|
41
|
+
"type": "Array<SettlementStepWithdrawalRecipientSettlementInner>"
|
|
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() {
|
|
@@ -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 {
|
|
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'?:
|
|
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": "
|
|
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 {
|
|
15
|
+
import { WebhookPayloadRFQValidatorWithdrawalChangeDetails } from './webhookPayloadRFQValidatorWithdrawalChangeDetails';
|
|
16
16
|
|
|
17
17
|
export class WebhookPayloadRFQValidatorWithdrawalChange {
|
|
18
18
|
'documentId'?: string;
|
|
19
19
|
'event'?: RFQWebhookEventType;
|
|
20
|
-
'details'?:
|
|
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": "
|
|
38
|
+
"type": "WebhookPayloadRFQValidatorWithdrawalChangeDetails"
|
|
39
39
|
} ];
|
|
40
40
|
|
|
41
41
|
static getAttributeTypeMap() {
|