Quick start
Pinout reads a TapeOut circuit from X Layer, lets you name its pins, and writes Solidity that calls it with ordinary values.
- Open the generator and enter a processor number and circuit id, or pick an example.
- Name each pin. Type values into the inputs and check that the outputs say what you expect.
- Download the library and its test into your Foundry project.
- Run the test against mainnet state:
forge test --fork-url https://rpc.xlayer.techThen call the circuit:
import {Adder16Pinout} from "./Adder16Pinout.sol";
uint24 sum = Adder16Pinout.eval(Adder16Pinout.Inputs({a: 1200, b: 345})).sum;