# Is NBA TopShot contract going to be open sourced?

**URL:** <https://forum.flow.com/t/is-nba-topshot-contract-going-to-be-open-sourced/334>\
**Category:** 🏄🏻‍♀️ Cadence\
**Created:** [July 12, 2020, 3:58pm UTC](https://forum.flow.com/t/is-nba-topshot-contract-going-to-be-open-sourced/334 "2020-07-12T15:58:35Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![makoto](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/makoto/32/5_2.png) [@makoto](https://forum.flow.com/u/makoto)\
**Post date:** [July 12, 2020, 3:58pm UTC](https://forum.flow.com/t/is-nba-topshot-contract-going-to-be-open-sourced/334/1 "2020-07-12T15:58:35Z")

</div>

I would like to build something which has some composability against NBA TopShot. It would be great if I can look into the smart contract code so that I can figure out what I can build on top of it.

---

<div class="post-metadata">

**Author:** ![unlocked](https://avatars.discourse-cdn.com/v4/letter/u/3be4f8/32.png) [@unlocked](https://forum.flow.com/u/unlocked)\
**Post date:** [July 12, 2020, 6:41pm UTC](https://forum.flow.com/t/is-nba-topshot-contract-going-to-be-open-sourced/334/2 "2020-07-12T18:41:19Z")

</div>

Hi @makoto, yes we have received many similar requests on potentially building experiences/services on top of [NBA Top Shot](https://www.nbatopshot.com/). That is the beauty of crypto based applications, where composability from other teams can enhance the experience for end users and possibly increase the value of the assets users hold.

We haven’t set a specific date yet, but we are planning to open source the NBA Top Shot smart contracts soon. at least the parts related to NFT minting and management. OWB participants will be the first ones to have a quick preview when the time comes. Stay tuned, we will keep you all updated 🙂

---

<div class="post-metadata">

**Author:** ![makoto](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/makoto/32/5_2.png) [@makoto](https://forum.flow.com/u/makoto)\
**Post date:** [July 13, 2020, 8:00am UTC](https://forum.flow.com/t/is-nba-topshot-contract-going-to-be-open-sourced/334/3 "2020-07-13T08:00:42Z")

</div>

Looking forward to for these contracts to be opensourced.

In the mean time, can you let us know if the following information is on chain so that I can write a smartcontract logic which depends on the data.

- Card metadata such as player name, type of the shot, etc
- Sales price of the pack.
- Total packs available/purchased

---

<div class="post-metadata">

**Author:** ![flowjosh](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/flowjosh/32/362_2.png) [@flowjosh](https://forum.flow.com/u/flowjosh)\
**Post date:** [July 14, 2020, 9:06pm UTC](https://forum.flow.com/t/is-nba-topshot-contract-going-to-be-open-sourced/334/4 "2020-07-14T21:06:24Z")

</div>

@makoto The metadata you mention is on chain, meaning the text-based metadata, but the images and videos will not be on chain.  
Sale price of packs will not be on chain, but the sale price of individual moments in the P2P marketplace is on chain.  
Total packs available and purchased will also not be on chain.

---

<div class="post-metadata">

**Author:** ![makoto](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/makoto/32/5_2.png) [@makoto](https://forum.flow.com/u/makoto)\
**Post date:** [July 15, 2020, 8:43am UTC](https://forum.flow.com/t/is-nba-topshot-contract-going-to-be-open-sourced/334/5 "2020-07-15T08:43:31Z")

</div>

Thanks for the reply. Curious about the decision behind not putting initial sales price on chain. The secondary P2P price on marketplace is easily manipulatable and I was planning on relying on the initial sale price for one of my product ideas [Mint Stable-ish fungible token from NFTs](http://forum.flow.com/t/mint-stable-ish-fungible-token-from-nfts/353/5)

---

<div class="post-metadata">

**Author:** ![flowjosh](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/flowjosh/32/362_2.png) [@flowjosh](https://forum.flow.com/u/flowjosh)\
**Post date:** [July 15, 2020, 4:20pm UTC](https://forum.flow.com/t/is-nba-topshot-contract-going-to-be-open-sourced/334/6 "2020-07-15T16:20:19Z")

</div>

The sale price is something that is determined off-chain in denominations of USD/ETH, and because those currencies do not have equivalent constructs on chain, they cannot be represented as anything but a simple metadata field. Even that is hard to determine though, because each pack has multiple moments in it, and there is no rule about how the price is calculated from each individual moment.

---

<div class="post-metadata">

**Author:** ![flowjosh](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/flowjosh/32/362_2.png) [@flowjosh](https://forum.flow.com/u/flowjosh)\
**Post date:** [July 15, 2020, 4:31pm UTC](https://forum.flow.com/t/is-nba-topshot-contract-going-to-be-open-sourced/334/7 "2020-07-15T16:31:03Z")

</div>

I’ll continue this convo in your project’s post

---

<div class="post-metadata">

**Author:** ![makoto](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/makoto/32/5_2.png) [@makoto](https://forum.flow.com/u/makoto)\
**Post date:** [July 15, 2020, 4:37pm UTC](https://forum.flow.com/t/is-nba-topshot-contract-going-to-be-open-sourced/334/8 "2020-07-15T16:37:44Z")

</div>

> [@flowjosh](#):
>
> they cannot be represented as anything but a simple metadata field

Doesn’t p2p marketplace have the same issue?

> [@flowjosh](#):
>
> because each pack has multiple moments in it, and there is no rule about how the price is calculated from each individual moment.

That’s fair. Then each pack should have sales price instead of moment.

---

<div class="post-metadata">

**Author:** ![makoto](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/makoto/32/5_2.png) [@makoto](https://forum.flow.com/u/makoto)\
**Post date:** [July 15, 2020, 5:01pm UTC](https://forum.flow.com/t/is-nba-topshot-contract-going-to-be-open-sourced/334/9 "2020-07-15T17:01:35Z")

</div>

@flowjosh when you opensource smart contract, can we have access to the data dump of transactions or events so that we can use as a mock data when we build something on top of NBA TopShot.

---

<div class="post-metadata">

**Author:** ![flowjosh](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/flowjosh/32/362_2.png) [@flowjosh](https://forum.flow.com/u/flowjosh)\
**Post date:** [July 15, 2020, 6:21pm UTC](https://forum.flow.com/t/is-nba-topshot-contract-going-to-be-open-sourced/334/10 "2020-07-15T18:21:06Z")

</div>

I think we will be able to get you that @makoto, but I need to check with the team
