smelt :: tty0 :: --:--:-- █
MOUSE → perturb the AST
CLICK → re-transpile
SCROLL ↓
deterministic transpiler · v0.5 · live on onyx-1

Refine your Solidity contracts into native gno.land realms. No emulated EVM. Same input → same output, byte for byte.

curl -sSfL https://smeltcli.xyz/install.sh | sh

[01] // live browser compiler (wasm)Edit Solidity → Compile to Gno live

Zero installs, zero backend. Edit any preset or paste your own Solidity 0.8.x contract (even importing @openzeppelin or @prb/math) — official solc-js + smelt.wasm compile it right inside your browser.

open portbook (onyx) ↗
engine: solc 0.8.28 + smelt.wasmshortcut: Ctrl+Enter
click ▶ smelt or edit code to compile live
● Counter.sol (editable)solidity ^0.8.20
▶smelt convert
● outputready

        

[02] // pipelineSix passes. Zero magic.

Anything without a 1:1 equivalent (assembly, Yul) is isolated as a Hole node. By default: a safe TODO stub. With --ai=assist: it gets resolved, validated with gno test and pinned in smelt.lock.

00

solc

Typed AST via standard-json. Inheritance and types resolved.

01

c3flatten

C3 linearization: virtual, override, super.

02

modifiers

Deterministic inline expansion of modifiers.

03

types

uint256 → u256 checked. mapping → avl.Tree.

04

crossing

msg.sender → runtime.PreviousRealm(). cur realm.

05

hole?

assembly{} → TODO stub, or --ai=assist + smelt.lock.

[03] // clianalyze · convert · verify · deploy

smelt analyze ./contracts
CONTRACT          FUNCS  WARN  HOLE  DETERMINISTIC
Counter.sol        3/3     0     0   100.0%
SimpleERC20.sol    7/7     1     0   100.0%  (GRC-20)
BatchDisperse.sol  5/5     2     5   --ai=assist
──────────────────────────────────────────────────
ready for deterministic or verified hybrid build ✓
smelt convert --idiomatic SimpleERC20.sol
✓ solc      0.8.28  ast ok
✓ ir        ERC-20 + Ownable detected
✓ passes    c3 · modifiers · crossing · standards
✓ codegen   simpleerc20.gno (p/nt/grc20/v0)
✓ codegen   simpleerc20_test.gno
✓ codegen   gnomod.toml
deterministic · zero network calls ✓
smelt verify ./out/simpleerc20
=== RUN   TestSimpleERC20IdiomaticGRC20Flow
--- PASS: TestSimpleERC20IdiomaticGRC20Flow (0.01s)
ok      gno.land/r/nym-smelt001/demo_grc20  1.56s
smelt deploy ./gno/r/portbook --network onyx
smelt deploy (onyx / onyx-1)
  pkgpath : gno.land/r/nym-smelt001/portbook
  gnoweb  : https://onyx.testnets.gno.land/r/nym-smelt001/portbook

gnokey maketx addpkg -pkgpath gno.land/r/nym-smelt001/portbook \
  -chainid onyx-1 -remote https://rpc.onyx.testnets.gno.land:443 \
  -broadcast=true smelt-deployer

[04] // open sourceDon't trust. Read.

Smelt is a public repository. A transpiler that writes your contract should be as auditable as the contract itself: every pass, every runtime helper, every line the AI is allowed to touch.

get smelt_

Static binary. Requires solc 0.8.x and gno on your PATH.