Skip to content

Instantly share code, notes, and snippets.

@pawanjay176
Last active May 16, 2024 14:09
Show Gist options
  • Save pawanjay176/0bcdd44b52a1eca4f4eba9b41db273f3 to your computer and use it in GitHub Desktop.
Save pawanjay176/0bcdd44b52a1eca4f4eba9b41db273f3 to your computer and use it in GitHub Desktop.
deposit.yaml
id: pectra-massive-deposit1
name: "Massive deposit test deposits 1"
timeout: 672h
config:
#walletPrivkey: ""
depositContract: "0x4242424242424242424242424242424242424242"
slot: 34
tasks:
- name: check_clients_are_healthy
title: "Check if at least one client is ready"
timeout: 5m
config:
minClientCount: 1
- name: check_consensus_slot_range
title: "Wait for slot >= ${slot}"
timeout: 2h
configVars:
minSlotNumber: "slot"
- name: generate_random_mnemonic
title: "Generate random mnemonic"
config:
mnemonicResultVar: "validatorMnemonic"
- name: generate_child_wallet
title: "Generate wallet for lifecycle test"
config:
prefundMinBalance: 2501000000000000000000000 # ensure 25010 ETH
walletAddressResultVar: "depositorAddress"
walletPrivateKeyResultVar: "depositorPrivateKey"
configVars:
privateKey: "walletPrivkey"
# generate deposits & wait for activation
- name: run_tasks
title: "Generate deposits & track inclusion"
config:
stopChildOnResult: false
tasks:
- name: generate_deposits
title: "Generate 500 deposits with 32 ETH each"
config:
limitTotal: 1000
limitPerSlot: 1000
limitPending: 1000
depositAmount: 32
awaitReceipt: true
failOnReject: true
validatorPubkeysResultVar: "validatorPubkeys"
configVars:
walletPrivkey: "depositorPrivateKey"
mnemonic: "validatorMnemonic"
depositContract: "depositContract"
- name: run_task_matrix
title: "Wait for detection of all deposited keys"
configVars:
matrixValues: "validatorPubkeys"
config:
runConcurrent: true
matrixVar: "validatorPubkey"
task:
name: check_consensus_validator_status
title: "Wait for validator to become activated (${validatorPubkey})"
config:
validatorStatus:
- pending_initialized
configVars:
validatorPubKey: "validatorPubkey"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment