@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
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { GetWithdrawalsResponse } from '../model/getWithdrawalsResponse';
|
|
13
12
|
import { PartialTransaction } from '../model/partialTransaction';
|
|
14
13
|
import { ValidatorInfo } from '../model/validatorInfo';
|
|
15
14
|
import { Authentication, Interceptor } from '../model/models';
|
|
@@ -17,14 +16,6 @@ import { HttpBearerAuth, ApiKeyAuth } from '../model/models';
|
|
|
17
16
|
export declare enum ValidatorsApiApiKeys {
|
|
18
17
|
ApiKeyAuth = 0
|
|
19
18
|
}
|
|
20
|
-
export interface ValidatorsApiParams {
|
|
21
|
-
startDate?: Date;
|
|
22
|
-
endDate?: Date;
|
|
23
|
-
page?: number;
|
|
24
|
-
limit?: number;
|
|
25
|
-
validatorIndices?: string;
|
|
26
|
-
withdrawalType?: 'full' | 'partial';
|
|
27
|
-
}
|
|
28
19
|
export declare class ValidatorsApi {
|
|
29
20
|
protected _basePath: string;
|
|
30
21
|
protected _defaultHeaders: any;
|
|
@@ -45,24 +36,6 @@ export declare class ValidatorsApi {
|
|
|
45
36
|
setApiKey(key: ValidatorsApiApiKeys, value: string): void;
|
|
46
37
|
set accessToken(accessToken: string | (() => string));
|
|
47
38
|
addInterceptor(interceptor: Interceptor): void;
|
|
48
|
-
/**
|
|
49
|
-
* Retrieves a paginated list of validator withdrawals. The endpoint supports filtering by start and end date, page number, and limit. Additionally, it allows filtering by validator indices.
|
|
50
|
-
* @summary Get a list of validator withdrawals
|
|
51
|
-
* @param startDate Start date for filtering withdrawal statistics
|
|
52
|
-
* @param endDate End date for filtering withdrawal statistics
|
|
53
|
-
* @param page Withdrawal list page number
|
|
54
|
-
* @param limit Number of withdrawals to return per page
|
|
55
|
-
* @param validatorIndices Comma-separated list of validator indices to filter withdrawals (e.g., \"123,456,789\")
|
|
56
|
-
* @param withdrawalType
|
|
57
|
-
*/
|
|
58
|
-
getValidatorWithdrawals(params?: ValidatorsApiParams, options?: {
|
|
59
|
-
headers: {
|
|
60
|
-
[name: string]: string;
|
|
61
|
-
};
|
|
62
|
-
}): Promise<{
|
|
63
|
-
body: GetWithdrawalsResponse;
|
|
64
|
-
status: number;
|
|
65
|
-
}>;
|
|
66
39
|
/**
|
|
67
40
|
*
|
|
68
41
|
* @summary Get a list of validators
|
|
@@ -75,91 +75,6 @@ class ValidatorsApi {
|
|
|
75
75
|
addInterceptor(interceptor) {
|
|
76
76
|
this.interceptors.push(interceptor);
|
|
77
77
|
}
|
|
78
|
-
/**
|
|
79
|
-
* Retrieves a paginated list of validator withdrawals. The endpoint supports filtering by start and end date, page number, and limit. Additionally, it allows filtering by validator indices.
|
|
80
|
-
* @summary Get a list of validator withdrawals
|
|
81
|
-
* @param startDate Start date for filtering withdrawal statistics
|
|
82
|
-
* @param endDate End date for filtering withdrawal statistics
|
|
83
|
-
* @param page Withdrawal list page number
|
|
84
|
-
* @param limit Number of withdrawals to return per page
|
|
85
|
-
* @param validatorIndices Comma-separated list of validator indices to filter withdrawals (e.g., \"123,456,789\")
|
|
86
|
-
* @param withdrawalType
|
|
87
|
-
*/
|
|
88
|
-
async getValidatorWithdrawals(params, options = { headers: {} }) {
|
|
89
|
-
const localVarPath = this.basePath + '/validators/withdrawals';
|
|
90
|
-
let localVarQueryParameters = {};
|
|
91
|
-
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
92
|
-
const produces = ['application/json'];
|
|
93
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
94
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
95
|
-
}
|
|
96
|
-
else {
|
|
97
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
98
|
-
}
|
|
99
|
-
let localVarFormParams = {};
|
|
100
|
-
if ((params === null || params === void 0 ? void 0 : params.startDate) !== undefined) {
|
|
101
|
-
localVarQueryParameters['start_date'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.startDate, "Date");
|
|
102
|
-
}
|
|
103
|
-
if ((params === null || params === void 0 ? void 0 : params.endDate) !== undefined) {
|
|
104
|
-
localVarQueryParameters['end_date'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.endDate, "Date");
|
|
105
|
-
}
|
|
106
|
-
if ((params === null || params === void 0 ? void 0 : params.page) !== undefined) {
|
|
107
|
-
localVarQueryParameters['page'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.page, "number");
|
|
108
|
-
}
|
|
109
|
-
if ((params === null || params === void 0 ? void 0 : params.limit) !== undefined) {
|
|
110
|
-
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.limit, "number");
|
|
111
|
-
}
|
|
112
|
-
if ((params === null || params === void 0 ? void 0 : params.validatorIndices) !== undefined) {
|
|
113
|
-
localVarQueryParameters['validator_indices'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.validatorIndices, "string");
|
|
114
|
-
}
|
|
115
|
-
if ((params === null || params === void 0 ? void 0 : params.withdrawalType) !== undefined) {
|
|
116
|
-
localVarQueryParameters['withdrawal_type'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.withdrawalType, "'full' | 'partial'");
|
|
117
|
-
}
|
|
118
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
119
|
-
let localVarUseFormData = false;
|
|
120
|
-
let localVarRequestOptions = {
|
|
121
|
-
method: 'GET',
|
|
122
|
-
qs: localVarQueryParameters,
|
|
123
|
-
headers: localVarHeaderParams,
|
|
124
|
-
uri: localVarPath,
|
|
125
|
-
useQuerystring: this._useQuerystring,
|
|
126
|
-
json: true,
|
|
127
|
-
};
|
|
128
|
-
let authenticationPromise = Promise.resolve();
|
|
129
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
130
|
-
let interceptorPromise = authenticationPromise;
|
|
131
|
-
for (const interceptor of this.interceptors) {
|
|
132
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
133
|
-
}
|
|
134
|
-
return interceptorPromise.then(() => {
|
|
135
|
-
if (Object.keys(localVarFormParams).length) {
|
|
136
|
-
if (localVarUseFormData) {
|
|
137
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
138
|
-
}
|
|
139
|
-
else {
|
|
140
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
return new Promise((resolve, reject) => {
|
|
144
|
-
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
145
|
-
if (error) {
|
|
146
|
-
console.error('API call error:', error);
|
|
147
|
-
reject(error);
|
|
148
|
-
}
|
|
149
|
-
else {
|
|
150
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
151
|
-
body = models_1.ObjectSerializer.deserialize(body, "GetWithdrawalsResponse");
|
|
152
|
-
resolve({ body: body, status: response.statusCode });
|
|
153
|
-
}
|
|
154
|
-
else {
|
|
155
|
-
console.error('API response error:', response.statusCode);
|
|
156
|
-
resolve({ body: body, status: response.statusCode });
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
});
|
|
160
|
-
});
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
78
|
/**
|
|
164
79
|
*
|
|
165
80
|
* @summary Get a list of validators
|
package/dist/api.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { LidoWriteApi } from './api/lidoWriteApi';
|
|
|
7
7
|
import { LinkedWalletsApi } from './api/linkedWalletsApi';
|
|
8
8
|
import { OrganizationApi } from './api/organizationApi';
|
|
9
9
|
import { ValidatorsApi } from './api/validatorsApi';
|
|
10
|
+
export * from './model/./abandonDashboardRequest';
|
|
10
11
|
export * from './model/./acceptedQuote';
|
|
11
12
|
export * from './model/./accountEntity';
|
|
12
13
|
export * from './model/./addLinkedWalletRequest';
|
|
@@ -17,6 +18,7 @@ export * from './model/./asset';
|
|
|
17
18
|
export * from './model/./burnShares';
|
|
18
19
|
export * from './model/./burnStETH';
|
|
19
20
|
export * from './model/./burnWstETH';
|
|
21
|
+
export * from './model/./changeTier';
|
|
20
22
|
export * from './model/./collectERC20FromVault';
|
|
21
23
|
export * from './model/./consolidateValidators';
|
|
22
24
|
export * from './model/./consolidateValidatorsErrorResponse';
|
|
@@ -46,9 +48,9 @@ export * from './model/./getLazyOracleReportCallData200ResponseDestructuredCalld
|
|
|
46
48
|
export * from './model/./getLazyOracleReportData200Response';
|
|
47
49
|
export * from './model/./getLazyOracleReportData200ResponseReportData';
|
|
48
50
|
export * from './model/./getLidoTransactions200Response';
|
|
51
|
+
export * from './model/./getOperatorGroup200Response';
|
|
49
52
|
export * from './model/./getQuarantineInfo200Response';
|
|
50
53
|
export * from './model/./getStETHPerWstETHRate200Response';
|
|
51
|
-
export * from './model/./getWithdrawalsResponse';
|
|
52
54
|
export * from './model/./grantRole';
|
|
53
55
|
export * from './model/./internalTransaction';
|
|
54
56
|
export * from './model/./inviteMemberRequest';
|
|
@@ -95,12 +97,14 @@ export * from './model/./stakeEthResponse';
|
|
|
95
97
|
export * from './model/./stakeEthResponseDestructuredCallDataInner';
|
|
96
98
|
export * from './model/./stakingRequest';
|
|
97
99
|
export * from './model/./stakingRequestStatus';
|
|
100
|
+
export * from './model/./supportedValidatorProvidersResponse';
|
|
98
101
|
export * from './model/./transaction';
|
|
99
102
|
export * from './model/./triggerValidatorWithdrawals';
|
|
100
103
|
export * from './model/./unwrapWstETH';
|
|
101
104
|
export * from './model/./updateLinkedWalletNameRequest';
|
|
102
105
|
export * from './model/./updateMemberRoleRequest';
|
|
103
106
|
export * from './model/./updateOrganizationNameRequest';
|
|
107
|
+
export * from './model/./updateShareLimit';
|
|
104
108
|
export * from './model/./validateConsolidationRequestsResponse';
|
|
105
109
|
export * from './model/./validateConsolidationRequestsResponseConsolidationDetailsInner';
|
|
106
110
|
export * from './model/./validatorDailyReward';
|
|
@@ -112,7 +116,6 @@ export * from './model/./validatorRewardsDaily';
|
|
|
112
116
|
export * from './model/./validatorRewardsDailyResponse';
|
|
113
117
|
export * from './model/./validatorRewardsRaw';
|
|
114
118
|
export * from './model/./validatorType';
|
|
115
|
-
export * from './model/./validatorWithdrawal';
|
|
116
119
|
export * from './model/./vaultCreationStartResponse';
|
|
117
120
|
export * from './model/./wallet';
|
|
118
121
|
export * from './model/./webHookLookupAnswer';
|
package/dist/api.js
CHANGED
|
@@ -26,6 +26,7 @@ const lidoWriteApi_1 = require("./api/lidoWriteApi");
|
|
|
26
26
|
const linkedWalletsApi_1 = require("./api/linkedWalletsApi");
|
|
27
27
|
const organizationApi_1 = require("./api/organizationApi");
|
|
28
28
|
const validatorsApi_1 = require("./api/validatorsApi");
|
|
29
|
+
__exportStar(require("./model/./abandonDashboardRequest"), exports);
|
|
29
30
|
__exportStar(require("./model/./acceptedQuote"), exports);
|
|
30
31
|
__exportStar(require("./model/./accountEntity"), exports);
|
|
31
32
|
__exportStar(require("./model/./addLinkedWalletRequest"), exports);
|
|
@@ -36,6 +37,7 @@ __exportStar(require("./model/./asset"), exports);
|
|
|
36
37
|
__exportStar(require("./model/./burnShares"), exports);
|
|
37
38
|
__exportStar(require("./model/./burnStETH"), exports);
|
|
38
39
|
__exportStar(require("./model/./burnWstETH"), exports);
|
|
40
|
+
__exportStar(require("./model/./changeTier"), exports);
|
|
39
41
|
__exportStar(require("./model/./collectERC20FromVault"), exports);
|
|
40
42
|
__exportStar(require("./model/./consolidateValidators"), exports);
|
|
41
43
|
__exportStar(require("./model/./consolidateValidatorsErrorResponse"), exports);
|
|
@@ -65,9 +67,9 @@ __exportStar(require("./model/./getLazyOracleReportCallData200ResponseDestructur
|
|
|
65
67
|
__exportStar(require("./model/./getLazyOracleReportData200Response"), exports);
|
|
66
68
|
__exportStar(require("./model/./getLazyOracleReportData200ResponseReportData"), exports);
|
|
67
69
|
__exportStar(require("./model/./getLidoTransactions200Response"), exports);
|
|
70
|
+
__exportStar(require("./model/./getOperatorGroup200Response"), exports);
|
|
68
71
|
__exportStar(require("./model/./getQuarantineInfo200Response"), exports);
|
|
69
72
|
__exportStar(require("./model/./getStETHPerWstETHRate200Response"), exports);
|
|
70
|
-
__exportStar(require("./model/./getWithdrawalsResponse"), exports);
|
|
71
73
|
__exportStar(require("./model/./grantRole"), exports);
|
|
72
74
|
__exportStar(require("./model/./internalTransaction"), exports);
|
|
73
75
|
__exportStar(require("./model/./inviteMemberRequest"), exports);
|
|
@@ -114,12 +116,14 @@ __exportStar(require("./model/./stakeEthResponse"), exports);
|
|
|
114
116
|
__exportStar(require("./model/./stakeEthResponseDestructuredCallDataInner"), exports);
|
|
115
117
|
__exportStar(require("./model/./stakingRequest"), exports);
|
|
116
118
|
__exportStar(require("./model/./stakingRequestStatus"), exports);
|
|
119
|
+
__exportStar(require("./model/./supportedValidatorProvidersResponse"), exports);
|
|
117
120
|
__exportStar(require("./model/./transaction"), exports);
|
|
118
121
|
__exportStar(require("./model/./triggerValidatorWithdrawals"), exports);
|
|
119
122
|
__exportStar(require("./model/./unwrapWstETH"), exports);
|
|
120
123
|
__exportStar(require("./model/./updateLinkedWalletNameRequest"), exports);
|
|
121
124
|
__exportStar(require("./model/./updateMemberRoleRequest"), exports);
|
|
122
125
|
__exportStar(require("./model/./updateOrganizationNameRequest"), exports);
|
|
126
|
+
__exportStar(require("./model/./updateShareLimit"), exports);
|
|
123
127
|
__exportStar(require("./model/./validateConsolidationRequestsResponse"), exports);
|
|
124
128
|
__exportStar(require("./model/./validateConsolidationRequestsResponseConsolidationDetailsInner"), exports);
|
|
125
129
|
__exportStar(require("./model/./validatorDailyReward"), exports);
|
|
@@ -131,7 +135,6 @@ __exportStar(require("./model/./validatorRewardsDaily"), exports);
|
|
|
131
135
|
__exportStar(require("./model/./validatorRewardsDailyResponse"), exports);
|
|
132
136
|
__exportStar(require("./model/./validatorRewardsRaw"), exports);
|
|
133
137
|
__exportStar(require("./model/./validatorType"), exports);
|
|
134
|
-
__exportStar(require("./model/./validatorWithdrawal"), exports);
|
|
135
138
|
__exportStar(require("./model/./vaultCreationStartResponse"), exports);
|
|
136
139
|
__exportStar(require("./model/./wallet"), exports);
|
|
137
140
|
__exportStar(require("./model/./webHookLookupAnswer"), exports);
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
export declare class AbandonDashboardRequest {
|
|
13
|
+
/**
|
|
14
|
+
* Address to transfer StakingVault ownership to (e.g. current vault owner). Cannot be the Dashboard.
|
|
15
|
+
*/
|
|
16
|
+
'newOwner': string;
|
|
17
|
+
/**
|
|
18
|
+
* Optional Ethereum address to simulate the transaction from.
|
|
19
|
+
*/
|
|
20
|
+
'simulateAddress'?: string;
|
|
21
|
+
static discriminator: string | undefined;
|
|
22
|
+
static attributeTypeMap: Array<{
|
|
23
|
+
name: string;
|
|
24
|
+
baseName: string;
|
|
25
|
+
type: string;
|
|
26
|
+
}>;
|
|
27
|
+
static getAttributeTypeMap(): {
|
|
28
|
+
name: string;
|
|
29
|
+
baseName: string;
|
|
30
|
+
type: string;
|
|
31
|
+
}[];
|
|
32
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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.AbandonDashboardRequest = void 0;
|
|
15
|
+
class AbandonDashboardRequest {
|
|
16
|
+
static getAttributeTypeMap() {
|
|
17
|
+
return AbandonDashboardRequest.attributeTypeMap;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.AbandonDashboardRequest = AbandonDashboardRequest;
|
|
21
|
+
AbandonDashboardRequest.discriminator = undefined;
|
|
22
|
+
AbandonDashboardRequest.attributeTypeMap = [
|
|
23
|
+
{
|
|
24
|
+
"name": "newOwner",
|
|
25
|
+
"baseName": "newOwner",
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "simulateAddress",
|
|
30
|
+
"baseName": "simulateAddress",
|
|
31
|
+
"type": "string"
|
|
32
|
+
}
|
|
33
|
+
];
|
|
@@ -9,21 +9,19 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
|
|
13
|
-
export declare class GetWithdrawalsResponse {
|
|
14
|
-
'withdrawals': Array<ValidatorWithdrawal>;
|
|
12
|
+
export declare class ChangeTier {
|
|
15
13
|
/**
|
|
16
|
-
*
|
|
14
|
+
* Tier ID.
|
|
17
15
|
*/
|
|
18
|
-
'
|
|
16
|
+
'tierId': string;
|
|
19
17
|
/**
|
|
20
|
-
*
|
|
18
|
+
* Requested share limit.
|
|
21
19
|
*/
|
|
22
|
-
'
|
|
20
|
+
'requestedShareLimit': string;
|
|
23
21
|
/**
|
|
24
|
-
*
|
|
22
|
+
* Optional Ethereum address to simulate the transaction from. If provided, the transaction will be simulated and any revert errors will be returned.
|
|
25
23
|
*/
|
|
26
|
-
'
|
|
24
|
+
'simulateAddress'?: string;
|
|
27
25
|
static discriminator: string | undefined;
|
|
28
26
|
static attributeTypeMap: Array<{
|
|
29
27
|
name: string;
|
|
@@ -11,33 +11,28 @@
|
|
|
11
11
|
* Do not edit the class manually.
|
|
12
12
|
*/
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.
|
|
15
|
-
class
|
|
14
|
+
exports.ChangeTier = void 0;
|
|
15
|
+
class ChangeTier {
|
|
16
16
|
static getAttributeTypeMap() {
|
|
17
|
-
return
|
|
17
|
+
return ChangeTier.attributeTypeMap;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
exports.
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
exports.ChangeTier = ChangeTier;
|
|
21
|
+
ChangeTier.discriminator = undefined;
|
|
22
|
+
ChangeTier.attributeTypeMap = [
|
|
23
23
|
{
|
|
24
|
-
"name": "
|
|
25
|
-
"baseName": "
|
|
26
|
-
"type": "
|
|
24
|
+
"name": "tierId",
|
|
25
|
+
"baseName": "tierId",
|
|
26
|
+
"type": "string"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
|
-
"name": "
|
|
30
|
-
"baseName": "
|
|
31
|
-
"type": "
|
|
29
|
+
"name": "requestedShareLimit",
|
|
30
|
+
"baseName": "requestedShareLimit",
|
|
31
|
+
"type": "string"
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
|
-
"name": "
|
|
35
|
-
"baseName": "
|
|
36
|
-
"type": "
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"name": "currentPage",
|
|
40
|
-
"baseName": "currentPage",
|
|
41
|
-
"type": "number"
|
|
34
|
+
"name": "simulateAddress",
|
|
35
|
+
"baseName": "simulateAddress",
|
|
36
|
+
"type": "string"
|
|
42
37
|
}
|
|
43
38
|
];
|
|
@@ -9,21 +9,23 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
export declare class
|
|
13
|
-
'asset': ValidatorWithdrawal.assetEnum;
|
|
14
|
-
'validatorPublicKey': string;
|
|
15
|
-
'validatorIndex': number;
|
|
16
|
-
'epoch': number;
|
|
17
|
-
'slot': number;
|
|
18
|
-
'withdrawalTime': Date;
|
|
19
|
-
'withdrawalIndex': number;
|
|
20
|
-
'withdrawalAddress': string;
|
|
21
|
-
'amount': string;
|
|
12
|
+
export declare class GetOperatorGroup200Response {
|
|
22
13
|
/**
|
|
23
|
-
*
|
|
14
|
+
* The operator address
|
|
24
15
|
*/
|
|
25
|
-
'
|
|
26
|
-
|
|
16
|
+
'operator': string;
|
|
17
|
+
/**
|
|
18
|
+
* The share limit for the operator group
|
|
19
|
+
*/
|
|
20
|
+
'shareLimit': string;
|
|
21
|
+
/**
|
|
22
|
+
* The liability shares for the operator group
|
|
23
|
+
*/
|
|
24
|
+
'liabilityShares': string;
|
|
25
|
+
/**
|
|
26
|
+
* The tier IDs associated with the operator group
|
|
27
|
+
*/
|
|
28
|
+
'tierIds': Array<string>;
|
|
27
29
|
static discriminator: string | undefined;
|
|
28
30
|
static attributeTypeMap: Array<{
|
|
29
31
|
name: string;
|
|
@@ -36,13 +38,3 @@ export declare class ValidatorWithdrawal {
|
|
|
36
38
|
type: string;
|
|
37
39
|
}[];
|
|
38
40
|
}
|
|
39
|
-
export declare namespace ValidatorWithdrawal {
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
*/
|
|
43
|
-
type assetEnum = 'ETH';
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
*/
|
|
47
|
-
type withdrawalTypeEnum = 'full' | 'partial';
|
|
48
|
-
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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.GetOperatorGroup200Response = void 0;
|
|
15
|
+
class GetOperatorGroup200Response {
|
|
16
|
+
static getAttributeTypeMap() {
|
|
17
|
+
return GetOperatorGroup200Response.attributeTypeMap;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.GetOperatorGroup200Response = GetOperatorGroup200Response;
|
|
21
|
+
GetOperatorGroup200Response.discriminator = undefined;
|
|
22
|
+
GetOperatorGroup200Response.attributeTypeMap = [
|
|
23
|
+
{
|
|
24
|
+
"name": "operator",
|
|
25
|
+
"baseName": "operator",
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "shareLimit",
|
|
30
|
+
"baseName": "shareLimit",
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "liabilityShares",
|
|
35
|
+
"baseName": "liabilityShares",
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "tierIds",
|
|
40
|
+
"baseName": "tierIds",
|
|
41
|
+
"type": "Array<string>"
|
|
42
|
+
}
|
|
43
|
+
];
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
*/
|
|
12
12
|
export declare class GetStETHPerWstETHRate200Response {
|
|
13
13
|
/**
|
|
14
|
-
* The current exchange rate of stETH per wstETH
|
|
14
|
+
* The current exchange rate of stETH per wstETH as a bigint string (raw 18-decimal value) to avoid rounding errors
|
|
15
15
|
*/
|
|
16
|
-
'rate':
|
|
16
|
+
'rate': string;
|
|
17
17
|
static discriminator: string | undefined;
|
|
18
18
|
static attributeTypeMap: Array<{
|
|
19
19
|
name: string;
|
|
@@ -14,6 +14,14 @@ export declare class LidoContractsStakingVault {
|
|
|
14
14
|
* Staking vault contract address
|
|
15
15
|
*/
|
|
16
16
|
'address': string;
|
|
17
|
+
/**
|
|
18
|
+
* Owner of the staking vault contract (Ownable). Used by disconnect wizard to show who can accept ownership.
|
|
19
|
+
*/
|
|
20
|
+
'owner'?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Pending owner (Ownable2Step). When non-zero, Step 3 (abandon dashboard) is done and the frontend can show \"Accept ownership (Step 4) from this address\". Zero address when no transfer is pending.
|
|
23
|
+
*/
|
|
24
|
+
'pendingOwner'?: string;
|
|
17
25
|
static discriminator: string | undefined;
|
|
18
26
|
static attributeTypeMap: Array<{
|
|
19
27
|
name: string;
|
|
@@ -24,5 +24,15 @@ LidoContractsStakingVault.attributeTypeMap = [
|
|
|
24
24
|
"name": "address",
|
|
25
25
|
"baseName": "address",
|
|
26
26
|
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "owner",
|
|
30
|
+
"baseName": "owner",
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "pendingOwner",
|
|
35
|
+
"baseName": "pendingOwner",
|
|
36
|
+
"type": "string"
|
|
27
37
|
}
|
|
28
38
|
];
|
|
@@ -71,9 +71,9 @@ export declare class LidoStakingContractsWithDataVaultData {
|
|
|
71
71
|
*/
|
|
72
72
|
'vaultIndex'?: number;
|
|
73
73
|
/**
|
|
74
|
-
*
|
|
74
|
+
* Vault hub connection status. `connected` = fully connected; `disconnecting` = voluntary disconnect initiated, transition period (same restrictions as disconnected); `disconnected` = not connected. When not `connected`, only voluntary disconnect, withdrawal, and connect to vault hub are allowed.
|
|
75
75
|
*/
|
|
76
|
-
'
|
|
76
|
+
'vaultHubConnectionStatus'?: LidoStakingContractsWithDataVaultData.vaultHubConnectionStatusEnum;
|
|
77
77
|
/**
|
|
78
78
|
* Share of ether locked as additional reserve (in basis points)
|
|
79
79
|
*/
|
|
@@ -98,6 +98,14 @@ export declare class LidoStakingContractsWithDataVaultData {
|
|
|
98
98
|
* If true, vault owner intends to pause beacon chain deposits
|
|
99
99
|
*/
|
|
100
100
|
'beaconChainDepositsPauseIntent'?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Tier ID on the operator grid
|
|
103
|
+
*/
|
|
104
|
+
'tierId'?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Node operator address. A value of 0xffffffffffffffffffffffffffffffffffffffff indicates that the operator is not registered on the operator grid
|
|
107
|
+
*/
|
|
108
|
+
'nodeOperator'?: string;
|
|
101
109
|
static discriminator: string | undefined;
|
|
102
110
|
static attributeTypeMap: Array<{
|
|
103
111
|
name: string;
|
|
@@ -110,3 +118,9 @@ export declare class LidoStakingContractsWithDataVaultData {
|
|
|
110
118
|
type: string;
|
|
111
119
|
}[];
|
|
112
120
|
}
|
|
121
|
+
export declare namespace LidoStakingContractsWithDataVaultData {
|
|
122
|
+
/**
|
|
123
|
+
* Vault hub connection status. `connected` = fully connected; `disconnecting` = voluntary disconnect initiated, transition period (same restrictions as disconnected); `disconnected` = not connected. When not `connected`, only voluntary disconnect, withdrawal, and connect to vault hub are allowed.
|
|
124
|
+
*/
|
|
125
|
+
type vaultHubConnectionStatusEnum = 'connected' | 'disconnected' | 'disconnecting';
|
|
126
|
+
}
|
|
@@ -96,9 +96,9 @@ LidoStakingContractsWithDataVaultData.attributeTypeMap = [
|
|
|
96
96
|
"type": "number"
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
|
-
"name": "
|
|
100
|
-
"baseName": "
|
|
101
|
-
"type": "
|
|
99
|
+
"name": "vaultHubConnectionStatus",
|
|
100
|
+
"baseName": "vaultHubConnectionStatus",
|
|
101
|
+
"type": "LidoStakingContractsWithDataVaultData.vaultHubConnectionStatusEnum"
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
104
|
"name": "reserveRatioBP",
|
|
@@ -129,5 +129,15 @@ LidoStakingContractsWithDataVaultData.attributeTypeMap = [
|
|
|
129
129
|
"name": "beaconChainDepositsPauseIntent",
|
|
130
130
|
"baseName": "beaconChainDepositsPauseIntent",
|
|
131
131
|
"type": "boolean"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"name": "tierId",
|
|
135
|
+
"baseName": "tierId",
|
|
136
|
+
"type": "string"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "nodeOperator",
|
|
140
|
+
"baseName": "nodeOperator",
|
|
141
|
+
"type": "string"
|
|
132
142
|
}
|
|
133
143
|
];
|
package/dist/model/models.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import localVarRequest from 'request';
|
|
2
|
+
export * from './abandonDashboardRequest';
|
|
2
3
|
export * from './acceptedQuote';
|
|
3
4
|
export * from './accountEntity';
|
|
4
5
|
export * from './addLinkedWalletRequest';
|
|
@@ -9,6 +10,7 @@ export * from './asset';
|
|
|
9
10
|
export * from './burnShares';
|
|
10
11
|
export * from './burnStETH';
|
|
11
12
|
export * from './burnWstETH';
|
|
13
|
+
export * from './changeTier';
|
|
12
14
|
export * from './collectERC20FromVault';
|
|
13
15
|
export * from './consolidateValidators';
|
|
14
16
|
export * from './consolidateValidatorsErrorResponse';
|
|
@@ -38,9 +40,9 @@ export * from './getLazyOracleReportCallData200ResponseDestructuredCalldata';
|
|
|
38
40
|
export * from './getLazyOracleReportData200Response';
|
|
39
41
|
export * from './getLazyOracleReportData200ResponseReportData';
|
|
40
42
|
export * from './getLidoTransactions200Response';
|
|
43
|
+
export * from './getOperatorGroup200Response';
|
|
41
44
|
export * from './getQuarantineInfo200Response';
|
|
42
45
|
export * from './getStETHPerWstETHRate200Response';
|
|
43
|
-
export * from './getWithdrawalsResponse';
|
|
44
46
|
export * from './grantRole';
|
|
45
47
|
export * from './internalTransaction';
|
|
46
48
|
export * from './inviteMemberRequest';
|
|
@@ -87,12 +89,14 @@ export * from './stakeEthResponse';
|
|
|
87
89
|
export * from './stakeEthResponseDestructuredCallDataInner';
|
|
88
90
|
export * from './stakingRequest';
|
|
89
91
|
export * from './stakingRequestStatus';
|
|
92
|
+
export * from './supportedValidatorProvidersResponse';
|
|
90
93
|
export * from './transaction';
|
|
91
94
|
export * from './triggerValidatorWithdrawals';
|
|
92
95
|
export * from './unwrapWstETH';
|
|
93
96
|
export * from './updateLinkedWalletNameRequest';
|
|
94
97
|
export * from './updateMemberRoleRequest';
|
|
95
98
|
export * from './updateOrganizationNameRequest';
|
|
99
|
+
export * from './updateShareLimit';
|
|
96
100
|
export * from './validateConsolidationRequestsResponse';
|
|
97
101
|
export * from './validateConsolidationRequestsResponseConsolidationDetailsInner';
|
|
98
102
|
export * from './validatorDailyReward';
|
|
@@ -104,7 +108,6 @@ export * from './validatorRewardsDaily';
|
|
|
104
108
|
export * from './validatorRewardsDailyResponse';
|
|
105
109
|
export * from './validatorRewardsRaw';
|
|
106
110
|
export * from './validatorType';
|
|
107
|
-
export * from './validatorWithdrawal';
|
|
108
111
|
export * from './vaultCreationStartResponse';
|
|
109
112
|
export * from './wallet';
|
|
110
113
|
export * from './webHookLookupAnswer';
|