@@ -57,12 +57,6 @@ recipe-name/
57
57
- ` author ` : contributor of the recipe
58
58
- ` playgroundLink ` : a link to Flow Playground containing the deployed recipe code
59
59
- ` 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
66
60
- ` filters ` : the filters object is used to perform filtering on recipes in the cookbook
67
61
- ` difficulty ` : the difficulty filter supports one of [ 'beginner', 'intermediate', 'advanced']
68
62
@@ -71,16 +65,6 @@ recipe-name/
71
65
// Pass the repo name
72
66
const recipe = "sample-recipe-name";
73
67
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
-
84
68
export const sampleRecipe= {
85
69
slug: recipe,
86
70
title: "",
@@ -89,10 +73,6 @@ export const sampleRecipe= {
89
73
author: "",
90
74
playgroundLink: "",
91
75
excerpt: "",
92
- smartContractCode: contractPath,
93
- smartContractExplanation: smartContractExplanationPath,
94
- transactionCode: transactionPath,
95
- transactionExplanation: transactionExplanationPath,
96
76
};
97
77
```
98
78
## Deploying Recipe Contracts and Running Transactions Locally (Flow Emulator)
0 commit comments