- Clone the Repo
- Run
solana-test-validator
in a new terminal - Run
anchor build
followed byanchor-deploy
- Now close the terminal running the testnet
- Run
anchor test
and verify
Vaults
(Token Accounts) get created with aCheck
account usingregisterPlayer
RPC.- Once Backend decides the Match (1v1),
startMatch
RPC is called with both playerCheck
Accounts. - After a winner is decided, Backend sends the respective Check(winner's check pubkey) via
concludeMatch
RPC with both playersVaults
and losersCheck
account and itsPDA
. Please refer testscript for reference - NOTE: Transfer of funds happen from Loser Vault → Winner Vault in the
concludeMatch
RPC. - Winner gets the Claim Option which will trigger
claimPrize
RPC. This call will transfer funds from Winner Vault → Winner Wallet.
- Vault Generation RPCs
- Match Making RPCs
- Wallet ↔ Vault Transfers
- Cancel Button RPC