pub enum Call<T: Config> {
    execute_call_dispatch {
        account_id: AccountIdOf<T>,
        proposal: Box<<T as Config>::Call>,
    },
    request_asset_management {
        account_id: AccountIdOf<T>,
    },
    launch_representative_session {
        asset_type: PossibleCollections,
        asset_id: T::NftItemId,
        representative: T::AccountId,
        proposal: VoteProposals,
    },
    owners_vote {
        referendum_index: ReferendumIndex,
        vote: bool,
    },
    representative_approval {
        rep_account: T::AccountId,
        collection: T::NftCollectionId,
        item: T::NftItemId,
    },
    demote_representative {
        rep_account: T::AccountId,
        collection: T::NftCollectionId,
        item: T::NftItemId,
    },
    launch_tenant_session {
        asset_type: PossibleCollections,
        asset_id: T::NftItemId,
        tenant: T::AccountId,
        proposal: VoteProposals,
        judgement: Judgement<IdentBalanceOf<T>>,
    },
    link_tenant_to_asset {
        tenant: T::AccountId,
        collection: T::NftCollectionId,
        item: T::NftItemId,
    },
    request_guaranty_payment {
        from: T::AccountId,
        collection: T::NftCollectionId,
        item: T::NftItemId,
        judgement: Judgement<IdentBalanceOf<T>>,
    },
    unlink_tenant_to_asset {
        tenant: T::AccountId,
        collection: T::NftCollectionId,
        item: T::NftItemId,
    },
    // some variants omitted
}
Expand description

Contains one variant per dispatchable that can be called by an extrinsic.

Variants§

§

execute_call_dispatch

Fields

§account_id: AccountIdOf<T>
§proposal: Box<<T as Config>::Call>

Build the call to be executed when the proposal pass the democracy vote The origin must but root

  • account_id : the virtual account of the asset of the proposal
  • proposal : call encapsulating the inital proposal
§

request_asset_management

Fields

§account_id: AccountIdOf<T>

Using the function below, an active Representative can request an additional asset to manage. The origin must be an active Representative.

  • account_id: an account with the representative role
§

launch_representative_session

Fields

§asset_type: PossibleCollections
§asset_id: T::NftItemId
§representative: T::AccountId
§proposal: VoteProposals

Using the function below, an owner triggers a vote session with a proposal for an asset The origin must be an owner of the asset

  • asset_type: type of the asset
  • asset_id: id of the asset
  • representative: an account with the representative role to be designed
  • proposal contains the extrinsics to be executed depending on the vote result
§

owners_vote

Fields

§referendum_index: ReferendumIndex
§vote: bool

The function below allows the owner to vote. The balance locked and used for vote conviction corresponds to the number of ownership tokens possessed by the voter. The origin must be an owner of the asset

  • referendum_index: index of the referendum the voter is taking part in
  • vote: aye or nay
§

representative_approval

Fields

§rep_account: T::AccountId
§collection: T::NftCollectionId
§item: T::NftItemId

The function below allows the approval of a Representative role request The origin must be the virtual account connected to the asset

  • rep_account: account Of the candidate to the representative account
  • collection: collection number of the asset.
  • item: item number of the asset.
§

demote_representative

Fields

§rep_account: T::AccountId
§collection: T::NftCollectionId
§item: T::NftItemId

The function below allows the demotion of a previously elected Representative The origin must be the virtual account connected to the asset

  • rep_account: account Of the candidate to the representative account
  • collection: collection_id of the asset.
  • item: item_id of the asset.
§

launch_tenant_session

Fields

§asset_type: PossibleCollections
§asset_id: T::NftItemId
§tenant: T::AccountId
§proposal: VoteProposals
§judgement: Judgement<IdentBalanceOf<T>>

Using the function below, a representative triggers a vote session with a proposal for a tenant to be linked with an asset The origin must be a representative

  • asset_type: type of the asset
  • asset_id: id of the asset
  • tenant: an account with the tenant role

The function below links an accepted tenant with an existing asset The origin must be the virtual account connected to the asset

  • tenant: an account with the tenant role
  • collection: collection_id of the asset
  • item: item_id of the asset
§

request_guaranty_payment

Fields

§from: T::AccountId
§collection: T::NftCollectionId
§item: T::NftItemId
§judgement: Judgement<IdentBalanceOf<T>>

The function below sends a guaranty deposiy payment request to a tenant. This extrinsic is executed After a positive tenant_session. The origin must be the virtual account connected to the asset

  • tenant: an account with the tenant role linked to the asset
  • collection: collection_id of the asset
  • item: item_id of the asset
  • _judgement is provided by the representative while creating a tenant session

The function below unlinks a tenant with an asset The origin must be the virtual account connected to the asset

  • tenant: an account with the tenant role linked to the asset
  • collection: collection_id of the asset
  • item: item_id of the asset

Implementations§

Create a call with the variant execute_call_dispatch.

Create a call with the variant request_asset_management.

Create a call with the variant launch_representative_session.

Create a call with the variant owners_vote.

Create a call with the variant representative_approval.

Create a call with the variant demote_representative.

Create a call with the variant launch_tenant_session.

Create a call with the variant link_tenant_to_asset.

Create a call with the variant request_guaranty_payment.

Create a call with the variant unlink_tenant_to_asset.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Attempt to deserialise the value from input.
Attempt to skip the encoded value from input. Read more
Returns the fixed encoded size of the type. Read more
Convert self to a slice and append it to the destination.
If possible give a hint of expected size of the encoding. Read more
Convert self to an owned vector.
Convert self to a slice and then invoke the given closure with it.
Calculates the encoded size. Read more
Return the function name of the Call.
Return all function names.
Return a DispatchInfo, containing relevant information of this dispatch. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
The type identifying for which type info is provided. Read more
Returns the static type identifier for Self.
The origin type of the runtime, (i.e. frame_system::Config::Origin).
Dispatch this call but do not check the filter in origin.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Convert from a value of T into an equivalent instance of Option<Self>. Read more
Consume self to return Some equivalent value of Option<T>. Read more
Decode Self and consume all of the given input data. Read more
Decode Self and consume all of the given input data. Read more
Decode Self with the given maximum recursion depth and advance input by the number of bytes consumed. Read more
Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more
Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more
Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s. Read more
Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s. Read more
Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Cast reference.
Cast reference.
Cast mutable reference.
Cast mutable reference.

Get a reference to the inner from the outer.

Get a mutable reference to the inner from the outer.

Return an encoding of Self prepended by given slice.
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
Convert from a value of T into an equivalent instance of Self. Read more
Consume self to return an equivalent value of T. Read more
The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Checks if self is actually part of its subset T (and can be converted to it).
Use with care! Same as self.to_subset but without any property checks. Always succeeds.
The inclusion map: converts self to the equivalent element of its superset.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The counterpart to unchecked_from.
Consume self to return an equivalent value of T.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more