@@ -470,6 +470,8 @@ def _uniffi_check_contract_api_version(lib):
470470 raise InternalError ("UniFFI contract version mismatch: try cleaning and rebuilding your project" )
471471
472472def _uniffi_check_api_checksums (lib ):
473+ if lib .uniffi_algokit_utils_ffi_checksum_method_composer_add_asset_freeze () != 44087 :
474+ raise InternalError ("UniFFI API checksum mismatch: try cleaning and rebuilding your project" )
473475 if lib .uniffi_algokit_utils_ffi_checksum_method_composer_add_payment () != 9188 :
474476 raise InternalError ("UniFFI API checksum mismatch: try cleaning and rebuilding your project" )
475477 if lib .uniffi_algokit_utils_ffi_checksum_method_composer_build () != 13184 :
@@ -641,6 +643,12 @@ class _UniffiVTableCallbackInterfaceTransactionSignerGetter(ctypes.Structure):
641643 ctypes .POINTER (_UniffiRustCallStatus ),
642644)
643645_UniffiLib .uniffi_algokit_utils_ffi_fn_constructor_composer_new .restype = ctypes .c_void_p
646+ _UniffiLib .uniffi_algokit_utils_ffi_fn_method_composer_add_asset_freeze .argtypes = (
647+ ctypes .c_void_p ,
648+ _UniffiRustBuffer ,
649+ ctypes .POINTER (_UniffiRustCallStatus ),
650+ )
651+ _UniffiLib .uniffi_algokit_utils_ffi_fn_method_composer_add_asset_freeze .restype = None
644652_UniffiLib .uniffi_algokit_utils_ffi_fn_method_composer_add_payment .argtypes = (
645653 ctypes .c_void_p ,
646654 _UniffiRustBuffer ,
@@ -968,6 +976,9 @@ class _UniffiVTableCallbackInterfaceTransactionSignerGetter(ctypes.Structure):
968976 ctypes .POINTER (_UniffiRustCallStatus ),
969977)
970978_UniffiLib .ffi_algokit_utils_ffi_rust_future_complete_void .restype = None
979+ _UniffiLib .uniffi_algokit_utils_ffi_checksum_method_composer_add_asset_freeze .argtypes = (
980+ )
981+ _UniffiLib .uniffi_algokit_utils_ffi_checksum_method_composer_add_asset_freeze .restype = ctypes .c_uint16
971982_UniffiLib .uniffi_algokit_utils_ffi_checksum_method_composer_add_payment .argtypes = (
972983)
973984_UniffiLib .uniffi_algokit_utils_ffi_checksum_method_composer_add_payment .restype = ctypes .c_uint16
@@ -1120,6 +1131,61 @@ def write(value, buf):
11201131
11211132
11221133
1134+ class AssetFreezeParams :
1135+ common_params : "CommonParams"
1136+ """
1137+ Common transaction parameters.
1138+ """
1139+
1140+ asset_id : "int"
1141+ """
1142+ The ID of the asset being frozen.
1143+ """
1144+
1145+ target_address : "str"
1146+ """
1147+ The target account whose asset holdings will be frozen.
1148+ """
1149+
1150+ def __init__ (self , * , common_params : "CommonParams" , asset_id : "int" , target_address : "str" ):
1151+ self .common_params = common_params
1152+ self .asset_id = asset_id
1153+ self .target_address = target_address
1154+
1155+ def __str__ (self ):
1156+ return "AssetFreezeParams(common_params={}, asset_id={}, target_address={})" .format (self .common_params , self .asset_id , self .target_address )
1157+
1158+ def __eq__ (self , other ):
1159+ if self .common_params != other .common_params :
1160+ return False
1161+ if self .asset_id != other .asset_id :
1162+ return False
1163+ if self .target_address != other .target_address :
1164+ return False
1165+ return True
1166+
1167+ class _UniffiConverterTypeAssetFreezeParams (_UniffiConverterRustBuffer ):
1168+ @staticmethod
1169+ def read (buf ):
1170+ return AssetFreezeParams (
1171+ common_params = _UniffiConverterTypeCommonParams .read (buf ),
1172+ asset_id = _UniffiConverterUInt64 .read (buf ),
1173+ target_address = _UniffiConverterString .read (buf ),
1174+ )
1175+
1176+ @staticmethod
1177+ def check_lower (value ):
1178+ _UniffiConverterTypeCommonParams .check_lower (value .common_params )
1179+ _UniffiConverterUInt64 .check_lower (value .asset_id )
1180+ _UniffiConverterString .check_lower (value .target_address )
1181+
1182+ @staticmethod
1183+ def write (value , buf ):
1184+ _UniffiConverterTypeCommonParams .write (value .common_params , buf )
1185+ _UniffiConverterUInt64 .write (value .asset_id , buf )
1186+ _UniffiConverterString .write (value .target_address , buf )
1187+
1188+
11231189class CommonParams :
11241190 sender : "str"
11251191 signer : "typing.Optional[TransactionSigner]"
@@ -1938,6 +2004,8 @@ def read(cls, buf: _UniffiRustBuffer):
19382004 def write (cls , value : AlgodClientProtocol , buf : _UniffiRustBuffer ):
19392005 buf .write_u64 (cls .lower (value ))
19402006class ComposerProtocol (typing .Protocol ):
2007+ def add_asset_freeze (self , params : "AssetFreezeParams" ):
2008+ raise NotImplementedError
19412009 def add_payment (self , params : "PaymentParams" ):
19422010 raise NotImplementedError
19432011 def build (self , ):
@@ -1975,6 +2043,17 @@ def _make_instance_(cls, pointer):
19752043 return inst
19762044
19772045
2046+ def add_asset_freeze (self , params : "AssetFreezeParams" ) -> None :
2047+ _UniffiConverterTypeAssetFreezeParams .check_lower (params )
2048+
2049+ _uniffi_rust_call_with_error (_UniffiConverterTypeUtilsError ,_UniffiLib .uniffi_algokit_utils_ffi_fn_method_composer_add_asset_freeze ,self ._uniffi_clone_pointer (),
2050+ _UniffiConverterTypeAssetFreezeParams .lower (params ))
2051+
2052+
2053+
2054+
2055+
2056+
19782057 def add_payment (self , params : "PaymentParams" ) -> None :
19792058 _UniffiConverterTypePaymentParams .check_lower (params )
19802059
@@ -2174,6 +2253,7 @@ def _uniffi_foreign_future_do_free(task):
21742253__all__ = [
21752254 "InternalError" ,
21762255 "UtilsError" ,
2256+ "AssetFreezeParams" ,
21772257 "CommonParams" ,
21782258 "PaymentParams" ,
21792259 "AlgodClient" ,
0 commit comments