- Solana Test Validator
- Rust
- Anchor
- Wasm-pack
- yarn
- ts-node and typescript installed globally
scripts/deploy.sh
assumes dominary-arc and sol-arc are in the same directory.
git clone git@github.com:spacemandev-git/dominari-arc.git
git clone git@github.com:JumpCrypto/sol-arc.git
cd dominari-arc
anchor build
cd dominari-sdk
./build.sh
cd dominari-sdk-bundler
yarn link
cd ../../client-next-js
yarn link dominari-sdk
# Run this in a seperate terminal so it can run
solana-test-validator --bpf-program GN5Ww5qa8ej4evFCJxMhV6AFEPKhD1Drdu8qYYptVgDJ deps/core_ds.so
./scripts/deploy.sh
Use a private key that has tokens on your local test validator (usually ~/.config/solana/id.json)
cd ./client-ts
yarn install
yarn ts-node admin.ts <path_to_private_key> H5mieGWWK6qukHoNzbR6ysLxReeQC4JHZcNM6JkPQnm3 3YdayPtujByJ1g1DWEUh7vpg78gZL49FWyD5rDGyof9T
cd ./client-nextjs
yarn dev
This will create a new key for the player, airdrop a couple SOL into the key. Create a new game using 2playerconfig.toml found in public/configs in client-nextjs. After the game is created, there will be an alert telling you the game id. Refresh the page (TODO error). Select the game from the drop down. Then switch over to the game tab. Then register a player at the top of the page. Refresh the page (TODO error). Load in again, select game from dropdown, then you should have the player on the top of the page. Hit Play/Pause to start the game, then click any + icon on the map to spawn units.