Skip to content

Commit

Permalink
Update RET from main -
Browse files Browse the repository at this point in the history
  • Loading branch information
Anka authored and Anka committed Oct 29, 2024
1 parent 76cda78 commit feeacf9
Show file tree
Hide file tree
Showing 8 changed files with 127 additions and 22 deletions.
71 changes: 58 additions & 13 deletions Sources/EngineToolkit/radix_engine_toolkit_uniffi.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3983,6 +3983,26 @@ public class NonFungibleGlobalId: NonFungibleGlobalIdProtocol {



public static func globalCallerBadge(componentAddress: Address, networkId: UInt8) throws -> NonFungibleGlobalId {
return NonFungibleGlobalId(unsafeFromRawPointer: try rustCallWithError(FfiConverterTypeRadixEngineToolkitError.lift) {
uniffi_radix_engine_toolkit_uniffi_fn_constructor_nonfungibleglobalid_global_caller_badge(
FfiConverterTypeAddress.lower(componentAddress),
FfiConverterUInt8.lower(networkId),$0)
})
}



public static func packageOfDirectCallerBadge(packageAddress: Address, networkId: UInt8) throws -> NonFungibleGlobalId {
return NonFungibleGlobalId(unsafeFromRawPointer: try rustCallWithError(FfiConverterTypeRadixEngineToolkitError.lift) {
uniffi_radix_engine_toolkit_uniffi_fn_constructor_nonfungibleglobalid_package_of_direct_caller_badge(
FfiConverterTypeAddress.lower(packageAddress),
FfiConverterUInt8.lower(networkId),$0)
})
}



public static func virtualSignatureBadge(publicKey: PublicKey, networkId: UInt8) throws -> NonFungibleGlobalId {
return NonFungibleGlobalId(unsafeFromRawPointer: try rustCallWithError(FfiConverterTypeRadixEngineToolkitError.lift) {
uniffi_radix_engine_toolkit_uniffi_fn_constructor_nonfungibleglobalid_virtual_signature_badge(
Expand Down Expand Up @@ -5588,7 +5608,7 @@ public func FfiConverterTypeTransactionHash_lower(_ value: TransactionHash) -> U
public protocol TransactionManifestProtocol {
func blobs() -> [Data]
func compile() throws -> Data
func executionSummary(networkId: UInt8, encodedReceipt: Data) throws -> ExecutionSummary
func executionSummary(networkId: UInt8, toolkitReceipt: String) throws -> ExecutionSummary
func extractAddresses() -> [EntityType: [Address]]
func instructions() -> Instructions
func modify(modifications: TransactionManifestModifications) throws -> TransactionManifest
Expand Down Expand Up @@ -5654,13 +5674,13 @@ public class TransactionManifest: TransactionManifestProtocol {
)
}

public func executionSummary(networkId: UInt8, encodedReceipt: Data) throws -> ExecutionSummary {
public func executionSummary(networkId: UInt8, toolkitReceipt: String) throws -> ExecutionSummary {
return try FfiConverterTypeExecutionSummary.lift(
try
rustCallWithError(FfiConverterTypeRadixEngineToolkitError.lift) {
uniffi_radix_engine_toolkit_uniffi_fn_method_transactionmanifest_execution_summary(self.pointer,
FfiConverterUInt8.lower(networkId),
FfiConverterData.lower(encodedReceipt),$0
FfiConverterString.lower(toolkitReceipt),$0
)
}
)
Expand Down Expand Up @@ -14971,7 +14991,6 @@ public enum ReservedInstruction {
case accountLockFee
case accountSecurify
case identitySecurify
case accountUpdateSettings
case accessControllerMethod
}

Expand All @@ -14988,9 +15007,7 @@ public struct FfiConverterTypeReservedInstruction: FfiConverterRustBuffer {

case 3: return .identitySecurify

case 4: return .accountUpdateSettings

case 5: return .accessControllerMethod
case 4: return .accessControllerMethod

default: throw UniffiInternalError.unexpectedEnumCase
}
Expand All @@ -15012,12 +15029,8 @@ public struct FfiConverterTypeReservedInstruction: FfiConverterRustBuffer {
writeInt(&buf, Int32(3))


case .accountUpdateSettings:
writeInt(&buf, Int32(4))


case .accessControllerMethod:
writeInt(&buf, Int32(5))
writeInt(&buf, Int32(4))

}
}
Expand Down Expand Up @@ -19215,6 +19228,16 @@ public func deriveVirtualAccountAddressFromPublicKey(publicKey: PublicKey, netwo
)
}

public func deriveVirtualGlobalCallerNonFungibleGlobalIdFromComponentAddress(componentAddress: Address, networkId: UInt8) throws -> NonFungibleGlobalId {
return try FfiConverterTypeNonFungibleGlobalId.lift(
try rustCallWithError(FfiConverterTypeRadixEngineToolkitError.lift) {
uniffi_radix_engine_toolkit_uniffi_fn_func_derive_virtual_global_caller_non_fungible_global_id_from_component_address(
FfiConverterTypeAddress.lower(componentAddress),
FfiConverterUInt8.lower(networkId),$0)
}
)
}

public func deriveVirtualIdentityAddressFromPublicKey(publicKey: PublicKey, networkId: UInt8) throws -> Address {
return try FfiConverterTypeAddress.lift(
try rustCallWithError(FfiConverterTypeRadixEngineToolkitError.lift) {
Expand All @@ -19225,6 +19248,16 @@ public func deriveVirtualIdentityAddressFromPublicKey(publicKey: PublicKey, netw
)
}

public func deriveVirtualPackageOfDirectCallerNonFungibleGlobalIdFromComponentAddress(packageAddress: Address, networkId: UInt8) throws -> NonFungibleGlobalId {
return try FfiConverterTypeNonFungibleGlobalId.lift(
try rustCallWithError(FfiConverterTypeRadixEngineToolkitError.lift) {
uniffi_radix_engine_toolkit_uniffi_fn_func_derive_virtual_package_of_direct_caller_non_fungible_global_id_from_component_address(
FfiConverterTypeAddress.lower(packageAddress),
FfiConverterUInt8.lower(networkId),$0)
}
)
}

public func deriveVirtualSignatureNonFungibleGlobalIdFromPublicKey(publicKey: PublicKey, networkId: UInt8) throws -> NonFungibleGlobalId {
return try FfiConverterTypeNonFungibleGlobalId.lift(
try rustCallWithError(FfiConverterTypeRadixEngineToolkitError.lift) {
Expand Down Expand Up @@ -19429,9 +19462,15 @@ private var initializationResult: InitializationResult {
if (uniffi_radix_engine_toolkit_uniffi_checksum_func_derive_virtual_account_address_from_public_key() != 36758) {
return InitializationResult.apiChecksumMismatch
}
if (uniffi_radix_engine_toolkit_uniffi_checksum_func_derive_virtual_global_caller_non_fungible_global_id_from_component_address() != 55602) {
return InitializationResult.apiChecksumMismatch
}
if (uniffi_radix_engine_toolkit_uniffi_checksum_func_derive_virtual_identity_address_from_public_key() != 11003) {
return InitializationResult.apiChecksumMismatch
}
if (uniffi_radix_engine_toolkit_uniffi_checksum_func_derive_virtual_package_of_direct_caller_non_fungible_global_id_from_component_address() != 42759) {
return InitializationResult.apiChecksumMismatch
}
if (uniffi_radix_engine_toolkit_uniffi_checksum_func_derive_virtual_signature_non_fungible_global_id_from_public_key() != 61146) {
return InitializationResult.apiChecksumMismatch
}
Expand Down Expand Up @@ -20308,7 +20347,7 @@ private var initializationResult: InitializationResult {
if (uniffi_radix_engine_toolkit_uniffi_checksum_method_transactionmanifest_compile() != 11452) {
return InitializationResult.apiChecksumMismatch
}
if (uniffi_radix_engine_toolkit_uniffi_checksum_method_transactionmanifest_execution_summary() != 43934) {
if (uniffi_radix_engine_toolkit_uniffi_checksum_method_transactionmanifest_execution_summary() != 6206) {
return InitializationResult.apiChecksumMismatch
}
if (uniffi_radix_engine_toolkit_uniffi_checksum_method_transactionmanifest_extract_addresses() != 5474) {
Expand Down Expand Up @@ -20440,9 +20479,15 @@ private var initializationResult: InitializationResult {
if (uniffi_radix_engine_toolkit_uniffi_checksum_constructor_nonfungibleglobalid_from_parts() != 36478) {
return InitializationResult.apiChecksumMismatch
}
if (uniffi_radix_engine_toolkit_uniffi_checksum_constructor_nonfungibleglobalid_global_caller_badge() != 5635) {
return InitializationResult.apiChecksumMismatch
}
if (uniffi_radix_engine_toolkit_uniffi_checksum_constructor_nonfungibleglobalid_new() != 58056) {
return InitializationResult.apiChecksumMismatch
}
if (uniffi_radix_engine_toolkit_uniffi_checksum_constructor_nonfungibleglobalid_package_of_direct_caller_badge() != 11141) {
return InitializationResult.apiChecksumMismatch
}
if (uniffi_radix_engine_toolkit_uniffi_checksum_constructor_nonfungibleglobalid_virtual_signature_badge() != 22546) {
return InitializationResult.apiChecksumMismatch
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<key>BinaryPath</key>
<string>RadixEngineToolkit.framework/RadixEngineToolkit</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<string>macos-arm64_x86_64</string>
<key>LibraryPath</key>
<string>RadixEngineToolkit.framework</string>
<key>SupportedArchitectures</key>
Expand All @@ -17,15 +17,13 @@
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
<string>macos</string>
</dict>
<dict>
<key>BinaryPath</key>
<string>RadixEngineToolkit.framework/RadixEngineToolkit</string>
<key>LibraryIdentifier</key>
<string>macos-arm64_x86_64</string>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>RadixEngineToolkit.framework</string>
<key>SupportedArchitectures</key>
Expand All @@ -34,7 +32,9 @@
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>macos</string>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>BinaryPath</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -567,8 +567,12 @@ void uniffi_radix_engine_toolkit_uniffi_fn_free_nonfungibleglobalid(void*_Nonnul
);
void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_constructor_nonfungibleglobalid_from_parts(void*_Nonnull resource_address, RustBuffer non_fungible_local_id, RustCallStatus *_Nonnull out_status
);
void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_constructor_nonfungibleglobalid_global_caller_badge(void*_Nonnull component_address, uint8_t network_id, RustCallStatus *_Nonnull out_status
);
void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_constructor_nonfungibleglobalid_new(RustBuffer non_fungible_global_id, RustCallStatus *_Nonnull out_status
);
void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_constructor_nonfungibleglobalid_package_of_direct_caller_badge(void*_Nonnull package_address, uint8_t network_id, RustCallStatus *_Nonnull out_status
);
void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_constructor_nonfungibleglobalid_virtual_signature_badge(RustBuffer public_key, uint8_t network_id, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_radix_engine_toolkit_uniffi_fn_method_nonfungibleglobalid_as_str(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
Expand Down Expand Up @@ -770,7 +774,7 @@ RustBuffer uniffi_radix_engine_toolkit_uniffi_fn_method_transactionmanifest_blob
);
RustBuffer uniffi_radix_engine_toolkit_uniffi_fn_method_transactionmanifest_compile(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_radix_engine_toolkit_uniffi_fn_method_transactionmanifest_execution_summary(void*_Nonnull ptr, uint8_t network_id, RustBuffer encoded_receipt, RustCallStatus *_Nonnull out_status
RustBuffer uniffi_radix_engine_toolkit_uniffi_fn_method_transactionmanifest_execution_summary(void*_Nonnull ptr, uint8_t network_id, RustBuffer toolkit_receipt, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_radix_engine_toolkit_uniffi_fn_method_transactionmanifest_extract_addresses(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
Expand Down Expand Up @@ -812,8 +816,12 @@ void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_func_derive_virtual_account_
);
void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_func_derive_virtual_account_address_from_public_key(RustBuffer public_key, uint8_t network_id, RustCallStatus *_Nonnull out_status
);
void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_func_derive_virtual_global_caller_non_fungible_global_id_from_component_address(void*_Nonnull component_address, uint8_t network_id, RustCallStatus *_Nonnull out_status
);
void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_func_derive_virtual_identity_address_from_public_key(RustBuffer public_key, uint8_t network_id, RustCallStatus *_Nonnull out_status
);
void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_func_derive_virtual_package_of_direct_caller_non_fungible_global_id_from_component_address(void*_Nonnull package_address, uint8_t network_id, RustCallStatus *_Nonnull out_status
);
void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_func_derive_virtual_signature_non_fungible_global_id_from_public_key(RustBuffer public_key, uint8_t network_id, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_radix_engine_toolkit_uniffi_fn_func_get_build_information(RustCallStatus *_Nonnull out_status
Expand Down Expand Up @@ -979,9 +987,15 @@ uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_func_derive_virtual_account
);
uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_func_derive_virtual_account_address_from_public_key(void

);
uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_func_derive_virtual_global_caller_non_fungible_global_id_from_component_address(void

);
uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_func_derive_virtual_identity_address_from_public_key(void

);
uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_func_derive_virtual_package_of_direct_caller_non_fungible_global_id_from_component_address(void

);
uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_func_derive_virtual_signature_non_fungible_global_id_from_public_key(void

Expand Down Expand Up @@ -1990,9 +2004,15 @@ uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_constructor_messagevalidati
);
uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_constructor_nonfungibleglobalid_from_parts(void

);
uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_constructor_nonfungibleglobalid_global_caller_badge(void

);
uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_constructor_nonfungibleglobalid_new(void

);
uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_constructor_nonfungibleglobalid_package_of_direct_caller_badge(void

);
uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_constructor_nonfungibleglobalid_virtual_signature_badge(void

Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -567,8 +567,12 @@ void uniffi_radix_engine_toolkit_uniffi_fn_free_nonfungibleglobalid(void*_Nonnul
);
void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_constructor_nonfungibleglobalid_from_parts(void*_Nonnull resource_address, RustBuffer non_fungible_local_id, RustCallStatus *_Nonnull out_status
);
void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_constructor_nonfungibleglobalid_global_caller_badge(void*_Nonnull component_address, uint8_t network_id, RustCallStatus *_Nonnull out_status
);
void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_constructor_nonfungibleglobalid_new(RustBuffer non_fungible_global_id, RustCallStatus *_Nonnull out_status
);
void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_constructor_nonfungibleglobalid_package_of_direct_caller_badge(void*_Nonnull package_address, uint8_t network_id, RustCallStatus *_Nonnull out_status
);
void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_constructor_nonfungibleglobalid_virtual_signature_badge(RustBuffer public_key, uint8_t network_id, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_radix_engine_toolkit_uniffi_fn_method_nonfungibleglobalid_as_str(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
Expand Down Expand Up @@ -770,7 +774,7 @@ RustBuffer uniffi_radix_engine_toolkit_uniffi_fn_method_transactionmanifest_blob
);
RustBuffer uniffi_radix_engine_toolkit_uniffi_fn_method_transactionmanifest_compile(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_radix_engine_toolkit_uniffi_fn_method_transactionmanifest_execution_summary(void*_Nonnull ptr, uint8_t network_id, RustBuffer encoded_receipt, RustCallStatus *_Nonnull out_status
RustBuffer uniffi_radix_engine_toolkit_uniffi_fn_method_transactionmanifest_execution_summary(void*_Nonnull ptr, uint8_t network_id, RustBuffer toolkit_receipt, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_radix_engine_toolkit_uniffi_fn_method_transactionmanifest_extract_addresses(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
Expand Down Expand Up @@ -812,8 +816,12 @@ void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_func_derive_virtual_account_
);
void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_func_derive_virtual_account_address_from_public_key(RustBuffer public_key, uint8_t network_id, RustCallStatus *_Nonnull out_status
);
void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_func_derive_virtual_global_caller_non_fungible_global_id_from_component_address(void*_Nonnull component_address, uint8_t network_id, RustCallStatus *_Nonnull out_status
);
void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_func_derive_virtual_identity_address_from_public_key(RustBuffer public_key, uint8_t network_id, RustCallStatus *_Nonnull out_status
);
void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_func_derive_virtual_package_of_direct_caller_non_fungible_global_id_from_component_address(void*_Nonnull package_address, uint8_t network_id, RustCallStatus *_Nonnull out_status
);
void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_func_derive_virtual_signature_non_fungible_global_id_from_public_key(RustBuffer public_key, uint8_t network_id, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_radix_engine_toolkit_uniffi_fn_func_get_build_information(RustCallStatus *_Nonnull out_status
Expand Down Expand Up @@ -979,9 +987,15 @@ uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_func_derive_virtual_account
);
uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_func_derive_virtual_account_address_from_public_key(void

);
uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_func_derive_virtual_global_caller_non_fungible_global_id_from_component_address(void

);
uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_func_derive_virtual_identity_address_from_public_key(void

);
uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_func_derive_virtual_package_of_direct_caller_non_fungible_global_id_from_component_address(void

);
uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_func_derive_virtual_signature_non_fungible_global_id_from_public_key(void

Expand Down Expand Up @@ -1990,9 +2004,15 @@ uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_constructor_messagevalidati
);
uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_constructor_nonfungibleglobalid_from_parts(void

);
uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_constructor_nonfungibleglobalid_global_caller_badge(void

);
uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_constructor_nonfungibleglobalid_new(void

);
uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_constructor_nonfungibleglobalid_package_of_direct_caller_badge(void

);
uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_constructor_nonfungibleglobalid_virtual_signature_badge(void

Expand Down
Binary file not shown.
Loading

0 comments on commit feeacf9

Please sign in to comment.