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>
Removes a compliance requirement from an asset’s compliance.
Arguments
- origin - Signer of the dispatchable. It should be the owner of the ticker
- ticker - Symbol of the asset
- id - Compliance requirement id which is need to be removed
Permissions
- Asset
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>
Removes an asset’s compliance
Arguments
- origin - Signer of the dispatchable. It should be the owner of the ticker
- ticker - Symbol of the asset
Permissions
- Asset
sourcepub fn pause_asset_compliance(&self, ticker: Ticker) -> Result<WrappedCall>
pub fn pause_asset_compliance(&self, ticker: Ticker) -> Result<WrappedCall>
Pauses the verification of conditions for ticker
during transfers.
Arguments
- origin - Signer of the dispatchable. It should be the owner of the ticker
- ticker - Symbol of the asset
Permissions
- Asset
sourcepub fn resume_asset_compliance(&self, ticker: Ticker) -> Result<WrappedCall>
pub fn resume_asset_compliance(&self, ticker: Ticker) -> Result<WrappedCall>
Resumes the verification of conditions for ticker
during transfers.
Arguments
- origin - Signer of the dispatchable. It should be the owner of the ticker
- ticker - Symbol of the asset
Permissions
- Asset
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>
Adds another default trusted claim issuer at the ticker level.
Arguments
- origin - Signer of the dispatchable. It should be the owner of the ticker.
- ticker - Symbol of the asset.
- issuer - IdentityId of the trusted claim issuer.
Permissions
- Asset
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>
Removes the given issuer
from the set of default trusted claim issuers at the ticker level.
Arguments
- origin - Signer of the dispatchable. It should be the owner of the ticker.
- ticker - Symbol of the asset.
- issuer - IdentityId of the trusted claim issuer.
Permissions
- Asset
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>
Modify an existing compliance requirement of a given ticker.
Arguments
- origin - Signer of the dispatchable. It should be the owner of the ticker.
- ticker - Symbol of the asset.
- new_req - Compliance requirement.
Permissions
- Asset
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>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
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
§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
Self: TryFrom<T>,
fn checked_from<T>(t: T) -> Option<Self>where
Self: TryFrom<T>,
§fn checked_into<T>(self) -> Option<T>where
Self: TryInto<T>,
fn checked_into<T>(self) -> Option<T>where
Self: TryInto<T>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§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 more§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
§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
.