Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 68 additions & 1 deletion bindings/go/iota_sdk_ffi/iota_sdk_ffi.go
Original file line number Diff line number Diff line change
Expand Up @@ -3530,7 +3530,7 @@ func uniffiCheckChecksums() {
checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
return C.uniffi_iota_sdk_ffi_checksum_method_structtag_address()
})
if checksum != 18393 {
if checksum != 20393 {
// If this happens try cleaning and rebuilding your project
panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_method_structtag_address: UniFFI API checksum mismatch")
}
Expand All @@ -3554,6 +3554,33 @@ func uniffiCheckChecksums() {
}
}
{
checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
return C.uniffi_iota_sdk_ffi_checksum_method_structtag_module()
})
if checksum != 28022 {
// If this happens try cleaning and rebuilding your project
panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_method_structtag_module: UniFFI API checksum mismatch")
}
}
{
checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
return C.uniffi_iota_sdk_ffi_checksum_method_structtag_name()
})
if checksum != 23898 {
// If this happens try cleaning and rebuilding your project
panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_method_structtag_name: UniFFI API checksum mismatch")
}
}
{
checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
return C.uniffi_iota_sdk_ffi_checksum_method_structtag_type_args()
})
if checksum != 48594 {
// If this happens try cleaning and rebuilding your project
panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_method_structtag_type_args: UniFFI API checksum mismatch")
}
}
{
checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
return C.uniffi_iota_sdk_ffi_checksum_method_systempackage_dependencies()
})
Expand Down Expand Up @@ -21695,11 +21722,18 @@ func (_ FfiDestroyerSplitCoins) Destroy(value *SplitCoins) {
// (vector type-tag) ; type parameters
// ```
type StructTagInterface interface {
// Returns the address part of a `StructTag`
Address() *Address
// Checks if this is a Coin type
CoinType() *TypeTag
// Checks if this is a Coin type
CoinTypeOpt() **TypeTag
// Returns the module part of a `StructTag`
Module() *Identifier
// Returns the struct name part of a `StructTag`
Name() *Identifier
// Returns the type params part of a `StructTag`
TypeArgs() []*TypeTag
}
// Type information for a move struct
//
Expand Down Expand Up @@ -21743,6 +21777,7 @@ func StructTagStakedIota() *StructTag {



// Returns the address part of a `StructTag`
func (_self *StructTag) Address() *Address {
_pointer := _self.ffiObject.incrementPointer("*StructTag")
defer _self.ffiObject.decrementPointer()
Expand Down Expand Up @@ -21774,6 +21809,38 @@ func (_self *StructTag) CoinTypeOpt() **TypeTag {
}))
}

// Returns the module part of a `StructTag`
func (_self *StructTag) Module() *Identifier {
_pointer := _self.ffiObject.incrementPointer("*StructTag")
defer _self.ffiObject.decrementPointer()
return FfiConverterIdentifierINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
return C.uniffi_iota_sdk_ffi_fn_method_structtag_module(
_pointer,_uniffiStatus)
}))
}

// Returns the struct name part of a `StructTag`
func (_self *StructTag) Name() *Identifier {
_pointer := _self.ffiObject.incrementPointer("*StructTag")
defer _self.ffiObject.decrementPointer()
return FfiConverterIdentifierINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
return C.uniffi_iota_sdk_ffi_fn_method_structtag_name(
_pointer,_uniffiStatus)
}))
}

// Returns the type params part of a `StructTag`
func (_self *StructTag) TypeArgs() []*TypeTag {
_pointer := _self.ffiObject.incrementPointer("*StructTag")
defer _self.ffiObject.decrementPointer()
return FfiConverterSequenceTypeTagINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) RustBufferI {
return GoRustBuffer {
inner: C.uniffi_iota_sdk_ffi_fn_method_structtag_type_args(
_pointer,_uniffiStatus),
}
}))
}

