Function casper_contract::ext_ffi::casper_record_transfer [−][src]
pub unsafe extern "C" fn casper_record_transfer(
maybe_to_ptr: *const u8,
maybe_to_size: usize,
source_ptr: *const u8,
source_size: usize,
target_ptr: *const u8,
target_size: usize,
amount_ptr: *const u8,
amount_size: usize,
id_ptr: *const u8,
id_size: usize
) -> i32
Expand description
Records a transfer. Can only be called from within the mint contract. Needed to support system contract-based execution.
Arguments
maybe_to_ptr
- pointer in wasm memory to bytes representing the recipientOption<AccountHash>
maybe_to_size
- size of the sourceOption<AccountHash>
(in bytes)source_ptr
- pointer in wasm memory to bytes representing the sourceURef
to transfer fromsource_size
- size of the sourceURef
(in bytes)target_ptr
- pointer in wasm memory to bytes representing the targetURef
to transfer totarget_size
- size of the target (in bytes)amount_ptr
- pointer in wasm memory to bytes representing the amount to transfer to the target accountamount_size
- size of the amount (in bytes)id_ptr
- pointer in wasm memory to bytes representing the user-defined transaction idid_size
- size of the id (in bytes)