A strategy game and swap protocol played with Jalebis.
This project integrates 1inch fusion API to perform $JLB (Jalebi) token swaps. Jalebi aims to be a play-to-win protocol where players challenge one another and battle their friends with Jalebis. One can get $JLB through the interface itself (thanks to 1inch fusion API).
Jalebi are ERC20 tokens deployed from a custom contract inheriting from OpenZeppelin's ERC20 implementation. JalebiProtocol is the custom implementation of the game with challenge(), accept(), and battle() functions.
The contracts are deployed on: Polygon zkEVM testnet, Scroll Sepolia Testnet, Sepolia Testnet, and Linea Testnet.
The contracts can be found here:
Links
I tried to integrate Infura's Gas API for efficient gas price suggestions but the API seems to be broken. Had to fall back to 1inch Gas API.
Almost all Linea test faucets were dried or out of service so had to procure LINEA from friends.