[][src]Trait concordium_std::HasCommonData

pub trait HasCommonData {
    type PolicyType: HasPolicy;
    type MetadataType: HasChainMetadata;
    type ParamType: HasParameter + Read;
    type PolicyIteratorType: ExactSizeIterator<Item = Self::PolicyType>;
    pub fn policies(&self) -> Self::PolicyIteratorType;
pub fn metadata(&self) -> &Self::MetadataType;
pub fn parameter_cursor(&self) -> Self::ParamType; }

Common data accessible to both init and receive methods.

Associated Types

Loading content...

Required methods

pub fn policies(&self) -> Self::PolicyIteratorType[src]

Policies of the sender of the message. For init methods this is the would-be creator of the contract, for the receive this is the policies of the immediate sender.

In the latter case, if the sender is an account then it is the policies of the account, if it is a contract then it is the policies of the creator of the contract.

pub fn metadata(&self) -> &Self::MetadataType[src]

Get the reference to chain metadata

pub fn parameter_cursor(&self) -> Self::ParamType[src]

Get the cursor to the parameter.

Loading content...

Implementors

impl<'a, C> HasCommonData for ContextTest<'a, C>[src]

Loading content...