Skip to content

Commit 0af17c1

Browse files
Merge pull request #2 from onflow/recipe-fields
Simplify recipe fields
2 parents 8ce2736 + 32ebdb0 commit 0af17c1

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 = "mint-nft";
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 mintNFT = {
135
slug: recipe,
146
title: "Mint NFT",
@@ -19,10 +11,6 @@ export const mintNFT = {
1911
"https://play.onflow.org/22ef65e1-654d-4ab1-bd82-3712a6fb8877?type=account&id=27ecf409-b82d-43f7-9b94-5c9753bc7abf&storage=none",
2012
excerpt:
2113
"This is for minting NFTS. It includes the minting resource that you can use in your smart contract, as well as the transaction to mint from the deployed account. It can be included in your smart contract along with the NFT Standard.",
22-
smartContractCode: contractPath,
23-
smartContractExplanation: smartContractExplanationPath,
24-
transactionCode: transactionPath,
25-
transactionExplanation: transactionExplanationPath,
2614
filters: {
2715
difficulty: "beginner",
2816
},

0 commit comments

Comments
 (0)