Trait DeployedContractsApi

Source
pub trait DeployedContractsApi: Send + Sync {
    // Required methods
    fn add_contract_abi<'life0, 'async_trait>(
        &'life0 self,
        params: AddContractAbiParams,
    ) -> Pin<Box<dyn Future<Output = Result<ContractWithAbiDto, Error<AddContractAbiError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn fetch_contract_abi<'life0, 'async_trait>(
        &'life0 self,
        params: FetchContractAbiParams,
    ) -> Pin<Box<dyn Future<Output = Result<ContractWithAbiDto, Error<FetchContractAbiError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_deployed_contract_by_address<'life0, 'async_trait>(
        &'life0 self,
        params: GetDeployedContractByAddressParams,
    ) -> Pin<Box<dyn Future<Output = Result<DeployedContractResponseDto, Error<GetDeployedContractByAddressError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_deployed_contract_by_id<'life0, 'async_trait>(
        &'life0 self,
        params: GetDeployedContractByIdParams,
    ) -> Pin<Box<dyn Future<Output = Result<DeployedContractResponseDto, Error<GetDeployedContractByIdError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_deployed_contracts<'life0, 'async_trait>(
        &'life0 self,
        params: GetDeployedContractsParams,
    ) -> Pin<Box<dyn Future<Output = Result<DeployedContractsPaginatedResponse, Error<GetDeployedContractsError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn add_contract_abi<'life0, 'async_trait>( &'life0 self, params: AddContractAbiParams, ) -> Pin<Box<dyn Future<Output = Result<ContractWithAbiDto, Error<AddContractAbiError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

POST /tokenization/contracts/abi

Save contract ABI for the tenant.
Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, and Editor.

Source

fn fetch_contract_abi<'life0, 'async_trait>( &'life0 self, params: FetchContractAbiParams, ) -> Pin<Box<dyn Future<Output = Result<ContractWithAbiDto, Error<FetchContractAbiError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

POST /tokenization/contracts/fetch_abi

Fetch the ABI. If not found fetch the ABI from the block explorer.
Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer.

Source

fn get_deployed_contract_by_address<'life0, 'async_trait>( &'life0 self, params: GetDeployedContractByAddressParams, ) -> Pin<Box<dyn Future<Output = Result<DeployedContractResponseDto, Error<GetDeployedContractByAddressError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

GET /tokenization/contracts/{assetId}/{contractAddress}

Return deployed contract data by blockchain native asset id and contract address.
Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer.

Source

fn get_deployed_contract_by_id<'life0, 'async_trait>( &'life0 self, params: GetDeployedContractByIdParams, ) -> Pin<Box<dyn Future<Output = Result<DeployedContractResponseDto, Error<GetDeployedContractByIdError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

GET /tokenization/contracts/{id}

Return deployed contract data by id.
Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer.

Source

fn get_deployed_contracts<'life0, 'async_trait>( &'life0 self, params: GetDeployedContractsParams, ) -> Pin<Box<dyn Future<Output = Result<DeployedContractsPaginatedResponse, Error<GetDeployedContractsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

GET /tokenization/contracts

Return a filtered lean representation of the deployed contracts data on all blockchains (paginated).
Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer.

Implementors§