From 24bb5733e8ffc5092f6b7f7079243052dbd84ebc Mon Sep 17 00:00:00 2001 From: Justin Ahinon Date: Mon, 2 Sep 2024 16:19:22 +0100 Subject: [PATCH 1/4] Inline line breaks and images updates --- .../1-basics/1-welcome-to-updraft/+page.md | 2 +- .../1-basics/10-introduction-to-gas/+page.md | 2 +- .../1-basics/11-how-do-blockchains-work/+page.md | 10 +++++----- .../1-basics/4-zksync-sponsorship/+page.md | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/courses/blockchain-basics/1-basics/1-welcome-to-updraft/+page.md b/courses/blockchain-basics/1-basics/1-welcome-to-updraft/+page.md index 1cd3541a8..340860543 100644 --- a/courses/blockchain-basics/1-basics/1-welcome-to-updraft/+page.md +++ b/courses/blockchain-basics/1-basics/1-welcome-to-updraft/+page.md @@ -36,7 +36,7 @@ Beyond just teaching you to code, this course prepares you to maneuver DeFi, NFT ### Best Practices -git repo +:image{src='/blockchain-basics/git-repo.png' style='width: 100%; height: auto;' alt='git repo'} Let's start by covering some of the best practices to help you get the absolute most out of this course. diff --git a/courses/blockchain-basics/1-basics/10-introduction-to-gas/+page.md b/courses/blockchain-basics/1-basics/10-introduction-to-gas/+page.md index b612f99a2..5e37ce31f 100644 --- a/courses/blockchain-basics/1-basics/10-introduction-to-gas/+page.md +++ b/courses/blockchain-basics/1-basics/10-introduction-to-gas/+page.md @@ -12,7 +12,7 @@ Let's jump right in! ### Transaction Fee and Gas Price: What are they? -etherscan transaction +:image{src='/blockchain-basics/06-intro-to-gas/intro-to-gas1.png' style='width: 100%; height: auto;' alt='etherscan transaction'} While inspecting an Ethereum transaction, two terms invariably catch the glance: "transaction fee" and "gas price". Let's clarify what they are and why they matter. diff --git a/courses/blockchain-basics/1-basics/11-how-do-blockchains-work/+page.md b/courses/blockchain-basics/1-basics/11-how-do-blockchains-work/+page.md index 87502c8d1..341f861ea 100644 --- a/courses/blockchain-basics/1-basics/11-how-do-blockchains-work/+page.md +++ b/courses/blockchain-basics/1-basics/11-how-do-blockchains-work/+page.md @@ -12,7 +12,7 @@ In this lesson, we're going to break down blockchains, the process and the techn At its simplest, a hash is a unique, fixed-length string that serves to identify any piece of data. When you input any kind of data into a hash function, it produces a hash. In this demo, the hash algorithm we'll focus on is SHA-256. - +:image{src='/blockchain-basics/07-how-do-blockchains-work/how-do-blockchains-work1.png' style='width: 100%; height: auto;' alt='hash function'} If I add `Patrick Collins` to our `SHA-256` algorithm, it will: @@ -31,7 +31,7 @@ In the application, whatever data you enter into the data section, undergoes pro Now that we've grasped the concept of hashing and fixed-length string, let's inspect the structure of a blockchainβ€”a collection of "blocks." - +:image{src='/blockchain-basics/07-how-do-blockchains-work/how-do-blockchains-work2.png' style='width: 100%; height: auto;' alt='blockchain'} A block takes the same data input, but instead of a singular data field, a block is divided into 'block', 'nonce', and 'data.' All three are then run through the hash algorithm, producing the hash for that block. As a result, even a minor change in the data leads to an entirely different hash, hence, invalidating the block. @@ -43,7 +43,7 @@ The problem or criteria a miner has to solve will vary from blockchain to blockc In a blockchain, which is essentially a sequence of blocks, each block is comprised of the previous elements - a block number, a nonce and data - as well as `the hash of the previous block` - +:image{src='/blockchain-basics/07-how-do-blockchains-work/how-do-blockchains-work3.png' style='width: 100%; height: auto;' alt='blockchain'} What this means in practice is that any changes to data, in any block of the chain, will invalidate every proceeding block, until they are recalculated, or re-mined. @@ -55,7 +55,7 @@ Now, if a single entity were to control the blockchain, they could conceivably c _Enter Decentralized Distribution._ - +:image{src='/blockchain-basics/07-how-do-blockchains-work/how-do-blockchains-work4.png' style='width: 100%; height: auto;' alt='blockchain'} The crux of blockchain's power lies in its decentralization or distributed nature. Under this system, multiple entities or "peers" run the blockchain technology, each holding equal weight and power. In the event of disparity between the blockchains run by different peers (due to tampering or otherwise), the majority hash wins, as the majority of the network agrees on it. @@ -65,7 +65,7 @@ Nodes that don't agree with the majority effectively fork the network, continuin Until now we've been considering the data passed in a block to be a random string of text, but the reality is - this data can be anything. In the token and coinbase sections of this demo you can see how each block is comprised of a number of transactions that all get hashed together. Any edits to any of these transactions is going to invalidate the chain! - +:image{src='/blockchain-basics/07-how-do-blockchains-work/how-do-blockchains-work5.png' style='width: 100%; height: auto;' alt='blockchain'} ### Wrap Up diff --git a/courses/blockchain-basics/1-basics/4-zksync-sponsorship/+page.md b/courses/blockchain-basics/1-basics/4-zksync-sponsorship/+page.md index dc10fd798..c2e0cecca 100644 --- a/courses/blockchain-basics/1-basics/4-zksync-sponsorship/+page.md +++ b/courses/blockchain-basics/1-basics/4-zksync-sponsorship/+page.md @@ -12,7 +12,7 @@ In the context of blockchain technology, Layer 2 (L2) solutions like ZK Sync off We extend our gratitude to Matter Labs and the ZK Sync team for being the lead sponsor of Cyphrin Updraft: their commitment to making Web3 developer and security research education accessible has allowed us to offer this course for free. Additionally, we thank Arbitrum and Optimism for their historical support. Transparency is crucial, so we list all sponsors in the [dedicated section](https://github.com/Cyfrin/foundry-full-course-cu?tab=readme-ov-file#sponsors) of the GitHub repository associated with this course. We also provide alternatives to ensure you can choose the technology that best suits your needs. -> πŸ‘€β—**IMPORTANT**
+> πŸ‘€β—**IMPORTANT** :br > At the end of each section, you'll find links to challenge contracts that you can solve to earn NFTs. ### Deploying to production From 3ca0fc242d1b266c72cb9cc4439397e336580668 Mon Sep 17 00:00:00 2001 From: Justin Ahinon Date: Mon, 2 Sep 2024 16:33:52 +0100 Subject: [PATCH 2/4] Syntax updates --- .../1-basics/1-welcome-to-updraft/+page.md | 2 +- .../1-basics/10-introduction-to-gas/+page.md | 2 +- .../1-basics/11-how-do-blockchains-work/+page.md | 10 +++++----- .../1-basics/4-zksync-sponsorship/+page.md | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/courses/blockchain-basics/1-basics/1-welcome-to-updraft/+page.md b/courses/blockchain-basics/1-basics/1-welcome-to-updraft/+page.md index 340860543..b64eb8cb2 100644 --- a/courses/blockchain-basics/1-basics/1-welcome-to-updraft/+page.md +++ b/courses/blockchain-basics/1-basics/1-welcome-to-updraft/+page.md @@ -36,7 +36,7 @@ Beyond just teaching you to code, this course prepares you to maneuver DeFi, NFT ### Best Practices -:image{src='/blockchain-basics/git-repo.png' style='width: 100%; height: auto;' alt='git repo'} +::image{src='/blockchain-basics/git-repo.png' style='width: 100%; height: auto;' alt='git repo'} Let's start by covering some of the best practices to help you get the absolute most out of this course. diff --git a/courses/blockchain-basics/1-basics/10-introduction-to-gas/+page.md b/courses/blockchain-basics/1-basics/10-introduction-to-gas/+page.md index 5e37ce31f..4aead699c 100644 --- a/courses/blockchain-basics/1-basics/10-introduction-to-gas/+page.md +++ b/courses/blockchain-basics/1-basics/10-introduction-to-gas/+page.md @@ -12,7 +12,7 @@ Let's jump right in! ### Transaction Fee and Gas Price: What are they? -:image{src='/blockchain-basics/06-intro-to-gas/intro-to-gas1.png' style='width: 100%; height: auto;' alt='etherscan transaction'} +::image{src='/blockchain-basics/06-intro-to-gas/intro-to-gas1.png' style='width: 100%; height: auto;' alt='etherscan transaction'} While inspecting an Ethereum transaction, two terms invariably catch the glance: "transaction fee" and "gas price". Let's clarify what they are and why they matter. diff --git a/courses/blockchain-basics/1-basics/11-how-do-blockchains-work/+page.md b/courses/blockchain-basics/1-basics/11-how-do-blockchains-work/+page.md index 341f861ea..bb5fbc785 100644 --- a/courses/blockchain-basics/1-basics/11-how-do-blockchains-work/+page.md +++ b/courses/blockchain-basics/1-basics/11-how-do-blockchains-work/+page.md @@ -12,7 +12,7 @@ In this lesson, we're going to break down blockchains, the process and the techn At its simplest, a hash is a unique, fixed-length string that serves to identify any piece of data. When you input any kind of data into a hash function, it produces a hash. In this demo, the hash algorithm we'll focus on is SHA-256. -:image{src='/blockchain-basics/07-how-do-blockchains-work/how-do-blockchains-work1.png' style='width: 100%; height: auto;' alt='hash function'} +::image{src='/blockchain-basics/07-how-do-blockchains-work/how-do-blockchains-work1.png' style='width: 100%; height: auto;' alt='hash function'} If I add `Patrick Collins` to our `SHA-256` algorithm, it will: @@ -31,7 +31,7 @@ In the application, whatever data you enter into the data section, undergoes pro Now that we've grasped the concept of hashing and fixed-length string, let's inspect the structure of a blockchainβ€”a collection of "blocks." -:image{src='/blockchain-basics/07-how-do-blockchains-work/how-do-blockchains-work2.png' style='width: 100%; height: auto;' alt='blockchain'} +::image{src='/blockchain-basics/07-how-do-blockchains-work/how-do-blockchains-work2.png' style='width: 100%; height: auto;' alt='blockchain'} A block takes the same data input, but instead of a singular data field, a block is divided into 'block', 'nonce', and 'data.' All three are then run through the hash algorithm, producing the hash for that block. As a result, even a minor change in the data leads to an entirely different hash, hence, invalidating the block. @@ -43,7 +43,7 @@ The problem or criteria a miner has to solve will vary from blockchain to blockc In a blockchain, which is essentially a sequence of blocks, each block is comprised of the previous elements - a block number, a nonce and data - as well as `the hash of the previous block` -:image{src='/blockchain-basics/07-how-do-blockchains-work/how-do-blockchains-work3.png' style='width: 100%; height: auto;' alt='blockchain'} +::image{src='/blockchain-basics/07-how-do-blockchains-work/how-do-blockchains-work3.png' style='width: 100%; height: auto;' alt='blockchain'} What this means in practice is that any changes to data, in any block of the chain, will invalidate every proceeding block, until they are recalculated, or re-mined. @@ -55,7 +55,7 @@ Now, if a single entity were to control the blockchain, they could conceivably c _Enter Decentralized Distribution._ -:image{src='/blockchain-basics/07-how-do-blockchains-work/how-do-blockchains-work4.png' style='width: 100%; height: auto;' alt='blockchain'} +::image{src='/blockchain-basics/07-how-do-blockchains-work/how-do-blockchains-work4.png' style='width: 100%; height: auto;' alt='blockchain'} The crux of blockchain's power lies in its decentralization or distributed nature. Under this system, multiple entities or "peers" run the blockchain technology, each holding equal weight and power. In the event of disparity between the blockchains run by different peers (due to tampering or otherwise), the majority hash wins, as the majority of the network agrees on it. @@ -65,7 +65,7 @@ Nodes that don't agree with the majority effectively fork the network, continuin Until now we've been considering the data passed in a block to be a random string of text, but the reality is - this data can be anything. In the token and coinbase sections of this demo you can see how each block is comprised of a number of transactions that all get hashed together. Any edits to any of these transactions is going to invalidate the chain! -:image{src='/blockchain-basics/07-how-do-blockchains-work/how-do-blockchains-work5.png' style='width: 100%; height: auto;' alt='blockchain'} +::image{src='/blockchain-basics/07-how-do-blockchains-work/how-do-blockchains-work5.png' style='width: 100%; height: auto;' alt='blockchain'} ### Wrap Up diff --git a/courses/blockchain-basics/1-basics/4-zksync-sponsorship/+page.md b/courses/blockchain-basics/1-basics/4-zksync-sponsorship/+page.md index c2e0cecca..9bf85eeec 100644 --- a/courses/blockchain-basics/1-basics/4-zksync-sponsorship/+page.md +++ b/courses/blockchain-basics/1-basics/4-zksync-sponsorship/+page.md @@ -12,7 +12,7 @@ In the context of blockchain technology, Layer 2 (L2) solutions like ZK Sync off We extend our gratitude to Matter Labs and the ZK Sync team for being the lead sponsor of Cyphrin Updraft: their commitment to making Web3 developer and security research education accessible has allowed us to offer this course for free. Additionally, we thank Arbitrum and Optimism for their historical support. Transparency is crucial, so we list all sponsors in the [dedicated section](https://github.com/Cyfrin/foundry-full-course-cu?tab=readme-ov-file#sponsors) of the GitHub repository associated with this course. We also provide alternatives to ensure you can choose the technology that best suits your needs. -> πŸ‘€β—**IMPORTANT** :br +> πŸ‘€β—**IMPORTANT** ::br > At the end of each section, you'll find links to challenge contracts that you can solve to earn NFTs. ### Deploying to production From ac034df3eb1049a202d9c0ece1b5be6f8be51600 Mon Sep 17 00:00:00 2001 From: Justin Ahinon Date: Mon, 2 Sep 2024 16:35:24 +0100 Subject: [PATCH 3/4] Update +page.md --- .../blockchain-basics/1-basics/4-zksync-sponsorship/+page.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/courses/blockchain-basics/1-basics/4-zksync-sponsorship/+page.md b/courses/blockchain-basics/1-basics/4-zksync-sponsorship/+page.md index 9bf85eeec..28d48ff07 100644 --- a/courses/blockchain-basics/1-basics/4-zksync-sponsorship/+page.md +++ b/courses/blockchain-basics/1-basics/4-zksync-sponsorship/+page.md @@ -12,7 +12,7 @@ In the context of blockchain technology, Layer 2 (L2) solutions like ZK Sync off We extend our gratitude to Matter Labs and the ZK Sync team for being the lead sponsor of Cyphrin Updraft: their commitment to making Web3 developer and security research education accessible has allowed us to offer this course for free. Additionally, we thank Arbitrum and Optimism for their historical support. Transparency is crucial, so we list all sponsors in the [dedicated section](https://github.com/Cyfrin/foundry-full-course-cu?tab=readme-ov-file#sponsors) of the GitHub repository associated with this course. We also provide alternatives to ensure you can choose the technology that best suits your needs. -> πŸ‘€β—**IMPORTANT** ::br +> πŸ‘€β—**IMPORTANT**::br > At the end of each section, you'll find links to challenge contracts that you can solve to earn NFTs. ### Deploying to production From e5701aad9b0206baf2ba9318383541f47e94a818 Mon Sep 17 00:00:00 2001 From: Justin Ahinon Date: Mon, 2 Sep 2024 16:37:55 +0100 Subject: [PATCH 4/4] Update +page.md --- .../blockchain-basics/1-basics/4-zksync-sponsorship/+page.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/courses/blockchain-basics/1-basics/4-zksync-sponsorship/+page.md b/courses/blockchain-basics/1-basics/4-zksync-sponsorship/+page.md index 28d48ff07..ae60ce4c4 100644 --- a/courses/blockchain-basics/1-basics/4-zksync-sponsorship/+page.md +++ b/courses/blockchain-basics/1-basics/4-zksync-sponsorship/+page.md @@ -12,7 +12,7 @@ In the context of blockchain technology, Layer 2 (L2) solutions like ZK Sync off We extend our gratitude to Matter Labs and the ZK Sync team for being the lead sponsor of Cyphrin Updraft: their commitment to making Web3 developer and security research education accessible has allowed us to offer this course for free. Additionally, we thank Arbitrum and Optimism for their historical support. Transparency is crucial, so we list all sponsors in the [dedicated section](https://github.com/Cyfrin/foundry-full-course-cu?tab=readme-ov-file#sponsors) of the GitHub repository associated with this course. We also provide alternatives to ensure you can choose the technology that best suits your needs. -> πŸ‘€β—**IMPORTANT**::br +> πŸ‘€β—**IMPORTANT**:br > At the end of each section, you'll find links to challenge contracts that you can solve to earn NFTs. ### Deploying to production