[][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 label
  • label_size - size of serialized group label
  • num_new_urefs - amount of new urefs to be provisioned by host
  • existing_urefs_ptr - serialized list of existing casperlabs_types::URefs
  • existing_urefs_size - size of serialized list of casperlabs_types::URefs
  • output_size_ptr - pointer to a value where a size of list of casperlabs_types::URefs written to host buffer will be set.