Skip to content

Commit 7309a10

Browse files
Make VssConfig and PaymentInfo fields accessible
1 parent 63b68fa commit 7309a10

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

orange-sdk/src/lib.rs

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deny(missing_docs)]
1+
#![deny(missing_docs)]
22

33
//! A library implementing the full backend for a modern, highly usable, Bitcoin wallet focusing on
44
//! maximizing security and self-custody without trading off user experience.
@@ -169,11 +169,11 @@ pub enum VssAuth {
169169
#[allow(dead_code)]
170170
pub struct VssConfig {
171171
/// The URL of the VSS.
172-
vss_url: String,
172+
pub vss_url: String,
173173
/// The store ID for the VSS.
174-
store_id: String,
174+
pub store_id: String,
175175
/// Authentication method for the VSS.
176-
headers: VssAuth,
176+
pub headers: VssAuth,
177177
}
178178

179179
/// Configuration for wallet storage, either local SQLite or VSS.
@@ -388,6 +388,16 @@ impl PaymentInfo {
388388
},
389389
}
390390
}
391+
392+
/// Get the payment instructions.
393+
pub fn instructions(&self) -> PaymentInstructions {
394+
self.instructions.clone()
395+
}
396+
397+
/// Get the amount to be paid.
398+
pub fn amount(&self) -> Amount {
399+
self.amount
400+
}
391401
}
392402

393403
/// Represents possible failures during wallet initialization.

0 commit comments

Comments
 (0)