@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.
Files changed (48) hide show
  1. package/.openapi-generator/FILES +5 -2
  2. package/api/lidoReadApi.ts +92 -3
  3. package/api/lidoStakingVaultsApi.ts +81 -0
  4. package/api/lidoWriteApi.ts +676 -9
  5. package/api/validatorsApi.ts +0 -114
  6. package/api.ts +5 -2
  7. package/dist/api/lidoReadApi.d.ts +17 -3
  8. package/dist/api/lidoReadApi.js +72 -3
  9. package/dist/api/lidoStakingVaultsApi.d.ts +13 -0
  10. package/dist/api/lidoStakingVaultsApi.js +61 -0
  11. package/dist/api/lidoWriteApi.d.ts +131 -8
  12. package/dist/api/lidoWriteApi.js +539 -8
  13. package/dist/api/validatorsApi.d.ts +0 -27
  14. package/dist/api/validatorsApi.js +0 -85
  15. package/dist/api.d.ts +5 -2
  16. package/dist/api.js +5 -2
  17. package/dist/model/abandonDashboardRequest.d.ts +32 -0
  18. package/dist/model/abandonDashboardRequest.js +33 -0
  19. package/dist/model/{getWithdrawalsResponse.d.ts → changeTier.d.ts} +7 -9
  20. package/dist/model/{getWithdrawalsResponse.js → changeTier.js} +15 -20
  21. package/dist/model/{validatorWithdrawal.d.ts → getOperatorGroup200Response.d.ts} +15 -23
  22. package/dist/model/getOperatorGroup200Response.js +43 -0
  23. package/dist/model/getStETHPerWstETHRate200Response.d.ts +2 -2
  24. package/dist/model/getStETHPerWstETHRate200Response.js +1 -1
  25. package/dist/model/lidoContractsStakingVault.d.ts +8 -0
  26. package/dist/model/lidoContractsStakingVault.js +10 -0
  27. package/dist/model/lidoStakingContractsWithDataVaultData.d.ts +16 -2
  28. package/dist/model/lidoStakingContractsWithDataVaultData.js +13 -3
  29. package/dist/model/models.d.ts +5 -2
  30. package/dist/model/models.js +16 -8
  31. package/dist/model/supportedValidatorProvidersResponse.d.ts +29 -0
  32. package/dist/model/supportedValidatorProvidersResponse.js +31 -0
  33. package/dist/model/updateShareLimit.d.ts +32 -0
  34. package/dist/model/updateShareLimit.js +33 -0
  35. package/dist/model/validatorProvider.d.ts +1 -1
  36. package/model/abandonDashboardRequest.ts +43 -0
  37. package/model/{getWithdrawalsResponse.ts → changeTier.ts} +17 -24
  38. package/model/getOperatorGroup200Response.ts +61 -0
  39. package/model/getStETHPerWstETHRate200Response.ts +3 -3
  40. package/model/lidoContractsStakingVault.ts +18 -0
  41. package/model/lidoStakingContractsWithDataVaultData.ts +32 -5
  42. package/model/models.ts +26 -12
  43. package/model/supportedValidatorProvidersResponse.ts +35 -0
  44. package/model/updateShareLimit.ts +43 -0
  45. package/model/validatorProvider.ts +2 -1
  46. package/package.json +2 -2
  47. package/dist/model/validatorWithdrawal.js +0 -78
  48. package/model/validatorWithdrawal.ts +0 -107
@@ -15,11 +15,13 @@ import localVarRequest from 'request';
15
15
  import http from 'http';
16
16
 
17
17
  /* tslint:disable:no-unused-locals */
18
+ import { AbandonDashboardRequest } from '../model/abandonDashboardRequest';
18
19
  import { ApproveStETH } from '../model/approveStETH';
19
20
  import { ApproveWstETH } from '../model/approveWstETH';
20
21
  import { BurnShares } from '../model/burnShares';
21
22
  import { BurnStETH } from '../model/burnStETH';
22
23
  import { BurnWstETH } from '../model/burnWstETH';
24
+ import { ChangeTier } from '../model/changeTier';
23
25
  import { CollectERC20FromVault } from '../model/collectERC20FromVault';
24
26
  import { ConsolidateValidators } from '../model/consolidateValidators';
25
27
  import { ConsolidateValidatorsErrorResponse } from '../model/consolidateValidatorsErrorResponse';
@@ -41,6 +43,7 @@ import { StakeEthResponse } from '../model/stakeEthResponse';
41
43
  import { StakingRequest } from '../model/stakingRequest';
42
44
  import { TriggerValidatorWithdrawals } from '../model/triggerValidatorWithdrawals';
43
45
  import { UnwrapWstETH } from '../model/unwrapWstETH';
46
+ import { UpdateShareLimit } from '../model/updateShareLimit';
44
47
  import { ValidateConsolidationRequestsResponse } from '../model/validateConsolidationRequestsResponse';
45
48
  import { WithdrawFromVault } from '../model/withdrawFromVault';
46
49
  import { WrapStETH } from '../model/wrapStETH';
