Skip to main content

PredepositGuarantee

Command

yarn start pdg [arguments] [-options]

PredepositGuarantee commands list

yarn start pdg -h

API

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

Read

CommandDescription
info
roles
BEACON_ROOTSget beacon roots address
DEFAULT_ADMIN_ROLEget default admin role
GI_FIRST_VALIDATORget first validator gIndex
GI_FIRST_VALIDATOR_AFTER_CHANGEget first validator gIndex after change
GI_PUBKEY_WC_PARENTget pubkey wc parent gIndex
GI_STATE_ROOTget state root gIndex
MAX_SUPPORTED_WC_VERSIONget max supported wc version
MIN_SUPPORTED_WC_VERSIONget min supported wc version
PAUSE_INFINITELYget special value for the infinite pause
PAUSE_ROLEget pause role
PREDEPOSIT_AMOUNTget amount of ether that is predeposited with each validator
RESUME_ROLEget resume role
SLOT_CHANGE_GI_FIRST_VALIDATORget slot change first validator gIndex
STATE_ROOT_DEPTHget state root depth
STATE_ROOT_POSITIONget state root position
WC_PUBKEY_PARENT_DEPTHget wc pubkey parent depth
WC_PUBKEY_PARENT_POSITIONget wc pubkey parent position
claimable-r <guarantor>get claimable refund
resume-since-tsget resume since timestamp
getRoleAdmin <role>Calls the read-only function "getRoleAdmin" on the contract.
getRoleMember <role> <index>Calls the read-only function "getRoleMember" on the contract.
getRoleMemberCount <role>Calls the read-only function "getRoleMemberCount" on the contract.
getRoleMembers <role>Calls the read-only function "getRoleMembers" on the contract.
hasRole <role> <account>Calls the read-only function "hasRole" on the contract.
is-pausedget is paused boolean
no-bal <address>get node operator balance by address
no-g <address>get node operator guarantor
supportsInterface <interfaceId>Calls the read-only function "supportsInterface" on the contract.
un-bal <address>get unlocked balance
v-status <pubkey>get validator status

Write

CommandDescription
predeposit <vault> <deposits>predeposit
proof-and-prove prove<index>make proof and prove
prove-and-deposit <indexes> <vault> <deposits>prove and deposit
deposit-to-beacon-chain <vault> <deposits>deposit to beacon chain
top-up <nodeOperator> <amount>top up no balance
prove-unknown-validator <index> <vault>prove unknown validator
prove-invalid-validator-wc <index> <invalidWithdrawalCredentials>prove invalid validator withdrawal credentials
withdraw-no-balance <nodeOperator> <amount> <recipient>withdraw node operator balance
set-no-guarantor set-no-g<guarantor>set node operator guarantor
claim-guarantor-refund claim-g-refund<recipient>claim guarantor refund
compensate-disproven-predeposit compensate<pubkey> <recipient>compensate disproven predeposit

<deposits>

{
"pubkey": "...",
"signature": "...",
"amount": number,
"deposit_data_root": "..."
}