Repository navigation
Ikonik 1.8: Smart-Contract Target (--target solidity) + v1.8.0 - #21
Merged
Merged
Conversation
…ix ternary literal typing (Phase 170)
…1.8.0 lockstep (Phase 171)
…ch full git history in CI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary — Ikonik 1.8: Smart-Contract Target (
--target solidity) + v1.8.0First milestone on the Ikonik rung (Phases 167–171), bringing Morphic specifications to zero-warning Solidity
^0.8.24pure contracts backed by Z3 verification, proof-carrying bundles, and real EVM bytecode execution.What Ships
docs/ikonik-167-solidity-audit): Executable audit (IKONIK_18_AUDIT.md,tests/phase167_solidity_probes.rs) measuring Morphic ↔ Solidity type/ABI gaps,require:translation, negative-division & overflow boundaries, toolchain availability, and 6 Tier-1DeFiMathexhibits; D1–D9 ratified(a)by the owner on 2026-11-26.feat/ikonik-168-freeze-solidity): FrozenIKONIK_18_SCOPE.md(D1a–D9a, 5-clause gate + closing line verbatim) + core Solidity emitter (src/codegen/solidity.rs,"solidity" | "sol"incodegen::generate/api::render,.soldefault CLI extension):Int→int256,Bool,I8..I64,U8..U64,String→string memory,List<scalar>→<scalar>[] memory,Unitreturn-only).require(<cond>, "Precondition violated");via dedicatedconstraint_to_soliditywalker — hard-refusesForall/Existsand unrenderable expressions (never emitsrequire(true)).public pureentrypoints + deduplicatedinternal puretransitive prelude helpers + on-demand_morphic_append_*/_morphic_clone_*memory-array helpers +keccak256(bytes(...))string equality + explicit D8a NatSpec proof-boundary disclosure.CodegenErrorrefusals on all 17 non-direct-ABI stdlib entries, unsupported types, and unsupported IR nodes.WinnerReport.rendersunchanged at 6 targets (D6a); zero new Cargo dependencies.feat/ikonik-169-contract-pcc):morphic build --contract-from <file.morph>(codegen::solidity::assemble_user_contract, native-only) sharingadmit_user_specs, emitting<Module>.solwith per-function NatSpec provenance (tier,verdictBasis,battery,bundle,bundleSha256) alongside companionbundleVersion: 1PCC bundles (<entry>.bundle.json), plus the committed 6-spec exhibitexamples/contracts/defi_math.morph.feat/ikonik-170-evm-harness): Pinnedsolc@0.8.28+@ethereumjs/evm@3.1.1+ethers@6.13.4Node EVM runner (tests/solidity_evm_runner.cjs, cached in scratchtarget/solidity-harness/). Caught and fixed a realsolc@0.8.28Error 1080ternary literal-typing defect insrc/codegen/solidity.rs. Measured across 22 contracts, 0 errors, 0 warnings, 157/157 real EVM calls, 16/16 real EVM reverts.feat/ikonik-171-gate-merge):tests/phase171_gate.rs— PASS in full, frozen gate text unamended)..github/workflows/ci.yml(Solidity compile + EVM execution (1.8)).1.8.0release stamp: crate +Cargo.lock(1 line),@thvtzy/morphic(77 files, 71,873 B ≤ 76,800 B), Rust facademorphic(7 files, 57,613 B), PCC bundles byte-identical (267,156 B), both WASM components rebuilt atmorphic:library@1.8.0(morphic-library.wasm80,558 B ≤ 106,496 B;morphic-callbacks.wasm66,011 B ≤ 90,112 B), andpackages/vscode/morphic-1.8.0.vsix(324 files, 486,881 B).Verification Evidence (Solo, 3 Frozen Configurations on Stamped
1.8.0Tree)cargo test --no-fail-fast: 1010 passed / 0 failed / 29 ignored (68 binaries)cargo test --features bootstrap-codegen --no-fail-fast: 1010 passed / 0 failed / 29 ignored (68 binaries)cargo test --no-default-features --no-fail-fast: 865 passed / 0 failed / 22 ignored (68 binaries)cargo test --no-default-features --features wasm-playground --lib codegen: 67 passed / 0 failed / 10 ignorednpm publish --dry-run(@thvtzy/morphic@1.8.0) andcargo publish --dry-run(morphic v1.8.0): both exit 0 (live publishes remain owner-only).0tracked files withw/crlf).