Inspiration

In the age of decentralized finance, online gaming, and the boom of Discord as a primary communication channel for crypto communities, we recognized the need to merge these worlds. Many servers wished to grant access based on verifiable on-chain actions, be it ownership of a particular NFT, staking a certain amount of tokens, or even just being a part of a specific DAO. Azero.gg was born from the desire to bridge the gap between blockchain verification and community access. We feel like Aleph Zero was the perfect environment in which to deploy our project, due to its performance and low transaction cost.

What it does

Azero.gg is a Discord bot that streamlines the integration of Aleph Zero with Discord permissions. It enables server administrators to create specific channels that can only be accessed when a user meets certain on-chain requirements. This ensures genuine participation, rewards holders of certain digital assets, and fosters an environment where value and actions on the blockchain can directly translate to privileges and access within a community.

How we built it

The project consists of 3 main parts:

  1. the bot itself: written in Serenity, a Rust library for interacting with the Discord API
  2. a slick frontend: written in React with NextJS, using the use-inkathon library for blockchain access
  3. the webserver that powers the integration with the frontend, used for signature verification.

The token balance checks are performed with a JSON-RPC connection to the Aleph Zero testnet via websocket. When a user wishes to gain access to a restricted channel, they provide the signature of a message, which the bot then verifies in real-time. Upon successful verification, the bot updates the user's permissions, granting them access to the channel. The entire process is automated, ensuring that server admins don't have to manually vet each request.

Challenges we ran into

Our team had never interacted or developed on the Aleph Zero blockchain prior to this hackathon. This means that we had to go through the basics just to understand how to call the blockchain nodes, as well as some pretty hardcore reverse-engineering on the Rust libraries made available by the community. We also had to ensure that false positives were minimized, ensuring that the bot wasn't being tricked by potential spoofing of on-chain signatures.

Accomplishments that we're proud of

We successfully merged the world of Aleph Zero with Discord, allowing communities to offer unique experiences based on decentralized verifications. We are ready to start integrating the bot with DAOs in the ecosystem.

What we learned

As mentioned above, our whole team was not familiar with the tech stack prior to this experience, so we learned a ton about the internals of Substrate and the choices Aleph Zero made to differentiate their tech stack.

What's next for Azero.gg

We aim to expand the number of features we support, allowing for a wider array of on-chain actions to be verified. Additionally, we're exploring integrations with other platforms beyond Discord. The vision is to make Azero.gg the de facto standard for on-chain action verification across all Aleph Zero community platforms.

To read more about the project, please check out the Github README file.

Bounties

ETHWarsaw foundation

Aleph Zero – tooling/infrastructure/fun

ETH Wallet for prizes: 0x09B7e9A980D011bC4C61fdF1f92Fe549eB9aef3b

Built With

  • inkathon
  • next
  • psp22
  • rust
  • serenity
Share this project:

Updates