Enum pallet_assets::pallet::Event
source · pub enum Event<T: Config<I>, I: 'static = ()> {
Show 24 variants
Created {
asset_id: T::AssetId,
creator: T::AccountId,
owner: T::AccountId,
},
Issued {
asset_id: T::AssetId,
owner: T::AccountId,
amount: T::Balance,
},
Transferred {
asset_id: T::AssetId,
from: T::AccountId,
to: T::AccountId,
amount: T::Balance,
},
Burned {
asset_id: T::AssetId,
owner: T::AccountId,
balance: T::Balance,
},
TeamChanged {
asset_id: T::AssetId,
issuer: T::AccountId,
admin: T::AccountId,
freezer: T::AccountId,
},
OwnerChanged {
asset_id: T::AssetId,
owner: T::AccountId,
},
Frozen {
asset_id: T::AssetId,
who: T::AccountId,
},
Thawed {
asset_id: T::AssetId,
who: T::AccountId,
},
AssetFrozen {
asset_id: T::AssetId,
},
AssetThawed {
asset_id: T::AssetId,
},
AccountsDestroyed {
asset_id: T::AssetId,
accounts_destroyed: u32,
accounts_remaining: u32,
},
ApprovalsDestroyed {
asset_id: T::AssetId,
approvals_destroyed: u32,
approvals_remaining: u32,
},
DestructionStarted {
asset_id: T::AssetId,
},
Destroyed {
asset_id: T::AssetId,
},
ForceCreated {
asset_id: T::AssetId,
owner: T::AccountId,
},
MetadataSet {
asset_id: T::AssetId,
name: Vec<u8>,
symbol: Vec<u8>,
decimals: u8,
is_frozen: bool,
},
MetadataCleared {
asset_id: T::AssetId,
},
ApprovedTransfer {
asset_id: T::AssetId,
source: T::AccountId,
delegate: T::AccountId,
amount: T::Balance,
},
ApprovalCancelled {
asset_id: T::AssetId,
owner: T::AccountId,
delegate: T::AccountId,
},
TransferredApproved {
asset_id: T::AssetId,
owner: T::AccountId,
delegate: T::AccountId,
destination: T::AccountId,
amount: T::Balance,
},
AssetStatusChanged {
asset_id: T::AssetId,
},
AssetMinBalanceChanged {
asset_id: T::AssetId,
new_min_balance: T::Balance,
},
Touched {
asset_id: T::AssetId,
who: T::AccountId,
depositor: T::AccountId,
},
Blocked {
asset_id: T::AssetId,
who: T::AccountId,
},
// some variants omitted
}
Expand description
The Event
enum of this pallet
Variants§
Created
Some asset class was created.
Issued
Some assets were issued.
Transferred
Some assets were transferred.
Burned
Some assets were destroyed.
TeamChanged
The management team changed.
OwnerChanged
The owner changed.
Frozen
Some account who
was frozen.
Thawed
Some account who
was thawed.
AssetFrozen
Some asset asset_id
was frozen.
AssetThawed
Some asset asset_id
was thawed.
AccountsDestroyed
Accounts were destroyed for given asset.
ApprovalsDestroyed
Approvals were destroyed for given asset.
DestructionStarted
An asset class is in the process of being destroyed.
Destroyed
An asset class was destroyed.
ForceCreated
Some asset class was force-created.
MetadataSet
New metadata has been set for an asset.
MetadataCleared
Metadata has been cleared for an asset.
ApprovedTransfer
(Additional) funds have been approved for transfer to a destination account.
ApprovalCancelled
An approval for account delegate
was cancelled by owner
.
TransferredApproved
An amount
was transferred in its entirety from owner
to destination
by
the approved delegate
.
Fields
AssetStatusChanged
An asset has had its attributes changed by the Force
origin.
AssetMinBalanceChanged
The min_balance of an asset has been updated by the asset owner.
Touched
Some account who
was created with a deposit from depositor
.
Blocked
Some account who
was blocked.
Trait Implementations§
source§impl<T: Config<I>, I: 'static> Decode for Event<T, I>
impl<T: Config<I>, I: 'static> Decode for Event<T, I>
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy ) -> Result<Self, Error>
source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>
) -> Result<DecodeFinished, Error>where
I: Input,
source§impl<T: Config<I>, I: 'static> Encode for Event<T, I>
impl<T: Config<I>, I: 'static> Encode for Event<T, I>
source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )
source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
source§impl<T: Config<I>, I: 'static> PartialEq for Event<T, I>
impl<T: Config<I>, I: 'static> PartialEq for Event<T, I>
impl<T: Config<I>, I: 'static> EncodeLike for Event<T, I>
impl<T: Config<I>, I: 'static> Eq for Event<T, I>
Auto Trait Implementations§
impl<T, I> Freeze for Event<T, I>
impl<T, I> RefUnwindSafe for Event<T, I>where
<T as Config<I>>::AssetId: RefUnwindSafe,
<T as Config>::AccountId: RefUnwindSafe,
<T as Config<I>>::Balance: RefUnwindSafe,
T: RefUnwindSafe,
I: RefUnwindSafe,
impl<T, I> Send for Event<T, I>
impl<T, I> Sync for Event<T, I>
impl<T, I> Unpin for Event<T, I>
impl<T, I> UnwindSafe for Event<T, I>where
<T as Config<I>>::AssetId: UnwindSafe,
<T as Config>::AccountId: UnwindSafe,
<T as Config<I>>::Balance: UnwindSafe,
T: UnwindSafe,
I: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
source§impl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere
T: Decode,
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
source§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
source§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
source§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
T
. Read moresource§impl<T, U> TryIntoKey<U> for Twhere
U: TryFromKey<T>,
impl<T, U> TryIntoKey<U> for Twhere
U: TryFromKey<T>,
type Error = <U as TryFromKey<T>>::Error
fn try_into_key(self) -> Result<U, <U as TryFromKey<T>>::Error>
source§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
unchecked_from
.source§impl<T, S> UniqueSaturatedInto<T> for S
impl<T, S> UniqueSaturatedInto<T> for S
source§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
T
.