pub struct ComplianceManagerCallApi<'api> { /* private fields */ }
Implementations§
Source§impl<'api> ComplianceManagerCallApi<'api>
impl<'api> ComplianceManagerCallApi<'api>
Sourcepub fn add_compliance_requirement(
&self,
asset_id: AssetId,
sender_conditions: Vec<Condition>,
receiver_conditions: Vec<Condition>,
) -> Result<WrappedCall>
pub fn add_compliance_requirement( &self, asset_id: AssetId, sender_conditions: Vec<Condition>, receiver_conditions: Vec<Condition>, ) -> Result<WrappedCall>
Adds a compliance requirement to an asset given by asset_id
.
If there are duplicate ClaimTypes for a particular trusted issuer, duplicates are removed.
§Arguments
- origin - Signer of the dispatchable. It should be the owner of the asset
- asset_id - Symbol of the asset
- sender_conditions - Sender transfer conditions.
- receiver_conditions - Receiver transfer conditions.
§Permissions
- Asset
Sourcepub fn remove_compliance_requirement(
&self,
asset_id: AssetId,
id: u32,
) -> Result<WrappedCall>
pub fn remove_compliance_requirement( &self, asset_id: AssetId, id: u32, ) -> Result<WrappedCall>
Sourcepub fn replace_asset_compliance(
&self,
asset_id: AssetId,
asset_compliance: Vec<ComplianceRequirement>,
) -> Result<WrappedCall>
pub fn replace_asset_compliance( &self, asset_id: AssetId, asset_compliance: Vec<ComplianceRequirement>, ) -> Result<WrappedCall>
Replaces an asset’s compliance with a new compliance.
Compliance requirements will be sorted (ascending by id) before replacing the current requirements.
§Arguments
asset_id
- the asset asset_id,- `asset_compliance - the new asset compliance.
§Errors
Unauthorized
iforigin
is not the owner of the asset_id.DuplicateAssetCompliance
ifasset_compliance
contains multiple entries with the samerequirement_id
.
§Permissions
- Asset
Sourcepub fn reset_asset_compliance(&self, asset_id: AssetId) -> Result<WrappedCall>
pub fn reset_asset_compliance(&self, asset_id: AssetId) -> Result<WrappedCall>
Sourcepub fn pause_asset_compliance(&self, asset_id: AssetId) -> Result<WrappedCall>
pub fn pause_asset_compliance(&self, asset_id: AssetId) -> Result<WrappedCall>
Sourcepub fn resume_asset_compliance(&self, asset_id: AssetId) -> Result<WrappedCall>
pub fn resume_asset_compliance(&self, asset_id: AssetId) -> Result<WrappedCall>
Sourcepub fn add_default_trusted_claim_issuer(
&self,
asset_id: AssetId,
issuer: TrustedIssuer,
) -> Result<WrappedCall>
pub fn add_default_trusted_claim_issuer( &self, asset_id: AssetId, issuer: TrustedIssuer, ) -> Result<WrappedCall>
Sourcepub fn remove_default_trusted_claim_issuer(
&self,
asset_id: AssetId,
issuer: IdentityId,
) -> Result<WrappedCall>
pub fn remove_default_trusted_claim_issuer( &self, asset_id: AssetId, issuer: IdentityId, ) -> Result<WrappedCall>
Sourcepub fn change_compliance_requirement(
&self,
asset_id: AssetId,
new_req: ComplianceRequirement,
) -> Result<WrappedCall>
pub fn change_compliance_requirement( &self, asset_id: AssetId, new_req: ComplianceRequirement, ) -> Result<WrappedCall>
Trait Implementations§
Source§impl<'api> Clone for ComplianceManagerCallApi<'api>
impl<'api> Clone for ComplianceManagerCallApi<'api>
Source§fn clone(&self) -> ComplianceManagerCallApi<'api>
fn clone(&self) -> ComplianceManagerCallApi<'api>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'api> Freeze for ComplianceManagerCallApi<'api>
impl<'api> !RefUnwindSafe for ComplianceManagerCallApi<'api>
impl<'api> Send for ComplianceManagerCallApi<'api>
impl<'api> Sync for ComplianceManagerCallApi<'api>
impl<'api> Unpin for ComplianceManagerCallApi<'api>
impl<'api> !UnwindSafe for ComplianceManagerCallApi<'api>
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
Mutably borrows from an owned value. Read more
Source§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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<Src, Dest> IntoTuple<Dest> for Srcwhere
Dest: FromTuple<Src>,
impl<Src, Dest> IntoTuple<Dest> for Srcwhere
Dest: FromTuple<Src>,
fn into_tuple(self) -> Dest
Source§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>,
Consume self to return an equivalent value of
T
. Read moreSource§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
The counterpart to
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
Consume self to return an equivalent value of
T
.