solidity를 공부하면서 만드는 간단한 dapp들 실습한다.
git clone git@github.com:pumpkinzomb/solidity-study.git
cd '..your project foldername'
yarn install
cd hardhat
yarn install
yarn hardhat compile // if you want compile your contracts
yarn deploy '.. your deploy.js' // package.json에서 ropsten network로 설정함
- Counter dapp
- 0으로 등록된 store 상태값을 트랜잭션으로 1을 가산, 감산할 수 있는 간단한 dapp
- deployed smart-contract
- Bank dapp
- ERC20 기반의 토큰을 등록하고 입금, 출금을 할 수 있는 간단한 dapp
- deployed smart-contract
- Single Uniswap(P, Z Token)
- ERC20 기반 토큰 두개를 서로 스왑할 수 있는 dex pool dapp
- deployed smart-contract
- Single Uniswap(Eth with P)
- ERC20 토큰과 native token인 eth를 서로 스왑할 수 있는 dex pool dapp
- deployed smart-contract
- BrowserSolc를 이용하여 간단한 solidity 컴파일러 & deploy 로직 구현
- 간단한 solidity IDE
- Clone Uniswap v2
- Uniswap v2에서 blocktimestamp로 가격정보 oracle연동하는 부분제외하고 multipool부분만 구현
- 핵심은 Router 컨트랙트로 Factory-Pair 컨트랙트로 multipool과 liquidity token을 제어하는 것.
- 어려운 부분은 주석을 달아놓았음.
- deployed Uni2_Router
- deployed Uni2_Factory
- metamask에서는 ropsten network로 바꿔서 테스트하세요.