@lidofinance/lsv-cli 1.0.0-alpha.13 → 1.0.0-alpha.14
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/README.md +243 -120
- package/dist/abi/CLProofVerifier.js +279 -0
- package/dist/abi/CLProofVerifier.js.map +1 -0
- package/dist/abi/Dashboard.js +1060 -942
- package/dist/abi/Dashboard.js.map +1 -1
- package/dist/abi/Delegation.js +1260 -1129
- package/dist/abi/Delegation.js.map +1 -1
- package/dist/abi/LidoLocator.js +311 -270
- package/dist/abi/LidoLocator.js.map +1 -1
- package/dist/abi/PredepositGuarantee.js +1733 -0
- package/dist/abi/PredepositGuarantee.js.map +1 -0
- package/dist/abi/StakingVault.js +723 -528
- package/dist/abi/StakingVault.js.map +1 -1
- package/dist/abi/VaultFactory.js +164 -144
- package/dist/abi/VaultFactory.js.map +1 -1
- package/dist/abi/VaultHubViewer.js +297 -0
- package/dist/abi/VaultHubViewer.js.map +1 -0
- package/dist/abi/index.js +12 -9
- package/dist/abi/index.js.map +1 -1
- package/dist/contracts/clProofVerifier.js +29 -0
- package/dist/contracts/clProofVerifier.js.map +1 -0
- package/dist/contracts/dashboard.js.map +1 -1
- package/dist/contracts/index.js +12 -9
- package/dist/contracts/index.js.map +1 -1
- package/dist/contracts/locator.js +2 -2
- package/dist/contracts/locator.js.map +1 -1
- package/dist/contracts/pdg.js +17 -0
- package/dist/contracts/pdg.js.map +1 -0
- package/dist/contracts/vault-factory.js +5 -9
- package/dist/contracts/vault-factory.js.map +1 -1
- package/dist/contracts/vault-hub-viewer.js +14 -0
- package/dist/contracts/vault-hub-viewer.js.map +1 -0
- package/dist/features/dashboard-delegation.js +4 -1
- package/dist/features/dashboard-delegation.js.map +1 -1
- package/dist/features/vault-factory.js +6 -10
- package/dist/features/vault-factory.js.map +1 -1
- package/dist/features/voting.js +6 -14
- package/dist/features/voting.js.map +1 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/programs/account.js +3 -1
- package/dist/programs/account.js.map +1 -1
- package/dist/programs/dashboard/config.js +65 -0
- package/dist/programs/dashboard/config.js.map +1 -0
- package/dist/programs/dashboard/index.js +4 -0
- package/dist/programs/dashboard/index.js.map +1 -0
- package/dist/programs/dashboard/main.js +12 -0
- package/dist/programs/dashboard/main.js.map +1 -0
- package/dist/programs/dashboard/read.js +25 -0
- package/dist/programs/dashboard/read.js.map +1 -0
- package/dist/programs/{dashboard.js → dashboard/write.js} +78 -136
- package/dist/programs/dashboard/write.js.map +1 -0
- package/dist/programs/delegation/config.js +33 -0
- package/dist/programs/delegation/config.js.map +1 -0
- package/dist/programs/delegation/index.js +4 -0
- package/dist/programs/delegation/index.js.map +1 -0
- package/dist/programs/delegation/main.js +12 -0
- package/dist/programs/delegation/main.js.map +1 -0
- package/dist/programs/delegation/read.js +98 -0
- package/dist/programs/delegation/read.js.map +1 -0
- package/dist/programs/delegation/write.js +327 -0
- package/dist/programs/delegation/write.js.map +1 -0
- package/dist/programs/index.js +7 -4
- package/dist/programs/index.js.map +1 -1
- package/dist/programs/pdg/config.js +2 -0
- package/dist/programs/pdg/config.js.map +1 -0
- package/dist/programs/pdg/index.js +4 -0
- package/dist/programs/pdg/index.js.map +1 -0
- package/dist/programs/pdg/main.js +12 -0
- package/dist/programs/pdg/main.js.map +1 -0
- package/dist/programs/pdg/read.js +7 -0
- package/dist/programs/pdg/read.js.map +1 -0
- package/dist/programs/pdg/write.js +64 -0
- package/dist/programs/pdg/write.js.map +1 -0
- package/dist/programs/predeposit-guarantee.js +73 -0
- package/dist/programs/predeposit-guarantee.js.map +1 -0
- package/dist/programs/vault/config.js +66 -0
- package/dist/programs/vault/config.js.map +1 -0
- package/dist/programs/vault/index.js +4 -0
- package/dist/programs/vault/index.js.map +1 -0
- package/dist/programs/vault/main.js +10 -0
- package/dist/programs/vault/main.js.map +1 -0
- package/dist/programs/vault/read.js +53 -0
- package/dist/programs/vault/read.js.map +1 -0
- package/dist/programs/vault/write.js +123 -0
- package/dist/programs/vault/write.js.map +1 -0
- package/dist/programs/vault-factory/config.js +2 -0
- package/dist/programs/vault-factory/config.js.map +1 -0
- package/dist/programs/vault-factory/index.js +4 -0
- package/dist/programs/vault-factory/index.js.map +1 -0
- package/dist/programs/vault-factory/main.js +12 -0
- package/dist/programs/vault-factory/main.js.map +1 -0
- package/dist/programs/vault-factory/read.js +26 -0
- package/dist/programs/vault-factory/read.js.map +1 -0
- package/dist/programs/{vault-factory.js → vault-factory/write.js} +22 -37
- package/dist/programs/vault-factory/write.js.map +1 -0
- package/dist/programs/vault-hub-viewer.js +52 -0
- package/dist/programs/vault-hub-viewer.js.map +1 -0
- package/dist/programs/vault-hub.js +20 -52
- package/dist/programs/vault-hub.js.map +1 -1
- package/dist/programs/voting.js +11 -33
- package/dist/programs/voting.js.map +1 -1
- package/dist/utils/contract.js +63 -2
- package/dist/utils/contract.js.map +1 -1
- package/dist/utils/get-commands.js +11 -0
- package/dist/utils/get-commands.js.map +1 -0
- package/dist/utils/index.js +5 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/prompts/default.js +17 -0
- package/dist/utils/prompts/default.js.map +1 -0
- package/dist/utils/prompts/delegation-dashboard.js +29 -0
- package/dist/utils/prompts/delegation-dashboard.js.map +1 -0
- package/dist/utils/prompts/index.js +4 -0
- package/dist/utils/prompts/index.js.map +1 -0
- package/dist/utils/prompts/predeposit-guarantee.js +25 -0
- package/dist/utils/prompts/predeposit-guarantee.js.map +1 -0
- package/dist/utils/proof/create-proof.js +62 -0
- package/dist/utils/proof/create-proof.js.map +1 -0
- package/dist/utils/proof/first-validator-gindex.js +26 -0
- package/dist/utils/proof/first-validator-gindex.js.map +1 -0
- package/dist/utils/proof/index.js +4 -0
- package/dist/utils/proof/index.js.map +1 -0
- package/dist/utils/proof/merkle-utils.js +131 -0
- package/dist/utils/proof/merkle-utils.js.map +1 -0
- package/dist/utils/proof/proofs.js +52 -0
- package/dist/utils/proof/proofs.js.map +1 -0
- package/dist/utils/read-programs-by-abi.js +83 -0
- package/dist/utils/read-programs-by-abi.js.map +1 -0
- package/dist/utils/spinner/index.js +2 -0
- package/dist/utils/spinner/index.js.map +1 -0
- package/dist/utils/spinner/spinners.js +16 -0
- package/dist/utils/spinner/spinners.js.map +1 -0
- package/dist/utils/spinner/spinners.json +119 -0
- package/dist/version/index.js +1 -1
- package/package.json +11 -4
- package/dist/programs/dashboard.js.map +0 -1
- package/dist/programs/delegation.js +0 -581
- package/dist/programs/delegation.js.map +0 -1
- package/dist/programs/vault-factory.js.map +0 -1
- package/dist/programs/vault.js +0 -375
- package/dist/programs/vault.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Lido Staking Vault CLI
|
|
2
2
|
|
|
3
|
-
A command-line interface (CLI) tool for managing
|
|
3
|
+
A command-line interface (CLI) tool for managing lido staking vaults. Simplify your staking operations with intuitive commands and streamlined workflows.
|
|
4
4
|
|
|
5
5
|
## Table of Contents
|
|
6
6
|
|
|
@@ -26,7 +26,7 @@ A command-line interface (CLI) tool for managing liquid staking vaults. Simplify
|
|
|
26
26
|
|
|
27
27
|
## Installation
|
|
28
28
|
|
|
29
|
-
Install the
|
|
29
|
+
Install the Lido Staking Vault CLI globally using npm:
|
|
30
30
|
|
|
31
31
|
```bash
|
|
32
32
|
npm install -g @lidofinance/lsv-cli
|
|
@@ -187,9 +187,12 @@ lsv-cli factory -h
|
|
|
187
187
|
|
|
188
188
|
#### API
|
|
189
189
|
|
|
190
|
-
| Command
|
|
191
|
-
|
|
|
192
|
-
|
|
|
190
|
+
| Command | Description |
|
|
191
|
+
| ------------------------------------------------------------- | --------------------------------------------------------------- |
|
|
192
|
+
| constants | get vault factory constants info |
|
|
193
|
+
| BEACON \<address> | Calls the read-only function "BEACON" on the contract. |
|
|
194
|
+
| DELEGATION_IMPL \<address> | Calls the read-only function "DELEGATION_IMPL" on the contract. |
|
|
195
|
+
| create-vault \<curatorFeeBP> \<nodeOperatorFeeBP> \<quantity> | create vault contract |
|
|
193
196
|
|
|
194
197
|
Note: \[quantity] is optional argument, default 1
|
|
195
198
|
**[options]**
|
|
@@ -226,27 +229,34 @@ lsv-cli vault -h
|
|
|
226
229
|
|
|
227
230
|
#### API
|
|
228
231
|
|
|
229
|
-
| Command
|
|
230
|
-
|
|
|
231
|
-
|
|
|
232
|
-
|
|
|
233
|
-
| is-
|
|
234
|
-
|
|
|
235
|
-
|
|
|
236
|
-
|
|
|
237
|
-
|
|
|
238
|
-
|
|
|
239
|
-
|
|
|
240
|
-
|
|
|
241
|
-
|
|
|
242
|
-
|
|
|
243
|
-
|
|
|
244
|
-
|
|
|
245
|
-
|
|
|
246
|
-
|
|
|
247
|
-
|
|
|
248
|
-
|
|
|
249
|
-
|
|
|
232
|
+
| Command | Description |
|
|
233
|
+
| ----------------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
|
234
|
+
| deposit-contract \<address> | get vault deposit contract |
|
|
235
|
+
| PUBLIC_KEY_LENGTH \<address> | Calls the read-only function "PUBLIC_KEY_LENGTH" on the contract. |
|
|
236
|
+
| is-paused \<address> | get whether deposits are paused by the vault owner |
|
|
237
|
+
| validator-w-fee \<address> \<numberOfKeys> | get calculated withdrawal fee for a validator |
|
|
238
|
+
| depositor \<address> | Calls the read-only function "depositor" on the contract. |
|
|
239
|
+
| getInitializedVersion \<address> | Calls the read-only function "getInitializedVersion" on the contract. |
|
|
240
|
+
| delta \<address> | get the net difference between deposits and withdrawals |
|
|
241
|
+
| l-report \<address> | get latest vault report |
|
|
242
|
+
| locked \<address> | get vault locked |
|
|
243
|
+
| no \<address> | get vault node operator |
|
|
244
|
+
| owner \<address> | get vault owner |
|
|
245
|
+
| unlocked \<address> | get vault unlocked |
|
|
246
|
+
| valuation \<address> | get vault valuation |
|
|
247
|
+
| vault-hub \<address> | get vault hub |
|
|
248
|
+
| version \<address> | get vault version |
|
|
249
|
+
| wc \<address> | get vault withdrawal credentials |
|
|
250
|
+
| info \<address> | get vault base info |
|
|
251
|
+
| fund | fund vault |
|
|
252
|
+
| withdraw \<address> \<recipient> \<wei> | withdraw from vault |
|
|
253
|
+
| no-deposit-beacon \<address> \<amountOfDeposit> \<pubkey> \<signature> \<depositDataRoot> | deposit to beacon chain |
|
|
254
|
+
| no-val-exit \<address> \<validatorPublicKey> | request to exit validator |
|
|
255
|
+
| bc-resume \<address> | Resumes deposits to beacon chain |
|
|
256
|
+
| bc-pause \<address> | Pauses deposits to beacon chain |
|
|
257
|
+
| report \<address> \<valuation> \<inOutDelta> \<locked> | Submits a report containing valuation, inOutDelta, and locked amount |
|
|
258
|
+
| rebalance \<address> \<amount> | Rebalances the vault |
|
|
259
|
+
| trigger-v-w \<address> \<pubkeys> \<amounts> \<refundRecipient> | Trigger validator withdrawal |
|
|
250
260
|
|
|
251
261
|
### Dashboard
|
|
252
262
|
|
|
@@ -264,43 +274,75 @@ lsv-cli dashboard -h
|
|
|
264
274
|
|
|
265
275
|
#### API
|
|
266
276
|
|
|
267
|
-
| Command
|
|
268
|
-
|
|
|
269
|
-
|
|
|
270
|
-
|
|
|
271
|
-
|
|
|
272
|
-
|
|
|
273
|
-
|
|
|
274
|
-
|
|
|
275
|
-
|
|
|
276
|
-
|
|
|
277
|
-
|
|
|
278
|
-
|
|
|
279
|
-
|
|
|
280
|
-
|
|
|
281
|
-
|
|
|
282
|
-
|
|
|
283
|
-
|
|
|
284
|
-
|
|
|
285
|
-
|
|
|
286
|
-
|
|
|
287
|
-
|
|
|
288
|
-
|
|
|
289
|
-
|
|
|
290
|
-
|
|
|
291
|
-
|
|
|
292
|
-
|
|
|
293
|
-
|
|
|
294
|
-
|
|
|
295
|
-
|
|
|
296
|
-
|
|
|
297
|
-
|
|
|
298
|
-
|
|
|
299
|
-
|
|
|
300
|
-
|
|
|
301
|
-
|
|
|
302
|
-
|
|
|
303
|
-
|
|
|
277
|
+
| Command | Description |
|
|
278
|
+
| -------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
|
279
|
+
| ASSET_RECOVERY_ROLE \<address> | Calls the read-only function "ASSET_RECOVERY_ROLE" on the contract. |
|
|
280
|
+
| BURN_ROLE \<address> | Calls the read-only function "BURN_ROLE" on the contract. |
|
|
281
|
+
| DEFAULT_ADMIN_ROLE \<address> | Calls the read-only function "DEFAULT_ADMIN_ROLE" on the contract. |
|
|
282
|
+
| ETH \<address> | Calls the read-only function "ETH" on the contract. |
|
|
283
|
+
| FUND_ROLE \<address> | Calls the read-only function "FUND_ROLE" on the contract. |
|
|
284
|
+
| MAX_CONFIRM_EXPIRY \<address> | Calls the read-only function "MAX_CONFIRM_EXPIRY" on the contract. |
|
|
285
|
+
| MINT_ROLE \<address> | Calls the read-only function "MINT_ROLE" on the contract. |
|
|
286
|
+
| MIN_CONFIRM_EXPIRY \<address> | Calls the read-only function "MIN_CONFIRM_EXPIRY" on the contract. |
|
|
287
|
+
| PAUSE_BEACON_CHAIN_DEPOSITS_ROLE \<address> | Calls the read-only function "PAUSE_BEACON_CHAIN_DEPOSITS_ROLE" on the contract. |
|
|
288
|
+
| PDG_WITHDRAWAL_ROLE \<address> | Calls the read-only function "PDG_WITHDRAWAL_ROLE" on the contract. |
|
|
289
|
+
| REBALANCE_ROLE \<address> | Calls the read-only function "REBALANCE_ROLE" on the contract. |
|
|
290
|
+
| REQUEST_VALIDATOR_EXIT_ROLE \<address> | Calls the read-only function "REQUEST_VALIDATOR_EXIT_ROLE" on the contract. |
|
|
291
|
+
| RESUME_BEACON_CHAIN_DEPOSITS_ROLE \<address> | Calls the read-only function "RESUME_BEACON_CHAIN_DEPOSITS_ROLE" on the contract. |
|
|
292
|
+
| STETH \<address> | Calls the read-only function "STETH" on the contract. |
|
|
293
|
+
| TRIGGER_VALIDATOR_WITHDRAWAL_ROLE \<address> | Calls the read-only function "TRIGGER_VALIDATOR_WITHDRAWAL_ROLE" on the contract. |
|
|
294
|
+
| VOLUNTARY_DISCONNECT_ROLE \<address> | Calls the read-only function "VOLUNTARY_DISCONNECT_ROLE" on the contract. |
|
|
295
|
+
| WETH \<address> | Calls the read-only function "WETH" on the contract. |
|
|
296
|
+
| WITHDRAW_ROLE \<address> | Calls the read-only function "WITHDRAW_ROLE" on the contract. |
|
|
297
|
+
| WSTETH \<address> | Calls the read-only function "WSTETH" on the contract. |
|
|
298
|
+
| confirmations \<address> \<callData> \<role> | Calls the read-only function "confirmations" on the contract. |
|
|
299
|
+
| confirmingRoles \<address> | Calls the read-only function "confirmingRoles" on the contract. |
|
|
300
|
+
| getConfirmExpiry \<address> | Calls the read-only function "getConfirmExpiry" on the contract. |
|
|
301
|
+
| getRoleAdmin \<address> \<role> | Calls the read-only function "getRoleAdmin" on the contract. |
|
|
302
|
+
| getRoleMember \<address> \<role> \<index> | Calls the read-only function "getRoleMember" on the contract. |
|
|
303
|
+
| getRoleMemberCount \<address> \<role> | Calls the read-only function "getRoleMemberCount" on the contract. |
|
|
304
|
+
| getRoleMembers \<address> \<role> | Calls the read-only function "getRoleMembers" on the contract. |
|
|
305
|
+
| has-role \<address> \<role> \<account> | get has role by role and account |
|
|
306
|
+
| initialized \<address> | Calls the read-only function "initialized" on the contract. |
|
|
307
|
+
| projected-new-mintable-shares \<address> \<etherToFund> | get projected new mintable shares |
|
|
308
|
+
| r-threshold \<address> | get rebalance threshold in basis points |
|
|
309
|
+
| reserve-ratio \<address> | get reserve ratio in basis points |
|
|
310
|
+
| s-limit \<address> | get share limit |
|
|
311
|
+
| s-minted \<address> | get shares minted |
|
|
312
|
+
| vault \<address> | get staking vault address |
|
|
313
|
+
| supports-interface \<address> \<interfaceId> | get supports interface by id |
|
|
314
|
+
| total-mintable-shares \<address> | get total of shares that can be minted on the vault |
|
|
315
|
+
| t-fee \<address> | get treasury fee in basis points |
|
|
316
|
+
| valuation \<address> | get vault valuation |
|
|
317
|
+
| hub \<address> | get vaultHub address |
|
|
318
|
+
| socket \<address> | get vault socket |
|
|
319
|
+
| w-ether \<address> | get amount of ether that can be withdrawn from the staking vault |
|
|
320
|
+
| info | get dashboard base info |
|
|
321
|
+
| ownership \<address> \<newOwner> | transfers ownership of the staking vault to a new owner |
|
|
322
|
+
| disconnect \<address> | disconnects the staking vault from the vault hub |
|
|
323
|
+
| fund | funds the staking vault with ether |
|
|
324
|
+
| fund-weth \<address> \<wethAmount> | funds the staking vault with wrapped ether |
|
|
325
|
+
| withdraw \<address> \<recipient> \<wei> | withdraws ether from the staking vault to a recipient |
|
|
326
|
+
| withdraw-weth \<address> \<recipient> \<ether> | withdraws stETH tokens from the staking vault to wrapped ether |
|
|
327
|
+
| exit \<address> \<validatorPubKey> | requests the exit of a validator from the staking vault |
|
|
328
|
+
| trigger-validator-withdrawal \<address> \<pubkeys> \<amounts> \<recipient> | triggers the withdrawal of a validator from the staking vault |
|
|
329
|
+
| mint-shares \<address> \<recipient> \<amountOfShares> | mints stETH tokens backed by the vault to a recipient |
|
|
330
|
+
| mint-steth \<address> \<recipient> \<amountOfShares> | mints stETH tokens backed by the vault to a recipient |
|
|
331
|
+
| mint-wsteth \<address> \<recipient> \<tokens> | mints wstETH tokens backed by the vault to a recipient |
|
|
332
|
+
| burn-shares \<address> \<amountOfShares> | Burns stETH shares from the sender backed by the vault. Expects corresponding amount of stETH approved to this contract |
|
|
333
|
+
| burn-steth \<address> \<amountOfShares> | Burns stETH shares from the sender backed by the vault. Expects stETH amount approved to this contract. |
|
|
334
|
+
| burn-wsteth \<address> \<tokens> | burn wstETH tokens from the sender backed by the vault |
|
|
335
|
+
| burn-shares-permit \<address> \<tokens> \<permitJSON> | Burns stETH tokens (in shares) backed by the vault from the sender using permit (with value in stETH). |
|
|
336
|
+
| burn-steth-permit \<address> \<tokens> \<permitJSON> | Burns stETH tokens backed by the vault from the sender using permit. |
|
|
337
|
+
| burn-wsteth-permit \<address> \<tokens> \<permitJSON> | burn wstETH tokens from the sender backed by the vault using EIP-2612 Permit |
|
|
338
|
+
| rebalance \<address> \<ether> | rebalance the vault by transferring ether |
|
|
339
|
+
| recover-erc20 \<address> \<token> \<recipient> \<amount> | recovers ERC20 tokens or ether from the dashboard contract to sender |
|
|
340
|
+
| recover-erc721 \<address> \<token> \<tokenId> \<recipient> | Transfers a given token_id of an ERC721-compatible NFT (defined by the token contract address) |
|
|
341
|
+
| deposit-pause \<address> | Pauses beacon chain deposits on the staking vault. |
|
|
342
|
+
| deposit-resume \<address> | Mass-grants multiple roles to multiple accounts. |
|
|
343
|
+
| role-grant \<address> \<roleAssignmentJSON> | Mass-revokes multiple roles from multiple accounts. |
|
|
344
|
+
| role-revoke \<address> \<roleAssignmentJSON> | Resumes beacon chain deposits on the staking vault. |
|
|
345
|
+
| compensate-disproven-predeposit \<address> \<pubkey> \<recipient> | Compensates a disproven predeposit from the Predeposit Guarantee contract. |
|
|
304
346
|
|
|
305
347
|
**\<permitJSON>**
|
|
306
348
|
|
|
@@ -339,62 +381,143 @@ lsv-cli delegation -h
|
|
|
339
381
|
|
|
340
382
|
#### API
|
|
341
383
|
|
|
342
|
-
| Command | Description
|
|
343
|
-
| ---------------------------------------------------------- |
|
|
344
|
-
|
|
|
345
|
-
|
|
|
346
|
-
|
|
|
347
|
-
|
|
|
348
|
-
|
|
|
349
|
-
|
|
|
350
|
-
|
|
|
351
|
-
|
|
|
352
|
-
|
|
|
353
|
-
|
|
|
354
|
-
|
|
|
355
|
-
|
|
|
356
|
-
|
|
|
357
|
-
|
|
|
358
|
-
|
|
|
359
|
-
|
|
|
360
|
-
|
|
|
361
|
-
|
|
|
362
|
-
|
|
|
363
|
-
|
|
|
364
|
-
|
|
|
365
|
-
|
|
|
366
|
-
|
|
|
367
|
-
|
|
|
368
|
-
|
|
|
369
|
-
|
|
|
370
|
-
|
|
|
371
|
-
|
|
|
372
|
-
|
|
|
373
|
-
|
|
|
374
|
-
|
|
|
375
|
-
|
|
|
376
|
-
|
|
|
377
|
-
|
|
|
378
|
-
|
|
|
379
|
-
|
|
|
380
|
-
|
|
|
381
|
-
|
|
|
382
|
-
|
|
|
383
|
-
|
|
|
384
|
-
|
|
|
385
|
-
|
|
|
386
|
-
|
|
|
387
|
-
|
|
|
388
|
-
|
|
|
389
|
-
|
|
|
390
|
-
|
|
|
391
|
-
|
|
|
392
|
-
|
|
|
393
|
-
|
|
|
394
|
-
|
|
|
395
|
-
|
|
|
396
|
-
|
|
|
397
|
-
|
|
|
384
|
+
| Command | Description |
|
|
385
|
+
| ---------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
|
386
|
+
| ASSET_RECOVERY_ROLE \<address> | Calls the read-only function "ASSET_RECOVERY_ROLE" on the contract. |
|
|
387
|
+
| BURN_ROLE \<address> | Calls the read-only function "BURN_ROLE" on the contract. |
|
|
388
|
+
| CURATOR_FEE_CLAIM_ROLE \<address> | Calls the read-only function "CURATOR_FEE_CLAIM_ROLE" on the contract. |
|
|
389
|
+
| CURATOR_FEE_SET_ROLE \<address> | Calls the read-only function "CURATOR_FEE_SET_ROLE" on the contract. |
|
|
390
|
+
| DEFAULT_ADMIN_ROLE \<address> | Calls the read-only function "DEFAULT_ADMIN_ROLE" on the contract. |
|
|
391
|
+
| ETH \<address> | Calls the read-only function "ETH" on the contract. |
|
|
392
|
+
| FUND_ROLE \<address> | Calls the read-only function "FUND_ROLE" on the contract. |
|
|
393
|
+
| MAX_CONFIRM_EXPIRY \<address> | Calls the read-only function "MAX_CONFIRM_EXPIRY" on the contract. |
|
|
394
|
+
| MINT_ROLE \<address> | Calls the read-only function "MINT_ROLE" on the contract. |
|
|
395
|
+
| MIN_CONFIRM_EXPIRY \<address> | Calls the read-only function "MIN_CONFIRM_EXPIRY" on the contract. |
|
|
396
|
+
| NODE_OPERATOR_FEE_CLAIM_ROLE \<address> | Calls the read-only function "NODE_OPERATOR_FEE_CLAIM_ROLE" on the contract. |
|
|
397
|
+
| NODE_OPERATOR_MANAGER_ROLE \<address> | Calls the read-only function "NODE_OPERATOR_MANAGER_ROLE" on the contract. |
|
|
398
|
+
| PAUSE_BEACON_CHAIN_DEPOSITS_ROLE \<address> | Calls the read-only function "PAUSE_BEACON_CHAIN_DEPOSITS_ROLE" on the contract. |
|
|
399
|
+
| PDG_WITHDRAWAL_ROLE \<address> | Calls the read-only function "PDG_WITHDRAWAL_ROLE" on the contract. |
|
|
400
|
+
| REBALANCE_ROLE \<address> | Calls the read-only function "REBALANCE_ROLE" on the contract. |
|
|
401
|
+
| REQUEST_VALIDATOR_EXIT_ROLE \<address> | Calls the read-only function "REQUEST_VALIDATOR_EXIT_ROLE" on the contract. |
|
|
402
|
+
| RESUME_BEACON_CHAIN_DEPOSITS_ROLE \<address> | Calls the read-only function "RESUME_BEACON_CHAIN_DEPOSITS_ROLE" on the contract. |
|
|
403
|
+
| STETH \<address> | Calls the read-only function "STETH" on the contract. |
|
|
404
|
+
| TRIGGER_VALIDATOR_WITHDRAWAL_ROLE \<address> | Calls the read-only function "TRIGGER_VALIDATOR_WITHDRAWAL_ROLE" on the contract. |
|
|
405
|
+
| VOLUNTARY_DISCONNECT_ROLE \<address> | Calls the read-only function "VOLUNTARY_DISCONNECT_ROLE" on the contract. |
|
|
406
|
+
| WETH \<address> | Calls the read-only function "WETH" on the contract. |
|
|
407
|
+
| WITHDRAW_ROLE \<address> | Calls the read-only function "WITHDRAW_ROLE" on the contract. |
|
|
408
|
+
| WSTETH \<address> | Calls the read-only function "WSTETH" on the contract. |
|
|
409
|
+
| confirmations \<address> \<callData> \<role> | Calls the read-only function "confirmations" on the contract. |
|
|
410
|
+
| confirmingRoles \<address> | Calls the read-only function "confirmingRoles" on the contract. |
|
|
411
|
+
| curatorFeeBP \<address> | Calls the read-only function "curatorFeeBP" on the contract. |
|
|
412
|
+
| curatorFeeClaimedReport \<address> | Calls the read-only function "curatorFeeClaimedReport" on the contract. |
|
|
413
|
+
| cf-unclaimed \<address> | Returns the accumulated unclaimed curator fee in ether |
|
|
414
|
+
| getConfirmExpiry \<address> | Calls the read-only function "getConfirmExpiry" on the contract. |
|
|
415
|
+
| getRoleAdmin \<address> \<role> | Calls the read-only function "getRoleAdmin" on the contract. |
|
|
416
|
+
| getRoleMember \<address> \<role> \<index> | Calls the read-only function "getRoleMember" on the contract. |
|
|
417
|
+
| getRoleMemberCount \<address> \<role> | Calls the read-only function "getRoleMemberCount" on the contract. |
|
|
418
|
+
| getRoleMembers \<address> \<role> | Calls the read-only function "getRoleMembers" on the contract. |
|
|
419
|
+
| has-role \<address> \<role> \<account> | get has role by role and account |
|
|
420
|
+
| initialized \<address> | Calls the read-only function "initialized" on the contract. |
|
|
421
|
+
| no-fee \<address> | get node operator fee in basis points |
|
|
422
|
+
| no-fee-report \<address> | get node operator fee claimed report |
|
|
423
|
+
| no-unclaimed-fee \<address> | Returns the accumulated unclaimed node operator fee in ether |
|
|
424
|
+
| projected-new-mintable-shares \<address> \<etherToFund> | get projected new mintable shares |
|
|
425
|
+
| r-threshold \<address> | get rebalance threshold in basis points |
|
|
426
|
+
| reserve-ratio \<address> | get reserve ratio in basis points |
|
|
427
|
+
| s-limit \<address> | get share limit |
|
|
428
|
+
| s-minted \<address> | get shares minted |
|
|
429
|
+
| vault \<address> | get staking vault address |
|
|
430
|
+
| supports-interface \<address> \<interfaceId> | get supports interface by id |
|
|
431
|
+
| total-mintable-shares \<address> | get total of shares that can be minted on the vault |
|
|
432
|
+
| t-fee \<address> | get treasury fee in basis points |
|
|
433
|
+
| unreserved \<address> | Calls the read-only function "unreserved" on the contract. |
|
|
434
|
+
| valuation \<address> | get vault valuation |
|
|
435
|
+
| hub \<address> | get vaultHub address |
|
|
436
|
+
| socket \<address> | get vault socket |
|
|
437
|
+
| w-ether \<address> | get amount of ether that can be withdrawn from the staking vault |
|
|
438
|
+
| roles \<address> | get delegation contract roles info |
|
|
439
|
+
| base-info \<address> | get delegation base info |
|
|
440
|
+
| is-healthy \<address> | get vault healthy info |
|
|
441
|
+
| cf-set \<address> \<newCuratorFee> | sets the curator fee |
|
|
442
|
+
| cf-claim \<address> \<recipient> | claims the curator fee |
|
|
443
|
+
| nof-set \<address> \<newNodeOperatorFeeBP> | sets the node operator fee |
|
|
444
|
+
| nof-claim \<address> \<recipient> | claims the node operator fee |
|
|
445
|
+
| fund \<address> \<wei> | funds the StakingVault with ether |
|
|
446
|
+
| withdraw \<address> \<recipient> \<wei> | withdraws ether from the StakingVault |
|
|
447
|
+
| rebalance \<address> \<ether> | rebalances the StakingVault with a given amount of ether |
|
|
448
|
+
| t-ownership \<address> \<newOwner> | transfers the ownership of the StakingVault |
|
|
449
|
+
| disconnect \<address> | voluntarily disconnects a StakingVault from VaultHub |
|
|
450
|
+
| deposit-pause \<address> | Pauses deposits to beacon chain from the StakingVault. |
|
|
451
|
+
| deposit-resume \<address> | Resumes deposits to beacon chain from the StakingVault. |
|
|
452
|
+
| fund-weth \<address> \<wethAmount> | funds the staking vault with wrapped ether |
|
|
453
|
+
| withdraw-weth \<address> \<recipient> \<ether> | withdraws stETH tokens from the staking vault to wrapped ether |
|
|
454
|
+
| exit \<address> \<validatorPubKey> | requests the exit of a validator from the staking vault |
|
|
455
|
+
| mint-shares \<address> \<recipient> \<amountOfShares> | mints stETH tokens backed by the vault to a recipient |
|
|
456
|
+
| mint-steth \<address> \<recipient> \<amountOfShares> | mints stETH tokens backed by the vault to a recipient |
|
|
457
|
+
| mint-wsteth \<address> \<recipient> \<tokens> | mints wstETH tokens backed by the vault to a recipient |
|
|
458
|
+
| burn-shares \<address> \<amountOfShares> | Burns stETH shares from the sender backed by the vault. Expects corresponding amount of stETH approved to this contract |
|
|
459
|
+
| burn-steth \<address> \<amountOfShares> | Burns stETH shares from the sender backed by the vault. Expects stETH amount approved to this contract. |
|
|
460
|
+
| burn-wsteth \<address> \<tokens> | burn wstETH tokens from the sender backed by the vault |
|
|
461
|
+
| burn-shares-permit \<address> \<tokens> \<permitJSON> | Burns stETH tokens (in shares) backed by the vault from the sender using permit (with value in stETH). |
|
|
462
|
+
| burn-steth-permit \<address> \<tokens> \<permitJSON> | Burns stETH tokens backed by the vault from the sender using permit. |
|
|
463
|
+
| burn-wsteth-permit \<address> \<tokens> \<permitJSON> | burn wstETH tokens from the sender backed by the vault using EIP-2612 Permit |
|
|
464
|
+
| recover-erc20 \<address> \<token> \<recipient> \<amount> | recovers ERC20 tokens or ether from the delegation contract to sender |
|
|
465
|
+
| recover-erc721 \<address> \<token> \<tokenId> \<recipient> | Transfers a given token_id of an ERC721-compatible NFT (defined by the token contract address) |
|
|
466
|
+
| role-grant \<address> \<roleAssignmentJSON> | Mass-revokes multiple roles from multiple accounts. |
|
|
467
|
+
| role-revoke \<address> \<roleAssignmentJSON> | Resumes beacon chain deposits on the staking vault. |
|
|
468
|
+
| set-confirm-expiry \<address> \<newConfirmExpiry> | set the confirmation expiry |
|
|
469
|
+
|
|
470
|
+
### PredepositGuarantee
|
|
471
|
+
|
|
472
|
+
#### Command
|
|
473
|
+
|
|
474
|
+
```bash
|
|
475
|
+
lsv-cli pdg [arguments] [-options]
|
|
476
|
+
```
|
|
477
|
+
|
|
478
|
+
#### Delegation commands list
|
|
479
|
+
|
|
480
|
+
```bash
|
|
481
|
+
lsv-cli pdg -h
|
|
482
|
+
```
|
|
483
|
+
|
|
484
|
+
#### API
|
|
485
|
+
|
|
486
|
+
| Command | Description |
|
|
487
|
+
| -------------------------------------------- | ------------------------------------------------------------------------------- |
|
|
488
|
+
| BEACON_ROOTS | Calls the read-only function "BEACON_ROOTS" on the contract. |
|
|
489
|
+
| DEFAULT_ADMIN_ROLE | Calls the read-only function "DEFAULT_ADMIN_ROLE" on the contract. |
|
|
490
|
+
| GI_FIRST_VALIDATOR | Calls the read-only function "GI_FIRST_VALIDATOR" on the contract. |
|
|
491
|
+
| GI_FIRST_VALIDATOR_AFTER_CHANGE | Calls the read-only function "GI_FIRST_VALIDATOR_AFTER_CHANGE" on the contract. |
|
|
492
|
+
| GI_PUBKEY_WC_PARENT | Calls the read-only function "GI_PUBKEY_WC_PARENT" on the contract. |
|
|
493
|
+
| GI_STATE_ROOT | Calls the read-only function "GI_STATE_ROOT" on the contract. |
|
|
494
|
+
| MAX_SUPPORTED_WC_VERSION | Calls the read-only function "MAX_SUPPORTED_WC_VERSION" on the contract. |
|
|
495
|
+
| MIN_SUPPORTED_WC_VERSION | Calls the read-only function "MIN_SUPPORTED_WC_VERSION" on the contract. |
|
|
496
|
+
| PAUSE_INFINITELY | Calls the read-only function "PAUSE_INFINITELY" on the contract. |
|
|
497
|
+
| PAUSE_ROLE | Calls the read-only function "PAUSE_ROLE" on the contract. |
|
|
498
|
+
| PREDEPOSIT_AMOUNT | Calls the read-only function "PREDEPOSIT_AMOUNT" on the contract. |
|
|
499
|
+
| RESUME_ROLE | Calls the read-only function "RESUME_ROLE" on the contract. |
|
|
500
|
+
| SLOT_CHANGE_GI_FIRST_VALIDATOR | Calls the read-only function "SLOT_CHANGE_GI_FIRST_VALIDATOR" on the contract. |
|
|
501
|
+
| STATE_ROOT_DEPTH | Calls the read-only function "STATE_ROOT_DEPTH" on the contract. |
|
|
502
|
+
| STATE_ROOT_POSITION | Calls the read-only function "STATE_ROOT_POSITION" on the contract. |
|
|
503
|
+
| WC_PUBKEY_PARENT_DEPTH | Calls the read-only function "WC_PUBKEY_PARENT_DEPTH" on the contract. |
|
|
504
|
+
| WC_PUBKEY_PARENT_POSITION | Calls the read-only function "WC_PUBKEY_PARENT_POSITION" on the contract. |
|
|
505
|
+
| claimableRefund \<\_guarantor> | Calls the read-only function "claimableRefund" on the contract. |
|
|
506
|
+
| getResumeSinceTimestamp | Calls the read-only function "getResumeSinceTimestamp" on the contract. |
|
|
507
|
+
| getRoleAdmin \<role> | Calls the read-only function "getRoleAdmin" on the contract. |
|
|
508
|
+
| getRoleMember \<role> \<index> | Calls the read-only function "getRoleMember" on the contract. |
|
|
509
|
+
| getRoleMemberCount \<role> | Calls the read-only function "getRoleMemberCount" on the contract. |
|
|
510
|
+
| getRoleMembers \<role> | Calls the read-only function "getRoleMembers" on the contract. |
|
|
511
|
+
| hasRole \<role> \<account> | Calls the read-only function "hasRole" on the contract. |
|
|
512
|
+
| isPaused | Calls the read-only function "isPaused" on the contract. |
|
|
513
|
+
| nodeOperatorBalance \<\_nodeOperator> | Calls the read-only function "nodeOperatorBalance" on the contract. |
|
|
514
|
+
| nodeOperatorGuarantor \<\_nodeOperator> | Calls the read-only function "nodeOperatorGuarantor" on the contract. |
|
|
515
|
+
| supportsInterface \<interfaceId> | Calls the read-only function "supportsInterface" on the contract. |
|
|
516
|
+
| unlockedBalance \<\_nodeOperator> | Calls the read-only function "unlockedBalance" on the contract. |
|
|
517
|
+
| validatorStatus \<\_validatorPubkey> | Calls the read-only function "validatorStatus" on the contract. |
|
|
518
|
+
| predeposit \<vault> \<deposits> | predeposit |
|
|
519
|
+
| create-proof-and-prove \<index> | create proof and prove |
|
|
520
|
+
| deposit-to-beacon-chain \<vault> \<deposits> | deposit to beacon chain |
|
|
398
521
|
|
|
399
522
|
## License
|
|
400
523
|
|