Skip to content

Instantly share code, notes, and snippets.

View chasefleming's full-sized avatar

Chase Fleming chasefleming

View GitHub Profile
@chasefleming
chasefleming / cadence-cheatsheat.cdc
Last active December 14, 2023 14:49
Cadence Cheatsheet
// 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
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