@@ -124,8 +127,195 @@ export class LidoWriteApi {
124
127
  this.interceptors.push(interceptor);
125
128
  }
126
129
 
130
+ /**
131
+ * Returns a partial transaction to call Dashboard.abandonDashboard(newOwner). Only allowed when the vault is fully disconnected from the vault hub (after disconnect has completed). Step 3 of the stVault disconnect guide (with Dashboard).
132
+ * @summary Abandon dashboard and transfer vault ownership (disconnect Step 3)
133
+ * @param contractsId The unique identifier of the Lido staking contracts
134
+ * @param abandonDashboardRequest
135
+ * @param simulateAddress Optional Ethereum address to simulate the transaction from.
136
+ */
137
+
138
+
139
+
140
+
141
+
142
+ public async abandonDashboard (contractsId: string, abandonDashboardRequest: AbandonDashboardRequest, simulateAddress?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: PartialTransaction, status: number }> {
143
+
144
+ const localVarPath = this.basePath + '/lidov3/{contractsId}/abandon-dashboard'
145
+ .replace('{' + 'contractsId' + '}', encodeURIComponent(String(contractsId)));
146
+
147
+ let localVarQueryParameters: any = {};
148
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
149
+ const produces = ['application/json'];
150
+ if (produces.indexOf('application/json') >= 0) {
151
+ localVarHeaderParams.Accept = 'application/json';
152
+ } else {
153
+ localVarHeaderParams.Accept = produces.join(',');
154
+ }
155
+ let localVarFormParams: any = {};
156
+
157
+
158
+ // Verify required parameter 'contractsId' is not null or undefined
159
+ if (contractsId === null || contractsId === undefined) {
160
+ throw new Error('Required parameter "contractsId" was null or undefined when calling abandonDashboard.');
161
+ }
162
+ // Verify required parameter 'abandonDashboardRequest' is not null or undefined
163
+ if (abandonDashboardRequest === null || abandonDashboardRequest === undefined) {
164
+ throw new Error('Required parameter "abandonDashboardRequest" was null or undefined when calling abandonDashboard.');
165
+ }
166
+
167
+
168
+
169
+ if (simulateAddress !== undefined) {
170
+ localVarQueryParameters['simulateAddress'] = ObjectSerializer.serialize(simulateAddress, "string");
171
+ }
172
+
173
+
174
+
175
+
176
+ (<any>Object).assign(localVarHeaderParams, options.headers);
177
+
178
+ let localVarUseFormData = false;
179
+
180
+
181
+
182
+ let localVarRequestOptions: localVarRequest.Options = {
183
+ method: 'POST',
184
+ qs: localVarQueryParameters,
185
+ headers: localVarHeaderParams,
186
+ uri: localVarPath,
187
+ useQuerystring: this._useQuerystring,
188
+ json: true,
189
+ body: ObjectSerializer.serialize(abandonDashboardRequest, "AbandonDashboardRequest")
190
+ };
191
+
192
+ let authenticationPromise = Promise.resolve();
193
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
194
+
195
+ let interceptorPromise = authenticationPromise;
196
+ for (const interceptor of this.interceptors) {
197
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
198
+ }
199
+
200
+ return interceptorPromise.then(() => {
201
+ if (Object.keys(localVarFormParams).length) {
202
+ if (localVarUseFormData) {
203
+ (<any>localVarRequestOptions).formData = localVarFormParams;
204
+ } else {
205
+ localVarRequestOptions.form = localVarFormParams;
206
+ }
207
+ }
208
+ return new Promise<{ body: PartialTransaction, status: number }>((resolve, reject) => {
209
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
210
+ if (error) {
211
+ console.error('API call error:', error);
212
+ reject(error);
213
+ } else {
214
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
215
+ body = ObjectSerializer.deserialize(body, "PartialTransaction");
216
+ resolve({ body: body, status: response.statusCode });
217
+ } else {
218
+ console.error('API response error:', response.statusCode);
219
+ resolve({ body: body, status: response.statusCode });
220
+ }
221
+ }
222
+ });
223
+ });
224
+ } )
225
+ }
226
+ /**
227
+ * Returns a partial transaction to call StakingVault.acceptOwnership(). Only allowed when the vault is fully disconnected from the vault hub. Step 4 of the stVault disconnect guide (with Dashboard), or Step 3 without Dashboard.
228
+ * @summary Accept staking vault ownership (disconnect Step 4)
229
+ * @param contractsId The unique identifier of the Lido staking contracts
230
+ * @param simulateAddress Optional Ethereum address to simulate the transaction from.
231
+ */
232
+
233
+
234
+
235
+
236
+
237
+ public async acceptStakingVaultOwnership (contractsId: string, simulateAddress?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: PartialTransaction, status: number }> {
238
+
239
+ const localVarPath = this.basePath + '/lidov3/{contractsId}/accept-staking-vault-ownership'
240
+ .replace('{' + 'contractsId' + '}', encodeURIComponent(String(contractsId)));
241
+
242
+ let localVarQueryParameters: any = {};
243
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
244
+ const produces = ['application/json'];
245
+ if (produces.indexOf('application/json') >= 0) {
246
+ localVarHeaderParams.Accept = 'application/json';
247
+ } else {
248
+ localVarHeaderParams.Accept = produces.join(',');
249
+ }
250
+ let localVarFormParams: any = {};
251
+
252
+
253
+ // Verify required parameter 'contractsId' is not null or undefined
254
+ if (contractsId === null || contractsId === undefined) {
255
+ throw new Error('Required parameter "contractsId" was null or undefined when calling acceptStakingVaultOwnership.');
256
+ }
257
+
258
+
259
+
260
+ if (simulateAddress !== undefined) {
261
+ localVarQueryParameters['simulateAddress'] = ObjectSerializer.serialize(simulateAddress, "string");
262
+ }
263
+
264
+
265
+
266
+
267
+ (<any>Object).assign(localVarHeaderParams, options.headers);
268
+
269
+ let localVarUseFormData = false;
270
+
271
+
272
+
273
+ let localVarRequestOptions: localVarRequest.Options = {
274
+ method: 'POST',
275
+ qs: localVarQueryParameters,
276
+ headers: localVarHeaderParams,
277
+ uri: localVarPath,
278
+ useQuerystring: this._useQuerystring,
279
+ json: true,
280
+ };
281
+
282
+ let authenticationPromise = Promise.resolve();
283
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
284
+
285
+ let interceptorPromise = authenticationPromise;
286
+ for (const interceptor of this.interceptors) {
287
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
288
+ }
289
+
290
+ return interceptorPromise.then(() => {
291
+ if (Object.keys(localVarFormParams).length) {
292
+ if (localVarUseFormData) {
293
+ (<any>localVarRequestOptions).formData = localVarFormParams;
294
+ } else {
295
+ localVarRequestOptions.form = localVarFormParams;
296
+ }
297
+ }
298
+ return new Promise<{ body: PartialTransaction, status: number }>((resolve, reject) => {
299
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
300
+ if (error) {
301
+ console.error('API call error:', error);
302
+ reject(error);
303
+ } else {
304
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
305
+ body = ObjectSerializer.deserialize(body, "PartialTransaction");
306
+ resolve({ body: body, status: response.statusCode });
307
+ } else {
308
+ console.error('API response error:', response.statusCode);
309
+ resolve({ body: body, status: response.statusCode });
310
+ }
311
+ }
312
+ });
313
+ });
314
+ } )
315
+ }
127
316
  /**
128
317
  *
318
+ * @summary Encode approval to burn stETH
129
319
  * @param contractsId The unique identifier of the Lido staking contracts
130
320
  * @param approveStETH
131
321
  */
