Crate gramr

Crate gramr 

Source
Expand description

Gramr - A blazing-fast library for scaffolding smart contracts

This library provides the core functionality for generating Solidity and Rust/Stylus contracts, tests, and deployment scripts for Foundry and Cargo projects.

Re-exports§

pub use error::GramrError;
pub use error::Result;
pub use foundry::FoundryProject;
pub use generators::ContractGenerator;
pub use generators::ScriptGenerator;
pub use generators::TestGenerator;
pub use generators::GenericContractGenerator;
pub use generators::LibraryGenerator;
pub use generators::InterfaceGenerator;
pub use generators::AbstractContractGenerator;
pub use generators::ConfigGenerator;
pub use templates::ContractType;
pub use templates::TokenExtension;
pub use templates::SolidityTemplate;
pub use templates::StylusTemplate;
pub use language::Language;
pub use project::Project;
pub use project::ProjectType;
pub use project::CargoProject;

Modules§

error
foundry
generators
language
project
templates

Structs§

ContractBuilder
Builder pattern for creating contracts programmatically

Constants§

VERSION

Functions§

parse_extensions
Helper function to parse extensions from strings