This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Cadence is a resource-oriented programming language for smart contracts on the Flow blockchain. | |
/////////////// | |
// 1. Basics // | |
/////////////// | |
// This is a single-line comment | |
/* | |
This is a multi-line comment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import MetadataViews from 0x631e88ae7f1d7c20 | |
import NFTStorefront from 0x94b06cfca1d8a476 | |
import KittyItems from 0x94b06cfca1d8a476 | |
pub struct PurchaseData { | |
pub let id: UInt64 | |
pub let name: String | |
pub let amount: UFix64 | |
pub let description: String | |
pub let imageURL: String |