Issue To Be Solved
We will need to store the tagline/description for each play on chain in order to have parity with the Alchemy API used by Meta.
Example description:
"When the game is on the line, get the ball to your vet. Milwaukee Bucks guard Jrue Holiday attacks Memphis Grizzlies defender Dillon Brooks in the final seconds of a close March 4, 2021 ball game then steps back into a clutch mid-range jump shot to seal the victory."
Currently our on-chain descriptions are defined here:
https://github.com/dapperlabs/nba-smart-contracts/blob/master/contracts/TopShot.cdc#L607-L617
Open questions:
Should we create a new 'tagline' field/trait for this, or override our existing description field?
Should the map that stores the link between play id and tagline be defined in a ledger contract, or stored as a resource on a well known account?
Issue To Be Solved
We will need to store the tagline/description for each play on chain in order to have parity with the Alchemy API used by Meta.
Example description:
"When the game is on the line, get the ball to your vet. Milwaukee Bucks guard Jrue Holiday attacks Memphis Grizzlies defender Dillon Brooks in the final seconds of a close March 4, 2021 ball game then steps back into a clutch mid-range jump shot to seal the victory."
Currently our on-chain descriptions are defined here:
https://github.com/dapperlabs/nba-smart-contracts/blob/master/contracts/TopShot.cdc#L607-L617
Open questions:
Should we create a new 'tagline' field/trait for this, or override our existing description field?
Should the map that stores the link between play id and tagline be defined in a ledger contract, or stored as a resource on a well known account?