TapeFoundry Docs
Docs menu

Parts and gates

The unit of the system is one NAND gate. Price, scarcity and supply are all derived from it.

What a part is

A part is a single NAND gate, held as an ERC-1155 token on the parts contract. There are two token ids: 0 for NAND and 1 for LATCH. Series 01 uses NAND exclusively.

Gates are fungible within their id: one gate is the same as another. What differs between drawings is how many gates a circuit needs, not which gates they are.

Why gates instead of a supply number

If a project says "100 editions", the number is arbitrary — it exists because someone typed it. If a project says "this circuit needs 46 gates, and 100 editions will be made", the supply has a physical meaning: 4,600 gates will be destroyed.

DrawingGates per cardCapGates consumed
MUL122,11850105,900
ALU161,196700837,200
DIV8976700683,200
MUL8916700641,200
CMP64842700589,400
CMP4621006,200
EQ8581005,800
SUB4511005,100
ADD4461004,600
MUL2431004,300
SHIFT4401004,000

The foundry holds 12,000,000 gates of capacity. That is the factory's ceiling, not the card supply: Series 01 uses 2,886,900 of them at cap, leaving room for later stages on the same processor.

Buying parts

mint(uint256 transistorId, uint256 amount)
// transistorId: 0 = NAND, 1 = LATCH
// value: amount × 0.0000234 + 0.0001 BNB

The protocol fee is charged once per mint, not per gate. Buying 46 gates in one call costs 0.0001 in protocol fee; buying them one at a time would cost 46 times that.

What happens to them

Gates never leave the parts contract as free-floating supply. When a card is taped out, the matching gates are burned from the buyer's balance. The burned count is recorded on the circuit and cannot be edited.

Parts are bound to one processor. Gates bought for this foundry only build this foundry's drawings. They are not transferable to another processor.

Leftover parts

If a tapeout fails after the mint, the gates stay in your wallet. Retrying the tapeout does not buy them again — the page reads your balance first and only mints the shortfall. Gates do not expire.