@northstake/northstakeapi 1.0.39 → 1.0.40

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.
@@ -22,6 +22,7 @@ model/asset.ts
22
22
  model/burnShares.ts
23
23
  model/burnStETH.ts
24
24
  model/burnWstETH.ts
25
+ model/changeTier.ts
25
26
  model/collectERC20FromVault.ts
26
27
  model/consolidateValidators.ts
27
28
  model/consolidateValidatorsErrorResponse.ts
@@ -101,12 +102,14 @@ model/stakeEthResponse.ts
101
102
  model/stakeEthResponseDestructuredCallDataInner.ts
102
103
  model/stakingRequest.ts
103
104
  model/stakingRequestStatus.ts
105
+ model/supportedValidatorProvidersResponse.ts
104
106
  model/transaction.ts
105
107
  model/triggerValidatorWithdrawals.ts
106
108
  model/unwrapWstETH.ts
107
109
  model/updateLinkedWalletNameRequest.ts
108
110
  model/updateMemberRoleRequest.ts
109
111
  model/updateOrganizationNameRequest.ts
112
+ model/updateShareLimit.ts
110
113
  model/validateConsolidationRequestsResponse.ts
111
114
  model/validateConsolidationRequestsResponseConsolidationDetailsInner.ts
112
115
  model/validatorDailyReward.ts
@@ -116,7 +116,7 @@ export class LidoReadApi {
116
116
 
117
117
  /**
118
118
  *
119
- * @summary Get all dashboard role members for a specific Lido staking contract set
119
+ * @summary Get dashboard role members for a vault
120
120
  * @param contractsId The unique identifier of the Lido staking contracts
121
121
  */
122
122
 
@@ -202,7 +202,7 @@ export class LidoReadApi {
202
202
  }
203
203
  /**
204
204
  *
205
- * @summary Get the vault report data from the lazy oracle for a specific Lido staking contract set
205
+ * @summary Get vault report data from lazy oracle
206
206
  * @param contractsId The unique identifier of the Lido staking contracts
207
207
  */
208
208
 
@@ -388,7 +388,7 @@ export class LidoReadApi {
388
388
  }
389
389
  /**
390
390
  *
391
- * @summary Get the vault report data from the lazy oracle for a specific Lido staking contract set
391
+ * @summary Get quarantine info for a vault
392
392
  * @param contractsId The unique identifier of the Lido staking contracts
393
393
  */
394
394
 
@@ -22,6 +22,7 @@ import { ErrorWithTransactionResponse } from '../model/errorWithTransactionRespo
22
22
  import { LidoStakingContracts } from '../model/lidoStakingContracts';
23
23
  import { LidoStakingContractsWithData } from '../model/lidoStakingContractsWithData';
24
24
  import { RenameVaultRequest } from '../model/renameVaultRequest';
25
+ import { SupportedValidatorProvidersResponse } from '../model/supportedValidatorProvidersResponse';
25
26
  import { VaultCreationStartResponse } from '../model/vaultCreationStartResponse';
26
27
 
27
28
  import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
@@ -274,6 +275,86 @@ export class LidoStakingVaultsApi {
274
275
  });
275
276
  });
276
277
  } )
