Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sky0621/study-solidity
https://github.com/sky0621/study-solidity
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/sky0621/study-solidity
- Owner: sky0621
- Created: 2023-07-11T00:27:40.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-22T05:29:40.000Z (about 1 year ago)
- Last Synced: 2023-10-22T06:22:46.761Z (about 1 year ago)
- Language: TypeScript
- Size: 284 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# study-solidity
## project setup
### setup typescript
```
npm init -y
``````
npm install --save-dev hardhat
```### setup hardhat
```
npx hardhat
```#### compile
```
npx hardhat compile
```#### test
```
npx hardhat test
``````
npx hardhat coverage
```### ERC20
#### deploy original token
at erc20/
```
ts-node scripts/deploy.ts --name SkyToken --symbol SKYT --decimals 18
```ERC20 contract deploy address 0x01dFDC3F63410540D130D779677E6077e5e403Da
Transaction URL: https://sepolia.etherscan.io/tx/0x97cb0af0c91de10634f3b18535c4386e80dca329b3744eacad98e94bc07c9507#### mint original token
at erc20/
```
ts-node scripts/mint.ts --network sepolia --contractAddress 0x01dFDC3F63410540D130D779677E6077e5e403Da --accountAddress 0x99999999 --amount 150
```## install
### commander
```
npm install commander --save-dev
```### dotenv
```
npm install dotenv --save-dev
```## memo
```
export $(cat .env | xargs)
```