message: Added named dictionaries to the storage API.
diff: @@ -422,3 +422,27 @@ pub fn dictionary_put<V: CLTyped + ToBytes>(
  result.unwrap_or_revert()
  }
  +
  +fn get_named_uref(name: &str) -> URef {
  + match runtime::get_key(name).unwrap_or_revert_with(ApiError::GetKey) {
  + Key::URef(uref) => uref,
  + _ => revert(ApiError::UnexpectedKeyVariant),
  + }
  +}
  +
  +/// Gets a value out of a named dictionary.
  +pub fn named_dictionary_get<V: CLTyped + FromBytes>(
  + dictionary_name: &str,
  + dictionary_item_key: &str,
  +) -> Result<Option<V>, bytesrepr::Error> {
  + dictionary_get(get_named_uref(dictionary_name), dictionary_item_key)
  +}
  +
  +/// Writes a value in a named dictionary.
  +pub fn named_dictionary_put<V: CLTyped + ToBytes>(
  + dictionary_name: &str,
  + dictionary_item_key: &str,
  + value: V,
  +) {
  + dictionary_put(get_named_uref(dictionary_name), dictionary_item_key, value)
  +}
  