idle_moloch/README.md
Mitja Belak cabfc5e758
Some checks are pending
CI / Foundry project (push) Waiting to run
Towers goes on cooldown during raiding
2024-10-23 13:17:28 +02:00

865 B

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

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. Run cast rpc anvil_mine

This is so time gets set on the local chain, otherwise you will start at 0 time and first mint will give you bajillion GELD.

3. 2. Point Metamask to Anvil network for local dev

4. Local development requires mining blocks by hand

Call cast rpc anvil_mine to mine next block, otherwise it wont ever progress and time "stands still" as far as the game is concerned