Skip to content

Commit

Permalink
Updated binding for version v2.2.0-dev4
Browse files Browse the repository at this point in the history
  • Loading branch information
radixbot committed Oct 15, 2024
1 parent cb4b120 commit f57cd5d
Show file tree
Hide file tree
Showing 2 changed files with 164 additions and 36 deletions.
138 changes: 113 additions & 25 deletions radix_engine_toolkit_uniffi/radix_engine_toolkit_uniffi.go
Original file line number Diff line number Diff line change
Expand Up @@ -3533,15 +3533,6 @@ func uniffiCheckChecksums() {
}
}
{
checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t {
return C.uniffi_radix_engine_toolkit_uniffi_checksum_method_manifestv2builder_register_subintent(uniffiStatus)
})
if checksum != 44269 {
// If this happens try cleaning and rebuilding your project
panic("radix_engine_toolkit_uniffi: uniffi_radix_engine_toolkit_uniffi_checksum_method_manifestv2builder_register_subintent: UniFFI API checksum mismatch")
}
}
{
checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t {
return C.uniffi_radix_engine_toolkit_uniffi_checksum_method_manifestv2builder_return_to_worktop(uniffiStatus)
})
Expand Down Expand Up @@ -3704,6 +3695,15 @@ func uniffiCheckChecksums() {
}
}
{
checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t {
return C.uniffi_radix_engine_toolkit_uniffi_checksum_method_manifestv2builder_use_child(uniffiStatus)
})
if checksum != 25776 {
// If this happens try cleaning and rebuilding your project
panic("radix_engine_toolkit_uniffi: uniffi_radix_engine_toolkit_uniffi_checksum_method_manifestv2builder_use_child: UniFFI API checksum mismatch")
}
}
{
checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t {
return C.uniffi_radix_engine_toolkit_uniffi_checksum_method_manifestv2builder_validator_accepts_delegated_stake(uniffiStatus)
})
Expand Down Expand Up @@ -4991,6 +4991,42 @@ func uniffiCheckChecksums() {
}
}
{
checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t {
return C.uniffi_radix_engine_toolkit_uniffi_checksum_method_transactionv2buildersignaturestep_notarize_with_private_key(uniffiStatus)
})
if checksum != 48137 {
// If this happens try cleaning and rebuilding your project
panic("radix_engine_toolkit_uniffi: uniffi_radix_engine_toolkit_uniffi_checksum_method_transactionv2buildersignaturestep_notarize_with_private_key: UniFFI API checksum mismatch")
}
}
{
checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t {
return C.uniffi_radix_engine_toolkit_uniffi_checksum_method_transactionv2buildersignaturestep_notarize_with_signer(uniffiStatus)
})
if checksum != 25051 {
// If this happens try cleaning and rebuilding your project
panic("radix_engine_toolkit_uniffi: uniffi_radix_engine_toolkit_uniffi_checksum_method_transactionv2buildersignaturestep_notarize_with_signer: UniFFI API checksum mismatch")
}
}
{
checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t {
return C.uniffi_radix_engine_toolkit_uniffi_checksum_method_transactionv2buildersignaturestep_sign_with_private_key(uniffiStatus)
})
if checksum != 12688 {
// If this happens try cleaning and rebuilding your project
panic("radix_engine_toolkit_uniffi: uniffi_radix_engine_toolkit_uniffi_checksum_method_transactionv2buildersignaturestep_sign_with_private_key: UniFFI API checksum mismatch")
}
}
{
checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t {
return C.uniffi_radix_engine_toolkit_uniffi_checksum_method_transactionv2buildersignaturestep_sign_with_signer(uniffiStatus)
})
if checksum != 49560 {
// If this happens try cleaning and rebuilding your project
panic("radix_engine_toolkit_uniffi: uniffi_radix_engine_toolkit_uniffi_checksum_method_transactionv2buildersignaturestep_sign_with_signer: UniFFI API checksum mismatch")
}
}
{
checksum := rustCall(func(uniffiStatus *C.RustCallStatus) C.uint16_t {
return C.uniffi_radix_engine_toolkit_uniffi_checksum_constructor_accessrule_allow_all(uniffiStatus)
})
Expand Down Expand Up @@ -11785,22 +11821,6 @@ func (_self *ManifestV2Builder)PushToAuthZone(proof ManifestBuilderProof) (*Mani
}


func (_self *ManifestV2Builder)RegisterSubintent(subintent *IntentCoreV2, name ManifestBuilderIntent) (*ManifestV2Builder, error) {
_pointer := _self.ffiObject.incrementPointer("*ManifestV2Builder")
defer _self.ffiObject.decrementPointer()
_uniffiRV, _uniffiErr := rustCallWithError(FfiConverterTypeRadixEngineToolkitError{},func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
return C.uniffi_radix_engine_toolkit_uniffi_fn_method_manifestv2builder_register_subintent(
_pointer,FfiConverterIntentCoreV2INSTANCE.Lower(subintent), FfiConverterTypeManifestBuilderIntentINSTANCE.Lower(name), _uniffiStatus)
})
if _uniffiErr != nil {
var _uniffiDefaultValue *ManifestV2Builder
return _uniffiDefaultValue, _uniffiErr
} else {
return FfiConverterManifestV2BuilderINSTANCE.Lift(_uniffiRV), _uniffiErr
}
}


