[][src]Module casperlabs_contract::contract_api::system

Functions for interacting with the system contracts.

Constants

MINT_NAME

Name of the reference to the Mint contract in the named keys.

POS_NAME

Name of the reference to the Proof of Stake contract in the named keys.

Functions

create_purse

Creates a new empty purse and returns its URef.

get_balance

Returns the balance in motes of the given purse.

get_mint

Returns a read-only pointer to the Mint contract.

get_proof_of_stake

Returns a read-only pointer to the Proof of Stake contract.

get_standard_payment

Returns a read-only pointer to the Standard Payment contract.

transfer_from_purse_to_account

Transfers amount of motes from source purse to target account. If target does not exist it will be created.

transfer_from_purse_to_purse

Transfers amount of motes from source purse to target purse. If target does not exist the transfer fails.

transfer_to_account

Transfers amount of motes from the default purse of the account to target account. If target does not exist it will be created.