pub struct ComplianceManagerCallApi<'api> { /* private fields */ }
Implementations§
source§impl<'api> ComplianceManagerCallApi<'api>
impl<'api> ComplianceManagerCallApi<'api>
sourcepub fn add_compliance_requirement(
&self,
ticker: Ticker,
sender_conditions: Vec<Condition>,
receiver_conditions: Vec<Condition>,
) -> Result<WrappedCall>
pub fn add_compliance_requirement( &self, ticker: Ticker, sender_conditions: Vec<Condition>, receiver_conditions: Vec<Condition>, ) -> Result<WrappedCall>
Adds a compliance requirement to an asset’s compliance by ticker. 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 ticker
- ticker - Symbol of the asset
- sender_conditions - Sender transfer conditions.
- receiver_conditions - Receiver transfer conditions.
§Permissions
- Asset
sourcepub fn remove_compliance_requirement(
&self,
ticker: Ticker,
id: u32,
) -> Result<WrappedCall>
pub fn remove_compliance_requirement( &self, ticker: Ticker, id: u32, ) -> Result<WrappedCall>
sourcepub fn replace_asset_compliance(
&self,
ticker: Ticker,
asset_compliance: Vec<ComplianceRequirement>,
) -> Result<WrappedCall>
pub fn replace_asset_compliance( &self, ticker: Ticker, asset_compliance: Vec<ComplianceRequirement>, ) -> Result<WrappedCall>
Replaces an asset’s compliance by ticker with a new compliance.
Compliance requirements will be sorted (ascending by id) before replacing the current requirements.
§Arguments
ticker
- the asset ticker,- `asset_compliance - the new asset compliance.
§Errors
Unauthorized
iforigin
is not the owner of the ticker.DuplicateAssetCompliance
ifasset_compliance
contains multiple entries with the samerequirement_id
.
§Permissions
- Asset
sourcepub fn reset_asset_compliance(&self, ticker: Ticker) -> Result<WrappedCall>
pub fn reset_asset_compliance(&self, ticker: Ticker) -> Result<WrappedCall>
sourcepub fn pause_asset_compliance(&self, ticker: Ticker) -> Result<WrappedCall>
pub fn pause_asset_compliance(&self, ticker: Ticker) -> Result<WrappedCall>
sourcepub fn resume_asset_compliance(&self, ticker: Ticker) -> Result<WrappedCall>
pub fn resume_asset_compliance(&self, ticker: Ticker) -> Result<WrappedCall>
sourcepub fn add_default_trusted_claim_issuer(
&self,
ticker: Ticker,
issuer: TrustedIssuer,
) -> Result<WrappedCall>
pub fn add_default_trusted_claim_issuer( &self, ticker: Ticker, issuer: TrustedIssuer, ) -> Result<WrappedCall>
sourcepub fn remove_default_trusted_claim_issuer(
&self,
ticker: Ticker,
issuer: IdentityId,
) -> Result<WrappedCall>
pub fn remove_default_trusted_claim_issuer( &self, ticker: Ticker, issuer: IdentityId, ) -> Result<WrappedCall>
sourcepub fn change_compliance_requirement(
&self,
ticker: Ticker,
new_req: ComplianceRequirement,
) -> Result<WrappedCall>
pub fn change_compliance_requirement( &self, ticker: Ticker, 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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<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
.