Skip to content

hrkrshnn/tstore-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)
        }
    }
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published