code: def is_balance_proof_safe_for_onchain_operations(
          balance_proof: BalanceProofSignedState,
  ) -> bool:
      
      total_amount = balance_proof.transferred_amount + balance_proof.locked_amount
      return total_amount <= UINT256_MAX
docs: Check if the balance proof would overflow onchain.