@northstake/northstakeapi 1.0.34 → 1.0.35
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/api/validatorsApi.ts +5 -0
- package/dist/api/validatorsApi.d.ts +2 -0
- package/dist/api/validatorsApi.js +4 -0
- package/dist/model/models.js +1 -0
- package/dist/model/validatorWithdrawal.d.ts +5 -0
- package/dist/model/validatorWithdrawal.js +5 -0
- package/model/models.ts +1 -0
- package/model/validatorWithdrawal.ts +12 -0
- package/package.json +2 -2
package/api/validatorsApi.ts
CHANGED
|
@@ -45,6 +45,7 @@ export interface ValidatorsApiParams {
|
|
|
45
45
|
page?: number;
|
|
46
46
|
limit?: number;
|
|
47
47
|
validatorIndices?: string;
|
|
48
|
+
withdrawalType?: 'full' | 'partial';
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
export class ValidatorsApi {
|
|
@@ -207,6 +208,7 @@ export class ValidatorsApi {
|
|
|
207
208
|
* @param page Withdrawal list page number
|
|
208
209
|
* @param limit Number of withdrawals to return per page
|
|
209
210
|
* @param validatorIndices Comma-separated list of validator indices to filter withdrawals (e.g., \"123,456,789\")
|
|
211
|
+
* @param withdrawalType
|
|
210
212
|
*/
|
|
211
213
|
|
|
212
214
|
|
|
@@ -246,6 +248,9 @@ export class ValidatorsApi {
|
|
|
246
248
|
if (params?.validatorIndices !== undefined) {
|
|
247
249
|
localVarQueryParameters['validator_indices'] = ObjectSerializer.serialize(params?.validatorIndices, "string");
|
|
248
250
|
}
|
|
251
|
+
if (params?.withdrawalType !== undefined) {
|
|
252
|
+
localVarQueryParameters['withdrawal_type'] = ObjectSerializer.serialize(params?.withdrawalType, "'full' | 'partial'");
|
|
253
|
+
}
|
|
249
254
|
|
|
250
255
|
|
|
251
256
|
|
|
@@ -25,6 +25,7 @@ export interface ValidatorsApiParams {
|
|
|
25
25
|
page?: number;
|
|
26
26
|
limit?: number;
|
|
27
27
|
validatorIndices?: string;
|
|
28
|
+
withdrawalType?: 'full' | 'partial';
|
|
28
29
|
}
|
|
29
30
|
export declare class ValidatorsApi {
|
|
30
31
|
protected _basePath: string;
|
|
@@ -68,6 +69,7 @@ export declare class ValidatorsApi {
|
|
|
68
69
|
* @param page Withdrawal list page number
|
|
69
70
|
* @param limit Number of withdrawals to return per page
|
|
70
71
|
* @param validatorIndices Comma-separated list of validator indices to filter withdrawals (e.g., \"123,456,789\")
|
|
72
|
+
* @param withdrawalType
|
|
71
73
|
*/
|
|
72
74
|
getValidatorWithdrawals(params?: ValidatorsApiParams, options?: {
|
|
73
75
|
headers: {
|
|
@@ -154,6 +154,7 @@ class ValidatorsApi {
|
|
|
154
154
|
* @param page Withdrawal list page number
|
|
155
155
|
* @param limit Number of withdrawals to return per page
|
|
156
156
|
* @param validatorIndices Comma-separated list of validator indices to filter withdrawals (e.g., \"123,456,789\")
|
|
157
|
+
* @param withdrawalType
|
|
157
158
|
*/
|
|
158
159
|
async getValidatorWithdrawals(params, options = { headers: {} }) {
|
|
159
160
|
const localVarPath = this.basePath + '/validators/withdrawals';
|
|
@@ -182,6 +183,9 @@ class ValidatorsApi {
|
|
|
182
183
|
if ((params === null || params === void 0 ? void 0 : params.validatorIndices) !== undefined) {
|
|
183
184
|
localVarQueryParameters['validator_indices'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.validatorIndices, "string");
|
|
184
185
|
}
|
|
186
|
+
if ((params === null || params === void 0 ? void 0 : params.withdrawalType) !== undefined) {
|
|
187
|
+
localVarQueryParameters['withdrawal_type'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.withdrawalType, "'full' | 'partial'");
|
|
188
|
+
}
|
|
185
189
|
Object.assign(localVarHeaderParams, options.headers);
|
|
186
190
|
let localVarUseFormData = false;
|
|
187
191
|
let localVarRequestOptions = {
|
package/dist/model/models.js
CHANGED
|
@@ -218,6 +218,7 @@ let enumsMap = {
|
|
|
218
218
|
"ValidatorInfo.asset": validatorInfo_1.ValidatorInfo,
|
|
219
219
|
"ValidatorInfo.status": validatorInfo_1.ValidatorInfo,
|
|
220
220
|
"ValidatorWithdrawal.asset": validatorWithdrawal_1.ValidatorWithdrawal,
|
|
221
|
+
"ValidatorWithdrawal.withdrawalType": validatorWithdrawal_1.ValidatorWithdrawal,
|
|
221
222
|
};
|
|
222
223
|
let typeMap = {
|
|
223
224
|
"AcceptedQuote": acceptedQuote_1.AcceptedQuote,
|
|
@@ -19,6 +19,7 @@ export declare class ValidatorWithdrawal {
|
|
|
19
19
|
'withdrawal_index': number;
|
|
20
20
|
'withdrawal_address': string;
|
|
21
21
|
'amount': string;
|
|
22
|
+
'withdrawal_type': ValidatorWithdrawal.withdrawalTypeEnum;
|
|
22
23
|
static discriminator: string | undefined;
|
|
23
24
|
static attributeTypeMap: Array<{
|
|
24
25
|
name: string;
|
|
@@ -36,4 +37,8 @@ export declare namespace ValidatorWithdrawal {
|
|
|
36
37
|
*
|
|
37
38
|
*/
|
|
38
39
|
type assetEnum = 'ETH';
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
type withdrawalTypeEnum = 'full' | 'partial';
|
|
39
44
|
}
|
package/model/models.ts
CHANGED
|
@@ -375,6 +375,7 @@ let enumsMap: {[index: string]: any} = {
|
|
|
375
375
|
"ValidatorInfo.asset": ValidatorInfo,
|
|
376
376
|
"ValidatorInfo.status": ValidatorInfo,
|
|
377
377
|
"ValidatorWithdrawal.asset": ValidatorWithdrawal,
|
|
378
|
+
"ValidatorWithdrawal.withdrawalType": ValidatorWithdrawal,
|
|
378
379
|
};
|
|
379
380
|
let typeMap: {[index: string]: any} = {
|
|
380
381
|
"AcceptedQuote": AcceptedQuote,
|
|
@@ -21,6 +21,7 @@ export class ValidatorWithdrawal {
|
|
|
21
21
|
'withdrawal_index': number;
|
|
22
22
|
'withdrawal_address': string;
|
|
23
23
|
'amount': string;
|
|
24
|
+
'withdrawal_type': ValidatorWithdrawal.withdrawalTypeEnum;
|
|
24
25
|
|
|
25
26
|
static discriminator: string | undefined = undefined;
|
|
26
27
|
|
|
@@ -69,6 +70,11 @@ export class ValidatorWithdrawal {
|
|
|
69
70
|
"name": "amount",
|
|
70
71
|
"baseName": "amount",
|
|
71
72
|
"type": "string"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "withdrawal_type",
|
|
76
|
+
"baseName": "withdrawal_type",
|
|
77
|
+
"type": "ValidatorWithdrawal.withdrawalTypeEnum"
|
|
72
78
|
} ];
|
|
73
79
|
|
|
74
80
|
static getAttributeTypeMap() {
|
|
@@ -82,5 +88,11 @@ export namespace ValidatorWithdrawal {
|
|
|
82
88
|
*/
|
|
83
89
|
export type assetEnum =
|
|
84
90
|
'ETH';
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
*/
|
|
94
|
+
export type withdrawalTypeEnum =
|
|
95
|
+
'full' |
|
|
96
|
+
'partial';
|
|
85
97
|
}
|
|
86
98
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@northstake/northstakeapi",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.35",
|
|
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": "^22.
|
|
24
|
+
"@types/node": "^22.13.1",
|
|
25
25
|
"typescript": "^5.7.3"
|
|
26
26
|
}
|
|
27
27
|
}
|