-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c6016f4
commit 825bd75
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
crates/uniffi/uniffi_SPLIT_ME/src/system/sargon_os/transactions/mod.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
mod sargon_os_subintent_manifest_modify; | ||
mod sargon_os_transaction_analysis; | ||
mod sargon_os_transaction_manifest_modify; | ||
mod sargon_os_transaction_status; | ||
mod sargon_os_transaction_submit; | ||
mod support; | ||
|
||
pub use sargon_os_subintent_manifest_modify::*; | ||
pub use sargon_os_transaction_analysis::*; | ||
pub use sargon_os_transaction_manifest_modify::*; | ||
pub use sargon_os_transaction_status::*; | ||
pub use sargon_os_transaction_submit::*; | ||
pub use support::*; |
18 changes: 18 additions & 0 deletions
18
.../uniffi_SPLIT_ME/src/system/sargon_os/transactions/sargon_os_subintent_manifest_modify.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
use crate::prelude::*; | ||
use sargon::SargonOsSubintentManifestModify; | ||
|
||
#[uniffi::export] | ||
impl SargonOS { | ||
pub async fn modify_subintent_manifest( | ||
&self, | ||
subintent_manifest: SubintentManifest, | ||
guarantees: Vec<TransactionGuarantee>, | ||
) -> Result<SubintentManifest> { | ||
self.wrapped | ||
.modify_subintent_manifest( | ||
subintent_manifest.into_internal(), | ||
guarantees.iter().map(|g| g.into_internal()), | ||
) | ||
.into_result() | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...niffi_SPLIT_ME/src/system/sargon_os/transactions/sargon_os_transaction_manifest_modify.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
use crate::prelude::*; | ||
use sargon::SargonOsTransactionManifestModify; | ||
|
||
#[uniffi::export] | ||
impl SargonOS { | ||
pub async fn modify_transaction_manifest( | ||
&self, | ||
transaction_manifest: TransactionManifest, | ||
fee_payer_address: AccountAddress, | ||
fee: Decimal192, | ||
guarantees: Vec<TransactionGuarantee>, | ||
) -> Result<TransactionManifest> { | ||
self.wrapped | ||
.modify_transaction_manifest( | ||
transaction_manifest.into_internal(), | ||
fee_payer_address.into_internal(), | ||
fee.into_internal(), | ||
guarantees.iter().map(|g| g.into_internal()), | ||
) | ||
.into_result() | ||
} | ||
} |