Skip to content

Commit 220e877

Browse files
Create intent_bindings.rs
1 parent d9a5160 commit 220e877

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/intent_bindings.rs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/// IntentBinding is a passive, non-enforcing metadata container.
2+
///
3+
/// It provides contextual information about where an intent
4+
/// is expected to exist (ledger) and between whom (participants).
5+
///
6+
/// This structure MUST NOT:
7+
/// - Perform validation
8+
/// - Enforce correctness
9+
/// - Interact with the state machine
10+
/// - Assume XRPL semantics
11+
#[derive(Debug, Clone, PartialEq, Eq)]
12+
pub struct IntentBinding {
13+
/// Identifier for the target ledger or environment.
14+
/// Example: "XRPL-mainnet", "XRPL-testnet", "simulated-ledger"
15+
pub ledger_id: String,
16+
17+
/// Opaque sender identifier (address, account, or alias).
18+
pub sender: String,
19+
20+
/// Opaque receiver identifier (address, account, or alias).
21+
pub receiver: String,
22+
}

0 commit comments

Comments
 (0)