def create_mock_deposit_data(*, config: Eth2Config, pubkey: BLSPubkey, privkey: int, withdrawal_credentials: Hash32, amount: Gwei=None) -> DepositData:
    if (amount is None):
        amount = config.MAX_EFFECTIVE_BALANCE
    data = DepositData(pubkey=pubkey, withdrawal_credentials=withdrawal_credentials, amount=amount)
    signature = sign_proof_of_possession(deposit_data=data, privkey=privkey)
    return data.copy(signature=signature)
def create_mock_deposit_data(*, config: Eth2Config, pubkey: BLSPubkey, privkey: int, withdrawal_credentials: Hash32, amount: Gwei=None) -> DepositData:
    if (amount is None):
        amount = config.MAX_EFFECTIVE_BALANCE
    data = DepositData(pubkey=pubkey, withdrawal_credentials=withdrawal_credentials, amount=amount)
    signature = sign_proof_of_possession(deposit_data=data, privkey=privkey)
    return data.copy(signature=signature)