Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/allwin199/ethers-simple-storage
https://github.com/allwin199/ethers-simple-storage
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/allwin199/ethers-simple-storage
- Owner: allwin199
- Created: 2023-07-16T12:35:26.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-17T14:04:11.000Z (over 1 year ago)
- Last Synced: 2024-05-29T17:23:37.528Z (6 months ago)
- Language: JavaScript
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## To compile a contract using `solc` inside the terminal
`yarn solcjs --bin --abi --include-path node_modules/ --base-path . -o . SimpleStorage.sol`
- --bin = to get the binary
- --abi = to get the abi(Application Binary Interface)
- Use the --base-path and --include-path options to describe the layout of your project. --base-path represents the root of your own source tree while --include-path allows you to specify extra locations containing external code (e.g. libraries installed with a package manager).
- --base-path . = periodt refers to the same directory
- -o . = output the files to this directory
- Finally the contract file which we want to compileCompiled Files.
After compiling solc will output 2 files- abi of the contract
- binary of the contract