Function casper_contract::ext_ffi::casper_provision_contract_user_group_uref[][src]

pub unsafe extern "C" fn casper_provision_contract_user_group_uref(
    contract_package_hash_ptr: *const u8,
    contract_package_hash_size: usize,
    label_ptr: *const u8,
    label_size: usize,
    value_size_ptr: *const usize
) -> i32
Expand description

Requests host to provision additional casper_types::URef to a specified group identified by its label. Returns standard error code for non-zero value, otherwise zero indicated success.

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
  • value_size_ptr - size of data written to a host buffer will be saved here