[−][src]Module casperlabs_contract::contract_api::storage
Functions for accessing and mutating local and global state.
Functions
add | Adds |
add_contract_version | Add a new version of a contract to the contract stored at the given
|
add_local | Adds |
create_contract_package_at_hash | Create a new (versioned) contract stored under a Key::Hash. Initially there
are no versions; a version must be added via |
create_contract_user_group | Create a new "user group" for a (versioned) contract. User groups associate
a set of URefs with a label. Entry points on a contract can be given a list of
labels they accept and the runtime will check that a URef from at least one
of the allowed groups is present in the caller's context before
execution. This allows access control for entry_points of a contract. This
function returns the list of new URefs created for the group (the list will
contain |
disable_contract_version | Disable a version of a contract from the contract stored at the given
|
new_contract | Create a new contract stored under a Key::Hash at version 1
if |
new_uref | Returns a new unforgeable pointer, where the value is initialized to |
provision_contract_user_group_uref | Extends specified group with a new |
read | Reads value under |
read_local | Reads the value under |
read_or_revert | Reads value under |
remove_contract_user_group | Remove a named group from given contract. |
remove_contract_user_group_urefs | Removes specified urefs from a named group. |
write | Writes |
write_local | Writes |