Browse Source

Refactor cfd tests

In order to reuse code and to make it easier to add new tests (e.g.
negative tests) in the future.
integrate-protocol-maker-side
Lucas Soriano del Pino 3 years ago
parent
commit
bffe4c603e
No known key found for this signature in database GPG Key ID: EE611E973A1530E7
  1. 3
      cfd_protocol/src/lib.rs
  2. 1163
      cfd_protocol/tests/cfds.rs

3
cfd_protocol/src/lib.rs

@ -3,9 +3,8 @@ use bdk::bitcoin::hashes::hex::ToHex;
use bdk::bitcoin::hashes::*;
use bdk::bitcoin::util::bip143::SigHashCache;
use bdk::bitcoin::util::psbt::{Global, PartiallySignedTransaction};
use bdk::bitcoin::Script;
use bdk::bitcoin::{
Address, Amount, OutPoint, PublicKey, SigHash, SigHashType, Transaction, TxIn, TxOut,
Address, Amount, OutPoint, PublicKey, Script, SigHash, SigHashType, Transaction, TxIn, TxOut,
};
use bdk::database::BatchDatabase;
use bdk::descriptor::Descriptor;

1163
cfd_protocol/tests/cfds.rs

File diff suppressed because it is too large
Loading…
Cancel
Save