@@ -217,6 +407,7 @@ export class LidoWriteApi {
217
407
  }
218
408
  /**
219
409
  *
410
+ * @summary Encode approval to burn wstETH
220
411
  * @param contractsId The unique identifier of the Lido staking contracts
221
412
  * @param approveWstETH
222
413
  */
@@ -308,6 +499,7 @@ export class LidoWriteApi {
308
499
  }
309
500
  /**
310
501
  *
502
+ * @summary Approve wrapping stETH to wstETH
311
503
  * @param approveStETH
312
504
  */
313
505
 
@@ -393,6 +585,7 @@ export class LidoWriteApi {
393
585
  }
394
586
  /**
395
587
  *
588
+ * @summary Encode burn shares transaction
396
589
  * @param contractsId The unique identifier of the Lido staking contracts
397
590
  * @param burnShares
398
591
  */
@@ -484,6 +677,7 @@ export class LidoWriteApi {
484
677
  }
485
678
  /**
486
679
  *
680
+ * @summary Encode burn stETH transaction
487
681
  * @param contractsId The unique identifier of the Lido staking contracts
488
682
  * @param burnStETH
489
683
  */
@@ -575,6 +769,7 @@ export class LidoWriteApi {
575
769
  }
576
770
  /**
577
771
  *
772
+ * @summary Encode burn wstETH transaction
578
773
  * @param contractsId The unique identifier of the Lido staking contracts
579
774
  * @param burnWstETH
580
775
  */
@@ -666,6 +861,99 @@ export class LidoWriteApi {
666
861
  }
