diff --git a/bindings/go/iota_sdk_ffi/iota_sdk_ffi.go b/bindings/go/iota_sdk_ffi/iota_sdk_ffi.go
index e7a6a191a..12025e1ce 100644
--- a/bindings/go/iota_sdk_ffi/iota_sdk_ffi.go
+++ b/bindings/go/iota_sdk_ffi/iota_sdk_ffi.go
@@ -376,6 +376,15 @@ func uniffiCheckChecksums() {
}
}
{
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_method_argument_nested()
+ })
+ if checksum != 44576 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_method_argument_nested: UniFFI API checksum mismatch")
+ }
+ }
+ {
checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
return C.uniffi_iota_sdk_ffi_checksum_method_bls12381publickey_to_bytes()
})
@@ -997,6 +1006,87 @@ func uniffiCheckChecksums() {
}
}
{
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_method_makemovevector_elements()
+ })
+ if checksum != 20773 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_method_makemovevector_elements: UniFFI API checksum mismatch")
+ }
+ }
+ {
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_method_makemovevector_type_tag()
+ })
+ if checksum != 31154 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_method_makemovevector_type_tag: UniFFI API checksum mismatch")
+ }
+ }
+ {
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_method_mergecoins_coin()
+ })
+ if checksum != 38884 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_method_mergecoins_coin: UniFFI API checksum mismatch")
+ }
+ }
+ {
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_method_mergecoins_coins_to_merge()
+ })
+ if checksum != 44350 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_method_mergecoins_coins_to_merge: UniFFI API checksum mismatch")
+ }
+ }
+ {
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_method_movecall_arguments()
+ })
+ if checksum != 17202 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_method_movecall_arguments: UniFFI API checksum mismatch")
+ }
+ }
+ {
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_method_movecall_function()
+ })
+ if checksum != 2751 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_method_movecall_function: UniFFI API checksum mismatch")
+ }
+ }
+ {
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_method_movecall_module()
+ })
+ if checksum != 35106 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_method_movecall_module: UniFFI API checksum mismatch")
+ }
+ }
+ {
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_method_movecall_package()
+ })
+ if checksum != 24481 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_method_movecall_package: UniFFI API checksum mismatch")
+ }
+ }
+ {
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_method_movecall_type_arguments()
+ })
+ if checksum != 46468 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_method_movecall_type_arguments: UniFFI API checksum mismatch")
+ }
+ }
+ {
checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
return C.uniffi_iota_sdk_ffi_checksum_method_multisigaggregatedsignature_bitmap()
})
@@ -1573,6 +1663,42 @@ func uniffiCheckChecksums() {
}
}
{
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_method_programmabletransaction_commands()
+ })
+ if checksum != 49868 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_method_programmabletransaction_commands: UniFFI API checksum mismatch")
+ }
+ }
+ {
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_method_programmabletransaction_inputs()
+ })
+ if checksum != 25458 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_method_programmabletransaction_inputs: UniFFI API checksum mismatch")
+ }
+ }
+ {
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_method_publish_dependencies()
+ })
+ if checksum != 57311 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_method_publish_dependencies: UniFFI API checksum mismatch")
+ }
+ }
+ {
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_method_publish_modules()
+ })
+ if checksum != 26011 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_method_publish_modules: UniFFI API checksum mismatch")
+ }
+ }
+ {
checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
return C.uniffi_iota_sdk_ffi_checksum_method_secp256k1publickey_to_bytes()
})
@@ -1762,6 +1888,24 @@ func uniffiCheckChecksums() {
}
}
{
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_method_splitcoins_amounts()
+ })
+ if checksum != 10377 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_method_splitcoins_amounts: UniFFI API checksum mismatch")
+ }
+ }
+ {
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_method_splitcoins_coin()
+ })
+ if checksum != 17278 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_method_splitcoins_coin: UniFFI API checksum mismatch")
+ }
+ }
+ {
checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
return C.uniffi_iota_sdk_ffi_checksum_method_structtag_address()
})
@@ -1897,6 +2041,24 @@ func uniffiCheckChecksums() {
}
}
{
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_method_transferobjects_address()
+ })
+ if checksum != 37833 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_method_transferobjects_address: UniFFI API checksum mismatch")
+ }
+ }
+ {
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_method_transferobjects_objects()
+ })
+ if checksum != 24154 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_method_transferobjects_objects: UniFFI API checksum mismatch")
+ }
+ }
+ {
checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
return C.uniffi_iota_sdk_ffi_checksum_method_typetag_as_struct_tag()
})
@@ -2032,6 +2194,42 @@ func uniffiCheckChecksums() {
}
}
{
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_method_upgrade_dependencies()
+ })
+ if checksum != 7113 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_method_upgrade_dependencies: UniFFI API checksum mismatch")
+ }
+ }
+ {
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_method_upgrade_modules()
+ })
+ if checksum != 62138 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_method_upgrade_modules: UniFFI API checksum mismatch")
+ }
+ }
+ {
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_method_upgrade_package()
+ })
+ if checksum != 35757 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_method_upgrade_package: UniFFI API checksum mismatch")
+ }
+ }
+ {
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_method_upgrade_ticket()
+ })
+ if checksum != 11416 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_method_upgrade_ticket: UniFFI API checksum mismatch")
+ }
+ }
+ {
checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
return C.uniffi_iota_sdk_ffi_checksum_method_usersignature_as_multisig()
})
@@ -2302,6 +2500,42 @@ func uniffiCheckChecksums() {
}
}
{
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_constructor_argument_new_gas()
+ })
+ if checksum != 14489 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_constructor_argument_new_gas: UniFFI API checksum mismatch")
+ }
+ }
+ {
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_constructor_argument_new_input()
+ })
+ if checksum != 33966 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_constructor_argument_new_input: UniFFI API checksum mismatch")
+ }
+ }
+ {
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_constructor_argument_new_nested_result()
+ })
+ if checksum != 57666 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_constructor_argument_new_nested_result: UniFFI API checksum mismatch")
+ }
+ }
+ {
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_constructor_argument_new_result()
+ })
+ if checksum != 44025 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_constructor_argument_new_result: UniFFI API checksum mismatch")
+ }
+ }
+ {
checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
return C.uniffi_iota_sdk_ffi_checksum_constructor_bls12381publickey_from_bytes()
})
@@ -2464,6 +2698,69 @@ func uniffiCheckChecksums() {
}
}
{
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_constructor_command_new_make_move_vector()
+ })
+ if checksum != 54610 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_constructor_command_new_make_move_vector: UniFFI API checksum mismatch")
+ }
+ }
+ {
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_constructor_command_new_merge_coins()
+ })
+ if checksum != 1888 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_constructor_command_new_merge_coins: UniFFI API checksum mismatch")
+ }
+ }
+ {
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_constructor_command_new_move_call()
+ })
+ if checksum != 23161 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_constructor_command_new_move_call: UniFFI API checksum mismatch")
+ }
+ }
+ {
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_constructor_command_new_publish()
+ })
+ if checksum != 7239 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_constructor_command_new_publish: UniFFI API checksum mismatch")
+ }
+ }
+ {
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_constructor_command_new_split_coins()
+ })
+ if checksum != 59484 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_constructor_command_new_split_coins: UniFFI API checksum mismatch")
+ }
+ }
+ {
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_constructor_command_new_transfer_objects()
+ })
+ if checksum != 54265 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_constructor_command_new_transfer_objects: UniFFI API checksum mismatch")
+ }
+ }
+ {
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_constructor_command_new_upgrade()
+ })
+ if checksum != 48835 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_constructor_command_new_upgrade: UniFFI API checksum mismatch")
+ }
+ }
+ {
checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
return C.uniffi_iota_sdk_ffi_checksum_constructor_consensuscommitdigest_from_base58()
})
@@ -2725,6 +3022,69 @@ func uniffiCheckChecksums() {
}
}
{
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_constructor_input_new_immutable_or_owned()
+ })
+ if checksum != 33908 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_constructor_input_new_immutable_or_owned: UniFFI API checksum mismatch")
+ }
+ }
+ {
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_constructor_input_new_pure()
+ })
+ if checksum != 53404 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_constructor_input_new_pure: UniFFI API checksum mismatch")
+ }
+ }
+ {
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_constructor_input_new_receiving()
+ })
+ if checksum != 28060 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_constructor_input_new_receiving: UniFFI API checksum mismatch")
+ }
+ }
+ {
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_constructor_input_new_shared()
+ })
+ if checksum != 61970 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_constructor_input_new_shared: UniFFI API checksum mismatch")
+ }
+ }
+ {
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_constructor_makemovevector_new()
+ })
+ if checksum != 20934 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_constructor_makemovevector_new: UniFFI API checksum mismatch")
+ }
+ }
+ {
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_constructor_mergecoins_new()
+ })
+ if checksum != 1506 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_constructor_mergecoins_new: UniFFI API checksum mismatch")
+ }
+ }
+ {
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_constructor_movecall_new()
+ })
+ if checksum != 30411 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_constructor_movecall_new: UniFFI API checksum mismatch")
+ }
+ }
+ {
checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
return C.uniffi_iota_sdk_ffi_checksum_constructor_movepackage_new()
})
@@ -2887,6 +3247,24 @@ func uniffiCheckChecksums() {
}
}
{
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_constructor_programmabletransaction_new()
+ })
+ if checksum != 38638 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_constructor_programmabletransaction_new: UniFFI API checksum mismatch")
+ }
+ }
+ {
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_constructor_publish_new()
+ })
+ if checksum != 4785 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_constructor_publish_new: UniFFI API checksum mismatch")
+ }
+ }
+ {
checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
return C.uniffi_iota_sdk_ffi_checksum_constructor_secp256k1publickey_from_bytes()
})
@@ -2996,16 +3374,25 @@ func uniffiCheckChecksums() {
}
{
checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
- return C.uniffi_iota_sdk_ffi_checksum_constructor_structtag_coin()
+ return C.uniffi_iota_sdk_ffi_checksum_constructor_splitcoins_new()
})
- if checksum != 13756 {
+ if checksum != 50321 {
// If this happens try cleaning and rebuilding your project
- panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_constructor_structtag_coin: UniFFI API checksum mismatch")
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_constructor_splitcoins_new: UniFFI API checksum mismatch")
}
}
{
checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
- return C.uniffi_iota_sdk_ffi_checksum_constructor_structtag_gas_coin()
+ return C.uniffi_iota_sdk_ffi_checksum_constructor_structtag_coin()
+ })
+ if checksum != 13756 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_constructor_structtag_coin: UniFFI API checksum mismatch")
+ }
+ }
+ {
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_constructor_structtag_gas_coin()
})
if checksum != 37848 {
// If this happens try cleaning and rebuilding your project
@@ -3184,6 +3571,15 @@ func uniffiCheckChecksums() {
}
}
{
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_constructor_transferobjects_new()
+ })
+ if checksum != 22470 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_constructor_transferobjects_new: UniFFI API checksum mismatch")
+ }
+ }
+ {
checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
return C.uniffi_iota_sdk_ffi_checksum_constructor_typetag_address()
})
@@ -3283,6 +3679,15 @@ func uniffiCheckChecksums() {
}
}
{
+ checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
+ return C.uniffi_iota_sdk_ffi_checksum_constructor_upgrade_new()
+ })
+ if checksum != 61663 {
+ // If this happens try cleaning and rebuilding your project
+ panic("iota_sdk_ffi: uniffi_iota_sdk_ffi_checksum_constructor_upgrade_new: UniFFI API checksum mismatch")
+ }
+ }
+ {
checksum := rustCall(func(_uniffiStatus *C.RustCallStatus) C.uint16_t {
return C.uniffi_iota_sdk_ffi_checksum_constructor_usersignature_from_base64()
})
@@ -3892,6 +4297,148 @@ func (_ FfiDestroyerAddress) Destroy(value *Address) {
+// An argument to a programmable transaction command
+//
+// # BCS
+//
+// The BCS serialized form for this type is defined by the following ABNF:
+//
+// ```text
+// argument = argument-gas
+// =/ argument-input
+// =/ argument-result
+// =/ argument-nested-result
+//
+// argument-gas = %x00
+// argument-input = %x01 u16
+// argument-result = %x02 u16
+// argument-nested-result = %x03 u16 u16
+// ```
+type ArgumentInterface interface {
+ // Turn a Result into a NestedResult. If the argument is not a Result,
+ // returns None.
+ Nested(ix uint16) **Argument
+}
+// An argument to a programmable transaction command
+//
+// # BCS
+//
+// The BCS serialized form for this type is defined by the following ABNF:
+//
+// ```text
+// argument = argument-gas
+// =/ argument-input
+// =/ argument-result
+// =/ argument-nested-result
+//
+// argument-gas = %x00
+// argument-input = %x01 u16
+// argument-result = %x02 u16
+// argument-nested-result = %x03 u16 u16
+// ```
+type Argument struct {
+ ffiObject FfiObject
+}
+
+
+// The gas coin. The gas coin can only be used by-ref, except for with
+// `TransferObjects`, which can use it by-value.
+func ArgumentNewGas() *Argument {
+ return FfiConverterArgumentINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_constructor_argument_new_gas(_uniffiStatus)
+ }))
+}
+
+// One of the input objects or primitive values (from
+// `ProgrammableTransaction` inputs)
+func ArgumentNewInput(input uint16) *Argument {
+ return FfiConverterArgumentINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_constructor_argument_new_input(FfiConverterUint16INSTANCE.Lower(input),_uniffiStatus)
+ }))
+}
+
+// Like a `Result` but it accesses a nested result. Currently, the only
+// usage of this is to access a value from a Move call with multiple
+// return values.
+func ArgumentNewNestedResult(commandIndex uint16, subresultIndex uint16) *Argument {
+ return FfiConverterArgumentINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_constructor_argument_new_nested_result(FfiConverterUint16INSTANCE.Lower(commandIndex), FfiConverterUint16INSTANCE.Lower(subresultIndex),_uniffiStatus)
+ }))
+}
+
+// The result of another command (from `ProgrammableTransaction` commands)
+func ArgumentNewResult(result uint16) *Argument {
+ return FfiConverterArgumentINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_constructor_argument_new_result(FfiConverterUint16INSTANCE.Lower(result),_uniffiStatus)
+ }))
+}
+
+
+
+// Turn a Result into a NestedResult. If the argument is not a Result,
+// returns None.
+func (_self *Argument) Nested(ix uint16) **Argument {
+ _pointer := _self.ffiObject.incrementPointer("*Argument")
+ defer _self.ffiObject.decrementPointer()
+ return FfiConverterOptionalArgumentINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) RustBufferI {
+ return GoRustBuffer {
+ inner: C.uniffi_iota_sdk_ffi_fn_method_argument_nested(
+ _pointer,FfiConverterUint16INSTANCE.Lower(ix),_uniffiStatus),
+ }
+ }))
+}
+func (object *Argument) Destroy() {
+ runtime.SetFinalizer(object, nil)
+ object.ffiObject.destroy()
+}
+
+type FfiConverterArgument struct {}
+
+var FfiConverterArgumentINSTANCE = FfiConverterArgument{}
+
+
+func (c FfiConverterArgument) Lift(pointer unsafe.Pointer) *Argument {
+ result := &Argument {
+ newFfiObject(
+ pointer,
+ func(pointer unsafe.Pointer, status *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_clone_argument(pointer, status)
+ },
+ func(pointer unsafe.Pointer, status *C.RustCallStatus) {
+ C.uniffi_iota_sdk_ffi_fn_free_argument(pointer, status)
+ },
+ ),
+ }
+ runtime.SetFinalizer(result, (*Argument).Destroy)
+ return result
+}
+
+func (c FfiConverterArgument) Read(reader io.Reader) *Argument {
+ return c.Lift(unsafe.Pointer(uintptr(readUint64(reader))))
+}
+
+func (c FfiConverterArgument) Lower(value *Argument) unsafe.Pointer {
+ // TODO: this is bad - all synchronization from ObjectRuntime.go is discarded here,
+ // because the pointer will be decremented immediately after this function returns,
+ // and someone will be left holding onto a non-locked pointer.
+ pointer := value.ffiObject.incrementPointer("*Argument")
+ defer value.ffiObject.decrementPointer()
+ return pointer
+
+}
+
+func (c FfiConverterArgument) Write(writer io.Writer, value *Argument) {
+ writeUint64(writer, uint64(uintptr(c.Lower(value))))
+}
+
+type FfiDestroyerArgument struct {}
+
+func (_ FfiDestroyerArgument) Destroy(value *Argument) {
+ value.Destroy()
+}
+
+
+
type AuthenticatorStateExpireInterface interface {
}
type AuthenticatorStateExpire struct {
@@ -5186,6 +5733,172 @@ func (_ FfiDestroyerCoin) Destroy(value *Coin) {
+// A single command in a programmable transaction.
+//
+// # BCS
+//
+// The BCS serialized form for this type is defined by the following ABNF:
+//
+// ```text
+// command = command-move-call
+// =/ command-transfer-objects
+// =/ command-split-coins
+// =/ command-merge-coins
+// =/ command-publish
+// =/ command-make-move-vector
+// =/ command-upgrade
+//
+// command-move-call = %x00 move-call
+// command-transfer-objects = %x01 transfer-objects
+// command-split-coins = %x02 split-coins
+// command-merge-coins = %x03 merge-coins
+// command-publish = %x04 publish
+// command-make-move-vector = %x05 make-move-vector
+// command-upgrade = %x06 upgrade
+// ```
+type CommandInterface interface {
+}
+// A single command in a programmable transaction.
+//
+// # BCS
+//
+// The BCS serialized form for this type is defined by the following ABNF:
+//
+// ```text
+// command = command-move-call
+// =/ command-transfer-objects
+// =/ command-split-coins
+// =/ command-merge-coins
+// =/ command-publish
+// =/ command-make-move-vector
+// =/ command-upgrade
+//
+// command-move-call = %x00 move-call
+// command-transfer-objects = %x01 transfer-objects
+// command-split-coins = %x02 split-coins
+// command-merge-coins = %x03 merge-coins
+// command-publish = %x04 publish
+// command-make-move-vector = %x05 make-move-vector
+// command-upgrade = %x06 upgrade
+// ```
+type Command struct {
+ ffiObject FfiObject
+}
+
+
+// Given n-values of the same type, it constructs a vector. For non objects
+// or an empty vector, the type tag must be specified.
+func CommandNewMakeMoveVector(makeMoveVector *MakeMoveVector) *Command {
+ return FfiConverterCommandINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_constructor_command_new_make_move_vector(FfiConverterMakeMoveVectorINSTANCE.Lower(makeMoveVector),_uniffiStatus)
+ }))
+}
+
+// It merges n-coins into the first coin
+func CommandNewMergeCoins(mergeCoins *MergeCoins) *Command {
+ return FfiConverterCommandINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_constructor_command_new_merge_coins(FfiConverterMergeCoinsINSTANCE.Lower(mergeCoins),_uniffiStatus)
+ }))
+}
+
+// A call to either an entry or a public Move function
+func CommandNewMoveCall(moveCall *MoveCall) *Command {
+ return FfiConverterCommandINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_constructor_command_new_move_call(FfiConverterMoveCallINSTANCE.Lower(moveCall),_uniffiStatus)
+ }))
+}
+
+// Publishes a Move package. It takes the package bytes and a list of the
+// package's transitive dependencies to link against on-chain.
+func CommandNewPublish(publish *Publish) *Command {
+ return FfiConverterCommandINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_constructor_command_new_publish(FfiConverterPublishINSTANCE.Lower(publish),_uniffiStatus)
+ }))
+}
+
+// It splits off some amounts into a new coins with those amounts
+func CommandNewSplitCoins(splitCoins *SplitCoins) *Command {
+ return FfiConverterCommandINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_constructor_command_new_split_coins(FfiConverterSplitCoinsINSTANCE.Lower(splitCoins),_uniffiStatus)
+ }))
+}
+
+// It sends n-objects to the specified address. These objects must have
+// store (public transfer) and either the previous owner must be an
+// address or the object must be newly created.
+func CommandNewTransferObjects(transferObjects *TransferObjects) *Command {
+ return FfiConverterCommandINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_constructor_command_new_transfer_objects(FfiConverterTransferObjectsINSTANCE.Lower(transferObjects),_uniffiStatus)
+ }))
+}
+
+// Upgrades a Move package
+// Takes (in order):
+// 1. A vector of serialized modules for the package.
+// 2. A vector of object ids for the transitive dependencies of the new
+// package.
+// 3. The object ID of the package being upgraded.
+// 4. An argument holding the `UpgradeTicket` that must have been produced
+// from an earlier command in the same programmable transaction.
+func CommandNewUpgrade(upgrade *Upgrade) *Command {
+ return FfiConverterCommandINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_constructor_command_new_upgrade(FfiConverterUpgradeINSTANCE.Lower(upgrade),_uniffiStatus)
+ }))
+}
+
+
+func (object *Command) Destroy() {
+ runtime.SetFinalizer(object, nil)
+ object.ffiObject.destroy()
+}
+
+type FfiConverterCommand struct {}
+
+var FfiConverterCommandINSTANCE = FfiConverterCommand{}
+
+
+func (c FfiConverterCommand) Lift(pointer unsafe.Pointer) *Command {
+ result := &Command {
+ newFfiObject(
+ pointer,
+ func(pointer unsafe.Pointer, status *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_clone_command(pointer, status)
+ },
+ func(pointer unsafe.Pointer, status *C.RustCallStatus) {
+ C.uniffi_iota_sdk_ffi_fn_free_command(pointer, status)
+ },
+ ),
+ }
+ runtime.SetFinalizer(result, (*Command).Destroy)
+ return result
+}
+
+func (c FfiConverterCommand) Read(reader io.Reader) *Command {
+ return c.Lift(unsafe.Pointer(uintptr(readUint64(reader))))
+}
+
+func (c FfiConverterCommand) Lower(value *Command) unsafe.Pointer {
+ // TODO: this is bad - all synchronization from ObjectRuntime.go is discarded here,
+ // because the pointer will be decremented immediately after this function returns,
+ // and someone will be left holding onto a non-locked pointer.
+ pointer := value.ffiObject.incrementPointer("*Command")
+ defer value.ffiObject.decrementPointer()
+ return pointer
+
+}
+
+func (c FfiConverterCommand) Write(writer io.Writer, value *Command) {
+ writeUint64(writer, uint64(uintptr(c.Lower(value))))
+}
+
+type FfiDestroyerCommand struct {}
+
+func (_ FfiDestroyerCommand) Destroy(value *Command) {
+ value.Destroy()
+}
+
+
+
type ConsensusCommitDigestInterface interface {
ToBase58() string
ToBytes() []byte
@@ -8386,149 +9099,658 @@ func (_ FfiDestroyerIdentifier) Destroy(value *Identifier) {
-// A move package
+// An input to a user transaction
//
// # BCS
//
// The BCS serialized form for this type is defined by the following ABNF:
//
// ```text
-// object-move-package = object-id u64 move-modules type-origin-table linkage-table
+// input = input-pure / input-immutable-or-owned / input-shared / input-receiving
//
-// move-modules = map (identifier bytes)
-// type-origin-table = vector type-origin
-// linkage-table = map (object-id upgrade-info)
+// input-pure = %x00 bytes
+// input-immutable-or-owned = %x01 object-ref
+// input-shared = %x02 object-id u64 bool
+// input-receiving = %x04 object-ref
// ```
-type MovePackageInterface interface {
+type InputInterface interface {
}
-// A move package
+// An input to a user transaction
//
// # BCS
//
// The BCS serialized form for this type is defined by the following ABNF:
//
// ```text
-// object-move-package = object-id u64 move-modules type-origin-table linkage-table
+// input = input-pure / input-immutable-or-owned / input-shared / input-receiving
//
-// move-modules = map (identifier bytes)
-// type-origin-table = vector type-origin
-// linkage-table = map (object-id upgrade-info)
+// input-pure = %x00 bytes
+// input-immutable-or-owned = %x01 object-ref
+// input-shared = %x02 object-id u64 bool
+// input-receiving = %x04 object-ref
// ```
-type MovePackage struct {
+type Input struct {
ffiObject FfiObject
}
-func NewMovePackage(id *ObjectId, version uint64, modules map[*Identifier][]byte, typeOriginTable []TypeOrigin, linkageTable map[*ObjectId]UpgradeInfo) (*MovePackage, error) {
- _uniffiRV, _uniffiErr := rustCallWithError[SdkFfiError](FfiConverterSdkFfiError{},func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
- return C.uniffi_iota_sdk_ffi_fn_constructor_movepackage_new(FfiConverterObjectIdINSTANCE.Lower(id), FfiConverterUint64INSTANCE.Lower(version), FfiConverterMapIdentifierBytesINSTANCE.Lower(modules), FfiConverterSequenceTypeOriginINSTANCE.Lower(typeOriginTable), FfiConverterMapObjectIdUpgradeInfoINSTANCE.Lower(linkageTable),_uniffiStatus)
- })
- if _uniffiErr != nil {
- var _uniffiDefaultValue *MovePackage
- return _uniffiDefaultValue, _uniffiErr
- } else {
- return FfiConverterMovePackageINSTANCE.Lift(_uniffiRV), nil
- }
+
+
+// A move object that is either immutable or address owned
+func InputNewImmutableOrOwned(objectRef ObjectReference) *Input {
+ return FfiConverterInputINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_constructor_input_new_immutable_or_owned(FfiConverterObjectReferenceINSTANCE.Lower(objectRef),_uniffiStatus)
+ }))
}
+// For normal operations this is required to be a move primitive type and
+// not contain structs or objects.
+func InputNewPure(value []byte) *Input {
+ return FfiConverterInputINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_constructor_input_new_pure(FfiConverterBytesINSTANCE.Lower(value),_uniffiStatus)
+ }))
+}
+func InputNewReceiving(objectRef ObjectReference) *Input {
+ return FfiConverterInputINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_constructor_input_new_receiving(FfiConverterObjectReferenceINSTANCE.Lower(objectRef),_uniffiStatus)
+ }))
+}
-func (object *MovePackage) Destroy() {
+// A move object whose owner is "Shared"
+func InputNewShared(objectId *ObjectId, initialSharedVersion uint64, mutable bool) *Input {
+ return FfiConverterInputINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_constructor_input_new_shared(FfiConverterObjectIdINSTANCE.Lower(objectId), FfiConverterUint64INSTANCE.Lower(initialSharedVersion), FfiConverterBoolINSTANCE.Lower(mutable),_uniffiStatus)
+ }))
+}
+
+
+func (object *Input) Destroy() {
runtime.SetFinalizer(object, nil)
object.ffiObject.destroy()
}
-type FfiConverterMovePackage struct {}
+type FfiConverterInput struct {}
-var FfiConverterMovePackageINSTANCE = FfiConverterMovePackage{}
+var FfiConverterInputINSTANCE = FfiConverterInput{}
-func (c FfiConverterMovePackage) Lift(pointer unsafe.Pointer) *MovePackage {
- result := &MovePackage {
+func (c FfiConverterInput) Lift(pointer unsafe.Pointer) *Input {
+ result := &Input {
newFfiObject(
pointer,
func(pointer unsafe.Pointer, status *C.RustCallStatus) unsafe.Pointer {
- return C.uniffi_iota_sdk_ffi_fn_clone_movepackage(pointer, status)
+ return C.uniffi_iota_sdk_ffi_fn_clone_input(pointer, status)
},
func(pointer unsafe.Pointer, status *C.RustCallStatus) {
- C.uniffi_iota_sdk_ffi_fn_free_movepackage(pointer, status)
+ C.uniffi_iota_sdk_ffi_fn_free_input(pointer, status)
},
),
}
- runtime.SetFinalizer(result, (*MovePackage).Destroy)
+ runtime.SetFinalizer(result, (*Input).Destroy)
return result
}
-func (c FfiConverterMovePackage) Read(reader io.Reader) *MovePackage {
+func (c FfiConverterInput) Read(reader io.Reader) *Input {
return c.Lift(unsafe.Pointer(uintptr(readUint64(reader))))
}
-func (c FfiConverterMovePackage) Lower(value *MovePackage) unsafe.Pointer {
+func (c FfiConverterInput) Lower(value *Input) unsafe.Pointer {
// TODO: this is bad - all synchronization from ObjectRuntime.go is discarded here,
// because the pointer will be decremented immediately after this function returns,
// and someone will be left holding onto a non-locked pointer.
- pointer := value.ffiObject.incrementPointer("*MovePackage")
+ pointer := value.ffiObject.incrementPointer("*Input")
defer value.ffiObject.decrementPointer()
return pointer
}
-func (c FfiConverterMovePackage) Write(writer io.Writer, value *MovePackage) {
+func (c FfiConverterInput) Write(writer io.Writer, value *Input) {
writeUint64(writer, uint64(uintptr(c.Lower(value))))
}
-type FfiDestroyerMovePackage struct {}
+type FfiDestroyerInput struct {}
-func (_ FfiDestroyerMovePackage) Destroy(value *MovePackage) {
+func (_ FfiDestroyerInput) Destroy(value *Input) {
value.Destroy()
}
-// Aggregated signature from members of a multisig committee.
+// Command to build a move vector out of a set of individual elements
//
// # BCS
//
// The BCS serialized form for this type is defined by the following ABNF:
//
// ```text
-// multisig-aggregated-signature = (vector multisig-member-signature)
-// u16 ; bitmap
-// multisig-committee
-// ```
-//
-// There is also a legacy encoding for this type defined as:
-//
-// ```text
-// legacy-multisig-aggregated-signature = (vector multisig-member-signature)
-// roaring-bitmap ; bitmap
-// legacy-multisig-committee
-// roaring-bitmap = bytes ; where the contents of the bytes are valid
-// ; according to the serialized spec for
-// ; roaring bitmaps
+// make-move-vector = (option type-tag) (vector argument)
// ```
-//
-// See [here](https://github.com/RoaringBitmap/RoaringFormatSpec) for the specification for the
-// serialized format of RoaringBitmaps.
-type MultisigAggregatedSignatureInterface interface {
- // The bitmap that indicates which committee members provided their
- // signature.
- Bitmap() uint16
- Committee() *MultisigCommittee
- // The list of signatures from committee members
- Signatures() []*MultisigMemberSignature
+type MakeMoveVectorInterface interface {
+ // The set individual elements to build the vector with
+ Elements() []*Argument
+ // Type of the individual elements
+ //
+ // This is required to be set when the type can't be inferred, for example
+ // when the set of provided arguments are all pure input values.
+ TypeTag() **TypeTag
}
-// Aggregated signature from members of a multisig committee.
+// Command to build a move vector out of a set of individual elements
//
// # BCS
//
// The BCS serialized form for this type is defined by the following ABNF:
//
// ```text
-// multisig-aggregated-signature = (vector multisig-member-signature)
-// u16 ; bitmap
-// multisig-committee
+// make-move-vector = (option type-tag) (vector argument)
// ```
-//
-// There is also a legacy encoding for this type defined as:
+type MakeMoveVector struct {
+ ffiObject FfiObject
+}
+func NewMakeMoveVector(typeTag **TypeTag, elements []*Argument) *MakeMoveVector {
+ return FfiConverterMakeMoveVectorINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_constructor_makemovevector_new(FfiConverterOptionalTypeTagINSTANCE.Lower(typeTag), FfiConverterSequenceArgumentINSTANCE.Lower(elements),_uniffiStatus)
+ }))
+}
+
+
+
+
+// The set individual elements to build the vector with
+func (_self *MakeMoveVector) Elements() []*Argument {
+ _pointer := _self.ffiObject.incrementPointer("*MakeMoveVector")
+ defer _self.ffiObject.decrementPointer()
+ return FfiConverterSequenceArgumentINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) RustBufferI {
+ return GoRustBuffer {
+ inner: C.uniffi_iota_sdk_ffi_fn_method_makemovevector_elements(
+ _pointer,_uniffiStatus),
+ }
+ }))
+}
+
+// Type of the individual elements
+//
+// This is required to be set when the type can't be inferred, for example
+// when the set of provided arguments are all pure input values.
+func (_self *MakeMoveVector) TypeTag() **TypeTag {
+ _pointer := _self.ffiObject.incrementPointer("*MakeMoveVector")
+ defer _self.ffiObject.decrementPointer()
+ return FfiConverterOptionalTypeTagINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) RustBufferI {
+ return GoRustBuffer {
+ inner: C.uniffi_iota_sdk_ffi_fn_method_makemovevector_type_tag(
+ _pointer,_uniffiStatus),
+ }
+ }))
+}
+func (object *MakeMoveVector) Destroy() {
+ runtime.SetFinalizer(object, nil)
+ object.ffiObject.destroy()
+}
+
+type FfiConverterMakeMoveVector struct {}
+
+var FfiConverterMakeMoveVectorINSTANCE = FfiConverterMakeMoveVector{}
+
+
+func (c FfiConverterMakeMoveVector) Lift(pointer unsafe.Pointer) *MakeMoveVector {
+ result := &MakeMoveVector {
+ newFfiObject(
+ pointer,
+ func(pointer unsafe.Pointer, status *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_clone_makemovevector(pointer, status)
+ },
+ func(pointer unsafe.Pointer, status *C.RustCallStatus) {
+ C.uniffi_iota_sdk_ffi_fn_free_makemovevector(pointer, status)
+ },
+ ),
+ }
+ runtime.SetFinalizer(result, (*MakeMoveVector).Destroy)
+ return result
+}
+
+func (c FfiConverterMakeMoveVector) Read(reader io.Reader) *MakeMoveVector {
+ return c.Lift(unsafe.Pointer(uintptr(readUint64(reader))))
+}
+
+func (c FfiConverterMakeMoveVector) Lower(value *MakeMoveVector) unsafe.Pointer {
+ // TODO: this is bad - all synchronization from ObjectRuntime.go is discarded here,
+ // because the pointer will be decremented immediately after this function returns,
+ // and someone will be left holding onto a non-locked pointer.
+ pointer := value.ffiObject.incrementPointer("*MakeMoveVector")
+ defer value.ffiObject.decrementPointer()
+ return pointer
+
+}
+
+func (c FfiConverterMakeMoveVector) Write(writer io.Writer, value *MakeMoveVector) {
+ writeUint64(writer, uint64(uintptr(c.Lower(value))))
+}
+
+type FfiDestroyerMakeMoveVector struct {}
+
+func (_ FfiDestroyerMakeMoveVector) Destroy(value *MakeMoveVector) {
+ value.Destroy()
+}
+
+
+
+// Command to merge multiple coins of the same type into a single coin
+//
+// # BCS
+//
+// The BCS serialized form for this type is defined by the following ABNF:
+//
+// ```text
+// merge-coins = argument (vector argument)
+// ```
+type MergeCoinsInterface interface {
+ // Coin to merge coins into
+ Coin() *Argument
+ // Set of coins to merge into `coin`
+ //
+ // All listed coins must be of the same type and be the same type as `coin`
+ CoinsToMerge() []*Argument
+}
+// Command to merge multiple coins of the same type into a single coin
+//
+// # BCS
+//
+// The BCS serialized form for this type is defined by the following ABNF:
+//
+// ```text
+// merge-coins = argument (vector argument)
+// ```
+type MergeCoins struct {
+ ffiObject FfiObject
+}
+func NewMergeCoins(coin *Argument, coinsToMerge []*Argument) *MergeCoins {
+ return FfiConverterMergeCoinsINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_constructor_mergecoins_new(FfiConverterArgumentINSTANCE.Lower(coin), FfiConverterSequenceArgumentINSTANCE.Lower(coinsToMerge),_uniffiStatus)
+ }))
+}
+
+
+
+
+// Coin to merge coins into
+func (_self *MergeCoins) Coin() *Argument {
+ _pointer := _self.ffiObject.incrementPointer("*MergeCoins")
+ defer _self.ffiObject.decrementPointer()
+ return FfiConverterArgumentINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_method_mergecoins_coin(
+ _pointer,_uniffiStatus)
+ }))
+}
+
+// Set of coins to merge into `coin`
+//
+// All listed coins must be of the same type and be the same type as `coin`
+func (_self *MergeCoins) CoinsToMerge() []*Argument {
+ _pointer := _self.ffiObject.incrementPointer("*MergeCoins")
+ defer _self.ffiObject.decrementPointer()
+ return FfiConverterSequenceArgumentINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) RustBufferI {
+ return GoRustBuffer {
+ inner: C.uniffi_iota_sdk_ffi_fn_method_mergecoins_coins_to_merge(
+ _pointer,_uniffiStatus),
+ }
+ }))
+}
+func (object *MergeCoins) Destroy() {
+ runtime.SetFinalizer(object, nil)
+ object.ffiObject.destroy()
+}
+
+type FfiConverterMergeCoins struct {}
+
+var FfiConverterMergeCoinsINSTANCE = FfiConverterMergeCoins{}
+
+
+func (c FfiConverterMergeCoins) Lift(pointer unsafe.Pointer) *MergeCoins {
+ result := &MergeCoins {
+ newFfiObject(
+ pointer,
+ func(pointer unsafe.Pointer, status *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_clone_mergecoins(pointer, status)
+ },
+ func(pointer unsafe.Pointer, status *C.RustCallStatus) {
+ C.uniffi_iota_sdk_ffi_fn_free_mergecoins(pointer, status)
+ },
+ ),
+ }
+ runtime.SetFinalizer(result, (*MergeCoins).Destroy)
+ return result
+}
+
+func (c FfiConverterMergeCoins) Read(reader io.Reader) *MergeCoins {
+ return c.Lift(unsafe.Pointer(uintptr(readUint64(reader))))
+}
+
+func (c FfiConverterMergeCoins) Lower(value *MergeCoins) unsafe.Pointer {
+ // TODO: this is bad - all synchronization from ObjectRuntime.go is discarded here,
+ // because the pointer will be decremented immediately after this function returns,
+ // and someone will be left holding onto a non-locked pointer.
+ pointer := value.ffiObject.incrementPointer("*MergeCoins")
+ defer value.ffiObject.decrementPointer()
+ return pointer
+
+}
+
+func (c FfiConverterMergeCoins) Write(writer io.Writer, value *MergeCoins) {
+ writeUint64(writer, uint64(uintptr(c.Lower(value))))
+}
+
+type FfiDestroyerMergeCoins struct {}
+
+func (_ FfiDestroyerMergeCoins) Destroy(value *MergeCoins) {
+ value.Destroy()
+}
+
+
+
+// Command to call a move function
+//
+// Functions that can be called by a `MoveCall` command are those that have a
+// function signature that is either `entry` or `public` (which don't have a
+// reference return type).
+//
+// # BCS
+//
+// The BCS serialized form for this type is defined by the following ABNF:
+//
+// ```text
+// move-call = object-id ; package id
+// identifier ; module name
+// identifier ; function name
+// (vector type-tag) ; type arguments, if any
+// (vector argument) ; input arguments
+// ```
+type MoveCallInterface interface {
+ // The arguments to the function.
+ Arguments() []*Argument
+ // The function to be called.
+ Function() *Identifier
+ // The specific module in the package containing the function.
+ Module() *Identifier
+ // The package containing the module and function.
+ Package() *ObjectId
+ // The type arguments to the function.
+ TypeArguments() []*TypeTag
+}
+// Command to call a move function
+//
+// Functions that can be called by a `MoveCall` command are those that have a
+// function signature that is either `entry` or `public` (which don't have a
+// reference return type).
+//
+// # BCS
+//
+// The BCS serialized form for this type is defined by the following ABNF:
+//
+// ```text
+// move-call = object-id ; package id
+// identifier ; module name
+// identifier ; function name
+// (vector type-tag) ; type arguments, if any
+// (vector argument) ; input arguments
+// ```
+type MoveCall struct {
+ ffiObject FfiObject
+}
+func NewMoveCall(varPackage *ObjectId, module *Identifier, function *Identifier, typeArguments []*TypeTag, arguments []*Argument) *MoveCall {
+ return FfiConverterMoveCallINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_constructor_movecall_new(FfiConverterObjectIdINSTANCE.Lower(varPackage), FfiConverterIdentifierINSTANCE.Lower(module), FfiConverterIdentifierINSTANCE.Lower(function), FfiConverterSequenceTypeTagINSTANCE.Lower(typeArguments), FfiConverterSequenceArgumentINSTANCE.Lower(arguments),_uniffiStatus)
+ }))
+}
+
+
+
+
+// The arguments to the function.
+func (_self *MoveCall) Arguments() []*Argument {
+ _pointer := _self.ffiObject.incrementPointer("*MoveCall")
+ defer _self.ffiObject.decrementPointer()
+ return FfiConverterSequenceArgumentINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) RustBufferI {
+ return GoRustBuffer {
+ inner: C.uniffi_iota_sdk_ffi_fn_method_movecall_arguments(
+ _pointer,_uniffiStatus),
+ }
+ }))
+}
+
+// The function to be called.
+func (_self *MoveCall) Function() *Identifier {
+ _pointer := _self.ffiObject.incrementPointer("*MoveCall")
+ defer _self.ffiObject.decrementPointer()
+ return FfiConverterIdentifierINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_method_movecall_function(
+ _pointer,_uniffiStatus)
+ }))
+}
+
+// The specific module in the package containing the function.
+func (_self *MoveCall) Module() *Identifier {
+ _pointer := _self.ffiObject.incrementPointer("*MoveCall")
+ defer _self.ffiObject.decrementPointer()
+ return FfiConverterIdentifierINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_method_movecall_module(
+ _pointer,_uniffiStatus)
+ }))
+}
+
+// The package containing the module and function.
+func (_self *MoveCall) Package() *ObjectId {
+ _pointer := _self.ffiObject.incrementPointer("*MoveCall")
+ defer _self.ffiObject.decrementPointer()
+ return FfiConverterObjectIdINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_method_movecall_package(
+ _pointer,_uniffiStatus)
+ }))
+}
+
+// The type arguments to the function.
+func (_self *MoveCall) TypeArguments() []*TypeTag {
+ _pointer := _self.ffiObject.incrementPointer("*MoveCall")
+ defer _self.ffiObject.decrementPointer()
+ return FfiConverterSequenceTypeTagINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) RustBufferI {
+ return GoRustBuffer {
+ inner: C.uniffi_iota_sdk_ffi_fn_method_movecall_type_arguments(
+ _pointer,_uniffiStatus),
+ }
+ }))
+}
+func (object *MoveCall) Destroy() {
+ runtime.SetFinalizer(object, nil)
+ object.ffiObject.destroy()
+}
+
+type FfiConverterMoveCall struct {}
+
+var FfiConverterMoveCallINSTANCE = FfiConverterMoveCall{}
+
+
+func (c FfiConverterMoveCall) Lift(pointer unsafe.Pointer) *MoveCall {
+ result := &MoveCall {
+ newFfiObject(
+ pointer,
+ func(pointer unsafe.Pointer, status *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_clone_movecall(pointer, status)
+ },
+ func(pointer unsafe.Pointer, status *C.RustCallStatus) {
+ C.uniffi_iota_sdk_ffi_fn_free_movecall(pointer, status)
+ },
+ ),
+ }
+ runtime.SetFinalizer(result, (*MoveCall).Destroy)
+ return result
+}
+
+func (c FfiConverterMoveCall) Read(reader io.Reader) *MoveCall {
+ return c.Lift(unsafe.Pointer(uintptr(readUint64(reader))))
+}
+
+func (c FfiConverterMoveCall) Lower(value *MoveCall) unsafe.Pointer {
+ // TODO: this is bad - all synchronization from ObjectRuntime.go is discarded here,
+ // because the pointer will be decremented immediately after this function returns,
+ // and someone will be left holding onto a non-locked pointer.
+ pointer := value.ffiObject.incrementPointer("*MoveCall")
+ defer value.ffiObject.decrementPointer()
+ return pointer
+
+}
+
+func (c FfiConverterMoveCall) Write(writer io.Writer, value *MoveCall) {
+ writeUint64(writer, uint64(uintptr(c.Lower(value))))
+}
+
+type FfiDestroyerMoveCall struct {}
+
+func (_ FfiDestroyerMoveCall) Destroy(value *MoveCall) {
+ value.Destroy()
+}
+
+
+
+// A move package
+//
+// # BCS
+//
+// The BCS serialized form for this type is defined by the following ABNF:
+//
+// ```text
+// object-move-package = object-id u64 move-modules type-origin-table linkage-table
+//
+// move-modules = map (identifier bytes)
+// type-origin-table = vector type-origin
+// linkage-table = map (object-id upgrade-info)
+// ```
+type MovePackageInterface interface {
+}
+// A move package
+//
+// # BCS
+//
+// The BCS serialized form for this type is defined by the following ABNF:
+//
+// ```text
+// object-move-package = object-id u64 move-modules type-origin-table linkage-table
+//
+// move-modules = map (identifier bytes)
+// type-origin-table = vector type-origin
+// linkage-table = map (object-id upgrade-info)
+// ```
+type MovePackage struct {
+ ffiObject FfiObject
+}
+func NewMovePackage(id *ObjectId, version uint64, modules map[*Identifier][]byte, typeOriginTable []TypeOrigin, linkageTable map[*ObjectId]UpgradeInfo) (*MovePackage, error) {
+ _uniffiRV, _uniffiErr := rustCallWithError[SdkFfiError](FfiConverterSdkFfiError{},func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_constructor_movepackage_new(FfiConverterObjectIdINSTANCE.Lower(id), FfiConverterUint64INSTANCE.Lower(version), FfiConverterMapIdentifierBytesINSTANCE.Lower(modules), FfiConverterSequenceTypeOriginINSTANCE.Lower(typeOriginTable), FfiConverterMapObjectIdUpgradeInfoINSTANCE.Lower(linkageTable),_uniffiStatus)
+ })
+ if _uniffiErr != nil {
+ var _uniffiDefaultValue *MovePackage
+ return _uniffiDefaultValue, _uniffiErr
+ } else {
+ return FfiConverterMovePackageINSTANCE.Lift(_uniffiRV), nil
+ }
+}
+
+
+
+func (object *MovePackage) Destroy() {
+ runtime.SetFinalizer(object, nil)
+ object.ffiObject.destroy()
+}
+
+type FfiConverterMovePackage struct {}
+
+var FfiConverterMovePackageINSTANCE = FfiConverterMovePackage{}
+
+
+func (c FfiConverterMovePackage) Lift(pointer unsafe.Pointer) *MovePackage {
+ result := &MovePackage {
+ newFfiObject(
+ pointer,
+ func(pointer unsafe.Pointer, status *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_clone_movepackage(pointer, status)
+ },
+ func(pointer unsafe.Pointer, status *C.RustCallStatus) {
+ C.uniffi_iota_sdk_ffi_fn_free_movepackage(pointer, status)
+ },
+ ),
+ }
+ runtime.SetFinalizer(result, (*MovePackage).Destroy)
+ return result
+}
+
+func (c FfiConverterMovePackage) Read(reader io.Reader) *MovePackage {
+ return c.Lift(unsafe.Pointer(uintptr(readUint64(reader))))
+}
+
+func (c FfiConverterMovePackage) Lower(value *MovePackage) unsafe.Pointer {
+ // TODO: this is bad - all synchronization from ObjectRuntime.go is discarded here,
+ // because the pointer will be decremented immediately after this function returns,
+ // and someone will be left holding onto a non-locked pointer.
+ pointer := value.ffiObject.incrementPointer("*MovePackage")
+ defer value.ffiObject.decrementPointer()
+ return pointer
+
+}
+
+func (c FfiConverterMovePackage) Write(writer io.Writer, value *MovePackage) {
+ writeUint64(writer, uint64(uintptr(c.Lower(value))))
+}
+
+type FfiDestroyerMovePackage struct {}
+
+func (_ FfiDestroyerMovePackage) Destroy(value *MovePackage) {
+ value.Destroy()
+}
+
+
+
+// Aggregated signature from members of a multisig committee.
+//
+// # BCS
+//
+// The BCS serialized form for this type is defined by the following ABNF:
+//
+// ```text
+// multisig-aggregated-signature = (vector multisig-member-signature)
+// u16 ; bitmap
+// multisig-committee
+// ```
+//
+// There is also a legacy encoding for this type defined as:
+//
+// ```text
+// legacy-multisig-aggregated-signature = (vector multisig-member-signature)
+// roaring-bitmap ; bitmap
+// legacy-multisig-committee
+// roaring-bitmap = bytes ; where the contents of the bytes are valid
+// ; according to the serialized spec for
+// ; roaring bitmaps
+// ```
+//
+// See [here](https://github.com/RoaringBitmap/RoaringFormatSpec) for the specification for the
+// serialized format of RoaringBitmaps.
+type MultisigAggregatedSignatureInterface interface {
+ // The bitmap that indicates which committee members provided their
+ // signature.
+ Bitmap() uint16
+ Committee() *MultisigCommittee
+ // The list of signatures from committee members
+ Signatures() []*MultisigMemberSignature
+}
+// Aggregated signature from members of a multisig committee.
+//
+// # BCS
+//
+// The BCS serialized form for this type is defined by the following ABNF:
+//
+// ```text
+// multisig-aggregated-signature = (vector multisig-member-signature)
+// u16 ; bitmap
+// multisig-committee
+// ```
+//
+// There is also a legacy encoding for this type defined as:
//
// ```text
// legacy-multisig-aggregated-signature = (vector multisig-member-signature)
@@ -10318,137 +11540,309 @@ func (_self *PasskeyAuthenticator) Challenge() []byte {
}))
}
-// Structured, unparsed, JSON for this passkey signature.
-//
-// See [CollectedClientData](https://www.w3.org/TR/webauthn-2/#dictdef-collectedclientdata)
-// for more information on this field.
-func (_self *PasskeyAuthenticator) ClientDataJson() string {
- _pointer := _self.ffiObject.incrementPointer("*PasskeyAuthenticator")
+// Structured, unparsed, JSON for this passkey signature.
+//
+// See [CollectedClientData](https://www.w3.org/TR/webauthn-2/#dictdef-collectedclientdata)
+// for more information on this field.
+func (_self *PasskeyAuthenticator) ClientDataJson() string {
+ _pointer := _self.ffiObject.incrementPointer("*PasskeyAuthenticator")
+ defer _self.ffiObject.decrementPointer()
+ return FfiConverterStringINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) RustBufferI {
+ return GoRustBuffer {
+ inner: C.uniffi_iota_sdk_ffi_fn_method_passkeyauthenticator_client_data_json(
+ _pointer,_uniffiStatus),
+ }
+ }))
+}
+
+// The passkey signature.
+func (_self *PasskeyAuthenticator) Signature() *SimpleSignature {
+ _pointer := _self.ffiObject.incrementPointer("*PasskeyAuthenticator")
+ defer _self.ffiObject.decrementPointer()
+ return FfiConverterSimpleSignatureINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_method_passkeyauthenticator_signature(
+ _pointer,_uniffiStatus)
+ }))
+}
+func (object *PasskeyAuthenticator) Destroy() {
+ runtime.SetFinalizer(object, nil)
+ object.ffiObject.destroy()
+}
+
+type FfiConverterPasskeyAuthenticator struct {}
+
+var FfiConverterPasskeyAuthenticatorINSTANCE = FfiConverterPasskeyAuthenticator{}
+
+
+func (c FfiConverterPasskeyAuthenticator) Lift(pointer unsafe.Pointer) *PasskeyAuthenticator {
+ result := &PasskeyAuthenticator {
+ newFfiObject(
+ pointer,
+ func(pointer unsafe.Pointer, status *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_clone_passkeyauthenticator(pointer, status)
+ },
+ func(pointer unsafe.Pointer, status *C.RustCallStatus) {
+ C.uniffi_iota_sdk_ffi_fn_free_passkeyauthenticator(pointer, status)
+ },
+ ),
+ }
+ runtime.SetFinalizer(result, (*PasskeyAuthenticator).Destroy)
+ return result
+}
+
+func (c FfiConverterPasskeyAuthenticator) Read(reader io.Reader) *PasskeyAuthenticator {
+ return c.Lift(unsafe.Pointer(uintptr(readUint64(reader))))
+}
+
+func (c FfiConverterPasskeyAuthenticator) Lower(value *PasskeyAuthenticator) unsafe.Pointer {
+ // TODO: this is bad - all synchronization from ObjectRuntime.go is discarded here,
+ // because the pointer will be decremented immediately after this function returns,
+ // and someone will be left holding onto a non-locked pointer.
+ pointer := value.ffiObject.incrementPointer("*PasskeyAuthenticator")
+ defer value.ffiObject.decrementPointer()
+ return pointer
+
+}
+
+func (c FfiConverterPasskeyAuthenticator) Write(writer io.Writer, value *PasskeyAuthenticator) {
+ writeUint64(writer, uint64(uintptr(c.Lower(value))))
+}
+
+type FfiDestroyerPasskeyAuthenticator struct {}
+
+func (_ FfiDestroyerPasskeyAuthenticator) Destroy(value *PasskeyAuthenticator) {
+ value.Destroy()
+}
+
+
+
+// A user transaction
+//
+// Contains a series of native commands and move calls where the results of one
+// command can be used in future commands.
+//
+// # BCS
+//
+// The BCS serialized form for this type is defined by the following ABNF:
+//
+// ```text
+// ptb = (vector input) (vector command)
+// ```
+type ProgrammableTransactionInterface interface {
+ // The commands to be executed sequentially. A failure in any command will
+ // result in the failure of the entire transaction.
+ Commands() []*Command
+ // Input objects or primitive values
+ Inputs() []*Input
+}
+// A user transaction
+//
+// Contains a series of native commands and move calls where the results of one
+// command can be used in future commands.
+//
+// # BCS
+//
+// The BCS serialized form for this type is defined by the following ABNF:
+//
+// ```text
+// ptb = (vector input) (vector command)
+// ```
+type ProgrammableTransaction struct {
+ ffiObject FfiObject
+}
+func NewProgrammableTransaction(inputs []*Input, commands []*Command) *ProgrammableTransaction {
+ return FfiConverterProgrammableTransactionINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_constructor_programmabletransaction_new(FfiConverterSequenceInputINSTANCE.Lower(inputs), FfiConverterSequenceCommandINSTANCE.Lower(commands),_uniffiStatus)
+ }))
+}
+
+
+
+
+// The commands to be executed sequentially. A failure in any command will
+// result in the failure of the entire transaction.
+func (_self *ProgrammableTransaction) Commands() []*Command {
+ _pointer := _self.ffiObject.incrementPointer("*ProgrammableTransaction")
defer _self.ffiObject.decrementPointer()
- return FfiConverterStringINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) RustBufferI {
+ return FfiConverterSequenceCommandINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) RustBufferI {
return GoRustBuffer {
- inner: C.uniffi_iota_sdk_ffi_fn_method_passkeyauthenticator_client_data_json(
+ inner: C.uniffi_iota_sdk_ffi_fn_method_programmabletransaction_commands(
_pointer,_uniffiStatus),
}
}))
}
-// The passkey signature.
-func (_self *PasskeyAuthenticator) Signature() *SimpleSignature {
- _pointer := _self.ffiObject.incrementPointer("*PasskeyAuthenticator")
+// Input objects or primitive values
+func (_self *ProgrammableTransaction) Inputs() []*Input {
+ _pointer := _self.ffiObject.incrementPointer("*ProgrammableTransaction")
defer _self.ffiObject.decrementPointer()
- return FfiConverterSimpleSignatureINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
- return C.uniffi_iota_sdk_ffi_fn_method_passkeyauthenticator_signature(
- _pointer,_uniffiStatus)
+ return FfiConverterSequenceInputINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) RustBufferI {
+ return GoRustBuffer {
+ inner: C.uniffi_iota_sdk_ffi_fn_method_programmabletransaction_inputs(
+ _pointer,_uniffiStatus),
+ }
}))
}
-func (object *PasskeyAuthenticator) Destroy() {
+func (object *ProgrammableTransaction) Destroy() {
runtime.SetFinalizer(object, nil)
object.ffiObject.destroy()
}
-type FfiConverterPasskeyAuthenticator struct {}
+type FfiConverterProgrammableTransaction struct {}
-var FfiConverterPasskeyAuthenticatorINSTANCE = FfiConverterPasskeyAuthenticator{}
+var FfiConverterProgrammableTransactionINSTANCE = FfiConverterProgrammableTransaction{}
-func (c FfiConverterPasskeyAuthenticator) Lift(pointer unsafe.Pointer) *PasskeyAuthenticator {
- result := &PasskeyAuthenticator {
+func (c FfiConverterProgrammableTransaction) Lift(pointer unsafe.Pointer) *ProgrammableTransaction {
+ result := &ProgrammableTransaction {
newFfiObject(
pointer,
func(pointer unsafe.Pointer, status *C.RustCallStatus) unsafe.Pointer {
- return C.uniffi_iota_sdk_ffi_fn_clone_passkeyauthenticator(pointer, status)
+ return C.uniffi_iota_sdk_ffi_fn_clone_programmabletransaction(pointer, status)
},
func(pointer unsafe.Pointer, status *C.RustCallStatus) {
- C.uniffi_iota_sdk_ffi_fn_free_passkeyauthenticator(pointer, status)
+ C.uniffi_iota_sdk_ffi_fn_free_programmabletransaction(pointer, status)
},
),
}
- runtime.SetFinalizer(result, (*PasskeyAuthenticator).Destroy)
+ runtime.SetFinalizer(result, (*ProgrammableTransaction).Destroy)
return result
}
-func (c FfiConverterPasskeyAuthenticator) Read(reader io.Reader) *PasskeyAuthenticator {
+func (c FfiConverterProgrammableTransaction) Read(reader io.Reader) *ProgrammableTransaction {
return c.Lift(unsafe.Pointer(uintptr(readUint64(reader))))
}
-func (c FfiConverterPasskeyAuthenticator) Lower(value *PasskeyAuthenticator) unsafe.Pointer {
+func (c FfiConverterProgrammableTransaction) Lower(value *ProgrammableTransaction) unsafe.Pointer {
// TODO: this is bad - all synchronization from ObjectRuntime.go is discarded here,
// because the pointer will be decremented immediately after this function returns,
// and someone will be left holding onto a non-locked pointer.
- pointer := value.ffiObject.incrementPointer("*PasskeyAuthenticator")
+ pointer := value.ffiObject.incrementPointer("*ProgrammableTransaction")
defer value.ffiObject.decrementPointer()
return pointer
}
-func (c FfiConverterPasskeyAuthenticator) Write(writer io.Writer, value *PasskeyAuthenticator) {
+func (c FfiConverterProgrammableTransaction) Write(writer io.Writer, value *ProgrammableTransaction) {
writeUint64(writer, uint64(uintptr(c.Lower(value))))
}
-type FfiDestroyerPasskeyAuthenticator struct {}
+type FfiDestroyerProgrammableTransaction struct {}
-func (_ FfiDestroyerPasskeyAuthenticator) Destroy(value *PasskeyAuthenticator) {
+func (_ FfiDestroyerProgrammableTransaction) Destroy(value *ProgrammableTransaction) {
value.Destroy()
}
-type ProgrammableTransactionInterface interface {
+// Command to publish a new move package
+//
+// # BCS
+//
+// The BCS serialized form for this type is defined by the following ABNF:
+//
+// ```text
+// publish = (vector bytes) ; the serialized move modules
+// (vector object-id) ; the set of package dependencies
+// ```
+type PublishInterface interface {
+ // Set of packages that the to-be published package depends on
+ Dependencies() []*ObjectId
+ // The serialized move modules
+ Modules() [][]byte
}
-type ProgrammableTransaction struct {
+// Command to publish a new move package
+//
+// # BCS
+//
+// The BCS serialized form for this type is defined by the following ABNF:
+//
+// ```text
+// publish = (vector bytes) ; the serialized move modules
+// (vector object-id) ; the set of package dependencies
+// ```
+type Publish struct {
ffiObject FfiObject
}
+func NewPublish(modules [][]byte, dependencies []*ObjectId) *Publish {
+ return FfiConverterPublishINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_constructor_publish_new(FfiConverterSequenceBytesINSTANCE.Lower(modules), FfiConverterSequenceObjectIdINSTANCE.Lower(dependencies),_uniffiStatus)
+ }))
+}
-func (object *ProgrammableTransaction) Destroy() {
+
+// Set of packages that the to-be published package depends on
+func (_self *Publish) Dependencies() []*ObjectId {
+ _pointer := _self.ffiObject.incrementPointer("*Publish")
+ defer _self.ffiObject.decrementPointer()
+ return FfiConverterSequenceObjectIdINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) RustBufferI {
+ return GoRustBuffer {
+ inner: C.uniffi_iota_sdk_ffi_fn_method_publish_dependencies(
+ _pointer,_uniffiStatus),
+ }
+ }))
+}
+
+// The serialized move modules
+func (_self *Publish) Modules() [][]byte {
+ _pointer := _self.ffiObject.incrementPointer("*Publish")
+ defer _self.ffiObject.decrementPointer()
+ return FfiConverterSequenceBytesINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) RustBufferI {
+ return GoRustBuffer {
+ inner: C.uniffi_iota_sdk_ffi_fn_method_publish_modules(
+ _pointer,_uniffiStatus),
+ }
+ }))
+}
+func (object *Publish) Destroy() {
runtime.SetFinalizer(object, nil)
object.ffiObject.destroy()
}
-type FfiConverterProgrammableTransaction struct {}
+type FfiConverterPublish struct {}
-var FfiConverterProgrammableTransactionINSTANCE = FfiConverterProgrammableTransaction{}
+var FfiConverterPublishINSTANCE = FfiConverterPublish{}
-func (c FfiConverterProgrammableTransaction) Lift(pointer unsafe.Pointer) *ProgrammableTransaction {
- result := &ProgrammableTransaction {
+func (c FfiConverterPublish) Lift(pointer unsafe.Pointer) *Publish {
+ result := &Publish {
newFfiObject(
pointer,
func(pointer unsafe.Pointer, status *C.RustCallStatus) unsafe.Pointer {
- return C.uniffi_iota_sdk_ffi_fn_clone_programmabletransaction(pointer, status)
+ return C.uniffi_iota_sdk_ffi_fn_clone_publish(pointer, status)
},
func(pointer unsafe.Pointer, status *C.RustCallStatus) {
- C.uniffi_iota_sdk_ffi_fn_free_programmabletransaction(pointer, status)
+ C.uniffi_iota_sdk_ffi_fn_free_publish(pointer, status)
},
),
}
- runtime.SetFinalizer(result, (*ProgrammableTransaction).Destroy)
+ runtime.SetFinalizer(result, (*Publish).Destroy)
return result
}
-func (c FfiConverterProgrammableTransaction) Read(reader io.Reader) *ProgrammableTransaction {
+func (c FfiConverterPublish) Read(reader io.Reader) *Publish {
return c.Lift(unsafe.Pointer(uintptr(readUint64(reader))))
}
-func (c FfiConverterProgrammableTransaction) Lower(value *ProgrammableTransaction) unsafe.Pointer {
+func (c FfiConverterPublish) Lower(value *Publish) unsafe.Pointer {
// TODO: this is bad - all synchronization from ObjectRuntime.go is discarded here,
// because the pointer will be decremented immediately after this function returns,
// and someone will be left holding onto a non-locked pointer.
- pointer := value.ffiObject.incrementPointer("*ProgrammableTransaction")
+ pointer := value.ffiObject.incrementPointer("*Publish")
defer value.ffiObject.decrementPointer()
return pointer
}
-func (c FfiConverterProgrammableTransaction) Write(writer io.Writer, value *ProgrammableTransaction) {
+func (c FfiConverterPublish) Write(writer io.Writer, value *Publish) {
writeUint64(writer, uint64(uintptr(c.Lower(value))))
}
-type FfiDestroyerProgrammableTransaction struct {}
+type FfiDestroyerPublish struct {}
-func (_ FfiDestroyerProgrammableTransaction) Destroy(value *ProgrammableTransaction) {
+func (_ FfiDestroyerPublish) Destroy(value *Publish) {
value.Destroy()
}
@@ -11284,6 +12678,115 @@ func (_ FfiDestroyerSimpleSignature) Destroy(value *SimpleSignature) {
+// Command to split a single coin object into multiple coins
+//
+// # BCS
+//
+// The BCS serialized form for this type is defined by the following ABNF:
+//
+// ```text
+// split-coins = argument (vector argument)
+// ```
+type SplitCoinsInterface interface {
+ // The amounts to split off
+ Amounts() []*Argument
+ // The coin to split
+ Coin() *Argument
+}
+// Command to split a single coin object into multiple coins
+//
+// # BCS
+//
+// The BCS serialized form for this type is defined by the following ABNF:
+//
+// ```text
+// split-coins = argument (vector argument)
+// ```
+type SplitCoins struct {
+ ffiObject FfiObject
+}
+func NewSplitCoins(coin *Argument, amounts []*Argument) *SplitCoins {
+ return FfiConverterSplitCoinsINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_constructor_splitcoins_new(FfiConverterArgumentINSTANCE.Lower(coin), FfiConverterSequenceArgumentINSTANCE.Lower(amounts),_uniffiStatus)
+ }))
+}
+
+
+
+
+// The amounts to split off
+func (_self *SplitCoins) Amounts() []*Argument {
+ _pointer := _self.ffiObject.incrementPointer("*SplitCoins")
+ defer _self.ffiObject.decrementPointer()
+ return FfiConverterSequenceArgumentINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) RustBufferI {
+ return GoRustBuffer {
+ inner: C.uniffi_iota_sdk_ffi_fn_method_splitcoins_amounts(
+ _pointer,_uniffiStatus),
+ }
+ }))
+}
+
+// The coin to split
+func (_self *SplitCoins) Coin() *Argument {
+ _pointer := _self.ffiObject.incrementPointer("*SplitCoins")
+ defer _self.ffiObject.decrementPointer()
+ return FfiConverterArgumentINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_method_splitcoins_coin(
+ _pointer,_uniffiStatus)
+ }))
+}
+func (object *SplitCoins) Destroy() {
+ runtime.SetFinalizer(object, nil)
+ object.ffiObject.destroy()
+}
+
+type FfiConverterSplitCoins struct {}
+
+var FfiConverterSplitCoinsINSTANCE = FfiConverterSplitCoins{}
+
+
+func (c FfiConverterSplitCoins) Lift(pointer unsafe.Pointer) *SplitCoins {
+ result := &SplitCoins {
+ newFfiObject(
+ pointer,
+ func(pointer unsafe.Pointer, status *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_clone_splitcoins(pointer, status)
+ },
+ func(pointer unsafe.Pointer, status *C.RustCallStatus) {
+ C.uniffi_iota_sdk_ffi_fn_free_splitcoins(pointer, status)
+ },
+ ),
+ }
+ runtime.SetFinalizer(result, (*SplitCoins).Destroy)
+ return result
+}
+
+func (c FfiConverterSplitCoins) Read(reader io.Reader) *SplitCoins {
+ return c.Lift(unsafe.Pointer(uintptr(readUint64(reader))))
+}
+
+func (c FfiConverterSplitCoins) Lower(value *SplitCoins) unsafe.Pointer {
+ // TODO: this is bad - all synchronization from ObjectRuntime.go is discarded here,
+ // because the pointer will be decremented immediately after this function returns,
+ // and someone will be left holding onto a non-locked pointer.
+ pointer := value.ffiObject.incrementPointer("*SplitCoins")
+ defer value.ffiObject.decrementPointer()
+ return pointer
+
+}
+
+func (c FfiConverterSplitCoins) Write(writer io.Writer, value *SplitCoins) {
+ writeUint64(writer, uint64(uintptr(c.Lower(value))))
+}
+
+type FfiDestroyerSplitCoins struct {}
+
+func (_ FfiDestroyerSplitCoins) Destroy(value *SplitCoins) {
+ value.Destroy()
+}
+
+
+
// Type information for a move struct
//
// # BCS
@@ -12046,73 +13549,182 @@ func TransactionKindEndOfEpoch(tx []*EndOfEpochTransactionKind) *TransactionKind
return C.uniffi_iota_sdk_ffi_fn_constructor_transactionkind_end_of_epoch(FfiConverterSequenceEndOfEpochTransactionKindINSTANCE.Lower(tx),_uniffiStatus)
}))
}
-
-func TransactionKindGenesis(tx *GenesisTransaction) *TransactionKind {
- return FfiConverterTransactionKindINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
- return C.uniffi_iota_sdk_ffi_fn_constructor_transactionkind_genesis(FfiConverterGenesisTransactionINSTANCE.Lower(tx),_uniffiStatus)
+
+func TransactionKindGenesis(tx *GenesisTransaction) *TransactionKind {
+ return FfiConverterTransactionKindINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_constructor_transactionkind_genesis(FfiConverterGenesisTransactionINSTANCE.Lower(tx),_uniffiStatus)
+ }))
+}
+
+func TransactionKindProgrammableTransaction(tx *ProgrammableTransaction) *TransactionKind {
+ return FfiConverterTransactionKindINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_constructor_transactionkind_programmable_transaction(FfiConverterProgrammableTransactionINSTANCE.Lower(tx),_uniffiStatus)
+ }))
+}
+
+func TransactionKindRandomnessStateUpdate(tx *RandomnessStateUpdate) *TransactionKind {
+ return FfiConverterTransactionKindINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_constructor_transactionkind_randomness_state_update(FfiConverterRandomnessStateUpdateINSTANCE.Lower(tx),_uniffiStatus)
+ }))
+}
+
+
+func (object *TransactionKind) Destroy() {
+ runtime.SetFinalizer(object, nil)
+ object.ffiObject.destroy()
+}
+
+type FfiConverterTransactionKind struct {}
+
+var FfiConverterTransactionKindINSTANCE = FfiConverterTransactionKind{}
+
+
+func (c FfiConverterTransactionKind) Lift(pointer unsafe.Pointer) *TransactionKind {
+ result := &TransactionKind {
+ newFfiObject(
+ pointer,
+ func(pointer unsafe.Pointer, status *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_clone_transactionkind(pointer, status)
+ },
+ func(pointer unsafe.Pointer, status *C.RustCallStatus) {
+ C.uniffi_iota_sdk_ffi_fn_free_transactionkind(pointer, status)
+ },
+ ),
+ }
+ runtime.SetFinalizer(result, (*TransactionKind).Destroy)
+ return result
+}
+
+func (c FfiConverterTransactionKind) Read(reader io.Reader) *TransactionKind {
+ return c.Lift(unsafe.Pointer(uintptr(readUint64(reader))))
+}
+
+func (c FfiConverterTransactionKind) Lower(value *TransactionKind) unsafe.Pointer {
+ // TODO: this is bad - all synchronization from ObjectRuntime.go is discarded here,
+ // because the pointer will be decremented immediately after this function returns,
+ // and someone will be left holding onto a non-locked pointer.
+ pointer := value.ffiObject.incrementPointer("*TransactionKind")
+ defer value.ffiObject.decrementPointer()
+ return pointer
+
+}
+
+func (c FfiConverterTransactionKind) Write(writer io.Writer, value *TransactionKind) {
+ writeUint64(writer, uint64(uintptr(c.Lower(value))))
+}
+
+type FfiDestroyerTransactionKind struct {}
+
+func (_ FfiDestroyerTransactionKind) Destroy(value *TransactionKind) {
+ value.Destroy()
+}
+
+
+
+// Command to transfer ownership of a set of objects to an address
+//
+// # BCS
+//
+// The BCS serialized form for this type is defined by the following ABNF:
+//
+// ```text
+// transfer-objects = (vector argument) argument
+// ```
+type TransferObjectsInterface interface {
+ // The address to transfer ownership to
+ Address() *Argument
+ // Set of objects to transfer
+ Objects() []*Argument
+}
+// Command to transfer ownership of a set of objects to an address
+//
+// # BCS
+//
+// The BCS serialized form for this type is defined by the following ABNF:
+//
+// ```text
+// transfer-objects = (vector argument) argument
+// ```
+type TransferObjects struct {
+ ffiObject FfiObject
+}
+func NewTransferObjects(objects []*Argument, address *Argument) *TransferObjects {
+ return FfiConverterTransferObjectsINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_constructor_transferobjects_new(FfiConverterSequenceArgumentINSTANCE.Lower(objects), FfiConverterArgumentINSTANCE.Lower(address),_uniffiStatus)
}))
}
-func TransactionKindProgrammableTransaction(tx *ProgrammableTransaction) *TransactionKind {
- return FfiConverterTransactionKindINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
- return C.uniffi_iota_sdk_ffi_fn_constructor_transactionkind_programmable_transaction(FfiConverterProgrammableTransactionINSTANCE.Lower(tx),_uniffiStatus)
+
+
+
+// The address to transfer ownership to
+func (_self *TransferObjects) Address() *Argument {
+ _pointer := _self.ffiObject.incrementPointer("*TransferObjects")
+ defer _self.ffiObject.decrementPointer()
+ return FfiConverterArgumentINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_method_transferobjects_address(
+ _pointer,_uniffiStatus)
}))
}
-func TransactionKindRandomnessStateUpdate(tx *RandomnessStateUpdate) *TransactionKind {
- return FfiConverterTransactionKindINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
- return C.uniffi_iota_sdk_ffi_fn_constructor_transactionkind_randomness_state_update(FfiConverterRandomnessStateUpdateINSTANCE.Lower(tx),_uniffiStatus)
+// Set of objects to transfer
+func (_self *TransferObjects) Objects() []*Argument {
+ _pointer := _self.ffiObject.incrementPointer("*TransferObjects")
+ defer _self.ffiObject.decrementPointer()
+ return FfiConverterSequenceArgumentINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) RustBufferI {
+ return GoRustBuffer {
+ inner: C.uniffi_iota_sdk_ffi_fn_method_transferobjects_objects(
+ _pointer,_uniffiStatus),
+ }
}))
}
-
-
-func (object *TransactionKind) Destroy() {
+func (object *TransferObjects) Destroy() {
runtime.SetFinalizer(object, nil)
object.ffiObject.destroy()
}
-type FfiConverterTransactionKind struct {}
+type FfiConverterTransferObjects struct {}
-var FfiConverterTransactionKindINSTANCE = FfiConverterTransactionKind{}
+var FfiConverterTransferObjectsINSTANCE = FfiConverterTransferObjects{}
-func (c FfiConverterTransactionKind) Lift(pointer unsafe.Pointer) *TransactionKind {
- result := &TransactionKind {
+func (c FfiConverterTransferObjects) Lift(pointer unsafe.Pointer) *TransferObjects {
+ result := &TransferObjects {
newFfiObject(
pointer,
func(pointer unsafe.Pointer, status *C.RustCallStatus) unsafe.Pointer {
- return C.uniffi_iota_sdk_ffi_fn_clone_transactionkind(pointer, status)
+ return C.uniffi_iota_sdk_ffi_fn_clone_transferobjects(pointer, status)
},
func(pointer unsafe.Pointer, status *C.RustCallStatus) {
- C.uniffi_iota_sdk_ffi_fn_free_transactionkind(pointer, status)
+ C.uniffi_iota_sdk_ffi_fn_free_transferobjects(pointer, status)
},
),
}
- runtime.SetFinalizer(result, (*TransactionKind).Destroy)
+ runtime.SetFinalizer(result, (*TransferObjects).Destroy)
return result
}
-func (c FfiConverterTransactionKind) Read(reader io.Reader) *TransactionKind {
+func (c FfiConverterTransferObjects) Read(reader io.Reader) *TransferObjects {
return c.Lift(unsafe.Pointer(uintptr(readUint64(reader))))
}
-func (c FfiConverterTransactionKind) Lower(value *TransactionKind) unsafe.Pointer {
+func (c FfiConverterTransferObjects) Lower(value *TransferObjects) unsafe.Pointer {
// TODO: this is bad - all synchronization from ObjectRuntime.go is discarded here,
// because the pointer will be decremented immediately after this function returns,
// and someone will be left holding onto a non-locked pointer.
- pointer := value.ffiObject.incrementPointer("*TransactionKind")
+ pointer := value.ffiObject.incrementPointer("*TransferObjects")
defer value.ffiObject.decrementPointer()
return pointer
}
-func (c FfiConverterTransactionKind) Write(writer io.Writer, value *TransactionKind) {
+func (c FfiConverterTransferObjects) Write(writer io.Writer, value *TransferObjects) {
writeUint64(writer, uint64(uintptr(c.Lower(value))))
}
-type FfiDestroyerTransactionKind struct {}
+type FfiDestroyerTransferObjects struct {}
-func (_ FfiDestroyerTransactionKind) Destroy(value *TransactionKind) {
+func (_ FfiDestroyerTransferObjects) Destroy(value *TransferObjects) {
value.Destroy()
}
@@ -12460,6 +14072,147 @@ func (_ FfiDestroyerTypeTag) Destroy(value *TypeTag) {
+// Command to upgrade an already published package
+//
+// # BCS
+//
+// The BCS serialized form for this type is defined by the following ABNF:
+//
+// ```text
+// upgrade = (vector bytes) ; move modules
+// (vector object-id) ; dependencies
+// object-id ; package-id of the package
+// argument ; upgrade ticket
+// ```
+type UpgradeInterface interface {
+ // Set of packages that the to-be published package depends on
+ Dependencies() []*ObjectId
+ // The serialized move modules
+ Modules() [][]byte
+ // Package id of the package to upgrade
+ Package() *ObjectId
+ // Ticket authorizing the upgrade
+ Ticket() *Argument
+}
+// Command to upgrade an already published package
+//
+// # BCS
+//
+// The BCS serialized form for this type is defined by the following ABNF:
+//
+// ```text
+// upgrade = (vector bytes) ; move modules
+// (vector object-id) ; dependencies
+// object-id ; package-id of the package
+// argument ; upgrade ticket
+// ```
+type Upgrade struct {
+ ffiObject FfiObject
+}
+func NewUpgrade(modules [][]byte, dependencies []*ObjectId, varPackage *ObjectId, ticket *Argument) *Upgrade {
+ return FfiConverterUpgradeINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_constructor_upgrade_new(FfiConverterSequenceBytesINSTANCE.Lower(modules), FfiConverterSequenceObjectIdINSTANCE.Lower(dependencies), FfiConverterObjectIdINSTANCE.Lower(varPackage), FfiConverterArgumentINSTANCE.Lower(ticket),_uniffiStatus)
+ }))
+}
+
+
+
+
+// Set of packages that the to-be published package depends on
+func (_self *Upgrade) Dependencies() []*ObjectId {
+ _pointer := _self.ffiObject.incrementPointer("*Upgrade")
+ defer _self.ffiObject.decrementPointer()
+ return FfiConverterSequenceObjectIdINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) RustBufferI {
+ return GoRustBuffer {
+ inner: C.uniffi_iota_sdk_ffi_fn_method_upgrade_dependencies(
+ _pointer,_uniffiStatus),
+ }
+ }))
+}
+
+// The serialized move modules
+func (_self *Upgrade) Modules() [][]byte {
+ _pointer := _self.ffiObject.incrementPointer("*Upgrade")
+ defer _self.ffiObject.decrementPointer()
+ return FfiConverterSequenceBytesINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) RustBufferI {
+ return GoRustBuffer {
+ inner: C.uniffi_iota_sdk_ffi_fn_method_upgrade_modules(
+ _pointer,_uniffiStatus),
+ }
+ }))
+}
+
+// Package id of the package to upgrade
+func (_self *Upgrade) Package() *ObjectId {
+ _pointer := _self.ffiObject.incrementPointer("*Upgrade")
+ defer _self.ffiObject.decrementPointer()
+ return FfiConverterObjectIdINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_method_upgrade_package(
+ _pointer,_uniffiStatus)
+ }))
+}
+
+// Ticket authorizing the upgrade
+func (_self *Upgrade) Ticket() *Argument {
+ _pointer := _self.ffiObject.incrementPointer("*Upgrade")
+ defer _self.ffiObject.decrementPointer()
+ return FfiConverterArgumentINSTANCE.Lift(rustCall(func(_uniffiStatus *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_method_upgrade_ticket(
+ _pointer,_uniffiStatus)
+ }))
+}
+func (object *Upgrade) Destroy() {
+ runtime.SetFinalizer(object, nil)
+ object.ffiObject.destroy()
+}
+
+type FfiConverterUpgrade struct {}
+
+var FfiConverterUpgradeINSTANCE = FfiConverterUpgrade{}
+
+
+func (c FfiConverterUpgrade) Lift(pointer unsafe.Pointer) *Upgrade {
+ result := &Upgrade {
+ newFfiObject(
+ pointer,
+ func(pointer unsafe.Pointer, status *C.RustCallStatus) unsafe.Pointer {
+ return C.uniffi_iota_sdk_ffi_fn_clone_upgrade(pointer, status)
+ },
+ func(pointer unsafe.Pointer, status *C.RustCallStatus) {
+ C.uniffi_iota_sdk_ffi_fn_free_upgrade(pointer, status)
+ },
+ ),
+ }
+ runtime.SetFinalizer(result, (*Upgrade).Destroy)
+ return result
+}
+
+func (c FfiConverterUpgrade) Read(reader io.Reader) *Upgrade {
+ return c.Lift(unsafe.Pointer(uintptr(readUint64(reader))))
+}
+
+func (c FfiConverterUpgrade) Lower(value *Upgrade) unsafe.Pointer {
+ // TODO: this is bad - all synchronization from ObjectRuntime.go is discarded here,
+ // because the pointer will be decremented immediately after this function returns,
+ // and someone will be left holding onto a non-locked pointer.
+ pointer := value.ffiObject.incrementPointer("*Upgrade")
+ defer value.ffiObject.decrementPointer()
+ return pointer
+
+}
+
+func (c FfiConverterUpgrade) Write(writer io.Writer, value *Upgrade) {
+ writeUint64(writer, uint64(uintptr(c.Lower(value))))
+}
+
+type FfiDestroyerUpgrade struct {}
+
+func (_ FfiDestroyerUpgrade) Destroy(value *Upgrade) {
+ value.Destroy()
+}
+
+
+
// A signature from a user
//
// A `UserSignature` is most commonly used to authorize the execution and
@@ -18779,6 +20532,43 @@ func (_ FfiDestroyerOptionalAddress) Destroy(value **Address) {
}
}
+type FfiConverterOptionalArgument struct{}
+
+var FfiConverterOptionalArgumentINSTANCE = FfiConverterOptionalArgument{}
+
+func (c FfiConverterOptionalArgument) Lift(rb RustBufferI) **Argument {
+ return LiftFromRustBuffer[**Argument](c, rb)
+}
+
+func (_ FfiConverterOptionalArgument) Read(reader io.Reader) **Argument {
+ if readInt8(reader) == 0 {
+ return nil
+ }
+ temp := FfiConverterArgumentINSTANCE.Read(reader)
+ return &temp
+}
+
+func (c FfiConverterOptionalArgument) Lower(value **Argument) C.RustBuffer {
+ return LowerIntoRustBuffer[**Argument](c, value)
+}
+
+func (_ FfiConverterOptionalArgument) Write(writer io.Writer, value **Argument) {
+ if value == nil {
+ writeInt8(writer, 0)
+ } else {
+ writeInt8(writer, 1)
+ FfiConverterArgumentINSTANCE.Write(writer, *value)
+ }
+}
+
+type FfiDestroyerOptionalArgument struct {}
+
+func (_ FfiDestroyerOptionalArgument) Destroy(value **Argument) {
+ if value != nil {
+ FfiDestroyerArgument{}.Destroy(*value)
+ }
+}
+
type FfiConverterOptionalBatchSendStatus struct{}
var FfiConverterOptionalBatchSendStatusINSTANCE = FfiConverterOptionalBatchSendStatus{}
@@ -20968,6 +22758,92 @@ func (FfiDestroyerSequenceString) Destroy(sequence []string) {
}
}
+type FfiConverterSequenceBytes struct{}
+
+var FfiConverterSequenceBytesINSTANCE = FfiConverterSequenceBytes{}
+
+func (c FfiConverterSequenceBytes) Lift(rb RustBufferI) [][]byte {
+ return LiftFromRustBuffer[[][]byte](c, rb)
+}
+
+func (c FfiConverterSequenceBytes) Read(reader io.Reader) [][]byte {
+ length := readInt32(reader)
+ if length == 0 {
+ return nil
+ }
+ result := make([][]byte, 0, length)
+ for i := int32(0); i < length; i++ {
+ result = append(result, FfiConverterBytesINSTANCE.Read(reader))
+ }
+ return result
+}
+
+func (c FfiConverterSequenceBytes) Lower(value [][]byte) C.RustBuffer {
+ return LowerIntoRustBuffer[[][]byte](c, value)
+}
+
+func (c FfiConverterSequenceBytes) Write(writer io.Writer, value [][]byte) {
+ if len(value) > math.MaxInt32 {
+ panic("[][]byte is too large to fit into Int32")
+ }
+
+ writeInt32(writer, int32(len(value)))
+ for _, item := range value {
+ FfiConverterBytesINSTANCE.Write(writer, item)
+ }
+}
+
+type FfiDestroyerSequenceBytes struct {}
+
+func (FfiDestroyerSequenceBytes) Destroy(sequence [][]byte) {
+ for _, value := range sequence {
+ FfiDestroyerBytes{}.Destroy(value)
+ }
+}
+
+type FfiConverterSequenceArgument struct{}
+
+var FfiConverterSequenceArgumentINSTANCE = FfiConverterSequenceArgument{}
+
+func (c FfiConverterSequenceArgument) Lift(rb RustBufferI) []*Argument {
+ return LiftFromRustBuffer[[]*Argument](c, rb)
+}
+
+func (c FfiConverterSequenceArgument) Read(reader io.Reader) []*Argument {
+ length := readInt32(reader)
+ if length == 0 {
+ return nil
+ }
+ result := make([]*Argument, 0, length)
+ for i := int32(0); i < length; i++ {
+ result = append(result, FfiConverterArgumentINSTANCE.Read(reader))
+ }
+ return result
+}
+
+func (c FfiConverterSequenceArgument) Lower(value []*Argument) C.RustBuffer {
+ return LowerIntoRustBuffer[[]*Argument](c, value)
+}
+
+func (c FfiConverterSequenceArgument) Write(writer io.Writer, value []*Argument) {
+ if len(value) > math.MaxInt32 {
+ panic("[]*Argument is too large to fit into Int32")
+ }
+
+ writeInt32(writer, int32(len(value)))
+ for _, item := range value {
+ FfiConverterArgumentINSTANCE.Write(writer, item)
+ }
+}
+
+type FfiDestroyerSequenceArgument struct {}
+
+func (FfiDestroyerSequenceArgument) Destroy(sequence []*Argument) {
+ for _, value := range sequence {
+ FfiDestroyerArgument{}.Destroy(value)
+ }
+}
+
type FfiConverterSequenceCheckpointCommitment struct{}
var FfiConverterSequenceCheckpointCommitmentINSTANCE = FfiConverterSequenceCheckpointCommitment{}
@@ -21054,6 +22930,49 @@ func (FfiDestroyerSequenceCoin) Destroy(sequence []*Coin) {
}
}
+type FfiConverterSequenceCommand struct{}
+
+var FfiConverterSequenceCommandINSTANCE = FfiConverterSequenceCommand{}
+
+func (c FfiConverterSequenceCommand) Lift(rb RustBufferI) []*Command {
+ return LiftFromRustBuffer[[]*Command](c, rb)
+}
+
+func (c FfiConverterSequenceCommand) Read(reader io.Reader) []*Command {
+ length := readInt32(reader)
+ if length == 0 {
+ return nil
+ }
+ result := make([]*Command, 0, length)
+ for i := int32(0); i < length; i++ {
+ result = append(result, FfiConverterCommandINSTANCE.Read(reader))
+ }
+ return result
+}
+
+func (c FfiConverterSequenceCommand) Lower(value []*Command) C.RustBuffer {
+ return LowerIntoRustBuffer[[]*Command](c, value)
+}
+
+func (c FfiConverterSequenceCommand) Write(writer io.Writer, value []*Command) {
+ if len(value) > math.MaxInt32 {
+ panic("[]*Command is too large to fit into Int32")
+ }
+
+ writeInt32(writer, int32(len(value)))
+ for _, item := range value {
+ FfiConverterCommandINSTANCE.Write(writer, item)
+ }
+}
+
+type FfiDestroyerSequenceCommand struct {}
+
+func (FfiDestroyerSequenceCommand) Destroy(sequence []*Command) {
+ for _, value := range sequence {
+ FfiDestroyerCommand{}.Destroy(value)
+ }
+}
+
type FfiConverterSequenceEndOfEpochTransactionKind struct{}
var FfiConverterSequenceEndOfEpochTransactionKindINSTANCE = FfiConverterSequenceEndOfEpochTransactionKind{}
@@ -21140,6 +23059,49 @@ func (FfiDestroyerSequenceEpoch) Destroy(sequence []*Epoch) {
}
}
+type FfiConverterSequenceInput struct{}
+
+var FfiConverterSequenceInputINSTANCE = FfiConverterSequenceInput{}
+
+func (c FfiConverterSequenceInput) Lift(rb RustBufferI) []*Input {
+ return LiftFromRustBuffer[[]*Input](c, rb)
+}
+
+func (c FfiConverterSequenceInput) Read(reader io.Reader) []*Input {
+ length := readInt32(reader)
+ if length == 0 {
+ return nil
+ }
+ result := make([]*Input, 0, length)
+ for i := int32(0); i < length; i++ {
+ result = append(result, FfiConverterInputINSTANCE.Read(reader))
+ }
+ return result
+}
+
+func (c FfiConverterSequenceInput) Lower(value []*Input) C.RustBuffer {
+ return LowerIntoRustBuffer[[]*Input](c, value)
+}
+
+func (c FfiConverterSequenceInput) Write(writer io.Writer, value []*Input) {
+ if len(value) > math.MaxInt32 {
+ panic("[]*Input is too large to fit into Int32")
+ }
+
+ writeInt32(writer, int32(len(value)))
+ for _, item := range value {
+ FfiConverterInputINSTANCE.Write(writer, item)
+ }
+}
+
+type FfiDestroyerSequenceInput struct {}
+
+func (FfiDestroyerSequenceInput) Destroy(sequence []*Input) {
+ for _, value := range sequence {
+ FfiDestroyerInput{}.Destroy(value)
+ }
+}
+
type FfiConverterSequenceMovePackage struct{}
var FfiConverterSequenceMovePackageINSTANCE = FfiConverterSequenceMovePackage{}
diff --git a/bindings/go/iota_sdk_ffi/iota_sdk_ffi.h b/bindings/go/iota_sdk_ffi/iota_sdk_ffi.h
index a0e971718..d42b8fa0d 100644
--- a/bindings/go/iota_sdk_ffi/iota_sdk_ffi.h
+++ b/bindings/go/iota_sdk_ffi/iota_sdk_ffi.h
@@ -414,6 +414,42 @@ RustBuffer uniffi_iota_sdk_ffi_fn_method_address_to_bytes(void* ptr, RustCallSta
RustBuffer uniffi_iota_sdk_ffi_fn_method_address_to_hex(void* ptr, RustCallStatus *out_status
);
#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CLONE_ARGUMENT
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CLONE_ARGUMENT
+void* uniffi_iota_sdk_ffi_fn_clone_argument(void* ptr, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_FREE_ARGUMENT
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_FREE_ARGUMENT
+void uniffi_iota_sdk_ffi_fn_free_argument(void* ptr, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_ARGUMENT_NEW_GAS
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_ARGUMENT_NEW_GAS
+void* uniffi_iota_sdk_ffi_fn_constructor_argument_new_gas(RustCallStatus *out_status
+
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_ARGUMENT_NEW_INPUT
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_ARGUMENT_NEW_INPUT
+void* uniffi_iota_sdk_ffi_fn_constructor_argument_new_input(uint16_t input, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_ARGUMENT_NEW_NESTED_RESULT
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_ARGUMENT_NEW_NESTED_RESULT
+void* uniffi_iota_sdk_ffi_fn_constructor_argument_new_nested_result(uint16_t command_index, uint16_t subresult_index, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_ARGUMENT_NEW_RESULT
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_ARGUMENT_NEW_RESULT
+void* uniffi_iota_sdk_ffi_fn_constructor_argument_new_result(uint16_t result, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_ARGUMENT_NESTED
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_ARGUMENT_NESTED
+RustBuffer uniffi_iota_sdk_ffi_fn_method_argument_nested(void* ptr, uint16_t ix, RustCallStatus *out_status
+);
+#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CLONE_AUTHENTICATORSTATEEXPIRE
#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CLONE_AUTHENTICATORSTATEEXPIRE
void* uniffi_iota_sdk_ffi_fn_clone_authenticatorstateexpire(void* ptr, RustCallStatus *out_status
@@ -713,6 +749,51 @@ void* uniffi_iota_sdk_ffi_fn_method_coin_coin_type(void* ptr, RustCallStatus *ou
void* uniffi_iota_sdk_ffi_fn_method_coin_id(void* ptr, RustCallStatus *out_status
);
#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CLONE_COMMAND
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CLONE_COMMAND
+void* uniffi_iota_sdk_ffi_fn_clone_command(void* ptr, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_FREE_COMMAND
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_FREE_COMMAND
+void uniffi_iota_sdk_ffi_fn_free_command(void* ptr, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_COMMAND_NEW_MAKE_MOVE_VECTOR
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_COMMAND_NEW_MAKE_MOVE_VECTOR
+void* uniffi_iota_sdk_ffi_fn_constructor_command_new_make_move_vector(void* make_move_vector, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_COMMAND_NEW_MERGE_COINS
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_COMMAND_NEW_MERGE_COINS
+void* uniffi_iota_sdk_ffi_fn_constructor_command_new_merge_coins(void* merge_coins, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_COMMAND_NEW_MOVE_CALL
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_COMMAND_NEW_MOVE_CALL
+void* uniffi_iota_sdk_ffi_fn_constructor_command_new_move_call(void* move_call, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_COMMAND_NEW_PUBLISH
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_COMMAND_NEW_PUBLISH
+void* uniffi_iota_sdk_ffi_fn_constructor_command_new_publish(void* publish, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_COMMAND_NEW_SPLIT_COINS
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_COMMAND_NEW_SPLIT_COINS
+void* uniffi_iota_sdk_ffi_fn_constructor_command_new_split_coins(void* split_coins, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_COMMAND_NEW_TRANSFER_OBJECTS
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_COMMAND_NEW_TRANSFER_OBJECTS
+void* uniffi_iota_sdk_ffi_fn_constructor_command_new_transfer_objects(void* transfer_objects, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_COMMAND_NEW_UPGRADE
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_COMMAND_NEW_UPGRADE
+void* uniffi_iota_sdk_ffi_fn_constructor_command_new_upgrade(void* upgrade, RustCallStatus *out_status
+);
+#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CLONE_CONSENSUSCOMMITDIGEST
#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CLONE_CONSENSUSCOMMITDIGEST
void* uniffi_iota_sdk_ffi_fn_clone_consensuscommitdigest(void* ptr, RustCallStatus *out_status
@@ -1291,6 +1372,126 @@ void* uniffi_iota_sdk_ffi_fn_constructor_identifier_new(RustBuffer identifier, R
RustBuffer uniffi_iota_sdk_ffi_fn_method_identifier_as_str(void* ptr, RustCallStatus *out_status
);
#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CLONE_INPUT
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CLONE_INPUT
+void* uniffi_iota_sdk_ffi_fn_clone_input(void* ptr, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_FREE_INPUT
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_FREE_INPUT
+void uniffi_iota_sdk_ffi_fn_free_input(void* ptr, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_INPUT_NEW_IMMUTABLE_OR_OWNED
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_INPUT_NEW_IMMUTABLE_OR_OWNED
+void* uniffi_iota_sdk_ffi_fn_constructor_input_new_immutable_or_owned(RustBuffer object_ref, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_INPUT_NEW_PURE
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_INPUT_NEW_PURE
+void* uniffi_iota_sdk_ffi_fn_constructor_input_new_pure(RustBuffer value, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_INPUT_NEW_RECEIVING
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_INPUT_NEW_RECEIVING
+void* uniffi_iota_sdk_ffi_fn_constructor_input_new_receiving(RustBuffer object_ref, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_INPUT_NEW_SHARED
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_INPUT_NEW_SHARED
+void* uniffi_iota_sdk_ffi_fn_constructor_input_new_shared(void* object_id, uint64_t initial_shared_version, int8_t mutable, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CLONE_MAKEMOVEVECTOR
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CLONE_MAKEMOVEVECTOR
+void* uniffi_iota_sdk_ffi_fn_clone_makemovevector(void* ptr, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_FREE_MAKEMOVEVECTOR
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_FREE_MAKEMOVEVECTOR
+void uniffi_iota_sdk_ffi_fn_free_makemovevector(void* ptr, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_MAKEMOVEVECTOR_NEW
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_MAKEMOVEVECTOR_NEW
+void* uniffi_iota_sdk_ffi_fn_constructor_makemovevector_new(RustBuffer type_tag, RustBuffer elements, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_MAKEMOVEVECTOR_ELEMENTS
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_MAKEMOVEVECTOR_ELEMENTS
+RustBuffer uniffi_iota_sdk_ffi_fn_method_makemovevector_elements(void* ptr, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_MAKEMOVEVECTOR_TYPE_TAG
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_MAKEMOVEVECTOR_TYPE_TAG
+RustBuffer uniffi_iota_sdk_ffi_fn_method_makemovevector_type_tag(void* ptr, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CLONE_MERGECOINS
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CLONE_MERGECOINS
+void* uniffi_iota_sdk_ffi_fn_clone_mergecoins(void* ptr, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_FREE_MERGECOINS
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_FREE_MERGECOINS
+void uniffi_iota_sdk_ffi_fn_free_mergecoins(void* ptr, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_MERGECOINS_NEW
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_MERGECOINS_NEW
+void* uniffi_iota_sdk_ffi_fn_constructor_mergecoins_new(void* coin, RustBuffer coins_to_merge, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_MERGECOINS_COIN
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_MERGECOINS_COIN
+void* uniffi_iota_sdk_ffi_fn_method_mergecoins_coin(void* ptr, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_MERGECOINS_COINS_TO_MERGE
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_MERGECOINS_COINS_TO_MERGE
+RustBuffer uniffi_iota_sdk_ffi_fn_method_mergecoins_coins_to_merge(void* ptr, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CLONE_MOVECALL
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CLONE_MOVECALL
+void* uniffi_iota_sdk_ffi_fn_clone_movecall(void* ptr, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_FREE_MOVECALL
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_FREE_MOVECALL
+void uniffi_iota_sdk_ffi_fn_free_movecall(void* ptr, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_MOVECALL_NEW
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_MOVECALL_NEW
+void* uniffi_iota_sdk_ffi_fn_constructor_movecall_new(void* package, void* module, void* function, RustBuffer type_arguments, RustBuffer arguments, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_MOVECALL_ARGUMENTS
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_MOVECALL_ARGUMENTS
+RustBuffer uniffi_iota_sdk_ffi_fn_method_movecall_arguments(void* ptr, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_MOVECALL_FUNCTION
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_MOVECALL_FUNCTION
+void* uniffi_iota_sdk_ffi_fn_method_movecall_function(void* ptr, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_MOVECALL_MODULE
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_MOVECALL_MODULE
+void* uniffi_iota_sdk_ffi_fn_method_movecall_module(void* ptr, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_MOVECALL_PACKAGE
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_MOVECALL_PACKAGE
+void* uniffi_iota_sdk_ffi_fn_method_movecall_package(void* ptr, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_MOVECALL_TYPE_ARGUMENTS
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_MOVECALL_TYPE_ARGUMENTS
+RustBuffer uniffi_iota_sdk_ffi_fn_method_movecall_type_arguments(void* ptr, RustCallStatus *out_status
+);
+#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CLONE_MOVEPACKAGE
#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CLONE_MOVEPACKAGE
void* uniffi_iota_sdk_ffi_fn_clone_movepackage(void* ptr, RustCallStatus *out_status
@@ -1844,6 +2045,46 @@ void* uniffi_iota_sdk_ffi_fn_clone_programmabletransaction(void* ptr, RustCallSt
void uniffi_iota_sdk_ffi_fn_free_programmabletransaction(void* ptr, RustCallStatus *out_status
);
#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_PROGRAMMABLETRANSACTION_NEW
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_PROGRAMMABLETRANSACTION_NEW
+void* uniffi_iota_sdk_ffi_fn_constructor_programmabletransaction_new(RustBuffer inputs, RustBuffer commands, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_PROGRAMMABLETRANSACTION_COMMANDS
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_PROGRAMMABLETRANSACTION_COMMANDS
+RustBuffer uniffi_iota_sdk_ffi_fn_method_programmabletransaction_commands(void* ptr, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_PROGRAMMABLETRANSACTION_INPUTS
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_PROGRAMMABLETRANSACTION_INPUTS
+RustBuffer uniffi_iota_sdk_ffi_fn_method_programmabletransaction_inputs(void* ptr, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CLONE_PUBLISH
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CLONE_PUBLISH
+void* uniffi_iota_sdk_ffi_fn_clone_publish(void* ptr, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_FREE_PUBLISH
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_FREE_PUBLISH
+void uniffi_iota_sdk_ffi_fn_free_publish(void* ptr, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_PUBLISH_NEW
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_PUBLISH_NEW
+void* uniffi_iota_sdk_ffi_fn_constructor_publish_new(RustBuffer modules, RustBuffer dependencies, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_PUBLISH_DEPENDENCIES
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_PUBLISH_DEPENDENCIES
+RustBuffer uniffi_iota_sdk_ffi_fn_method_publish_dependencies(void* ptr, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_PUBLISH_MODULES
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_PUBLISH_MODULES
+RustBuffer uniffi_iota_sdk_ffi_fn_method_publish_modules(void* ptr, RustCallStatus *out_status
+);
+#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CLONE_RANDOMNESSSTATEUPDATE
#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CLONE_RANDOMNESSSTATEUPDATE
void* uniffi_iota_sdk_ffi_fn_clone_randomnessstateupdate(void* ptr, RustCallStatus *out_status
@@ -2073,6 +2314,31 @@ RustBuffer uniffi_iota_sdk_ffi_fn_method_simplesignature_secp256r1_sig_opt(void*
RustBuffer uniffi_iota_sdk_ffi_fn_method_simplesignature_to_bytes(void* ptr, RustCallStatus *out_status
);
#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CLONE_SPLITCOINS
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CLONE_SPLITCOINS
+void* uniffi_iota_sdk_ffi_fn_clone_splitcoins(void* ptr, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_FREE_SPLITCOINS
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_FREE_SPLITCOINS
+void uniffi_iota_sdk_ffi_fn_free_splitcoins(void* ptr, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_SPLITCOINS_NEW
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_SPLITCOINS_NEW
+void* uniffi_iota_sdk_ffi_fn_constructor_splitcoins_new(void* coin, RustBuffer amounts, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_SPLITCOINS_AMOUNTS
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_SPLITCOINS_AMOUNTS
+RustBuffer uniffi_iota_sdk_ffi_fn_method_splitcoins_amounts(void* ptr, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_SPLITCOINS_COIN
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_SPLITCOINS_COIN
+void* uniffi_iota_sdk_ffi_fn_method_splitcoins_coin(void* ptr, RustCallStatus *out_status
+);
+#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CLONE_STRUCTTAG
#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CLONE_STRUCTTAG
void* uniffi_iota_sdk_ffi_fn_clone_structtag(void* ptr, RustCallStatus *out_status
@@ -2328,6 +2594,31 @@ void* uniffi_iota_sdk_ffi_fn_constructor_transactionkind_programmable_transactio
void* uniffi_iota_sdk_ffi_fn_constructor_transactionkind_randomness_state_update(void* tx, RustCallStatus *out_status
);
#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CLONE_TRANSFEROBJECTS
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CLONE_TRANSFEROBJECTS
+void* uniffi_iota_sdk_ffi_fn_clone_transferobjects(void* ptr, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_FREE_TRANSFEROBJECTS
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_FREE_TRANSFEROBJECTS
+void uniffi_iota_sdk_ffi_fn_free_transferobjects(void* ptr, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_TRANSFEROBJECTS_NEW
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_TRANSFEROBJECTS_NEW
+void* uniffi_iota_sdk_ffi_fn_constructor_transferobjects_new(RustBuffer objects, void* address, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_TRANSFEROBJECTS_ADDRESS
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_TRANSFEROBJECTS_ADDRESS
+void* uniffi_iota_sdk_ffi_fn_method_transferobjects_address(void* ptr, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_TRANSFEROBJECTS_OBJECTS
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_TRANSFEROBJECTS_OBJECTS
+RustBuffer uniffi_iota_sdk_ffi_fn_method_transferobjects_objects(void* ptr, RustCallStatus *out_status
+);
+#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CLONE_TYPETAG
#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CLONE_TYPETAG
void* uniffi_iota_sdk_ffi_fn_clone_typetag(void* ptr, RustCallStatus *out_status
@@ -2477,6 +2768,41 @@ int8_t uniffi_iota_sdk_ffi_fn_method_typetag_is_u8(void* ptr, RustCallStatus *ou
int8_t uniffi_iota_sdk_ffi_fn_method_typetag_is_vector(void* ptr, RustCallStatus *out_status
);
#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CLONE_UPGRADE
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CLONE_UPGRADE
+void* uniffi_iota_sdk_ffi_fn_clone_upgrade(void* ptr, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_FREE_UPGRADE
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_FREE_UPGRADE
+void uniffi_iota_sdk_ffi_fn_free_upgrade(void* ptr, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_UPGRADE_NEW
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CONSTRUCTOR_UPGRADE_NEW
+void* uniffi_iota_sdk_ffi_fn_constructor_upgrade_new(RustBuffer modules, RustBuffer dependencies, void* package, void* ticket, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_UPGRADE_DEPENDENCIES
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_UPGRADE_DEPENDENCIES
+RustBuffer uniffi_iota_sdk_ffi_fn_method_upgrade_dependencies(void* ptr, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_UPGRADE_MODULES
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_UPGRADE_MODULES
+RustBuffer uniffi_iota_sdk_ffi_fn_method_upgrade_modules(void* ptr, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_UPGRADE_PACKAGE
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_UPGRADE_PACKAGE
+void* uniffi_iota_sdk_ffi_fn_method_upgrade_package(void* ptr, RustCallStatus *out_status
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_UPGRADE_TICKET
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_METHOD_UPGRADE_TICKET
+void* uniffi_iota_sdk_ffi_fn_method_upgrade_ticket(void* ptr, RustCallStatus *out_status
+);
+#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CLONE_USERSIGNATURE
#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_FN_CLONE_USERSIGNATURE
void* uniffi_iota_sdk_ffi_fn_clone_usersignature(void* ptr, RustCallStatus *out_status
@@ -2982,6 +3308,12 @@ uint16_t uniffi_iota_sdk_ffi_checksum_method_address_to_bytes(void
#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_ADDRESS_TO_HEX
uint16_t uniffi_iota_sdk_ffi_checksum_method_address_to_hex(void
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_ARGUMENT_NESTED
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_ARGUMENT_NESTED
+uint16_t uniffi_iota_sdk_ffi_checksum_method_argument_nested(void
+
);
#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_BLS12381PUBLICKEY_TO_BYTES
@@ -3396,6 +3728,60 @@ uint16_t uniffi_iota_sdk_ffi_checksum_method_graphqlclient_transactions_effects(
#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_IDENTIFIER_AS_STR
uint16_t uniffi_iota_sdk_ffi_checksum_method_identifier_as_str(void
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_MAKEMOVEVECTOR_ELEMENTS
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_MAKEMOVEVECTOR_ELEMENTS
+uint16_t uniffi_iota_sdk_ffi_checksum_method_makemovevector_elements(void
+
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_MAKEMOVEVECTOR_TYPE_TAG
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_MAKEMOVEVECTOR_TYPE_TAG
+uint16_t uniffi_iota_sdk_ffi_checksum_method_makemovevector_type_tag(void
+
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_MERGECOINS_COIN
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_MERGECOINS_COIN
+uint16_t uniffi_iota_sdk_ffi_checksum_method_mergecoins_coin(void
+
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_MERGECOINS_COINS_TO_MERGE
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_MERGECOINS_COINS_TO_MERGE
+uint16_t uniffi_iota_sdk_ffi_checksum_method_mergecoins_coins_to_merge(void
+
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_MOVECALL_ARGUMENTS
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_MOVECALL_ARGUMENTS
+uint16_t uniffi_iota_sdk_ffi_checksum_method_movecall_arguments(void
+
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_MOVECALL_FUNCTION
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_MOVECALL_FUNCTION
+uint16_t uniffi_iota_sdk_ffi_checksum_method_movecall_function(void
+
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_MOVECALL_MODULE
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_MOVECALL_MODULE
+uint16_t uniffi_iota_sdk_ffi_checksum_method_movecall_module(void
+
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_MOVECALL_PACKAGE
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_MOVECALL_PACKAGE
+uint16_t uniffi_iota_sdk_ffi_checksum_method_movecall_package(void
+
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_MOVECALL_TYPE_ARGUMENTS
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_MOVECALL_TYPE_ARGUMENTS
+uint16_t uniffi_iota_sdk_ffi_checksum_method_movecall_type_arguments(void
+
);
#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_MULTISIGAGGREGATEDSIGNATURE_BITMAP
@@ -3780,6 +4166,30 @@ uint16_t uniffi_iota_sdk_ffi_checksum_method_passkeyauthenticator_client_data_js
#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_PASSKEYAUTHENTICATOR_SIGNATURE
uint16_t uniffi_iota_sdk_ffi_checksum_method_passkeyauthenticator_signature(void
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_PROGRAMMABLETRANSACTION_COMMANDS
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_PROGRAMMABLETRANSACTION_COMMANDS
+uint16_t uniffi_iota_sdk_ffi_checksum_method_programmabletransaction_commands(void
+
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_PROGRAMMABLETRANSACTION_INPUTS
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_PROGRAMMABLETRANSACTION_INPUTS
+uint16_t uniffi_iota_sdk_ffi_checksum_method_programmabletransaction_inputs(void
+
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_PUBLISH_DEPENDENCIES
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_PUBLISH_DEPENDENCIES
+uint16_t uniffi_iota_sdk_ffi_checksum_method_publish_dependencies(void
+
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_PUBLISH_MODULES
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_PUBLISH_MODULES
+uint16_t uniffi_iota_sdk_ffi_checksum_method_publish_modules(void
+
);
#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_SECP256K1PUBLICKEY_TO_BYTES
@@ -3906,6 +4316,18 @@ uint16_t uniffi_iota_sdk_ffi_checksum_method_simplesignature_secp256r1_sig_opt(v
#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_SIMPLESIGNATURE_TO_BYTES
uint16_t uniffi_iota_sdk_ffi_checksum_method_simplesignature_to_bytes(void
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_SPLITCOINS_AMOUNTS
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_SPLITCOINS_AMOUNTS
+uint16_t uniffi_iota_sdk_ffi_checksum_method_splitcoins_amounts(void
+
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_SPLITCOINS_COIN
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_SPLITCOINS_COIN
+uint16_t uniffi_iota_sdk_ffi_checksum_method_splitcoins_coin(void
+
);
#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_STRUCTTAG_ADDRESS
@@ -3996,6 +4418,18 @@ uint16_t uniffi_iota_sdk_ffi_checksum_method_transactioneventsdigest_to_base58(v
#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_TRANSACTIONEVENTSDIGEST_TO_BYTES
uint16_t uniffi_iota_sdk_ffi_checksum_method_transactioneventsdigest_to_bytes(void
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_TRANSFEROBJECTS_ADDRESS
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_TRANSFEROBJECTS_ADDRESS
+uint16_t uniffi_iota_sdk_ffi_checksum_method_transferobjects_address(void
+
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_TRANSFEROBJECTS_OBJECTS
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_TRANSFEROBJECTS_OBJECTS
+uint16_t uniffi_iota_sdk_ffi_checksum_method_transferobjects_objects(void
+
);
#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_TYPETAG_AS_STRUCT_TAG
@@ -4086,6 +4520,30 @@ uint16_t uniffi_iota_sdk_ffi_checksum_method_typetag_is_u8(void
#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_TYPETAG_IS_VECTOR
uint16_t uniffi_iota_sdk_ffi_checksum_method_typetag_is_vector(void
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_UPGRADE_DEPENDENCIES
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_UPGRADE_DEPENDENCIES
+uint16_t uniffi_iota_sdk_ffi_checksum_method_upgrade_dependencies(void
+
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_UPGRADE_MODULES
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_UPGRADE_MODULES
+uint16_t uniffi_iota_sdk_ffi_checksum_method_upgrade_modules(void
+
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_UPGRADE_PACKAGE
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_UPGRADE_PACKAGE
+uint16_t uniffi_iota_sdk_ffi_checksum_method_upgrade_package(void
+
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_UPGRADE_TICKET
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_UPGRADE_TICKET
+uint16_t uniffi_iota_sdk_ffi_checksum_method_upgrade_ticket(void
+
);
#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_METHOD_USERSIGNATURE_AS_MULTISIG
@@ -4266,6 +4724,30 @@ uint16_t uniffi_iota_sdk_ffi_checksum_constructor_address_from_hex(void
#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_ADDRESS_GENERATE
uint16_t uniffi_iota_sdk_ffi_checksum_constructor_address_generate(void
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_ARGUMENT_NEW_GAS
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_ARGUMENT_NEW_GAS
+uint16_t uniffi_iota_sdk_ffi_checksum_constructor_argument_new_gas(void
+
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_ARGUMENT_NEW_INPUT
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_ARGUMENT_NEW_INPUT
+uint16_t uniffi_iota_sdk_ffi_checksum_constructor_argument_new_input(void
+
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_ARGUMENT_NEW_NESTED_RESULT
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_ARGUMENT_NEW_NESTED_RESULT
+uint16_t uniffi_iota_sdk_ffi_checksum_constructor_argument_new_nested_result(void
+
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_ARGUMENT_NEW_RESULT
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_ARGUMENT_NEW_RESULT
+uint16_t uniffi_iota_sdk_ffi_checksum_constructor_argument_new_result(void
+
);
#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_BLS12381PUBLICKEY_FROM_BYTES
@@ -4374,6 +4856,48 @@ uint16_t uniffi_iota_sdk_ffi_checksum_constructor_circomg2_new(void
#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_COIN_TRY_FROM_OBJECT
uint16_t uniffi_iota_sdk_ffi_checksum_constructor_coin_try_from_object(void
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_COMMAND_NEW_MAKE_MOVE_VECTOR
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_COMMAND_NEW_MAKE_MOVE_VECTOR
+uint16_t uniffi_iota_sdk_ffi_checksum_constructor_command_new_make_move_vector(void
+
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_COMMAND_NEW_MERGE_COINS
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_COMMAND_NEW_MERGE_COINS
+uint16_t uniffi_iota_sdk_ffi_checksum_constructor_command_new_merge_coins(void
+
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_COMMAND_NEW_MOVE_CALL
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_COMMAND_NEW_MOVE_CALL
+uint16_t uniffi_iota_sdk_ffi_checksum_constructor_command_new_move_call(void
+
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_COMMAND_NEW_PUBLISH
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_COMMAND_NEW_PUBLISH
+uint16_t uniffi_iota_sdk_ffi_checksum_constructor_command_new_publish(void
+
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_COMMAND_NEW_SPLIT_COINS
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_COMMAND_NEW_SPLIT_COINS
+uint16_t uniffi_iota_sdk_ffi_checksum_constructor_command_new_split_coins(void
+
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_COMMAND_NEW_TRANSFER_OBJECTS
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_COMMAND_NEW_TRANSFER_OBJECTS
+uint16_t uniffi_iota_sdk_ffi_checksum_constructor_command_new_transfer_objects(void
+
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_COMMAND_NEW_UPGRADE
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_COMMAND_NEW_UPGRADE
+uint16_t uniffi_iota_sdk_ffi_checksum_constructor_command_new_upgrade(void
+
);
#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_CONSENSUSCOMMITDIGEST_FROM_BASE58
@@ -4548,6 +5072,48 @@ uint16_t uniffi_iota_sdk_ffi_checksum_constructor_graphqlclient_new_testnet(void
#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_IDENTIFIER_NEW
uint16_t uniffi_iota_sdk_ffi_checksum_constructor_identifier_new(void
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_INPUT_NEW_IMMUTABLE_OR_OWNED
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_INPUT_NEW_IMMUTABLE_OR_OWNED
+uint16_t uniffi_iota_sdk_ffi_checksum_constructor_input_new_immutable_or_owned(void
+
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_INPUT_NEW_PURE
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_INPUT_NEW_PURE
+uint16_t uniffi_iota_sdk_ffi_checksum_constructor_input_new_pure(void
+
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_INPUT_NEW_RECEIVING
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_INPUT_NEW_RECEIVING
+uint16_t uniffi_iota_sdk_ffi_checksum_constructor_input_new_receiving(void
+
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_INPUT_NEW_SHARED
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_INPUT_NEW_SHARED
+uint16_t uniffi_iota_sdk_ffi_checksum_constructor_input_new_shared(void
+
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_MAKEMOVEVECTOR_NEW
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_MAKEMOVEVECTOR_NEW
+uint16_t uniffi_iota_sdk_ffi_checksum_constructor_makemovevector_new(void
+
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_MERGECOINS_NEW
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_MERGECOINS_NEW
+uint16_t uniffi_iota_sdk_ffi_checksum_constructor_mergecoins_new(void
+
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_MOVECALL_NEW
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_MOVECALL_NEW
+uint16_t uniffi_iota_sdk_ffi_checksum_constructor_movecall_new(void
+
);
#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_MOVEPACKAGE_NEW
@@ -4656,6 +5222,18 @@ uint16_t uniffi_iota_sdk_ffi_checksum_constructor_owner_new_object(void
#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_OWNER_NEW_SHARED
uint16_t uniffi_iota_sdk_ffi_checksum_constructor_owner_new_shared(void
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_PROGRAMMABLETRANSACTION_NEW
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_PROGRAMMABLETRANSACTION_NEW
+uint16_t uniffi_iota_sdk_ffi_checksum_constructor_programmabletransaction_new(void
+
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_PUBLISH_NEW
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_PUBLISH_NEW
+uint16_t uniffi_iota_sdk_ffi_checksum_constructor_publish_new(void
+
);
#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_SECP256K1PUBLICKEY_FROM_BYTES
@@ -4728,6 +5306,12 @@ uint16_t uniffi_iota_sdk_ffi_checksum_constructor_secp256r1signature_from_str(vo
#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_SECP256R1SIGNATURE_GENERATE
uint16_t uniffi_iota_sdk_ffi_checksum_constructor_secp256r1signature_generate(void
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_SPLITCOINS_NEW
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_SPLITCOINS_NEW
+uint16_t uniffi_iota_sdk_ffi_checksum_constructor_splitcoins_new(void
+
);
#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_STRUCTTAG_COIN
@@ -4854,6 +5438,12 @@ uint16_t uniffi_iota_sdk_ffi_checksum_constructor_transactionkind_programmable_t
#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_TRANSACTIONKIND_RANDOMNESS_STATE_UPDATE
uint16_t uniffi_iota_sdk_ffi_checksum_constructor_transactionkind_randomness_state_update(void
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_TRANSFEROBJECTS_NEW
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_TRANSFEROBJECTS_NEW
+uint16_t uniffi_iota_sdk_ffi_checksum_constructor_transferobjects_new(void
+
);
#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_TYPETAG_ADDRESS
@@ -4920,6 +5510,12 @@ uint16_t uniffi_iota_sdk_ffi_checksum_constructor_typetag_u8(void
#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_TYPETAG_VECTOR
uint16_t uniffi_iota_sdk_ffi_checksum_constructor_typetag_vector(void
+);
+#endif
+#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_UPGRADE_NEW
+#define UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_UPGRADE_NEW
+uint16_t uniffi_iota_sdk_ffi_checksum_constructor_upgrade_new(void
+
);
#endif
#ifndef UNIFFI_FFIDEF_UNIFFI_IOTA_SDK_FFI_CHECKSUM_CONSTRUCTOR_USERSIGNATURE_FROM_BASE64
diff --git a/bindings/kotlin/lib/iota_sdk/iota_sdk_ffi.kt b/bindings/kotlin/lib/iota_sdk/iota_sdk_ffi.kt
index 452ae1d99..1dd6dc8ac 100644
--- a/bindings/kotlin/lib/iota_sdk/iota_sdk_ffi.kt
+++ b/bindings/kotlin/lib/iota_sdk/iota_sdk_ffi.kt
@@ -1484,6 +1484,116 @@ internal interface UniffiForeignFutureCompleteVoid : com.sun.jna.Callback {
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1524,6 +1634,8 @@ internal interface IntegrityCheckingUniffiLib : Library {
): Short
fun uniffi_iota_sdk_ffi_checksum_method_address_to_hex(
): Short
+fun uniffi_iota_sdk_ffi_checksum_method_argument_nested(
+): Short
fun uniffi_iota_sdk_ffi_checksum_method_bls12381publickey_to_bytes(
): Short
fun uniffi_iota_sdk_ffi_checksum_method_bls12381signature_to_bytes(
@@ -1662,6 +1774,24 @@ fun uniffi_iota_sdk_ffi_checksum_method_graphqlclient_transactions_effects(
): Short
fun uniffi_iota_sdk_ffi_checksum_method_identifier_as_str(
): Short
+fun uniffi_iota_sdk_ffi_checksum_method_makemovevector_elements(
+): Short
+fun uniffi_iota_sdk_ffi_checksum_method_makemovevector_type_tag(
+): Short
+fun uniffi_iota_sdk_ffi_checksum_method_mergecoins_coin(
+): Short
+fun uniffi_iota_sdk_ffi_checksum_method_mergecoins_coins_to_merge(
+): Short
+fun uniffi_iota_sdk_ffi_checksum_method_movecall_arguments(
+): Short
+fun uniffi_iota_sdk_ffi_checksum_method_movecall_function(
+): Short
+fun uniffi_iota_sdk_ffi_checksum_method_movecall_module(
+): Short
+fun uniffi_iota_sdk_ffi_checksum_method_movecall_package(
+): Short
+fun uniffi_iota_sdk_ffi_checksum_method_movecall_type_arguments(
+): Short
fun uniffi_iota_sdk_ffi_checksum_method_multisigaggregatedsignature_bitmap(
): Short
fun uniffi_iota_sdk_ffi_checksum_method_multisigaggregatedsignature_committee(
@@ -1790,6 +1920,14 @@ fun uniffi_iota_sdk_ffi_checksum_method_passkeyauthenticator_client_data_json(
): Short
fun uniffi_iota_sdk_ffi_checksum_method_passkeyauthenticator_signature(
): Short
+fun uniffi_iota_sdk_ffi_checksum_method_programmabletransaction_commands(
+): Short
+fun uniffi_iota_sdk_ffi_checksum_method_programmabletransaction_inputs(
+): Short
+fun uniffi_iota_sdk_ffi_checksum_method_publish_dependencies(
+): Short
+fun uniffi_iota_sdk_ffi_checksum_method_publish_modules(
+): Short
fun uniffi_iota_sdk_ffi_checksum_method_secp256k1publickey_to_bytes(
): Short
fun uniffi_iota_sdk_ffi_checksum_method_secp256k1signature_to_bytes(
@@ -1832,6 +1970,10 @@ fun uniffi_iota_sdk_ffi_checksum_method_simplesignature_secp256r1_sig_opt(
): Short
fun uniffi_iota_sdk_ffi_checksum_method_simplesignature_to_bytes(
): Short
+fun uniffi_iota_sdk_ffi_checksum_method_splitcoins_amounts(
+): Short
+fun uniffi_iota_sdk_ffi_checksum_method_splitcoins_coin(
+): Short
fun uniffi_iota_sdk_ffi_checksum_method_structtag_address(
): Short
fun uniffi_iota_sdk_ffi_checksum_method_structtag_coin_type(
@@ -1862,6 +2004,10 @@ fun uniffi_iota_sdk_ffi_checksum_method_transactioneventsdigest_to_base58(
): Short
fun uniffi_iota_sdk_ffi_checksum_method_transactioneventsdigest_to_bytes(
): Short
+fun uniffi_iota_sdk_ffi_checksum_method_transferobjects_address(
+): Short
+fun uniffi_iota_sdk_ffi_checksum_method_transferobjects_objects(
+): Short
fun uniffi_iota_sdk_ffi_checksum_method_typetag_as_struct_tag(
): Short
fun uniffi_iota_sdk_ffi_checksum_method_typetag_as_struct_tag_opt(
@@ -1892,6 +2038,14 @@ fun uniffi_iota_sdk_ffi_checksum_method_typetag_is_u8(
): Short
fun uniffi_iota_sdk_ffi_checksum_method_typetag_is_vector(
): Short
+fun uniffi_iota_sdk_ffi_checksum_method_upgrade_dependencies(
+): Short
+fun uniffi_iota_sdk_ffi_checksum_method_upgrade_modules(
+): Short
+fun uniffi_iota_sdk_ffi_checksum_method_upgrade_package(
+): Short
+fun uniffi_iota_sdk_ffi_checksum_method_upgrade_ticket(
+): Short
fun uniffi_iota_sdk_ffi_checksum_method_usersignature_as_multisig(
): Short
fun uniffi_iota_sdk_ffi_checksum_method_usersignature_as_multisig_opt(
@@ -1952,6 +2106,14 @@ fun uniffi_iota_sdk_ffi_checksum_constructor_address_from_hex(
): Short
fun uniffi_iota_sdk_ffi_checksum_constructor_address_generate(
): Short
+fun uniffi_iota_sdk_ffi_checksum_constructor_argument_new_gas(
+): Short
+fun uniffi_iota_sdk_ffi_checksum_constructor_argument_new_input(
+): Short
+fun uniffi_iota_sdk_ffi_checksum_constructor_argument_new_nested_result(
+): Short
+fun uniffi_iota_sdk_ffi_checksum_constructor_argument_new_result(
+): Short
fun uniffi_iota_sdk_ffi_checksum_constructor_bls12381publickey_from_bytes(
): Short
fun uniffi_iota_sdk_ffi_checksum_constructor_bls12381publickey_from_str(
@@ -1988,6 +2150,20 @@ fun uniffi_iota_sdk_ffi_checksum_constructor_circomg2_new(
): Short
fun uniffi_iota_sdk_ffi_checksum_constructor_coin_try_from_object(
): Short
+fun uniffi_iota_sdk_ffi_checksum_constructor_command_new_make_move_vector(
+): Short
+fun uniffi_iota_sdk_ffi_checksum_constructor_command_new_merge_coins(
+): Short
+fun uniffi_iota_sdk_ffi_checksum_constructor_command_new_move_call(
+): Short
+fun uniffi_iota_sdk_ffi_checksum_constructor_command_new_publish(
+): Short
+fun uniffi_iota_sdk_ffi_checksum_constructor_command_new_split_coins(
+): Short
+fun uniffi_iota_sdk_ffi_checksum_constructor_command_new_transfer_objects(
+): Short
+fun uniffi_iota_sdk_ffi_checksum_constructor_command_new_upgrade(
+): Short
fun uniffi_iota_sdk_ffi_checksum_constructor_consensuscommitdigest_from_base58(
): Short
fun uniffi_iota_sdk_ffi_checksum_constructor_consensuscommitdigest_from_bytes(
@@ -2046,6 +2222,20 @@ fun uniffi_iota_sdk_ffi_checksum_constructor_graphqlclient_new_testnet(
): Short
fun uniffi_iota_sdk_ffi_checksum_constructor_identifier_new(
): Short
+fun uniffi_iota_sdk_ffi_checksum_constructor_input_new_immutable_or_owned(
+): Short
+fun uniffi_iota_sdk_ffi_checksum_constructor_input_new_pure(
+): Short
+fun uniffi_iota_sdk_ffi_checksum_constructor_input_new_receiving(
+): Short
+fun uniffi_iota_sdk_ffi_checksum_constructor_input_new_shared(
+): Short
+fun uniffi_iota_sdk_ffi_checksum_constructor_makemovevector_new(
+): Short
+fun uniffi_iota_sdk_ffi_checksum_constructor_mergecoins_new(
+): Short
+fun uniffi_iota_sdk_ffi_checksum_constructor_movecall_new(
+): Short
fun uniffi_iota_sdk_ffi_checksum_constructor_movepackage_new(
): Short
fun uniffi_iota_sdk_ffi_checksum_constructor_multisigaggregatedsignature_new(
@@ -2082,6 +2272,10 @@ fun uniffi_iota_sdk_ffi_checksum_constructor_owner_new_object(
): Short
fun uniffi_iota_sdk_ffi_checksum_constructor_owner_new_shared(
): Short
+fun uniffi_iota_sdk_ffi_checksum_constructor_programmabletransaction_new(
+): Short
+fun uniffi_iota_sdk_ffi_checksum_constructor_publish_new(
+): Short
fun uniffi_iota_sdk_ffi_checksum_constructor_secp256k1publickey_from_bytes(
): Short
fun uniffi_iota_sdk_ffi_checksum_constructor_secp256k1publickey_from_str(
@@ -2106,6 +2300,8 @@ fun uniffi_iota_sdk_ffi_checksum_constructor_secp256r1signature_from_str(
): Short
fun uniffi_iota_sdk_ffi_checksum_constructor_secp256r1signature_generate(
): Short
+fun uniffi_iota_sdk_ffi_checksum_constructor_splitcoins_new(
+): Short
fun uniffi_iota_sdk_ffi_checksum_constructor_structtag_coin(
): Short
fun uniffi_iota_sdk_ffi_checksum_constructor_structtag_gas_coin(
@@ -2148,6 +2344,8 @@ fun uniffi_iota_sdk_ffi_checksum_constructor_transactionkind_programmable_transa
): Short
fun uniffi_iota_sdk_ffi_checksum_constructor_transactionkind_randomness_state_update(
): Short
+fun uniffi_iota_sdk_ffi_checksum_constructor_transferobjects_new(
+): Short
fun uniffi_iota_sdk_ffi_checksum_constructor_typetag_address(
): Short
fun uniffi_iota_sdk_ffi_checksum_constructor_typetag_bool(
@@ -2170,6 +2368,8 @@ fun uniffi_iota_sdk_ffi_checksum_constructor_typetag_u8(
): Short
fun uniffi_iota_sdk_ffi_checksum_constructor_typetag_vector(
): Short
+fun uniffi_iota_sdk_ffi_checksum_constructor_upgrade_new(
+): Short
fun uniffi_iota_sdk_ffi_checksum_constructor_usersignature_from_base64(
): Short
fun uniffi_iota_sdk_ffi_checksum_constructor_usersignature_from_bytes(
@@ -2245,6 +2445,20 @@ fun uniffi_iota_sdk_ffi_fn_method_address_to_bytes(`ptr`: Pointer,uniffi_out_err
): RustBuffer.ByValue
fun uniffi_iota_sdk_ffi_fn_method_address_to_hex(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
): RustBuffer.ByValue
+fun uniffi_iota_sdk_ffi_fn_clone_argument(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): Pointer
+fun uniffi_iota_sdk_ffi_fn_free_argument(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): Unit
+fun uniffi_iota_sdk_ffi_fn_constructor_argument_new_gas(uniffi_out_err: UniffiRustCallStatus,
+): Pointer
+fun uniffi_iota_sdk_ffi_fn_constructor_argument_new_input(`input`: Short,uniffi_out_err: UniffiRustCallStatus,
+): Pointer
+fun uniffi_iota_sdk_ffi_fn_constructor_argument_new_nested_result(`commandIndex`: Short,`subresultIndex`: Short,uniffi_out_err: UniffiRustCallStatus,
+): Pointer
+fun uniffi_iota_sdk_ffi_fn_constructor_argument_new_result(`result`: Short,uniffi_out_err: UniffiRustCallStatus,
+): Pointer
+fun uniffi_iota_sdk_ffi_fn_method_argument_nested(`ptr`: Pointer,`ix`: Short,uniffi_out_err: UniffiRustCallStatus,
+): RustBuffer.ByValue
fun uniffi_iota_sdk_ffi_fn_clone_authenticatorstateexpire(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
): Pointer
fun uniffi_iota_sdk_ffi_fn_free_authenticatorstateexpire(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
@@ -2363,6 +2577,24 @@ fun uniffi_iota_sdk_ffi_fn_method_coin_coin_type(`ptr`: Pointer,uniffi_out_err:
): Pointer
fun uniffi_iota_sdk_ffi_fn_method_coin_id(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
): Pointer
+fun uniffi_iota_sdk_ffi_fn_clone_command(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): Pointer
+fun uniffi_iota_sdk_ffi_fn_free_command(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): Unit
+fun uniffi_iota_sdk_ffi_fn_constructor_command_new_make_move_vector(`makeMoveVector`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): Pointer
+fun uniffi_iota_sdk_ffi_fn_constructor_command_new_merge_coins(`mergeCoins`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): Pointer
+fun uniffi_iota_sdk_ffi_fn_constructor_command_new_move_call(`moveCall`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): Pointer
+fun uniffi_iota_sdk_ffi_fn_constructor_command_new_publish(`publish`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): Pointer
+fun uniffi_iota_sdk_ffi_fn_constructor_command_new_split_coins(`splitCoins`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): Pointer
+fun uniffi_iota_sdk_ffi_fn_constructor_command_new_transfer_objects(`transferObjects`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): Pointer
+fun uniffi_iota_sdk_ffi_fn_constructor_command_new_upgrade(`upgrade`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): Pointer
fun uniffi_iota_sdk_ffi_fn_clone_consensuscommitdigest(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
): Pointer
fun uniffi_iota_sdk_ffi_fn_free_consensuscommitdigest(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
@@ -2589,6 +2821,54 @@ fun uniffi_iota_sdk_ffi_fn_constructor_identifier_new(`identifier`: RustBuffer.B
): Pointer
fun uniffi_iota_sdk_ffi_fn_method_identifier_as_str(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
): RustBuffer.ByValue
+fun uniffi_iota_sdk_ffi_fn_clone_input(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): Pointer
+fun uniffi_iota_sdk_ffi_fn_free_input(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): Unit
+fun uniffi_iota_sdk_ffi_fn_constructor_input_new_immutable_or_owned(`objectRef`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
+): Pointer
+fun uniffi_iota_sdk_ffi_fn_constructor_input_new_pure(`value`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
+): Pointer
+fun uniffi_iota_sdk_ffi_fn_constructor_input_new_receiving(`objectRef`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
+): Pointer
+fun uniffi_iota_sdk_ffi_fn_constructor_input_new_shared(`objectId`: Pointer,`initialSharedVersion`: Long,`mutable`: Byte,uniffi_out_err: UniffiRustCallStatus,
+): Pointer
+fun uniffi_iota_sdk_ffi_fn_clone_makemovevector(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): Pointer
+fun uniffi_iota_sdk_ffi_fn_free_makemovevector(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): Unit
+fun uniffi_iota_sdk_ffi_fn_constructor_makemovevector_new(`typeTag`: RustBuffer.ByValue,`elements`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
+): Pointer
+fun uniffi_iota_sdk_ffi_fn_method_makemovevector_elements(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): RustBuffer.ByValue
+fun uniffi_iota_sdk_ffi_fn_method_makemovevector_type_tag(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): RustBuffer.ByValue
+fun uniffi_iota_sdk_ffi_fn_clone_mergecoins(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): Pointer
+fun uniffi_iota_sdk_ffi_fn_free_mergecoins(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): Unit
+fun uniffi_iota_sdk_ffi_fn_constructor_mergecoins_new(`coin`: Pointer,`coinsToMerge`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
+): Pointer
+fun uniffi_iota_sdk_ffi_fn_method_mergecoins_coin(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): Pointer
+fun uniffi_iota_sdk_ffi_fn_method_mergecoins_coins_to_merge(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): RustBuffer.ByValue
+fun uniffi_iota_sdk_ffi_fn_clone_movecall(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): Pointer
+fun uniffi_iota_sdk_ffi_fn_free_movecall(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): Unit
+fun uniffi_iota_sdk_ffi_fn_constructor_movecall_new(`package`: Pointer,`module`: Pointer,`function`: Pointer,`typeArguments`: RustBuffer.ByValue,`arguments`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
+): Pointer
+fun uniffi_iota_sdk_ffi_fn_method_movecall_arguments(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): RustBuffer.ByValue
+fun uniffi_iota_sdk_ffi_fn_method_movecall_function(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): Pointer
+fun uniffi_iota_sdk_ffi_fn_method_movecall_module(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): Pointer
+fun uniffi_iota_sdk_ffi_fn_method_movecall_package(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): Pointer
+fun uniffi_iota_sdk_ffi_fn_method_movecall_type_arguments(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): RustBuffer.ByValue
fun uniffi_iota_sdk_ffi_fn_clone_movepackage(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
): Pointer
fun uniffi_iota_sdk_ffi_fn_free_movepackage(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
@@ -2809,6 +3089,22 @@ fun uniffi_iota_sdk_ffi_fn_clone_programmabletransaction(`ptr`: Pointer,uniffi_o
): Pointer
fun uniffi_iota_sdk_ffi_fn_free_programmabletransaction(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
): Unit
+fun uniffi_iota_sdk_ffi_fn_constructor_programmabletransaction_new(`inputs`: RustBuffer.ByValue,`commands`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
+): Pointer
+fun uniffi_iota_sdk_ffi_fn_method_programmabletransaction_commands(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): RustBuffer.ByValue
+fun uniffi_iota_sdk_ffi_fn_method_programmabletransaction_inputs(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): RustBuffer.ByValue
+fun uniffi_iota_sdk_ffi_fn_clone_publish(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): Pointer
+fun uniffi_iota_sdk_ffi_fn_free_publish(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): Unit
+fun uniffi_iota_sdk_ffi_fn_constructor_publish_new(`modules`: RustBuffer.ByValue,`dependencies`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
+): Pointer
+fun uniffi_iota_sdk_ffi_fn_method_publish_dependencies(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): RustBuffer.ByValue
+fun uniffi_iota_sdk_ffi_fn_method_publish_modules(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): RustBuffer.ByValue
fun uniffi_iota_sdk_ffi_fn_clone_randomnessstateupdate(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
): Pointer
fun uniffi_iota_sdk_ffi_fn_free_randomnessstateupdate(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
@@ -2899,6 +3195,16 @@ fun uniffi_iota_sdk_ffi_fn_method_simplesignature_secp256r1_sig_opt(`ptr`: Point
): RustBuffer.ByValue
fun uniffi_iota_sdk_ffi_fn_method_simplesignature_to_bytes(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
): RustBuffer.ByValue
+fun uniffi_iota_sdk_ffi_fn_clone_splitcoins(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): Pointer
+fun uniffi_iota_sdk_ffi_fn_free_splitcoins(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): Unit
+fun uniffi_iota_sdk_ffi_fn_constructor_splitcoins_new(`coin`: Pointer,`amounts`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
+): Pointer
+fun uniffi_iota_sdk_ffi_fn_method_splitcoins_amounts(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): RustBuffer.ByValue
+fun uniffi_iota_sdk_ffi_fn_method_splitcoins_coin(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): Pointer
fun uniffi_iota_sdk_ffi_fn_clone_structtag(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
): Pointer
fun uniffi_iota_sdk_ffi_fn_free_structtag(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
@@ -2999,6 +3305,16 @@ fun uniffi_iota_sdk_ffi_fn_constructor_transactionkind_programmable_transaction(
): Pointer
fun uniffi_iota_sdk_ffi_fn_constructor_transactionkind_randomness_state_update(`tx`: Pointer,uniffi_out_err: UniffiRustCallStatus,
): Pointer
+fun uniffi_iota_sdk_ffi_fn_clone_transferobjects(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): Pointer
+fun uniffi_iota_sdk_ffi_fn_free_transferobjects(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): Unit
+fun uniffi_iota_sdk_ffi_fn_constructor_transferobjects_new(`objects`: RustBuffer.ByValue,`address`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): Pointer
+fun uniffi_iota_sdk_ffi_fn_method_transferobjects_address(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): Pointer
+fun uniffi_iota_sdk_ffi_fn_method_transferobjects_objects(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): RustBuffer.ByValue
fun uniffi_iota_sdk_ffi_fn_clone_typetag(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
): Pointer
fun uniffi_iota_sdk_ffi_fn_free_typetag(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
@@ -3055,6 +3371,20 @@ fun uniffi_iota_sdk_ffi_fn_method_typetag_is_u8(`ptr`: Pointer,uniffi_out_err: U
): Byte
fun uniffi_iota_sdk_ffi_fn_method_typetag_is_vector(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
): Byte
+fun uniffi_iota_sdk_ffi_fn_clone_upgrade(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): Pointer
+fun uniffi_iota_sdk_ffi_fn_free_upgrade(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): Unit
+fun uniffi_iota_sdk_ffi_fn_constructor_upgrade_new(`modules`: RustBuffer.ByValue,`dependencies`: RustBuffer.ByValue,`package`: Pointer,`ticket`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): Pointer
+fun uniffi_iota_sdk_ffi_fn_method_upgrade_dependencies(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): RustBuffer.ByValue
+fun uniffi_iota_sdk_ffi_fn_method_upgrade_modules(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): RustBuffer.ByValue
+fun uniffi_iota_sdk_ffi_fn_method_upgrade_package(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): Pointer
+fun uniffi_iota_sdk_ffi_fn_method_upgrade_ticket(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
+): Pointer
fun uniffi_iota_sdk_ffi_fn_clone_usersignature(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
): Pointer
fun uniffi_iota_sdk_ffi_fn_free_usersignature(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
@@ -3273,6 +3603,9 @@ private fun uniffiCheckApiChecksums(lib: IntegrityCheckingUniffiLib) {
if (lib.uniffi_iota_sdk_ffi_checksum_method_address_to_hex() != 22032.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
+ if (lib.uniffi_iota_sdk_ffi_checksum_method_argument_nested() != 44576.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
if (lib.uniffi_iota_sdk_ffi_checksum_method_bls12381publickey_to_bytes() != 9890.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
@@ -3480,6 +3813,33 @@ private fun uniffiCheckApiChecksums(lib: IntegrityCheckingUniffiLib) {
if (lib.uniffi_iota_sdk_ffi_checksum_method_identifier_as_str() != 63815.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
+ if (lib.uniffi_iota_sdk_ffi_checksum_method_makemovevector_elements() != 20773.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
+ if (lib.uniffi_iota_sdk_ffi_checksum_method_makemovevector_type_tag() != 31154.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
+ if (lib.uniffi_iota_sdk_ffi_checksum_method_mergecoins_coin() != 38884.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
+ if (lib.uniffi_iota_sdk_ffi_checksum_method_mergecoins_coins_to_merge() != 44350.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
+ if (lib.uniffi_iota_sdk_ffi_checksum_method_movecall_arguments() != 17202.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
+ if (lib.uniffi_iota_sdk_ffi_checksum_method_movecall_function() != 2751.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
+ if (lib.uniffi_iota_sdk_ffi_checksum_method_movecall_module() != 35106.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
+ if (lib.uniffi_iota_sdk_ffi_checksum_method_movecall_package() != 24481.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
+ if (lib.uniffi_iota_sdk_ffi_checksum_method_movecall_type_arguments() != 46468.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
if (lib.uniffi_iota_sdk_ffi_checksum_method_multisigaggregatedsignature_bitmap() != 41489.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
@@ -3672,6 +4032,18 @@ private fun uniffiCheckApiChecksums(lib: IntegrityCheckingUniffiLib) {
if (lib.uniffi_iota_sdk_ffi_checksum_method_passkeyauthenticator_signature() != 5489.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
+ if (lib.uniffi_iota_sdk_ffi_checksum_method_programmabletransaction_commands() != 49868.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
+ if (lib.uniffi_iota_sdk_ffi_checksum_method_programmabletransaction_inputs() != 25458.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
+ if (lib.uniffi_iota_sdk_ffi_checksum_method_publish_dependencies() != 57311.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
+ if (lib.uniffi_iota_sdk_ffi_checksum_method_publish_modules() != 26011.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
if (lib.uniffi_iota_sdk_ffi_checksum_method_secp256k1publickey_to_bytes() != 49170.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
@@ -3735,6 +4107,12 @@ private fun uniffiCheckApiChecksums(lib: IntegrityCheckingUniffiLib) {
if (lib.uniffi_iota_sdk_ffi_checksum_method_simplesignature_to_bytes() != 28081.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
+ if (lib.uniffi_iota_sdk_ffi_checksum_method_splitcoins_amounts() != 10377.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
+ 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()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
@@ -3780,6 +4158,12 @@ private fun uniffiCheckApiChecksums(lib: IntegrityCheckingUniffiLib) {
if (lib.uniffi_iota_sdk_ffi_checksum_method_transactioneventsdigest_to_bytes() != 6773.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
+ if (lib.uniffi_iota_sdk_ffi_checksum_method_transferobjects_address() != 37833.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
+ if (lib.uniffi_iota_sdk_ffi_checksum_method_transferobjects_objects() != 24154.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
if (lib.uniffi_iota_sdk_ffi_checksum_method_typetag_as_struct_tag() != 1715.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
@@ -3825,6 +4209,18 @@ private fun uniffiCheckApiChecksums(lib: IntegrityCheckingUniffiLib) {
if (lib.uniffi_iota_sdk_ffi_checksum_method_typetag_is_vector() != 49992.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
+ if (lib.uniffi_iota_sdk_ffi_checksum_method_upgrade_dependencies() != 7113.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
+ if (lib.uniffi_iota_sdk_ffi_checksum_method_upgrade_modules() != 62138.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
+ if (lib.uniffi_iota_sdk_ffi_checksum_method_upgrade_package() != 35757.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
+ if (lib.uniffi_iota_sdk_ffi_checksum_method_upgrade_ticket() != 11416.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
if (lib.uniffi_iota_sdk_ffi_checksum_method_usersignature_as_multisig() != 36332.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
@@ -3915,6 +4311,18 @@ private fun uniffiCheckApiChecksums(lib: IntegrityCheckingUniffiLib) {
if (lib.uniffi_iota_sdk_ffi_checksum_constructor_address_generate() != 48865.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
+ if (lib.uniffi_iota_sdk_ffi_checksum_constructor_argument_new_gas() != 14489.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
+ if (lib.uniffi_iota_sdk_ffi_checksum_constructor_argument_new_input() != 33966.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
+ if (lib.uniffi_iota_sdk_ffi_checksum_constructor_argument_new_nested_result() != 57666.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
+ if (lib.uniffi_iota_sdk_ffi_checksum_constructor_argument_new_result() != 44025.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
if (lib.uniffi_iota_sdk_ffi_checksum_constructor_bls12381publickey_from_bytes() != 6069.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
@@ -3969,6 +4377,27 @@ private fun uniffiCheckApiChecksums(lib: IntegrityCheckingUniffiLib) {
if (lib.uniffi_iota_sdk_ffi_checksum_constructor_coin_try_from_object() != 35349.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
+ if (lib.uniffi_iota_sdk_ffi_checksum_constructor_command_new_make_move_vector() != 54610.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
+ if (lib.uniffi_iota_sdk_ffi_checksum_constructor_command_new_merge_coins() != 1888.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
+ if (lib.uniffi_iota_sdk_ffi_checksum_constructor_command_new_move_call() != 23161.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
+ if (lib.uniffi_iota_sdk_ffi_checksum_constructor_command_new_publish() != 7239.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
+ if (lib.uniffi_iota_sdk_ffi_checksum_constructor_command_new_split_coins() != 59484.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
+ if (lib.uniffi_iota_sdk_ffi_checksum_constructor_command_new_transfer_objects() != 54265.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
+ if (lib.uniffi_iota_sdk_ffi_checksum_constructor_command_new_upgrade() != 48835.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
if (lib.uniffi_iota_sdk_ffi_checksum_constructor_consensuscommitdigest_from_base58() != 17742.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
@@ -4056,6 +4485,27 @@ private fun uniffiCheckApiChecksums(lib: IntegrityCheckingUniffiLib) {
if (lib.uniffi_iota_sdk_ffi_checksum_constructor_identifier_new() != 9398.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
+ if (lib.uniffi_iota_sdk_ffi_checksum_constructor_input_new_immutable_or_owned() != 33908.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
+ if (lib.uniffi_iota_sdk_ffi_checksum_constructor_input_new_pure() != 53404.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
+ if (lib.uniffi_iota_sdk_ffi_checksum_constructor_input_new_receiving() != 28060.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
+ if (lib.uniffi_iota_sdk_ffi_checksum_constructor_input_new_shared() != 61970.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
+ if (lib.uniffi_iota_sdk_ffi_checksum_constructor_makemovevector_new() != 20934.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
+ if (lib.uniffi_iota_sdk_ffi_checksum_constructor_mergecoins_new() != 1506.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
+ if (lib.uniffi_iota_sdk_ffi_checksum_constructor_movecall_new() != 30411.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
if (lib.uniffi_iota_sdk_ffi_checksum_constructor_movepackage_new() != 17506.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
@@ -4110,6 +4560,12 @@ private fun uniffiCheckApiChecksums(lib: IntegrityCheckingUniffiLib) {
if (lib.uniffi_iota_sdk_ffi_checksum_constructor_owner_new_shared() != 36753.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
+ if (lib.uniffi_iota_sdk_ffi_checksum_constructor_programmabletransaction_new() != 38638.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
+ if (lib.uniffi_iota_sdk_ffi_checksum_constructor_publish_new() != 4785.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
if (lib.uniffi_iota_sdk_ffi_checksum_constructor_secp256k1publickey_from_bytes() != 20339.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
@@ -4146,6 +4602,9 @@ private fun uniffiCheckApiChecksums(lib: IntegrityCheckingUniffiLib) {
if (lib.uniffi_iota_sdk_ffi_checksum_constructor_secp256r1signature_generate() != 40260.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
+ if (lib.uniffi_iota_sdk_ffi_checksum_constructor_splitcoins_new() != 50321.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
if (lib.uniffi_iota_sdk_ffi_checksum_constructor_structtag_coin() != 13756.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
@@ -4209,6 +4668,9 @@ private fun uniffiCheckApiChecksums(lib: IntegrityCheckingUniffiLib) {
if (lib.uniffi_iota_sdk_ffi_checksum_constructor_transactionkind_randomness_state_update() != 45772.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
+ if (lib.uniffi_iota_sdk_ffi_checksum_constructor_transferobjects_new() != 22470.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
if (lib.uniffi_iota_sdk_ffi_checksum_constructor_typetag_address() != 44901.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
@@ -4242,6 +4704,9 @@ private fun uniffiCheckApiChecksums(lib: IntegrityCheckingUniffiLib) {
if (lib.uniffi_iota_sdk_ffi_checksum_constructor_typetag_vector() != 46548.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
+ if (lib.uniffi_iota_sdk_ffi_checksum_constructor_upgrade_new() != 61663.toShort()) {
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
+ }
if (lib.uniffi_iota_sdk_ffi_checksum_constructor_usersignature_from_base64() != 8029.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
@@ -5172,12 +5637,56 @@ public object FfiConverterTypeAddress: FfiConverter
{
//
-public interface AuthenticatorStateExpireInterface {
+/**
+ * An argument to a programmable transaction command
+ *
+ * # BCS
+ *
+ * The BCS serialized form for this type is defined by the following ABNF:
+ *
+ * ```text
+ * argument = argument-gas
+ * =/ argument-input
+ * =/ argument-result
+ * =/ argument-nested-result
+ *
+ * argument-gas = %x00
+ * argument-input = %x01 u16
+ * argument-result = %x02 u16
+ * argument-nested-result = %x03 u16 u16
+ * ```
+ */
+public interface ArgumentInterface {
+
+ /**
+ * Turn a Result into a NestedResult. If the argument is not a Result,
+ * returns None.
+ */
+ fun `nested`(`ix`: kotlin.UShort): Argument?
companion object
}
-open class AuthenticatorStateExpire: Disposable, AutoCloseable, AuthenticatorStateExpireInterface
+/**
+ * An argument to a programmable transaction command
+ *
+ * # BCS
+ *
+ * The BCS serialized form for this type is defined by the following ABNF:
+ *
+ * ```text
+ * argument = argument-gas
+ * =/ argument-input
+ * =/ argument-result
+ * =/ argument-nested-result
+ *
+ * argument-gas = %x00
+ * argument-input = %x01 u16
+ * argument-result = %x02 u16
+ * argument-nested-result = %x03 u16 u16
+ * ```
+ */
+open class Argument: Disposable, AutoCloseable, ArgumentInterface
{
constructor(pointer: Pointer) {
@@ -5247,7 +5756,7 @@ open class AuthenticatorStateExpire: Disposable, AutoCloseable, AuthenticatorSta
override fun run() {
pointer?.let { ptr ->
uniffiRustCall { status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_free_authenticatorstateexpire(ptr, status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_free_argument(ptr, status)
}
}
}
@@ -5255,40 +5764,113 @@ open class AuthenticatorStateExpire: Disposable, AutoCloseable, AuthenticatorSta
fun uniffiClonePointer(): Pointer {
return uniffiRustCall() { status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_clone_authenticatorstateexpire(pointer!!, status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_clone_argument(pointer!!, status)
}
}
+ /**
+ * Turn a Result into a NestedResult. If the argument is not a Result,
+ * returns None.
+ */override fun `nested`(`ix`: kotlin.UShort): Argument? {
+ return FfiConverterOptionalTypeArgument.lift(
+ callWithPointer {
+ uniffiRustCall() { _status ->
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_argument_nested(
+ it, FfiConverterUShort.lower(`ix`),_status)
+}
+ }
+ )
+ }
+
+
- companion object
+ companion object {
+
+ /**
+ * The gas coin. The gas coin can only be used by-ref, except for with
+ * `TransferObjects`, which can use it by-value.
+ */ fun `newGas`(): Argument {
+ return FfiConverterTypeArgument.lift(
+ uniffiRustCall() { _status ->
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_argument_new_gas(
+ _status)
+}
+ )
+ }
+
+
+
+ /**
+ * One of the input objects or primitive values (from
+ * `ProgrammableTransaction` inputs)
+ */ fun `newInput`(`input`: kotlin.UShort): Argument {
+ return FfiConverterTypeArgument.lift(
+ uniffiRustCall() { _status ->
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_argument_new_input(
+ FfiConverterUShort.lower(`input`),_status)
+}
+ )
+ }
+
+
+
+ /**
+ * Like a `Result` but it accesses a nested result. Currently, the only
+ * usage of this is to access a value from a Move call with multiple
+ * return values.
+ */ fun `newNestedResult`(`commandIndex`: kotlin.UShort, `subresultIndex`: kotlin.UShort): Argument {
+ return FfiConverterTypeArgument.lift(
+ uniffiRustCall() { _status ->
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_argument_new_nested_result(
+ FfiConverterUShort.lower(`commandIndex`),FfiConverterUShort.lower(`subresultIndex`),_status)
+}
+ )
+ }
+
+
+
+ /**
+ * The result of another command (from `ProgrammableTransaction` commands)
+ */ fun `newResult`(`result`: kotlin.UShort): Argument {
+ return FfiConverterTypeArgument.lift(
+ uniffiRustCall() { _status ->
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_argument_new_result(
+ FfiConverterUShort.lower(`result`),_status)
+}
+ )
+ }
+
+
+
+ }
}
/**
* @suppress
*/
-public object FfiConverterTypeAuthenticatorStateExpire: FfiConverter {
+public object FfiConverterTypeArgument: FfiConverter {
- override fun lower(value: AuthenticatorStateExpire): Pointer {
+ override fun lower(value: Argument): Pointer {
return value.uniffiClonePointer()
}
- override fun lift(value: Pointer): AuthenticatorStateExpire {
- return AuthenticatorStateExpire(value)
+ override fun lift(value: Pointer): Argument {
+ return Argument(value)
}
- override fun read(buf: ByteBuffer): AuthenticatorStateExpire {
+ override fun read(buf: ByteBuffer): Argument {
// The Rust code always writes pointers as 8 bytes, and will
// fail to compile if they don't fit.
return lift(Pointer(buf.getLong()))
}
- override fun allocationSize(value: AuthenticatorStateExpire) = 8UL
+ override fun allocationSize(value: Argument) = 8UL
- override fun write(value: AuthenticatorStateExpire, buf: ByteBuffer) {
+ override fun write(value: Argument, buf: ByteBuffer) {
// The Rust code always expects pointers written as 8 bytes,
// and will fail to compile if they don't fit.
buf.putLong(Pointer.nativeValue(lower(value)))
@@ -5394,12 +5976,12 @@ public object FfiConverterTypeAuthenticatorStateExpire: FfiConverter
uniffiRustCall { status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_free_authenticatorstateupdatev1(ptr, status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_free_authenticatorstateexpire(ptr, status)
}
}
}
@@ -5477,7 +6059,7 @@ open class AuthenticatorStateUpdateV1: Disposable, AutoCloseable, AuthenticatorS
fun uniffiClonePointer(): Pointer {
return uniffiRustCall() { status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_clone_authenticatorstateupdatev1(pointer!!, status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_clone_authenticatorstateexpire(pointer!!, status)
}
}
@@ -5492,25 +6074,25 @@ open class AuthenticatorStateUpdateV1: Disposable, AutoCloseable, AuthenticatorS
/**
* @suppress
*/
-public object FfiConverterTypeAuthenticatorStateUpdateV1: FfiConverter {
+public object FfiConverterTypeAuthenticatorStateExpire: FfiConverter {
- override fun lower(value: AuthenticatorStateUpdateV1): Pointer {
+ override fun lower(value: AuthenticatorStateExpire): Pointer {
return value.uniffiClonePointer()
}
- override fun lift(value: Pointer): AuthenticatorStateUpdateV1 {
- return AuthenticatorStateUpdateV1(value)
+ override fun lift(value: Pointer): AuthenticatorStateExpire {
+ return AuthenticatorStateExpire(value)
}
- override fun read(buf: ByteBuffer): AuthenticatorStateUpdateV1 {
+ override fun read(buf: ByteBuffer): AuthenticatorStateExpire {
// The Rust code always writes pointers as 8 bytes, and will
// fail to compile if they don't fit.
return lift(Pointer(buf.getLong()))
}
- override fun allocationSize(value: AuthenticatorStateUpdateV1) = 8UL
+ override fun allocationSize(value: AuthenticatorStateExpire) = 8UL
- override fun write(value: AuthenticatorStateUpdateV1, buf: ByteBuffer) {
+ override fun write(value: AuthenticatorStateExpire, buf: ByteBuffer) {
// The Rust code always expects pointers written as 8 bytes,
// and will fail to compile if they don't fit.
buf.putLong(Pointer.nativeValue(lower(value)))
@@ -5616,12 +6198,12 @@ public object FfiConverterTypeAuthenticatorStateUpdateV1: FfiConverter
uniffiRustCall { status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_free_batchsendstatus(ptr, status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_free_authenticatorstateupdatev1(ptr, status)
}
}
}
@@ -5699,7 +6281,7 @@ open class BatchSendStatus: Disposable, AutoCloseable, BatchSendStatusInterface
fun uniffiClonePointer(): Pointer {
return uniffiRustCall() { status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_clone_batchsendstatus(pointer!!, status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_clone_authenticatorstateupdatev1(pointer!!, status)
}
}
@@ -5714,25 +6296,25 @@ open class BatchSendStatus: Disposable, AutoCloseable, BatchSendStatusInterface
/**
* @suppress
*/
-public object FfiConverterTypeBatchSendStatus: FfiConverter {
+public object FfiConverterTypeAuthenticatorStateUpdateV1: FfiConverter {
- override fun lower(value: BatchSendStatus): Pointer {
+ override fun lower(value: AuthenticatorStateUpdateV1): Pointer {
return value.uniffiClonePointer()
}
- override fun lift(value: Pointer): BatchSendStatus {
- return BatchSendStatus(value)
+ override fun lift(value: Pointer): AuthenticatorStateUpdateV1 {
+ return AuthenticatorStateUpdateV1(value)
}
- override fun read(buf: ByteBuffer): BatchSendStatus {
+ override fun read(buf: ByteBuffer): AuthenticatorStateUpdateV1 {
// The Rust code always writes pointers as 8 bytes, and will
// fail to compile if they don't fit.
return lift(Pointer(buf.getLong()))
}
- override fun allocationSize(value: BatchSendStatus) = 8UL
+ override fun allocationSize(value: AuthenticatorStateUpdateV1) = 8UL
- override fun write(value: BatchSendStatus, buf: ByteBuffer) {
+ override fun write(value: AuthenticatorStateUpdateV1, buf: ByteBuffer) {
// The Rust code always expects pointers written as 8 bytes,
// and will fail to compile if they don't fit.
buf.putLong(Pointer.nativeValue(lower(value)))
@@ -5838,46 +6420,12 @@ public object FfiConverterTypeBatchSendStatus: FfiConverter
uniffiRustCall { status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_free_bls12381publickey(ptr, status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_free_batchsendstatus(ptr, status)
}
}
}
@@ -5955,85 +6503,40 @@ open class Bls12381PublicKey: Disposable, AutoCloseable, Bls12381PublicKeyInterf
fun uniffiClonePointer(): Pointer {
return uniffiRustCall() { status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_clone_bls12381publickey(pointer!!, status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_clone_batchsendstatus(pointer!!, status)
}
}
- override fun `toBytes`(): kotlin.ByteArray {
- return FfiConverterByteArray.lift(
- callWithPointer {
- uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_bls12381publickey_to_bytes(
- it, _status)
-}
- }
- )
- }
-
-
- companion object {
-
- @Throws(SdkFfiException::class) fun `fromBytes`(`bytes`: kotlin.ByteArray): Bls12381PublicKey {
- return FfiConverterTypeBls12381PublicKey.lift(
- uniffiRustCallWithError(SdkFfiException) { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_bls12381publickey_from_bytes(
- FfiConverterByteArray.lower(`bytes`),_status)
-}
- )
- }
-
-
- @Throws(SdkFfiException::class) fun `fromStr`(`s`: kotlin.String): Bls12381PublicKey {
- return FfiConverterTypeBls12381PublicKey.lift(
- uniffiRustCallWithError(SdkFfiException) { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_bls12381publickey_from_str(
- FfiConverterString.lower(`s`),_status)
-}
- )
- }
-
-
- fun `generate`(): Bls12381PublicKey {
- return FfiConverterTypeBls12381PublicKey.lift(
- uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_bls12381publickey_generate(
- _status)
-}
- )
- }
-
-
-
- }
+ companion object
}
/**
* @suppress
*/
-public object FfiConverterTypeBls12381PublicKey: FfiConverter {
+public object FfiConverterTypeBatchSendStatus: FfiConverter {
- override fun lower(value: Bls12381PublicKey): Pointer {
+ override fun lower(value: BatchSendStatus): Pointer {
return value.uniffiClonePointer()
}
- override fun lift(value: Pointer): Bls12381PublicKey {
- return Bls12381PublicKey(value)
+ override fun lift(value: Pointer): BatchSendStatus {
+ return BatchSendStatus(value)
}
- override fun read(buf: ByteBuffer): Bls12381PublicKey {
+ override fun read(buf: ByteBuffer): BatchSendStatus {
// The Rust code always writes pointers as 8 bytes, and will
// fail to compile if they don't fit.
return lift(Pointer(buf.getLong()))
}
- override fun allocationSize(value: Bls12381PublicKey) = 8UL
+ override fun allocationSize(value: BatchSendStatus) = 8UL
- override fun write(value: Bls12381PublicKey, buf: ByteBuffer) {
+ override fun write(value: BatchSendStatus, buf: ByteBuffer) {
// The Rust code always expects pointers written as 8 bytes,
// and will fail to compile if they don't fit.
buf.putLong(Pointer.nativeValue(lower(value)))
@@ -6155,7 +6658,7 @@ public object FfiConverterTypeBls12381PublicKey: FfiConverter
uniffiRustCall { status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_free_bls12381signature(ptr, status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_free_bls12381publickey(ptr, status)
}
}
}
@@ -6256,7 +6759,7 @@ open class Bls12381Signature: Disposable, AutoCloseable, Bls12381SignatureInterf
fun uniffiClonePointer(): Pointer {
return uniffiRustCall() { status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_clone_bls12381signature(pointer!!, status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_clone_bls12381publickey(pointer!!, status)
}
}
@@ -6264,7 +6767,7 @@ open class Bls12381Signature: Disposable, AutoCloseable, Bls12381SignatureInterf
return FfiConverterByteArray.lift(
callWithPointer {
uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_bls12381signature_to_bytes(
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_bls12381publickey_to_bytes(
it, _status)
}
}
@@ -6277,10 +6780,10 @@ open class Bls12381Signature: Disposable, AutoCloseable, Bls12381SignatureInterf
companion object {
- @Throws(SdkFfiException::class) fun `fromBytes`(`bytes`: kotlin.ByteArray): Bls12381Signature {
- return FfiConverterTypeBls12381Signature.lift(
+ @Throws(SdkFfiException::class) fun `fromBytes`(`bytes`: kotlin.ByteArray): Bls12381PublicKey {
+ return FfiConverterTypeBls12381PublicKey.lift(
uniffiRustCallWithError(SdkFfiException) { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_bls12381signature_from_bytes(
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_bls12381publickey_from_bytes(
FfiConverterByteArray.lower(`bytes`),_status)
}
)
@@ -6288,20 +6791,20 @@ open class Bls12381Signature: Disposable, AutoCloseable, Bls12381SignatureInterf
- @Throws(SdkFfiException::class) fun `fromStr`(`s`: kotlin.String): Bls12381Signature {
- return FfiConverterTypeBls12381Signature.lift(
+ @Throws(SdkFfiException::class) fun `fromStr`(`s`: kotlin.String): Bls12381PublicKey {
+ return FfiConverterTypeBls12381PublicKey.lift(
uniffiRustCallWithError(SdkFfiException) { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_bls12381signature_from_str(
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_bls12381publickey_from_str(
FfiConverterString.lower(`s`),_status)
}
)
}
- fun `generate`(): Bls12381Signature {
- return FfiConverterTypeBls12381Signature.lift(
+ fun `generate`(): Bls12381PublicKey {
+ return FfiConverterTypeBls12381PublicKey.lift(
uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_bls12381signature_generate(
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_bls12381publickey_generate(
_status)
}
)
@@ -6316,25 +6819,25 @@ open class Bls12381Signature: Disposable, AutoCloseable, Bls12381SignatureInterf
/**
* @suppress
*/
-public object FfiConverterTypeBls12381Signature: FfiConverter {
+public object FfiConverterTypeBls12381PublicKey: FfiConverter {
- override fun lower(value: Bls12381Signature): Pointer {
+ override fun lower(value: Bls12381PublicKey): Pointer {
return value.uniffiClonePointer()
}
- override fun lift(value: Pointer): Bls12381Signature {
- return Bls12381Signature(value)
+ override fun lift(value: Pointer): Bls12381PublicKey {
+ return Bls12381PublicKey(value)
}
- override fun read(buf: ByteBuffer): Bls12381Signature {
+ override fun read(buf: ByteBuffer): Bls12381PublicKey {
// The Rust code always writes pointers as 8 bytes, and will
// fail to compile if they don't fit.
return lift(Pointer(buf.getLong()))
}
- override fun allocationSize(value: Bls12381Signature) = 8UL
+ override fun allocationSize(value: Bls12381PublicKey) = 8UL
- override fun write(value: Bls12381Signature, buf: ByteBuffer) {
+ override fun write(value: Bls12381PublicKey, buf: ByteBuffer) {
// The Rust code always expects pointers written as 8 bytes,
// and will fail to compile if they don't fit.
buf.putLong(Pointer.nativeValue(lower(value)))
@@ -6441,45 +6944,45 @@ public object FfiConverterTypeBls12381Signature: FfiConverter
uniffiRustCall { status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_free_bn254fieldelement(ptr, status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_free_bls12381signature(ptr, status)
}
}
}
@@ -6557,27 +7060,15 @@ open class Bn254FieldElement: Disposable, AutoCloseable, Bn254FieldElementInterf
fun uniffiClonePointer(): Pointer {
return uniffiRustCall() { status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_clone_bn254fieldelement(pointer!!, status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_clone_bls12381signature(pointer!!, status)
}
}
- override fun `padded`(): kotlin.ByteArray {
- return FfiConverterByteArray.lift(
- callWithPointer {
- uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_bn254fieldelement_padded(
- it, _status)
-}
- }
- )
- }
-
-
- override fun `unpadded`(): kotlin.ByteArray {
+ override fun `toBytes`(): kotlin.ByteArray {
return FfiConverterByteArray.lift(
callWithPointer {
uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_bn254fieldelement_unpadded(
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_bls12381signature_to_bytes(
it, _status)
}
}
@@ -6590,10 +7081,10 @@ open class Bn254FieldElement: Disposable, AutoCloseable, Bn254FieldElementInterf
companion object {
- @Throws(SdkFfiException::class) fun `fromBytes`(`bytes`: kotlin.ByteArray): Bn254FieldElement {
- return FfiConverterTypeBn254FieldElement.lift(
+ @Throws(SdkFfiException::class) fun `fromBytes`(`bytes`: kotlin.ByteArray): Bls12381Signature {
+ return FfiConverterTypeBls12381Signature.lift(
uniffiRustCallWithError(SdkFfiException) { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_bn254fieldelement_from_bytes(
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_bls12381signature_from_bytes(
FfiConverterByteArray.lower(`bytes`),_status)
}
)
@@ -6601,22 +7092,21 @@ open class Bn254FieldElement: Disposable, AutoCloseable, Bn254FieldElementInterf
- @Throws(SdkFfiException::class) fun `fromStr`(`s`: kotlin.String): Bn254FieldElement {
- return FfiConverterTypeBn254FieldElement.lift(
+ @Throws(SdkFfiException::class) fun `fromStr`(`s`: kotlin.String): Bls12381Signature {
+ return FfiConverterTypeBls12381Signature.lift(
uniffiRustCallWithError(SdkFfiException) { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_bn254fieldelement_from_str(
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_bls12381signature_from_str(
FfiConverterString.lower(`s`),_status)
}
)
}
-
- @Throws(SdkFfiException::class) fun `fromStrRadix10`(`s`: kotlin.String): Bn254FieldElement {
- return FfiConverterTypeBn254FieldElement.lift(
- uniffiRustCallWithError(SdkFfiException) { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_bn254fieldelement_from_str_radix_10(
- FfiConverterString.lower(`s`),_status)
+ fun `generate`(): Bls12381Signature {
+ return FfiConverterTypeBls12381Signature.lift(
+ uniffiRustCall() { _status ->
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_bls12381signature_generate(
+ _status)
}
)
}
@@ -6630,25 +7120,25 @@ open class Bn254FieldElement: Disposable, AutoCloseable, Bn254FieldElementInterf
/**
* @suppress
*/
-public object FfiConverterTypeBn254FieldElement: FfiConverter {
+public object FfiConverterTypeBls12381Signature: FfiConverter {
- override fun lower(value: Bn254FieldElement): Pointer {
+ override fun lower(value: Bls12381Signature): Pointer {
return value.uniffiClonePointer()
}
- override fun lift(value: Pointer): Bn254FieldElement {
- return Bn254FieldElement(value)
+ override fun lift(value: Pointer): Bls12381Signature {
+ return Bls12381Signature(value)
}
- override fun read(buf: ByteBuffer): Bn254FieldElement {
+ override fun read(buf: ByteBuffer): Bls12381Signature {
// The Rust code always writes pointers as 8 bytes, and will
// fail to compile if they don't fit.
return lift(Pointer(buf.getLong()))
}
- override fun allocationSize(value: Bn254FieldElement) = 8UL
+ override fun allocationSize(value: Bls12381Signature) = 8UL
- override fun write(value: Bn254FieldElement, buf: ByteBuffer) {
+ override fun write(value: Bls12381Signature, buf: ByteBuffer) {
// The Rust code always expects pointers written as 8 bytes,
// and will fail to compile if they don't fit.
buf.putLong(Pointer.nativeValue(lower(value)))
@@ -6754,12 +7244,46 @@ public object FfiConverterTypeBn254FieldElement: FfiConverter
uniffiRustCall { status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_free_changeepoch(ptr, status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_free_bn254fieldelement(ptr, status)
}
}
}
@@ -6837,40 +7361,98 @@ open class ChangeEpoch: Disposable, AutoCloseable, ChangeEpochInterface
fun uniffiClonePointer(): Pointer {
return uniffiRustCall() { status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_clone_changeepoch(pointer!!, status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_clone_bn254fieldelement(pointer!!, status)
}
}
+ override fun `padded`(): kotlin.ByteArray {
+ return FfiConverterByteArray.lift(
+ callWithPointer {
+ uniffiRustCall() { _status ->
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_bn254fieldelement_padded(
+ it, _status)
+}
+ }
+ )
+ }
+ override fun `unpadded`(): kotlin.ByteArray {
+ return FfiConverterByteArray.lift(
+ callWithPointer {
+ uniffiRustCall() { _status ->
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_bn254fieldelement_unpadded(
+ it, _status)
+}
+ }
+ )
+ }
+
- companion object
+
+
+ companion object {
+
+ @Throws(SdkFfiException::class) fun `fromBytes`(`bytes`: kotlin.ByteArray): Bn254FieldElement {
+ return FfiConverterTypeBn254FieldElement.lift(
+ uniffiRustCallWithError(SdkFfiException) { _status ->
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_bn254fieldelement_from_bytes(
+ FfiConverterByteArray.lower(`bytes`),_status)
+}
+ )
+ }
+
+
+
+ @Throws(SdkFfiException::class) fun `fromStr`(`s`: kotlin.String): Bn254FieldElement {
+ return FfiConverterTypeBn254FieldElement.lift(
+ uniffiRustCallWithError(SdkFfiException) { _status ->
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_bn254fieldelement_from_str(
+ FfiConverterString.lower(`s`),_status)
+}
+ )
+ }
+
+
+
+ @Throws(SdkFfiException::class) fun `fromStrRadix10`(`s`: kotlin.String): Bn254FieldElement {
+ return FfiConverterTypeBn254FieldElement.lift(
+ uniffiRustCallWithError(SdkFfiException) { _status ->
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_bn254fieldelement_from_str_radix_10(
+ FfiConverterString.lower(`s`),_status)
+}
+ )
+ }
+
+
+
+ }
}
/**
* @suppress
*/
-public object FfiConverterTypeChangeEpoch: FfiConverter {
+public object FfiConverterTypeBn254FieldElement: FfiConverter {
- override fun lower(value: ChangeEpoch): Pointer {
+ override fun lower(value: Bn254FieldElement): Pointer {
return value.uniffiClonePointer()
}
- override fun lift(value: Pointer): ChangeEpoch {
- return ChangeEpoch(value)
+ override fun lift(value: Pointer): Bn254FieldElement {
+ return Bn254FieldElement(value)
}
- override fun read(buf: ByteBuffer): ChangeEpoch {
+ override fun read(buf: ByteBuffer): Bn254FieldElement {
// The Rust code always writes pointers as 8 bytes, and will
// fail to compile if they don't fit.
return lift(Pointer(buf.getLong()))
}
- override fun allocationSize(value: ChangeEpoch) = 8UL
+ override fun allocationSize(value: Bn254FieldElement) = 8UL
- override fun write(value: ChangeEpoch, buf: ByteBuffer) {
+ override fun write(value: Bn254FieldElement, buf: ByteBuffer) {
// The Rust code always expects pointers written as 8 bytes,
// and will fail to compile if they don't fit.
buf.putLong(Pointer.nativeValue(lower(value)))
@@ -6976,12 +7558,12 @@ public object FfiConverterTypeChangeEpoch: FfiConverter {
//
-public interface ChangeEpochV2Interface {
+public interface ChangeEpochInterface {
companion object
}
-open class ChangeEpochV2: Disposable, AutoCloseable, ChangeEpochV2Interface
+open class ChangeEpoch: Disposable, AutoCloseable, ChangeEpochInterface
{
constructor(pointer: Pointer) {
@@ -7051,7 +7633,7 @@ open class ChangeEpochV2: Disposable, AutoCloseable, ChangeEpochV2Interface
override fun run() {
pointer?.let { ptr ->
uniffiRustCall { status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_free_changeepochv2(ptr, status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_free_changeepoch(ptr, status)
}
}
}
@@ -7059,7 +7641,7 @@ open class ChangeEpochV2: Disposable, AutoCloseable, ChangeEpochV2Interface
fun uniffiClonePointer(): Pointer {
return uniffiRustCall() { status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_clone_changeepochv2(pointer!!, status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_clone_changeepoch(pointer!!, status)
}
}
@@ -7074,25 +7656,25 @@ open class ChangeEpochV2: Disposable, AutoCloseable, ChangeEpochV2Interface
/**
* @suppress
*/
-public object FfiConverterTypeChangeEpochV2: FfiConverter {
+public object FfiConverterTypeChangeEpoch: FfiConverter {
- override fun lower(value: ChangeEpochV2): Pointer {
+ override fun lower(value: ChangeEpoch): Pointer {
return value.uniffiClonePointer()
}
- override fun lift(value: Pointer): ChangeEpochV2 {
- return ChangeEpochV2(value)
+ override fun lift(value: Pointer): ChangeEpoch {
+ return ChangeEpoch(value)
}
- override fun read(buf: ByteBuffer): ChangeEpochV2 {
+ override fun read(buf: ByteBuffer): ChangeEpoch {
// The Rust code always writes pointers as 8 bytes, and will
// fail to compile if they don't fit.
return lift(Pointer(buf.getLong()))
}
- override fun allocationSize(value: ChangeEpochV2) = 8UL
+ override fun allocationSize(value: ChangeEpoch) = 8UL
- override fun write(value: ChangeEpochV2, buf: ByteBuffer) {
+ override fun write(value: ChangeEpoch, buf: ByteBuffer) {
// The Rust code always expects pointers written as 8 bytes,
// and will fail to compile if they don't fit.
buf.putLong(Pointer.nativeValue(lower(value)))
@@ -7198,16 +7780,12 @@ public object FfiConverterTypeChangeEpochV2: FfiConverter
uniffiRustCall { status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_free_checkpointcommitment(ptr, status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_free_changeepochv2(ptr, status)
}
}
}
@@ -7285,34 +7863,10 @@ open class CheckpointCommitment: Disposable, AutoCloseable, CheckpointCommitment
fun uniffiClonePointer(): Pointer {
return uniffiRustCall() { status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_clone_checkpointcommitment(pointer!!, status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_clone_changeepochv2(pointer!!, status)
}
}
- override fun `asEcmhLiveObjectSetDigest`(): Digest {
- return FfiConverterTypeDigest.lift(
- callWithPointer {
- uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_checkpointcommitment_as_ecmh_live_object_set_digest(
- it, _status)
-}
- }
- )
- }
-
-
- override fun `isEcmhLiveObjectSet`(): kotlin.Boolean {
- return FfiConverterBoolean.lift(
- callWithPointer {
- uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_checkpointcommitment_is_ecmh_live_object_set(
- it, _status)
-}
- }
- )
- }
-
-
@@ -7324,25 +7878,25 @@ open class CheckpointCommitment: Disposable, AutoCloseable, CheckpointCommitment
/**
* @suppress
*/
-public object FfiConverterTypeCheckpointCommitment: FfiConverter {
+public object FfiConverterTypeChangeEpochV2: FfiConverter {
- override fun lower(value: CheckpointCommitment): Pointer {
+ override fun lower(value: ChangeEpochV2): Pointer {
return value.uniffiClonePointer()
}
- override fun lift(value: Pointer): CheckpointCommitment {
- return CheckpointCommitment(value)
+ override fun lift(value: Pointer): ChangeEpochV2 {
+ return ChangeEpochV2(value)
}
- override fun read(buf: ByteBuffer): CheckpointCommitment {
+ override fun read(buf: ByteBuffer): ChangeEpochV2 {
// The Rust code always writes pointers as 8 bytes, and will
// fail to compile if they don't fit.
return lift(Pointer(buf.getLong()))
}
- override fun allocationSize(value: CheckpointCommitment) = 8UL
+ override fun allocationSize(value: ChangeEpochV2) = 8UL
- override fun write(value: CheckpointCommitment, buf: ByteBuffer) {
+ override fun write(value: ChangeEpochV2, buf: ByteBuffer) {
// The Rust code always expects pointers written as 8 bytes,
// and will fail to compile if they don't fit.
buf.putLong(Pointer.nativeValue(lower(value)))
@@ -7448,16 +8002,16 @@ public object FfiConverterTypeCheckpointCommitment: FfiConverter
uniffiRustCall { status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_free_checkpointcontentsdigest(ptr, status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_free_checkpointcommitment(ptr, status)
}
}
}
@@ -7535,15 +8089,15 @@ open class CheckpointContentsDigest: Disposable, AutoCloseable, CheckpointConten
fun uniffiClonePointer(): Pointer {
return uniffiRustCall() { status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_clone_checkpointcontentsdigest(pointer!!, status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_clone_checkpointcommitment(pointer!!, status)
}
}
- override fun `toBase58`(): kotlin.String {
- return FfiConverterString.lift(
+ override fun `asEcmhLiveObjectSetDigest`(): Digest {
+ return FfiConverterTypeDigest.lift(
callWithPointer {
uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_checkpointcontentsdigest_to_base58(
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_checkpointcommitment_as_ecmh_live_object_set_digest(
it, _status)
}
}
@@ -7551,11 +8105,11 @@ open class CheckpointContentsDigest: Disposable, AutoCloseable, CheckpointConten
}
- override fun `toBytes`(): kotlin.ByteArray {
- return FfiConverterByteArray.lift(
+ override fun `isEcmhLiveObjectSet`(): kotlin.Boolean {
+ return FfiConverterBoolean.lift(
callWithPointer {
uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_checkpointcontentsdigest_to_bytes(
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_checkpointcommitment_is_ecmh_live_object_set(
it, _status)
}
}
@@ -7566,66 +8120,33 @@ open class CheckpointContentsDigest: Disposable, AutoCloseable, CheckpointConten
- companion object {
-
- @Throws(SdkFfiException::class) fun `fromBase58`(`base58`: kotlin.String): CheckpointContentsDigest {
- return FfiConverterTypeCheckpointContentsDigest.lift(
- uniffiRustCallWithError(SdkFfiException) { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_checkpointcontentsdigest_from_base58(
- FfiConverterString.lower(`base58`),_status)
-}
- )
- }
-
-
-
- @Throws(SdkFfiException::class) fun `fromBytes`(`bytes`: kotlin.ByteArray): CheckpointContentsDigest {
- return FfiConverterTypeCheckpointContentsDigest.lift(
- uniffiRustCallWithError(SdkFfiException) { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_checkpointcontentsdigest_from_bytes(
- FfiConverterByteArray.lower(`bytes`),_status)
-}
- )
- }
-
-
- fun `generate`(): CheckpointContentsDigest {
- return FfiConverterTypeCheckpointContentsDigest.lift(
- uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_checkpointcontentsdigest_generate(
- _status)
-}
- )
- }
-
-
- }
+ companion object
}
/**
* @suppress
*/
-public object FfiConverterTypeCheckpointContentsDigest: FfiConverter {
+public object FfiConverterTypeCheckpointCommitment: FfiConverter {
- override fun lower(value: CheckpointContentsDigest): Pointer {
+ override fun lower(value: CheckpointCommitment): Pointer {
return value.uniffiClonePointer()
}
- override fun lift(value: Pointer): CheckpointContentsDigest {
- return CheckpointContentsDigest(value)
+ override fun lift(value: Pointer): CheckpointCommitment {
+ return CheckpointCommitment(value)
}
- override fun read(buf: ByteBuffer): CheckpointContentsDigest {
+ override fun read(buf: ByteBuffer): CheckpointCommitment {
// The Rust code always writes pointers as 8 bytes, and will
// fail to compile if they don't fit.
return lift(Pointer(buf.getLong()))
}
- override fun allocationSize(value: CheckpointContentsDigest) = 8UL
+ override fun allocationSize(value: CheckpointCommitment) = 8UL
- override fun write(value: CheckpointContentsDigest, buf: ByteBuffer) {
+ override fun write(value: CheckpointCommitment, buf: ByteBuffer) {
// The Rust code always expects pointers written as 8 bytes,
// and will fail to compile if they don't fit.
buf.putLong(Pointer.nativeValue(lower(value)))
@@ -7731,7 +8252,7 @@ public object FfiConverterTypeCheckpointContentsDigest: FfiConverter
uniffiRustCall { status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_free_checkpointdigest(ptr, status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_free_checkpointcontentsdigest(ptr, status)
}
}
}
@@ -7818,7 +8339,7 @@ open class CheckpointDigest: Disposable, AutoCloseable, CheckpointDigestInterfac
fun uniffiClonePointer(): Pointer {
return uniffiRustCall() { status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_clone_checkpointdigest(pointer!!, status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_clone_checkpointcontentsdigest(pointer!!, status)
}
}
@@ -7826,7 +8347,7 @@ open class CheckpointDigest: Disposable, AutoCloseable, CheckpointDigestInterfac
return FfiConverterString.lift(
callWithPointer {
uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_checkpointdigest_to_base58(
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_checkpointcontentsdigest_to_base58(
it, _status)
}
}
@@ -7838,7 +8359,7 @@ open class CheckpointDigest: Disposable, AutoCloseable, CheckpointDigestInterfac
return FfiConverterByteArray.lift(
callWithPointer {
uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_checkpointdigest_to_bytes(
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_checkpointcontentsdigest_to_bytes(
it, _status)
}
}
@@ -7851,10 +8372,10 @@ open class CheckpointDigest: Disposable, AutoCloseable, CheckpointDigestInterfac
companion object {
- @Throws(SdkFfiException::class) fun `fromBase58`(`base58`: kotlin.String): CheckpointDigest {
- return FfiConverterTypeCheckpointDigest.lift(
+ @Throws(SdkFfiException::class) fun `fromBase58`(`base58`: kotlin.String): CheckpointContentsDigest {
+ return FfiConverterTypeCheckpointContentsDigest.lift(
uniffiRustCallWithError(SdkFfiException) { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_checkpointdigest_from_base58(
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_checkpointcontentsdigest_from_base58(
FfiConverterString.lower(`base58`),_status)
}
)
@@ -7862,20 +8383,20 @@ open class CheckpointDigest: Disposable, AutoCloseable, CheckpointDigestInterfac
- @Throws(SdkFfiException::class) fun `fromBytes`(`bytes`: kotlin.ByteArray): CheckpointDigest {
- return FfiConverterTypeCheckpointDigest.lift(
+ @Throws(SdkFfiException::class) fun `fromBytes`(`bytes`: kotlin.ByteArray): CheckpointContentsDigest {
+ return FfiConverterTypeCheckpointContentsDigest.lift(
uniffiRustCallWithError(SdkFfiException) { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_checkpointdigest_from_bytes(
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_checkpointcontentsdigest_from_bytes(
FfiConverterByteArray.lower(`bytes`),_status)
}
)
}
- fun `generate`(): CheckpointDigest {
- return FfiConverterTypeCheckpointDigest.lift(
+ fun `generate`(): CheckpointContentsDigest {
+ return FfiConverterTypeCheckpointContentsDigest.lift(
uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_checkpointdigest_generate(
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_checkpointcontentsdigest_generate(
_status)
}
)
@@ -7890,25 +8411,25 @@ open class CheckpointDigest: Disposable, AutoCloseable, CheckpointDigestInterfac
/**
* @suppress
*/
-public object FfiConverterTypeCheckpointDigest: FfiConverter {
+public object FfiConverterTypeCheckpointContentsDigest: FfiConverter {
- override fun lower(value: CheckpointDigest): Pointer {
+ override fun lower(value: CheckpointContentsDigest): Pointer {
return value.uniffiClonePointer()
}
- override fun lift(value: Pointer): CheckpointDigest {
- return CheckpointDigest(value)
+ override fun lift(value: Pointer): CheckpointContentsDigest {
+ return CheckpointContentsDigest(value)
}
- override fun read(buf: ByteBuffer): CheckpointDigest {
+ override fun read(buf: ByteBuffer): CheckpointContentsDigest {
// The Rust code always writes pointers as 8 bytes, and will
// fail to compile if they don't fit.
return lift(Pointer(buf.getLong()))
}
- override fun allocationSize(value: CheckpointDigest) = 8UL
+ override fun allocationSize(value: CheckpointContentsDigest) = 8UL
- override fun write(value: CheckpointDigest, buf: ByteBuffer) {
+ override fun write(value: CheckpointContentsDigest, buf: ByteBuffer) {
// The Rust code always expects pointers written as 8 bytes,
// and will fail to compile if they don't fit.
buf.putLong(Pointer.nativeValue(lower(value)))
@@ -8014,40 +8535,16 @@ public object FfiConverterTypeCheckpointDigest: FfiConverter
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_circomg1_new(
- FfiConverterTypeBn254FieldElement.lower(`el0`),FfiConverterTypeBn254FieldElement.lower(`el1`),FfiConverterTypeBn254FieldElement.lower(`el2`),_status)
-}
- )
protected val pointer: Pointer?
protected val cleanable: UniffiCleaner.Cleanable
@@ -8124,7 +8614,7 @@ open class CircomG1: Disposable, AutoCloseable, CircomG1Interface
override fun run() {
pointer?.let { ptr ->
uniffiRustCall { status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_free_circomg1(ptr, status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_free_checkpointdigest(ptr, status)
}
}
}
@@ -8132,40 +8622,354 @@ open class CircomG1: Disposable, AutoCloseable, CircomG1Interface
fun uniffiClonePointer(): Pointer {
return uniffiRustCall() { status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_clone_circomg1(pointer!!, status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_clone_checkpointdigest(pointer!!, status)
}
}
+ override fun `toBase58`(): kotlin.String {
+ return FfiConverterString.lift(
+ callWithPointer {
+ uniffiRustCall() { _status ->
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_checkpointdigest_to_base58(
+ it, _status)
+}
+ }
+ )
+ }
+ override fun `toBytes`(): kotlin.ByteArray {
+ return FfiConverterByteArray.lift(
+ callWithPointer {
+ uniffiRustCall() { _status ->
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_checkpointdigest_to_bytes(
+ it, _status)
+}
+ }
+ )
+ }
+
- companion object
+
+
+ companion object {
+
+ @Throws(SdkFfiException::class) fun `fromBase58`(`base58`: kotlin.String): CheckpointDigest {
+ return FfiConverterTypeCheckpointDigest.lift(
+ uniffiRustCallWithError(SdkFfiException) { _status ->
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_checkpointdigest_from_base58(
+ FfiConverterString.lower(`base58`),_status)
+}
+ )
+ }
+
+
+
+ @Throws(SdkFfiException::class) fun `fromBytes`(`bytes`: kotlin.ByteArray): CheckpointDigest {
+ return FfiConverterTypeCheckpointDigest.lift(
+ uniffiRustCallWithError(SdkFfiException) { _status ->
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_checkpointdigest_from_bytes(
+ FfiConverterByteArray.lower(`bytes`),_status)
+}
+ )
+ }
+
+
+ fun `generate`(): CheckpointDigest {
+ return FfiConverterTypeCheckpointDigest.lift(
+ uniffiRustCall() { _status ->
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_checkpointdigest_generate(
+ _status)
+}
+ )
+ }
+
+
+
+ }
}
/**
* @suppress
*/
-public object FfiConverterTypeCircomG1: FfiConverter {
+public object FfiConverterTypeCheckpointDigest: FfiConverter {
- override fun lower(value: CircomG1): Pointer {
+ override fun lower(value: CheckpointDigest): Pointer {
return value.uniffiClonePointer()
}
- override fun lift(value: Pointer): CircomG1 {
- return CircomG1(value)
+ override fun lift(value: Pointer): CheckpointDigest {
+ return CheckpointDigest(value)
}
- override fun read(buf: ByteBuffer): CircomG1 {
+ override fun read(buf: ByteBuffer): CheckpointDigest {
// The Rust code always writes pointers as 8 bytes, and will
// fail to compile if they don't fit.
return lift(Pointer(buf.getLong()))
}
- override fun allocationSize(value: CircomG1) = 8UL
+ override fun allocationSize(value: CheckpointDigest) = 8UL
- override fun write(value: CircomG1, buf: ByteBuffer) {
+ override fun write(value: CheckpointDigest, buf: ByteBuffer) {
+ // The Rust code always expects pointers written as 8 bytes,
+ // and will fail to compile if they don't fit.
+ buf.putLong(Pointer.nativeValue(lower(value)))
+ }
+}
+
+
+// This template implements a class for working with a Rust struct via a Pointer/Arc
+// to the live Rust struct on the other side of the FFI.
+//
+// Each instance implements core operations for working with the Rust `Arc` and the
+// Kotlin Pointer to work with the live Rust struct on the other side of the FFI.
+//
+// There's some subtlety here, because we have to be careful not to operate on a Rust
+// struct after it has been dropped, and because we must expose a public API for freeing
+// theq Kotlin wrapper object in lieu of reliable finalizers. The core requirements are:
+//
+// * Each instance holds an opaque pointer to the underlying Rust struct.
+// Method calls need to read this pointer from the object's state and pass it in to
+// the Rust FFI.
+//
+// * When an instance is no longer needed, its pointer should be passed to a
+// special destructor function provided by the Rust FFI, which will drop the
+// underlying Rust struct.
+//
+// * Given an instance, calling code is expected to call the special
+// `destroy` method in order to free it after use, either by calling it explicitly
+// or by using a higher-level helper like the `use` method. Failing to do so risks
+// leaking the underlying Rust struct.
+//
+// * We can't assume that calling code will do the right thing, and must be prepared
+// to handle Kotlin method calls executing concurrently with or even after a call to
+// `destroy`, and to handle multiple (possibly concurrent!) calls to `destroy`.
+//
+// * We must never allow Rust code to operate on the underlying Rust struct after
+// the destructor has been called, and must never call the destructor more than once.
+// Doing so may trigger memory unsafety.
+//
+// * To mitigate many of the risks of leaking memory and use-after-free unsafety, a `Cleaner`
+// is implemented to call the destructor when the Kotlin object becomes unreachable.
+// This is done in a background thread. This is not a panacea, and client code should be aware that
+// 1. the thread may starve if some there are objects that have poorly performing
+// `drop` methods or do significant work in their `drop` methods.
+// 2. the thread is shared across the whole library. This can be tuned by using `android_cleaner = true`,
+// or `android = true` in the [`kotlin` section of the `uniffi.toml` file](https://mozilla.github.io/uniffi-rs/kotlin/configuration.html).
+//
+// If we try to implement this with mutual exclusion on access to the pointer, there is the
+// possibility of a race between a method call and a concurrent call to `destroy`:
+//
+// * Thread A starts a method call, reads the value of the pointer, but is interrupted
+// before it can pass the pointer over the FFI to Rust.
+// * Thread B calls `destroy` and frees the underlying Rust struct.
+// * Thread A resumes, passing the already-read pointer value to Rust and triggering
+// a use-after-free.
+//
+// One possible solution would be to use a `ReadWriteLock`, with each method call taking
+// a read lock (and thus allowed to run concurrently) and the special `destroy` method
+// taking a write lock (and thus blocking on live method calls). However, we aim not to
+// generate methods with any hidden blocking semantics, and a `destroy` method that might
+// block if called incorrectly seems to meet that bar.
+//
+// So, we achieve our goals by giving each instance an associated `AtomicLong` counter to track
+// the number of in-flight method calls, and an `AtomicBoolean` flag to indicate whether `destroy`
+// has been called. These are updated according to the following rules:
+//
+// * The initial value of the counter is 1, indicating a live object with no in-flight calls.
+// The initial value for the flag is false.
+//
+// * At the start of each method call, we atomically check the counter.
+// If it is 0 then the underlying Rust struct has already been destroyed and the call is aborted.
+// If it is nonzero them we atomically increment it by 1 and proceed with the method call.
+//
+// * At the end of each method call, we atomically decrement and check the counter.
+// If it has reached zero then we destroy the underlying Rust struct.
+//
+// * When `destroy` is called, we atomically flip the flag from false to true.
+// If the flag was already true we silently fail.
+// Otherwise we atomically decrement and check the counter.
+// If it has reached zero then we destroy the underlying Rust struct.
+//
+// Astute readers may observe that this all sounds very similar to the way that Rust's `Arc` works,
+// and indeed it is, with the addition of a flag to guard against multiple calls to `destroy`.
+//
+// The overall effect is that the underlying Rust struct is destroyed only when `destroy` has been
+// called *and* all in-flight method calls have completed, avoiding violating any of the expectations
+// of the underlying Rust code.
+//
+// This makes a cleaner a better alternative to _not_ calling `destroy()` as
+// and when the object is finished with, but the abstraction is not perfect: if the Rust object's `drop`
+// method is slow, and/or there are many objects to cleanup, and it's on a low end Android device, then the cleaner
+// thread may be starved, and the app will leak memory.
+//
+// In this case, `destroy`ing manually may be a better solution.
+//
+// The cleaner can live side by side with the manual calling of `destroy`. In the order of responsiveness, uniffi objects
+// with Rust peers are reclaimed:
+//
+// 1. By calling the `destroy` method of the object, which calls `rustObject.free()`. If that doesn't happen:
+// 2. When the object becomes unreachable, AND the Cleaner thread gets to call `rustObject.free()`. If the thread is starved then:
+// 3. The memory is reclaimed when the process terminates.
+//
+// [1] https://stackoverflow.com/questions/24376768/can-java-finalize-an-object-when-it-is-still-in-scope/24380219
+//
+
+
+/**
+ * A G1 point
+ *
+ * This represents the canonical decimal representation of the projective
+ * coordinates in Fq.
+ *
+ * # BCS
+ *
+ * The BCS serialized form for this type is defined by the following ABNF:
+ *
+ * ```text
+ * circom-g1 = %x03 3(bn254-field-element)
+ * ```
+ */
+public interface CircomG1Interface {
+
+ companion object
+}
+
+/**
+ * A G1 point
+ *
+ * This represents the canonical decimal representation of the projective
+ * coordinates in Fq.
+ *
+ * # BCS
+ *
+ * The BCS serialized form for this type is defined by the following ABNF:
+ *
+ * ```text
+ * circom-g1 = %x03 3(bn254-field-element)
+ * ```
+ */
+open class CircomG1: Disposable, AutoCloseable, CircomG1Interface
+{
+
+ constructor(pointer: Pointer) {
+ this.pointer = pointer
+ this.cleanable = UniffiLib.CLEANER.register(this, UniffiCleanAction(pointer))
+ }
+
+ /**
+ * This constructor can be used to instantiate a fake object. Only used for tests. Any
+ * attempt to actually use an object constructed this way will fail as there is no
+ * connected Rust object.
+ */
+ @Suppress("UNUSED_PARAMETER")
+ constructor(noPointer: NoPointer) {
+ this.pointer = null
+ this.cleanable = UniffiLib.CLEANER.register(this, UniffiCleanAction(pointer))
+ }
+ constructor(`el0`: Bn254FieldElement, `el1`: Bn254FieldElement, `el2`: Bn254FieldElement) :
+ this(
+ uniffiRustCall() { _status ->
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_circomg1_new(
+ FfiConverterTypeBn254FieldElement.lower(`el0`),FfiConverterTypeBn254FieldElement.lower(`el1`),FfiConverterTypeBn254FieldElement.lower(`el2`),_status)
+}
+ )
+
+ protected val pointer: Pointer?
+ protected val cleanable: UniffiCleaner.Cleanable
+
+ private val wasDestroyed = AtomicBoolean(false)
+ private val callCounter = AtomicLong(1)
+
+ override fun destroy() {
+ // Only allow a single call to this method.
+ // TODO: maybe we should log a warning if called more than once?
+ if (this.wasDestroyed.compareAndSet(false, true)) {
+ // This decrement always matches the initial count of 1 given at creation time.
+ if (this.callCounter.decrementAndGet() == 0L) {
+ cleanable.clean()
+ }
+ }
+ }
+
+ @Synchronized
+ override fun close() {
+ this.destroy()
+ }
+
+ internal inline fun callWithPointer(block: (ptr: Pointer) -> R): R {
+ // Check and increment the call counter, to keep the object alive.
+ // This needs a compare-and-set retry loop in case of concurrent updates.
+ do {
+ val c = this.callCounter.get()
+ if (c == 0L) {
+ throw IllegalStateException("${this.javaClass.simpleName} object has already been destroyed")
+ }
+ if (c == Long.MAX_VALUE) {
+ throw IllegalStateException("${this.javaClass.simpleName} call counter would overflow")
+ }
+ } while (! this.callCounter.compareAndSet(c, c + 1L))
+ // Now we can safely do the method call without the pointer being freed concurrently.
+ try {
+ return block(this.uniffiClonePointer())
+ } finally {
+ // This decrement always matches the increment we performed above.
+ if (this.callCounter.decrementAndGet() == 0L) {
+ cleanable.clean()
+ }
+ }
+ }
+
+ // Use a static inner class instead of a closure so as not to accidentally
+ // capture `this` as part of the cleanable's action.
+ private class UniffiCleanAction(private val pointer: Pointer?) : Runnable {
+ override fun run() {
+ pointer?.let { ptr ->
+ uniffiRustCall { status ->
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_free_circomg1(ptr, status)
+ }
+ }
+ }
+ }
+
+ fun uniffiClonePointer(): Pointer {
+ return uniffiRustCall() { status ->
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_clone_circomg1(pointer!!, status)
+ }
+ }
+
+
+
+
+
+ companion object
+
+}
+
+/**
+ * @suppress
+ */
+public object FfiConverterTypeCircomG1: FfiConverter {
+
+ override fun lower(value: CircomG1): Pointer {
+ return value.uniffiClonePointer()
+ }
+
+ override fun lift(value: Pointer): CircomG1 {
+ return CircomG1(value)
+ }
+
+ override fun read(buf: ByteBuffer): CircomG1 {
+ // The Rust code always writes pointers as 8 bytes, and will
+ // fail to compile if they don't fit.
+ return lift(Pointer(buf.getLong()))
+ }
+
+ override fun allocationSize(value: CircomG1) = 8UL
+
+ override fun write(value: CircomG1, buf: ByteBuffer) {
// The Rust code always expects pointers written as 8 bytes,
// and will fail to compile if they don't fit.
buf.putLong(Pointer.nativeValue(lower(value)))
@@ -8804,6 +9608,381 @@ public object FfiConverterTypeCoin: FfiConverter {
//
+/**
+ * A single command in a programmable transaction.
+ *
+ * # BCS
+ *
+ * The BCS serialized form for this type is defined by the following ABNF:
+ *
+ * ```text
+ * command = command-move-call
+ * =/ command-transfer-objects
+ * =/ command-split-coins
+ * =/ command-merge-coins
+ * =/ command-publish
+ * =/ command-make-move-vector
+ * =/ command-upgrade
+ *
+ * command-move-call = %x00 move-call
+ * command-transfer-objects = %x01 transfer-objects
+ * command-split-coins = %x02 split-coins
+ * command-merge-coins = %x03 merge-coins
+ * command-publish = %x04 publish
+ * command-make-move-vector = %x05 make-move-vector
+ * command-upgrade = %x06 upgrade
+ * ```
+ */
+public interface CommandInterface {
+
+ companion object
+}
+
+/**
+ * A single command in a programmable transaction.
+ *
+ * # BCS
+ *
+ * The BCS serialized form for this type is defined by the following ABNF:
+ *
+ * ```text
+ * command = command-move-call
+ * =/ command-transfer-objects
+ * =/ command-split-coins
+ * =/ command-merge-coins
+ * =/ command-publish
+ * =/ command-make-move-vector
+ * =/ command-upgrade
+ *
+ * command-move-call = %x00 move-call
+ * command-transfer-objects = %x01 transfer-objects
+ * command-split-coins = %x02 split-coins
+ * command-merge-coins = %x03 merge-coins
+ * command-publish = %x04 publish
+ * command-make-move-vector = %x05 make-move-vector
+ * command-upgrade = %x06 upgrade
+ * ```
+ */
+open class Command: Disposable, AutoCloseable, CommandInterface
+{
+
+ constructor(pointer: Pointer) {
+ this.pointer = pointer
+ this.cleanable = UniffiLib.CLEANER.register(this, UniffiCleanAction(pointer))
+ }
+
+ /**
+ * This constructor can be used to instantiate a fake object. Only used for tests. Any
+ * attempt to actually use an object constructed this way will fail as there is no
+ * connected Rust object.
+ */
+ @Suppress("UNUSED_PARAMETER")
+ constructor(noPointer: NoPointer) {
+ this.pointer = null
+ this.cleanable = UniffiLib.CLEANER.register(this, UniffiCleanAction(pointer))
+ }
+
+ protected val pointer: Pointer?
+ protected val cleanable: UniffiCleaner.Cleanable
+
+ private val wasDestroyed = AtomicBoolean(false)
+ private val callCounter = AtomicLong(1)
+
+ override fun destroy() {
+ // Only allow a single call to this method.
+ // TODO: maybe we should log a warning if called more than once?
+ if (this.wasDestroyed.compareAndSet(false, true)) {
+ // This decrement always matches the initial count of 1 given at creation time.
+ if (this.callCounter.decrementAndGet() == 0L) {
+ cleanable.clean()
+ }
+ }
+ }
+
+ @Synchronized
+ override fun close() {
+ this.destroy()
+ }
+
+ internal inline fun callWithPointer(block: (ptr: Pointer) -> R): R {
+ // Check and increment the call counter, to keep the object alive.
+ // This needs a compare-and-set retry loop in case of concurrent updates.
+ do {
+ val c = this.callCounter.get()
+ if (c == 0L) {
+ throw IllegalStateException("${this.javaClass.simpleName} object has already been destroyed")
+ }
+ if (c == Long.MAX_VALUE) {
+ throw IllegalStateException("${this.javaClass.simpleName} call counter would overflow")
+ }
+ } while (! this.callCounter.compareAndSet(c, c + 1L))
+ // Now we can safely do the method call without the pointer being freed concurrently.
+ try {
+ return block(this.uniffiClonePointer())
+ } finally {
+ // This decrement always matches the increment we performed above.
+ if (this.callCounter.decrementAndGet() == 0L) {
+ cleanable.clean()
+ }
+ }
+ }
+
+ // Use a static inner class instead of a closure so as not to accidentally
+ // capture `this` as part of the cleanable's action.
+ private class UniffiCleanAction(private val pointer: Pointer?) : Runnable {
+ override fun run() {
+ pointer?.let { ptr ->
+ uniffiRustCall { status ->
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_free_command(ptr, status)
+ }
+ }
+ }
+ }
+
+ fun uniffiClonePointer(): Pointer {
+ return uniffiRustCall() { status ->
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_clone_command(pointer!!, status)
+ }
+ }
+
+
+
+
+ companion object {
+
+ /**
+ * Given n-values of the same type, it constructs a vector. For non objects
+ * or an empty vector, the type tag must be specified.
+ */ fun `newMakeMoveVector`(`makeMoveVector`: MakeMoveVector): Command {
+ return FfiConverterTypeCommand.lift(
+ uniffiRustCall() { _status ->
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_command_new_make_move_vector(
+ FfiConverterTypeMakeMoveVector.lower(`makeMoveVector`),_status)
+}
+ )
+ }
+
+
+
+ /**
+ * It merges n-coins into the first coin
+ */ fun `newMergeCoins`(`mergeCoins`: MergeCoins): Command {
+ return FfiConverterTypeCommand.lift(
+ uniffiRustCall() { _status ->
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_command_new_merge_coins(
+ FfiConverterTypeMergeCoins.lower(`mergeCoins`),_status)
+}
+ )
+ }
+
+
+
+ /**
+ * A call to either an entry or a public Move function
+ */ fun `newMoveCall`(`moveCall`: MoveCall): Command {
+ return FfiConverterTypeCommand.lift(
+ uniffiRustCall() { _status ->
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_command_new_move_call(
+ FfiConverterTypeMoveCall.lower(`moveCall`),_status)
+}
+ )
+ }
+
+
+
+ /**
+ * Publishes a Move package. It takes the package bytes and a list of the
+ * package's transitive dependencies to link against on-chain.
+ */ fun `newPublish`(`publish`: Publish): Command {
+ return FfiConverterTypeCommand.lift(
+ uniffiRustCall() { _status ->
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_command_new_publish(
+ FfiConverterTypePublish.lower(`publish`),_status)
+}
+ )
+ }
+
+
+
+ /**
+ * It splits off some amounts into a new coins with those amounts
+ */ fun `newSplitCoins`(`splitCoins`: SplitCoins): Command {
+ return FfiConverterTypeCommand.lift(
+ uniffiRustCall() { _status ->
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_command_new_split_coins(
+ FfiConverterTypeSplitCoins.lower(`splitCoins`),_status)
+}
+ )
+ }
+
+
+
+ /**
+ * It sends n-objects to the specified address. These objects must have
+ * store (public transfer) and either the previous owner must be an
+ * address or the object must be newly created.
+ */ fun `newTransferObjects`(`transferObjects`: TransferObjects): Command {
+ return FfiConverterTypeCommand.lift(
+ uniffiRustCall() { _status ->
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_command_new_transfer_objects(
+ FfiConverterTypeTransferObjects.lower(`transferObjects`),_status)
+}
+ )
+ }
+
+
+
+ /**
+ * Upgrades a Move package
+ * Takes (in order):
+ * 1. A vector of serialized modules for the package.
+ * 2. A vector of object ids for the transitive dependencies of the new
+ * package.
+ * 3. The object ID of the package being upgraded.
+ * 4. An argument holding the `UpgradeTicket` that must have been produced
+ * from an earlier command in the same programmable transaction.
+ */ fun `newUpgrade`(`upgrade`: Upgrade): Command {
+ return FfiConverterTypeCommand.lift(
+ uniffiRustCall() { _status ->
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_command_new_upgrade(
+ FfiConverterTypeUpgrade.lower(`upgrade`),_status)
+}
+ )
+ }
+
+
+
+ }
+
+}
+
+/**
+ * @suppress
+ */
+public object FfiConverterTypeCommand: FfiConverter {
+
+ override fun lower(value: Command): Pointer {
+ return value.uniffiClonePointer()
+ }
+
+ override fun lift(value: Pointer): Command {
+ return Command(value)
+ }
+
+ override fun read(buf: ByteBuffer): Command {
+ // The Rust code always writes pointers as 8 bytes, and will
+ // fail to compile if they don't fit.
+ return lift(Pointer(buf.getLong()))
+ }
+
+ override fun allocationSize(value: Command) = 8UL
+
+ override fun write(value: Command, buf: ByteBuffer) {
+ // The Rust code always expects pointers written as 8 bytes,
+ // and will fail to compile if they don't fit.
+ buf.putLong(Pointer.nativeValue(lower(value)))
+ }
+}
+
+
+// This template implements a class for working with a Rust struct via a Pointer/Arc
+// to the live Rust struct on the other side of the FFI.
+//
+// Each instance implements core operations for working with the Rust `Arc` and the
+// Kotlin Pointer to work with the live Rust struct on the other side of the FFI.
+//
+// There's some subtlety here, because we have to be careful not to operate on a Rust
+// struct after it has been dropped, and because we must expose a public API for freeing
+// theq Kotlin wrapper object in lieu of reliable finalizers. The core requirements are:
+//
+// * Each instance holds an opaque pointer to the underlying Rust struct.
+// Method calls need to read this pointer from the object's state and pass it in to
+// the Rust FFI.
+//
+// * When an instance is no longer needed, its pointer should be passed to a
+// special destructor function provided by the Rust FFI, which will drop the
+// underlying Rust struct.
+//
+// * Given an instance, calling code is expected to call the special
+// `destroy` method in order to free it after use, either by calling it explicitly
+// or by using a higher-level helper like the `use` method. Failing to do so risks
+// leaking the underlying Rust struct.
+//
+// * We can't assume that calling code will do the right thing, and must be prepared
+// to handle Kotlin method calls executing concurrently with or even after a call to
+// `destroy`, and to handle multiple (possibly concurrent!) calls to `destroy`.
+//
+// * We must never allow Rust code to operate on the underlying Rust struct after
+// the destructor has been called, and must never call the destructor more than once.
+// Doing so may trigger memory unsafety.
+//
+// * To mitigate many of the risks of leaking memory and use-after-free unsafety, a `Cleaner`
+// is implemented to call the destructor when the Kotlin object becomes unreachable.
+// This is done in a background thread. This is not a panacea, and client code should be aware that
+// 1. the thread may starve if some there are objects that have poorly performing
+// `drop` methods or do significant work in their `drop` methods.
+// 2. the thread is shared across the whole library. This can be tuned by using `android_cleaner = true`,
+// or `android = true` in the [`kotlin` section of the `uniffi.toml` file](https://mozilla.github.io/uniffi-rs/kotlin/configuration.html).
+//
+// If we try to implement this with mutual exclusion on access to the pointer, there is the
+// possibility of a race between a method call and a concurrent call to `destroy`:
+//
+// * Thread A starts a method call, reads the value of the pointer, but is interrupted
+// before it can pass the pointer over the FFI to Rust.
+// * Thread B calls `destroy` and frees the underlying Rust struct.
+// * Thread A resumes, passing the already-read pointer value to Rust and triggering
+// a use-after-free.
+//
+// One possible solution would be to use a `ReadWriteLock`, with each method call taking
+// a read lock (and thus allowed to run concurrently) and the special `destroy` method
+// taking a write lock (and thus blocking on live method calls). However, we aim not to
+// generate methods with any hidden blocking semantics, and a `destroy` method that might
+// block if called incorrectly seems to meet that bar.
+//
+// So, we achieve our goals by giving each instance an associated `AtomicLong` counter to track
+// the number of in-flight method calls, and an `AtomicBoolean` flag to indicate whether `destroy`
+// has been called. These are updated according to the following rules:
+//
+// * The initial value of the counter is 1, indicating a live object with no in-flight calls.
+// The initial value for the flag is false.
+//
+// * At the start of each method call, we atomically check the counter.
+// If it is 0 then the underlying Rust struct has already been destroyed and the call is aborted.
+// If it is nonzero them we atomically increment it by 1 and proceed with the method call.
+//
+// * At the end of each method call, we atomically decrement and check the counter.
+// If it has reached zero then we destroy the underlying Rust struct.
+//
+// * When `destroy` is called, we atomically flip the flag from false to true.
+// If the flag was already true we silently fail.
+// Otherwise we atomically decrement and check the counter.
+// If it has reached zero then we destroy the underlying Rust struct.
+//
+// Astute readers may observe that this all sounds very similar to the way that Rust's `Arc` works,
+// and indeed it is, with the addition of a flag to guard against multiple calls to `destroy`.
+//
+// The overall effect is that the underlying Rust struct is destroyed only when `destroy` has been
+// called *and* all in-flight method calls have completed, avoiding violating any of the expectations
+// of the underlying Rust code.
+//
+// This makes a cleaner a better alternative to _not_ calling `destroy()` as
+// and when the object is finished with, but the abstraction is not perfect: if the Rust object's `drop`
+// method is slow, and/or there are many objects to cleanup, and it's on a low end Android device, then the cleaner
+// thread may be starved, and the app will leak memory.
+//
+// In this case, `destroy`ing manually may be a better solution.
+//
+// The cleaner can live side by side with the manual calling of `destroy`. In the order of responsiveness, uniffi objects
+// with Rust peers are reclaimed:
+//
+// 1. By calling the `destroy` method of the object, which calls `rustObject.free()`. If that doesn't happen:
+// 2. When the object becomes unreachable, AND the Cleaner thread gets to call `rustObject.free()`. If the thread is starved then:
+// 3. The memory is reclaimed when the process terminates.
+//
+// [1] https://stackoverflow.com/questions/24376768/can-java-finalize-an-object-when-it-is-still-in-scope/24380219
+//
+
+
public interface ConsensusCommitDigestInterface {
fun `toBase58`(): kotlin.String
@@ -14157,41 +15336,43 @@ public object FfiConverterTypeIdentifier: FfiConverter {
/**
- * A move package
+ * An input to a user transaction
*
* # BCS
*
* The BCS serialized form for this type is defined by the following ABNF:
*
* ```text
- * object-move-package = object-id u64 move-modules type-origin-table linkage-table
+ * input = input-pure / input-immutable-or-owned / input-shared / input-receiving
*
- * move-modules = map (identifier bytes)
- * type-origin-table = vector type-origin
- * linkage-table = map (object-id upgrade-info)
+ * input-pure = %x00 bytes
+ * input-immutable-or-owned = %x01 object-ref
+ * input-shared = %x02 object-id u64 bool
+ * input-receiving = %x04 object-ref
* ```
*/
-public interface MovePackageInterface {
+public interface InputInterface {
companion object
}
/**
- * A move package
+ * An input to a user transaction
*
* # BCS
*
* The BCS serialized form for this type is defined by the following ABNF:
*
* ```text
- * object-move-package = object-id u64 move-modules type-origin-table linkage-table
+ * input = input-pure / input-immutable-or-owned / input-shared / input-receiving
*
- * move-modules = map (identifier bytes)
- * type-origin-table = vector type-origin
- * linkage-table = map (object-id upgrade-info)
+ * input-pure = %x00 bytes
+ * input-immutable-or-owned = %x01 object-ref
+ * input-shared = %x02 object-id u64 bool
+ * input-receiving = %x04 object-ref
* ```
*/
-open class MovePackage: Disposable, AutoCloseable, MovePackageInterface
+open class Input: Disposable, AutoCloseable, InputInterface
{
constructor(pointer: Pointer) {
@@ -14209,13 +15390,6 @@ open class MovePackage: Disposable, AutoCloseable, MovePackageInterface
this.pointer = null
this.cleanable = UniffiLib.CLEANER.register(this, UniffiCleanAction(pointer))
}
- constructor(`id`: ObjectId, `version`: kotlin.ULong, `modules`: Map, `typeOriginTable`: List, `linkageTable`: Map) :
- this(
- uniffiRustCallWithError(SdkFfiException) { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_movepackage_new(
- FfiConverterTypeObjectId.lower(`id`),FfiConverterULong.lower(`version`),FfiConverterMapTypeIdentifierByteArray.lower(`modules`),FfiConverterSequenceTypeTypeOrigin.lower(`typeOriginTable`),FfiConverterMapTypeObjectIdTypeUpgradeInfo.lower(`linkageTable`),_status)
-}
- )
protected val pointer: Pointer?
protected val cleanable: UniffiCleaner.Cleanable
@@ -14268,7 +15442,7 @@ open class MovePackage: Disposable, AutoCloseable, MovePackageInterface
override fun run() {
pointer?.let { ptr ->
uniffiRustCall { status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_free_movepackage(ptr, status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_free_input(ptr, status)
}
}
}
@@ -14276,40 +15450,91 @@ open class MovePackage: Disposable, AutoCloseable, MovePackageInterface
fun uniffiClonePointer(): Pointer {
return uniffiRustCall() { status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_clone_movepackage(pointer!!, status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_clone_input(pointer!!, status)
}
}
+ companion object {
+
+ /**
+ * A move object that is either immutable or address owned
+ */ fun `newImmutableOrOwned`(`objectRef`: ObjectReference): Input {
+ return FfiConverterTypeInput.lift(
+ uniffiRustCall() { _status ->
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_input_new_immutable_or_owned(
+ FfiConverterTypeObjectReference.lower(`objectRef`),_status)
+}
+ )
+ }
- companion object
+
+
+ /**
+ * For normal operations this is required to be a move primitive type and
+ * not contain structs or objects.
+ */ fun `newPure`(`value`: kotlin.ByteArray): Input {
+ return FfiConverterTypeInput.lift(
+ uniffiRustCall() { _status ->
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_input_new_pure(
+ FfiConverterByteArray.lower(`value`),_status)
+}
+ )
+ }
+
+
+ fun `newReceiving`(`objectRef`: ObjectReference): Input {
+ return FfiConverterTypeInput.lift(
+ uniffiRustCall() { _status ->
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_input_new_receiving(
+ FfiConverterTypeObjectReference.lower(`objectRef`),_status)
+}
+ )
+ }
+
+
+
+ /**
+ * A move object whose owner is "Shared"
+ */ fun `newShared`(`objectId`: ObjectId, `initialSharedVersion`: kotlin.ULong, `mutable`: kotlin.Boolean): Input {
+ return FfiConverterTypeInput.lift(
+ uniffiRustCall() { _status ->
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_input_new_shared(
+ FfiConverterTypeObjectId.lower(`objectId`),FfiConverterULong.lower(`initialSharedVersion`),FfiConverterBoolean.lower(`mutable`),_status)
+}
+ )
+ }
+
+
+
+ }
}
/**
* @suppress
*/
-public object FfiConverterTypeMovePackage: FfiConverter {
+public object FfiConverterTypeInput: FfiConverter {
- override fun lower(value: MovePackage): Pointer {
+ override fun lower(value: Input): Pointer {
return value.uniffiClonePointer()
}
- override fun lift(value: Pointer): MovePackage {
- return MovePackage(value)
+ override fun lift(value: Pointer): Input {
+ return Input(value)
}
- override fun read(buf: ByteBuffer): MovePackage {
+ override fun read(buf: ByteBuffer): Input {
// The Rust code always writes pointers as 8 bytes, and will
// fail to compile if they don't fit.
return lift(Pointer(buf.getLong()))
}
- override fun allocationSize(value: MovePackage) = 8UL
+ override fun allocationSize(value: Input) = 8UL
- override fun write(value: MovePackage, buf: ByteBuffer) {
+ override fun write(value: Input, buf: ByteBuffer) {
// The Rust code always expects pointers written as 8 bytes,
// and will fail to compile if they don't fit.
buf.putLong(Pointer.nativeValue(lower(value)))
@@ -14416,78 +15641,46 @@ public object FfiConverterTypeMovePackage: FfiConverter {
/**
- * Aggregated signature from members of a multisig committee.
+ * Command to build a move vector out of a set of individual elements
*
* # BCS
*
* The BCS serialized form for this type is defined by the following ABNF:
*
* ```text
- * multisig-aggregated-signature = (vector multisig-member-signature)
- * u16 ; bitmap
- * multisig-committee
- * ```
- *
- * There is also a legacy encoding for this type defined as:
- *
- * ```text
- * legacy-multisig-aggregated-signature = (vector multisig-member-signature)
- * roaring-bitmap ; bitmap
- * legacy-multisig-committee
- * roaring-bitmap = bytes ; where the contents of the bytes are valid
- * ; according to the serialized spec for
- * ; roaring bitmaps
+ * make-move-vector = (option type-tag) (vector argument)
* ```
- *
- * See [here](https://github.com/RoaringBitmap/RoaringFormatSpec) for the specification for the
- * serialized format of RoaringBitmaps.
*/
-public interface MultisigAggregatedSignatureInterface {
+public interface MakeMoveVectorInterface {
/**
- * The bitmap that indicates which committee members provided their
- * signature.
+ * The set individual elements to build the vector with
*/
- fun `bitmap`(): kotlin.UShort
-
- fun `committee`(): MultisigCommittee
+ fun `elements`(): List
/**
- * The list of signatures from committee members
+ * Type of the individual elements
+ *
+ * This is required to be set when the type can't be inferred, for example
+ * when the set of provided arguments are all pure input values.
*/
- fun `signatures`(): List
+ fun `typeTag`(): TypeTag?
companion object
}
/**
- * Aggregated signature from members of a multisig committee.
+ * Command to build a move vector out of a set of individual elements
*
* # BCS
*
* The BCS serialized form for this type is defined by the following ABNF:
*
* ```text
- * multisig-aggregated-signature = (vector multisig-member-signature)
- * u16 ; bitmap
- * multisig-committee
+ * make-move-vector = (option type-tag) (vector argument)
* ```
- *
- * There is also a legacy encoding for this type defined as:
- *
- * ```text
- * legacy-multisig-aggregated-signature = (vector multisig-member-signature)
- * roaring-bitmap ; bitmap
- * legacy-multisig-committee
- * roaring-bitmap = bytes ; where the contents of the bytes are valid
- * ; according to the serialized spec for
- * ; roaring bitmaps
- * ```
- *
- * See [here](https://github.com/RoaringBitmap/RoaringFormatSpec) for the specification for the
- * serialized format of RoaringBitmaps.
*/
-open class MultisigAggregatedSignature: Disposable, AutoCloseable, MultisigAggregatedSignatureInterface
+open class MakeMoveVector: Disposable, AutoCloseable, MakeMoveVectorInterface
{
constructor(pointer: Pointer) {
@@ -14505,20 +15698,11 @@ open class MultisigAggregatedSignature: Disposable, AutoCloseable, MultisigAggre
this.pointer = null
this.cleanable = UniffiLib.CLEANER.register(this, UniffiCleanAction(pointer))
}
- /**
- * Construct a new aggregated multisig signature.
- *
- * Since the list of signatures doesn't contain sufficient information to
- * identify which committee member provided the signature, it is up to
- * the caller to ensure that the provided signature list is in the same
- * order as it's corresponding member in the provided committee
- * and that it's position in the provided bitmap is set.
- */
- constructor(`committee`: MultisigCommittee, `signatures`: List, `bitmap`: kotlin.UShort) :
+ constructor(`typeTag`: TypeTag?, `elements`: List) :
this(
uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_multisigaggregatedsignature_new(
- FfiConverterTypeMultisigCommittee.lower(`committee`),FfiConverterSequenceTypeMultisigMemberSignature.lower(`signatures`),FfiConverterUShort.lower(`bitmap`),_status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_makemovevector_new(
+ FfiConverterOptionalTypeTypeTag.lower(`typeTag`),FfiConverterSequenceTypeArgument.lower(`elements`),_status)
}
)
@@ -14573,7 +15757,7 @@ open class MultisigAggregatedSignature: Disposable, AutoCloseable, MultisigAggre
override fun run() {
pointer?.let { ptr ->
uniffiRustCall { status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_free_multisigaggregatedsignature(ptr, status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_free_makemovevector(ptr, status)
}
}
}
@@ -14581,31 +15765,18 @@ open class MultisigAggregatedSignature: Disposable, AutoCloseable, MultisigAggre
fun uniffiClonePointer(): Pointer {
return uniffiRustCall() { status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_clone_multisigaggregatedsignature(pointer!!, status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_clone_makemovevector(pointer!!, status)
}
}
/**
- * The bitmap that indicates which committee members provided their
- * signature.
- */override fun `bitmap`(): kotlin.UShort {
- return FfiConverterUShort.lift(
+ * The set individual elements to build the vector with
+ */override fun `elements`(): List {
+ return FfiConverterSequenceTypeArgument.lift(
callWithPointer {
uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_multisigaggregatedsignature_bitmap(
- it, _status)
-}
- }
- )
- }
-
-
- override fun `committee`(): MultisigCommittee {
- return FfiConverterTypeMultisigCommittee.lift(
- callWithPointer {
- uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_multisigaggregatedsignature_committee(
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_makemovevector_elements(
it, _status)
}
}
@@ -14615,12 +15786,15 @@ open class MultisigAggregatedSignature: Disposable, AutoCloseable, MultisigAggre
/**
- * The list of signatures from committee members
- */override fun `signatures`(): List {
- return FfiConverterSequenceTypeMultisigMemberSignature.lift(
+ * Type of the individual elements
+ *
+ * This is required to be set when the type can't be inferred, for example
+ * when the set of provided arguments are all pure input values.
+ */override fun `typeTag`(): TypeTag? {
+ return FfiConverterOptionalTypeTypeTag.lift(
callWithPointer {
uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_multisigaggregatedsignature_signatures(
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_makemovevector_type_tag(
it, _status)
}
}
@@ -14639,25 +15813,25 @@ open class MultisigAggregatedSignature: Disposable, AutoCloseable, MultisigAggre
/**
* @suppress
*/
-public object FfiConverterTypeMultisigAggregatedSignature: FfiConverter {
+public object FfiConverterTypeMakeMoveVector: FfiConverter {
- override fun lower(value: MultisigAggregatedSignature): Pointer {
+ override fun lower(value: MakeMoveVector): Pointer {
return value.uniffiClonePointer()
}
- override fun lift(value: Pointer): MultisigAggregatedSignature {
- return MultisigAggregatedSignature(value)
+ override fun lift(value: Pointer): MakeMoveVector {
+ return MakeMoveVector(value)
}
- override fun read(buf: ByteBuffer): MultisigAggregatedSignature {
+ override fun read(buf: ByteBuffer): MakeMoveVector {
// The Rust code always writes pointers as 8 bytes, and will
// fail to compile if they don't fit.
return lift(Pointer(buf.getLong()))
}
- override fun allocationSize(value: MultisigAggregatedSignature) = 8UL
+ override fun allocationSize(value: MakeMoveVector) = 8UL
- override fun write(value: MultisigAggregatedSignature, buf: ByteBuffer) {
+ override fun write(value: MakeMoveVector, buf: ByteBuffer) {
// The Rust code always expects pointers written as 8 bytes,
// and will fail to compile if they don't fit.
buf.putLong(Pointer.nativeValue(lower(value)))
@@ -14764,89 +15938,45 @@ public object FfiConverterTypeMultisigAggregatedSignature: FfiConverter= threshold`.
+ * Command to merge multiple coins of the same type into a single coin
*
* # BCS
*
* The BCS serialized form for this type is defined by the following ABNF:
*
* ```text
- * multisig-committee = (vector multisig-member)
- * u16 ; threshold
- * ```
- *
- * There is also a legacy encoding for this type defined as:
- *
- * ```text
- * legacy-multisig-committee = (vector legacy-multisig-member)
- * u16 ; threshold
+ * merge-coins = argument (vector argument)
* ```
*/
-public interface MultisigCommitteeInterface {
+public interface MergeCoinsInterface {
/**
- * Checks if the Committee is valid.
- *
- * A valid committee is one that:
- * - Has a nonzero threshold
- * - Has at least one member
- * - Has at most ten members
- * - No member has weight 0
- * - the sum of the weights of all members must be larger than the
- * threshold
- * - contains no duplicate members
+ * Coin to merge coins into
*/
- fun `isValid`(): kotlin.Boolean
+ fun `coin`(): Argument
/**
- * The members of the committee
- */
- fun `members`(): List
-
- /**
- * Return the flag for this signature scheme
- */
- fun `scheme`(): SignatureScheme
-
- /**
- * The total signature weight required to authorize a transaction for the
- * address corresponding to this `MultisigCommittee`.
+ * Set of coins to merge into `coin`
+ *
+ * All listed coins must be of the same type and be the same type as `coin`
*/
- fun `threshold`(): kotlin.UShort
+ fun `coinsToMerge`(): List
companion object
}
/**
- * A multisig committee
- *
- * A `MultisigCommittee` is a set of members who collectively control a single
- * `Address` on the IOTA blockchain. The number of required signautres to
- * authorize the execution of a transaction is determined by
- * `(signature_0_weight + signature_1_weight ..) >= threshold`.
+ * Command to merge multiple coins of the same type into a single coin
*
* # BCS
*
* The BCS serialized form for this type is defined by the following ABNF:
*
* ```text
- * multisig-committee = (vector multisig-member)
- * u16 ; threshold
- * ```
- *
- * There is also a legacy encoding for this type defined as:
- *
- * ```text
- * legacy-multisig-committee = (vector legacy-multisig-member)
- * u16 ; threshold
+ * merge-coins = argument (vector argument)
* ```
*/
-open class MultisigCommittee: Disposable, AutoCloseable, MultisigCommitteeInterface
+open class MergeCoins: Disposable, AutoCloseable, MergeCoinsInterface
{
constructor(pointer: Pointer) {
@@ -14864,18 +15994,11 @@ open class MultisigCommittee: Disposable, AutoCloseable, MultisigCommitteeInterf
this.pointer = null
this.cleanable = UniffiLib.CLEANER.register(this, UniffiCleanAction(pointer))
}
- /**
- * Construct a new committee from a list of `MultisigMember`s and a
- * `threshold`.
- *
- * Note that the order of the members is significant towards deriving the
- * `Address` governed by this committee.
- */
- constructor(`members`: List, `threshold`: kotlin.UShort) :
+ constructor(`coin`: Argument, `coinsToMerge`: List) :
this(
uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_multisigcommittee_new(
- FfiConverterSequenceTypeMultisigMember.lower(`members`),FfiConverterUShort.lower(`threshold`),_status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_mergecoins_new(
+ FfiConverterTypeArgument.lower(`coin`),FfiConverterSequenceTypeArgument.lower(`coinsToMerge`),_status)
}
)
@@ -14930,7 +16053,7 @@ open class MultisigCommittee: Disposable, AutoCloseable, MultisigCommitteeInterf
override fun run() {
pointer?.let { ptr ->
uniffiRustCall { status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_free_multisigcommittee(ptr, status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_free_mergecoins(ptr, status)
}
}
}
@@ -14938,27 +16061,18 @@ open class MultisigCommittee: Disposable, AutoCloseable, MultisigCommitteeInterf
fun uniffiClonePointer(): Pointer {
return uniffiRustCall() { status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_clone_multisigcommittee(pointer!!, status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_clone_mergecoins(pointer!!, status)
}
}
/**
- * Checks if the Committee is valid.
- *
- * A valid committee is one that:
- * - Has a nonzero threshold
- * - Has at least one member
- * - Has at most ten members
- * - No member has weight 0
- * - the sum of the weights of all members must be larger than the
- * threshold
- * - contains no duplicate members
- */override fun `isValid`(): kotlin.Boolean {
- return FfiConverterBoolean.lift(
+ * Coin to merge coins into
+ */override fun `coin`(): Argument {
+ return FfiConverterTypeArgument.lift(
callWithPointer {
uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_multisigcommittee_is_valid(
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_mergecoins_coin(
it, _status)
}
}
@@ -14968,43 +16082,14 @@ open class MultisigCommittee: Disposable, AutoCloseable, MultisigCommitteeInterf
/**
- * The members of the committee
- */override fun `members`(): List {
- return FfiConverterSequenceTypeMultisigMember.lift(
- callWithPointer {
- uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_multisigcommittee_members(
- it, _status)
-}
- }
- )
- }
-
-
-
- /**
- * Return the flag for this signature scheme
- */override fun `scheme`(): SignatureScheme {
- return FfiConverterTypeSignatureScheme.lift(
- callWithPointer {
- uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_multisigcommittee_scheme(
- it, _status)
-}
- }
- )
- }
-
-
-
- /**
- * The total signature weight required to authorize a transaction for the
- * address corresponding to this `MultisigCommittee`.
- */override fun `threshold`(): kotlin.UShort {
- return FfiConverterUShort.lift(
+ * Set of coins to merge into `coin`
+ *
+ * All listed coins must be of the same type and be the same type as `coin`
+ */override fun `coinsToMerge`(): List {
+ return FfiConverterSequenceTypeArgument.lift(
callWithPointer {
uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_multisigcommittee_threshold(
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_mergecoins_coins_to_merge(
it, _status)
}
}
@@ -15023,25 +16108,25 @@ open class MultisigCommittee: Disposable, AutoCloseable, MultisigCommitteeInterf
/**
* @suppress
*/
-public object FfiConverterTypeMultisigCommittee: FfiConverter {
+public object FfiConverterTypeMergeCoins: FfiConverter {
- override fun lower(value: MultisigCommittee): Pointer {
+ override fun lower(value: MergeCoins): Pointer {
return value.uniffiClonePointer()
}
- override fun lift(value: Pointer): MultisigCommittee {
- return MultisigCommittee(value)
+ override fun lift(value: Pointer): MergeCoins {
+ return MergeCoins(value)
}
- override fun read(buf: ByteBuffer): MultisigCommittee {
+ override fun read(buf: ByteBuffer): MergeCoins {
// The Rust code always writes pointers as 8 bytes, and will
// fail to compile if they don't fit.
return lift(Pointer(buf.getLong()))
}
- override fun allocationSize(value: MultisigCommittee) = 8UL
+ override fun allocationSize(value: MergeCoins) = 8UL
- override fun write(value: MultisigCommittee, buf: ByteBuffer) {
+ override fun write(value: MergeCoins, buf: ByteBuffer) {
// The Rust code always expects pointers written as 8 bytes,
// and will fail to compile if they don't fit.
buf.putLong(Pointer.nativeValue(lower(value)))
@@ -15148,59 +16233,74 @@ public object FfiConverterTypeMultisigCommittee: FfiConverter
/**
- * Weight of this member's signature.
+ * The function to be called.
*/
- fun `weight`(): kotlin.UByte
+ fun `function`(): Identifier
+
+ /**
+ * The specific module in the package containing the function.
+ */
+ fun `module`(): Identifier
+
+ /**
+ * The package containing the module and function.
+ */
+ fun `package`(): ObjectId
+
+ /**
+ * The type arguments to the function.
+ */
+ fun `typeArguments`(): List
companion object
}
/**
- * A member in a multisig committee
+ * Command to call a move function
+ *
+ * Functions that can be called by a `MoveCall` command are those that have a
+ * function signature that is either `entry` or `public` (which don't have a
+ * reference return type).
*
* # BCS
*
* The BCS serialized form for this type is defined by the following ABNF:
*
* ```text
- * multisig-member = multisig-member-public-key
- * u8 ; weight
- * ```
- *
- * There is also a legacy encoding for this type defined as:
- *
- * ```text
- * legacy-multisig-member = legacy-multisig-member-public-key
- * u8 ; weight
+ * move-call = object-id ; package id
+ * identifier ; module name
+ * identifier ; function name
+ * (vector type-tag) ; type arguments, if any
+ * (vector argument) ; input arguments
* ```
*/
-open class MultisigMember: Disposable, AutoCloseable, MultisigMemberInterface
+open class MoveCall: Disposable, AutoCloseable, MoveCallInterface
{
constructor(pointer: Pointer) {
@@ -15218,14 +16318,11 @@ open class MultisigMember: Disposable, AutoCloseable, MultisigMemberInterface
this.pointer = null
this.cleanable = UniffiLib.CLEANER.register(this, UniffiCleanAction(pointer))
}
- /**
- * Construct a new member from a `MultisigMemberPublicKey` and a `weight`.
- */
- constructor(`publicKey`: MultisigMemberPublicKey, `weight`: kotlin.UByte) :
+ constructor(`package`: ObjectId, `module`: Identifier, `function`: Identifier, `typeArguments`: List, `arguments`: List) :
this(
uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_multisigmember_new(
- FfiConverterTypeMultisigMemberPublicKey.lower(`publicKey`),FfiConverterUByte.lower(`weight`),_status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_movecall_new(
+ FfiConverterTypeObjectId.lower(`package`),FfiConverterTypeIdentifier.lower(`module`),FfiConverterTypeIdentifier.lower(`function`),FfiConverterSequenceTypeTypeTag.lower(`typeArguments`),FfiConverterSequenceTypeArgument.lower(`arguments`),_status)
}
)
@@ -15280,7 +16377,7 @@ open class MultisigMember: Disposable, AutoCloseable, MultisigMemberInterface
override fun run() {
pointer?.let { ptr ->
uniffiRustCall { status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_free_multisigmember(ptr, status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_free_movecall(ptr, status)
}
}
}
@@ -15288,18 +16385,18 @@ open class MultisigMember: Disposable, AutoCloseable, MultisigMemberInterface
fun uniffiClonePointer(): Pointer {
return uniffiRustCall() { status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_clone_multisigmember(pointer!!, status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_clone_movecall(pointer!!, status)
}
}
/**
- * This member's public key.
- */override fun `publicKey`(): MultisigMemberPublicKey {
- return FfiConverterTypeMultisigMemberPublicKey.lift(
+ * The arguments to the function.
+ */override fun `arguments`(): List {
+ return FfiConverterSequenceTypeArgument.lift(
callWithPointer {
uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_multisigmember_public_key(
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_movecall_arguments(
it, _status)
}
}
@@ -15309,12 +16406,57 @@ open class MultisigMember: Disposable, AutoCloseable, MultisigMemberInterface
/**
- * Weight of this member's signature.
- */override fun `weight`(): kotlin.UByte {
- return FfiConverterUByte.lift(
+ * The function to be called.
+ */override fun `function`(): Identifier {
+ return FfiConverterTypeIdentifier.lift(
callWithPointer {
uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_multisigmember_weight(
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_movecall_function(
+ it, _status)
+}
+ }
+ )
+ }
+
+
+
+ /**
+ * The specific module in the package containing the function.
+ */override fun `module`(): Identifier {
+ return FfiConverterTypeIdentifier.lift(
+ callWithPointer {
+ uniffiRustCall() { _status ->
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_movecall_module(
+ it, _status)
+}
+ }
+ )
+ }
+
+
+
+ /**
+ * The package containing the module and function.
+ */override fun `package`(): ObjectId {
+ return FfiConverterTypeObjectId.lift(
+ callWithPointer {
+ uniffiRustCall() { _status ->
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_movecall_package(
+ it, _status)
+}
+ }
+ )
+ }
+
+
+
+ /**
+ * The type arguments to the function.
+ */override fun `typeArguments`(): List {
+ return FfiConverterSequenceTypeTypeTag.lift(
+ callWithPointer {
+ uniffiRustCall() { _status ->
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_movecall_type_arguments(
it, _status)
}
}
@@ -15333,25 +16475,25 @@ open class MultisigMember: Disposable, AutoCloseable, MultisigMemberInterface
/**
* @suppress
*/
-public object FfiConverterTypeMultisigMember: FfiConverter {
+public object FfiConverterTypeMoveCall: FfiConverter {
- override fun lower(value: MultisigMember): Pointer {
+ override fun lower(value: MoveCall): Pointer {
return value.uniffiClonePointer()
}
- override fun lift(value: Pointer): MultisigMember {
- return MultisigMember(value)
+ override fun lift(value: Pointer): MoveCall {
+ return MoveCall(value)
}
- override fun read(buf: ByteBuffer): MultisigMember {
+ override fun read(buf: ByteBuffer): MoveCall {
// The Rust code always writes pointers as 8 bytes, and will
// fail to compile if they don't fit.
return lift(Pointer(buf.getLong()))
}
- override fun allocationSize(value: MultisigMember) = 8UL
+ override fun allocationSize(value: MoveCall) = 8UL
- override fun write(value: MultisigMember, buf: ByteBuffer) {
+ override fun write(value: MoveCall, buf: ByteBuffer) {
// The Rust code always expects pointers written as 8 bytes,
// and will fail to compile if they don't fit.
buf.putLong(Pointer.nativeValue(lower(value)))
@@ -15457,36 +16599,42 @@ public object FfiConverterTypeMultisigMember: FfiConverter, `typeOriginTable`: List, `linkageTable`: Map) :
+ this(
+ uniffiRustCallWithError(SdkFfiException) { _status ->
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_movepackage_new(
+ FfiConverterTypeObjectId.lower(`id`),FfiConverterULong.lower(`version`),FfiConverterMapTypeIdentifierByteArray.lower(`modules`),FfiConverterSequenceTypeTypeOrigin.lower(`typeOriginTable`),FfiConverterMapTypeObjectIdTypeUpgradeInfo.lower(`linkageTable`),_status)
+}
+ )
protected val pointer: Pointer?
protected val cleanable: UniffiCleaner.Cleanable
@@ -15556,7 +16711,7 @@ open class MultisigMemberPublicKey: Disposable, AutoCloseable, MultisigMemberPub
override fun run() {
pointer?.let { ptr ->
uniffiRustCall { status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_free_multisigmemberpublickey(ptr, status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_free_movepackage(ptr, status)
}
}
}
@@ -15564,154 +16719,10 @@ open class MultisigMemberPublicKey: Disposable, AutoCloseable, MultisigMemberPub
fun uniffiClonePointer(): Pointer {
return uniffiRustCall() { status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_clone_multisigmemberpublickey(pointer!!, status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_clone_movepackage(pointer!!, status)
}
}
- override fun `asEd25519`(): Ed25519PublicKey {
- return FfiConverterTypeEd25519PublicKey.lift(
- callWithPointer {
- uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_multisigmemberpublickey_as_ed25519(
- it, _status)
-}
- }
- )
- }
-
-
- override fun `asEd25519Opt`(): Ed25519PublicKey? {
- return FfiConverterOptionalTypeEd25519PublicKey.lift(
- callWithPointer {
- uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_multisigmemberpublickey_as_ed25519_opt(
- it, _status)
-}
- }
- )
- }
-
-
- override fun `asSecp256k1`(): Secp256k1PublicKey {
- return FfiConverterTypeSecp256k1PublicKey.lift(
- callWithPointer {
- uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_multisigmemberpublickey_as_secp256k1(
- it, _status)
-}
- }
- )
- }
-
-
- override fun `asSecp256k1Opt`(): Secp256k1PublicKey? {
- return FfiConverterOptionalTypeSecp256k1PublicKey.lift(
- callWithPointer {
- uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_multisigmemberpublickey_as_secp256k1_opt(
- it, _status)
-}
- }
- )
- }
-
-
- override fun `asSecp256r1`(): Secp256r1PublicKey {
- return FfiConverterTypeSecp256r1PublicKey.lift(
- callWithPointer {
- uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_multisigmemberpublickey_as_secp256r1(
- it, _status)
-}
- }
- )
- }
-
-
- override fun `asSecp256r1Opt`(): Secp256r1PublicKey? {
- return FfiConverterOptionalTypeSecp256r1PublicKey.lift(
- callWithPointer {
- uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_multisigmemberpublickey_as_secp256r1_opt(
- it, _status)
-}
- }
- )
- }
-
-
- override fun `asZklogin`(): ZkLoginPublicIdentifier {
- return FfiConverterTypeZkLoginPublicIdentifier.lift(
- callWithPointer {
- uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_multisigmemberpublickey_as_zklogin(
- it, _status)
-}
- }
- )
- }
-
-
- override fun `asZkloginOpt`(): ZkLoginPublicIdentifier? {
- return FfiConverterOptionalTypeZkLoginPublicIdentifier.lift(
- callWithPointer {
- uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_multisigmemberpublickey_as_zklogin_opt(
- it, _status)
-}
- }
- )
- }
-
-
- override fun `isEd25519`(): kotlin.Boolean {
- return FfiConverterBoolean.lift(
- callWithPointer {
- uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_multisigmemberpublickey_is_ed25519(
- it, _status)
-}
- }
- )
- }
-
-
- override fun `isSecp256k1`(): kotlin.Boolean {
- return FfiConverterBoolean.lift(
- callWithPointer {
- uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_multisigmemberpublickey_is_secp256k1(
- it, _status)
-}
- }
- )
- }
-
-
- override fun `isSecp256r1`(): kotlin.Boolean {
- return FfiConverterBoolean.lift(
- callWithPointer {
- uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_multisigmemberpublickey_is_secp256r1(
- it, _status)
-}
- }
- )
- }
-
-
- override fun `isZklogin`(): kotlin.Boolean {
- return FfiConverterBoolean.lift(
- callWithPointer {
- uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_multisigmemberpublickey_is_zklogin(
- it, _status)
-}
- }
- )
- }
-
-
@@ -15723,25 +16734,25 @@ open class MultisigMemberPublicKey: Disposable, AutoCloseable, MultisigMemberPub
/**
* @suppress
*/
-public object FfiConverterTypeMultisigMemberPublicKey: FfiConverter {
+public object FfiConverterTypeMovePackage: FfiConverter {
- override fun lower(value: MultisigMemberPublicKey): Pointer {
+ override fun lower(value: MovePackage): Pointer {
return value.uniffiClonePointer()
}
- override fun lift(value: Pointer): MultisigMemberPublicKey {
- return MultisigMemberPublicKey(value)
+ override fun lift(value: Pointer): MovePackage {
+ return MovePackage(value)
}
- override fun read(buf: ByteBuffer): MultisigMemberPublicKey {
+ override fun read(buf: ByteBuffer): MovePackage {
// The Rust code always writes pointers as 8 bytes, and will
// fail to compile if they don't fit.
return lift(Pointer(buf.getLong()))
}
- override fun allocationSize(value: MultisigMemberPublicKey) = 8UL
+ override fun allocationSize(value: MovePackage) = 8UL
- override fun write(value: MultisigMemberPublicKey, buf: ByteBuffer) {
+ override fun write(value: MovePackage, buf: ByteBuffer) {
// The Rust code always expects pointers written as 8 bytes,
// and will fail to compile if they don't fit.
buf.putLong(Pointer.nativeValue(lower(value)))
@@ -15848,73 +16859,78 @@ public object FfiConverterTypeMultisigMemberPublicKey: FfiConverter
companion object
}
/**
- * A signature from a member of a multisig committee.
+ * Aggregated signature from members of a multisig committee.
*
* # BCS
*
* The BCS serialized form for this type is defined by the following ABNF:
*
* ```text
- * multisig-member-signature = ed25519-multisig-member-signature /
- * secp256k1-multisig-member-signature /
- * secp256r1-multisig-member-signature /
- * zklogin-multisig-member-signature
+ * multisig-aggregated-signature = (vector multisig-member-signature)
+ * u16 ; bitmap
+ * multisig-committee
+ * ```
*
- * ed25519-multisig-member-signature = %x00 ed25519-signature
- * secp256k1-multisig-member-signature = %x01 secp256k1-signature
- * secp256r1-multisig-member-signature = %x02 secp256r1-signature
- * zklogin-multisig-member-signature = %x03 zklogin-authenticator
+ * There is also a legacy encoding for this type defined as:
+ *
+ * ```text
+ * legacy-multisig-aggregated-signature = (vector multisig-member-signature)
+ * roaring-bitmap ; bitmap
+ * legacy-multisig-committee
+ * roaring-bitmap = bytes ; where the contents of the bytes are valid
+ * ; according to the serialized spec for
+ * ; roaring bitmaps
* ```
+ *
+ * See [here](https://github.com/RoaringBitmap/RoaringFormatSpec) for the specification for the
+ * serialized format of RoaringBitmaps.
*/
-open class MultisigMemberSignature: Disposable, AutoCloseable, MultisigMemberSignatureInterface
+open class MultisigAggregatedSignature: Disposable, AutoCloseable, MultisigAggregatedSignatureInterface
{
constructor(pointer: Pointer) {
@@ -15932,6 +16948,22 @@ open class MultisigMemberSignature: Disposable, AutoCloseable, MultisigMemberSig
this.pointer = null
this.cleanable = UniffiLib.CLEANER.register(this, UniffiCleanAction(pointer))
}
+ /**
+ * Construct a new aggregated multisig signature.
+ *
+ * Since the list of signatures doesn't contain sufficient information to
+ * identify which committee member provided the signature, it is up to
+ * the caller to ensure that the provided signature list is in the same
+ * order as it's corresponding member in the provided committee
+ * and that it's position in the provided bitmap is set.
+ */
+ constructor(`committee`: MultisigCommittee, `signatures`: List, `bitmap`: kotlin.UShort) :
+ this(
+ uniffiRustCall() { _status ->
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_multisigaggregatedsignature_new(
+ FfiConverterTypeMultisigCommittee.lower(`committee`),FfiConverterSequenceTypeMultisigMemberSignature.lower(`signatures`),FfiConverterUShort.lower(`bitmap`),_status)
+}
+ )
protected val pointer: Pointer?
protected val cleanable: UniffiCleaner.Cleanable
@@ -15984,7 +17016,7 @@ open class MultisigMemberSignature: Disposable, AutoCloseable, MultisigMemberSig
override fun run() {
pointer?.let { ptr ->
uniffiRustCall { status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_free_multisigmembersignature(ptr, status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_free_multisigaggregatedsignature(ptr, status)
}
}
}
@@ -15992,27 +17024,19 @@ open class MultisigMemberSignature: Disposable, AutoCloseable, MultisigMemberSig
fun uniffiClonePointer(): Pointer {
return uniffiRustCall() { status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_clone_multisigmembersignature(pointer!!, status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_clone_multisigaggregatedsignature(pointer!!, status)
}
}
- override fun `asEd25519`(): Ed25519Signature {
- return FfiConverterTypeEd25519Signature.lift(
- callWithPointer {
- uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_multisigmembersignature_as_ed25519(
- it, _status)
-}
- }
- )
- }
-
- override fun `asEd25519Opt`(): Ed25519Signature? {
- return FfiConverterOptionalTypeEd25519Signature.lift(
+ /**
+ * The bitmap that indicates which committee members provided their
+ * signature.
+ */override fun `bitmap`(): kotlin.UShort {
+ return FfiConverterUShort.lift(
callWithPointer {
uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_multisigmembersignature_as_ed25519_opt(
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_multisigaggregatedsignature_bitmap(
it, _status)
}
}
@@ -16020,11 +17044,11 @@ open class MultisigMemberSignature: Disposable, AutoCloseable, MultisigMemberSig
}
- override fun `asSecp256k1`(): Secp256k1Signature {
- return FfiConverterTypeSecp256k1Signature.lift(
+ override fun `committee`(): MultisigCommittee {
+ return FfiConverterTypeMultisigCommittee.lift(
callWithPointer {
uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_multisigmembersignature_as_secp256k1(
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_multisigaggregatedsignature_committee(
it, _status)
}
}
@@ -16032,11 +17056,14 @@ open class MultisigMemberSignature: Disposable, AutoCloseable, MultisigMemberSig
}
- override fun `asSecp256k1Opt`(): Secp256k1Signature? {
- return FfiConverterOptionalTypeSecp256k1Signature.lift(
+
+ /**
+ * The list of signatures from committee members
+ */override fun `signatures`(): List {
+ return FfiConverterSequenceTypeMultisigMemberSignature.lift(
callWithPointer {
uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_multisigmembersignature_as_secp256k1_opt(
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_multisigaggregatedsignature_signatures(
it, _status)
}
}
@@ -16044,132 +17071,36 @@ open class MultisigMemberSignature: Disposable, AutoCloseable, MultisigMemberSig
}
- override fun `asSecp256r1`(): Secp256r1Signature {
- return FfiConverterTypeSecp256r1Signature.lift(
- callWithPointer {
- uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_multisigmembersignature_as_secp256r1(
- it, _status)
-}
- }
- )
- }
- override fun `asSecp256r1Opt`(): Secp256r1Signature? {
- return FfiConverterOptionalTypeSecp256r1Signature.lift(
- callWithPointer {
- uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_multisigmembersignature_as_secp256r1_opt(
- it, _status)
+
+
+ companion object
+
}
+
+/**
+ * @suppress
+ */
+public object FfiConverterTypeMultisigAggregatedSignature: FfiConverter {
+
+ override fun lower(value: MultisigAggregatedSignature): Pointer {
+ return value.uniffiClonePointer()
}
- )
- }
-
- override fun `asZklogin`(): ZkLoginAuthenticator {
- return FfiConverterTypeZkLoginAuthenticator.lift(
- callWithPointer {
- uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_multisigmembersignature_as_zklogin(
- it, _status)
-}
+ override fun lift(value: Pointer): MultisigAggregatedSignature {
+ return MultisigAggregatedSignature(value)
}
- )
+
+ override fun read(buf: ByteBuffer): MultisigAggregatedSignature {
+ // The Rust code always writes pointers as 8 bytes, and will
+ // fail to compile if they don't fit.
+ return lift(Pointer(buf.getLong()))
}
-
- override fun `asZkloginOpt`(): ZkLoginAuthenticator? {
- return FfiConverterOptionalTypeZkLoginAuthenticator.lift(
- callWithPointer {
- uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_multisigmembersignature_as_zklogin_opt(
- it, _status)
-}
- }
- )
- }
-
-
- override fun `isEd25519`(): kotlin.Boolean {
- return FfiConverterBoolean.lift(
- callWithPointer {
- uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_multisigmembersignature_is_ed25519(
- it, _status)
-}
- }
- )
- }
-
-
- override fun `isSecp256k1`(): kotlin.Boolean {
- return FfiConverterBoolean.lift(
- callWithPointer {
- uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_multisigmembersignature_is_secp256k1(
- it, _status)
-}
- }
- )
- }
-
-
- override fun `isSecp256r1`(): kotlin.Boolean {
- return FfiConverterBoolean.lift(
- callWithPointer {
- uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_multisigmembersignature_is_secp256r1(
- it, _status)
-}
- }
- )
- }
-
-
- override fun `isZklogin`(): kotlin.Boolean {
- return FfiConverterBoolean.lift(
- callWithPointer {
- uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_multisigmembersignature_is_zklogin(
- it, _status)
-}
- }
- )
- }
-
-
-
-
-
-
- companion object
-
-}
-
-/**
- * @suppress
- */
-public object FfiConverterTypeMultisigMemberSignature: FfiConverter {
-
- override fun lower(value: MultisigMemberSignature): Pointer {
- return value.uniffiClonePointer()
- }
-
- override fun lift(value: Pointer): MultisigMemberSignature {
- return MultisigMemberSignature(value)
- }
-
- override fun read(buf: ByteBuffer): MultisigMemberSignature {
- // The Rust code always writes pointers as 8 bytes, and will
- // fail to compile if they don't fit.
- return lift(Pointer(buf.getLong()))
- }
-
- override fun allocationSize(value: MultisigMemberSignature) = 8UL
+ override fun allocationSize(value: MultisigAggregatedSignature) = 8UL
- override fun write(value: MultisigMemberSignature, buf: ByteBuffer) {
+ override fun write(value: MultisigAggregatedSignature, buf: ByteBuffer) {
// The Rust code always expects pointers written as 8 bytes,
// and will fail to compile if they don't fit.
buf.putLong(Pointer.nativeValue(lower(value)))
@@ -16276,76 +17207,89 @@ public object FfiConverterTypeMultisigMemberSignature: FfiConverter= threshold`.
*
* # BCS
*
* The BCS serialized form for this type is defined by the following ABNF:
*
* ```text
- * object = object-data owner digest u64
+ * multisig-committee = (vector multisig-member)
+ * u16 ; threshold
+ * ```
+ *
+ * There is also a legacy encoding for this type defined as:
+ *
+ * ```text
+ * legacy-multisig-committee = (vector legacy-multisig-member)
+ * u16 ; threshold
* ```
*/
-public interface ObjectInterface {
-
- /**
- * Try to interpret this object as a move struct
- */
- fun `asStruct`(): MoveStruct?
-
- /**
- * Return this object's data
- */
- fun `data`(): ObjectData
-
- /**
- * Return this object's id
- */
- fun `objectId`(): ObjectId
-
- /**
- * Return this object's type
- */
- fun `objectType`(): ObjectType
+public interface MultisigCommitteeInterface {
/**
- * Return this object's owner
+ * Checks if the Committee is valid.
+ *
+ * A valid committee is one that:
+ * - Has a nonzero threshold
+ * - Has at least one member
+ * - Has at most ten members
+ * - No member has weight 0
+ * - the sum of the weights of all members must be larger than the
+ * threshold
+ * - contains no duplicate members
*/
- fun `owner`(): Owner
+ fun `isValid`(): kotlin.Boolean
/**
- * Return the digest of the transaction that last modified this object
+ * The members of the committee
*/
- fun `previousTransaction`(): TransactionDigest
+ fun `members`(): List
/**
- * Return the storage rebate locked in this object
- *
- * Storage rebates are credited to the gas coin used in a transaction that
- * deletes this object.
+ * Return the flag for this signature scheme
*/
- fun `storageRebate`(): kotlin.ULong
+ fun `scheme`(): SignatureScheme
/**
- * Return this object's version
+ * The total signature weight required to authorize a transaction for the
+ * address corresponding to this `MultisigCommittee`.
*/
- fun `version`(): kotlin.ULong
+ fun `threshold`(): kotlin.UShort
companion object
}
/**
- * An object on the IOTA blockchain
+ * A multisig committee
+ *
+ * A `MultisigCommittee` is a set of members who collectively control a single
+ * `Address` on the IOTA blockchain. The number of required signautres to
+ * authorize the execution of a transaction is determined by
+ * `(signature_0_weight + signature_1_weight ..) >= threshold`.
*
* # BCS
*
* The BCS serialized form for this type is defined by the following ABNF:
*
* ```text
- * object = object-data owner digest u64
+ * multisig-committee = (vector multisig-member)
+ * u16 ; threshold
+ * ```
+ *
+ * There is also a legacy encoding for this type defined as:
+ *
+ * ```text
+ * legacy-multisig-committee = (vector legacy-multisig-member)
+ * u16 ; threshold
* ```
*/
-open class Object: Disposable, AutoCloseable, ObjectInterface
+open class MultisigCommittee: Disposable, AutoCloseable, MultisigCommitteeInterface
{
constructor(pointer: Pointer) {
@@ -16363,11 +17307,18 @@ open class Object: Disposable, AutoCloseable, ObjectInterface
this.pointer = null
this.cleanable = UniffiLib.CLEANER.register(this, UniffiCleanAction(pointer))
}
- constructor(`data`: ObjectData, `owner`: Owner, `previousTransaction`: TransactionDigest, `storageRebate`: kotlin.ULong) :
+ /**
+ * Construct a new committee from a list of `MultisigMember`s and a
+ * `threshold`.
+ *
+ * Note that the order of the members is significant towards deriving the
+ * `Address` governed by this committee.
+ */
+ constructor(`members`: List, `threshold`: kotlin.UShort) :
this(
uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_object_new(
- FfiConverterTypeObjectData.lower(`data`),FfiConverterTypeOwner.lower(`owner`),FfiConverterTypeTransactionDigest.lower(`previousTransaction`),FfiConverterULong.lower(`storageRebate`),_status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_constructor_multisigcommittee_new(
+ FfiConverterSequenceTypeMultisigMember.lower(`members`),FfiConverterUShort.lower(`threshold`),_status)
}
)
@@ -16422,7 +17373,7 @@ open class Object: Disposable, AutoCloseable, ObjectInterface
override fun run() {
pointer?.let { ptr ->
uniffiRustCall { status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_free_object(ptr, status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_free_multisigcommittee(ptr, status)
}
}
}
@@ -16430,78 +17381,27 @@ open class Object: Disposable, AutoCloseable, ObjectInterface
fun uniffiClonePointer(): Pointer {
return uniffiRustCall() { status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_clone_object(pointer!!, status)
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_clone_multisigcommittee(pointer!!, status)
}
}
/**
- * Try to interpret this object as a move struct
- */override fun `asStruct`(): MoveStruct? {
- return FfiConverterOptionalTypeMoveStruct.lift(
- callWithPointer {
- uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_object_as_struct(
- it, _status)
-}
- }
- )
- }
-
-
-
- /**
- * Return this object's data
- */override fun `data`(): ObjectData {
- return FfiConverterTypeObjectData.lift(
- callWithPointer {
- uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_object_data(
- it, _status)
-}
- }
- )
- }
-
-
-
- /**
- * Return this object's id
- */override fun `objectId`(): ObjectId {
- return FfiConverterTypeObjectId.lift(
- callWithPointer {
- uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_object_object_id(
- it, _status)
-}
- }
- )
- }
-
-
-
- /**
- * Return this object's type
- */override fun `objectType`(): ObjectType {
- return FfiConverterTypeObjectType.lift(
- callWithPointer {
- uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_object_object_type(
- it, _status)
-}
- }
- )
- }
-
-
-
- /**
- * Return this object's owner
- */override fun `owner`(): Owner {
- return FfiConverterTypeOwner.lift(
+ * Checks if the Committee is valid.
+ *
+ * A valid committee is one that:
+ * - Has a nonzero threshold
+ * - Has at least one member
+ * - Has at most ten members
+ * - No member has weight 0
+ * - the sum of the weights of all members must be larger than the
+ * threshold
+ * - contains no duplicate members
+ */override fun `isValid`(): kotlin.Boolean {
+ return FfiConverterBoolean.lift(
callWithPointer {
uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_object_owner(
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_multisigcommittee_is_valid(
it, _status)
}
}
@@ -16511,12 +17411,12 @@ open class Object: Disposable, AutoCloseable, ObjectInterface
/**
- * Return the digest of the transaction that last modified this object
- */override fun `previousTransaction`(): TransactionDigest {
- return FfiConverterTypeTransactionDigest.lift(
+ * The members of the committee
+ */override fun `members`(): List {
+ return FfiConverterSequenceTypeMultisigMember.lift(
callWithPointer {
uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_object_previous_transaction(
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_multisigcommittee_members(
it, _status)
}
}
@@ -16526,15 +17426,12 @@ open class Object: Disposable, AutoCloseable, ObjectInterface
/**
- * Return the storage rebate locked in this object
- *
- * Storage rebates are credited to the gas coin used in a transaction that
- * deletes this object.
- */override fun `storageRebate`(): kotlin.ULong {
- return FfiConverterULong.lift(
+ * Return the flag for this signature scheme
+ */override fun `scheme`(): SignatureScheme {
+ return FfiConverterTypeSignatureScheme.lift(
callWithPointer {
uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_object_storage_rebate(
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_multisigcommittee_scheme(
it, _status)
}
}
@@ -16544,12 +17441,13 @@ open class Object: Disposable, AutoCloseable, ObjectInterface
/**
- * Return this object's version
- */override fun `version`(): kotlin.ULong {
- return FfiConverterULong.lift(
+ * The total signature weight required to authorize a transaction for the
+ * address corresponding to this `MultisigCommittee`.
+ */override fun `threshold`(): kotlin.UShort {
+ return FfiConverterUShort.lift(
callWithPointer {
uniffiRustCall() { _status ->
- UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_object_version(
+ UniffiLib.INSTANCE.uniffi_iota_sdk_ffi_fn_method_multisigcommittee_threshold(
it, _status)
}
}
@@ -16568,25 +17466,25 @@ open class Object: Disposable, AutoCloseable, ObjectInterface
/**
* @suppress
*/
-public object FfiConverterTypeObject: FfiConverter