-
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.
Pre-Auth manifests and nonfungibles adjustments (#252)
* wip * unknown resources * wip * wip * wip * wip * wip * wip * wip * wip
- Loading branch information
1 parent
c52270b
commit 15824be
Showing
37 changed files
with
1,114 additions
and
807 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
6 changes: 3 additions & 3 deletions
6
...rapped_radix_engine_toolkit/low_level/manifest_summary/account_deposit/account_deposit.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,9 @@ | ||
use crate::prelude::*; | ||
use sargon::AccountDeposit as InternalAccountDeposit; | ||
use sargon::AccountDeposits as InternalAccountDeposits; | ||
|
||
/// Represents an account deposit, which includes specified and unspecified resources. | ||
#[derive(Clone, PartialEq, Eq, InternalConversion, uniffi::Record)] | ||
pub struct AccountDeposit { | ||
specified_resources: HashMap<ResourceAddress, SimpleResourceBounds>, | ||
pub struct AccountDeposits { | ||
specified_resources: Vec<SimpleResourceBounds>, | ||
unspecified_resources: UnspecifiedResources, | ||
} |
12 changes: 0 additions & 12 deletions
12
...rc/wrapped_radix_engine_toolkit/low_level/manifest_summary/account_deposit/allowed_ids.rs
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
...rc/wrapped_radix_engine_toolkit/low_level/manifest_summary/account_deposit/lower_bound.rs
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
...uniffi/src/wrapped_radix_engine_toolkit/low_level/manifest_summary/account_deposit/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,19 +1,13 @@ | ||
mod account_deposit; | ||
mod allowed_ids; | ||
mod change_source; | ||
mod lower_bound; | ||
mod simple_fungible_resource_bounds; | ||
mod simple_non_fungible_resource_bounds; | ||
mod simple_resource_bounds; | ||
mod unspecified_resources; | ||
mod upper_bound; | ||
|
||
pub use account_deposit::*; | ||
pub use allowed_ids::*; | ||
pub use change_source::*; | ||
pub use lower_bound::*; | ||
pub use simple_fungible_resource_bounds::*; | ||
pub use simple_non_fungible_resource_bounds::*; | ||
pub use simple_resource_bounds::*; | ||
pub use unspecified_resources::*; | ||
pub use upper_bound::*; |
4 changes: 2 additions & 2 deletions
4
...ine_toolkit/low_level/manifest_summary/account_deposit/simple_fungible_resource_bounds.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
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
15 changes: 0 additions & 15 deletions
15
...rc/wrapped_radix_engine_toolkit/low_level/manifest_summary/account_deposit/upper_bound.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
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
52 changes: 52 additions & 0 deletions
52
crates/sargon/fixtures/transaction/open_subintent_fungibles.rtm
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,52 @@ | ||
ASSERT_WORKTOP_RESOURCES_INCLUDE | ||
Map<Address, Enum>( | ||
Address("resource_tdx_2_1tknxxxxxxxxxradxrdxxxxxxxxx009923554798xxxxxxxxxtfd2jc") => Enum<ResourceConstraint::General>( | ||
Tuple( | ||
Array<NonFungibleLocalId>(), | ||
Enum<LowerBound::NonZero>(), | ||
Enum<UpperBound::Unbounded>(), | ||
Enum<AllowedIds::Any>() | ||
) | ||
), | ||
Address("resource_tdx_2_1th4gzm9rk5s28yf5gud0a32m082g4x60d6na4ecsccte032y3xu785") => Enum<ResourceConstraint::General>( | ||
Tuple( | ||
Array<NonFungibleLocalId>(), | ||
Enum<LowerBound::Inclusive>(Decimal("6")), | ||
Enum<UpperBound::Unbounded>(), | ||
Enum<AllowedIds::Any>() | ||
) | ||
), | ||
Address("resource_tdx_2_1tkd957yt3rwqze7elmzlphfjnmfyzkf9l5rau5ccsx9h2vs9nq3tzp") => Enum<ResourceConstraint::General>( | ||
Tuple( | ||
Array<NonFungibleLocalId>(), | ||
Enum<LowerBound::NonZero>(), | ||
Enum<UpperBound::Inclusive>(Decimal("10")), | ||
Enum<AllowedIds::Any>() | ||
) | ||
), | ||
Address("resource_tdx_2_1t5jcmwqx39ym7fw0hrlpnxwechr0mzlgulcfcye59qm9y9fa5uvdrd") => Enum<ResourceConstraint::General>( | ||
Tuple( | ||
Array<NonFungibleLocalId>(), | ||
Enum<LowerBound::Inclusive>(Decimal("100")), | ||
Enum<UpperBound::Inclusive>(Decimal("159")), | ||
Enum<AllowedIds::Any>() | ||
) | ||
), | ||
Address("resource_tdx_2_1t5dapa24l4xvwqtqe2jrdphtn7ga46gw67wr9fwn4gp532myfjqpck") => Enum<ResourceConstraint::General>( | ||
Tuple( | ||
Array<NonFungibleLocalId>(), | ||
Enum<LowerBound::Inclusive>(Decimal("3")), | ||
Enum<UpperBound::Inclusive>(Decimal("3")), | ||
Enum<AllowedIds::Any>() | ||
) | ||
), | ||
) | ||
; | ||
|
||
CALL_METHOD | ||
Address("account_tdx_2_129rfcz44zxflyaf6d65fdvaqtk5rlvdu8nzek2nz435zknhqure2xl") | ||
"deposit_batch" | ||
Expression("ENTIRE_WORKTOP") | ||
; | ||
|
||
YIELD_TO_PARENT; |
Oops, something went wrong.