667
862
  /**
668
863
  *
864
+ * @summary Encode change tier transaction
865
+ * @param contractsId The unique identifier of the Lido staking contracts
866
+ * @param changeTier
867
+ */
868
+
869
+
870
+
871
+
872
+
873
+ public async changeTier (contractsId: string, changeTier: ChangeTier, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: PartialTransaction, status: number }> {
874
+
875
+ const localVarPath = this.basePath + '/lidov3/{contractsId}/vault/change-tier'
876
+ .replace('{' + 'contractsId' + '}', encodeURIComponent(String(contractsId)));
877
+
878
+ let localVarQueryParameters: any = {};
879
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
880
+ const produces = ['application/json'];
881
+ if (produces.indexOf('application/json') >= 0) {
882
+ localVarHeaderParams.Accept = 'application/json';
883
+ } else {
884
+ localVarHeaderParams.Accept = produces.join(',');
885
+ }
886
+ let localVarFormParams: any = {};
887
+
888
+
889
+ // Verify required parameter 'contractsId' is not null or undefined
890
+ if (contractsId === null || contractsId === undefined) {
891
+ throw new Error('Required parameter "contractsId" was null or undefined when calling changeTier.');
892
+ }
893
+ // Verify required parameter 'changeTier' is not null or undefined
894
+ if (changeTier === null || changeTier === undefined) {
895
+ throw new Error('Required parameter "changeTier" was null or undefined when calling changeTier.');
896
+ }
897
+
898
+
899
+
900
+
901
+
902
+
903
+
904
+ (<any>Object).assign(localVarHeaderParams, options.headers);
905
+
906
+ let localVarUseFormData = false;
907
+
908
+
909
+
910
+ let localVarRequestOptions: localVarRequest.Options = {
911
+ method: 'POST',
912
+ qs: localVarQueryParameters,
913
+ headers: localVarHeaderParams,
914
+ uri: localVarPath,
915
+ useQuerystring: this._useQuerystring,
916
+ json: true,
917
+ body: ObjectSerializer.serialize(changeTier, "ChangeTier")
918
+ };
919
+
920
+ let authenticationPromise = Promise.resolve();
921
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
922
+
923
+ let interceptorPromise = authenticationPromise;
924
+ for (const interceptor of this.interceptors) {
925
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
926
+ }
927
+
928
+ return interceptorPromise.then(() => {
929
+ if (Object.keys(localVarFormParams).length) {
930
+ if (localVarUseFormData) {
931
+ (<any>localVarRequestOptions).formData = localVarFormParams;
932
+ } else {
933
+ localVarRequestOptions.form = localVarFormParams;
934
+ }
935
+ }
936
+ return new Promise<{ body: PartialTransaction, status: number }>((resolve, reject) => {
937
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
938
+ if (error) {
939
+ console.error('API call error:', error);
940
+ reject(error);
941
+ } else {
942
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
943
+ body = ObjectSerializer.deserialize(body, "PartialTransaction");
944
+ resolve({ body: body, status: response.statusCode });
945
+ } else {
946
+ console.error('API response error:', response.statusCode);
947
+ resolve({ body: body, status: response.statusCode });
948
+ }
949
+ }
950
+ });
951
+ });
952
+ } )
953
+ }
954
+ /**
955
+ *
956
+ * @summary Collect ERC20 from vault
669
957
  * @param contractsId The unique identifier of the Lido staking contracts
670
958
  * @param collectERC20FromVault
671
959
  */
@@ -718,7 +1006,97 @@ export class LidoWriteApi {
718
1006
  uri: localVarPath,
719
1007
  useQuerystring: this._useQuerystring,
720
1008
  json: true,
721
- body: ObjectSerializer.serialize(collectERC20FromVault, "CollectERC20FromVault")
1009
+ body: ObjectSerializer.serialize(collectERC20FromVault, "CollectERC20FromVault")
1010
+ };
1011
+
1012
+ let authenticationPromise = Promise.resolve();
1013
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1014
+
1015
+ let interceptorPromise = authenticationPromise;
1016
+ for (const interceptor of this.interceptors) {
1017
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1018
+ }
1019
+
1020
+ return interceptorPromise.then(() => {
1021
+ if (Object.keys(localVarFormParams).length) {
1022
+ if (localVarUseFormData) {
1023
+ (<any>localVarRequestOptions).formData = localVarFormParams;
1024
+ } else {
1025
+ localVarRequestOptions.form = localVarFormParams;
1026
+ }
1027
+ }
1028
+ return new Promise<{ body: PartialTransaction, status: number }>((resolve, reject) => {
1029
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
1030
+ if (error) {
1031
+ console.error('API call error:', error);
1032
+ reject(error);
1033
+ } else {
1034
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1035
+ body = ObjectSerializer.deserialize(body, "PartialTransaction");
1036
+ resolve({ body: body, status: response.statusCode });
1037
+ } else {
1038
+ console.error('API response error:', response.statusCode);
1039
+ resolve({ body: body, status: response.statusCode });
1040
+ }
1041
+ }
1042
+ });
1043
+ });
1044
+ } )
1045
+ }
1046
+ /**
1047
+ * Returns a partial transaction to connect the vault to the vault hub (payable with 1 ETH). Only allowed when the vault is not already connected; returns 400 if already connected.
1048
+ * @summary Connect to vault hub
1049
+ * @param contractsId The unique identifier of the Lido staking contracts
1050
+ * @param simulateAddress Optional Ethereum address to simulate the transaction from.
1051
+ */
1052
+
1053
+
1054
+
1055
+
1056
+
1057
+ public async connectToVaultHub (contractsId: string, simulateAddress?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: PartialTransaction, status: number }> {
1058
+
1059
+ const localVarPath = this.basePath + '/lidov3/{contractsId}/connect-to-vault-hub'
1060
+ .replace('{' + 'contractsId' + '}', encodeURIComponent(String(contractsId)));
1061
+
1062
+ let localVarQueryParameters: any = {};
1063
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1064
+ const produces = ['application/json'];
1065
+ if (produces.indexOf('application/json') >= 0) {
1066
+ localVarHeaderParams.Accept = 'application/json';
1067
+ } else {
1068
+ localVarHeaderParams.Accept = produces.join(',');
1069
+ }
1070
+ let localVarFormParams: any = {};
1071
+
1072
+
1073
+ // Verify required parameter 'contractsId' is not null or undefined
1074
+ if (contractsId === null || contractsId === undefined) {
1075
+ throw new Error('Required parameter "contractsId" was null or undefined when calling connectToVaultHub.');
1076
+ }
1077
+
1078
+
1079
+
1080
+ if (simulateAddress !== undefined) {
1081
+ localVarQueryParameters['simulateAddress'] = ObjectSerializer.serialize(simulateAddress, "string");
1082
+ }
1083
+
1084
+
1085
+
1086
+
1087
+ (<any>Object).assign(localVarHeaderParams, options.headers);
1088
+
1089
+ let localVarUseFormData = false;
1090
+
1091
+
1092
+
1093
+ let localVarRequestOptions: localVarRequest.Options = {
1094
+ method: 'POST',
1095
+ qs: localVarQueryParameters,
1096
+ headers: localVarHeaderParams,
1097
+ uri: localVarPath,
1098
+ useQuerystring: this._useQuerystring,
1099
+ json: true,
722
1100
  };
723
1101
 
724
1102
  let authenticationPromise = Promise.resolve();
@@ -849,6 +1227,7 @@ export class LidoWriteApi {
849
1227
  }
850
1228
  /**
851
1229
  *
1230
+ * @summary Fund vault with ETH
852
1231
  * @param contractsId The unique identifier of the Lido staking contracts
853
1232
  * @param fundVault
854
1233
  */
@@ -939,16 +1318,17 @@ export class LidoWriteApi {
939
1318
  } )
