[][src]Trait concordium_std::HasReceiveContext

pub trait HasReceiveContext<Error: Default = ()>: HasCommonData {
    type ReceiveData;
    pub fn open(data: Self::ReceiveData) -> Self;
pub fn invoker(&self) -> AccountAddress;
pub fn self_address(&self) -> ContractAddress;
pub fn self_balance(&self) -> Amount;
pub fn sender(&self) -> Address;
pub fn owner(&self) -> AccountAddress; }

Types which can act as receive contexts.

Associated Types

Loading content...

Required methods

pub fn open(data: Self::ReceiveData) -> Self[src]

Open the receive context for reading and accessing values.

pub fn invoker(&self) -> AccountAddress[src]

Who is the account that initiated the top-level transaction this invocation is a part of.

pub fn self_address(&self) -> ContractAddress[src]

The address of the contract being invoked.

pub fn self_balance(&self) -> Amount[src]

Balance on the contract before the call was made.

pub fn sender(&self) -> Address[src]

The immediate sender of the message. In general different from the invoker.

pub fn owner(&self) -> AccountAddress[src]

Account which created the contract instance.

Loading content...

Implementors

impl<'a> HasReceiveContext<()> for ReceiveContextTest<'a>[src]

type ReceiveData = ()

Loading content...