Skip to main content

VaultFactory

Command

yarn start contracts factory [arguments] [-options]

VaultFactory commands list

yarn start contracts factory -h

API

CommandDescription
read (r)read commands
write (w)write commands

Read

CommandDescription
infoget vault factory info
BEACONCalls the read-only function "BEACON" on the contract.
DASHBOARD_IMPLCalls the read-only function "DASHBOARD_IMPL" on the contract.
LIDO_LOCATORCalls the read-only function "LIDO_LOCATOR" on the contract.
PREVIOUS_FACTORYCalls the read-only function "PREVIOUS_FACTORY" on the contract.
deployed-vaults <vault>get true if the vault was deployed by this factory or PREVIOUS_FACTORY

Write

CommandDescription
create-vault <defaultAdmin> <nodeOperator> <nodeOperatorManager> <confirmExpiry> <nodeOperatorFeeRate> <quantity>creates a new StakingVault and Dashboard contracts
create-vault-without-connecting <defaultAdmin> <nodeOperator> <nodeOperatorManager> <confirmExpiry> <nodeOperatorFeeRate> <quantity>creates a new StakingVault and Dashboard contracts without connecting to VaultHub

Note: [quantity] is an optional argument. The default value is 1. [options]

OptionDescription
-r, --roles <roleAssignmentJSON>The optional role assignments to be made

<roleAssignmentJSON>

[{
"account": string as Address;
"role": string as `0x${string}`;
}]