Home

Awesome

Transient Store Foundry Template

A foundry template with custom solc binaries (from transient-storage) that supports transient storage opcodes in inline assembly.

forge build --use bin/solc
forge test  --use bin/solc

Example contract

contract SimpleTStore {
    function tstore(uint key, uint value) external {
        assembly {
            tstore(key, value)
        }
    }
    function tload(uint key) external view returns (uint value) {
        assembly {
            value := tload(key)
        }
    }
}