278
+ }
279
+ /**
280
+ * Returns the list of validator providers that the current user can use when creating a Lido staking vault.
281
+ * @summary List supported validator providers for vault creation
282
+ */
283
+
284
+
285
+
286
+
287
+
288
+ public async getSupportedValidatorProviders (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: SupportedValidatorProvidersResponse, status: number }> {
289
+
290
+ const localVarPath = this.basePath + '/lidov3/staking-vaults/supported-providers';
291
+
292
+ let localVarQueryParameters: any = {};
293
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
294
+ const produces = ['application/json'];
295
+ if (produces.indexOf('application/json') >= 0) {
296
+ localVarHeaderParams.Accept = 'application/json';
297
+ } else {
298
+ localVarHeaderParams.Accept = produces.join(',');
299
+ }
300
+ let localVarFormParams: any = {};
301
+
302
+
303
+
304
+
305
+
306
+
307
+
308
+
309
+
310
+ (<any>Object).assign(localVarHeaderParams, options.headers);
311
+
312
+ let localVarUseFormData = false;
313
+
314
+
315
+
316
+ let localVarRequestOptions: localVarRequest.Options = {
317
+ method: 'GET',
318
+ qs: localVarQueryParameters,
319
+ headers: localVarHeaderParams,
320
+ uri: localVarPath,
321
+ useQuerystring: this._useQuerystring,
322
+ json: true,
323
+ };
324
+
325
+ let authenticationPromise = Promise.resolve();
326
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
327
+
328
+ let interceptorPromise = authenticationPromise;
329
+ for (const interceptor of this.interceptors) {
330
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
331
+ }
332
+
333
+ return interceptorPromise.then(() => {
334
+ if (Object.keys(localVarFormParams).length) {
335
+ if (localVarUseFormData) {
336
+ (<any>localVarRequestOptions).formData = localVarFormParams;
337
+ } else {
338
+ localVarRequestOptions.form = localVarFormParams;
339
+ }
340
+ }
341
+ return new Promise<{ body: SupportedValidatorProvidersResponse, status: number }>((resolve, reject) => {
342
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
343
+ if (error) {
344
+ console.error('API call error:', error);
345
+ reject(error);
346
+ } else {
347
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
348
+ body = ObjectSerializer.deserialize(body, "SupportedValidatorProvidersResponse");
349
+ resolve({ body: body, status: response.statusCode });
350
+ } else {
351
+ console.error('API response error:', response.statusCode);
352
+ resolve({ body: body, status: response.statusCode });
353
+ }
354
+ }
355
+ });
356
+ });
357
+ } )
277
358
  }
278
359
  /**
279
360
  *
@@ -20,6 +20,7 @@ import { ApproveWstETH } from '../model/approveWstETH';
20
20
  import { BurnShares } from '../model/burnShares';
21
21
  import { BurnStETH } from '../model/burnStETH';
22
22
  import { BurnWstETH } from '../model/burnWstETH';
23
+ import { ChangeTier } from '../model/changeTier';
23
24
  import { CollectERC20FromVault } from '../model/collectERC20FromVault';
24
25
  import { ConsolidateValidators } from '../model/consolidateValidators';
25
26
  import { ConsolidateValidatorsErrorResponse } from '../model/consolidateValidatorsErrorResponse';
@@ -41,6 +42,7 @@ import { StakeEthResponse } from '../model/stakeEthResponse';
41
42
  import { StakingRequest } from '../model/stakingRequest';
42
43
  import { TriggerValidatorWithdrawals } from '../model/triggerValidatorWithdrawals';
43
44
  import { UnwrapWstETH } from '../model/unwrapWstETH';
45
+ import { UpdateShareLimit } from '../model/updateShareLimit';
44
46
  import { ValidateConsolidationRequestsResponse } from '../model/validateConsolidationRequestsResponse';
45
47
  import { WithdrawFromVault } from '../model/withdrawFromVault';
46
48
  import { WrapStETH } from '../model/wrapStETH';
@@ -126,6 +128,7 @@ export class LidoWriteApi {
126
128
 
127
129
  /**
128
130
  *
131
+ * @summary Encode approval to burn stETH
129
132
  * @param contractsId The unique identifier of the Lido staking contracts
130
133
  * @param approveStETH
131
134
  */
@@ -217,6 +220,7 @@ export class LidoWriteApi {
217
220
  }
218
221
  /**
219
222
  *
223
+ * @summary Encode approval to burn wstETH
220
224
  * @param contractsId The unique identifier of the Lido staking contracts
221
225
  * @param approveWstETH
222
226
  */
@@ -308,6 +312,7 @@ export class LidoWriteApi {
308
312
  }
309
313
  /**
310
314
  *
315
+ * @summary Approve wrapping stETH to wstETH
311
316
  * @param approveStETH
312
317
  */