940
1319
  }
941
1320
  /**
942
- *
943
- * @summary Update the lazy oracle report for a specific Lido staking contract set, returns the calldata needed to submit the updateVaultData transaction to the lazy oracle contract.
1321
+ * Returns the calldata needed to submit the updateVaultData transaction to the lazy oracle contract for a specific Lido staking contract set.
1322
+ * @summary Update lazy oracle report
944
1323
  * @param contractsId The unique identifier of the Lido staking contracts
1324
+ * @param simulateAddress Optional Ethereum address to simulate the transaction from. If provided, the transaction will be simulated and any revert errors will be returned.
945
1325
  */
946
1326
 
947
1327
 
948
1328
 
949
1329
 
950
1330
 
951
- public async getLazyOracleReportCallData (contractsId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: GetLazyOracleReportCallData200Response, status: number }> {
1331
+ public async getLazyOracleReportCallData (contractsId: string, simulateAddress?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: GetLazyOracleReportCallData200Response, status: number }> {
952
1332
 
953
1333
  const localVarPath = this.basePath + '/lidov3/{contractsId}/update-vault-report'
954
1334
  .replace('{' + 'contractsId' + '}', encodeURIComponent(String(contractsId)));
@@ -971,6 +1351,9 @@ export class LidoWriteApi {
971
1351
 
972
1352
 
973
1353
 
1354
+ if (simulateAddress !== undefined) {
1355
+ localVarQueryParameters['simulateAddress'] = ObjectSerializer.serialize(simulateAddress, "string");
1356
+ }
974
1357
 
975
1358
 
976
1359
 
@@ -1118,6 +1501,7 @@ export class LidoWriteApi {
1118
1501
  }
1119
1502
  /**
1120
1503
  *
1504
+ * @summary Grant vault role
1121
1505
  * @param contractsId The unique identifier of the Lido staking contracts
1122
1506
  * @param grantRole
1123
1507
  */
@@ -1209,7 +1593,7 @@ export class LidoWriteApi {
1209
1593
  }
1210
1594
  /**
1211
1595
  *
1212
- * @summary List staking request IDs for a specific Lido staking contract set
1596
+ * @summary List staking request IDs for a vault
1213
1597
  * @param contractsId The unique identifier of the Lido staking contracts
1214
1598
  * @param status
1215
1599
  */
@@ -1299,6 +1683,7 @@ export class LidoWriteApi {
1299
1683
  }
1300
1684
  /**
1301
1685
  *
1686
+ * @summary Encode mint shares transaction
1302
1687
  * @param contractsId The unique identifier of the Lido staking contracts
1303
1688
  * @param mintShares
1304
1689
  */
@@ -1390,6 +1775,7 @@ export class LidoWriteApi {
1390
1775
  }
1391
1776
  /**
1392
1777
  *
1778
+ * @summary Encode mint stETH transaction
1393
1779
  * @param contractsId The unique identifier of the Lido staking contracts
1394
1780
  * @param mintStETH
1395
1781
  */
@@ -1481,6 +1867,7 @@ export class LidoWriteApi {
1481
1867
  }
1482
1868
  /**
1483
1869
  *
1870
+ * @summary Encode mint wstETH transaction
1484
1871
  * @param contractsId The unique identifier of the Lido staking contracts
1485
1872
  * @param mintWstETH
1486
1873
  */
@@ -1572,6 +1959,7 @@ export class LidoWriteApi {
1572
1959
  }
1573
1960
  /**
1574
1961
  *
1962
+ * @summary Rebalance vault with ETH
1575
1963
  * @param contractsId The unique identifier of the Lido staking contracts
1576
1964
  * @param rebalanceVaultWithEther
1577
1965
  */
@@ -1663,6 +2051,7 @@ export class LidoWriteApi {
1663
2051
  }
1664
2052
  /**
1665
2053
  *
2054
+ * @summary Rebalance vault with shares
1666
2055
  * @param contractsId The unique identifier of the Lido staking contracts
1667
2056
  * @param rebalanceVaultWithShares
1668
2057
  */
@@ -1754,6 +2143,7 @@ export class LidoWriteApi {
1754
2143
  }
1755
2144
  /**
1756
2145
  *
2146
+ * @summary Recover ERC20 from vault
1757
2147
  * @param contractsId The unique identifier of the Lido staking contracts
1758
2148
  * @param recoverERC20
1759
2149
  */
@@ -1845,6 +2235,7 @@ export class LidoWriteApi {
1845
2235
  }
1846
2236
  /**
1847
2237
  *
2238
+ * @summary Revoke vault role
1848
2239
  * @param contractsId The unique identifier of the Lido staking contracts
1849
2240
  * @param revokeRole
1850
2241
  */
@@ -1935,8 +2326,8 @@ export class LidoWriteApi {
1935
2326
  } )
1936
2327
  }
1937
2328
  /**
1938
- *
1939
- * @summary Stake ETH using a specific Lido staking contract set. Returns the call data needed to submit the unguaranteed deposit transaction to the dashboard contract.
2329
+ * Returns the call data needed to submit the unguaranteed deposit transaction to the dashboard contract.
2330
+ * @summary Stake ETH with a Lido staking vault
1940
2331
  * @param contractsId The unique identifier of the Lido staking contracts
1941
2332
  * @param stakeEthRequest
1942
2333
  */
@@ -2028,6 +2419,97 @@ export class LidoWriteApi {
2028
2419
  }
2029
2420
  /**
2030
2421
  *
2422
+ * @summary Encode sync tier transaction
2423
+ * @param contractsId The unique identifier of the Lido staking contracts
2424
+ * @param simulateAddress Optional Ethereum address to simulate the transaction from. If provided, the transaction will be simulated and any revert errors will be returned.
2425
+ */
2426
+
2427
+
2428
+
2429
+
2430
+
2431
+ public async syncTier (contractsId: string, simulateAddress?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: PartialTransaction, status: number }> {
2432
+
2433
+ const localVarPath = this.basePath + '/lidov3/{contractsId}/vault/sync-tier'
2434
+ .replace('{' + 'contractsId' + '}', encodeURIComponent(String(contractsId)));
2435
+
2436
+ let localVarQueryParameters: any = {};
2437
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
2438
+ const produces = ['application/json'];
2439
+ if (produces.indexOf('application/json') >= 0) {
2440
+ localVarHeaderParams.Accept = 'application/json';
2441
+ } else {
2442
+ localVarHeaderParams.Accept = produces.join(',');
2443
+ }
2444
+ let localVarFormParams: any = {};
2445
+
2446
+
2447
+ // Verify required parameter 'contractsId' is not null or undefined
2448
+ if (contractsId === null || contractsId === undefined) {
2449
+ throw new Error('Required parameter "contractsId" was null or undefined when calling syncTier.');
2450
+ }
2451
+
2452
+
2453
+
2454
+ if (simulateAddress !== undefined) {
2455
+ localVarQueryParameters['simulateAddress'] = ObjectSerializer.serialize(simulateAddress, "string");
2456
+ }
2457
+
2458
+
2459
+
2460
+
2461
+ (<any>Object).assign(localVarHeaderParams, options.headers);
2462
+
2463
+ let localVarUseFormData = false;
2464
+
2465
+
2466
+
2467
+ let localVarRequestOptions: localVarRequest.Options = {
2468
+ method: 'POST',
2469
+ qs: localVarQueryParameters,
2470
+ headers: localVarHeaderParams,
2471
+ uri: localVarPath,
2472
+ useQuerystring: this._useQuerystring,
2473
+ json: true,
2474
+ };
2475
+
2476
+ let authenticationPromise = Promise.resolve();
2477
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
2478
+
2479
+ let interceptorPromise = authenticationPromise;
2480
+ for (const interceptor of this.interceptors) {
2481
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
2482
+ }
2483
+
2484
+ return interceptorPromise.then(() => {
2485
+ if (Object.keys(localVarFormParams).length) {
2486
+ if (localVarUseFormData) {
2487
+ (<any>localVarRequestOptions).formData = localVarFormParams;
2488
+ } else {
2489
+ localVarRequestOptions.form = localVarFormParams;
2490
+ }
2491
+ }
2492
+ return new Promise<{ body: PartialTransaction, status: number }>((resolve, reject) => {
2493
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
2494
+ if (error) {
2495
+ console.error('API call error:', error);
2496
+ reject(error);
2497
+ } else {
2498
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
2499
+ body = ObjectSerializer.deserialize(body, "PartialTransaction");
2500
+ resolve({ body: body, status: response.statusCode });
2501
+ } else {
2502
+ console.error('API response error:', response.statusCode);
2503
+ resolve({ body: body, status: response.statusCode });
2504
+ }
2505
+ }
2506
+ });
2507
+ });
2508
+ } )
2509
+ }
2510
+ /**
2511
+ * Returns a partial transaction to trigger EIP-7002 validator withdrawals. When the vault is connected, uses Dashboard. When the vault is disconnected (e.g. after the disconnect wizard), uses StakingVault.triggerValidatorWithdrawals.
2512
+ * @summary Trigger validator withdrawals
2031
2513
  * @param contractsId The unique identifier of the Lido staking contracts
2032
2514
  * @param triggerValidatorWithdrawals
2033
2515
  */
