Skip to content

Commit

Permalink
Updated binding for version v2.2.0-dev11
Browse files Browse the repository at this point in the history
  • Loading branch information
radixbot committed Nov 12, 2024
1 parent f02cc52 commit ea2b9cb
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 34 deletions.
69 changes: 44 additions & 25 deletions radix_engine_toolkit_uniffi/radix_engine_toolkit_uniffi.go
Original file line number Diff line number Diff line change
Expand Up @@ -4415,6 +4415,24 @@ func uniffiCheckChecksums() {
}
}
{
checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t {
return C.uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransactionv2builder_add_root_subintent_signer(uniffiStatus)
})
if checksum != 45374 {
// If this happens try cleaning and rebuilding your project
panic("radix_engine_toolkit_uniffi: uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransactionv2builder_add_root_subintent_signer: UniFFI API checksum mismatch")
}
}
{
checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t {
return C.uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransactionv2builder_build(uniffiStatus)
})
if checksum != 62773 {
// If this happens try cleaning and rebuilding your project
panic("radix_engine_toolkit_uniffi: uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransactionv2builder_build: UniFFI API checksum mismatch")
}
}
{
checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t {
return C.uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransactionv2builder_intent_header(uniffiStatus)
})
Expand Down Expand Up @@ -4442,15 +4460,6 @@ func uniffiCheckChecksums() {
}
}
{
checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t {
return C.uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransactionv2builder_prepare_for_signing(uniffiStatus)
})
if checksum != 49234 {
// If this happens try cleaning and rebuilding your project
panic("radix_engine_toolkit_uniffi: uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransactionv2builder_prepare_for_signing: UniFFI API checksum mismatch")
}
}
{
checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t {
return C.uniffi_radix_engine_toolkit_uniffi_checksum_method_previewtransactionv2builder_add_child(uniffiStatus)
})
Expand Down Expand Up @@ -14147,6 +14156,32 @@ func (_self *PreviewPartialTransactionV2Builder)AddChild(child *PreviewPartialTr
}


func (_self *PreviewPartialTransactionV2Builder)AddRootSubintentSigner(signer PublicKey) *PreviewPartialTransactionV2Builder {
_pointer := _self.ffiObject.incrementPointer("*PreviewPartialTransactionV2Builder")
defer _self.ffiObject.decrementPointer()
return FfiConverterPreviewPartialTransactionV2BuilderINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
return C.uniffi_radix_engine_toolkit_uniffi_fn_method_previewpartialtransactionv2builder_add_root_subintent_signer(
_pointer,FfiConverterTypePublicKeyINSTANCE.Lower(signer), _uniffiStatus)
}))
}


func (_self *PreviewPartialTransactionV2Builder)Build() (*PreviewPartialTransactionV2, error) {
_pointer := _self.ffiObject.incrementPointer("*PreviewPartialTransactionV2Builder")
defer _self.ffiObject.decrementPointer()
_uniffiRV, _uniffiErr := rustCallWithError(FfiConverterTypeRadixEngineToolkitError{},func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
return C.uniffi_radix_engine_toolkit_uniffi_fn_method_previewpartialtransactionv2builder_build(
_pointer, _uniffiStatus)
})
if _uniffiErr != nil {
var _uniffiDefaultValue *PreviewPartialTransactionV2
return _uniffiDefaultValue, _uniffiErr
} else {
return FfiConverterPreviewPartialTransactionV2INSTANCE.Lift(_uniffiRV), _uniffiErr
}
}


func (_self *PreviewPartialTransactionV2Builder)IntentHeader(intentHeader IntentHeaderV2) *PreviewPartialTransactionV2Builder {
_pointer := _self.ffiObject.incrementPointer("*PreviewPartialTransactionV2Builder")
defer _self.ffiObject.decrementPointer()
Expand Down Expand Up @@ -14177,22 +14212,6 @@ func (_self *PreviewPartialTransactionV2Builder)Message(message MessageV2) *Prev
}


func (_self *PreviewPartialTransactionV2Builder)PrepareForSigning() (*PreviewPartialTransactionV2, error) {
_pointer := _self.ffiObject.incrementPointer("*PreviewPartialTransactionV2Builder")
defer _self.ffiObject.decrementPointer()
_uniffiRV, _uniffiErr := rustCallWithError(FfiConverterTypeRadixEngineToolkitError{},func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
return C.uniffi_radix_engine_toolkit_uniffi_fn_method_previewpartialtransactionv2builder_prepare_for_signing(
_pointer, _uniffiStatus)
})
if _uniffiErr != nil {
var _uniffiDefaultValue *PreviewPartialTransactionV2
return _uniffiDefaultValue, _uniffiErr
} else {
return FfiConverterPreviewPartialTransactionV2INSTANCE.Lift(_uniffiRV), _uniffiErr
}
}



func (object *PreviewPartialTransactionV2Builder)Destroy() {
runtime.SetFinalizer(object, nil)
Expand Down
28 changes: 19 additions & 9 deletions radix_engine_toolkit_uniffi/radix_engine_toolkit_uniffi.h
Original file line number Diff line number Diff line change
Expand Up @@ -3273,6 +3273,17 @@ void* uniffi_radix_engine_toolkit_uniffi_fn_method_previewpartialtransactionv2bu
RustCallStatus* out_status
);

void* uniffi_radix_engine_toolkit_uniffi_fn_method_previewpartialtransactionv2builder_add_root_subintent_signer(
void* ptr,
RustBuffer signer,
RustCallStatus* out_status
);

void* uniffi_radix_engine_toolkit_uniffi_fn_method_previewpartialtransactionv2builder_build(
void* ptr,
RustCallStatus* out_status
);

void* uniffi_radix_engine_toolkit_uniffi_fn_method_previewpartialtransactionv2builder_intent_header(
void* ptr,
RustBuffer intent_header,
Expand All @@ -3291,11 +3302,6 @@ void* uniffi_radix_engine_toolkit_uniffi_fn_method_previewpartialtransactionv2bu
RustCallStatus* out_status
);

void* uniffi_radix_engine_toolkit_uniffi_fn_method_previewpartialtransactionv2builder_prepare_for_signing(
void* ptr,
RustCallStatus* out_status
);

void uniffi_radix_engine_toolkit_uniffi_fn_free_previewtransactionv2builder(
void* ptr,
RustCallStatus* out_status
Expand Down Expand Up @@ -6317,19 +6323,23 @@ uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransa
RustCallStatus* out_status
);

uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransactionv2builder_intent_header(
uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransactionv2builder_add_root_subintent_signer(
RustCallStatus* out_status
);

uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransactionv2builder_manifest(
uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransactionv2builder_build(
RustCallStatus* out_status
);

uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransactionv2builder_message(
uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransactionv2builder_intent_header(
RustCallStatus* out_status
);

uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransactionv2builder_prepare_for_signing(
uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransactionv2builder_manifest(
RustCallStatus* out_status
);

uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_previewpartialtransactionv2builder_message(
RustCallStatus* out_status
);

Expand Down

0 comments on commit ea2b9cb

Please sign in to comment.