[−][src]Function casperlabs_contract::ext_ffi::create_contract_user_group
pub unsafe extern "C" fn create_contract_user_group(
contract_package_hash_ptr: *const u8,
contract_package_hash_size: usize,
label_ptr: *const u8,
label_size: usize,
num_new_urefs: u8,
existing_urefs_ptr: *const u8,
existing_urefs_size: usize,
output_size_ptr: *mut usize
) -> i32
Creates new named contract user group under a contract package.
Arguments
contract_package_hash_ptr
- pointer to serialized contract package hash.contract_package_hash_size
- size of contract package hash in serialized form.label_ptr
- serialized group labellabel_size
- size of serialized group labelnum_new_urefs
- amount of new urefs to be provisioned by hostexisting_urefs_ptr
- serialized list of existingcasperlabs_types::URef
sexisting_urefs_size
- size of serialized list ofcasperlabs_types::URef
soutput_size_ptr
- pointer to a value where a size of list ofcasperlabs_types::URef
s written to host buffer will be set.