@@ -2119,6 +2601,7 @@ export class LidoWriteApi {
2119
2601
  }
2120
2602
  /**
2121
2603
  *
2604
+ * @summary Unwrap wstETH to stETH
2122
2605
  * @param unwrapWstETH
2123
2606
  */
2124
2607
 
@@ -2204,7 +2687,99 @@ export class LidoWriteApi {
2204
2687
  }
2205
2688
  /**
2206
2689
  *
2207
- * @summary Validate consolidation requests and return validator balances and signing wallet information
2690
+ * @summary Encode update share limit transaction
2691
+ * @param contractsId The unique identifier of the Lido staking contracts
2692
+ * @param updateShareLimit
2693
+ */
2694
+
2695
+
2696
+
2697
+
2698
+
2699
+ public async updateShareLimit (contractsId: string, updateShareLimit: UpdateShareLimit, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: PartialTransaction, status: number }> {
2700
+
2701
+ const localVarPath = this.basePath + '/lidov3/{contractsId}/vault/update-share-limit'
2702
+ .replace('{' + 'contractsId' + '}', encodeURIComponent(String(contractsId)));
2703
+
2704
+ let localVarQueryParameters: any = {};
2705
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
2706
+ const produces = ['application/json'];
2707
+ if (produces.indexOf('application/json') >= 0) {
2708
+ localVarHeaderParams.Accept = 'application/json';
2709
+ } else {
2710
+ localVarHeaderParams.Accept = produces.join(',');
2711
+ }
2712
+ let localVarFormParams: any = {};
2713
+
2714
+
2715
+ // Verify required parameter 'contractsId' is not null or undefined
2716
+ if (contractsId === null || contractsId === undefined) {
2717
+ throw new Error('Required parameter "contractsId" was null or undefined when calling updateShareLimit.');
2718
+ }
2719
+ // Verify required parameter 'updateShareLimit' is not null or undefined
2720
+ if (updateShareLimit === null || updateShareLimit === undefined) {
2721
+ throw new Error('Required parameter "updateShareLimit" was null or undefined when calling updateShareLimit.');
2722
+ }
2723
+
2724
+
2725
+
2726
+
2727
+
2728
+
2729
+
2730
+ (<any>Object).assign(localVarHeaderParams, options.headers);
2731
+
2732
+ let localVarUseFormData = false;
2733
+
2734
+
2735
+
2736
+ let localVarRequestOptions: localVarRequest.Options = {
2737
+ method: 'POST',
2738
+ qs: localVarQueryParameters,
2739
+ headers: localVarHeaderParams,
2740
+ uri: localVarPath,
2741
+ useQuerystring: this._useQuerystring,
2742
+ json: true,
2743
+ body: ObjectSerializer.serialize(updateShareLimit, "UpdateShareLimit")
2744
+ };
2745
+
2746
+ let authenticationPromise = Promise.resolve();
2747
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
2748
+
2749
+ let interceptorPromise = authenticationPromise;
2750
+ for (const interceptor of this.interceptors) {
2751
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
2752
+ }
2753
+
2754
+ return interceptorPromise.then(() => {
2755
+ if (Object.keys(localVarFormParams).length) {
2756
+ if (localVarUseFormData) {
2757
+ (<any>localVarRequestOptions).formData = localVarFormParams;
2758
+ } else {
2759
+ localVarRequestOptions.form = localVarFormParams;
2760
+ }
2761
+ }
2762
+ return new Promise<{ body: PartialTransaction, status: number }>((resolve, reject) => {
2763
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
2764
+ if (error) {
2765
+ console.error('API call error:', error);
2766
+ reject(error);
2767
+ } else {
2768
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
2769
+ body = ObjectSerializer.deserialize(body, "PartialTransaction");
2770
+ resolve({ body: body, status: response.statusCode });
2771
+ } else {
2772
+ console.error('API response error:', response.statusCode);
2773
+ resolve({ body: body, status: response.statusCode });
2774
+ }
2775
+ }
2776
+ });
2777
+ });
2778
+ } )
2779
+ }
2780
+ /**
2781
+ * Returns validator balances and signing wallet information for the given consolidation requests.
2782
+ * @summary Validate consolidation requests
2208
2783
  * @param contractsId The unique identifier of the Lido staking contracts
2209
2784
  * @param consolidateValidators
2210
2785
  */