313
318
 
@@ -393,6 +398,7 @@ export class LidoWriteApi {
393
398
  }
394
399
  /**
395
400
  *
401
+ * @summary Encode burn shares transaction
396
402
  * @param contractsId The unique identifier of the Lido staking contracts
397
403
  * @param burnShares
398
404
  */
@@ -484,6 +490,7 @@ export class LidoWriteApi {
484
490
  }
485
491
  /**
486
492
  *
493
+ * @summary Encode burn stETH transaction
487
494
  * @param contractsId The unique identifier of the Lido staking contracts
488
495
  * @param burnStETH
489
496
  */
@@ -575,6 +582,7 @@ export class LidoWriteApi {
575
582
  }
576
583
  /**
577
584
  *
585
+ * @summary Encode burn wstETH transaction
578
586
  * @param contractsId The unique identifier of the Lido staking contracts
579
587
  * @param burnWstETH
580
588
  */
@@ -666,6 +674,99 @@ export class LidoWriteApi {
666
674
  }
667
675
  /**
668
676
  *
677
+ * @summary Encode change tier transaction
678
+ * @param contractsId The unique identifier of the Lido staking contracts
679
+ * @param changeTier
680
+ */
681
+
682
+
683
+
684
+
685
+
686
+ public async changeTier (contractsId: string, changeTier: ChangeTier, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: PartialTransaction, status: number }> {
687
+
688
+ const localVarPath = this.basePath + '/lidov3/{contractsId}/vault/change-tier'
689
+ .replace('{' + 'contractsId' + '}', encodeURIComponent(String(contractsId)));
690
+
691
+ let localVarQueryParameters: any = {};
692
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
693
+ const produces = ['application/json'];
694
+ if (produces.indexOf('application/json') >= 0) {
695
+ localVarHeaderParams.Accept = 'application/json';
696
+ } else {
697
+ localVarHeaderParams.Accept = produces.join(',');
698
+ }
699
+ let localVarFormParams: any = {};
700
+
701
+
702
+ // Verify required parameter 'contractsId' is not null or undefined
703
+ if (contractsId === null || contractsId === undefined) {
704
+ throw new Error('Required parameter "contractsId" was null or undefined when calling changeTier.');
705
+ }
706
+ // Verify required parameter 'changeTier' is not null or undefined
707
+ if (changeTier === null || changeTier === undefined) {
708
+ throw new Error('Required parameter "changeTier" was null or undefined when calling changeTier.');
709
+ }
710
+
711
+
712
+
713
+
714
+
715
+
716
+
717
+ (<any>Object).assign(localVarHeaderParams, options.headers);
718
+
719
+ let localVarUseFormData = false;
720
+
721
+
722
+
723
+ let localVarRequestOptions: localVarRequest.Options = {
724
+ method: 'POST',
725
+ qs: localVarQueryParameters,
726
+ headers: localVarHeaderParams,
727
+ uri: localVarPath,
728
+ useQuerystring: this._useQuerystring,
729
+ json: true,
730
+ body: ObjectSerializer.serialize(changeTier, "ChangeTier")
731
+ };
732
+
733
+ let authenticationPromise = Promise.resolve();
734
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
735
+
736
+ let interceptorPromise = authenticationPromise;
737
+ for (const interceptor of this.interceptors) {
738
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
739
+ }
740
+
741
+ return interceptorPromise.then(() => {
742
+ if (Object.keys(localVarFormParams).length) {
743
+ if (localVarUseFormData) {
744
+ (<any>localVarRequestOptions).formData = localVarFormParams;
745
+ } else {
746
+ localVarRequestOptions.form = localVarFormParams;
747
+ }
748
+ }
749
+ return new Promise<{ body: PartialTransaction, status: number }>((resolve, reject) => {
750
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
751
+ if (error) {
752
+ console.error('API call error:', error);
753
+ reject(error);
754
+ } else {
755
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
756
+ body = ObjectSerializer.deserialize(body, "PartialTransaction");
757
+ resolve({ body: body, status: response.statusCode });
758
+ } else {
759
+ console.error('API response error:', response.statusCode);
760
+ resolve({ body: body, status: response.statusCode });
761
+ }
762
+ }
763
+ });
764
+ });
765
+ } )
766
+ }
767
+ /**
768
+ *
769
+ * @summary Collect ERC20 from vault
669
770
  * @param contractsId The unique identifier of the Lido staking contracts
670
771
  * @param collectERC20FromVault
671
772
  */
