@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,11 +9,13 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { AbandonDashboardRequest } from '../model/abandonDashboardRequest';
|
|
12
13
|
import { ApproveStETH } from '../model/approveStETH';
|
|
13
14
|
import { ApproveWstETH } from '../model/approveWstETH';
|
|
14
15
|
import { BurnShares } from '../model/burnShares';
|
|
15
16
|
import { BurnStETH } from '../model/burnStETH';
|
|
16
17
|
import { BurnWstETH } from '../model/burnWstETH';
|
|
18
|
+
import { ChangeTier } from '../model/changeTier';
|
|
17
19
|
import { CollectERC20FromVault } from '../model/collectERC20FromVault';
|
|
18
20
|
import { ConsolidateValidators } from '../model/consolidateValidators';
|
|
19
21
|
import { ConsolidateValidatorsResponse } from '../model/consolidateValidatorsResponse';
|
|
@@ -33,6 +35,7 @@ import { StakeEthResponse } from '../model/stakeEthResponse';
|
|
|
33
35
|
import { StakingRequest } from '../model/stakingRequest';
|
|
34
36
|
import { TriggerValidatorWithdrawals } from '../model/triggerValidatorWithdrawals';
|
|
35
37
|
import { UnwrapWstETH } from '../model/unwrapWstETH';
|
|
38
|
+
import { UpdateShareLimit } from '../model/updateShareLimit';
|
|
36
39
|
import { ValidateConsolidationRequestsResponse } from '../model/validateConsolidationRequestsResponse';
|
|
37
40
|
import { WithdrawFromVault } from '../model/withdrawFromVault';
|
|
38
41
|
import { WrapStETH } from '../model/wrapStETH';
|
|
@@ -61,8 +64,38 @@ export declare class LidoWriteApi {
|
|
|
61
64
|
setApiKey(key: LidoWriteApiApiKeys, value: string): void;
|
|
62
65
|
set accessToken(accessToken: string | (() => string));
|
|
63
66
|
addInterceptor(interceptor: Interceptor): void;
|
|
67
|
+
/**
|
|
68
|
+
* 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).
|
|
69
|
+
* @summary Abandon dashboard and transfer vault ownership (disconnect Step 3)
|
|
70
|
+
* @param contractsId The unique identifier of the Lido staking contracts
|
|
71
|
+
* @param abandonDashboardRequest
|
|
72
|
+
* @param simulateAddress Optional Ethereum address to simulate the transaction from.
|
|
73
|
+
*/
|
|
74
|
+
abandonDashboard(contractsId: string, abandonDashboardRequest: AbandonDashboardRequest, simulateAddress?: string, options?: {
|
|
75
|
+
headers: {
|
|
76
|
+
[name: string]: string;
|
|
77
|
+
};
|
|
78
|
+
}): Promise<{
|
|
79
|
+
body: PartialTransaction;
|
|
80
|
+
status: number;
|
|
81
|
+
}>;
|
|
82
|
+
/**
|
|
83
|
+
* 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.
|
|
84
|
+
* @summary Accept staking vault ownership (disconnect Step 4)
|
|
85
|
+
* @param contractsId The unique identifier of the Lido staking contracts
|
|
86
|
+
* @param simulateAddress Optional Ethereum address to simulate the transaction from.
|
|
87
|
+
*/
|
|
88
|
+
acceptStakingVaultOwnership(contractsId: string, simulateAddress?: string, options?: {
|
|
89
|
+
headers: {
|
|
90
|
+
[name: string]: string;
|
|
91
|
+
};
|
|
92
|
+
}): Promise<{
|
|
93
|
+
body: PartialTransaction;
|
|
94
|
+
status: number;
|
|
95
|
+
}>;
|
|
64
96
|
/**
|
|
65
97
|
*
|
|
98
|
+
* @summary Encode approval to burn stETH
|
|
66
99
|
* @param contractsId The unique identifier of the Lido staking contracts
|
|
67
100
|
* @param approveStETH
|
|
68
101
|
*/
|
|
@@ -76,6 +109,7 @@ export declare class LidoWriteApi {
|
|
|
76
109
|
}>;
|
|
77
110
|
/**
|
|
78
111
|
*
|
|
112
|
+
* @summary Encode approval to burn wstETH
|
|
79
113
|
* @param contractsId The unique identifier of the Lido staking contracts
|
|
80
114
|
* @param approveWstETH
|
|
81
115
|
*/
|
|
@@ -89,6 +123,7 @@ export declare class LidoWriteApi {
|
|
|
89
123
|
}>;
|
|
90
124
|
/**
|
|
91
125
|
*
|
|
126
|
+
* @summary Approve wrapping stETH to wstETH
|
|
92
127
|
* @param approveStETH
|
|
93
128
|
*/
|
|
94
129
|
approveWrapStETH(approveStETH: ApproveStETH, options?: {
|
|
@@ -101,6 +136,7 @@ export declare class LidoWriteApi {
|
|
|
101
136
|
}>;
|
|
102
137
|
/**
|
|
103
138
|
*
|
|
139
|
+
* @summary Encode burn shares transaction
|
|
104
140
|
* @param contractsId The unique identifier of the Lido staking contracts
|
|
105
141
|
* @param burnShares
|
|
106
142
|
*/
|
|
@@ -114,6 +150,7 @@ export declare class LidoWriteApi {
|
|
|
114
150
|
}>;
|
|
115
151
|
/**
|
|
116
152
|
*
|
|
153
|
+
* @summary Encode burn stETH transaction
|
|
117
154
|
* @param contractsId The unique identifier of the Lido staking contracts
|
|
118
155
|
* @param burnStETH
|
|
119
156
|
*/
|
|
@@ -127,6 +164,7 @@ export declare class LidoWriteApi {
|
|
|
127
164
|
}>;
|
|
128
165
|
/**
|
|
129
166
|
*
|
|
167
|
+
* @summary Encode burn wstETH transaction
|
|
130
168
|
* @param contractsId The unique identifier of the Lido staking contracts
|
|
131
169
|
* @param burnWstETH
|
|
132
170
|
*/
|
|
@@ -140,6 +178,21 @@ export declare class LidoWriteApi {
|
|
|
140
178
|
}>;
|
|
141
179
|
/**
|
|
142
180
|
*
|
|
181
|
+
* @summary Encode change tier transaction
|
|
182
|
+
* @param contractsId The unique identifier of the Lido staking contracts
|
|
183
|
+
* @param changeTier
|
|
184
|
+
*/
|
|
185
|
+
changeTier(contractsId: string, changeTier: ChangeTier, options?: {
|
|
186
|
+
headers: {
|
|
187
|
+
[name: string]: string;
|
|
188
|
+
};
|
|
189
|
+
}): Promise<{
|
|
190
|
+
body: PartialTransaction;
|
|
191
|
+
status: number;
|
|
192
|
+
}>;
|
|
193
|
+
/**
|
|
194
|
+
*
|
|
195
|
+
* @summary Collect ERC20 from vault
|
|
143
196
|
* @param contractsId The unique identifier of the Lido staking contracts
|
|
144
197
|
* @param collectERC20FromVault
|
|
145
198
|
*/
|
|
@@ -151,6 +204,20 @@ export declare class LidoWriteApi {
|
|
|
151
204
|
body: PartialTransaction;
|
|
152
205
|
status: number;
|
|
153
206
|
}>;
|
|
207
|
+
/**
|
|
208
|
+
* 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.
|
|
209
|
+
* @summary Connect to vault hub
|
|
210
|
+
* @param contractsId The unique identifier of the Lido staking contracts
|
|
211
|
+
* @param simulateAddress Optional Ethereum address to simulate the transaction from.
|
|
212
|
+
*/
|
|
213
|
+
connectToVaultHub(contractsId: string, simulateAddress?: string, options?: {
|
|
214
|
+
headers: {
|
|
215
|
+
[name: string]: string;
|
|
216
|
+
};
|
|
217
|
+
}): Promise<{
|
|
218
|
+
body: PartialTransaction;
|
|
219
|
+
status: number;
|
|
220
|
+
}>;
|
|
154
221
|
/**
|
|
155
222
|
*
|
|
156
223
|
* @summary Create EIP-7251 consolidation requests for validators
|
|
@@ -167,6 +234,7 @@ export declare class LidoWriteApi {
|
|
|
167
234
|
}>;
|
|
168
235
|
/**
|
|
169
236
|
*
|
|
237
|
+
* @summary Fund vault with ETH
|
|
170
238
|
* @param contractsId The unique identifier of the Lido staking contracts
|
|
171
239
|
* @param fundVault
|
|
172
240
|
*/
|
|
@@ -179,11 +247,12 @@ export declare class LidoWriteApi {
|
|
|
179
247
|
status: number;
|
|
180
248
|
}>;
|
|
181
249
|
/**
|
|
182
|
-
*
|
|
183
|
-
* @summary Update
|
|
250
|
+
* Returns the calldata needed to submit the updateVaultData transaction to the lazy oracle contract for a specific Lido staking contract set.
|
|
251
|
+
* @summary Update lazy oracle report
|
|
184
252
|
* @param contractsId The unique identifier of the Lido staking contracts
|
|
253
|
+
* @param simulateAddress Optional Ethereum address to simulate the transaction from. If provided, the transaction will be simulated and any revert errors will be returned.
|
|
185
254
|
*/
|
|
186
|
-
getLazyOracleReportCallData(contractsId: string, options?: {
|
|
255
|
+
getLazyOracleReportCallData(contractsId: string, simulateAddress?: string, options?: {
|
|
187
256
|
headers: {
|
|
188
257
|
[name: string]: string;
|
|
189
258
|
};
|
|
@@ -207,6 +276,7 @@ export declare class LidoWriteApi {
|
|
|
207
276
|
}>;
|
|
208
277
|
/**
|
|
209
278
|
*
|
|
279
|
+
* @summary Grant vault role
|
|
210
280
|
* @param contractsId The unique identifier of the Lido staking contracts
|
|
211
281
|
* @param grantRole
|
|
212
282
|
*/
|
|
@@ -220,7 +290,7 @@ export declare class LidoWriteApi {
|
|
|
220
290
|
}>;
|
|
221
291
|
/**
|
|
222
292
|
*
|
|
223
|
-
* @summary List staking request IDs for a
|
|
293
|
+
* @summary List staking request IDs for a vault
|
|
224
294
|
* @param contractsId The unique identifier of the Lido staking contracts
|
|
225
295
|
* @param status
|
|
226
296
|
*/
|
|
@@ -234,6 +304,7 @@ export declare class LidoWriteApi {
|
|
|
234
304
|
}>;
|
|
235
305
|
/**
|
|
236
306
|
*
|
|
307
|
+
* @summary Encode mint shares transaction
|
|
237
308
|
* @param contractsId The unique identifier of the Lido staking contracts
|
|
238
309
|
* @param mintShares
|
|
239
310
|
*/
|
|
@@ -247,6 +318,7 @@ export declare class LidoWriteApi {
|
|
|
247
318
|
}>;
|
|
248
319
|
/**
|
|
249
320
|
*
|
|
321
|
+
* @summary Encode mint stETH transaction
|
|
250
322
|
* @param contractsId The unique identifier of the Lido staking contracts
|
|
251
323
|
* @param mintStETH
|
|
252
324
|
*/
|
|
@@ -260,6 +332,7 @@ export declare class LidoWriteApi {
|
|
|
260
332
|
}>;
|
|
261
333
|
/**
|
|
262
334
|
*
|
|
335
|
+
* @summary Encode mint wstETH transaction
|
|
263
336
|
* @param contractsId The unique identifier of the Lido staking contracts
|
|
264
337
|
* @param mintWstETH
|
|
265
338
|
*/
|
|
@@ -273,6 +346,7 @@ export declare class LidoWriteApi {
|
|
|
273
346
|
}>;
|
|
274
347
|
/**
|
|
275
348
|
*
|
|
349
|
+
* @summary Rebalance vault with ETH
|
|
276
350
|
* @param contractsId The unique identifier of the Lido staking contracts
|
|
277
351
|
* @param rebalanceVaultWithEther
|
|
278
352
|
*/
|
|
@@ -286,6 +360,7 @@ export declare class LidoWriteApi {
|
|
|
286
360
|
}>;
|
|
287
361
|
/**
|
|
288
362
|
*
|
|
363
|
+
* @summary Rebalance vault with shares
|
|
289
364
|
* @param contractsId The unique identifier of the Lido staking contracts
|
|
290
365
|
* @param rebalanceVaultWithShares
|
|
291
366
|
*/
|
|
@@ -299,6 +374,7 @@ export declare class LidoWriteApi {
|
|
|
299
374
|
}>;
|
|
300
375
|
/**
|
|
301
376
|
*
|
|
377
|
+
* @summary Recover ERC20 from vault
|
|
302
378
|
* @param contractsId The unique identifier of the Lido staking contracts
|
|
303
379
|
* @param recoverERC20
|
|
304
380
|
*/
|
|
@@ -312,6 +388,7 @@ export declare class LidoWriteApi {
|
|
|
312
388
|
}>;
|
|
313
389
|
/**
|
|
314
390
|
*
|
|
391
|
+
* @summary Revoke vault role
|
|
315
392
|
* @param contractsId The unique identifier of the Lido staking contracts
|
|
316
393
|
* @param revokeRole
|
|
317
394
|
*/
|
|
@@ -324,8 +401,8 @@ export declare class LidoWriteApi {
|
|
|
324
401
|
status: number;
|
|
325
402
|
}>;
|
|
326
403
|
/**
|
|
327
|
-
*
|
|
328
|
-
* @summary Stake ETH
|
|
404
|
+
* Returns the call data needed to submit the unguaranteed deposit transaction to the dashboard contract.
|
|
405
|
+
* @summary Stake ETH with a Lido staking vault
|
|
329
406
|
* @param contractsId The unique identifier of the Lido staking contracts
|
|
330
407
|
* @param stakeEthRequest
|
|
331
408
|
*/
|
|
@@ -339,6 +416,21 @@ export declare class LidoWriteApi {
|
|
|
339
416
|
}>;
|
|
340
417
|
/**
|
|
341
418
|
*
|
|
419
|
+
* @summary Encode sync tier transaction
|
|
420
|
+
* @param contractsId The unique identifier of the Lido staking contracts
|
|
421
|
+
* @param simulateAddress Optional Ethereum address to simulate the transaction from. If provided, the transaction will be simulated and any revert errors will be returned.
|
|
422
|
+
*/
|
|
423
|
+
syncTier(contractsId: string, simulateAddress?: string, options?: {
|
|
424
|
+
headers: {
|
|
425
|
+
[name: string]: string;
|
|
426
|
+
};
|
|
427
|
+
}): Promise<{
|
|
428
|
+
body: PartialTransaction;
|
|
429
|
+
status: number;
|
|
430
|
+
}>;
|
|
431
|
+
/**
|
|
432
|
+
* 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.
|
|
433
|
+
* @summary Trigger validator withdrawals
|
|
342
434
|
* @param contractsId The unique identifier of the Lido staking contracts
|
|
343
435
|
* @param triggerValidatorWithdrawals
|
|
344
436
|
*/
|
|
@@ -352,6 +444,7 @@ export declare class LidoWriteApi {
|
|
|
352
444
|
}>;
|
|
353
445
|
/**
|
|
354
446
|
*
|
|
447
|
+
* @summary Unwrap wstETH to stETH
|
|
355
448
|
* @param unwrapWstETH
|
|
356
449
|
*/
|
|
357
450
|
unwrapWstETH(unwrapWstETH: UnwrapWstETH, options?: {
|
|
@@ -364,7 +457,21 @@ export declare class LidoWriteApi {
|
|
|
364
457
|
}>;
|
|
365
458
|
/**
|
|
366
459
|
*
|
|
367
|
-
* @summary
|
|
460
|
+
* @summary Encode update share limit transaction
|
|
461
|
+
* @param contractsId The unique identifier of the Lido staking contracts
|
|
462
|
+
* @param updateShareLimit
|
|
463
|
+
*/
|
|
464
|
+
updateShareLimit(contractsId: string, updateShareLimit: UpdateShareLimit, options?: {
|
|
465
|
+
headers: {
|
|
466
|
+
[name: string]: string;
|
|
467
|
+
};
|
|
468
|
+
}): Promise<{
|
|
469
|
+
body: PartialTransaction;
|
|
470
|
+
status: number;
|
|
471
|
+
}>;
|
|
472
|
+
/**
|
|
473
|
+
* Returns validator balances and signing wallet information for the given consolidation requests.
|
|
474
|
+
* @summary Validate consolidation requests
|
|
368
475
|
* @param contractsId The unique identifier of the Lido staking contracts
|
|
369
476
|
* @param consolidateValidators
|
|
370
477
|
*/
|
|
@@ -377,7 +484,22 @@ export declare class LidoWriteApi {
|
|
|
377
484
|
status: number;
|
|
378
485
|
}>;
|
|
379
486
|
/**
|
|
380
|
-
*
|
|
487
|
+
* 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.
|
|
488
|
+
* @summary Voluntary disconnect from vault hub
|
|
489
|
+
* @param contractsId The unique identifier of the Lido staking contracts
|
|
490
|
+
* @param simulateAddress Optional Ethereum address to simulate the transaction from.
|
|
491
|
+
*/
|
|
492
|
+
voluntaryDisconnectFromVaultHub(contractsId: string, simulateAddress?: string, options?: {
|
|
493
|
+
headers: {
|
|
494
|
+
[name: string]: string;
|
|
495
|
+
};
|
|
496
|
+
}): Promise<{
|
|
497
|
+
body: PartialTransaction;
|
|
498
|
+
status: number;
|
|
499
|
+
}>;
|
|
500
|
+
/**
|
|
501
|
+
* 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).
|
|
502
|
+
* @summary Withdraw from vault
|
|
381
503
|
* @param contractsId The unique identifier of the Lido staking contracts
|
|
382
504
|
* @param withdrawFromVault
|
|
383
505
|
*/
|
|
@@ -391,6 +513,7 @@ export declare class LidoWriteApi {
|
|
|
391
513
|
}>;
|
|
392
514
|
/**
|
|
393
515
|
*
|
|
516
|
+
* @summary Wrap stETH to wstETH
|
|
394
517
|
* @param wrapStETH
|
|
395
518
|
*/
|
|
396
519
|
wrapStETH(wrapStETH: WrapStETH, options?: {
|