@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.
Files changed (141) hide show
  1. package/README.md +243 -120
  2. package/dist/abi/CLProofVerifier.js +279 -0
  3. package/dist/abi/CLProofVerifier.js.map +1 -0
  4. package/dist/abi/Dashboard.js +1060 -942
  5. package/dist/abi/Dashboard.js.map +1 -1
  6. package/dist/abi/Delegation.js +1260 -1129
  7. package/dist/abi/Delegation.js.map +1 -1
  8. package/dist/abi/LidoLocator.js +311 -270
  9. package/dist/abi/LidoLocator.js.map +1 -1
  10. package/dist/abi/PredepositGuarantee.js +1733 -0
  11. package/dist/abi/PredepositGuarantee.js.map +1 -0
  12. package/dist/abi/StakingVault.js +723 -528
  13. package/dist/abi/StakingVault.js.map +1 -1
  14. package/dist/abi/VaultFactory.js +164 -144
  15. package/dist/abi/VaultFactory.js.map +1 -1
  16. package/dist/abi/VaultHubViewer.js +297 -0
  17. package/dist/abi/VaultHubViewer.js.map +1 -0
  18. package/dist/abi/index.js +12 -9
  19. package/dist/abi/index.js.map +1 -1
  20. package/dist/contracts/clProofVerifier.js +29 -0
  21. package/dist/contracts/clProofVerifier.js.map +1 -0
  22. package/dist/contracts/dashboard.js.map +1 -1
  23. package/dist/contracts/index.js +12 -9
  24. package/dist/contracts/index.js.map +1 -1
  25. package/dist/contracts/locator.js +2 -2
  26. package/dist/contracts/locator.js.map +1 -1
  27. package/dist/contracts/pdg.js +17 -0
  28. package/dist/contracts/pdg.js.map +1 -0
  29. package/dist/contracts/vault-factory.js +5 -9
  30. package/dist/contracts/vault-factory.js.map +1 -1
  31. package/dist/contracts/vault-hub-viewer.js +14 -0
  32. package/dist/contracts/vault-hub-viewer.js.map +1 -0
  33. package/dist/features/dashboard-delegation.js +4 -1
  34. package/dist/features/dashboard-delegation.js.map +1 -1
  35. package/dist/features/vault-factory.js +6 -10
  36. package/dist/features/vault-factory.js.map +1 -1
  37. package/dist/features/voting.js +6 -14
  38. package/dist/features/voting.js.map +1 -1
  39. package/dist/index.js +6 -3
  40. package/dist/index.js.map +1 -1
  41. package/dist/programs/account.js +3 -1
  42. package/dist/programs/account.js.map +1 -1
  43. package/dist/programs/dashboard/config.js +65 -0
  44. package/dist/programs/dashboard/config.js.map +1 -0
  45. package/dist/programs/dashboard/index.js +4 -0
  46. package/dist/programs/dashboard/index.js.map +1 -0
  47. package/dist/programs/dashboard/main.js +12 -0
  48. package/dist/programs/dashboard/main.js.map +1 -0
  49. package/dist/programs/dashboard/read.js +25 -0
  50. package/dist/programs/dashboard/read.js.map +1 -0
  51. package/dist/programs/{dashboard.js → dashboard/write.js} +78 -136
  52. package/dist/programs/dashboard/write.js.map +1 -0
  53. package/dist/programs/delegation/config.js +33 -0
  54. package/dist/programs/delegation/config.js.map +1 -0
  55. package/dist/programs/delegation/index.js +4 -0
  56. package/dist/programs/delegation/index.js.map +1 -0
  57. package/dist/programs/delegation/main.js +12 -0
  58. package/dist/programs/delegation/main.js.map +1 -0
  59. package/dist/programs/delegation/read.js +98 -0
  60. package/dist/programs/delegation/read.js.map +1 -0
  61. package/dist/programs/delegation/write.js +327 -0
  62. package/dist/programs/delegation/write.js.map +1 -0
  63. package/dist/programs/index.js +7 -4
  64. package/dist/programs/index.js.map +1 -1
  65. package/dist/programs/pdg/config.js +2 -0
  66. package/dist/programs/pdg/config.js.map +1 -0
  67. package/dist/programs/pdg/index.js +4 -0
  68. package/dist/programs/pdg/index.js.map +1 -0
  69. package/dist/programs/pdg/main.js +12 -0
  70. package/dist/programs/pdg/main.js.map +1 -0
  71. package/dist/programs/pdg/read.js +7 -0
  72. package/dist/programs/pdg/read.js.map +1 -0
  73. package/dist/programs/pdg/write.js +64 -0
  74. package/dist/programs/pdg/write.js.map +1 -0
  75. package/dist/programs/predeposit-guarantee.js +73 -0
  76. package/dist/programs/predeposit-guarantee.js.map +1 -0
  77. package/dist/programs/vault/config.js +66 -0
  78. package/dist/programs/vault/config.js.map +1 -0
  79. package/dist/programs/vault/index.js +4 -0
  80. package/dist/programs/vault/index.js.map +1 -0
  81. package/dist/programs/vault/main.js +10 -0
  82. package/dist/programs/vault/main.js.map +1 -0
  83. package/dist/programs/vault/read.js +53 -0
  84. package/dist/programs/vault/read.js.map +1 -0
  85. package/dist/programs/vault/write.js +123 -0
  86. package/dist/programs/vault/write.js.map +1 -0
  87. package/dist/programs/vault-factory/config.js +2 -0
  88. package/dist/programs/vault-factory/config.js.map +1 -0
  89. package/dist/programs/vault-factory/index.js +4 -0
  90. package/dist/programs/vault-factory/index.js.map +1 -0
  91. package/dist/programs/vault-factory/main.js +12 -0
  92. package/dist/programs/vault-factory/main.js.map +1 -0
  93. package/dist/programs/vault-factory/read.js +26 -0
  94. package/dist/programs/vault-factory/read.js.map +1 -0
  95. package/dist/programs/{vault-factory.js → vault-factory/write.js} +22 -37
  96. package/dist/programs/vault-factory/write.js.map +1 -0
  97. package/dist/programs/vault-hub-viewer.js +52 -0
  98. package/dist/programs/vault-hub-viewer.js.map +1 -0
  99. package/dist/programs/vault-hub.js +20 -52
  100. package/dist/programs/vault-hub.js.map +1 -1
  101. package/dist/programs/voting.js +11 -33
  102. package/dist/programs/voting.js.map +1 -1
  103. package/dist/utils/contract.js +63 -2
  104. package/dist/utils/contract.js.map +1 -1
  105. package/dist/utils/get-commands.js +11 -0
  106. package/dist/utils/get-commands.js.map +1 -0
  107. package/dist/utils/index.js +5 -0
  108. package/dist/utils/index.js.map +1 -1
  109. package/dist/utils/prompts/default.js +17 -0
  110. package/dist/utils/prompts/default.js.map +1 -0
  111. package/dist/utils/prompts/delegation-dashboard.js +29 -0
  112. package/dist/utils/prompts/delegation-dashboard.js.map +1 -0
  113. package/dist/utils/prompts/index.js +4 -0
  114. package/dist/utils/prompts/index.js.map +1 -0
  115. package/dist/utils/prompts/predeposit-guarantee.js +25 -0
  116. package/dist/utils/prompts/predeposit-guarantee.js.map +1 -0
  117. package/dist/utils/proof/create-proof.js +62 -0
  118. package/dist/utils/proof/create-proof.js.map +1 -0
  119. package/dist/utils/proof/first-validator-gindex.js +26 -0
  120. package/dist/utils/proof/first-validator-gindex.js.map +1 -0
  121. package/dist/utils/proof/index.js +4 -0
  122. package/dist/utils/proof/index.js.map +1 -0
  123. package/dist/utils/proof/merkle-utils.js +131 -0
  124. package/dist/utils/proof/merkle-utils.js.map +1 -0
  125. package/dist/utils/proof/proofs.js +52 -0
  126. package/dist/utils/proof/proofs.js.map +1 -0
  127. package/dist/utils/read-programs-by-abi.js +83 -0
  128. package/dist/utils/read-programs-by-abi.js.map +1 -0
  129. package/dist/utils/spinner/index.js +2 -0
  130. package/dist/utils/spinner/index.js.map +1 -0
  131. package/dist/utils/spinner/spinners.js +16 -0
  132. package/dist/utils/spinner/spinners.js.map +1 -0
  133. package/dist/utils/spinner/spinners.json +119 -0
  134. package/dist/version/index.js +1 -1
  135. package/package.json +11 -4
  136. package/dist/programs/dashboard.js.map +0 -1
  137. package/dist/programs/delegation.js +0 -581
  138. package/dist/programs/delegation.js.map +0 -1
  139. package/dist/programs/vault-factory.js.map +0 -1
  140. package/dist/programs/vault.js +0 -375
  141. package/dist/programs/vault.js.map +0 -1
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # Liquid Staking Vault CLI
1
+ # Lido Staking Vault CLI
2
2
 
