diff --git a/Sources/EngineToolkit/radix_engine_toolkit_uniffi.swift b/Sources/EngineToolkit/radix_engine_toolkit_uniffi.swift index cb35989..8dbcb9e 100644 --- a/Sources/EngineToolkit/radix_engine_toolkit_uniffi.swift +++ b/Sources/EngineToolkit/radix_engine_toolkit_uniffi.swift @@ -7522,10 +7522,11 @@ public func FfiConverterTypePreviewPartialTransactionV2_lower(_ value: PreviewPa public protocol PreviewPartialTransactionV2BuilderProtocol { func addChild(child: PreviewPartialTransactionV2) -> PreviewPartialTransactionV2Builder + func addRootSubintentSigner(signer: PublicKey) -> PreviewPartialTransactionV2Builder + func build() throws -> PreviewPartialTransactionV2 func intentHeader(intentHeader: IntentHeaderV2) -> PreviewPartialTransactionV2Builder func manifest(manifest: TransactionManifestV2) -> PreviewPartialTransactionV2Builder func message(message: MessageV2) -> PreviewPartialTransactionV2Builder - func prepareForSigning() throws -> PreviewPartialTransactionV2 } @@ -7565,6 +7566,28 @@ public class PreviewPartialTransactionV2Builder: PreviewPartialTransactionV2Buil ) } + public func addRootSubintentSigner(signer: PublicKey) -> PreviewPartialTransactionV2Builder { + return try! FfiConverterTypePreviewPartialTransactionV2Builder.lift( + try! + rustCall() { + + uniffi_radix_engine_toolkit_uniffi_fn_method_previewpartialtransactionv2builder_add_root_subintent_signer(self.pointer, + FfiConverterTypePublicKey.lower(signer),$0 + ) +} + ) + } + + public func build() throws -> PreviewPartialTransactionV2 { + return try FfiConverterTypePreviewPartialTransactionV2.lift( + try + rustCallWithError(FfiConverterTypeRadixEngineToolkitError.lift) { + uniffi_radix_engine_toolkit_uniffi_fn_method_previewpartialtransactionv2builder_build(self.pointer, $0 + ) +} + ) + } + public func intentHeader(intentHeader: IntentHeaderV2) -> PreviewPartialTransactionV2Builder { return try! FfiConverterTypePreviewPartialTransactionV2Builder.lift( try! @@ -7597,16 +7620,6 @@ public class PreviewPartialTransactionV2Builder: PreviewPartialTransactionV2Buil uniffi_radix_engine_toolkit_uniffi_fn_method_previewpartialtransactionv2builder_message(self.pointer, FfiConverterTypeMessageV2.lower(message),$0 ) -} - ) - } - - public func prepareForSigning() throws -> PreviewPartialTransactionV2 { - return try FfiConverterTypePreviewPartialTransactionV2.lift( - try - rustCallWithError(FfiConverterTypeRadixEngineToolkitError.lift) { - uniffi_radix_engine_toolkit_uniffi_fn_method_previewpartialtransactionv2builder_prepare_for_signing(self.pointer, $0 - ) } ) } @@ -26888,6 +26901,12 @@ private var initializationResult: InitializationResult { if (uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransactionv2builder_add_child() != 42126) { return InitializationResult.apiChecksumMismatch } + if (uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransactionv2builder_add_root_subintent_signer() != 45374) { + return InitializationResult.apiChecksumMismatch + } + if (uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransactionv2builder_build() != 62773) { + return InitializationResult.apiChecksumMismatch + } if (uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransactionv2builder_intent_header() != 61016) { return InitializationResult.apiChecksumMismatch } @@ -26897,9 +26916,6 @@ private var initializationResult: InitializationResult { if (uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransactionv2builder_message() != 61966) { return InitializationResult.apiChecksumMismatch } - if (uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransactionv2builder_prepare_for_signing() != 49234) { - return InitializationResult.apiChecksumMismatch - } if (uniffi_radix_engine_toolkit_uniffi_checksum_method_previewtransactionv2builder_add_child() != 13075) { return InitializationResult.apiChecksumMismatch } diff --git a/Sources/RadixEngineToolkit/RadixEngineToolkit.xcframework/ios-arm64/RadixEngineToolkit.framework/Headers/radix_engine_toolkit_uniffiFFI.h b/Sources/RadixEngineToolkit/RadixEngineToolkit.xcframework/ios-arm64/RadixEngineToolkit.framework/Headers/radix_engine_toolkit_uniffiFFI.h index 22089eb..a270b3e 100644 --- a/Sources/RadixEngineToolkit/RadixEngineToolkit.xcframework/ios-arm64/RadixEngineToolkit.framework/Headers/radix_engine_toolkit_uniffiFFI.h +++ b/Sources/RadixEngineToolkit/RadixEngineToolkit.xcframework/ios-arm64/RadixEngineToolkit.framework/Headers/radix_engine_toolkit_uniffiFFI.h @@ -1068,14 +1068,16 @@ void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_constructor_previewpartialtr ); void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_method_previewpartialtransactionv2builder_add_child(void*_Nonnull ptr, void*_Nonnull child, RustCallStatus *_Nonnull out_status ); +void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_method_previewpartialtransactionv2builder_add_root_subintent_signer(void*_Nonnull ptr, RustBuffer signer, RustCallStatus *_Nonnull out_status +); +void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_method_previewpartialtransactionv2builder_build(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status +); void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_method_previewpartialtransactionv2builder_intent_header(void*_Nonnull ptr, RustBuffer intent_header, RustCallStatus *_Nonnull out_status ); void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_method_previewpartialtransactionv2builder_manifest(void*_Nonnull ptr, void*_Nonnull manifest, RustCallStatus *_Nonnull out_status ); void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_method_previewpartialtransactionv2builder_message(void*_Nonnull ptr, RustBuffer message, RustCallStatus *_Nonnull out_status ); -void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_method_previewpartialtransactionv2builder_prepare_for_signing(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status -); void uniffi_radix_engine_toolkit_uniffi_fn_free_previewtransactionv2builder(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status ); void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_constructor_previewtransactionv2builder_new(RustCallStatus *_Nonnull out_status @@ -2883,6 +2885,12 @@ uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransa ); uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransactionv2builder_add_child(void +); +uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransactionv2builder_add_root_subintent_signer(void + +); +uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransactionv2builder_build(void + ); uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransactionv2builder_intent_header(void @@ -2892,9 +2900,6 @@ uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransa ); uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransactionv2builder_message(void -); -uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransactionv2builder_prepare_for_signing(void - ); uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_previewtransactionv2builder_add_child(void diff --git a/Sources/RadixEngineToolkit/RadixEngineToolkit.xcframework/ios-arm64/RadixEngineToolkit.framework/RadixEngineToolkit b/Sources/RadixEngineToolkit/RadixEngineToolkit.xcframework/ios-arm64/RadixEngineToolkit.framework/RadixEngineToolkit index 300693c..909df14 100644 Binary files a/Sources/RadixEngineToolkit/RadixEngineToolkit.xcframework/ios-arm64/RadixEngineToolkit.framework/RadixEngineToolkit and b/Sources/RadixEngineToolkit/RadixEngineToolkit.xcframework/ios-arm64/RadixEngineToolkit.framework/RadixEngineToolkit differ diff --git a/Sources/RadixEngineToolkit/RadixEngineToolkit.xcframework/ios-arm64_x86_64-simulator/RadixEngineToolkit.framework/Headers/radix_engine_toolkit_uniffiFFI.h b/Sources/RadixEngineToolkit/RadixEngineToolkit.xcframework/ios-arm64_x86_64-simulator/RadixEngineToolkit.framework/Headers/radix_engine_toolkit_uniffiFFI.h index 22089eb..a270b3e 100644 --- a/Sources/RadixEngineToolkit/RadixEngineToolkit.xcframework/ios-arm64_x86_64-simulator/RadixEngineToolkit.framework/Headers/radix_engine_toolkit_uniffiFFI.h +++ b/Sources/RadixEngineToolkit/RadixEngineToolkit.xcframework/ios-arm64_x86_64-simulator/RadixEngineToolkit.framework/Headers/radix_engine_toolkit_uniffiFFI.h @@ -1068,14 +1068,16 @@ void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_constructor_previewpartialtr ); void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_method_previewpartialtransactionv2builder_add_child(void*_Nonnull ptr, void*_Nonnull child, RustCallStatus *_Nonnull out_status ); +void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_method_previewpartialtransactionv2builder_add_root_subintent_signer(void*_Nonnull ptr, RustBuffer signer, RustCallStatus *_Nonnull out_status +); +void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_method_previewpartialtransactionv2builder_build(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status +); void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_method_previewpartialtransactionv2builder_intent_header(void*_Nonnull ptr, RustBuffer intent_header, RustCallStatus *_Nonnull out_status ); void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_method_previewpartialtransactionv2builder_manifest(void*_Nonnull ptr, void*_Nonnull manifest, RustCallStatus *_Nonnull out_status ); void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_method_previewpartialtransactionv2builder_message(void*_Nonnull ptr, RustBuffer message, RustCallStatus *_Nonnull out_status ); -void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_method_previewpartialtransactionv2builder_prepare_for_signing(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status -); void uniffi_radix_engine_toolkit_uniffi_fn_free_previewtransactionv2builder(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status ); void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_constructor_previewtransactionv2builder_new(RustCallStatus *_Nonnull out_status @@ -2883,6 +2885,12 @@ uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransa ); uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransactionv2builder_add_child(void +); +uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransactionv2builder_add_root_subintent_signer(void + +); +uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransactionv2builder_build(void + ); uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransactionv2builder_intent_header(void @@ -2892,9 +2900,6 @@ uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransa ); uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransactionv2builder_message(void -); -uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransactionv2builder_prepare_for_signing(void - ); uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_previewtransactionv2builder_add_child(void diff --git a/Sources/RadixEngineToolkit/RadixEngineToolkit.xcframework/ios-arm64_x86_64-simulator/RadixEngineToolkit.framework/RadixEngineToolkit b/Sources/RadixEngineToolkit/RadixEngineToolkit.xcframework/ios-arm64_x86_64-simulator/RadixEngineToolkit.framework/RadixEngineToolkit index a5c55de..193ec2f 100644 Binary files a/Sources/RadixEngineToolkit/RadixEngineToolkit.xcframework/ios-arm64_x86_64-simulator/RadixEngineToolkit.framework/RadixEngineToolkit and b/Sources/RadixEngineToolkit/RadixEngineToolkit.xcframework/ios-arm64_x86_64-simulator/RadixEngineToolkit.framework/RadixEngineToolkit differ diff --git a/Sources/RadixEngineToolkit/RadixEngineToolkit.xcframework/macos-arm64_x86_64/RadixEngineToolkit.framework/Headers/radix_engine_toolkit_uniffiFFI.h b/Sources/RadixEngineToolkit/RadixEngineToolkit.xcframework/macos-arm64_x86_64/RadixEngineToolkit.framework/Headers/radix_engine_toolkit_uniffiFFI.h index 22089eb..a270b3e 100644 --- a/Sources/RadixEngineToolkit/RadixEngineToolkit.xcframework/macos-arm64_x86_64/RadixEngineToolkit.framework/Headers/radix_engine_toolkit_uniffiFFI.h +++ b/Sources/RadixEngineToolkit/RadixEngineToolkit.xcframework/macos-arm64_x86_64/RadixEngineToolkit.framework/Headers/radix_engine_toolkit_uniffiFFI.h @@ -1068,14 +1068,16 @@ void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_constructor_previewpartialtr ); void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_method_previewpartialtransactionv2builder_add_child(void*_Nonnull ptr, void*_Nonnull child, RustCallStatus *_Nonnull out_status ); +void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_method_previewpartialtransactionv2builder_add_root_subintent_signer(void*_Nonnull ptr, RustBuffer signer, RustCallStatus *_Nonnull out_status +); +void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_method_previewpartialtransactionv2builder_build(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status +); void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_method_previewpartialtransactionv2builder_intent_header(void*_Nonnull ptr, RustBuffer intent_header, RustCallStatus *_Nonnull out_status ); void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_method_previewpartialtransactionv2builder_manifest(void*_Nonnull ptr, void*_Nonnull manifest, RustCallStatus *_Nonnull out_status ); void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_method_previewpartialtransactionv2builder_message(void*_Nonnull ptr, RustBuffer message, RustCallStatus *_Nonnull out_status ); -void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_method_previewpartialtransactionv2builder_prepare_for_signing(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status -); void uniffi_radix_engine_toolkit_uniffi_fn_free_previewtransactionv2builder(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status ); void*_Nonnull uniffi_radix_engine_toolkit_uniffi_fn_constructor_previewtransactionv2builder_new(RustCallStatus *_Nonnull out_status @@ -2883,6 +2885,12 @@ uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransa ); uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransactionv2builder_add_child(void +); +uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransactionv2builder_add_root_subintent_signer(void + +); +uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransactionv2builder_build(void + ); uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransactionv2builder_intent_header(void @@ -2892,9 +2900,6 @@ uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransa ); uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransactionv2builder_message(void -); -uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransactionv2builder_prepare_for_signing(void - ); uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_previewtransactionv2builder_add_child(void diff --git a/Sources/RadixEngineToolkit/RadixEngineToolkit.xcframework/macos-arm64_x86_64/RadixEngineToolkit.framework/RadixEngineToolkit b/Sources/RadixEngineToolkit/RadixEngineToolkit.xcframework/macos-arm64_x86_64/RadixEngineToolkit.framework/RadixEngineToolkit index 59e755c..90131d0 100644 Binary files a/Sources/RadixEngineToolkit/RadixEngineToolkit.xcframework/macos-arm64_x86_64/RadixEngineToolkit.framework/RadixEngineToolkit and b/Sources/RadixEngineToolkit/RadixEngineToolkit.xcframework/macos-arm64_x86_64/RadixEngineToolkit.framework/RadixEngineToolkit differ