@@ -849,6 +950,7 @@ export class LidoWriteApi {
849
950
  }
850
951
  /**
851
952
  *
953
+ * @summary Fund vault with ETH
852
954
  * @param contractsId The unique identifier of the Lido staking contracts
853
955
  * @param fundVault
854
956
  */
@@ -939,16 +1041,17 @@ export class LidoWriteApi {
939
1041
  } )
940
1042
  }
941
1043
  /**
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.
1044
+ * Returns the calldata needed to submit the updateVaultData transaction to the lazy oracle contract for a specific Lido staking contract set.
1045
+ * @summary Update lazy oracle report
944
1046
  * @param contractsId The unique identifier of the Lido staking contracts
1047
+ * @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
1048
  */
946
1049
 
947
1050
 
948
1051
 
949
1052
 
950
1053
 
951
- public async getLazyOracleReportCallData (contractsId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: GetLazyOracleReportCallData200Response, status: number }> {
1054
+ public async getLazyOracleReportCallData (contractsId: string, simulateAddress?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: GetLazyOracleReportCallData200Response, status: number }> {
952
1055
 
953
1056
  const localVarPath = this.basePath + '/lidov3/{contractsId}/update-vault-report'
954
1057
  .replace('{' + 'contractsId' + '}', encodeURIComponent(String(contractsId)));
@@ -971,6 +1074,9 @@ export class LidoWriteApi {
971
1074
 
972
1075
 
973
1076
 
1077
+ if (simulateAddress !== undefined) {
1078
+ localVarQueryParameters['simulateAddress'] = ObjectSerializer.serialize(simulateAddress, "string");
1079
+ }
974
1080
 
975
1081
 
976
1082
 
@@ -1118,6 +1224,7 @@ export class LidoWriteApi {
1118
1224
  }
1119
1225
  /**
1120
1226
  *
1227
+ * @summary Grant vault role
1121
1228
  * @param contractsId The unique identifier of the Lido staking contracts
1122
1229
  * @param grantRole
1123
1230
  */
@@ -1209,7 +1316,7 @@ export class LidoWriteApi {
1209
1316
  }
1210
1317
  /**
1211
1318
  *
1212
- * @summary List staking request IDs for a specific Lido staking contract set
1319
+ * @summary List staking request IDs for a vault
1213
1320
  * @param contractsId The unique identifier of the Lido staking contracts
1214
1321
  * @param status
1215
1322
  */
@@ -1299,6 +1406,7 @@ export class LidoWriteApi {
1299
1406
  }
1300
1407
  /**
1301
1408
  *
1409
+ * @summary Encode mint shares transaction
1302
1410
  * @param contractsId The unique identifier of the Lido staking contracts
1303
1411
  * @param mintShares
1304
1412
  */
@@ -1390,6 +1498,7 @@ export class LidoWriteApi {
1390
1498
  }
1391
1499
  /**
1392
1500
  *
1501
+ * @summary Encode mint stETH transaction
1393
1502
  * @param contractsId The unique identifier of the Lido staking contracts
1394
1503
  * @param mintStETH
1395
1504
  */
@@ -1481,6 +1590,7 @@ export class LidoWriteApi {
1481
1590
  }
1482
1591
  /**
1483
1592
  *
1593
+ * @summary Encode mint wstETH transaction
1484
1594
  * @param contractsId The unique identifier of the Lido staking contracts
1485
1595
  * @param mintWstETH
1486
1596
  */
@@ -1572,6 +1682,7 @@ export class LidoWriteApi {
1572
1682
  }
1573
1683
  /**
1574
1684
  *
1685
+ * @summary Rebalance vault with ETH
1575
1686
  * @param contractsId The unique identifier of the Lido staking contracts
1576
1687
  * @param rebalanceVaultWithEther
1577
1688
  */
@@ -1663,6 +1774,7 @@ export class LidoWriteApi {
1663
1774
  }
1664
1775
  /**
1665
1776
  *
1777
+ * @summary Rebalance vault with shares
1666
1778
  * @param contractsId The unique identifier of the Lido staking contracts
1667
1779
  * @param rebalanceVaultWithShares
1668
1780
  */
@@ -1754,6 +1866,7 @@ export class LidoWriteApi {
1754
1866
  }
1755
1867
  /**
1756
1868
  *
1869
+ * @summary Recover ERC20 from vault
1757
1870
  * @param contractsId The unique identifier of the Lido staking contracts
1758
1871
  * @param recoverERC20
1759
1872
  */
@@ -1845,6 +1958,7 @@ export class LidoWriteApi {
1845
1958
  }
1846
1959
  /**
1847
1960
  *
1961
+ * @summary Revoke vault role
1848
1962
  * @param contractsId The unique identifier of the Lido staking contracts
1849
1963
  * @param revokeRole
1850
1964
  */
@@ -1935,8 +2049,8 @@ export class LidoWriteApi {
1935
2049
  } )
1936
2050
  }
1937
2051
  /**
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.
2052
+ * Returns the call data needed to submit the unguaranteed deposit transaction to the dashboard contract.
2053
+ * @summary Stake ETH with a Lido staking vault
1940
2054
  * @param contractsId The unique identifier of the Lido staking contracts
1941
2055
  * @param stakeEthRequest
1942
2056
  */
@@ -2028,6 +2142,97 @@ export class LidoWriteApi {
2028
2142
  }
2029
2143
  /**
2030
2144
  *
2145
+ * @summary Encode sync tier transaction
2146
+ * @param contractsId The unique identifier of the Lido staking contracts
2147
+ * @param simulateAddress Optional Ethereum address to simulate the transaction from. If provided, the transaction will be simulated and any revert errors will be returned.
2148
+ */
2149
+
2150
+
2151
+
2152
+
2153
+
2154
+ public async syncTier (contractsId: string, simulateAddress?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: PartialTransaction, status: number }> {
2155
+
2156
+ const localVarPath = this.basePath + '/lidov3/{contractsId}/vault/sync-tier'
2157
+ .replace('{' + 'contractsId' + '}', encodeURIComponent(String(contractsId)));
2158
+
2159
+ let localVarQueryParameters: any = {};
2160
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
2161
+ const produces = ['application/json'];
2162
+ if (produces.indexOf('application/json') >= 0) {
2163
+ localVarHeaderParams.Accept = 'application/json';
2164
+ } else {
2165
+ localVarHeaderParams.Accept = produces.join(',');
2166
+ }
2167
+ let localVarFormParams: any = {};
2168
+
2169
+
2170
+ // Verify required parameter 'contractsId' is not null or undefined
2171
+ if (contractsId === null || contractsId === undefined) {
2172
+ throw new Error('Required parameter "contractsId" was null or undefined when calling syncTier.');
2173
+ }
2174
+
2175
+
2176
+
2177
+ if (simulateAddress !== undefined) {
2178
+ localVarQueryParameters['simulateAddress'] = ObjectSerializer.serialize(simulateAddress, "string");
2179
+ }
2180
+
2181
+
2182
+
2183
+
2184
+ (<any>Object).assign(localVarHeaderParams, options.headers);
2185
+
2186
+ let localVarUseFormData = false;
2187
+
2188
+
2189
+
2190
+ let localVarRequestOptions: localVarRequest.Options = {
2191
+ method: 'POST',
2192
+ qs: localVarQueryParameters,
2193
+ headers: localVarHeaderParams,
2194
+ uri: localVarPath,
2195
+ useQuerystring: this._useQuerystring,
2196
+ json: true,
2197
+ };
2198
+
2199
+ let authenticationPromise = Promise.resolve();
2200
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
2201
+
2202
+ let interceptorPromise = authenticationPromise;
2203
+ for (const interceptor of this.interceptors) {
2204
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
2205
+ }
2206
+
2207
+ return interceptorPromise.then(() => {
2208
+ if (Object.keys(localVarFormParams).length) {
2209
+ if (localVarUseFormData) {
2210
+ (<any>localVarRequestOptions).formData = localVarFormParams;
2211
+ } else {
2212
+ localVarRequestOptions.form = localVarFormParams;
2213
+ }
2214
+ }
2215
+ return new Promise<{ body: PartialTransaction, status: number }>((resolve, reject) => {
2216
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
2217
+ if (error) {
2218
+ console.error('API call error:', error);
2219
+ reject(error);
2220
+ } else {
2221
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
2222
+ body = ObjectSerializer.deserialize(body, "PartialTransaction");
2223
+ resolve({ body: body, status: response.statusCode });
2224
+ } else {
2225
+ console.error('API response error:', response.statusCode);
2226
+ resolve({ body: body, status: response.statusCode });
2227
+ }
2228
+ }
2229
+ });
2230
+ });
2231
+ } )
2232
+ }
2233
+ /**
2234
+ *
2235
+ * @summary Trigger validator withdrawals
2031
2236
  * @param contractsId The unique identifier of the Lido staking contracts
2032
2237
  * @param triggerValidatorWithdrawals
2033
2238
  */
