1
0
forked from mico/idle_moloch
idle_moloch/README.md

28 lines
840 B
Markdown

# SLAY THE MOLOCH
Idle game & shitcoin advanture dedicated to cohort VII of Raid Guild.
## Set up for local DEV
### 1. Run `anvil` to setup local RPC as a fork of base mainnet
`anvil --block-time 5 --rpc-url <you'r base mainnet rpc url>`
You can get a free rpc url by registering with https://alchemy.com and creating and app
### 2. Deploy contract
Either use `./deploy_contract.sh` script (!! change contract values and set private key to $DEV_PRIVATE_KEY for it to work) or call those things by hand.
### 3. Run dev app
Move to `app` dir, install deps via `npm install` and run `npm run dev` to start the dev server.
#### 3. 1. Point Metamask to Anvil network for local dev
#### 3. 2. Change `app/contract_address.ts` to match your program address if needed
### 4. Fork tests
forge test --rpc-url <your base mainnet rpc url>