Key Features
LOTTERY SYSTEM (ChainLink VRF)
Random values without compromising security or usability.
Players spin the lottery. Depending on the number generated with Chainlink VRF, Players will receive the corresponding spacecraft and corresponding flight speed.
INVISIBLE WALLET (Smart Wallet)
Automatically generate personal wallets for all players. No need to connect your wallet or sign transactions. Simply login with email.
LEADERBOARD SYSTEM
Rank players according to the number of points they gain on the AVAX chain.
GASLESS (Account Abstraction)
Take care of the blockchain gas cost for your users to provide a seamless experience with the power of Account Abstraction. Player account and data persist, cross-platform and cross-device.
1. Claim Token Gate without spending Gas fees and without interacting with the wallet.
2. Claim Score Token without spending Gas fees and without interacting with the wallet.
3. Claim Rank on Leaderboard on AVAX without spending Gas and no need to interact with the wallet.
4. Receive Rewards without spending Gas and without interacting with the wallet.
Inspiration
Chainlink VRF (Verifiable Random Function): is a provably fair and verifiable random number generator (RNG) that enables smart contracts to access random values without compromising security or usability. For each request, Chainlink VRF generates one or more random values and cryptographic proof of how those values were determined. The proof is published and verified onchain before any consuming applications can use it. This process ensures that results cannot be tampered with or manipulated by any single entity including oracle operators, miners, users, or smart contract developers.
Account Abstraction & Smart Wallet on AVAX: Vitalik Buterin sees the account abstraction as a catalyst that can attract a billion users to the Ethereum network. Smart wallets can transform our interactions with blockchain technology, offering an impressively seamless and 'invisible' wallet experience. Although there are hurdles yet to be surmounted, account abstraction efforts are already playing a pivotal role in accelerating the adoption of Web3 by providing a more integrated and user-friendly blockchain ecosystem.
What it does
Chainlink VRF: Use Chainlink VRF to build reliable smart contracts for any applications that rely on unpredictable outcomes: Building blockchain games and NFTs. Building Lottery System in games.
Account Abstraction & Smart Wallet on AVAX: The incorporation of account abstraction in SpaceShip Racing Game has the potential to propel Web3 gaming to new heights. With simplified user experiences, games can attract a broader audience, transcending the boundaries of crypto enthusiasts. By removing the knowledge and technical barriers, game developers can scale their applications to reach millions of users worldwide. This expansion can lead to increased engagement, participation, and the establishment of vibrant gaming communities within the Web3 ecosystem. By eliminating the need for users to possess extensive crypto knowledge, the technology opens doors to widespread adoption and user engagement. As the world of gamification continues to evolve, account abstraction plays a crucial role in bridging the gap between blockchain technology and mainstream gaming. Embracing this innovation paves the way for a future of Blockchain.
What problem we try to solve? Enables smart contracts to access random values without compromising security or usability.
Account Abstraction & Smart Wallet on AVAX: Crypto wallets are a user's gateway to the world of blockchains — but the user experience for non-custodial wallets is pretty complex, and it poses one of the greatest obstacles to the mass adoption of web3. For a new user to interact with the blockchain, they must: not only create a wallet, but store their private keys and seed phrases securely, purchase native tokens to transfer value, pay gas, and sign every single action that they take on a dApp. With such an intimidating user experience, something must change! So these design limitations present many challenges:
Poor security: An EOA’s entire security is linked to one seed phrase. If you lose your private key and seed phrase, you may lose all your assets. And there are no social recovery options. Besides, you can’t set spend limits, 2FAs, etc. for security.
Lack of customization: Transactions from EOAs cannot be customized or automated. Owners must manually sign every transaction.
Gas payment: EOA owners must own ETH at all times to pay gas for transactions. They can not use any other token.
Poor overall UX: All of the above make for a poor user experience which is not suited for most new users.
Our Vision
Chainlink VRF: Increased randomness for game rewards and game elements.
Account Abstraction & Smart Wallet on AVAX: When it comes to gaming, players want immersive experiences without any technical interruptions. They want to focus on playing the game, not on complicated wallet configurations or multiple transaction authorizations. This is where Account Abstraction comes in, and here's why:
User-Friendly: It simplifies the user experience by hiding complex technical aspects. No more dealing with private keys or gas payments directly.
One-Time Authorization with Session Keys: Our session keys allow players to authorize once, and they're all set. No more repetitive transaction approvals.
Seamless Integration with Games: Allows a perfect interface with games, enhancing the overall player experience.
How we built it
We use Chainlink VRF. We use account abstraction and smart wallet technology on AVAX combined with Unity engine to build Game SpaceShip Racing.
Challenges we ran into
Looking for infrastructure to use account abstraction and smart wallets: Bundlers and Pay Master.
Accomplishments that we're proud of
Understand details about Chainlink VRF and its application in games. Seamless Integration with Games: Allows a perfect interface with games, enhancing the overall player experience.
What we learned
Chainlink VRF and its application in games. Deep dive into account abstraction and smart wallets on AVAX.
What's next for Seamless Blockchain Game with Smart Wallet and ChainLink VRF
- Apply to open inventory to receive NFT.
- Saves player progress on chain
- Sell multiple NFTs to increase player power
- Create an exchange for NFTs and game items
Smart Contract Address
Smart Contract Address to use Chainlink VRF on AVAX
0xD0dF3E0Fd752F8391926621Aa6B949c1f0c3Aa17
https://testnet.snowtrace.io/address/0xD0dF3E0Fd752F8391926621Aa6B949c1f0c3Aa17
Account Factory
0xe69C9077b3F12939EFCd673171A4489f0f1370da
https://testnet.snowtrace.io/address/0xe69C9077b3F12939EFCd673171A4489f0f1370da
ERC721
0xDC9E649a41D2aC862b0Ac4bE764FE452079252a7
https://testnet.snowtrace.io/address/0xDC9E649a41D2aC862b0Ac4bE764FE452079252a7
ERC20
0xAD1E8389FA2B6885937c3B4De702249DBA6a0C54
https://testnet.snowtrace.io/token/0xAD1E8389FA2B6885937c3B4De702249DBA6a0C54?chainId=43113
ERC1155
0x3A10394497717d5B2E6e6334AFa74230e751F4e0
https://testnet.snowtrace.io/address/0x3A10394497717d5B2E6e6334AFa74230e751F4e0
Leaderboard
0xf24CDD7513E2A7697Eb5f7e1Af7Acea52b015F46
https://testnet.snowtrace.io/address/0xf24CDD7513E2A7697Eb5f7e1Af7Acea52b015F46
Github Repo:
Smart Contract Account to use Chainlink VRF
https://github.com/KelvinTrinhSG/Test-ChainLink-VRF
Game Github
https://github.com/KelvinTrinhSG/SpaceShip-Racing-Game-On-AVAX
Built With
- javascript
- thirdweb
- typescript
- unity
Log in or sign up for Devpost to join the conversation.