Work Completed

After a long time in conversation with the dune support, we needed the value of the grossNetworkProduct function that returns the gdp in eth for each network (mainnet, xdai, polygon). We proceeded to make a separate dashboard with embedded code of dune queries in nextjs and ethersjs. With ethersjs we can interact with the abi of the unlock contract directly and show the user the result.

the dashboard can change the time interval of the dune queries in the same dune, for that a button that leads to this was enabled.

To change the time interval you must select in dune the option "since first block" and set it to false, take the desired time and click on "apply".

This dashboard is predefined to calculate from the first block time

You can view the final dashboard: Unlock-Dashboard/nextjs

Dune

* I uploaded the smart contracts for each network to Dune Analytics * I created one dashboard with the information requested for each network * Ethereum Mainnet * Xdai * Polygon

Tasks:

  • Total GDP
  • Locks deployed
  • Keys created
  • Most 10 active locks(orderer by the most keys created)

Unlock Dashboard Link:

Unlock-Dashboard