func (_self *StructTag) String() string {
_pointer := _self.ffiObject.incrementPointer("*StructTag")
defer _self.ffiObject.decrementPointer()
Expand Down
33 changes: 33 additions & 0 deletions bindings/go/iota_sdk_ffi/iota_sdk_ffi.h
Original file line number Diff line number Diff line change
Expand Up @@ -4154,6 +4154,21 @@ void* uniffi_iota_sdk_ffi_fn_method_structtag_coin_type(void* ptr, RustCallStatu
RustBuffer uniffi_iota_sdk_ffi_fn_method_structtag_coin_type_opt(void* ptr, RustCallStatus *out_status
);
#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_STRUCTTAG_MODULE
#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_STRUCTTAG_MODULE
void* uniffi_iota_sdk_ffi_fn_method_structtag_module(void* ptr, RustCallStatus *out_status
);
#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_STRUCTTAG_NAME
#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_STRUCTTAG_NAME
void* uniffi_iota_sdk_ffi_fn_method_structtag_name(void* ptr, RustCallStatus *out_status
);
#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_STRUCTTAG_TYPE_ARGS
#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_STRUCTTAG_TYPE_ARGS
RustBuffer uniffi_iota_sdk_ffi_fn_method_structtag_type_args(void* ptr, RustCallStatus *out_status
);
#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_STRUCTTAG_UNIFFI_TRAIT_DISPLAY
#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_STRUCTTAG_UNIFFI_TRAIT_DISPLAY
RustBuffer uniffi_iota_sdk_ffi_fn_method_structtag_uniffi_trait_display(void* ptr, RustCallStatus *out_status
Expand Down Expand Up @@ -7722,6 +7737,24 @@ uint16_t uniffi_iota_sdk_ffi_checksum_method_structtag_coin_type(void
#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_STRUCTTAG_COIN_TYPE_OPT
uint16_t uniffi_iota_sdk_ffi_checksum_method_structtag_coin_type_opt(void

);
#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_STRUCTTAG_MODULE
#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_STRUCTTAG_MODULE
uint16_t uniffi_iota_sdk_ffi_checksum_method_structtag_module(void

);
#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_STRUCTTAG_NAME
#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_STRUCTTAG_NAME
uint16_t uniffi_iota_sdk_ffi_checksum_method_structtag_name(void

);
#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_STRUCTTAG_TYPE_ARGS
#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_STRUCTTAG_TYPE_ARGS
uint16_t uniffi_iota_sdk_ffi_checksum_method_structtag_type_args(void

);
#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_SYSTEMPACKAGE_DEPENDENCIES
Expand Down
97 changes: 95 additions & 2 deletions bindings/kotlin/lib/iota_sdk/iota_sdk_ffi.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2447,6 +2447,12 @@ internal interface UniffiForeignFutureCompleteVoid : com.sun.jna.Callback {












Expand Down Expand Up @@ -3179,6 +3185,12 @@ fun uniffi_iota_sdk_ffi_checksum_method_structtag_coin_type(
): Short
fun uniffi_iota_sdk_ffi_checksum_method_structtag_coin_type_opt(
): Short
fun uniffi_iota_sdk_ffi_checksum_method_structtag_module(
): Short
fun uniffi_iota_sdk_ffi_checksum_method_structtag_name(
): Short
fun uniffi_iota_sdk_ffi_checksum_method_structtag_type_args(
): Short
fun uniffi_iota_sdk_ffi_checksum_method_systempackage_dependencies(
): Short
fun uniffi_iota_sdk_ffi_checksum_method_systempackage_modules(
Expand Down Expand Up @@ -5530,6 +5542,12 @@ fun uniffi_iota_sdk_ffi_fn_method_structtag_coin_type(`ptr`: Pointer,uniffi_out_
): Pointer
fun uniffi_iota_sdk_ffi_fn_method_structtag_coin_type_opt(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
): RustBuffer.ByValue
fun uniffi_iota_sdk_ffi_fn_method_structtag_module(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
): Pointer
fun uniffi_iota_sdk_ffi_fn_method_structtag_name(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
): Pointer
fun uniffi_iota_sdk_ffi_fn_method_structtag_type_args(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
): RustBuffer.ByValue
fun uniffi_iota_sdk_ffi_fn_method_structtag_uniffi_trait_display(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
): RustBuffer.ByValue
fun uniffi_iota_sdk_ffi_fn_clone_systempackage(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
Expand Down Expand Up @@ -7170,7 +7188,7 @@ private fun uniffiCheckApiChecksums(lib: IntegrityCheckingUniffiLib) {
if (lib.uniffi_iota_sdk_ffi_checksum_method_splitcoins_coin() != 17278.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
if (lib.uniffi_iota_sdk_ffi_checksum_method_structtag_address() != 18393.toShort()) {
if (lib.uniffi_iota_sdk_ffi_checksum_method_structtag_address() != 20393.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
if (lib.uniffi_iota_sdk_ffi_checksum_method_structtag_coin_type() != 37745.toShort()) {
Expand All @@ -7179,6 +7197,15 @@ private fun uniffiCheckApiChecksums(lib: IntegrityCheckingUniffiLib) {
if (lib.uniffi_iota_sdk_ffi_checksum_method_structtag_coin_type_opt() != 65306.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
if (lib.uniffi_iota_sdk_ffi_checksum_method_structtag_module() != 28022.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
if (lib.uniffi_iota_sdk_ffi_checksum_method_structtag_name() != 23898.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
if (lib.uniffi_iota_sdk_ffi_checksum_method_structtag_type_args() != 48594.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
if (lib.uniffi_iota_sdk_ffi_checksum_method_systempackage_dependencies() != 25411.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
Expand Down Expand Up @@ -37588,6 +37615,9 @@ public object FfiConverterTypeSplitCoins: FfiConverter<SplitCoins, Pointer> {
*/
public interface StructTagInterface {

/**
* Returns the address part of a `StructTag`
*/
fun `address`(): Address

/**
Expand All @@ -37600,6 +37630,21 @@ public interface StructTagInterface {
*/
fun `coinTypeOpt`(): TypeTag?

/**
* Returns the module part of a `StructTag`
*/
fun `module`(): Identifier

/**
* Returns the struct name part of a `StructTag`
*/
fun `name`(): Identifier

/**
* Returns the type params part of a `StructTag`
*/
fun `typeArgs`(): List<TypeTag>

companion object
}

Expand Down Expand Up @@ -37706,7 +37751,10 @@ open class StructTag: Disposable, AutoCloseable, StructTagInterface
}
}

override fun `address`(): Address {

/**
* Returns the address part of a `StructTag`
*/override fun `address`(): Address {
return FfiConverterTypeAddress.lift(
callWithPointer {
uniffiRustCall() { _status ->
Expand Down Expand Up @@ -37749,6 +37797,51 @@ open class StructTag: Disposable, AutoCloseable, StructTagInterface



/**
* Returns the module part of a `StructTag`
*/override fun `module`(): Identifier {
return FfiConverterTypeIdentifier.lift(
callWithPointer {
uniffiRustCall() { _status ->
UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_structtag_module(
it, _status)
}
}
)
}



/**
* Returns the struct name part of a `StructTag`
*/override fun `name`(): Identifier {
return FfiConverterTypeIdentifier.lift(
callWithPointer {
uniffiRustCall() { _status ->
UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_structtag_name(
it, _status)
}
}
)
}



/**
* Returns the type params part of a `StructTag`
*/override fun `typeArgs`(): List<TypeTag> {
return FfiConverterSequenceTypeTypeTag.lift(
callWithPointer {
uniffiRustCall() { _status ->
UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_structtag_type_args(
it, _status)
}
}
)
}



override fun toString(): String {
return FfiConverterString.lift(
callWithPointer {
Expand Down
Loading