Skip to content

NodleCode/zksync-contracts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

ZkSync Contracts (compatible with foundry)

A simple repo to ensure the ZkSync Contracts (github, npm) are usable with forge fropm foundry.

Methodology

The contracts in the github repo are templates which are generated and prefilled when pushed to NPM. However forge does not support NPM packages, as such we fetched the raw content of the ZkSync NPM packages and dump it here in github where it can be forge install'd!

Updating

Download the tarball available via npm view @matterlabs/zksync-contracts dist.tarball, decompress it.

ie:

rm -rf l1 l2 && \
    curl -o contracts.tar.gz `npm view @matterlabs/zksync-contracts dist.tarball` && \
    tar -xzf contracts.tar.gz && \
    rm contracts.tar.gz && \
    mv package/l2 . && \
    mv package/l1 . && \
    rm -rf package

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published