Skip to content

Commit 7c9267b

Browse files
authored
Merge pull request #90 from farcaster-project/feature/add-monero-types
feat: feature strict encoding on monero types
2 parents 83d1ee5 + f7d1702 commit 7c9267b

File tree

6 files changed

+389
-3
lines changed

6 files changed

+389
-3
lines changed

Cargo.lock

Lines changed: 104 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

strict_encoding/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ grin_secp256k1zkp = { version = "0.7", optional = true }
2929
chrono = { version = "0.4", optional = true }
3030
half = { version = "1.8", optional = true }
3131
serde = { version = "1", optional = true }
32+
monero = { version = "0.17", optional = true }
3233

3334
[dev-dependencies]
3435
rand = "0.7"
@@ -37,7 +38,7 @@ strict_encoding_test = { version = "0.8.0", path = "./test_helpers" }
3738

3839
[features]
3940
default = ["chrono", "derive", "bitcoin"]
40-
all = ["float", "miniscript", "crypto", "chrono", "derive", "bitcoin", "serde"]
41+
all = ["float", "miniscript", "crypto", "chrono", "derive", "bitcoin", "serde", "monero"]
4142
crypto = ["ed25519-dalek", "grin_secp256k1zkp", "bitcoin"]
4243
derive = ["strict_encoding_derive"]
4344
float = ["amplify/apfloat", "half"]

strict_encoding/src/bitcoin.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,9 +1225,9 @@ pub(crate) mod test {
12251225

12261226
// test random and null outpoints
12271227
let outpoint = OutPoint::new(txid, vout);
1228-
let _ = test_encoding_roundtrip(&outpoint, &OUTPOINT).unwrap();
1228+
test_encoding_roundtrip(&outpoint, &OUTPOINT).unwrap();
12291229
let null = OutPoint::null();
1230-
let _ = test_encoding_roundtrip(&null, &OUTPOINT_NULL).unwrap();
1230+
test_encoding_roundtrip(&null, &OUTPOINT_NULL).unwrap();
12311231
}
12321232

12331233
#[test]

strict_encoding/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ mod collections;
7878
mod crypto;
7979
#[cfg(feature = "miniscript")]
8080
mod miniscript;
81+
#[cfg(feature = "monero")]
82+
mod monero;
8183
pub mod net;
8284
mod pointers;
8385
mod primitives;

0 commit comments

Comments
 (0)