gnolang / hackerspace

Tinker, build, explore Gno - without the monorepo!
11 stars 8 forks source link

feat(gnorkle): add a simple ghverify agent service #91

Open leohhhn opened 2 months ago

leohhhn commented 2 months ago

Description

This PR adds a simple Go service which acts as an agent for the gno.land/r/gnoland/ghverify gnorkle oracle.

It does a few simple things:

  1. Listens for a verification request event on ghverify
  2. Checks if the user can create a public GitHub repo with the username provided for verification & random name (simple "proof of ownership" system)
  3. Sends a TX to tell the ghverify realm that the user indeed has ownership rights to the username, using an address that is whitelisted in the ghverify realm.

WIP

leohhhn commented 1 month ago

The blocker on this is currently the fact that you cannot listen to events from the Portal Loop. Also, left a few insights here

n0izn0iz commented 1 month ago

using the indexer? I pushed a fix to allow indexing portal loop here https://github.com/gnolang/tx-indexer/pull/95

n0izn0iz commented 1 month ago

we were also working on a ghverify agent FYI https://github.com/TERITORI/teritori-dapp/pull/1288