Zk arcade repo
To install Beast, run the following command:
curl -L https://raw.githubusercontent.com/yetanotherco/zk_arcade/main/install_beast.sh | bash
- Rust
- Elixir
- Node.js
- Docker
- Foundry
-
You need to run Aligned locally.
-
Make sure you are running Docker.
-
Send funds to your wallet from anvil pre-funded account with:
cast send <YOUR_WALLET_ADDRESS> --value 10ether --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 --rpc-url http://localhost:8545
-
Add the
devnet
network to your wallet using the following parameters:- Network Name: Anvl
- Chain ID: 31337
- RPC URL: http://localhost:8545
- Currency Symbol: ETH
-
Deploy the Leaderboard contract with:
make deploy_contract NETWORK=devnet
-
Set the Contract proxy address in
web/config/dev.exs
:config :zk_arcade, :leaderboard_address, "<COMPLETE_ADDRESS_FROM_OUTPUT>"
-
Start the server:
make web_run
If you want to clean the database, run:
web_clean_db
As admin user, run:
cd /tmp
git clone [email protected]:yetanotherco/zk_arcade.git
cd zk_arcade
make debian_deps DB_PASSWORD=<>
make release
make release_install
As app user, run:
cd
to the repo
cd zk_arcade
- Generate a SECRET_KEY_BASE with:
MIX_ENV=prod mix phx.gen.secret
- Create the env file, depending on the network:
- mainnet
make create_env_mainnet DB_PASSWORD=<> SECRET_KEY_BASE=<> PHX_HOST=<> NEWRELIC_KEY=<>
- Run the service with:
make create_service
As admin user, run:
cd /tmp
git clone [email protected]:yetanotherco/zk_arcade.git
cd zk_arcade
make release
make release install
As app user, run:
systemctl restart zk_arcade --user