Skip to content

Commit e458cfa

Browse files
Merge pull request #2 from onflow/recipe-fields
Simplify recipe fields
2 parents 8c0cf57 + 6e9ee44 commit e458cfa

File tree

3 files changed

+0
-33
lines changed

3 files changed

+0
-33
lines changed

README.md

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,6 @@ recipe-name/
5757
- `author`: contributor of the recipe
5858
- `playgroundLink`: a link to Flow Playground containing the deployed recipe code
5959
- `excerpt`: a brief description of the recipe contents
60-
- `smartContractCode`: path to location of Cadence smart contract code example
61-
- `smartContractExplanation`: path to location of smart contract code explanation
62-
- `transactionCode`: path to location of Cadence transaction code example
63-
- `transactionExplanation`: path to location of transaction code explanation
64-
- `testsPath`: path to location of Cadence test cases code example
65-
- `testsExplanationPath`: path to location of test cases code explanation
6660
- `filters`: the filters object is used to perform filtering on recipes in the cookbook
6761
- `difficulty`: the difficulty filter supports one of ['beginner', 'intermediate', 'advanced']
6862

@@ -71,16 +65,6 @@ recipe-name/
7165
// Pass the repo name
7266
const recipe = "sample-recipe-name";
7367
74-
//Generate paths of each code file to render
75-
const contractPath = `${recipe}/cadence/contract.cdc`;
76-
const transactionPath = `${recipe}/cadence/transaction.cdc`;
77-
const testsPath = `${recipe}/cadence/tests.cdc`;
78-
79-
//Generate paths of each explanation file to render
80-
const smartContractExplanationPath = `${recipe}/explanations/contract.txt`;
81-
const transactionExplanationPath = `${recipe}/explanations/transaction.txt`;
82-
const testsExplanationPath = `${recipe}/explanations/tests.txt`;
83-
8468
export const sampleRecipe= {
8569
slug: recipe,
8670
title: "",
@@ -89,10 +73,6 @@ export const sampleRecipe= {
8973
author: "",
9074
playgroundLink: "",
9175
excerpt: "",
92-
smartContractCode: contractPath,
93-
smartContractExplanation: smartContractExplanationPath,
94-
transactionCode: transactionPath,
95-
transactionExplanation: transactionExplanationPath,
9676
};
9777
```
9878
## Deploying Recipe Contracts and Running Transactions Locally (Flow Emulator)

cadence/transaction.cdc

Lines changed: 0 additions & 1 deletion
This file was deleted.

index.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
// Pass the repo name
22
const recipe = "create-a-topshot-set";
33

4-
//Generate paths of each code file to render
5-
const contractPath = `${recipe}/cadence/contract.cdc`;
6-
const transactionPath = `${recipe}/cadence/transaction.cdc`;
7-
8-
//Generate paths of each explanation file to render
9-
const smartContractExplanationPath = `${recipe}/explanations/contract.txt`;
10-
const transactionExplanationPath = `${recipe}/explanations/transaction.txt`;
11-
124
export const createATopShotSet = {
135
slug: recipe,
146
title: "Create a TopShot Set",
@@ -18,10 +10,6 @@ export const createATopShotSet = {
1810
"https://play.onflow.org/63a7ce9f-3315-4c55-8392-2d626bb8387d?type=account&id=91c4010c-2407-4a3c-a0c1-cc4d3904d9f8&storage=none",
1911
excerpt:
2012
"Using the TopShot contract, this is how you would create a set so that you could add plays to them and mint moments from those plays.",
21-
smartContractCode: contractPath,
22-
smartContractExplanation: smartContractExplanationPath,
23-
transactionCode: transactionPath,
24-
transactionExplanation: transactionExplanationPath,
2513
filters: {
2614
difficulty: "intermediate",
2715
},

0 commit comments

Comments
 (0)