romariokav.in
  • home
  • timeline
  • projects
  • travel
  • gallery
projects/1 BC · Sep 2024

Grand Nouns Auto

2nd, 1inch Fusion+

Grand Nouns Auto, 1 of 4
hackathon
ETHGlobal Singapore
when
Sep 2024 · 1 BC
where
ETHGlobal Singapore · in person
won
  • 1inch Integrate Fusion+ into your project · 2nd place
  • Phala Network Best use of Agent Contract · 2nd place
made with
  • Gnosis
  • IPFS
  • 1inch
  • Nouns
  • AI agents
showcasesourceon the timeline

what it is

Overview

"Grand Nouns Auto" is an innovative gangster-themed game that fuses action-packed gameplay with decentralized finance (DeFi) education. The player assumes the role of a rising city figure aiming to overthrow the current kingpin and take control of the streets. Throughout the game, players complete missions by executing DeFi actions and answering DeFi-related questions, helping them learn and master complex decentralized financial concepts through engaging, gamified experiences. The game makes use of advanced AI, blockchain integration, and NFTs, all working together to create a one-of-a-kind "Earn While You Learn" platform.

Core Features

Protagonist Journey

Players take on the role of an ambitious gangster looking to rise to power by challenging the city’s underworld kingpin. Through a series of missions, users navigate through scenarios involving DeFi operations, combining financial education with action-packed, story-driven gameplay.

Gamified DeFi Education

Each mission in the game revolves around the completion of various DeFi tasks such as swapping tokens, staking, placing limit orders, cross-chain transactions, and more. By succeeding in these tasks, players not only advance in the storyline but also learn intermediate to advanced DeFi concepts.

AI-Powered NPCs

All non-playable characters (NPCs) in the game are powered by AI via the Phala Network using the AI Agent Template. These AI-driven NPCs create a dynamic and responsive environment, giving players a lifelike gaming experience. They also guide players through the DeFi process by giving hints or challenges based on the game’s progress.

Web3 & Blockchain Integration

  • Phala Network hosts the game via IPFS, using thirdweb to push the game code for decentralized hosting.
  • Missions are tied to the player's wallet address, which is analyzed at specific intervals using the 1inch Fusion Plus SDK to check whether the tasks are performed properly.
  • 1inch APIs facilitate various DeFi actions like token swaps, staking, and cross-chain transactions. Players are rewarded for performing these actions successfully, earning in-game rewards that help them progress.

DeFi Transaction Analysis & Attestation

After completing missions, the player’s recent wallet transactions are reviewed to verify whether they’ve completed the assigned DeFi tasks correctly. This verification process is carried out via the 1inch Fusion Plus SDK.

how it's made

Building Grand Nouns Auto involved leveraging a mix of technologies, primarily using React and Phaser for an engaging and responsive gaming experience. Here’s a detailed look at how the project came together:

Technologies Used

React: This framework facilitated a dynamic user interface, allowing for seamless updates and interactions within the game. It helped manage the game's state effectively and provided a responsive experience for players.

Phaser: We chose Phaser as our game engine for its powerful 2D capabilities, which allowed us to create immersive action gameplay. Its flexibility made it easy to integrate various game mechanics and animations.

AI-Powered NPCs: Non-playable characters are driven by AI via the Phala Network using the Redpill API. This integration enables NPCs to interact intelligently with players, providing hints and challenges based on their progress.

Blockchain Integration

Gnosis Chain: Selected for its low transaction costs and quick processing times, it supports secure in-game transactions.

1inch Fusion Plus SDK: This SDK was integrated to track player wallet addresses and facilitate DeFi actions like token swaps and staking.

Sign Protocol: After completing missions, we used this to create attestations for successful DeFi actions, linking gameplay to real-world finance.

NFT Integration: Characters are sourced from the Nouns DAO collection, giving the game a unique visual identity and connecting it to the NFT ecosystem.

Hardware Wallet Support: We integrated Ledger hardware wallets to ensure secure transactions, enhancing player safety and introducing them to blockchain practices.

How Technologies Are Pieced Together

The React frontend communicates with the Phaser game engine to manage gameplay, while smart contracts handle mission logic and attestations. Player interactions with AI NPCs are powered by the Phala Network for which we used the Redpill AI agent Templated, creating a dynamic and engaging experience.

Partner Technologies

The collaboration with the Phala Network and the 1inch APIs greatly enhanced our capabilities. Phala allowed for privacy-preserving AI interactions, while 1inch facilitated smooth DeFi transactions, making complex tasks accessible to players.

Notable Hacky Solutions

A standout feature was the creation of a real-time feedback loop for players’ DeFi tasks. We developed a system that analyzes wallet transactions dynamically, enabling instant attestations. This involved a clever combination of smart contract triggers and off-chain data processing, ensuring that players received immediate feedback on their actions.

nearby

  • WeatherProofalso IPFS, AI agents
  • Cheque-Fialso IPFS, AI agents
← earlierGnomesAndKnightslater →OurFunds