func (_self *ManifestV2Builder)ReturnToWorktop(bucket ManifestBuilderBucket) (*ManifestV2Builder, error) {
_pointer := _self.ffiObject.incrementPointer("*ManifestV2Builder")
defer _self.ffiObject.decrementPointer()
Expand Down Expand Up @@ -12089,6 +12109,22 @@ func (_self *ManifestV2Builder)TwoResourcePoolRedeem(address *Address, bucket Ma
}


func (_self *ManifestV2Builder)UseChild(subintentHash *TransactionHash, name ManifestBuilderIntent) (*ManifestV2Builder, error) {
_pointer := _self.ffiObject.incrementPointer("*ManifestV2Builder")
defer _self.ffiObject.decrementPointer()
_uniffiRV, _uniffiErr := rustCallWithError(FfiConverterTypeRadixEngineToolkitError{},func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
return C.uniffi_radix_engine_toolkit_uniffi_fn_method_manifestv2builder_use_child(
_pointer,FfiConverterTransactionHashINSTANCE.Lower(subintentHash), FfiConverterTypeManifestBuilderIntentINSTANCE.Lower(name), _uniffiStatus)
})
if _uniffiErr != nil {
var _uniffiDefaultValue *ManifestV2Builder
return _uniffiDefaultValue, _uniffiErr
} else {
return FfiConverterManifestV2BuilderINSTANCE.Lift(_uniffiRV), _uniffiErr
}
}


func (_self *ManifestV2Builder)ValidatorAcceptsDelegatedStake(address *Address) (*ManifestV2Builder, error) {
_pointer := _self.ffiObject.incrementPointer("*ManifestV2Builder")
defer _self.ffiObject.decrementPointer()
Expand Down Expand Up @@ -15406,6 +15442,58 @@ type TransactionV2BuilderSignatureStep struct {



func (_self *TransactionV2BuilderSignatureStep)NotarizeWithPrivateKey(privateKey *PrivateKey) (*NotarizedTransactionV2, error) {
_pointer := _self.ffiObject.incrementPointer("*TransactionV2BuilderSignatureStep")
defer _self.ffiObject.decrementPointer()
_uniffiRV, _uniffiErr := rustCallWithError(FfiConverterTypeRadixEngineToolkitError{},func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
return C.uniffi_radix_engine_toolkit_uniffi_fn_method_transactionv2buildersignaturestep_notarize_with_private_key(
_pointer,FfiConverterPrivateKeyINSTANCE.Lower(privateKey), _uniffiStatus)
})
if _uniffiErr != nil {
var _uniffiDefaultValue *NotarizedTransactionV2
return _uniffiDefaultValue, _uniffiErr
} else {
return FfiConverterNotarizedTransactionV2INSTANCE.Lift(_uniffiRV), _uniffiErr
}
}


func (_self *TransactionV2BuilderSignatureStep)NotarizeWithSigner(privateKey Signer) (*NotarizedTransactionV2, error) {
_pointer := _self.ffiObject.incrementPointer("*TransactionV2BuilderSignatureStep")
defer _self.ffiObject.decrementPointer()
_uniffiRV, _uniffiErr := rustCallWithError(FfiConverterTypeRadixEngineToolkitError{},func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
return C.uniffi_radix_engine_toolkit_uniffi_fn_method_transactionv2buildersignaturestep_notarize_with_signer(
_pointer,FfiConverterCallbackInterfaceSignerINSTANCE.Lower(privateKey), _uniffiStatus)
})
if _uniffiErr != nil {
var _uniffiDefaultValue *NotarizedTransactionV2
return _uniffiDefaultValue, _uniffiErr
} else {
return FfiConverterNotarizedTransactionV2INSTANCE.Lift(_uniffiRV), _uniffiErr
}
}


func (_self *TransactionV2BuilderSignatureStep)SignWithPrivateKey(privateKey *PrivateKey) *TransactionV2BuilderSignatureStep {
_pointer := _self.ffiObject.incrementPointer("*TransactionV2BuilderSignatureStep")
defer _self.ffiObject.decrementPointer()
return FfiConverterTransactionV2BuilderSignatureStepINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
return C.uniffi_radix_engine_toolkit_uniffi_fn_method_transactionv2buildersignaturestep_sign_with_private_key(
_pointer,FfiConverterPrivateKeyINSTANCE.Lower(privateKey), _uniffiStatus)
}))
}


