Dear Astar Friends,
I am GuiGou, Astar Agent and founder of the Lucky and Lotto dApps.
Our plan is to build the Lotto dApp on Astar zkEVM.
Project Overview
Lotto is a free lottery in which participants choose 4 numbers between 1 and 50 and if their numbers match with the winning numbers, they win the jackpot.
There is draw every week. If there are numbers matching the draw, we have a winner! If there is no winner, the jackpot is put back into play.
Currently, it’s built with wasm smart contracts on Astar Network and Phat Contract on Phala Network and as the Phala team very well said (x.com)
Using a verifiable random function (VRF) for number drawing, the game ensures transparency and fairness. All data is recorded on the blockchain for easy verification.
Here is a presentation video: https://youtu.be/2NqkHoibHDc
The dApp is already live on Astar Native: https://lucky-ipfs.substrate.fi/lotto/astar
Since June 13, we had 4091 participations for 630 different wallets.
Our Plan
Currently, the dApp is live on Astar Native, and we would like to deploy it on Astar zkEVM as well.
The dApps on Astar zkEVM and Astar Native will share the same draw and the same jackpot (currently 4M PINK + 2400 ASTR).
This means the users will be able to play on Astar Native or on Astar zkEVM, depending on their preference.
For doing it, we will have to :
- write the evm smart contracts and deploy them on Astar zkEVM
- update the current indexer to read the participations from Astar zkEVM
- update the current wasm smart contracts deployed on Astar Native and Phala Network to manage the new smart contracts deployed on Astar zkEVM. All of these smart contracts must communicate together with a specific choreography. The smart contract deployed on Phala Network will communicate with the ink! smart contract deployed on Astar Native and also with the evm smart contract deployed on Astar zkEVM.
- update the UI to connect to Astar zkEVM
In the first version, if the winner comes from Astar zkEVM, he will have to claim the jackpot on Astar Substrate (we will use Astar Pass to do the link).
Then we will use Layer Zero technology to move the assets from Astar Native to Astar zkEVM so the winner can claim them on the right network.
In the same time, I will also rewrite my code in Phala blockchain sdk to remove the deprecated OpenBrush lib and use the last ink! version.
This way, the smart contracts will be able to benefit from the latest features (smart contract verification, Assets Chain Extension, …).
This SDK allows the smart contract deployed on Phala Network to communicate with ink! smart contracts and evm smart contracts deployed on Astar Networks.
Moreover, for a sustainable solution over time, players will have to stake on the Lotto dApp or a partner dApp (i.e. a dApp which also contributes to increasing the jackpot) to be able to play this lottery.
This will be implemented in a second version when the dApp will be fully available on Astar zkEVM.
With this feature, if the game is a success, the Lotto dApp should have community support but the UCG is required to bootstrap the initial development.
Team
-
@GuiGou is an application architect and technical agent for Astar
Github: GuiGou12358 (GuiGou) · GitHub -
Arno is a software engineer, web developer and ambassador for Polkadot, Phala, Acala and Talisman Sentinel
Github: arnobase · GitHub -
@Juminstock and @bao , both agent for Astar, are in charge of the community growth
dApp Staking Reward Usage Breakdown:
We are applying for Unstoppable Community Grants and we will use dApp staking rewards like this:
- 85% for the development
- 10% used for the community growth
- 5% used to grow the jackpot