Trait concordium_std::HasReceiveContext [−][src]
pub trait HasReceiveContext<Error: Default = ()>: HasCommonData { type ReceiveData; fn open(data: Self::ReceiveData) -> Self; fn invoker(&self) -> AccountAddress; fn self_address(&self) -> ContractAddress; fn self_balance(&self) -> Amount; fn sender(&self) -> Address; fn owner(&self) -> AccountAddress; }
Expand description
Types which can act as receive contexts.
Associated Types
type ReceiveData
[src]
Required methods
fn open(data: Self::ReceiveData) -> Self
[src]
Expand description
Open the receive context for reading and accessing values.
fn invoker(&self) -> AccountAddress
[src]
Expand description
Who is the account that initiated the top-level transaction this invocation is a part of.
fn self_address(&self) -> ContractAddress
[src]
Expand description
The address of the contract being invoked.
fn self_balance(&self) -> Amount
[src]
Expand description
Balance on the contract before the call was made.
fn sender(&self) -> Address
[src]
Expand description
The immediate sender of the message. In general different from the invoker.
fn owner(&self) -> AccountAddress
[src]
Expand description
Account which created the contract instance.
Implementors
impl<'a> HasReceiveContext<()> for ReceiveContextTest<'a>
[src]
impl<'a> HasReceiveContext<()> for ReceiveContextTest<'a>
[src]