Skip to content

Commit a4192fd

Browse files
Update intent.rs
1 parent 618ad65 commit a4192fd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/intent.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//!
33
//! An Intent is an immutable, cryptographically bound declaration
44
//! of transfer parameters. No receiver address is included.
5-
5+
use crate::intent_binding::IntentBinding;
66
use serde::Serialize;
77

88
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
@@ -16,11 +16,13 @@ pub struct Amount(pub u64);
1616

1717
#[derive(Debug, Clone, Serialize)]
1818
pub struct TransferIntent {
19-
2019
pub amount_xrp_drops: u64,
2120
pub expiry_unix: u64,
2221
pub protocol_version: &'static str,
2322
pub fee_drops: u64,
23+
24+
/// Optional contextual binding (ledger / participants)
25+
pub binding: Option<IntentBinding>,
2426
}
2527

2628
impl TransferIntent {
@@ -30,6 +32,7 @@ impl TransferIntent {
3032
expiry_unix,
3133
protocol_version: "RFC-XSTRP-0001",
3234
fee_drops: 10_000, // 0.01 XRP base fee
35+
binding: None,
3336
}
3437
}
3538
}

0 commit comments

Comments
 (0)