ExocoreNetwork / exocore-contracts

5 stars 5 forks source link

test: add script to deposit a valid beacon chain validator to Exocore on Holesky #8

Closed adu-web3 closed 5 months ago

adu-web3 commented 5 months ago

Description

Though we have unit tests and integration test for native restaking deposit workflow, we did some hacks or mocks in those tests to make them work. New scripts are added to test native restaking deposit workflow on Holesky testnet:

  1. deploy contracts on both chains
  2. depositor creates the capsule and record capsule address
  3. node operators spins up a new validator and point its withdrawal credentials to the capsule address from above step
  4. depositor generate validator container and proof by using off-chain tool.
  5. depositor calls clientChainGateway.depositBeaconChainValidator(validatorContainer, proof) to account for validator's effective balance