@@ -2119,6 +2324,7 @@ export class LidoWriteApi {
2119
2324
  }
2120
2325
  /**
2121
2326
  *
2327
+ * @summary Unwrap wstETH to stETH
2122
2328
  * @param unwrapWstETH
2123
2329
  */
2124
2330
 
@@ -2204,7 +2410,99 @@ export class LidoWriteApi {
2204
2410
  }
2205
2411
  /**
2206
2412
  *
2207
- * @summary Validate consolidation requests and return validator balances and signing wallet information
2413
+ * @summary Encode update share limit transaction
2414
+ * @param contractsId The unique identifier of the Lido staking contracts
2415
+ * @param updateShareLimit
2416
+ */
2417
+
2418
+
2419
+
2420
+
2421
+
2422
+ public async updateShareLimit (contractsId: string, updateShareLimit: UpdateShareLimit, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: PartialTransaction, status: number }> {
2423
+
2424
+ const localVarPath = this.basePath + '/lidov3/{contractsId}/vault/update-share-limit'
2425
+ .replace('{' + 'contractsId' + '}', encodeURIComponent(String(contractsId)));
2426
+
2427
+ let localVarQueryParameters: any = {};
2428
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
2429
+ const produces = ['application/json'];
2430
+ if (produces.indexOf('application/json') >= 0) {
2431
+ localVarHeaderParams.Accept = 'application/json';
2432
+ } else {
2433
+ localVarHeaderParams.Accept = produces.join(',');
2434
+ }
2435
+ let localVarFormParams: any = {};
2436
+
2437
+
2438
+ // Verify required parameter 'contractsId' is not null or undefined
2439
+ if (contractsId === null || contractsId === undefined) {
2440
+ throw new Error('Required parameter "contractsId" was null or undefined when calling updateShareLimit.');
2441
+ }
2442
+ // Verify required parameter 'updateShareLimit' is not null or undefined
2443
+ if (updateShareLimit === null || updateShareLimit === undefined) {
2444
+ throw new Error('Required parameter "updateShareLimit" was null or undefined when calling updateShareLimit.');
2445
+ }
2446
+
2447
+
2448
+
2449
+
2450
+
2451
+
2452
+
2453
+ (<any>Object).assign(localVarHeaderParams, options.headers);
2454
+
2455
+ let localVarUseFormData = false;
2456
+
2457
+
2458
+
2459
+ let localVarRequestOptions: localVarRequest.Options = {
2460
+ method: 'POST',
2461
+ qs: localVarQueryParameters,
2462
+ headers: localVarHeaderParams,
2463
+ uri: localVarPath,
2464
+ useQuerystring: this._useQuerystring,
2465
+ json: true,
2466
+ body: ObjectSerializer.serialize(updateShareLimit, "UpdateShareLimit")
2467
+ };
2468
+
2469
+ let authenticationPromise = Promise.resolve();
2470
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
2471
+
2472
+ let interceptorPromise = authenticationPromise;
2473
+ for (const interceptor of this.interceptors) {
2474
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
2475
+ }
2476
+
2477
+ return interceptorPromise.then(() => {
2478
+ if (Object.keys(localVarFormParams).length) {
2479
+ if (localVarUseFormData) {
2480
+ (<any>localVarRequestOptions).formData = localVarFormParams;
2481
+ } else {
2482
+ localVarRequestOptions.form = localVarFormParams;
2483
+ }
2484
+ }
2485
+ return new Promise<{ body: PartialTransaction, status: number }>((resolve, reject) => {
2486
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
2487
+ if (error) {
2488
+ console.error('API call error:', error);
2489
+ reject(error);
2490
+ } else {
2491
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
2492
+ body = ObjectSerializer.deserialize(body, "PartialTransaction");
2493
+ resolve({ body: body, status: response.statusCode });
2494
+ } else {
2495
+ console.error('API response error:', response.statusCode);
2496
+ resolve({ body: body, status: response.statusCode });
2497
+ }
2498
+ }
2499
+ });
2500
+ });
2501
+ } )
2502
+ }
2503
+ /**
2504
+ * Returns validator balances and signing wallet information for the given consolidation requests.
2505
+ * @summary Validate consolidation requests
2208
2506
  * @param contractsId The unique identifier of the Lido staking contracts
2209
2507
  * @param consolidateValidators
2210
2508
  */
@@ -2296,6 +2594,7 @@ export class LidoWriteApi {
2296
2594
  }
2297
2595
  /**
2298
2596
  *
2597
+ * @summary Withdraw from vault
2299
2598
  * @param contractsId The unique identifier of the Lido staking contracts
2300
2599
  * @param withdrawFromVault
2301
2600
  */
@@ -2387,6 +2686,7 @@ export class LidoWriteApi {
2387
2686
  }
2388
2687
  /**
2389
2688
  *
2689
+ * @summary Wrap stETH to wstETH
2390
2690
  * @param wrapStETH
2391
2691
  */
2392
2692
 
package/api.ts CHANGED
@@ -19,6 +19,7 @@ export * from './model/./asset';
19
19
  export * from './model/./burnShares';
20
20
  export * from './model/./burnStETH';
21
21
  export * from './model/./burnWstETH';
22
+ export * from './model/./changeTier';
22
23
  export * from './model/./collectERC20FromVault';
23
24
  export * from './model/./consolidateValidators';
24
25
  export * from './model/./consolidateValidatorsErrorResponse';
@@ -97,12 +98,14 @@ export * from './model/./stakeEthResponse';
97
98
  export * from './model/./stakeEthResponseDestructuredCallDataInner';
98
99
  export * from './model/./stakingRequest';
99
100
  export * from './model/./stakingRequestStatus';
101
+ export * from './model/./supportedValidatorProvidersResponse';
100
102
  export * from './model/./transaction';
101
103
  export * from './model/./triggerValidatorWithdrawals';
102
104
  export * from './model/./unwrapWstETH';
103
105
  export * from './model/./updateLinkedWalletNameRequest';
104
106
  export * from './model/./updateMemberRoleRequest';
105
107
  export * from './model/./updateOrganizationNameRequest';
108
+ export * from './model/./updateShareLimit';
106
109
  export * from './model/./validateConsolidationRequestsResponse';
107
110
  export * from './model/./validateConsolidationRequestsResponseConsolidationDetailsInner';
108
111
  export * from './model/./validatorDailyReward';