3
- A command-line interface (CLI) tool for managing liquid staking vaults. Simplify your staking operations with intuitive commands and streamlined workflows.
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 Liquid Staking Vault CLI globally using npm:
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 | Description |
191
- | -------------------------------------------------------------------- | --------------------- |
192
- | create-vault \[-options] \<managerFee> \<performanceFee> \[quantity] | create vault contract |
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 | Description |
230
- | ------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------- |
231
- | info \<address> | get vault base info |
232
- | l-report \<address> | get latest vault report |
233
- | is-balanced \<address> | returns whether vault is balanced, i.e. its valuation is greater than the locked amount |
234
- | node-operator \<address> | returns the address of the node operator |
235
- | valuation \<address> | get vault valuation |
236
- | unlocked \<address> | get vault unlocked |
237
- | locked \<address> | get vault locked |
238
- | withdrawal-c \<address> | get vault withdrawal credentials |
239
- | fund \<address> \<wei> | fund vault |
240
- | withdraw \<address> \<recipient> \<wei> | withdraw from vault |
241
- | rebalance \<address> \<amount> | rebalance vault |
242
- | no-deposit-beacon \<address> \<numberOfDeposits> \<pubkeys> \<signatures> | deposit to beacon chain |
243
- | no-val-exit \<address> \<validatorPublicKey> | request to exit validator |
244
- | delta \<address> | the net difference between deposits and withdrawals |
245
- | is-paused \<address> | Returns whether deposits are paused by the vault owner |
246
- | bc-resume \<address> | Resumes deposits to beacon chain |
247
- | bc-pause \<address> | Pauses deposits to beacon chain |
248
- | report \<address> \<valuation> \<inOutDelta> \<locked> | Submits a report containing valuation, inOutDelta, and locked amount |
249
- | compute-deposit \<address> \<pubkey> \<withdrawalCredentials> \<signature> \<amount> | Computes the deposit data root for a validator deposit |
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 | Description |
268
- | ---------------------------------------------------------- | ---------------------------------------------------------------- |
269
- | info \<address> | Get dashboard base info |
270
- | committee \<address> | Voting committee info |
271
- | vault \<address> | Vault info |
272
- | s-limit \<address> | Shares limit |
273
- | s-minted \<address> | Shares minted |
274
- | reserve-ratio \<address> | Vault reserve ratio of the vault |
275
- | t-reserve-ratio \<address> | Threshold reserve ratio of the vault |
276
- | t-fee \<address> | Treasury fee basis points |
277
- | valuation \<address> | Valuation of the vault in ether |
278
- | t-shares \<address> | Total of shares that can be minted on the vault |
279
- | get-shares \<address> \<ether> | Maximum number of shares that can be minted with deposited ether |
280
- | withdrawable-eth \<address> | Amount of ether that can be withdrawn from the staking vault |
281
- | ownership \<address> \<newOwner> | Transfers ownership of the staking vault to a new owner |
282
- | disconnect \<address> | Disconnects the staking vault from the vault hub |
283
- | fund \<address> \<wei> | Funds the staking vault with ether |
284
- | fund-weth \<address> \<wethAmount> | Funds the staking vault with wrapped ether |
285
- | withdraw \<address> \<recipient> \<wei> | Withdraws ether from the staking vault to a recipient |
286
- | withdraw-weth \<address> \<recipient> \<ether> | Withdraws stETH tokens from the staking vault to wrapped ether |
287
- | exit \<address> \<validatorPubKey> | Requests the exit of a validator from the staking vault |
288
- | mint-shares \<address> \<recipient> \<amountOfShares> | Mints stETH tokens backed by the vault to a recipient |
289
- | mint-steth \<address> \<recipient> \<amountOfShares> | Mints stETH tokens backed by the vault to a recipient |
290
- | mint-wsteth \<address> \<recipient> \<tokens> | Mints wstETH tokens backed by the vault to a recipient |
291
- | burn-shares \<address> \<amountOfShares> | Burns stETH shares from sender (requires approved stETH) |
292
- | burn-steth \<address> \<amountOfShares> | Burns stETH shares from sender (requires approved stETH) |
293
- | burn-wsteth \<address> \<tokens> | Burn wstETH tokens from sender backed by vault |
294
- | burn-shares-permit \<address> \<tokens> \<permitJSON> | Burns stETH tokens using permit (value in stETH) |
295
- | burn-steth-permit \<address> \<tokens> \<permitJSON> | Burns stETH tokens using permit |
296
- | burn-wsteth-permit \<address> \<tokens> \<permitJSON> | Burn wstETH tokens using EIP-2612 Permit |
297
- | rebalance \<address> \<ether> | Rebalance the vault by transferring ether |
298
- | recover-erc20 \<address> \<token> \<recipient> \<amount> | Recovers ERC20 tokens or ether from dashboard contract |
299
- | recover-erc721 \<address> \<token> \<tokenId> \<recipient> | Transfers ERC721 NFT by token ID |
300
- | deposit-pause \<address> | Pauses beacon chain deposits on staking vault |
301
- | deposit-resume \<address> | Mass-grants multiple roles to multiple accounts |
302
- | role-grant \<address> \<roleAssignmentJSON> | Mass-revokes multiple roles from multiple accounts |
303
- | role-revoke \<address> \<roleAssignmentJSON> | Resumes beacon chain deposits on staking vault |
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
- | roles \<address> | Get delegation contract roles info |
345
- | base-info \<address> | Get delegation base info |
346
- | voting-lifetime \<address> | Get committee's voting lifetime period |
347
- | is-healthy \<address> | Get vault healthy info |
348
- | voting-info \<address> \<callId> \<role> | Get committee votes |
349
- | cf \<address> | Curator fee in basis points |
350
- | cf-report \<address> | The last report for which curator fee was claimed. Updated on each claim |
351
- | cf-unclaimed \<address> | Returns accumulated unclaimed curator fee in ether (U = (R \* F) / T) |
352
- | cf-set \<address> \<newCuratorFee> | Sets the curator fee |
353
- | cf-claim \<address> \<recipient> | Claims the curator fee |
354
- | nof \<address> | Node operator fee in basis points |
355
- | nof-report \<address> | The last report for which node operator fee was claimed. Updated on claim |
356
- | nof-unclaimed \<address> | Returns accumulated unclaimed node operator fee in ether (U = (R \* F) / T) |
357
- | nof-set \<address> \<newNodeOperatorFeeBP> | Sets the node operator fee |
358
- | nof-claim \<address> \<recipient> | Claims the node operator fee |
359
- | unreserved \<address> | Returns the unreserved amount of ether |
360
- | vc \<address> | Returns the voting committee |
361
- | fund \<address> \<wei> | Funds the StakingVault with ether |
362
- | withdraw \<address> \<recipient> \<wei> | Withdraws ether from the StakingVault |
363
- | mint \<address> \<recipient> \<amountOfShares> | Mints shares for a given recipient |
364
- | burn \<address> \<amountOfShares> | Burns shares for a given recipient |
365
- | rebalance \<address> \<ether> | Rebalances the StakingVault with a given amount of ether |
366
- | set-vote-lt \<address> \<newVoteLifetime> | Sets the vote lifetime |
367
- | t-ownership \<address> \<newOwner> | Transfers the ownership of the StakingVault |
368
- | disconnect \<address> | Voluntarily disconnects a StakingVault from VaultHub |
369
- | deposit-pause \<address> | Pauses deposits to beacon chain from the StakingVault |
370
- | deposit-resume \<address> | Resumes deposits to beacon chain from the StakingVault |
371
- | vault \<address> | Vault info |
372
- | s-limit \<address> | Shares limit |
373
- | s-minted \<address> | Shares minted |
374
- | reserve-ratio \<address> | Vault reserve ratio of the vault |
375
- | t-reserve-ratio \<address> | Threshold reserve ratio of the vault |
376
- | t-fee \<address> | Treasury fee basis points |
377
- | valuation \<address> | Valuation of the vault in ether |
378
- | t-shares \<address> | Total of shares that can be minted on the vault |
379
- | get-shares \<address> \<ether> | Maximum number of shares that can be minted with deposited ether |
380
- | withdrawable-eth \<address> | Amount of ether that can be withdrawn from the staking vault |
381
- | ownership \<address> \<newOwner> | Transfers ownership of the staking vault to a new owner |
382
- | fund-weth \<address> \<wethAmount> | Funds the staking vault with wrapped ether |
383
- | withdraw-weth \<address> \<recipient> \<ether> | Withdraws stETH tokens from the staking vault to wrapped ether |
384
- | exit \<address> \<validatorPubKey> | Requests the exit of a validator from the staking vault |
385
- | mint-shares \<address> \<recipient> \<amountOfShares> | Mints stETH tokens backed by the vault to a recipient |
386
- | mint-steth \<address> \<recipient> \<amountOfShares> | Mints stETH tokens backed by the vault to a recipient |
387
- | mint-wsteth \<address> \<recipient> \<tokens> | Mints wstETH tokens backed by the vault to a recipient |
388
- | burn-shares \<address> \<amountOfShares> | Burns stETH shares (requires approved stETH amount) |
389
- | burn-steth \<address> \<amountOfShares> | Burns stETH shares (requires approved stETH amount) |
390
- | burn-wsteth \<address> \<tokens> | Burn wstETH tokens backed by the vault |
391
- | burn-shares-permit \<address> \<tokens> \<permitJSON> | Burns stETH tokens using permit (value in stETH) |
392
- | burn-steth-permit \<address> \<tokens> \<permitJSON> | Burns stETH tokens using permit |
393
- | burn-wsteth-permit \<address> \<tokens> \<permitJSON> | Burn wstETH tokens using EIP-2612 Permit |
394
- | recover-erc20 \<address> \<token> \<recipient> \<amount> | Recovers ERC20 tokens or ether from the delegation contract |
395
- | recover-erc721 \<address> \<token> \<tokenId> \<recipient> | Transfers ERC721 NFT by token ID |
396
- | role-grant \<address> \<roleAssignmentJSON> | Mass-revokes multiple roles from multiple accounts |
397
- | role-revoke \<address> \<roleAssignmentJSON> | Resumes beacon chain deposits on the staking vault |
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