Go to file
Mitja Belak 8e10b9e585
Some checks failed
CI / Foundry project (push) Has been cancelled
CI / Foundry project (pull_request) Has been cancelled
Whoops deleted chainlink lib
2024-11-03 23:51:44 +01:00
.github/workflows chore: forge init 2024-10-18 13:26:28 +02:00
app Prevents sounds playing twice on boss modal, lowered the volume oflosing sound just a bit 2024-11-03 23:51:00 +01:00
broadcast/RaidGeld.s.sol Solves the issue with spamming requests 2024-11-02 12:28:19 +01:00
lib Whoops deleted chainlink lib 2024-11-03 23:51:44 +01:00
script can create a pool 2024-10-31 16:59:36 +01:00
src Adjusted buyins, adjusted rewards 2024-11-01 11:42:50 +01:00
test Boss color change + random test was crying 2024-11-01 11:54:39 +01:00
.gas-snapshot Connected wagmi to contract, changed Geld -> RaidGeld and minor contract changes 2024-10-22 13:36:49 +02:00
.gitignore 31337 chain id is already in gitignore, whoops 2024-10-28 18:32:43 +01:00
.gitmodules forge install: Baal 2024-10-31 04:48:27 +01:00
deploy_contract.sh Enables registrations with RGCVII and ETH 2024-10-28 18:31:41 +01:00
foundry.toml can create a pool 2024-10-31 16:59:36 +01:00
README.md Enables registrations with RGCVII and ETH 2024-10-28 18:31:41 +01:00
remappings.txt Adds Swap on registration so ETH goes and swaps for RGCVII tokens 2024-10-28 10:06:53 +01:00

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 --fork-url <YOUR BASE MAINNET RPC URL> --block-time 10 --chain-id 31337

You can get a free rpc url by registering with https://alchemy.com and creating an app

Be sure to set --chain-id to 31337 if you are forking mainnet base, otherwise it will deploy with Base chain id and metamask will glitch out.

2. Deploy contract

Use ./deploy_contract.sh script

This will deploy the contract and give you ETH and DAO Token (RGCVII) funds.

  1. Make sure to change DEV_WALLET var to your own.
  2. Make sure you have your private key on DEV_PRIVATE_KEY environment variable

Alternatively, check the script and run the steps as you see fit.

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

Add network http://127.0.0.1:8545 with chain id 31337

3. 2. Change app/contract_address.ts to match your program address if needed

3. 3. Reset metamask transaction history between anvil deployments

If u re-run anvil and redeploy the contract, do clear your history in Metamask under Advanced Settings, otherwise Metamask glitches because of its cache (?)

4. Fork tests

Run forge test --rpc-url <your base mainnet rpc url>

You can get a free rpc url by registering with https://alchemy.com and creating an app