Trait casper_types::auction::StorageProvider[][src]

pub trait StorageProvider {
    fn read<T: FromBytes + CLTyped>(
        &mut self,
        uref: URef
    ) -> Result<Option<T>, Error>;
fn write<T: ToBytes + CLTyped>(
        &mut self,
        uref: URef,
        value: T
    ) -> Result<(), Error>; }

Provides functionality of a contract storage.

Required methods

fn read<T: FromBytes + CLTyped>(
    &mut self,
    uref: URef
) -> Result<Option<T>, Error>
[src]

Reads data from URef.

fn write<T: ToBytes + CLTyped>(
    &mut self,
    uref: URef,
    value: T
) -> Result<(), Error>
[src]

Writes data to `URef.

Loading content...

Implementors

Loading content...