pub struct ContractTemplateDto {Show 14 fields
pub id: String,
pub name: String,
pub description: String,
pub long_description: Option<String>,
pub abi: Vec<Vec<AbiFunction>>,
pub attributes: Option<ContractAttributes>,
pub docs: Option<ContractDoc>,
pub owner: Option<String>,
pub vendor: Option<VendorDto>,
pub is_public: bool,
pub can_deploy: Option<bool>,
pub type: Option<Type>,
pub implementation_contract_id: Option<String>,
pub initialization_phase: InitializationPhase,
}
Fields§
§id: String
The unique identifier of the contract template
name: String
The name of the contract template
description: String
A short description of the contract template
long_description: Option<String>
A full description of the contract template. May contain to break the lines
abi: Vec<Vec<AbiFunction>>
§attributes: Option<ContractAttributes>
The attributes related to this contract template. It will be displayed in the tokenization page
docs: Option<ContractDoc>
A natspec
compliant documentation json. Can be retrieved from the
output json after compilation
owner: Option<String>
The workspace id of the owner of this contract template. If it’s a private contract, only this workspace will be allowed to deploy it
vendor: Option<VendorDto>
The details of the vendor of this contract template. Applicable only for public contract templates
is_public: bool
Is this a contract that is viewable by all fireblocks’s users or is it visible only for this workspace
can_deploy: Option<bool>
True if the workspace allowed to deploy this contract, false otherwise
type: Option<Type>
The type of the contract template
implementation_contract_id: Option<String>
§initialization_phase: InitializationPhase
For standalone contracts use ON_DEPLOYMENT and for contracts that are behind proxies use POST_DEPLOYMENT
Implementations§
Source§impl ContractTemplateDto
impl ContractTemplateDto
pub fn new( id: String, name: String, description: String, abi: Vec<Vec<AbiFunction>>, is_public: bool, initialization_phase: InitializationPhase, ) -> ContractTemplateDto
Trait Implementations§
Source§impl Clone for ContractTemplateDto
impl Clone for ContractTemplateDto
Source§fn clone(&self) -> ContractTemplateDto
fn clone(&self) -> ContractTemplateDto
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more