#foundry #cli #blockchain #smart-contracts

app scpull

Pulls a smart contract via etherscan and initializes a new foundry project for it

1 unstable release

0.1.0 Dec 18, 2024

#12 in #foundry

Download history 103/week @ 2024-12-18 1/week @ 2024-12-25

104 downloads per month

MIT license

24KB
120 lines

ScPull

Pulls smart contract code from etherscan and creates a new foundry project for it.

Usage

ScPull can be used in the following way: scpull <CHAIN> <ADDRESS> <PATH>

Where chain is either an alias or a chainid and address is the address of the smart contract.

Aliases

ScPull supports aliases for selecting the chain. Supported aliases are the following.

    eth: Ethereum
    op: Optimism
    bsc: Binance Smart Chain
    poly: Polygon
    base: Base
    arb: Arbitrum
    lin: Linea
    linea: Linea
    era: ZkSync Era
    zksync: ZkSync Era

Dependencies

~24–37MB
~627K SLoC