Skip to content
This repository was archived by the owner on Jan 26, 2023. It is now read-only.
This repository was archived by the owner on Jan 26, 2023. It is now read-only.

Change kudos_token model to match new contract #135

@jasonrhaas

Description

@jasonrhaas

Now that we are supporting metadata in the Kudos.sol contract, it might make sense to make the kudos_token model structure to the contract.

This means taking most of the columns that are in the kudos_token table and making them a jsonb field. So accessing them via a Django query would change to something like filter(metadata__name='pythonista').

Other tables in the Gitcoin app already use the jsonb field, so this isn't too unconventional.

The new metadata json field would have a format similar to:

https://github.com/mbeacom/gitcoin-erc721/blob/add-metadata/metadata.json

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions