
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
evmcontracts
Advanced tools
When browsing any evm blockchain, it is often useful to be able to see the source code of a contract. This is especially true when trying to understand the behavior of a contract, or when trying to verify the behavior of a contract. You may be able to hack around and see it on etherscan but really you know your true home is your IDE (any IDE). This tool allows you to fetch the source code of a contract from the blockchain, and create you the full project files for you to view in YOUR IDE, support to deploy on a local node, compile if you choose to. This uses etherscan API to grab the verified sources of the contract. It will keep the same directory structure as how the contract was deployed, alongside all of the dependencies it uses, the project evmc fetches for you will be ready to go!
🚀 Fetch the source code of a contract from the blockchain and use it in your favourite editor
🚀 Support for hardhat project instantly creating you a hardhat project template with the compile, deploy scripts and local node running all ready to go.
🌐 Ethereum Mainnet - eth
🌐 Ethereum Ropsten - eth_ropsten
🌐 Ethereum Rinkeby - eth_rinkeby
🌐 Ethereum Goerli - eth_goerli
🌐 Ethereum Kovan - eth_kovan
🌐 Binance Smart Chain Mainnet - bsc
🌐 Binance Smart Chain Testnet - bsc_testnet
🌐 Polygon Mainnet - polygon
🌐 Polygon Mumbai - mumbai
🌐 Avalanche C-Chain - avalanche
🌐 Avalanche Fuji - avalance_testnet
🌐 Fantom - fantom
🌐 Fantom Testnet - fantom_testnet
🌐 Optimism - optimism
🌐 Optimism Goerli - optimism_goerli
🌐 Arbitrum - arbitrum
🌐 Arbitrum Goerli - arbitrum_goerli
🌐 Cronos - cronos
🌐 Cronos Testnet - cronos_testnet
$ npm install evmcontracts -g
$ yarn global add evmcontracts
Once installed it will expose a command called evmc
which can be executed anywhere.
please note when executing these commands it will create a folder with the name of the contract in the current directory you are in, unless you use --output
To get just the contracts without any development tool:
$ evmc get <network> <contractAddress>
To get the contract and setup a hardhat development environment, with deploy scripts and compiling ready to go:
$ evmc get <network> <contractAddress> --hardhat
already supported by the foundry team already it seems.. nice work!
$ evmc get <network> <contractAddress> --output=PATH_DIRECTORY
The following features are coming soon:
🚀 allow you to interact with the contract without downloading them on your machine
🚀 ability to config your main network and development kit (to avoid repeating yourself)
🚀 ability to fetch multiple contracts at once with a yaml file
🚀 bring your own API key
I have generated API keys so its plug and play but these are rate limited at 5 requests per second, this should be plenty as long as the tool does not used by thousands of people, these are free API keys so nobody has motive of stealing them. Above we bring a way to bring your own API key in anyway so if this ever happens we can migrate and make it best practice.
FAQs
a simple cli tool to load a contract code up in your IDE instantly.
The npm package evmcontracts receives a total of 4 weekly downloads. As such, evmcontracts popularity was classified as not popular.
We found that evmcontracts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.