pub struct MetaConfig {
pub load_abi_git_version: bool,
pub output_dir: String,
pub snippets_dir: String,
pub original_contract_abi: ContractAbi,
pub sc_config: ScConfig,
}
Fields§
§load_abi_git_version: bool
§output_dir: String
§snippets_dir: String
§original_contract_abi: ContractAbi
§sc_config: ScConfig
Implementations§
Source§impl MetaConfig
impl MetaConfig
pub fn generate_proxy(&mut self)
pub fn compare_proxy(&mut self)
Source§impl MetaConfig
impl MetaConfig
pub fn generate_rust_snippets(&self, args: &GenerateSnippetsArgs)
Source§impl MetaConfig
impl MetaConfig
pub fn write_contract_abis(&self)
pub fn write_esdt_attribute_abis(&self)
Source§impl MetaConfig
impl MetaConfig
pub fn create( original_contract_abi: ContractAbi, load_abi_git_version: bool, ) -> MetaConfig
pub fn reload_sc_config(&mut self)
Sourcepub fn generate_wasm_crates(&mut self)
pub fn generate_wasm_crates(&mut self)
Generates all code for the wasm crate(s).
Sourcepub fn generate_cargo_toml_for_all_wasm_crates(&mut self)
pub fn generate_cargo_toml_for_all_wasm_crates(&mut self)
Cargo.toml files for all wasm crates are generated from the main contract Cargo.toml, by changing the package name.
Auto Trait Implementations§
impl Freeze for MetaConfig
impl RefUnwindSafe for MetaConfig
impl Send for MetaConfig
impl Sync for MetaConfig
impl Unpin for MetaConfig
impl UnwindSafe for MetaConfig
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
Mutably borrows from an owned value. Read more