Skip to content

Commit

Permalink
Update RET from develop -
Browse files Browse the repository at this point in the history
  • Loading branch information
Anka authored and Anka committed Nov 12, 2024
1 parent 7f0f7ce commit ef34c22
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 29 deletions.
44 changes: 30 additions & 14 deletions Sources/EngineToolkit/radix_engine_toolkit_uniffi.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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

}

Expand Down Expand Up @@ -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!
Expand Down Expand Up @@ -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
)
}
)
}
Expand Down Expand Up @@ -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
}
Expand All @@ -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
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand All @@ -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

Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand All @@ -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

Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand All @@ -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

Expand Down
Binary file not shown.

0 comments on commit ef34c22

Please sign in to comment.