gblend Overview
gblend Overview
gblend
is a specialized Foundry forge wrapper designed for hybrid Solidity and WebAssembly (WASM) smart contract development on Fluent Network. It seamlessly integrates Rust-based WASM contracts with traditional Solidity development workflows.
🎨Key Features
- Rust to WASM Compilation - Compile Rust smart contracts to WebAssembly
- Hybrid Development - Seamlessly work with both Solidity and WASM contracts
- Reproducible Builds - Docker-based compilation ensures consistent WASM builds
- Full Verification Support - Verify both Solidity and WASM contracts on-chain
- Foundry Compatible - Maintains full compatibility with existing Foundry projects
The CLI usage is nearly identical to standard Forge, with a few Fluent-specific extensions. For example, to verify WASM contracts, you must pass the --wasm
flag.
💡Prefer working with Hardhat?
Although gblend
is forked from Foundry's forge and works really well within the Foundry dev environment, it's also possible to use Hardhat if that's your preferred dev environment.
Please refer to the Foundry documentation on integrating Hardhat and Foundry and use the same strategy when using Fluent's gblend
.
Additional Resources
Next up
- Installation: Installation instructions for
gblend
. - Using
gblend
: Learn the basic commands to start building withgblend
. - Troubleshooting: Find the most common issues and best practices.
- Developer guides: Find out further how to use
gblend
by following along with the developer guides.