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;
}