-
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
ae56381
commit 3db2d64
Showing
14 changed files
with
115 additions
and
24 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
...gon/Extensions/SampleValues/Transaction/AccountLockerClaimableResource+SampleValues.swift
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,8 @@ | ||
import SargonUniFFI | ||
|
||
#if DEBUG | ||
extension AccountLockerClaimableResource { | ||
public static let sample: Self = newAccountLockerClaimableResourceSample() | ||
public static let sampleOther: Self = newAccountLockerClaimableResourceSampleOther() | ||
} | ||
#endif // DEBUG |
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
4 changes: 4 additions & 0 deletions
4
.../Sargon/Extensions/Swiftified/Transaction/AccountLockerClaimableResource+Swiftified.swift
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,4 @@ | ||
import Foundation | ||
import SargonUniFFI | ||
|
||
extension AccountLockerClaimableResource: SargonModel {} |
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
5 changes: 0 additions & 5 deletions
5
...argon/src/wrapped_radix_engine_toolkit/high_level/manifest_building/account_locker/mod.rs
This file was deleted.
Oops, something went wrong.
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
4 changes: 2 additions & 2 deletions
4
crates/sargon/src/wrapped_radix_engine_toolkit/high_level/manifest_building/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
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
12 changes: 12 additions & 0 deletions
12
...cker/account_locker_claimable_resource.rs → ...cker/account_locker_claimable_resource.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
36 changes: 36 additions & 0 deletions
36
...level/sargon_specific_types/account_locker/account_locker_claimable_resource_uniffi_fn.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,36 @@ | ||
use crate::prelude::*; | ||
|
||
#[uniffi::export] | ||
pub fn new_account_locker_claimable_resource_sample( | ||
) -> AccountLockerClaimableResource { | ||
AccountLockerClaimableResource::sample() | ||
} | ||
|
||
#[uniffi::export] | ||
pub fn new_account_locker_claimable_resource_sample_other( | ||
) -> AccountLockerClaimableResource { | ||
AccountLockerClaimableResource::sample_other() | ||
} | ||
|
||
#[cfg(test)] | ||
mod tests { | ||
use super::*; | ||
|
||
#[allow(clippy::upper_case_acronyms)] | ||
type SUT = AccountLockerClaimableResource; | ||
|
||
#[test] | ||
fn hash_of_samples() { | ||
assert_eq!( | ||
HashSet::<SUT>::from_iter([ | ||
new_account_locker_claimable_resource_sample(), | ||
new_account_locker_claimable_resource_sample_other(), | ||
// duplicates should get removed | ||
new_account_locker_claimable_resource_sample(), | ||
new_account_locker_claimable_resource_sample_other(), | ||
]) | ||
.len(), | ||
2 | ||
); | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
...n/src/wrapped_radix_engine_toolkit/high_level/sargon_specific_types/account_locker/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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
mod account_locker_claimable_resource; | ||
mod account_locker_claimable_resource_uniffi_fn; | ||
|
||
pub use account_locker_claimable_resource::*; | ||
pub use account_locker_claimable_resource_uniffi_fn::*; |
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
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
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