Skip to content

Commit fb53c0d

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

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

orange-sdk/src/lib.rs

Lines changed: 12 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,14 @@ impl PaymentInfo {
388388
},
389389
}
390390
}
391+
392+
pub fn instructions(&self) -> PaymentInstructions {
393+
self.instructions.clone()
394+
}
395+
396+
pub fn amount(&self) -> Amount {
397+
self.amount
398+
}
391399
}
392400

393401
/// Represents possible failures during wallet initialization.

0 commit comments

Comments
 (0)