🤝 Good Tokens 🤝

💭 Inspiration

As digital artists, we wanted to explore the potential of creating a more balanced model for art ownership, in which NFTs could be used to create positive impact, from addressing the environmental impact of crypto mining to encouraging engagement in targeted communities.

Smart contracts make it possible to imbue assets with agency, an opportunity to make the work itself a continuous, evolving project.

💡 Concept

Good Tokens is our radical new model for art ownership that guarantees works of art support causes artists care about.

Rather than just a transactional asset that is bought once and held, Good Token NFTs require continuous contribution or engagement with a cause. This creates a long-lasting relationship between the artist, art, owner, and supported organizations.

As one model to maintain ownership, buyers must accumulate Good Fund engagement tokens, the price of which track Good Data Feeds, oracles that index NGO real-world data.

👨‍🎨 Overview and Walkthrough

Good Tokens - Putting NFTs to good work

🏁 Live Demo Here!

Please connect to the Rinkeby network!

🖇️ Hosted Subgraph Here!

🌊 OpenSea Marketplace

🔨 Live Contracts and Other Links

The Good Tokens system consists of three main contracts, deployed to the Rinkeby testnet:

👍 Good Tokens Overview

Good Token Overview

🦾 Technical Overview

Technical Overview

🔗 Chainlink Oracle and Jobs

For this project we used a Chainlink oracle on the Rinkeby network at address 0x032887D0D0055e0f90447369F57EEb76b7a8e210. We leveraged the HttpGet, JSONParse, Multiply, EthUint256, and EthTx core adapters. Thanks to Javier, Keenan, Patrick, the excellent node-operator network for making this possible!

🌐 UNICEF, EEA, SDMX Data Queries

Many NGOs and non-profit organizations use the SDMX protocol to provide their data to 3rd parties. Our GoodDataFeed contract can register any open SDMX compatable data source and query data for a given year onchain via a Chainlink oracle and node for transparent and trusted data. For our prototype, we selected two data feeds from UNICEF, one focused on immunizations and the other on out of school rates, and we also used a greenhouse gas emission metric from the EEA.

🖇️ The Graph + IPFS

We leveraged The Graph to bind together the data from our contracts and our metadata stored on IPFS.

Interesting tidbits:

  • Event Handlers for GoodToken, GoodTokenFund, and GoodDataFeed contracts.
  • Block Handler to query and update subgraph if tokens on our GoodToken contract were revoked.
  • IPFS cat calls to pull in pinned metadata for frontend magic.

We would have liked to use Call Handlers as well in order to cut down on gas costs, however at this time they are not supported on Rinkeby (we wanted to stick with Rinkeby to test intergration with OpenSea);

You can view our hosted subgraph here!

🤯 Other Interesting Tidbits

For this project, we have proposed the GoodTokens, GoodTokenFund, and GoodDataFeed network. However, the GoodToken protocol can create conditional ownership systems reliant on any contract with a balanceOf or balanceOf(uint256) function selector (e.g. ERC-20, ERC-721, ERC-1155). This creates a range of interesting and compelling use cases. Some examples for target contracts are:

  • Liquidity Provider pool, which would ensure that the buyer of an NFT is involved and invested in a protocol.
  • POAP token contract, which would ensure the buyer is actively engaging in crypto events.
  • Governance or voting receipt token contracts, which would ensure that the buyer is actively participating in a protocol.
  • Volunteer hours tracking contract, to ensure buyer participates in community building programmes.
  • GoodTokens issued to companies that would be revoked if company stops supporting selected causes. This would hold companies accountable for supporting causes they claim to actively support.

🙏 Special Thanks to:

  • 🐦 Keenan and Patrick at Chainlink for amazing advice and support.
  • Javier for hosting a Chainlink node on Rinkeby.
  • Mehran at UNICEF for sharing the orgniazations inspiring vision for blockchain tech.
  • The Graph for making block-chain querying, IPFS integration, and frontent development an absolute pleasure.
  • Austin Griffith for incredible scaffold code-base to get started with.

Built With

Share this project: