glin-forge
v0.2.1
Published
Hardhat-style development environment for GLIN Network smart contracts
Downloads
8
Maintainers
Readme
glin-forge
Hardhat-style development environment for GLIN Network smart contracts.
Quick Start
No installation required! Use npx:
npx glin-forge init my-contract
cd my-contract
npm install
npx glin-forge buildInstallation Options
Option 1: npx (Recommended)
Use directly without installation:
npx glin-forge init my-projectOption 2: Global npm install
Install globally:
npm install -g glin-forge
glin-forge init my-projectOption 3: Cargo install
If you have Rust installed:
cargo install glin-forge
glin-forge init my-projectUsage
# Initialize a new project
npx glin-forge init my-contract
# Build contracts
npx glin-forge build
# Run tests
npx glin-forge test
# Deploy to network
npx glin-forge deploy --network testnet
# Start interactive console
npx glin-forge console
# Analyze contract code
npx glin-forge analyze
# And more...
npx glin-forge --helpHow it Works
This npm package downloads a pre-built native binary for your platform:
- macOS: x64 and arm64 (Apple Silicon)
- Linux: x64 and arm64
- Windows: x64
If a pre-built binary isn't available, it will attempt to compile from source using Cargo (requires Rust).
Requirements
- Node.js 16+ (for npx/npm)
- No Rust/Cargo required (pre-built binaries provided)
Features
- 🚀 Hardhat-style workflow
- 📦 TypeScript SDK and testing utilities
- 🎨 Interactive project initialization
- 🧪 Comprehensive testing tools
- 🔍 Built-in security analyzer
- 💻 Interactive console (REPL)
- 🌐 Multi-network support
- 📊 Full-stack dApp templates
Documentation
Visit docs.glin.network/glin-forge for complete documentation.
Examples
License
Apache-2.0
