project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4
project screenshot 5

Jalebi Protocol

A strategy game and swap protocol played with Jalebis.

Jalebi Protocol

Created At

ETHIndia 2023

Winner of

Scroll - Deploy on Scroll

Prize Pool

Project Description

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:

  1. 0x978ad5f2baa8f32e1e67c389ace822190a3e5dbe (Protocol contract on Linea testnet)
  2. 0x8652f9668947174998faa10faa6e2c1a82c1adae (Token contract on Linea Testnet)

Links

How it's Made

  1. 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.

  2. Almost all Linea test faucets were dried or out of service so had to procure LINEA from friends.

background image mobile

Join the mailing list

Get the latest news and updates