Skip to main content

PredepositGuarantee

Command

yarn start contracts pdg [arguments] [-options]

PredepositGuarantee commands list

yarn start contracts pdg -h

API

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

Read

CommandDescription
infoget PredepositGuarantee base info
rolesget PredepositGuarantee roles
validator-status v-status<validatorPubkey>get validator status
BEACON_ROOTSget beacon roots address
DEFAULT_ADMIN_ROLEget default admin role
DEPOSIT_DOMAINget predeposit role
GI_FIRST_VALIDATOR_CURRget GIndex of first validator in CL state tree after PIVOT_SLOT
GI_FIRST_VALIDATOR_PREVget GIndex of first validator in CL state tree
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
PIVOT_SLOTget slot when GIndex change will occur due to the hardfork
PREDEPOSIT_AMOUNTget computed DEPOSIT_DOMAIN for current chain
RESUME_ROLEget resume role
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
node-operator-depositor <address>get address of the depositor for the NO
no-g <address>get node operator guarantor
supportsInterface <interfaceId>Calls the read-only function "supportsInterface" on the contract.
un-bal <address>get unlocked balance
validate-pubkey-wc-proof <witness> <withdrawal-credentials>validates proof of validator in CL with withdrawalCredentials and pubkey against Beacon block root
verify-deposit-message <deposit> <depositsY> <withdrawal-credentials>verifies the deposit message signature using BLS12-381 pairing check

Write

CommandDescription
predeposit <vault> <deposits>deposits NO's validators with PREDEPOSIT_AMOUNT ether from StakingVault and locks up NO's balance
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-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": "..."
}]