@@ -2295,7 +2870,98 @@ export class LidoWriteApi {
2295
2870
  } )
2296
2871
  }
2297
2872
  /**
2298
- *
2873
+ * Returns a partial transaction to voluntarily disconnect the vault from the vault hub. This is the only write operation allowed when the vault is already disconnected.
2874
+ * @summary Voluntary disconnect from vault hub
2875
+ * @param contractsId The unique identifier of the Lido staking contracts
2876
+ * @param simulateAddress Optional Ethereum address to simulate the transaction from.
2877
+ */
2878
+
2879
+
2880
+
2881
+
2882
+
2883
+ public async voluntaryDisconnectFromVaultHub (contractsId: string, simulateAddress?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: PartialTransaction, status: number }> {
2884
+
2885
+ const localVarPath = this.basePath + '/lidov3/{contractsId}/voluntary-disconnect'
2886
+ .replace('{' + 'contractsId' + '}', encodeURIComponent(String(contractsId)));
2887
+
2888
+ let localVarQueryParameters: any = {};
2889
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
2890
+ const produces = ['application/json'];
2891
+ if (produces.indexOf('application/json') >= 0) {
2892
+ localVarHeaderParams.Accept = 'application/json';
2893
+ } else {
2894
+ localVarHeaderParams.Accept = produces.join(',');
2895
+ }
2896
+ let localVarFormParams: any = {};
2897
+
2898
+
2899
+ // Verify required parameter 'contractsId' is not null or undefined
2900
+ if (contractsId === null || contractsId === undefined) {
2901
+ throw new Error('Required parameter "contractsId" was null or undefined when calling voluntaryDisconnectFromVaultHub.');
2902
+ }
2903
+
2904
+
2905
+
2906
+ if (simulateAddress !== undefined) {
2907
+ localVarQueryParameters['simulateAddress'] = ObjectSerializer.serialize(simulateAddress, "string");
2908
+ }
2909
+
2910
+
2911
+
2912
+
2913
+ (<any>Object).assign(localVarHeaderParams, options.headers);
2914
+
2915
+ let localVarUseFormData = false;
2916
+
2917
+
2918
+
2919
+ let localVarRequestOptions: localVarRequest.Options = {
2920
+ method: 'POST',
2921
+ qs: localVarQueryParameters,
2922
+ headers: localVarHeaderParams,
2923
+ uri: localVarPath,
2924
+ useQuerystring: this._useQuerystring,
2925
+ json: true,
2926
+ };
2927
+
2928
+ let authenticationPromise = Promise.resolve();
2929
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
2930
+
2931
+ let interceptorPromise = authenticationPromise;
2932
+ for (const interceptor of this.interceptors) {
2933
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
2934
+ }
2935
+
2936
+ return interceptorPromise.then(() => {
2937
+ if (Object.keys(localVarFormParams).length) {
2938
+ if (localVarUseFormData) {
2939
+ (<any>localVarRequestOptions).formData = localVarFormParams;
2940
+ } else {
2941
+ localVarRequestOptions.form = localVarFormParams;
2942
+ }
2943
+ }
2944
+ return new Promise<{ body: PartialTransaction, status: number }>((resolve, reject) => {
2945
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
2946
+ if (error) {
2947
+ console.error('API call error:', error);
2948
+ reject(error);
2949
+ } else {
2950
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
2951
+ body = ObjectSerializer.deserialize(body, "PartialTransaction");
2952
+ resolve({ body: body, status: response.statusCode });
2953
+ } else {
2954
+ console.error('API response error:', response.statusCode);
2955
+ resolve({ body: body, status: response.statusCode });
2956
+ }
2957
+ }
2958
+ });
2959
+ });
2960
+ } )
2961
+ }
2962
+ /**
2963
+ * Returns a partial transaction to withdraw ETH. When the vault is connected, uses Dashboard.withdraw. When the vault is disconnected (e.g. after the disconnect wizard), uses StakingVault.withdraw(recipient, amount).
2964
+ * @summary Withdraw from vault
2299
2965
  * @param contractsId The unique identifier of the Lido staking contracts
2300
2966
  * @param withdrawFromVault
2301
2967
  */
@@ -2387,6 +3053,7 @@ export class LidoWriteApi {
2387
3053
  }
2388
3054
  /**
2389
3055
  *
3056
+ * @summary Wrap stETH to wstETH
2390
3057
  * @param wrapStETH
2391
3058
  */
2392
3059