Enum pallet_sub::Call [−][src]
pub enum Call<T: Config> { create(T::Hash, u128, bool), recover(T::Hash), mint_non_fungible(T::AccountId, T::Hash, Vec<u8>, u128), mint_fungible(T::AccountId, T::Hash, u128), // some variants omitted }
Dispatchable calls.
Each variant of this enum maps to a dispatchable function from the associated module.
Variants
Lock NFT to this pallet and create a new collection.
The dispatch origin of this call must be Signed.
Parameters:
collection_id
: The collection in which NFT is located.start_idx
: NFT’s Indexis_fungible
: SubToken is FT or not.
recover(T::Hash)
Burn all SubTokens and restore to NFT.
The dispatch origin of this call must be Signed.
Parameters:
sub_token_collection_id
: The collection where subtokens are located.
Mint one or a batch of SubNFTs.
The dispatch origin of this call must be Signed.
Parameters:
receiver
: The address that accepts minted tokens.sub_token_collection_id
: The collection where the minted SubNFTs is locateduri
: Uri representing the detailed information of SubNFT.amount
: How many tokens to mint.
Mint some FTs
The dispatch origin of this call must be Signed.
Parameters:
receiver
: The address that accepts minted tokens.sub_token_collection_id
: The collection where the minted FTs is locatedamount
: How many tokens to mint.
Trait Implementations
impl<T: Config> Clone for Call<T>
[src][+]
impl<T: Config> Debug for Call<T>
[src][+]
impl<T: Config> Decode for Call<T> where
T::Hash: Decode,
T::Hash: Decode,
T::Hash: Decode,
T::Hash: Decode,
T::AccountId: Decode,
T::AccountId: Decode,
T::Hash: Decode,
T::Hash: Decode,
T::AccountId: Decode,
T::AccountId: Decode,
T::Hash: Decode,
T::Hash: Decode,
[src][+]
T::Hash: Decode,
T::Hash: Decode,
T::Hash: Decode,
T::Hash: Decode,
T::AccountId: Decode,
T::AccountId: Decode,
T::Hash: Decode,
T::Hash: Decode,
T::AccountId: Decode,
T::AccountId: Decode,
T::Hash: Decode,
T::Hash: Decode,
impl<T: Config> Encode for Call<T> where
T::Hash: Encode,
T::Hash: Encode,
T::Hash: Encode,
T::Hash: Encode,
T::AccountId: Encode,
T::AccountId: Encode,
T::Hash: Encode,
T::Hash: Encode,
T::AccountId: Encode,
T::AccountId: Encode,
T::Hash: Encode,
T::Hash: Encode,
[src][+]
T::Hash: Encode,
T::Hash: Encode,
T::Hash: Encode,
T::Hash: Encode,
T::AccountId: Encode,
T::AccountId: Encode,
T::Hash: Encode,
T::Hash: Encode,
T::AccountId: Encode,
T::AccountId: Encode,
T::Hash: Encode,
T::Hash: Encode,
impl<T: Config> EncodeLike<Call<T>> for Call<T> where
T::Hash: Encode,
T::Hash: Encode,
T::Hash: Encode,
T::Hash: Encode,
T::AccountId: Encode,
T::AccountId: Encode,
T::Hash: Encode,
T::Hash: Encode,
T::AccountId: Encode,
T::AccountId: Encode,
T::Hash: Encode,
T::Hash: Encode,
[src]
T::Hash: Encode,
T::Hash: Encode,
T::Hash: Encode,
T::Hash: Encode,
T::AccountId: Encode,
T::AccountId: Encode,
T::Hash: Encode,
T::Hash: Encode,
T::AccountId: Encode,
T::AccountId: Encode,
T::Hash: Encode,
T::Hash: Encode,
impl<T: Config> Eq for Call<T>
[src]
impl<T: Config> GetCallName for Call<T>
[src][+]
impl<T: Config> GetDispatchInfo for Call<T>
[src][+]
impl<T: Config> PartialEq<Call<T>> for Call<T>
[src][+]
impl<T: Config> UnfilteredDispatchable for Call<T>
[src][+]
Auto Trait Implementations
impl<T> RefUnwindSafe for Call<T> where
T: RefUnwindSafe,
<T as Config>::AccountId: RefUnwindSafe,
<T as Config>::Hash: RefUnwindSafe,
T: RefUnwindSafe,
<T as Config>::AccountId: RefUnwindSafe,
<T as Config>::Hash: RefUnwindSafe,
impl<T> Send for Call<T> where
T: Send,
T: Send,
impl<T> Sync for Call<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Call<T> where
T: Unpin,
<T as Config>::AccountId: Unpin,
<T as Config>::Hash: Unpin,
T: Unpin,
<T as Config>::AccountId: Unpin,
<T as Config>::Hash: Unpin,
impl<T> UnwindSafe for Call<T> where
T: UnwindSafe,
<T as Config>::AccountId: UnwindSafe,
<T as Config>::Hash: UnwindSafe,
T: UnwindSafe,
<T as Config>::AccountId: UnwindSafe,
<T as Config>::Hash: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> CheckedConversion for T
[src][+]
impl<S> Codec for S where
S: Decode + Encode,
[src]
S: Decode + Encode,
impl<T> DecodeAll for T where
T: Decode,
[src][+]
T: Decode,
impl<T> DecodeLimit for T where
T: Decode,
[src][+]
T: Decode,
impl<T> DynClone for T where
T: Clone,
[src][+]
T: Clone,
impl<'_, '_, T> EncodeLike<&'_ &'_ T> for T where
T: Encode,
[src]
T: Encode,
impl<'_, T> EncodeLike<&'_ T> for T where
T: Encode,
[src]
T: Encode,
impl<'_, T> EncodeLike<&'_ mut T> for T where
T: Encode,
[src]
T: Encode,
impl<T> EncodeLike<Arc<T>> for T where
T: Encode,
[src]
T: Encode,
impl<T> EncodeLike<Box<T, Global>> for T where
T: Encode,
[src]
T: Encode,
impl<'a, T> EncodeLike<Cow<'a, T>> for T where
T: ToOwned + Encode,
[src]
T: ToOwned + Encode,
impl<T> EncodeLike<Rc<T>> for T where
T: Encode,
[src]
T: Encode,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src][+]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
impl<T> From<T> for T
[src][+]
impl<S> FullCodec for S where
S: Decode + FullEncode,
[src]
S: Decode + FullEncode,
impl<S> FullEncode for S where
S: Encode + EncodeLike<S>,
[src]
S: Encode + EncodeLike<S>,
impl<T> Hashable for T where
T: Codec,
[src][+]
T: Codec,
impl<T> Instrument for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> IsType<T> for T
[src][+]
impl<T, Outer> IsWrappedBy<Outer> for T where
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>,
[src][+]
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>,
impl<T> KeyedVec for T where
T: Codec,
[src][+]
T: Codec,
impl<T> MaybeDebug for T where
T: Debug,
[src]
T: Debug,
impl<T> MaybeDebug for T where
T: Debug,
[src]
T: Debug,
impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Member for T where
T: 'static + Send + Sync + Debug + Eq + PartialEq<T> + Clone,
[src]
T: 'static + Send + Sync + Debug + Eq + PartialEq<T> + Clone,
impl<T> Parameter for T where
T: Codec + EncodeLike<T> + Clone + Eq + Debug,
[src]
T: Codec + EncodeLike<T> + Clone + Eq + Debug,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> SaturatedConversion for T
[src][+]
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
[src][+]
T: UncheckedFrom<S>,
impl<T, S> UniqueSaturatedInto<T> for S where
T: Bounded,
S: TryInto<T>,
[src][+]
T: Bounded,
S: TryInto<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,