func (_self *TransactionV2BuilderSignatureStep)SignWithSigner(signer Signer) *TransactionV2BuilderSignatureStep {
_pointer := _self.ffiObject.incrementPointer("*TransactionV2BuilderSignatureStep")
defer _self.ffiObject.decrementPointer()
return FfiConverterTransactionV2BuilderSignatureStepINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
return C.uniffi_radix_engine_toolkit_uniffi_fn_method_transactionv2buildersignaturestep_sign_with_signer(
_pointer,FfiConverterCallbackInterfaceSignerINSTANCE.Lower(signer), _uniffiStatus)
}))
}



func (object *TransactionV2BuilderSignatureStep)Destroy() {
runtime.SetFinalizer(object, nil)
Expand Down
62 changes: 51 additions & 11 deletions radix_engine_toolkit_uniffi/radix_engine_toolkit_uniffi.h
Original file line number Diff line number Diff line change
Expand Up @@ -2547,13 +2547,6 @@ void* uniffi_radix_engine_toolkit_uniffi_fn_method_manifestv2builder_push_to_aut
RustCallStatus* out_status
);

void* uniffi_radix_engine_toolkit_uniffi_fn_method_manifestv2builder_register_subintent(
void* ptr,
void* subintent,
RustBuffer name,
RustCallStatus* out_status
);

void* uniffi_radix_engine_toolkit_uniffi_fn_method_manifestv2builder_return_to_worktop(
void* ptr,
RustBuffer bucket,
Expand Down Expand Up @@ -2686,6 +2679,13 @@ void* uniffi_radix_engine_toolkit_uniffi_fn_method_manifestv2builder_two_resourc
RustCallStatus* out_status
);

void* uniffi_radix_engine_toolkit_uniffi_fn_method_manifestv2builder_use_child(
void* ptr,
void* subintent_hash,
RustBuffer name,
RustCallStatus* out_status
);

void* uniffi_radix_engine_toolkit_uniffi_fn_method_manifestv2builder_validator_accepts_delegated_stake(
void* ptr,
void* address,
Expand Down Expand Up @@ -3782,6 +3782,30 @@ void uniffi_radix_engine_toolkit_uniffi_fn_free_transactionv2buildersignatureste
RustCallStatus* out_status
);

void* uniffi_radix_engine_toolkit_uniffi_fn_method_transactionv2buildersignaturestep_notarize_with_private_key(
void* ptr,
void* private_key,
RustCallStatus* out_status
);

void* uniffi_radix_engine_toolkit_uniffi_fn_method_transactionv2buildersignaturestep_notarize_with_signer(
void* ptr,
uint64_t private_key,
RustCallStatus* out_status
);

void* uniffi_radix_engine_toolkit_uniffi_fn_method_transactionv2buildersignaturestep_sign_with_private_key(
void* ptr,
void* private_key,
RustCallStatus* out_status
);

void* uniffi_radix_engine_toolkit_uniffi_fn_method_transactionv2buildersignaturestep_sign_with_signer(
void* ptr,
uint64_t signer,
RustCallStatus* out_status
);

void uniffi_radix_engine_toolkit_uniffi_fn_init_callback_signer(
ForeignCallback callback_stub,
RustCallStatus* out_status
Expand Down Expand Up @@ -5645,10 +5669,6 @@ uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_manifestv2builder_pu
RustCallStatus* out_status
);

uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_manifestv2builder_register_subintent(
RustCallStatus* out_status
);

uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_manifestv2builder_return_to_worktop(
RustCallStatus* out_status
);
Expand Down Expand Up @@ -5721,6 +5741,10 @@ uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_manifestv2builder_tw
RustCallStatus* out_status
);

uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_manifestv2builder_use_child(
RustCallStatus* out_status
);

uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_manifestv2builder_validator_accepts_delegated_stake(
RustCallStatus* out_status
);
Expand Down Expand Up @@ -6293,6 +6317,22 @@ uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_transactionv2builder
RustCallStatus* out_status
);

uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_transactionv2buildersignaturestep_notarize_with_private_key(
RustCallStatus* out_status
);

uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_transactionv2buildersignaturestep_notarize_with_signer(
RustCallStatus* out_status
);

uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_transactionv2buildersignaturestep_sign_with_private_key(
RustCallStatus* out_status
);

uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_method_transactionv2buildersignaturestep_sign_with_signer(
RustCallStatus* out_status
);

uint16_t uniffi_radix_engine_toolkit_uniffi_checksum_constructor_accessrule_allow_all(
RustCallStatus* out_status
);
Expand Down

0 comments on commit f57cd5d

Please sign in to comment.