@northstake/northstakeapi 1.0.39 → 1.0.41
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 +5 -2
- package/api/lidoReadApi.ts +92 -3
- package/api/lidoStakingVaultsApi.ts +81 -0
- package/api/lidoWriteApi.ts +676 -9
- package/api/validatorsApi.ts +0 -114
- package/api.ts +5 -2
- package/dist/api/lidoReadApi.d.ts +17 -3
- package/dist/api/lidoReadApi.js +72 -3
- package/dist/api/lidoStakingVaultsApi.d.ts +13 -0
- package/dist/api/lidoStakingVaultsApi.js +61 -0
- package/dist/api/lidoWriteApi.d.ts +131 -8
- package/dist/api/lidoWriteApi.js +539 -8
- package/dist/api/validatorsApi.d.ts +0 -27
- package/dist/api/validatorsApi.js +0 -85
- package/dist/api.d.ts +5 -2
- package/dist/api.js +5 -2
- package/dist/model/abandonDashboardRequest.d.ts +32 -0
- package/dist/model/abandonDashboardRequest.js +33 -0
- package/dist/model/{getWithdrawalsResponse.d.ts → changeTier.d.ts} +7 -9
- package/dist/model/{getWithdrawalsResponse.js → changeTier.js} +15 -20
- package/dist/model/{validatorWithdrawal.d.ts → getOperatorGroup200Response.d.ts} +15 -23
- package/dist/model/getOperatorGroup200Response.js +43 -0
- package/dist/model/getStETHPerWstETHRate200Response.d.ts +2 -2
- package/dist/model/getStETHPerWstETHRate200Response.js +1 -1
- package/dist/model/lidoContractsStakingVault.d.ts +8 -0
- package/dist/model/lidoContractsStakingVault.js +10 -0
- package/dist/model/lidoStakingContractsWithDataVaultData.d.ts +16 -2
- package/dist/model/lidoStakingContractsWithDataVaultData.js +13 -3
- package/dist/model/models.d.ts +5 -2
- package/dist/model/models.js +16 -8
- package/dist/model/supportedValidatorProvidersResponse.d.ts +29 -0
- package/dist/model/supportedValidatorProvidersResponse.js +31 -0
- package/dist/model/updateShareLimit.d.ts +32 -0
- package/dist/model/updateShareLimit.js +33 -0
- package/dist/model/validatorProvider.d.ts +1 -1
- package/model/abandonDashboardRequest.ts +43 -0
- package/model/{getWithdrawalsResponse.ts → changeTier.ts} +17 -24
- package/model/getOperatorGroup200Response.ts +61 -0
- package/model/getStETHPerWstETHRate200Response.ts +3 -3
- package/model/lidoContractsStakingVault.ts +18 -0
- package/model/lidoStakingContractsWithDataVaultData.ts +32 -5
- package/model/models.ts +26 -12
- package/model/supportedValidatorProvidersResponse.ts +35 -0
- package/model/updateShareLimit.ts +43 -0
- package/model/validatorProvider.ts +2 -1
- package/package.json +2 -2
- package/dist/model/validatorWithdrawal.js +0 -78
- package/model/validatorWithdrawal.ts +0 -107
package/model/models.ts
CHANGED
|
@@ -2,6 +2,7 @@ import localVarRequest from 'request';
|
|
|
2
2
|
import * as jwt from 'jsonwebtoken';
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
export * from './abandonDashboardRequest';
|
|
5
6
|
export * from './acceptedQuote';
|
|
6
7
|
export * from './accountEntity';
|
|
7
8
|
export * from './addLinkedWalletRequest';
|
|
@@ -12,6 +13,7 @@ export * from './asset';
|
|
|
12
13
|
export * from './burnShares';
|
|
13
14
|
export * from './burnStETH';
|
|
14
15
|
export * from './burnWstETH';
|
|
16
|
+
export * from './changeTier';
|
|
15
17
|
export * from './collectERC20FromVault';
|
|
16
18
|
export * from './consolidateValidators';
|
|
17
19
|
export * from './consolidateValidatorsErrorResponse';
|
|
@@ -41,9 +43,9 @@ export * from './getLazyOracleReportCallData200ResponseDestructuredCalldata';
|
|
|
41
43
|
export * from './getLazyOracleReportData200Response';
|
|
42
44
|
export * from './getLazyOracleReportData200ResponseReportData';
|
|
43
45
|
export * from './getLidoTransactions200Response';
|
|
46
|
+
export * from './getOperatorGroup200Response';
|
|
44
47
|
export * from './getQuarantineInfo200Response';
|
|
45
48
|
export * from './getStETHPerWstETHRate200Response';
|
|
46
|
-
export * from './getWithdrawalsResponse';
|
|
47
49
|
export * from './grantRole';
|
|
48
50
|
export * from './internalTransaction';
|
|
49
51
|
export * from './inviteMemberRequest';
|
|
@@ -90,12 +92,14 @@ export * from './stakeEthResponse';
|
|
|
90
92
|
export * from './stakeEthResponseDestructuredCallDataInner';
|
|
91
93
|
export * from './stakingRequest';
|
|
92
94
|
export * from './stakingRequestStatus';
|
|
95
|
+
export * from './supportedValidatorProvidersResponse';
|
|
93
96
|
export * from './transaction';
|
|
94
97
|
export * from './triggerValidatorWithdrawals';
|
|
95
98
|
export * from './unwrapWstETH';
|
|
96
99
|
export * from './updateLinkedWalletNameRequest';
|
|
97
100
|
export * from './updateMemberRoleRequest';
|
|
98
101
|
export * from './updateOrganizationNameRequest';
|
|
102
|
+
export * from './updateShareLimit';
|
|
99
103
|
export * from './validateConsolidationRequestsResponse';
|
|
100
104
|
export * from './validateConsolidationRequestsResponseConsolidationDetailsInner';
|
|
101
105
|
export * from './validatorDailyReward';
|
|
@@ -107,7 +111,6 @@ export * from './validatorRewardsDaily';
|
|
|
107
111
|
export * from './validatorRewardsDailyResponse';
|
|
108
112
|
export * from './validatorRewardsRaw';
|
|
109
113
|
export * from './validatorType';
|
|
110
|
-
export * from './validatorWithdrawal';
|
|
111
114
|
export * from './vaultCreationStartResponse';
|
|
112
115
|
export * from './wallet';
|
|
113
116
|
export * from './webHookLookupAnswer';
|
|
@@ -149,6 +152,9 @@ export interface RequestDetailedFile {
|
|
|
149
152
|
export type RequestFile = string | Buffer | fs.ReadStream | RequestDetailedFile;
|
|
150
153
|
|
|
151
154
|
|
|
155
|
+
import { AbandonDashboardRequest } from './abandonDashboardRequest';
|
|
156
|
+
|
|
157
|
+
|
|
152
158
|
import { AcceptedQuote } from './acceptedQuote';
|
|
153
159
|
|
|
154
160
|
|
|
@@ -179,6 +185,9 @@ import { BurnStETH } from './burnStETH';
|
|
|
179
185
|
import { BurnWstETH } from './burnWstETH';
|
|
180
186
|
|
|
181
187
|
|
|
188
|
+
import { ChangeTier } from './changeTier';
|
|
189
|
+
|
|
190
|
+
|
|
182
191
|
import { CollectERC20FromVault } from './collectERC20FromVault';
|
|
183
192
|
|
|
184
193
|
|
|
@@ -266,13 +275,13 @@ import { GetLazyOracleReportData200ResponseReportData } from './getLazyOracleRep
|
|
|
266
275
|
import { GetLidoTransactions200Response } from './getLidoTransactions200Response';
|
|
267
276
|
|
|
268
277
|
|
|
269
|
-
import {
|
|
278
|
+
import { GetOperatorGroup200Response } from './getOperatorGroup200Response';
|
|
270
279
|
|
|
271
280
|
|
|
272
|
-
import {
|
|
281
|
+
import { GetQuarantineInfo200Response } from './getQuarantineInfo200Response';
|
|
273
282
|
|
|
274
283
|
|
|
275
|
-
import {
|
|
284
|
+
import { GetStETHPerWstETHRate200Response } from './getStETHPerWstETHRate200Response';
|
|
276
285
|
|
|
277
286
|
|
|
278
287
|
import { GrantRole } from './grantRole';
|
|
@@ -413,6 +422,9 @@ import { StakingRequest } from './stakingRequest';
|
|
|
413
422
|
import { StakingRequestStatus } from './stakingRequestStatus';
|
|
414
423
|
|
|
415
424
|
|
|
425
|
+
import { SupportedValidatorProvidersResponse } from './supportedValidatorProvidersResponse';
|
|
426
|
+
|
|
427
|
+
|
|
416
428
|
import { Transaction } from './transaction';
|
|
417
429
|
|
|
418
430
|
|
|
@@ -431,6 +443,9 @@ import { UpdateMemberRoleRequest } from './updateMemberRoleRequest';
|
|
|
431
443
|
import { UpdateOrganizationNameRequest } from './updateOrganizationNameRequest';
|
|
432
444
|
|
|
433
445
|
|
|
446
|
+
import { UpdateShareLimit } from './updateShareLimit';
|
|
447
|
+
|
|
448
|
+
|
|
434
449
|
import { ValidateConsolidationRequestsResponse } from './validateConsolidationRequestsResponse';
|
|
435
450
|
|
|
436
451
|
|
|
@@ -464,9 +479,6 @@ import { ValidatorRewardsRaw } from './validatorRewardsRaw';
|
|
|
464
479
|
import { ValidatorType } from './validatorType';
|
|
465
480
|
|
|
466
481
|
|
|
467
|
-
import { ValidatorWithdrawal } from './validatorWithdrawal';
|
|
468
|
-
|
|
469
|
-
|
|
470
482
|
import { VaultCreationStartResponse } from './vaultCreationStartResponse';
|
|
471
483
|
|
|
472
484
|
|
|
@@ -565,6 +577,7 @@ let enumsMap: {[index: string]: any} = {
|
|
|
565
577
|
"ApiKey.roles": ApiKey,
|
|
566
578
|
"GenerateApiKeyRequest.keyRights": GenerateApiKeyRequest,
|
|
567
579
|
"InviteMemberRequest.role": InviteMemberRequest,
|
|
580
|
+
"LidoStakingContractsWithDataVaultData.vaultHubConnectionStatus": LidoStakingContractsWithDataVaultData,
|
|
568
581
|
"OrganizationMember.role": OrganizationMember,
|
|
569
582
|
"RFQDocumentFacilitator.status": RFQDocumentFacilitator,
|
|
570
583
|
"UpdateMemberRoleRequest.role": UpdateMemberRoleRequest,
|
|
@@ -572,10 +585,9 @@ let enumsMap: {[index: string]: any} = {
|
|
|
572
585
|
"ValidatorInfo.status": ValidatorInfo,
|
|
573
586
|
"ValidatorRewardRaw.rewardType": ValidatorRewardRaw,
|
|
574
587
|
"ValidatorRewardsDaily.rewardType": ValidatorRewardsDaily,
|
|
575
|
-
"ValidatorWithdrawal.asset": ValidatorWithdrawal,
|
|
576
|
-
"ValidatorWithdrawal.withdrawalType": ValidatorWithdrawal,
|
|
577
588
|
};
|
|
578
589
|
let typeMap: {[index: string]: any} = {
|
|
590
|
+
"AbandonDashboardRequest": AbandonDashboardRequest,
|
|
579
591
|
"AcceptedQuote": AcceptedQuote,
|
|
580
592
|
"AccountEntity": AccountEntity,
|
|
581
593
|
"AddLinkedWalletRequest": AddLinkedWalletRequest,
|
|
@@ -585,6 +597,7 @@ let typeMap: {[index: string]: any} = {
|
|
|
585
597
|
"BurnShares": BurnShares,
|
|
586
598
|
"BurnStETH": BurnStETH,
|
|
587
599
|
"BurnWstETH": BurnWstETH,
|
|
600
|
+
"ChangeTier": ChangeTier,
|
|
588
601
|
"CollectERC20FromVault": CollectERC20FromVault,
|
|
589
602
|
"ConsolidateValidators": ConsolidateValidators,
|
|
590
603
|
"ConsolidateValidatorsErrorResponse": ConsolidateValidatorsErrorResponse,
|
|
@@ -614,9 +627,9 @@ let typeMap: {[index: string]: any} = {
|
|
|
614
627
|
"GetLazyOracleReportData200Response": GetLazyOracleReportData200Response,
|
|
615
628
|
"GetLazyOracleReportData200ResponseReportData": GetLazyOracleReportData200ResponseReportData,
|
|
616
629
|
"GetLidoTransactions200Response": GetLidoTransactions200Response,
|
|
630
|
+
"GetOperatorGroup200Response": GetOperatorGroup200Response,
|
|
617
631
|
"GetQuarantineInfo200Response": GetQuarantineInfo200Response,
|
|
618
632
|
"GetStETHPerWstETHRate200Response": GetStETHPerWstETHRate200Response,
|
|
619
|
-
"GetWithdrawalsResponse": GetWithdrawalsResponse,
|
|
620
633
|
"GrantRole": GrantRole,
|
|
621
634
|
"InternalTransaction": InternalTransaction,
|
|
622
635
|
"InviteMemberRequest": InviteMemberRequest,
|
|
@@ -657,12 +670,14 @@ let typeMap: {[index: string]: any} = {
|
|
|
657
670
|
"StakeEthResponse": StakeEthResponse,
|
|
658
671
|
"StakeEthResponseDestructuredCallDataInner": StakeEthResponseDestructuredCallDataInner,
|
|
659
672
|
"StakingRequest": StakingRequest,
|
|
673
|
+
"SupportedValidatorProvidersResponse": SupportedValidatorProvidersResponse,
|
|
660
674
|
"Transaction": Transaction,
|
|
661
675
|
"TriggerValidatorWithdrawals": TriggerValidatorWithdrawals,
|
|
662
676
|
"UnwrapWstETH": UnwrapWstETH,
|
|
663
677
|
"UpdateLinkedWalletNameRequest": UpdateLinkedWalletNameRequest,
|
|
664
678
|
"UpdateMemberRoleRequest": UpdateMemberRoleRequest,
|
|
665
679
|
"UpdateOrganizationNameRequest": UpdateOrganizationNameRequest,
|
|
680
|
+
"UpdateShareLimit": UpdateShareLimit,
|
|
666
681
|
"ValidateConsolidationRequestsResponse": ValidateConsolidationRequestsResponse,
|
|
667
682
|
"ValidateConsolidationRequestsResponseConsolidationDetailsInner": ValidateConsolidationRequestsResponseConsolidationDetailsInner,
|
|
668
683
|
"ValidatorDailyReward": ValidatorDailyReward,
|
|
@@ -671,7 +686,6 @@ let typeMap: {[index: string]: any} = {
|
|
|
671
686
|
"ValidatorRewardsDaily": ValidatorRewardsDaily,
|
|
672
687
|
"ValidatorRewardsDailyResponse": ValidatorRewardsDailyResponse,
|
|
673
688
|
"ValidatorRewardsRaw": ValidatorRewardsRaw,
|
|
674
|
-
"ValidatorWithdrawal": ValidatorWithdrawal,
|
|
675
689
|
"VaultCreationStartResponse": VaultCreationStartResponse,
|
|
676
690
|
"Wallet": Wallet,
|
|
677
691
|
"WebHookLookupAnswer": WebHookLookupAnswer,
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Northstake
|
|
3
|
+
* Northstake api Operation-level extensions used by the API: - x-roleRequired (array of strings): roles required to call the operation. - x-mfaApiScope (array of strings): MFA API scopes required when the user has MFA enrolled. - x-isProSvmFeature (boolean): when true, the operation is restricted to users whose Cosmos user document has is_pro_svm_user set to true.
|
|
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 { ValidatorProvider } from './validatorProvider';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* List of validator providers available for the current user when creating a vault
|
|
17
|
+
*/
|
|
18
|
+
export class SupportedValidatorProvidersResponse {
|
|
19
|
+
'providers': Array<ValidatorProvider>;
|
|
20
|
+
|
|
21
|
+
static discriminator: string | undefined = undefined;
|
|
22
|
+
|
|
23
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
24
|
+
{
|
|
25
|
+
"name": "providers",
|
|
26
|
+
"baseName": "providers",
|
|
27
|
+
"type": "Array<ValidatorProvider>"
|
|
28
|
+
} ];
|
|
29
|
+
|
|
30
|
+
static getAttributeTypeMap() {
|
|
31
|
+
return SupportedValidatorProvidersResponse.attributeTypeMap;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Northstake
|
|
3
|
+
* Northstake api Operation-level extensions used by the API: - x-roleRequired (array of strings): roles required to call the operation. - x-mfaApiScope (array of strings): MFA API scopes required when the user has MFA enrolled. - x-isProSvmFeature (boolean): when true, the operation is restricted to users whose Cosmos user document has is_pro_svm_user set to true.
|
|
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
|
+
|
|
14
|
+
export class UpdateShareLimit {
|
|
15
|
+
/**
|
|
16
|
+
* Requested share limit.
|
|
17
|
+
*/
|
|
18
|
+
'requestedShareLimit': string;
|
|
19
|
+
/**
|
|
20
|
+
* Optional Ethereum address to simulate the transaction from. If provided, the transaction will be simulated and any revert errors will be returned.
|
|
21
|
+
*/
|
|
22
|
+
'simulateAddress'?: string;
|
|
23
|
+
|
|
24
|
+
static discriminator: string | undefined = undefined;
|
|
25
|
+
|
|
26
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
27
|
+
{
|
|
28
|
+
"name": "requestedShareLimit",
|
|
29
|
+
"baseName": "requestedShareLimit",
|
|
30
|
+
"type": "string"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "simulateAddress",
|
|
34
|
+
"baseName": "simulateAddress",
|
|
35
|
+
"type": "string"
|
|
36
|
+
} ];
|
|
37
|
+
|
|
38
|
+
static getAttributeTypeMap() {
|
|
39
|
+
return UpdateShareLimit.attributeTypeMap;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@northstake/northstakeapi",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.41",
|
|
4
4
|
"description": "Northstake SDK",
|
|
5
5
|
"main": "dist/api.js",
|
|
6
6
|
"types": "dist/api.d.ts",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"author": "Northstake build process <buildadmin@northstake.dk>",
|
|
22
22
|
"license": "ISC",
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@types/node": "^25.
|
|
24
|
+
"@types/node": "^25.5.0",
|
|
25
25
|
"typescript": "^5.9.3"
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Northstake
|
|
4
|
-
* Northstake api Operation-level extensions used by the API: - x-roleRequired (array of strings): roles required to call the operation. - x-mfaApiScope (array of strings): MFA API scopes required when the user has MFA enrolled. - x-isProSvmFeature (boolean): when true, the operation is restricted to users whose Cosmos user document has is_pro_svm_user set to true.
|
|
5
|
-
*
|
|
6
|
-
* The version of the OpenAPI document: 1.0
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
-
* https://openapi-generator.tech
|
|
11
|
-
* Do not edit the class manually.
|
|
12
|
-
*/
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.ValidatorWithdrawal = void 0;
|
|
15
|
-
class ValidatorWithdrawal {
|
|
16
|
-
static getAttributeTypeMap() {
|
|
17
|
-
return ValidatorWithdrawal.attributeTypeMap;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.ValidatorWithdrawal = ValidatorWithdrawal;
|
|
21
|
-
ValidatorWithdrawal.discriminator = undefined;
|
|
22
|
-
ValidatorWithdrawal.attributeTypeMap = [
|
|
23
|
-
{
|
|
24
|
-
"name": "asset",
|
|
25
|
-
"baseName": "asset",
|
|
26
|
-
"type": "ValidatorWithdrawal.assetEnum"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "validatorPublicKey",
|
|
30
|
-
"baseName": "validatorPublicKey",
|
|
31
|
-
"type": "string"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"name": "validatorIndex",
|
|
35
|
-
"baseName": "validatorIndex",
|
|
36
|
-
"type": "number"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"name": "epoch",
|
|
40
|
-
"baseName": "epoch",
|
|
41
|
-
"type": "number"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"name": "slot",
|
|
45
|
-
"baseName": "slot",
|
|
46
|
-
"type": "number"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"name": "withdrawalTime",
|
|
50
|
-
"baseName": "withdrawalTime",
|
|
51
|
-
"type": "Date"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"name": "withdrawalIndex",
|
|
55
|
-
"baseName": "withdrawalIndex",
|
|
56
|
-
"type": "number"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"name": "withdrawalAddress",
|
|
60
|
-
"baseName": "withdrawalAddress",
|
|
61
|
-
"type": "string"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"name": "amount",
|
|
65
|
-
"baseName": "amount",
|
|
66
|
-
"type": "string"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"name": "amountInUSD",
|
|
70
|
-
"baseName": "amountInUSD",
|
|
71
|
-
"type": "string"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"name": "withdrawalType",
|
|
75
|
-
"baseName": "withdrawalType",
|
|
76
|
-
"type": "ValidatorWithdrawal.withdrawalTypeEnum"
|
|
77
|
-
}
|
|
78
|
-
];
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Northstake
|
|
3
|
-
* Northstake api Operation-level extensions used by the API: - x-roleRequired (array of strings): roles required to call the operation. - x-mfaApiScope (array of strings): MFA API scopes required when the user has MFA enrolled. - x-isProSvmFeature (boolean): when true, the operation is restricted to users whose Cosmos user document has is_pro_svm_user set to true.
|
|
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
|
-
|
|
14
|
-
export class ValidatorWithdrawal {
|
|
15
|
-
'asset': ValidatorWithdrawal.assetEnum;
|
|
16
|
-
'validatorPublicKey': string;
|
|
17
|
-
'validatorIndex': number;
|
|
18
|
-
'epoch': number;
|
|
19
|
-
'slot': number;
|
|
20
|
-
'withdrawalTime': Date;
|
|
21
|
-
'withdrawalIndex': number;
|
|
22
|
-
'withdrawalAddress': string;
|
|
23
|
-
'amount': string;
|
|
24
|
-
/**
|
|
25
|
-
* Withdrawal amount in USD
|
|
26
|
-
*/
|
|
27
|
-
'amountInUSD'?: string;
|
|
28
|
-
'withdrawalType': ValidatorWithdrawal.withdrawalTypeEnum;
|
|
29
|
-
|
|
30
|
-
static discriminator: string | undefined = undefined;
|
|
31
|
-
|
|
32
|
-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
33
|
-
{
|
|
34
|
-
"name": "asset",
|
|
35
|
-
"baseName": "asset",
|
|
36
|
-
"type": "ValidatorWithdrawal.assetEnum"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"name": "validatorPublicKey",
|
|
40
|
-
"baseName": "validatorPublicKey",
|
|
41
|
-
"type": "string"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"name": "validatorIndex",
|
|
45
|
-
"baseName": "validatorIndex",
|
|
46
|
-
"type": "number"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"name": "epoch",
|
|
50
|
-
"baseName": "epoch",
|
|
51
|
-
"type": "number"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"name": "slot",
|
|
55
|
-
"baseName": "slot",
|
|
56
|
-
"type": "number"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"name": "withdrawalTime",
|
|
60
|
-
"baseName": "withdrawalTime",
|
|
61
|
-
"type": "Date"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"name": "withdrawalIndex",
|
|
65
|
-
"baseName": "withdrawalIndex",
|
|
66
|
-
"type": "number"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"name": "withdrawalAddress",
|
|
70
|
-
"baseName": "withdrawalAddress",
|
|
71
|
-
"type": "string"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"name": "amount",
|
|
75
|
-
"baseName": "amount",
|
|
76
|
-
"type": "string"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"name": "amountInUSD",
|
|
80
|
-
"baseName": "amountInUSD",
|
|
81
|
-
"type": "string"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
"name": "withdrawalType",
|
|
85
|
-
"baseName": "withdrawalType",
|
|
86
|
-
"type": "ValidatorWithdrawal.withdrawalTypeEnum"
|
|
87
|
-
} ];
|
|
88
|
-
|
|
89
|
-
static getAttributeTypeMap() {
|
|
90
|
-
return ValidatorWithdrawal.attributeTypeMap;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export namespace ValidatorWithdrawal {
|
|
95
|
-
/**
|
|
96
|
-
*
|
|
97
|
-
*/
|
|
98
|
-
export type assetEnum =
|
|
99
|
-
'ETH';
|
|
100
|
-
/**
|
|
101
|
-
*
|
|
102
|
-
*/
|
|
103
|
-
export type withdrawalTypeEnum =
|
|
104
|
-
'full' |
|
|
105
|
-
'partial';
|
|
106
|
-
}
|
|
107
|
-
|