Inspiration

We wanted to continue building on our social music platform, this time by adding on functionality for rewarding tokens for user interactions with the platform. For our proof-of-concept, we opted to send users tokens every time they logged into our website.

What it does

Our project uses one smart contract deployed on the Polygon network, an AWS API Gateway, Lambda function, and a Typescript frontend to create an example of a platform where logins enable users to gain reputation tokens.

How we built it

The contract is based on EIP-4974, which defines the Experience Token Standard. We thought this was a good starting point for our tokens, since they don't quite fit the ERC-20 use case, and aren't meant to be used in a financial fashion.

Challenges we ran into

Trying to get web3.py running in Lambda proved to be a challenge, as I've never had to package my libraries up before pulling them into a Lambda function. It was also hard to get the web3 provider set up correctly since there are so many different ways to accomplish the same task.

Accomplishments that we're proud of

0xThresh: This is the first time I've built a Lambda function capable of interacting with a smart contract. This was a combination of my two biggest tech passions (cloud and blockchain), so I was super excited to get to work on this.

What we learned

0xThresh: How to use web3.py in Lambda, and how to write a smart contract that complies with a specific ERC/ EIP, including adding separate functions that I may not have included if not for strict EIP compliance.

What's next for PRNTS Social Reputation

PRNTS is a larger platform that's had components built across multiple hackathons, and aims to use web3 technology to disrupt the music industry. The Social Reputation component we built for this hackathon is another piece of a larger puzzle we are continuing to create, which also includes Social Bounties to allow artists to collaborate and get paid without middlemen like Bandcamp.

Share this project:

Updates