ibc-testkit 0.57.0

Maintained by `ibc-rs`, serves as a versatile library that provides essential abstractions and implementations, fulfilling a dual role of enabling rigorous integration testing for the `ibc-rs` implementation while also aiding host chains in addressing a broad spectrum of testing scenarios during their integrations with `ibc-rs`.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use ibc::core::commitment_types::commitment::CommitmentProofBytes;
use ibc::core::commitment_types::proto::ics23::CommitmentProof;
use ibc::core::commitment_types::proto::v1::MerkleProof as RawMerkleProof;
use ibc::core::primitives::prelude::*;

/// Returns a dummy `CommitmentProofBytes`, for testing purposes only!
pub fn dummy_commitment_proof_bytes() -> CommitmentProofBytes {
    let parsed = CommitmentProof { proof: None };
    let mproofs: Vec<CommitmentProof> = vec![parsed];
    let raw_mp = RawMerkleProof { proofs: mproofs };
    raw_mp
        .try_into()
        .expect("could not convert to CommitmentProofBytes")
}