@lidofinance/lsv-cli 1.0.0-alpha.2 → 1.0.0-alpha.21
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 +578 -1
- package/dist/abi/CLProofVerifier.js +279 -0
- package/dist/abi/CLProofVerifier.js.map +1 -0
- package/dist/abi/Dashboard.js +1498 -0
- package/dist/abi/Dashboard.js.map +1 -0
- package/dist/abi/Delegation.js +1786 -0
- package/dist/abi/Delegation.js.map +1 -0
- package/dist/abi/LidoLocator.js +426 -0
- package/dist/abi/LidoLocator.js.map +1 -0
- package/dist/abi/PredepositGuarantee.js +1733 -0
- package/dist/abi/PredepositGuarantee.js.map +1 -0
- package/dist/abi/StEth.js +493 -0
- package/dist/abi/StEth.js.map +1 -0
- package/dist/abi/StakingVault.js +978 -0
- package/dist/abi/StakingVault.js.map +1 -0
- package/dist/abi/TokenManager.js +756 -0
- package/dist/abi/TokenManager.js.map +1 -0
- package/dist/abi/VaultFactory.js +246 -0
- package/dist/abi/VaultFactory.js.map +1 -0
- package/dist/abi/VaultHub.js +1138 -439
- package/dist/abi/VaultHub.js.map +1 -1
- package/dist/abi/VaultViewer.js +297 -0
- package/dist/abi/VaultViewer.js.map +1 -0
- package/dist/abi/Voting.js +884 -0
- package/dist/abi/Voting.js.map +1 -0
- package/dist/abi/index.js +13 -0
- package/dist/abi/index.js.map +1 -0
- package/dist/command/index.js +4 -5
- package/dist/command/index.js.map +1 -1
- package/dist/configs/constants.js +3 -0
- package/dist/configs/constants.js.map +1 -0
- package/dist/configs/deployed.js +114 -53
- package/dist/configs/deployed.js.map +1 -1
- package/dist/configs/envs.js +10 -28
- package/dist/configs/envs.js.map +1 -1
- package/dist/configs/index.js +3 -18
- package/dist/configs/index.js.map +1 -1
- package/dist/configs/utils.js +26 -0
- package/dist/configs/utils.js.map +1 -0
- package/dist/contracts/clProofVerifier.js +29 -0
- package/dist/contracts/clProofVerifier.js.map +1 -0
- package/dist/contracts/dashboard.js +11 -0
- package/dist/contracts/dashboard.js.map +1 -0
- package/dist/contracts/delegation.js +11 -0
- package/dist/contracts/delegation.js.map +1 -0
- package/dist/contracts/index.js +12 -17
- package/dist/contracts/index.js.map +1 -1
- package/dist/contracts/locator.js +16 -0
- package/dist/contracts/locator.js.map +1 -0
- package/dist/contracts/pdg.js +17 -0
- package/dist/contracts/pdg.js.map +1 -0
- package/dist/contracts/steth.js +15 -0
- package/dist/contracts/steth.js.map +1 -0
- package/dist/contracts/token-manager.js +16 -0
- package/dist/contracts/token-manager.js.map +1 -0
- package/dist/contracts/vault-factory.js +14 -0
- package/dist/contracts/vault-factory.js.map +1 -0
- package/dist/contracts/vault-hub.js +14 -17
- package/dist/contracts/vault-hub.js.map +1 -1
- package/dist/contracts/vault-viewer.js +25 -0
- package/dist/contracts/vault-viewer.js.map +1 -0
- package/dist/contracts/vault.js +14 -0
- package/dist/contracts/vault.js.map +1 -0
- package/dist/contracts/voting.js +18 -0
- package/dist/contracts/voting.js.map +1 -0
- package/dist/features/advanced-config.js +16 -0
- package/dist/features/advanced-config.js.map +1 -0
- package/dist/features/dashboard-delegation.js +25 -0
- package/dist/features/dashboard-delegation.js.map +1 -0
- package/dist/features/index.js +5 -0
- package/dist/features/index.js.map +1 -0
- package/dist/features/token-manager.js +7 -0
- package/dist/features/token-manager.js.map +1 -0
- package/dist/features/vault-factory.js +25 -0
- package/dist/features/vault-factory.js.map +1 -0
- package/dist/features/voting.js +125 -0
- package/dist/features/voting.js.map +1 -0
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/dist/programs/account.js +29 -0
- package/dist/programs/account.js.map +1 -0
- package/dist/programs/config.js +31 -0
- package/dist/programs/config.js.map +1 -0
- 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/write.js +302 -0
- 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/hub/config.js +127 -0
- package/dist/programs/hub/config.js.map +1 -0
- package/dist/programs/hub/index.js +4 -0
- package/dist/programs/hub/index.js.map +1 -0
- package/dist/programs/hub/main.js +12 -0
- package/dist/programs/hub/main.js.map +1 -0
- package/dist/programs/hub/read.js +62 -0
- package/dist/programs/hub/read.js.map +1 -0
- package/dist/programs/hub/write.js +109 -0
- package/dist/programs/hub/write.js.map +1 -0
- package/dist/programs/index.js +10 -17
- package/dist/programs/index.js.map +1 -1
- package/dist/programs/pdg/config.js +97 -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 +114 -0
- package/dist/programs/pdg/write.js.map +1 -0
- package/dist/programs/pdg-helpers.js +90 -0
- package/dist/programs/pdg-helpers.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/write.js +110 -0
- package/dist/programs/vault-factory/write.js.map +1 -0
- package/dist/programs/vault-viewer/config.js +85 -0
- package/dist/programs/vault-viewer/config.js.map +1 -0
- package/dist/programs/vault-viewer/index.js +3 -0
- package/dist/programs/vault-viewer/index.js.map +1 -0
- package/dist/programs/vault-viewer/main.js +10 -0
- package/dist/programs/vault-viewer/main.js.map +1 -0
- package/dist/programs/vault-viewer/read.js +55 -0
- package/dist/programs/vault-viewer/read.js.map +1 -0
- package/dist/programs/voting.js +33 -0
- package/dist/programs/voting.js.map +1 -0
- package/dist/providers/index.js +1 -17
- package/dist/providers/index.js.map +1 -1
- package/dist/providers/wallet.js +20 -32
- package/dist/providers/wallet.js.map +1 -1
- package/dist/types/common.js +2 -0
- package/dist/types/common.js.map +1 -0
- package/dist/types/config.js +2 -0
- package/dist/types/config.js.map +1 -0
- package/dist/types/index.js +3 -0
- package/dist/types/index.js.map +1 -0
- package/dist/utils/contract.js +98 -0
- package/dist/utils/contract.js.map +1 -0
- package/dist/utils/data-validators.js +69 -0
- package/dist/utils/data-validators.js.map +1 -0
- package/dist/utils/error-handler.js +7 -0
- package/dist/utils/error-handler.js.map +1 -0
- package/dist/utils/get-commands.js +11 -0
- package/dist/utils/get-commands.js.map +1 -0
- package/dist/utils/get-deposit-data-root.js +40 -0
- package/dist/utils/get-deposit-data-root.js.map +1 -0
- package/dist/utils/get-value.js +5 -11
- package/dist/utils/get-value.js.map +1 -1
- package/dist/utils/index.js +13 -17
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/parse-string.js +20 -0
- package/dist/utils/parse-string.js.map +1 -0
- 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 +5 -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/prompts/vault.js +11 -0
- package/dist/utils/prompts/vault.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 +161 -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 +87 -0
- package/dist/utils/read-programs-by-abi.js.map +1 -0
- package/dist/utils/resolve-path.js +10 -0
- package/dist/utils/resolve-path.js.map +1 -0
- package/dist/utils/sleep.js +4 -0
- package/dist/utils/sleep.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 -0
- package/dist/version/index.js.map +1 -0
- package/package.json +52 -7
- package/dist/programs/vault-hub.js +0 -137
- package/dist/programs/vault-hub.js.map +0 -1
package/README.md
CHANGED
|
@@ -1 +1,578 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Lido Staking Vault CLI
|
|
2
|
+
|
|
3
|
+
A command-line interface (CLI) tool for managing lido staking vaults. Simplify your staking operations with intuitive commands and streamlined workflows.
|
|
4
|
+
|
|
5
|
+
## Table of Contents
|
|
6
|
+
|
|
7
|
+
- [Features](#features)
|
|
8
|
+
- [Prerequisites](#prerequisites)
|
|
9
|
+
- [Installation](#installation)
|
|
10
|
+
- [Configuration](#configuration)
|
|
11
|
+
- [Usage](#usage)
|
|
12
|
+
- [Examples](#examples)
|
|
13
|
+
- [Programs](#programs)
|
|
14
|
+
- [License](#license)
|
|
15
|
+
|
|
16
|
+
## Features
|
|
17
|
+
|
|
18
|
+
- **Easy Setup**: Quick installation and configuration to get you started.
|
|
19
|
+
- **Vault Management**: Create, update, and delete staking vaults with simple commands.
|
|
20
|
+
- **Monitoring**: Track vault metrics.
|
|
21
|
+
|
|
22
|
+
## Prerequisites
|
|
23
|
+
|
|
24
|
+
- **Node.js**: Ensure you have Node.js (v20 or later) installed.
|
|
25
|
+
- **npm**: Node Package Manager is required to install dependencies.
|
|
26
|
+
|
|
27
|
+
## Installation
|
|
28
|
+
|
|
29
|
+
Install the Lido Staking Vault CLI globally using npm:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
npm install -g @lidofinance/lsv-cli
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Alternatively, you can install it locally in your project:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
npm install @lidofinance/lsv-cli
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Configuration
|
|
42
|
+
|
|
43
|
+
Before using the CLI, configure your environment variables. You can set them in a `.env` file in your project root.
|
|
44
|
+
|
|
45
|
+
```.env
|
|
46
|
+
RPC_URL_17000=
|
|
47
|
+
RPC_URL_1=
|
|
48
|
+
|
|
49
|
+
# Contract addresses
|
|
50
|
+
DEPLOYED=deployed-holesky-vaults-devnet-0.json
|
|
51
|
+
CONFIG=./config.json
|
|
52
|
+
|
|
53
|
+
# Wallet
|
|
54
|
+
PRIVATE_KEY_1=0x...
|
|
55
|
+
PRIVATE_KEY_17000=0x...
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Application supported a few ways to adding or combine different settings
|
|
60
|
+
|
|
61
|
+
- #### 1st step
|
|
62
|
+
You can pass link to json file with address of deployed contacts into **DEPLOYED** variable. If you want use
|
|
63
|
+
devnet the all needed addresses of the contracts like VaultHub, VaultFactory etc already passed as example in configs/deployed-holesky-vaults-devnet-1.json.
|
|
64
|
+
Also at near future this feature will be changed to resolving contracts addresses by LIDO locator and link to json
|
|
65
|
+
file will no longer be necessary
|
|
66
|
+
- #### 2nd step
|
|
67
|
+
You need to pass link to json config file into **CONFIG** variable. The structure of a config file has to be like
|
|
68
|
+
```javascript
|
|
69
|
+
{
|
|
70
|
+
"rpcLink": "https://link_to_rpc",
|
|
71
|
+
"privateKey": "some_key",
|
|
72
|
+
"chainId": 1, // or another number of chain id
|
|
73
|
+
"lidoLocator": "LIDO locator address", // take LIDO locator address in paticular chainId
|
|
74
|
+
"accounting": "LIDO accountind address" // take LIDO accounting address in paticular chainId
|
|
75
|
+
"clLink": "url" // CL url
|
|
76
|
+
}
|
|
77
|
+
```
|
|
78
|
+
If you plan to manage contracts the **privateKey** is required property for this type of operations.
|
|
79
|
+
For using rpcLink in a right way be attentive to match rpc resolver link and its chain ID.
|
|
80
|
+
Also, You can pass rpc link as env variable into RPC*URL*(chainID)
|
|
81
|
+
where chainID is current chain ID, chainId basically takes from config file, but also you can
|
|
82
|
+
pass it to deployed file and process env CHAIN_ID variable.
|
|
83
|
+
|
|
84
|
+
## Usage
|
|
85
|
+
|
|
86
|
+
After installation and configuration, you can start using the CLI to manage your staking vaults.
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
lsv-cli [command] [options]
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
lsv-cli -h
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Examples
|
|
97
|
+
|
|
98
|
+
**VaultHub constants**
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
lsv-cli hub constants
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
**Count of all vaults**
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
lsv-cli hub v-count
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
## Programs
|
|
111
|
+
|
|
112
|
+
- [Account](#Account)
|
|
113
|
+
- [VaultHub](#vaulthub)
|
|
114
|
+
- [VaultFactory](#vaultfactory)
|
|
115
|
+
- [Vault](#vault)
|
|
116
|
+
- [Dashboard](#dashboard)
|
|
117
|
+
- [Delegation](#delegation)
|
|
118
|
+
- [PredepositGuarantee](#predepositguarantee)
|
|
119
|
+
- [VaultViewer](#vaultviewer)
|
|
120
|
+
|
|
121
|
+
### Account
|
|
122
|
+
|
|
123
|
+
#### Command
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
lsv-cli account [arguments] [-options]
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
#### Account commands list
|
|
130
|
+
|
|
131
|
+
```bash
|
|
132
|
+
lsv-cli account -h
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
#### API
|
|
136
|
+
|
|
137
|
+
| Command | Description |
|
|
138
|
+
| ------- | -------------------- |
|
|
139
|
+
| info | general account info |
|
|
140
|
+
|
|
141
|
+
### VaultHub
|
|
142
|
+
|
|
143
|
+
#### Command
|
|
144
|
+
|
|
145
|
+
```bash
|
|
146
|
+
lsv-cli hub [arguments] [-options]
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
#### VaultHub commands list
|
|
150
|
+
|
|
151
|
+
```bash
|
|
152
|
+
lsv-cli hub -h
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
#### API
|
|
156
|
+
|
|
157
|
+
| Command | Description |
|
|
158
|
+
| -------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
|
|
159
|
+
| constants | get vault hub constants |
|
|
160
|
+
| dar | get default admin role |
|
|
161
|
+
| lido | get lido address |
|
|
162
|
+
| ll | get lido locator address |
|
|
163
|
+
| pi | get pause infinitely |
|
|
164
|
+
| pr | get pause role |
|
|
165
|
+
| rr | get resume role |
|
|
166
|
+
| vm-role | get vault master role |
|
|
167
|
+
| vr-role | get vault registry role |
|
|
168
|
+
| calc-t-fee \<r-val> \<socket> \<pre-t-shares> \<pre-t-pe> \<post-i-shares> \<post-i-ether> \<s-mlc-fees> | get calculated vault treasury fees |
|
|
169
|
+
| calc-v-rebase \<v-vals> \<pre-t-shares> \<pre-t-pe> \<post-i-shares> \<post-i-ether> \<s-mlc-fees> | get calculated vaults rebase |
|
|
170
|
+
| getResumeSinceTimestamp | Calls the read-only function "getResumeSinceTimestamp" on the contract. |
|
|
171
|
+
| getRoleAdmin \<role> | Calls the read-only function "getRoleAdmin" on the contract. |
|
|
172
|
+
| getRoleMember \<role> \<index> | Calls the read-only function "getRoleMember" on the contract. |
|
|
173
|
+
| getRoleMemberCount \<role> | Calls the read-only function "getRoleMemberCount" on the contract. |
|
|
174
|
+
| getRoleMembers \<role> | Calls the read-only function "getRoleMembers" on the contract. |
|
|
175
|
+
| hasRole \<role> \<account> | Calls the read-only function "hasRole" on the contract. |
|
|
176
|
+
| is-paused | get is paused boolean |
|
|
177
|
+
| is-v-h \<\_vault> | get is vault healthy boolean |
|
|
178
|
+
| supportsInterface \<interfaceId> | Calls the read-only function "supportsInterface" on the contract. |
|
|
179
|
+
| vault \<\_index> | Calls the read-only function "vault" on the contract. |
|
|
180
|
+
| vaultSocket \<\_index> | Calls the read-only function "vaultSocket" on the contract. |
|
|
181
|
+
| vaultSocket_vault \<\_vault> | Calls the read-only function "vaultSocket" on the contract. |
|
|
182
|
+
| v-count | get connected vaults count |
|
|
183
|
+
| vi \<index> | get vault and vault socket by index |
|
|
184
|
+
| add-codehash \<codehash> | add vault proxy codehash to allowed list |
|
|
185
|
+
| v-connect \<address> \<shareLimit> \<reserveRatio> \<reserveRatioThreshold> \<treasuryFeeBP> | connects a vault to the hub (vault master role needed) |
|
|
186
|
+
| v-update-share-limit \<address> \<shareLimit> | updates share limit for the vault |
|
|
187
|
+
| v-disconnect \<address> | force disconnects a vault from the hub |
|
|
188
|
+
| v-owner-disconnect \<address> | disconnects a vault from the hub, msg.sender should be vault's owner |
|
|
189
|
+
| v-mint \<address> \<recipient> \<amountOfShares> | mint StETH shares backed by vault external balance to the receiver address |
|
|
190
|
+
| v-burn \<address> \<amountOfShares> | burn steth shares from the balance of the VaultHub contract |
|
|
191
|
+
| v-transfer-and-burn \<address> \<amountOfShares> | separate burn function for EOA vault owners; requires vaultHub to be approved to transfer stETH |
|
|
192
|
+
| v-force-rebalance \<address> | force rebalance of the vault to have sufficient reserve ratio |
|
|
193
|
+
|
|
194
|
+
### VaultFactory
|
|
195
|
+
|
|
196
|
+
#### Command
|
|
197
|
+
|
|
198
|
+
```bash
|
|
199
|
+
lsv-cli factory [arguments] [-options]
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
#### VaultFactory commands list
|
|
203
|
+
|
|
204
|
+
```bash
|
|
205
|
+
lsv-cli factory -h
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
#### API
|
|
209
|
+
|
|
210
|
+
| Command | Description |
|
|
211
|
+
| ------------------------------------------------------------- | --------------------------------------------------------------- |
|
|
212
|
+
| constants | get vault factory constants info |
|
|
213
|
+
| BEACON \<address> | Calls the read-only function "BEACON" on the contract. |
|
|
214
|
+
| DELEGATION_IMPL \<address> | Calls the read-only function "DELEGATION_IMPL" on the contract. |
|
|
215
|
+
| create-vault \<curatorFeeBP> \<nodeOperatorFeeBP> \<quantity> | create vault contract |
|
|
216
|
+
|
|
217
|
+
Note: \[quantity] is optional argument, default 1
|
|
218
|
+
**[options]**
|
|
219
|
+
|
|
220
|
+
| Option | Description |
|
|
221
|
+
| ------------------------------------------------------ | --------------------------------- |
|
|
222
|
+
| -a, --defaultAdmin \<defaultAdmin> | default admin address |
|
|
223
|
+
| -f, --funder \<funder> | funder role address |
|
|
224
|
+
| -w, --withdrawer \<withdrawer> | withdrawer role address |
|
|
225
|
+
| -m, --minter \<minter> | minter role address |
|
|
226
|
+
| -b, --burner \<burner> | burner role address |
|
|
227
|
+
| -r, --rebalancer \<rebalancer> | rebalancer role address |
|
|
228
|
+
| -p, --depositPauser \<depositPauser> | depositPauser role address |
|
|
229
|
+
| -d, --depositResumer \<depositResumer> | depositResumer role address |
|
|
230
|
+
| -e, --exitRequester \<exitRequester> | exitRequester role address |
|
|
231
|
+
| -u, --disconnecter \<disconnecter> | disconnecter role address |
|
|
232
|
+
| -c, --curator \<curator> | curator address |
|
|
233
|
+
| -n, --nodeOperatorManager \<nodeOperatorManager> | node operator manager address |
|
|
234
|
+
| -o, --nodeOperatorFeeClaimer \<nodeOperatorFeeClaimer> | node operator fee claimer address |
|
|
235
|
+
|
|
236
|
+
### Vault
|
|
237
|
+
|
|
238
|
+
#### Command
|
|
239
|
+
|
|
240
|
+
```bash
|
|
241
|
+
lsv-cli vault [arguments] [-options]
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
#### Vault commands list
|
|
245
|
+
|
|
246
|
+
```bash
|
|
247
|
+
lsv-cli vault -h
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
#### API
|
|
251
|
+
|
|
252
|
+
| Command | Description |
|
|
253
|
+
| ----------------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
|
254
|
+
| deposit-contract \<address> | get vault deposit contract |
|
|
255
|
+
| PUBLIC_KEY_LENGTH \<address> | Calls the read-only function "PUBLIC_KEY_LENGTH" on the contract. |
|
|
256
|
+
| is-paused \<address> | get whether deposits are paused by the vault owner |
|
|
257
|
+
| validator-w-fee \<address> \<numberOfKeys> | get calculated withdrawal fee for a validator |
|
|
258
|
+
| depositor \<address> | Calls the read-only function "depositor" on the contract. |
|
|
259
|
+
| getInitializedVersion \<address> | Calls the read-only function "getInitializedVersion" on the contract. |
|
|
260
|
+
| delta \<address> | get the net difference between deposits and withdrawals |
|
|
261
|
+
| l-report \<address> | get latest vault report |
|
|
262
|
+
| locked \<address> | get vault locked |
|
|
263
|
+
| no \<address> | get vault node operator |
|
|
264
|
+
| owner \<address> | get vault owner |
|
|
265
|
+
| unlocked \<address> | get vault unlocked |
|
|
266
|
+
| valuation \<address> | get vault valuation |
|
|
267
|
+
| vault-hub \<address> | get vault hub |
|
|
268
|
+
| version \<address> | get vault version |
|
|
269
|
+
| wc \<address> | get vault withdrawal credentials |
|
|
270
|
+
| info \<address> | get vault base info |
|
|
271
|
+
| fund | fund vault |
|
|
272
|
+
| withdraw \<address> \<recipient> \<wei> | withdraw from vault |
|
|
273
|
+
| no-deposit-beacon \<address> \<amountOfDeposit> \<pubkey> \<signature> \<depositDataRoot> | deposit to beacon chain |
|
|
274
|
+
| no-val-exit \<address> \<validatorPublicKey> | request to exit validator |
|
|
275
|
+
| bc-resume \<address> | Resumes deposits to beacon chain |
|
|
276
|
+
| bc-pause \<address> | Pauses deposits to beacon chain |
|
|
277
|
+
| report \<address> \<valuation> \<inOutDelta> \<locked> | Submits a report containing valuation, inOutDelta, and locked amount |
|
|
278
|
+
| rebalance \<address> \<amount> | Rebalances the vault |
|
|
279
|
+
| trigger-v-w \<address> \<pubkeys> \<amounts> \<refundRecipient> | Trigger validator withdrawal |
|
|
280
|
+
|
|
281
|
+
### Dashboard
|
|
282
|
+
|
|
283
|
+
#### Command
|
|
284
|
+
|
|
285
|
+
```bash
|
|
286
|
+
lsv-cli dashboard [arguments] [-options]
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
#### Dashboard commands list
|
|
290
|
+
|
|
291
|
+
```bash
|
|
292
|
+
lsv-cli dashboard -h
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
#### API
|
|
296
|
+
|
|
297
|
+
| Command | Description |
|
|
298
|
+
| -------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
|
299
|
+
| ASSET_RECOVERY_ROLE \<address> | Calls the read-only function "ASSET_RECOVERY_ROLE" on the contract. |
|
|
300
|
+
| BURN_ROLE \<address> | Calls the read-only function "BURN_ROLE" on the contract. |
|
|
301
|
+
| DEFAULT_ADMIN_ROLE \<address> | Calls the read-only function "DEFAULT_ADMIN_ROLE" on the contract. |
|
|
302
|
+
| ETH \<address> | Calls the read-only function "ETH" on the contract. |
|
|
303
|
+
| FUND_ROLE \<address> | Calls the read-only function "FUND_ROLE" on the contract. |
|
|
304
|
+
| MAX_CONFIRM_EXPIRY \<address> | Calls the read-only function "MAX_CONFIRM_EXPIRY" on the contract. |
|
|
305
|
+
| MINT_ROLE \<address> | Calls the read-only function "MINT_ROLE" on the contract. |
|
|
306
|
+
| MIN_CONFIRM_EXPIRY \<address> | Calls the read-only function "MIN_CONFIRM_EXPIRY" on the contract. |
|
|
307
|
+
| PAUSE_BEACON_CHAIN_DEPOSITS_ROLE \<address> | Calls the read-only function "PAUSE_BEACON_CHAIN_DEPOSITS_ROLE" on the contract. |
|
|
308
|
+
| PDG_WITHDRAWAL_ROLE \<address> | Calls the read-only function "PDG_WITHDRAWAL_ROLE" on the contract. |
|
|
309
|
+
| REBALANCE_ROLE \<address> | Calls the read-only function "REBALANCE_ROLE" on the contract. |
|
|
310
|
+
| REQUEST_VALIDATOR_EXIT_ROLE \<address> | Calls the read-only function "REQUEST_VALIDATOR_EXIT_ROLE" on the contract. |
|
|
311
|
+
| RESUME_BEACON_CHAIN_DEPOSITS_ROLE \<address> | Calls the read-only function "RESUME_BEACON_CHAIN_DEPOSITS_ROLE" on the contract. |
|
|
312
|
+
| STETH \<address> | Calls the read-only function "STETH" on the contract. |
|
|
313
|
+
| TRIGGER_VALIDATOR_WITHDRAWAL_ROLE \<address> | Calls the read-only function "TRIGGER_VALIDATOR_WITHDRAWAL_ROLE" on the contract. |
|
|
314
|
+
| VOLUNTARY_DISCONNECT_ROLE \<address> | Calls the read-only function "VOLUNTARY_DISCONNECT_ROLE" on the contract. |
|
|
315
|
+
| WETH \<address> | Calls the read-only function "WETH" on the contract. |
|
|
316
|
+
| WITHDRAW_ROLE \<address> | Calls the read-only function "WITHDRAW_ROLE" on the contract. |
|
|
317
|
+
| WSTETH \<address> | Calls the read-only function "WSTETH" on the contract. |
|
|
318
|
+
| confirmations \<address> \<callData> \<role> | Calls the read-only function "confirmations" on the contract. |
|
|
319
|
+
| confirmingRoles \<address> | Calls the read-only function "confirmingRoles" on the contract. |
|
|
320
|
+
| getConfirmExpiry \<address> | Calls the read-only function "getConfirmExpiry" on the contract. |
|
|
321
|
+
| getRoleAdmin \<address> \<role> | Calls the read-only function "getRoleAdmin" on the contract. |
|
|
322
|
+
| getRoleMember \<address> \<role> \<index> | Calls the read-only function "getRoleMember" on the contract. |
|
|
323
|
+
| getRoleMemberCount \<address> \<role> | Calls the read-only function "getRoleMemberCount" on the contract. |
|
|
324
|
+
| getRoleMembers \<address> \<role> | Calls the read-only function "getRoleMembers" on the contract. |
|
|
325
|
+
| has-role \<address> \<role> \<account> | get has role by role and account |
|
|
326
|
+
| initialized \<address> | Calls the read-only function "initialized" on the contract. |
|
|
327
|
+
| projected-new-mintable-shares \<address> \<etherToFund> | get projected new mintable shares |
|
|
328
|
+
| r-threshold \<address> | get rebalance threshold in basis points |
|
|
329
|
+
| reserve-ratio \<address> | get reserve ratio in basis points |
|
|
330
|
+
| s-limit \<address> | get share limit |
|
|
331
|
+
| s-minted \<address> | get shares minted |
|
|
332
|
+
| vault \<address> | get staking vault address |
|
|
333
|
+
| supports-interface \<address> \<interfaceId> | get supports interface by id |
|
|
334
|
+
| total-mintable-shares \<address> | get total of shares that can be minted on the vault |
|
|
335
|
+
| t-fee \<address> | get treasury fee in basis points |
|
|
336
|
+
| valuation \<address> | get vault valuation |
|
|
337
|
+
| hub \<address> | get vaultHub address |
|
|
338
|
+
| socket \<address> | get vault socket |
|
|
339
|
+
| w-ether \<address> | get amount of ether that can be withdrawn from the staking vault |
|
|
340
|
+
| info | get dashboard base info |
|
|
341
|
+
| ownership \<address> \<newOwner> | transfers ownership of the staking vault to a new owner |
|
|
342
|
+
| disconnect \<address> | disconnects the staking vault from the vault hub |
|
|
343
|
+
| fund | funds the staking vault with ether |
|
|
344
|
+
| fund-weth \<address> \<wethAmount> | funds the staking vault with wrapped ether |
|
|
345
|
+
| withdraw \<address> \<recipient> \<wei> | withdraws ether from the staking vault to a recipient |
|
|
346
|
+
| withdraw-weth \<address> \<recipient> \<ether> | withdraws stETH tokens from the staking vault to wrapped ether |
|
|
347
|
+
| exit \<address> \<validatorPubKey> | requests the exit of a validator from the staking vault |
|
|
348
|
+
| trigger-validator-withdrawal \<address> \<pubkeys> \<amounts> \<recipient> | triggers the withdrawal of a validator from the staking vault |
|
|
349
|
+
| mint-shares \<address> \<recipient> \<amountOfShares> | mints stETH tokens backed by the vault to a recipient |
|
|
350
|
+
| mint-steth \<address> \<recipient> \<amountOfShares> | mints stETH tokens backed by the vault to a recipient |
|
|
351
|
+
| mint-wsteth \<address> \<recipient> \<tokens> | mints wstETH tokens backed by the vault to a recipient |
|
|
352
|
+
| burn-shares \<address> \<amountOfShares> | Burns stETH shares from the sender backed by the vault. Expects corresponding amount of stETH approved to this contract |
|
|
353
|
+
| burn-steth \<address> \<amountOfShares> | Burns stETH shares from the sender backed by the vault. Expects stETH amount approved to this contract. |
|
|
354
|
+
| burn-wsteth \<address> \<tokens> | burn wstETH tokens from the sender backed by the vault |
|
|
355
|
+
| burn-shares-permit \<address> \<tokens> \<permitJSON> | Burns stETH tokens (in shares) backed by the vault from the sender using permit (with value in stETH). |
|
|
356
|
+
| burn-steth-permit \<address> \<tokens> \<permitJSON> | Burns stETH tokens backed by the vault from the sender using permit. |
|
|
357
|
+
| burn-wsteth-permit \<address> \<tokens> \<permitJSON> | burn wstETH tokens from the sender backed by the vault using EIP-2612 Permit |
|
|
358
|
+
| rebalance \<address> \<ether> | rebalance the vault by transferring ether |
|
|
359
|
+
| recover-erc20 \<address> \<token> \<recipient> \<amount> | recovers ERC20 tokens or ether from the dashboard contract to sender |
|
|
360
|
+
| recover-erc721 \<address> \<token> \<tokenId> \<recipient> | Transfers a given token_id of an ERC721-compatible NFT (defined by the token contract address) |
|
|
361
|
+
| deposit-pause \<address> | Pauses beacon chain deposits on the staking vault. |
|
|
362
|
+
| deposit-resume \<address> | Mass-grants multiple roles to multiple accounts. |
|
|
363
|
+
| role-grant \<address> \<roleAssignmentJSON> | Mass-revokes multiple roles from multiple accounts. |
|
|
364
|
+
| role-revoke \<address> \<roleAssignmentJSON> | Resumes beacon chain deposits on the staking vault. |
|
|
365
|
+
| compensate-disproven-predeposit \<address> \<pubkey> \<recipient> | Compensates a disproven predeposit from the Predeposit Guarantee contract. |
|
|
366
|
+
|
|
367
|
+
**\<permitJSON>**
|
|
368
|
+
|
|
369
|
+
```json
|
|
370
|
+
{
|
|
371
|
+
"value": number as bigint;
|
|
372
|
+
"deadline": number as bigint;
|
|
373
|
+
"v": number;
|
|
374
|
+
"r": string as Address;
|
|
375
|
+
"s": string as Address;
|
|
376
|
+
}
|
|
377
|
+
```
|
|
378
|
+
|
|
379
|
+
**\<roleAssignmentJSON>**
|
|
380
|
+
|
|
381
|
+
```json
|
|
382
|
+
[{
|
|
383
|
+
"account": string as Address;
|
|
384
|
+
"role": string as `0x${string}`;
|
|
385
|
+
}]
|
|
386
|
+
```
|
|
387
|
+
|
|
388
|
+
### Delegation
|
|
389
|
+
|
|
390
|
+
#### Command
|
|
391
|
+
|
|
392
|
+
```bash
|
|
393
|
+
lsv-cli delegation [arguments] [-options]
|
|
394
|
+
```
|
|
395
|
+
|
|
396
|
+
#### Delegation commands list
|
|
397
|
+
|
|
398
|
+
```bash
|
|
399
|
+
lsv-cli delegation -h
|
|
400
|
+
```
|
|
401
|
+
|
|
402
|
+
#### API
|
|
403
|
+
|
|
404
|
+
| Command | Description |
|
|
405
|
+
| ---------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
|
406
|
+
| ASSET_RECOVERY_ROLE \<address> | Calls the read-only function "ASSET_RECOVERY_ROLE" on the contract. |
|
|
407
|
+
| BURN_ROLE \<address> | Calls the read-only function "BURN_ROLE" on the contract. |
|
|
408
|
+
| CURATOR_FEE_CLAIM_ROLE \<address> | Calls the read-only function "CURATOR_FEE_CLAIM_ROLE" on the contract. |
|
|
409
|
+
| CURATOR_FEE_SET_ROLE \<address> | Calls the read-only function "CURATOR_FEE_SET_ROLE" on the contract. |
|
|
410
|
+
| DEFAULT_ADMIN_ROLE \<address> | Calls the read-only function "DEFAULT_ADMIN_ROLE" on the contract. |
|
|
411
|
+
| ETH \<address> | Calls the read-only function "ETH" on the contract. |
|
|
412
|
+
| FUND_ROLE \<address> | Calls the read-only function "FUND_ROLE" on the contract. |
|
|
413
|
+
| MAX_CONFIRM_EXPIRY \<address> | Calls the read-only function "MAX_CONFIRM_EXPIRY" on the contract. |
|
|
414
|
+
| MINT_ROLE \<address> | Calls the read-only function "MINT_ROLE" on the contract. |
|
|
415
|
+
| MIN_CONFIRM_EXPIRY \<address> | Calls the read-only function "MIN_CONFIRM_EXPIRY" on the contract. |
|
|
416
|
+
| NODE_OPERATOR_FEE_CLAIM_ROLE \<address> | Calls the read-only function "NODE_OPERATOR_FEE_CLAIM_ROLE" on the contract. |
|
|
417
|
+
| NODE_OPERATOR_MANAGER_ROLE \<address> | Calls the read-only function "NODE_OPERATOR_MANAGER_ROLE" on the contract. |
|
|
418
|
+
| PAUSE_BEACON_CHAIN_DEPOSITS_ROLE \<address> | Calls the read-only function "PAUSE_BEACON_CHAIN_DEPOSITS_ROLE" on the contract. |
|
|
419
|
+
| PDG_WITHDRAWAL_ROLE \<address> | Calls the read-only function "PDG_WITHDRAWAL_ROLE" on the contract. |
|
|
420
|
+
| REBALANCE_ROLE \<address> | Calls the read-only function "REBALANCE_ROLE" on the contract. |
|
|
421
|
+
| REQUEST_VALIDATOR_EXIT_ROLE \<address> | Calls the read-only function "REQUEST_VALIDATOR_EXIT_ROLE" on the contract. |
|
|
422
|
+
| RESUME_BEACON_CHAIN_DEPOSITS_ROLE \<address> | Calls the read-only function "RESUME_BEACON_CHAIN_DEPOSITS_ROLE" on the contract. |
|
|
423
|
+
| STETH \<address> | Calls the read-only function "STETH" on the contract. |
|
|
424
|
+
| TRIGGER_VALIDATOR_WITHDRAWAL_ROLE \<address> | Calls the read-only function "TRIGGER_VALIDATOR_WITHDRAWAL_ROLE" on the contract. |
|
|
425
|
+
| VOLUNTARY_DISCONNECT_ROLE \<address> | Calls the read-only function "VOLUNTARY_DISCONNECT_ROLE" on the contract. |
|
|
426
|
+
| WETH \<address> | Calls the read-only function "WETH" on the contract. |
|
|
427
|
+
| WITHDRAW_ROLE \<address> | Calls the read-only function "WITHDRAW_ROLE" on the contract. |
|
|
428
|
+
| WSTETH \<address> | Calls the read-only function "WSTETH" on the contract. |
|
|
429
|
+
| confirmations \<address> \<callData> \<role> | Calls the read-only function "confirmations" on the contract. |
|
|
430
|
+
| confirmingRoles \<address> | Calls the read-only function "confirmingRoles" on the contract. |
|
|
431
|
+
| curatorFeeBP \<address> | Calls the read-only function "curatorFeeBP" on the contract. |
|
|
432
|
+
| curatorFeeClaimedReport \<address> | Calls the read-only function "curatorFeeClaimedReport" on the contract. |
|
|
433
|
+
| cf-unclaimed \<address> | Returns the accumulated unclaimed curator fee in ether |
|
|
434
|
+
| getConfirmExpiry \<address> | Calls the read-only function "getConfirmExpiry" on the contract. |
|
|
435
|
+
| getRoleAdmin \<address> \<role> | Calls the read-only function "getRoleAdmin" on the contract. |
|
|
436
|
+
| getRoleMember \<address> \<role> \<index> | Calls the read-only function "getRoleMember" on the contract. |
|
|
437
|
+
| getRoleMemberCount \<address> \<role> | Calls the read-only function "getRoleMemberCount" on the contract. |
|
|
438
|
+
| getRoleMembers \<address> \<role> | Calls the read-only function "getRoleMembers" on the contract. |
|
|
439
|
+
| has-role \<address> \<role> \<account> | get has role by role and account |
|
|
440
|
+
| initialized \<address> | Calls the read-only function "initialized" on the contract. |
|
|
441
|
+
| no-fee \<address> | get node operator fee in basis points |
|
|
442
|
+
| no-fee-report \<address> | get node operator fee claimed report |
|
|
443
|
+
| no-unclaimed-fee \<address> | Returns the accumulated unclaimed node operator fee in ether |
|
|
444
|
+
| projected-new-mintable-shares \<address> \<etherToFund> | get projected new mintable shares |
|
|
445
|
+
| r-threshold \<address> | get rebalance threshold in basis points |
|
|
446
|
+
| reserve-ratio \<address> | get reserve ratio in basis points |
|
|
447
|
+
| s-limit \<address> | get share limit |
|
|
448
|
+
| s-minted \<address> | get shares minted |
|
|
449
|
+
| vault \<address> | get staking vault address |
|
|
450
|
+
| supports-interface \<address> \<interfaceId> | get supports interface by id |
|
|
451
|
+
| total-mintable-shares \<address> | get total of shares that can be minted on the vault |
|
|
452
|
+
| t-fee \<address> | get treasury fee in basis points |
|
|
453
|
+
| unreserved \<address> | Calls the read-only function "unreserved" on the contract. |
|
|
454
|
+
| valuation \<address> | get vault valuation |
|
|
455
|
+
| hub \<address> | get vaultHub address |
|
|
456
|
+
| socket \<address> | get vault socket |
|
|
457
|
+
| w-ether \<address> | get amount of ether that can be withdrawn from the staking vault |
|
|
458
|
+
| roles \<address> | get delegation contract roles info |
|
|
459
|
+
| base-info \<address> | get delegation base info |
|
|
460
|
+
| is-healthy \<address> | get vault healthy info |
|
|
461
|
+
| cf-set \<address> \<newCuratorFee> | sets the curator fee |
|
|
462
|
+
| cf-claim \<address> \<recipient> | claims the curator fee |
|
|
463
|
+
| nof-set \<address> \<newNodeOperatorFeeBP> | sets the node operator fee |
|
|
464
|
+
| nof-claim \<address> \<recipient> | claims the node operator fee |
|
|
465
|
+
| fund \<address> \<wei> | funds the StakingVault with ether |
|
|
466
|
+
| withdraw \<address> \<recipient> \<wei> | withdraws ether from the StakingVault |
|
|
467
|
+
| rebalance \<address> \<ether> | rebalances the StakingVault with a given amount of ether |
|
|
468
|
+
| t-ownership \<address> \<newOwner> | transfers the ownership of the StakingVault |
|
|
469
|
+
| disconnect \<address> | voluntarily disconnects a StakingVault from VaultHub |
|
|
470
|
+
| deposit-pause \<address> | Pauses deposits to beacon chain from the StakingVault. |
|
|
471
|
+
| deposit-resume \<address> | Resumes deposits to beacon chain from the StakingVault. |
|
|
472
|
+
| fund-weth \<address> \<wethAmount> | funds the staking vault with wrapped ether |
|
|
473
|
+
| withdraw-weth \<address> \<recipient> \<ether> | withdraws stETH tokens from the staking vault to wrapped ether |
|
|
474
|
+
| exit \<address> \<validatorPubKey> | requests the exit of a validator from the staking vault |
|
|
475
|
+
| mint-shares \<address> \<recipient> \<amountOfShares> | mints stETH tokens backed by the vault to a recipient |
|
|
476
|
+
| mint-steth \<address> \<recipient> \<amountOfShares> | mints stETH tokens backed by the vault to a recipient |
|
|
477
|
+
| mint-wsteth \<address> \<recipient> \<tokens> | mints wstETH tokens backed by the vault to a recipient |
|
|
478
|
+
| burn-shares \<address> \<amountOfShares> | Burns stETH shares from the sender backed by the vault. Expects corresponding amount of stETH approved to this contract |
|
|
479
|
+
| burn-steth \<address> \<amountOfShares> | Burns stETH shares from the sender backed by the vault. Expects stETH amount approved to this contract. |
|
|
480
|
+
| burn-wsteth \<address> \<tokens> | burn wstETH tokens from the sender backed by the vault |
|
|
481
|
+
| burn-shares-permit \<address> \<tokens> \<permitJSON> | Burns stETH tokens (in shares) backed by the vault from the sender using permit (with value in stETH). |
|
|
482
|
+
| burn-steth-permit \<address> \<tokens> \<permitJSON> | Burns stETH tokens backed by the vault from the sender using permit. |
|
|
483
|
+
| burn-wsteth-permit \<address> \<tokens> \<permitJSON> | burn wstETH tokens from the sender backed by the vault using EIP-2612 Permit |
|
|
484
|
+
| recover-erc20 \<address> \<token> \<recipient> \<amount> | recovers ERC20 tokens or ether from the delegation contract to sender |
|
|
485
|
+
| recover-erc721 \<address> \<token> \<tokenId> \<recipient> | Transfers a given token_id of an ERC721-compatible NFT (defined by the token contract address) |
|
|
486
|
+
| role-grant \<address> \<roleAssignmentJSON> | Mass-revokes multiple roles from multiple accounts. |
|
|
487
|
+
| role-revoke \<address> \<roleAssignmentJSON> | Resumes beacon chain deposits on the staking vault. |
|
|
488
|
+
| set-confirm-expiry \<address> \<newConfirmExpiry> | set the confirmation expiry |
|
|
489
|
+
|
|
490
|
+
### PredepositGuarantee
|
|
491
|
+
|
|
492
|
+
#### Command
|
|
493
|
+
|
|
494
|
+
```bash
|
|
495
|
+
lsv-cli pdg [arguments] [-options]
|
|
496
|
+
```
|
|
497
|
+
|
|
498
|
+
#### Delegation commands list
|
|
499
|
+
|
|
500
|
+
```bash
|
|
501
|
+
lsv-cli pdg -h
|
|
502
|
+
```
|
|
503
|
+
|
|
504
|
+
#### API
|
|
505
|
+
|
|
506
|
+
| Command | Description |
|
|
507
|
+
| -------------------------------------------- | ------------------------------------------------------------------------------- |
|
|
508
|
+
| BEACON_ROOTS | Calls the read-only function "BEACON_ROOTS" on the contract. |
|
|
509
|
+
| DEFAULT_ADMIN_ROLE | Calls the read-only function "DEFAULT_ADMIN_ROLE" on the contract. |
|
|
510
|
+
| GI_FIRST_VALIDATOR | Calls the read-only function "GI_FIRST_VALIDATOR" on the contract. |
|
|
511
|
+
| GI_FIRST_VALIDATOR_AFTER_CHANGE | Calls the read-only function "GI_FIRST_VALIDATOR_AFTER_CHANGE" on the contract. |
|
|
512
|
+
| GI_PUBKEY_WC_PARENT | Calls the read-only function "GI_PUBKEY_WC_PARENT" on the contract. |
|
|
513
|
+
| GI_STATE_ROOT | Calls the read-only function "GI_STATE_ROOT" on the contract. |
|
|
514
|
+
| MAX_SUPPORTED_WC_VERSION | Calls the read-only function "MAX_SUPPORTED_WC_VERSION" on the contract. |
|
|
515
|
+
| MIN_SUPPORTED_WC_VERSION | Calls the read-only function "MIN_SUPPORTED_WC_VERSION" on the contract. |
|
|
516
|
+
| PAUSE_INFINITELY | Calls the read-only function "PAUSE_INFINITELY" on the contract. |
|
|
517
|
+
| PAUSE_ROLE | Calls the read-only function "PAUSE_ROLE" on the contract. |
|
|
518
|
+
| PREDEPOSIT_AMOUNT | Calls the read-only function "PREDEPOSIT_AMOUNT" on the contract. |
|
|
519
|
+
| RESUME_ROLE | Calls the read-only function "RESUME_ROLE" on the contract. |
|
|
520
|
+
| SLOT_CHANGE_GI_FIRST_VALIDATOR | Calls the read-only function "SLOT_CHANGE_GI_FIRST_VALIDATOR" on the contract. |
|
|
521
|
+
| STATE_ROOT_DEPTH | Calls the read-only function "STATE_ROOT_DEPTH" on the contract. |
|
|
522
|
+
| STATE_ROOT_POSITION | Calls the read-only function "STATE_ROOT_POSITION" on the contract. |
|
|
523
|
+
| WC_PUBKEY_PARENT_DEPTH | Calls the read-only function "WC_PUBKEY_PARENT_DEPTH" on the contract. |
|
|
524
|
+
| WC_PUBKEY_PARENT_POSITION | Calls the read-only function "WC_PUBKEY_PARENT_POSITION" on the contract. |
|
|
525
|
+
| claimableRefund \<\_guarantor> | Calls the read-only function "claimableRefund" on the contract. |
|
|
526
|
+
| getResumeSinceTimestamp | Calls the read-only function "getResumeSinceTimestamp" on the contract. |
|
|
527
|
+
| getRoleAdmin \<role> | Calls the read-only function "getRoleAdmin" on the contract. |
|
|
528
|
+
| getRoleMember \<role> \<index> | Calls the read-only function "getRoleMember" on the contract. |
|
|
529
|
+
| getRoleMemberCount \<role> | Calls the read-only function "getRoleMemberCount" on the contract. |
|
|
530
|
+
| getRoleMembers \<role> | Calls the read-only function "getRoleMembers" on the contract. |
|
|
531
|
+
| hasRole \<role> \<account> | Calls the read-only function "hasRole" on the contract. |
|
|
532
|
+
| isPaused | Calls the read-only function "isPaused" on the contract. |
|
|
533
|
+
| nodeOperatorBalance \<\_nodeOperator> | Calls the read-only function "nodeOperatorBalance" on the contract. |
|
|
534
|
+
| nodeOperatorGuarantor \<\_nodeOperator> | Calls the read-only function "nodeOperatorGuarantor" on the contract. |
|
|
535
|
+
| supportsInterface \<interfaceId> | Calls the read-only function "supportsInterface" on the contract. |
|
|
536
|
+
| unlockedBalance \<\_nodeOperator> | Calls the read-only function "unlockedBalance" on the contract. |
|
|
537
|
+
| validatorStatus \<\_validatorPubkey> | Calls the read-only function "validatorStatus" on the contract. |
|
|
538
|
+
| predeposit \<vault> \<deposits> | predeposit |
|
|
539
|
+
| create-proof-and-prove \<index> | create proof and prove |
|
|
540
|
+
| deposit-to-beacon-chain \<vault> \<deposits> | deposit to beacon chain |
|
|
541
|
+
|
|
542
|
+
### VaultViewer
|
|
543
|
+
|
|
544
|
+
#### Command
|
|
545
|
+
|
|
546
|
+
```bash
|
|
547
|
+
lsv-cli vv [arguments] [-options]
|
|
548
|
+
```
|
|
549
|
+
|
|
550
|
+
#### Delegation commands list
|
|
551
|
+
|
|
552
|
+
```bash
|
|
553
|
+
lsv-cli vv -h
|
|
554
|
+
```
|
|
555
|
+
|
|
556
|
+
#### API
|
|
557
|
+
|
|
558
|
+
| Command | Description |
|
|
559
|
+
| ------------------------------------------- | ------------------------------------------------------------------ |
|
|
560
|
+
| DEFAULT_ADMIN_ROLE | Calls the read-only function "DEFAULT_ADMIN_ROLE" on the contract. |
|
|
561
|
+
| hasRole \<vault> \<\_member> \<\_role> | Calls the read-only function "hasRole" on the contract. |
|
|
562
|
+
| isContract \<account> | Calls the read-only function "isContract" on the contract. |
|
|
563
|
+
| isOwner \<vault> \<\_owner> | Calls the read-only function "isOwner" on the contract. |
|
|
564
|
+
| vaultHub | Calls the read-only function "vaultHub" on the contract. |
|
|
565
|
+
| by-owner \<owner> | get vaults by owner |
|
|
566
|
+
| by-owner-bound \<owner> \<from> \<to> | get vaults by owner - bound |
|
|
567
|
+
| by-ra \<role> \<member> | get vaults by role and address |
|
|
568
|
+
| by-ra-bound \<role> \<member> \<from> \<to> | get vaults by role and address - bound |
|
|
569
|
+
| connected | get vaults connected to vault hub |
|
|
570
|
+
| connected-bound \<from> \<to> | get vaults connected to vault hub - bound |
|
|
571
|
+
| my | get my vaults |
|
|
572
|
+
| my-bound \<from> \<to> | get my vaults - bound |
|
|
573
|
+
| my-by-role \<role> | get my vaults by role |
|
|
574
|
+
| my-by-role-bound \<role> \<from> \<to> | get my vaults by role - bound |
|
|
575
|
+
|
|
576
|
+
## License
|
|
577
|
+
|
|
578
|
+
This project is licensed under the [MIT License](LICENSE).
|