-
First, clone the repository at https://github.com/Gaonuk/skystrife-public
-
Navigate into the cloned repository and install dependencies using PNPM:
pnpm i
- Start the development server:
pnpm dev
This will provide you with a world address.
-
Move back to this repository (redstone-composability-hackathon) and navigate to the contracts folder.
-
Ensure you have a .env file in the root directory of this repository with the following content:
WORLD_ADDRESS=0xf18058eaf60e826f0afdf2859a80716b587d5359
- Source the .env file:
source .env
- Deploy the bot extension script:
forge script BotExtensionDeploy --rpc-url http://localhost:8545 --broadcast
-
Go to http://localhost:1337, and click open & spectate on the default match
-
MatchId is shown on the URL when you spectate a game, copy it: example with matchId = 0x73ecf0f900000000000000000000000000000000000000000000000000000000
add the matchId to the .env file,
and execute
./join.sh
http://localhost:1337/?useExternalWallet=true
call process as many time as you want
./process.sh
to vote for the next 30 seconds slot:
./vote.sh 1 # vote for player 1
./vote.sh 1 # vote for player 1
./vote.sh 2 # vote for player 2
to vote instant (debug mode)
./forceVote.sh 2 # vote for player 2
./forceVote.sh 3 # vote for player 3
./forceVote.sh 3 # vote for player 3