BetSwirl is a decentralized protocol allowing to play casino games on multiple chains.
The goal of this repo is to give developers some tools to interact easily with the protocol.
Feel free to reach us via Discord or Telegram if you need support!
We highly suggest you to read the dictionary to familiarize yourself with the terms used in the protocol before to start using it.
- Arbitrum
- Avalanche
- Base
- Binance Smart Chain
- Polygon
- Arbitrum Sepolia
- Avalanche Fuji
- Base Sepolia
- Binance Smart Chain Testnet
- Polygon Amoy
All our mainnets contracts have the same address on each network:
- Bank
0x8FB3110015FBCAA469ee45B64dcd2BdF544B9CFA
- CoinToss
0xC3Dff2489F8241729B824e23eD01F986fcDf8ec3
- Dice
0xAa4D2931a9fE14c3dec8AC3f12923Cbb535C0e5f
- Roulette
0x6678e3B4AB2a8C8Cdd068F132C21293CcBda33cb
- Keno
0xc3428E4FEb5C770Db51DCb9B1C08223B10994a89
- Weighted game(Wheel)
0xdec2A4f75c5fAE4a09c83975681CE1Dd1dff764b
=> You can find more info and the deployed testnet contracts here
=> You can find more info and the testnet subgraph query urls here
Paladin is our main auditor and has done 3 audits:
- 07/2024 Bank & Casino games
- 10/2024 PvP games & Wheel game
- 11/2024 Leaderboard & Freebet
=> Consult the audit results here
We use Chainlink VRF 2.5 to manage randomness. This is why a small fee in native token is requested for each bet. Here is the list of our subscriptions:
pnpm install
Install Biome extension
If you updated a package and you want to see the changes in the other packages, then run this command in the updated package:
pnpm run build
=> The dependencies of the other packages will automatically be updated with the new version.
pnpm change:version
pnpm change:publish