Smart Contract
FlowtyViews
A.3cdbb3d569211ff3.FlowtyViews
1// MetadataViews used by products at Flowty
2// For more information, please see our developer docs:
3//
4// https://docs.flowty.io/developer-docs/
5access(all) contract FlowtyViews {
6
7 // DNA is only needed for NFTs that can change dynamically. It is used
8 // to prevent an NFT from being sold that's been changed between the time of
9 // making a listing, and that listing being filled.
10 //
11 // If implemented, DNA is recorded when a listing is made.
12 // When the same listing is being filled, the DNA will again be checked.
13 // If the DNA of an item when being filled doesn't match what was recorded when
14 // listed, do not permit filling the listing.
15 access(all) struct DNA {
16 access(all) let value: String
17
18 init(_ value: String) {
19 self.value = value
20 }
21 }
22}