unlock icon indicating copy to clipboard operation
unlock copied to clipboard

Add referrer to token attributes

Open boskiv opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe. I want to see refer id in the token to understand who sells token to the user (marketing conversion rate calculation) We have a vast partner network and expect a thousand sales(minting tokens) per month. We want to know a partner conversion and display it on or partner's website for us and the partners themselves.

Describe the solution you'd like One of solution can be add refer to token attributes with new trait type refer

{
"name": "Unlock Key",
"description": "A Key to an Unlock lock. Unlock is a protocol for memberships. https://unlock-protocol.com/",
"image": "https://locksmith.unlock-protocol.com/lock/0xaf5c99Dd10f7A85FafBD1D4e0E7DEE31572808E4/icon?id=16",
"expiration": 1688583318,
"tokenId": "16",
"owner": "0xf56023803a4419136e94c044d16cc758db0452ce",
"attributes": [
{
"trait_type": "Expiration",
"display_type": "date",
"value": 1688583318
},
{
"trait_type": "refer",
"display_type": "string",
"value": "0xf56023803a4419136e94c044d16cc758db0452ce"
}
],
"keyId": "16",
"lockAddress": "0xaf5c99Dd10f7A85FafBD1D4e0E7DEE31572808E4",
"network": 137
}

Describe alternatives you've considered Any other options how to link token with refer (or checkout page) are welcome.

boskiv avatar Jun 22 '23 07:06 boskiv

Adding a bounty to that so we can add it to the subgraphs!

julien51 avatar Jan 29 '24 18:01 julien51

@0xTxbi interested in that one? We can add a 100 USDC fee!

julien51 avatar Jul 22 '24 17:07 julien51

sure thing, lgtm!

0xTxbi avatar Jul 22 '24 19:07 0xTxbi