Skip to main content

VaultViewer

Command

yarn start contracts v-v [arguments] [-options]

VaultViewer commands list

yarn start contracts v-v -h

API

CommandDescription
read (r)read commands

Read

CommandDescription
DEFAULT_ADMIN_ROLECalls the read-only function "DEFAULT_ADMIN_ROLE" on the contract.
LAZY_ORACLECalls the read-only function "LAZY_ORACLE" on the contract.
LIDO_LOCATORCalls the read-only function "LIDO_LOCATOR" on the contract.
VAULT_HUBCalls the read-only function "VAULT_HUB" on the contract.
has-role <vault> <member> <role>check if an address has a role in a vault
isContract <account>Calls the read-only function "isContract" on the contract.
is-vault-owner <vault address> <owner>checks if a given address is the owner of a connection vault
role-members <vault> <roles>get the VaultMembers for each specified role on a single vault
role-members-batch <vault addresses> <roles>get VaultMembers for each role on multiple vaults
vault-data <vault>get aggregated data for a single vault
by-owner-batch <owner> <offset> <limit>get vaults owned by _owner using batch pagination over the global vault list
by-role-address-batch by-ra<role> <member> <offset> <limit>get vaults where _member has _role, scanning a batch of the global vault list
vaults-countget the number of vaults connected to the VaultHub
vaults-data-batch <offset> <limit>get aggregated data for a batch of vaults
myget all my vaults
my-by-role <role>get all vaults where I have a role
allget all vaults connected to vault hub