https://github.com/sky0621/study-solidity
https://github.com/sky0621/study-solidity
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sky0621/study-solidity
- Owner: sky0621
- Created: 2023-07-11T00:27:40.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-26T05:38:02.000Z (about 1 year ago)
- Last Synced: 2025-01-21T13:28:13.303Z (6 months ago)
- Language: TypeScript
- Size: 345 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)
```