Trait ContractTemplatesApi

Source
pub trait ContractTemplatesApi: Send + Sync {
    // Required methods
    fn delete_contract_template_by_id<'life0, 'async_trait>(
        &'life0 self,
        params: DeleteContractTemplateByIdParams,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error<DeleteContractTemplateByIdError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn deploy_contract<'life0, 'async_trait>(
        &'life0 self,
        params: DeployContractParams,
    ) -> Pin<Box<dyn Future<Output = Result<ContractDeployResponse, Error<DeployContractError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_constructor_by_contract_template_id<'life0, 'async_trait>(
        &'life0 self,
        params: GetConstructorByContractTemplateIdParams,
    ) -> Pin<Box<dyn Future<Output = Result<AbiFunction, Error<GetConstructorByContractTemplateIdError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_contract_template_by_id<'life0, 'async_trait>(
        &'life0 self,
        params: GetContractTemplateByIdParams,
    ) -> Pin<Box<dyn Future<Output = Result<ContractTemplateDto, Error<GetContractTemplateByIdError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_contract_templates<'life0, 'async_trait>(
        &'life0 self,
        params: GetContractTemplatesParams,
    ) -> Pin<Box<dyn Future<Output = Result<TemplatesPaginatedResponse, Error<GetContractTemplatesError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_function_abi_by_contract_template_id<'life0, 'async_trait>(
        &'life0 self,
        params: GetFunctionAbiByContractTemplateIdParams,
    ) -> Pin<Box<dyn Future<Output = Result<AbiFunction, Error<GetFunctionAbiByContractTemplateIdError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn upload_contract_template<'life0, 'async_trait>(
        &'life0 self,
        params: UploadContractTemplateParams,
    ) -> Pin<Box<dyn Future<Output = Result<ContractTemplateDto, Error<UploadContractTemplateError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn delete_contract_template_by_id<'life0, 'async_trait>( &'life0 self, params: DeleteContractTemplateByIdParams, ) -> Pin<Box<dyn Future<Output = Result<(), Error<DeleteContractTemplateByIdError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

DELETE /tokenization/templates/{contractTemplateId}

Delete a contract by id. allowed only for private contract templates. Notice: it is irreversible!
Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, and Editor

Source

fn deploy_contract<'life0, 'async_trait>( &'life0 self, params: DeployContractParams, ) -> Pin<Box<dyn Future<Output = Result<ContractDeployResponse, Error<DeployContractError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

POST /tokenization/templates/{contractTemplateId}/deploy

Deploy a new contract by contract template id. If you wish to deploy a token (ERC20, ERC721 etc), and create asset please use POST /tokenization.
Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, Approver, and Editor, Viewer.

Source

fn get_constructor_by_contract_template_id<'life0, 'async_trait>( &'life0 self, params: GetConstructorByContractTemplateIdParams, ) -> Pin<Box<dyn Future<Output = Result<AbiFunction, Error<GetConstructorByContractTemplateIdError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

GET /tokenization/templates/{contractTemplateId}/constructor

Return contract template’s constructor ABI.
Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer.

Source

fn get_contract_template_by_id<'life0, 'async_trait>( &'life0 self, params: GetContractTemplateByIdParams, ) -> Pin<Box<dyn Future<Output = Result<ContractTemplateDto, Error<GetContractTemplateByIdError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

GET /tokenization/templates/{contractTemplateId}

Return detailed information about the contract template.
Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer.

Source

fn get_contract_templates<'life0, 'async_trait>( &'life0 self, params: GetContractTemplatesParams, ) -> Pin<Box<dyn Future<Output = Result<TemplatesPaginatedResponse, Error<GetContractTemplatesError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

GET /tokenization/templates

Return minimal representation of all the contract templates available for the workspace.
Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer.

Source

fn get_function_abi_by_contract_template_id<'life0, 'async_trait>( &'life0 self, params: GetFunctionAbiByContractTemplateIdParams, ) -> Pin<Box<dyn Future<Output = Result<AbiFunction, Error<GetFunctionAbiByContractTemplateIdError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

GET /tokenization/templates/{contractTemplateId}/function

Return contract template`s function ABI by signature.
Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer.

Source

fn upload_contract_template<'life0, 'async_trait>( &'life0 self, params: UploadContractTemplateParams, ) -> Pin<Box<dyn Future<Output = Result<ContractTemplateDto, Error<UploadContractTemplateError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

POST /tokenization/templates

Upload a new contract template. This contract template will be available for the workspace.
Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, and Editor

Implementors§