From 6bb1d4b42acad2c2acac2a3d108cc62d5e83b172 Mon Sep 17 00:00:00 2001 From: TC Date: Sun, 13 Oct 2024 16:36:59 +0200 Subject: [PATCH 01/10] add smart contract quiz --- public/content/smart-contracts/index.md | 4 + .../Quiz/stories/QuizzesStats.stories.tsx | 1 + src/data/quizzes/index.ts | 8 ++ src/data/quizzes/questionBank.ts | 131 ++++++++++++++++++ src/intl/en/learn-quizzes.json | 47 ++++++- 5 files changed, 190 insertions(+), 1 deletion(-) diff --git a/public/content/smart-contracts/index.md b/public/content/smart-contracts/index.md index 64bf7d73a62..de39500a26a 100644 --- a/public/content/smart-contracts/index.md +++ b/public/content/smart-contracts/index.md @@ -80,3 +80,7 @@ They can perform computations, create currency, store data, mint [NFTs](/glossar - [Smart contracts for developers](/developers/docs/smart-contracts/) - [Learn to write smart-contracts](/developers/learning-tools/) - [Mastering Ethereum - What is a Smart Contract?](https://github.com/ethereumbook/ethereumbook/blob/develop/07smart-contracts-solidity.asciidoc#what-is-a-smart-contract) + + + + \ No newline at end of file diff --git a/src/components/Quiz/stories/QuizzesStats.stories.tsx b/src/components/Quiz/stories/QuizzesStats.stories.tsx index 1025ef7dfe0..9b24338d7f9 100644 --- a/src/components/Quiz/stories/QuizzesStats.stories.tsx +++ b/src/components/Quiz/stories/QuizzesStats.stories.tsx @@ -21,6 +21,7 @@ const meta = { web3: [false, 0], daos: [false, 0], stablecoins: [false, 0], + "smart-contracts": [false, 0], }, totalCorrectAnswers: 0, }, diff --git a/src/data/quizzes/index.ts b/src/data/quizzes/index.ts index 71cc4271f1c..e02ec297ad7 100644 --- a/src/data/quizzes/index.ts +++ b/src/data/quizzes/index.ts @@ -54,6 +54,10 @@ const quizzes = { title: "stablecoins", questions: ["m001", "m002", "m003", "m004", "m005"], }, + "smart-contracts": { + title: "smart-contracts", + questions: ["n001", "n002", "n003", "n004", "n005"], + }, } satisfies RawQuizzes export const ethereumBasicsQuizzes: QuizzesSection[] = [ @@ -81,6 +85,10 @@ export const ethereumBasicsQuizzes: QuizzesSection[] = [ id: "security", level: "beginner", }, + { + id: "smart-contracts", + level: "beginner", + }, ] export const usingEthereumQuizzes: QuizzesSection[] = [ diff --git a/src/data/quizzes/questionBank.ts b/src/data/quizzes/questionBank.ts index cdf24060459..4466da3a290 100644 --- a/src/data/quizzes/questionBank.ts +++ b/src/data/quizzes/questionBank.ts @@ -1610,6 +1610,137 @@ const questionBank = { ], correctAnswerId: "m005-d", }, + //smart-contract + n001: { + prompt: "n001-prompt", + answers: [ + { + id: "n001-a", + label: "n001-a-label", + explanation: "n001-a-explanation", + }, + { + id: "n001-b", + label: "n001-b-label", + explanation: "n001-b-explanation", + }, + { + id: "n001-c", + label: "n001-c-label", + explanation: "n001-c-explanation", + }, + { + id: "n001-d", + label: "n001-d-label", + explanation: "n001-d-explanation", + }, + ], + correctAnswerId: "n001-c", + }, + n002: { + prompt: "n002-prompt", + answers: [ + { + id: "n002-a", + label: "n002-a-label", + explanation: "n002-a-explanation", + }, + { + id: "n002-b", + label: "n002-b-label", + explanation: "n002-a-explanation", + }, + { + id: "n002-c", + label: "n002-c-label", + explanation: "n002-a-explanation", + }, + { + id: "n002-d", + label: "n002-d-label", + explanation: "n002-d-explanation", + }, + ], + correctAnswerId: "n002-b", + }, + n003: { + prompt: "n003-prompt", + answers: [ + { + id: "n003-a", + label: "n003-a-label", + explanation: "n003-a-explanation", + }, + { + id: "n003-b", + label: "n003-b-label", + explanation: "n003-b-explanation", + }, + { + id: "n003-c", + label: "n003-c-label", + explanation: "n003-c-explanation", + }, + { + id: "n003-d", + label: "n003-d-label", + explanation: "n003-d-explanation", + }, + ], + correctAnswerId: "n003-d", + }, + n004: { + prompt: "n004-prompt", + answers: [ + { + id: "n004-a", + label: "n004-a-label", + explanation: "n004-a-explanation", + }, + { + id: "n004-b", + label: "n004-b-label", + explanation: "n004-b-explanation", + }, + { + id: "n004-c", + label: "n004-c-label", + explanation: "n004-c-explanation", + }, + { + id: "n004-d", + label: "n004-d-label", + explanation: "n004-d-explanation", + }, + ], + correctAnswerId: "n004-b", + }, + n005: { + prompt: "n005-prompt", + answers: [ + { + id: "n005-a", + label: "n005-a-label", + explanation: "n005-a-explanation", + }, + { + id: "n005-b", + label: "n005-b-label", + explanation: "n005-b-explanation", + }, + { + id: "n005-c", + label: "n005-c-label", + explanation: "n005-c-explanation", + }, + { + id: "n005-d", + label: "n005-d-label", + explanation: "n005-d-explanation", + }, + ], + correctAnswerId: "n005-a", + }, } as const satisfies QuestionBank export default questionBank diff --git a/src/intl/en/learn-quizzes.json b/src/intl/en/learn-quizzes.json index cb534e9412f..b8131a87f29 100644 --- a/src/intl/en/learn-quizzes.json +++ b/src/intl/en/learn-quizzes.json @@ -568,5 +568,50 @@ "m005-c-label": "Buy them from an exchange", "m005-c-explanation": "Incorrect, this is a way to get stablecoins. Many exchanges and wallets let you buy stablecoins directly. Geographical restrictions may apply for centralized exchanges.", "m005-d-label": "Mine them", - "m005-d-explanation": "Correct! Unlike bitcoin, you are unable to mine stablecoins." + "m005-d-explanation": "Correct! Unlike bitcoin, you are unable to mine stablecoins.", + "n001-prompt": "How are smart contracts characterized?", + "n001-a-label": "Smart contracts are just like real (paper) contracts, but stored digitally on the blockchain to save the content securely.", + "n001-a-explanation": "Smart contracts use a similar logic to traditional contracts, but otherwise have little in common.", + "n001-b-label": "They are linked to an AI system, which allows them to make decisions that trigger blockchain transactions.", + "n001-b-explanation": "Smart contracts can actually execute transactions automatically, but only according to an ‘if this then that’ logic that is prescribed in the code. They do not use AI.", + "n001-c-label": "They are programs stored on the blockchain that follow an 'if this then that' logic, and are guaranteed to execute according to the rules defined by the code.", + "n001-c-explanation": "A smart contract is a piece of code that can be executed automatically according to an 'if this then that' logic.", + "n001-d-label": "They are the rules behind the Ethereum Blockchain, developed together with lawyers to ensure legal compliance.", + "n001-d-explanation": "Smart contracts are pieces of code that can be created by developers and deployed on a blockchain.", + "n002-prompt": "What is a metaphor that most closely characterizes the functioning of smart contracts?", + "n002-a-label": "A bank", + "n002-a-explanation": "Banks require manual intervention and are structured as hierarchical entities, whereas a smart contract automatically executes without intervention.", + "n002-b-label": "A digital vending machine", + "n002-b-explanation": "The vending machine will only dispense your desired product after all requirements are met - specific inputs guarantee predetermined outputs. This is similar to the logic of smart contracts.", + "n002-c-label": "A calculator", + "n002-c-explanation": "smart contract code can be used for calculations, but is not limited to that. Rather, smart contracts are blockchain-based programs that follow an 'if this then that' logic.", + "n002-d-label": "A website", + "n002-d-explanation": "A website is the frontend which captures user directions. A smart contract is the backend logic where these directions are executed, and the result may be returned.", + "n003-prompt": "What is not one of the main characteristics of a smart contract?", + "n003-a-label": "Automatic execution", + "n003-a-explanation": "The main benefit of a smart contract is that it deterministically executes unambiguous code when certain conditions are met.", + "n003-b-label": "Public record", + "n003-b-explanation": "With smart contracts on a public blockchain, anyone can instantly track asset transfers and other related information.", + "n003-c-label": "Privacy protection", + "n003-c-explanation": "As blockchains are pseudonymous networks, transactions are tied publicly to a unique cryptographic address, not an identity.", + "n003-d-label": "Ability to change", + "n003-d-explanation": "A smart contract cannot be changed once created, it is guaranteed to execute according to the rules defined by its code.", + "n004-prompt": "What is not one of the applications of smart contracts?", + "n004-a-label": "Cryptocurrencies", + "n004-a-explanation": "Cryptocurrencies are token objects which are defined and tracked on smart contracts.", + "n004-b-label": "Protocol changes", + "n004-b-explanation": "While protocol changes are enacted through a smart contract, their creation and definition are proposed through transparent online forums such as Github or Forum.", + "n004-c-label": "Non Fungible Assets", + "n004-c-explanation": "Smart contracts are used to define a wide range of NFTs, ranging from digital art to asset ownership certificates.", + "n004-d-label": "DAOs", + "n004-d-explanation": "The governing and voting rules of Decentralized Autonomous Organisations are defined within smart contracts for transparency.", + "n005-prompt": "Who coined the term 'smart contract'?", + "n005-a-label": "Nick Szabo", + "n005-a-explanation": "The computer scientist and cryptographer Nick Szabo coined the term 'smart contract' in an essay from 1994. In 1996, he wrote an exploration of what they could do. Smart contracts on Ethereum later put this vision into practice.", + "n005-b-label": "Satoshi Nakamoto", + "n005-b-explanation": "Satoshi is the author of Bitcoin, which already has some basic smart contract functionalities. The term 'smart contract', however, was coined by Nick Szabo in 1994.", + "n005-c-label": "Vitalik Buterin", + "n005-c-explanation": "The Ethereum co-founder has contributed to our understanding of smart contracts today. The term, however, was coined by Nick Szabo in 1994.", + "n005-d-label": "Gavin Wood", + "n005-d-explanation": "Ethereum co-founder Gavin Wood is known for coining the term web3. The term 'smart contract', however, was coined by Nick Szabo in 1994." } From f2a91a198dc66b7dbedf6e5deaf7afdfdc14b1a3 Mon Sep 17 00:00:00 2001 From: TC Date: Sat, 19 Oct 2024 11:27:20 +0200 Subject: [PATCH 02/10] add int support on sm page --- src/lib/utils/translations.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/utils/translations.ts b/src/lib/utils/translations.ts index bdaa1b04fe5..55446791fa1 100644 --- a/src/lib/utils/translations.ts +++ b/src/lib/utils/translations.ts @@ -207,7 +207,8 @@ const getRequiredNamespacesForPath = (relativePath: string) => { path.startsWith("/web3/") || path.startsWith("/what-is-ethereum/") || path.startsWith("/quizzes/") || - path.startsWith("/stablecoins/") + path.startsWith("/stablecoins/") || + path.startsWith("/smart-contracts/") ) { requiredNamespaces = [...requiredNamespaces, "learn-quizzes"] } From e1dd87e87959f154c4d1930b84bcad8a0df0ef47 Mon Sep 17 00:00:00 2001 From: Paul Wackerow <54227730+wackerow@users.noreply.github.com> Date: Tue, 25 Mar 2025 08:25:57 -0700 Subject: [PATCH 03/10] fix: question keys --- src/data/quizzes/index.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/data/quizzes/index.ts b/src/data/quizzes/index.ts index 2fce70f9663..eb186e07681 100644 --- a/src/data/quizzes/index.ts +++ b/src/data/quizzes/index.ts @@ -100,7 +100,13 @@ const quizzes = { }, "smart-contracts": { title: "smart-contracts", - questions: ["n001", "n002", "n003", "n004", "n005"], + questions: [ + "smart-contracts-1", + "smart-contracts-2", + "smart-contracts-3", + "smart-contracts-4", + "smart-contracts-5", + ], }, } satisfies RawQuizzes From 1fcf3268a33e2ac81a2a372eca2140916f475913 Mon Sep 17 00:00:00 2001 From: Crypto Delirium <6353394+CryptoDelirium@users.noreply.github.com> Date: Mon, 31 Mar 2025 12:50:50 +0200 Subject: [PATCH 04/10] Update src/intl/en/learn-quizzes.json Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com> --- src/intl/en/learn-quizzes.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intl/en/learn-quizzes.json b/src/intl/en/learn-quizzes.json index d967c5617e7..966e8c39770 100644 --- a/src/intl/en/learn-quizzes.json +++ b/src/intl/en/learn-quizzes.json @@ -617,7 +617,7 @@ "smart-contracts-1-prompt": "How are smart contracts characterized?", "smart-contracts-1-a-label": "Smart contracts are just like real (paper) contracts, but stored digitally on the blockchain to save the content securely.", "smart-contracts-1-a-explanation": "Smart contracts use a similar logic to traditional contracts, but otherwise have little in common.", - "smart-contracts-1-b-label": "They are linked to an AI system, which allows them to make decisions that trigger blockchain transactions.", + "smart-contracts-1-b-label": "Linked to autonomous AI systems that execute transactions", "smart-contracts-1-b-explanation": "Smart contracts can actually execute transactions automatically, but only according to an ‘if this then that’ logic that is prescribed in the code. They do not use AI.", "smart-contracts-1-c-label": "They are programs stored on the blockchain that follow an 'if this then that' logic, and are guaranteed to execute according to the rules defined by the code.", "smart-contracts-1-c-explanation": "A smart contract is a piece of code that can be executed automatically according to an 'if this then that' logic.", From aa56be6603d9722c13bc0bf9c852f31065ae580f Mon Sep 17 00:00:00 2001 From: Crypto Delirium <6353394+CryptoDelirium@users.noreply.github.com> Date: Mon, 31 Mar 2025 12:51:37 +0200 Subject: [PATCH 05/10] Update src/intl/en/learn-quizzes.json Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com> --- src/intl/en/learn-quizzes.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intl/en/learn-quizzes.json b/src/intl/en/learn-quizzes.json index 966e8c39770..244e6a2070d 100644 --- a/src/intl/en/learn-quizzes.json +++ b/src/intl/en/learn-quizzes.json @@ -618,7 +618,7 @@ "smart-contracts-1-a-label": "Smart contracts are just like real (paper) contracts, but stored digitally on the blockchain to save the content securely.", "smart-contracts-1-a-explanation": "Smart contracts use a similar logic to traditional contracts, but otherwise have little in common.", "smart-contracts-1-b-label": "Linked to autonomous AI systems that execute transactions", - "smart-contracts-1-b-explanation": "Smart contracts can actually execute transactions automatically, but only according to an ‘if this then that’ logic that is prescribed in the code. They do not use AI.", + "smart-contracts-1-b-explanation": "Smart contracts execute transactions predictably according to 'if-this-then-that' logic prescribed in the code—they do not use AI", "smart-contracts-1-c-label": "They are programs stored on the blockchain that follow an 'if this then that' logic, and are guaranteed to execute according to the rules defined by the code.", "smart-contracts-1-c-explanation": "A smart contract is a piece of code that can be executed automatically according to an 'if this then that' logic.", "smart-contracts-1-d-label": "They are the rules behind the Ethereum Blockchain, developed together with lawyers to ensure legal compliance.", From 622a3915c218aa6f0c9d9f25ec04ea5499fc86f1 Mon Sep 17 00:00:00 2001 From: Crypto Delirium <6353394+CryptoDelirium@users.noreply.github.com> Date: Mon, 31 Mar 2025 12:53:45 +0200 Subject: [PATCH 06/10] Update src/intl/en/learn-quizzes.json Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com> --- src/intl/en/learn-quizzes.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intl/en/learn-quizzes.json b/src/intl/en/learn-quizzes.json index 244e6a2070d..e0b6f5c21ad 100644 --- a/src/intl/en/learn-quizzes.json +++ b/src/intl/en/learn-quizzes.json @@ -633,7 +633,7 @@ "smart-contracts-2-d-label": "A website", "smart-contracts-2-d-explanation": "A website is the frontend which captures user directions. A smart contract is the backend logic where these directions are executed, and the result may be returned.", "smart-contracts-3-prompt": "What is not one of the main characteristics of a smart contract?", - "smart-contracts-3-a-label": "Automatic execution", + "smart-contracts-3-a-label": "Deterministic execution", "smart-contracts-3-a-explanation": "The main benefit of a smart contract is that it deterministically executes unambiguous code when certain conditions are met.", "smart-contracts-3-b-label": "Public record", "smart-contracts-3-b-explanation": "With smart contracts on a public blockchain, anyone can instantly track asset transfers and other related information.", From ea37e41902e4fa00d794d97d48449d3d0bb1b5ab Mon Sep 17 00:00:00 2001 From: Crypto Delirium <6353394+CryptoDelirium@users.noreply.github.com> Date: Mon, 31 Mar 2025 12:56:54 +0200 Subject: [PATCH 07/10] Update src/intl/en/learn-quizzes.json Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com> --- src/intl/en/learn-quizzes.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intl/en/learn-quizzes.json b/src/intl/en/learn-quizzes.json index e0b6f5c21ad..f5b17c9ff52 100644 --- a/src/intl/en/learn-quizzes.json +++ b/src/intl/en/learn-quizzes.json @@ -649,7 +649,7 @@ "smart-contracts-4-c-label": "Non Fungible Assets", "smart-contracts-4-c-explanation": "Smart contracts are used to define a wide range of NFTs, ranging from digital art to asset ownership certificates.", "smart-contracts-4-d-label": "DAOs", - "smart-contracts-4-d-explanation": "The governing and voting rules of Decentralized Autonomous Organisations are defined within smart contracts for transparency.", + "smart-contracts-4-d-explanation": "The governing and voting rules of DAOs are defined within smart contracts for transparency.", "smart-contracts-5-prompt": "Who coined the term 'smart contract'?", "smart-contracts-5-a-label": "Nick Szabo", "smart-contracts-5-a-explanation": "The computer scientist and cryptographer Nick Szabo coined the term 'smart contract' in an essay from 1994. In 1996, he wrote an exploration of what they could do. Smart contracts on Ethereum later put this vision into practice.", From db67a96f6b1008a5366fb1cc0100e18340455211 Mon Sep 17 00:00:00 2001 From: Crypto Delirium <6353394+CryptoDelirium@users.noreply.github.com> Date: Mon, 31 Mar 2025 12:57:16 +0200 Subject: [PATCH 08/10] Update src/intl/en/learn-quizzes.json Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com> --- src/intl/en/learn-quizzes.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intl/en/learn-quizzes.json b/src/intl/en/learn-quizzes.json index f5b17c9ff52..f31f8ebbb2f 100644 --- a/src/intl/en/learn-quizzes.json +++ b/src/intl/en/learn-quizzes.json @@ -648,7 +648,7 @@ "smart-contracts-4-b-explanation": "While protocol changes are enacted through a smart contract, their creation and definition are proposed through transparent online forums such as Github or Forum.", "smart-contracts-4-c-label": "Non Fungible Assets", "smart-contracts-4-c-explanation": "Smart contracts are used to define a wide range of NFTs, ranging from digital art to asset ownership certificates.", - "smart-contracts-4-d-label": "DAOs", + "smart-contracts-4-d-label": "Decentralized autonomous organizations (DAOs)", "smart-contracts-4-d-explanation": "The governing and voting rules of DAOs are defined within smart contracts for transparency.", "smart-contracts-5-prompt": "Who coined the term 'smart contract'?", "smart-contracts-5-a-label": "Nick Szabo", From 1c796ee8d7f4eb91d212f97d4520b05352440061 Mon Sep 17 00:00:00 2001 From: Crypto Delirium <6353394+CryptoDelirium@users.noreply.github.com> Date: Mon, 31 Mar 2025 13:09:08 +0200 Subject: [PATCH 09/10] Apply suggestions from code review Apply review changes Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com> --- src/intl/en/learn-quizzes.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/intl/en/learn-quizzes.json b/src/intl/en/learn-quizzes.json index f31f8ebbb2f..3c59e061aae 100644 --- a/src/intl/en/learn-quizzes.json +++ b/src/intl/en/learn-quizzes.json @@ -625,28 +625,28 @@ "smart-contracts-1-d-explanation": "Smart contracts are pieces of code that can be created by developers and deployed on a blockchain.", "smart-contracts-2-prompt": "What is a metaphor that most closely characterizes the functioning of smart contracts?", "smart-contracts-2-a-label": "A bank", - "smart-contracts-2-a-explanation": "Banks require manual intervention and are structured as hierarchical entities, whereas a smart contract automatically executes without intervention.", + "smart-contracts-2-a-explanation": "Banks require manual execution and are structured as hierarchical entities, whereas smart contracts are executed predictable by computers with unchangeable rules.", "smart-contracts-2-b-label": "A digital vending machine", "smart-contracts-2-b-explanation": "The vending machine will only dispense your desired product after all requirements are met - specific inputs guarantee predetermined outputs. This is similar to the logic of smart contracts.", "smart-contracts-2-c-label": "A calculator", "smart-contracts-2-c-explanation": "smart contract code can be used for calculations, but is not limited to that. Rather, smart contracts are blockchain-based programs that follow an 'if this then that' logic.", "smart-contracts-2-d-label": "A website", "smart-contracts-2-d-explanation": "A website is the frontend which captures user directions. A smart contract is the backend logic where these directions are executed, and the result may be returned.", - "smart-contracts-3-prompt": "What is not one of the main characteristics of a smart contract?", + "smart-contracts-3-prompt": "Which is NOT a main characteristic of smart contracts?", "smart-contracts-3-a-label": "Deterministic execution", - "smart-contracts-3-a-explanation": "The main benefit of a smart contract is that it deterministically executes unambiguous code when certain conditions are met.", + "smart-contracts-3-a-explanation": "The main benefit of a smart contract is that it deterministically executes unambiguous code, without human interpretation or bias.", "smart-contracts-3-b-label": "Public record", "smart-contracts-3-b-explanation": "With smart contracts on a public blockchain, anyone can instantly track asset transfers and other related information.", "smart-contracts-3-c-label": "Privacy protection", "smart-contracts-3-c-explanation": "As blockchains are pseudonymous networks, transactions are tied publicly to a unique cryptographic address, not an identity.", "smart-contracts-3-d-label": "Ability to change", - "smart-contracts-3-d-explanation": "A smart contract cannot be changed once created, it is guaranteed to execute according to the rules defined by its code.", - "smart-contracts-4-prompt": "What is not one of the applications of smart contracts?", + "smart-contracts-3-d-explanation": "A smart contract cannot be changed once created—it is guaranteed to execute according to the rules defined by its code.", + "smart-contracts-4-prompt": "Which is NOT an application of smart contracts?", "smart-contracts-4-a-label": "Cryptocurrencies", - "smart-contracts-4-a-explanation": "Cryptocurrencies are token objects which are defined and tracked on smart contracts.", + "smart-contracts-4-a-explanation": "Cryptocurrencies are token objects which are defined and tracked using smart contracts.", "smart-contracts-4-b-label": "Protocol changes", - "smart-contracts-4-b-explanation": "While protocol changes are enacted through a smart contract, their creation and definition are proposed through transparent online forums such as Github or Forum.", - "smart-contracts-4-c-label": "Non Fungible Assets", + "smart-contracts-4-b-explanation": "While protocol changes can sometimes use smart contracts, their creation and definition are proposed through transparent online forums and implemented in client software.", + "smart-contracts-4-c-label": "Non-fungible tokens (NFTs)", "smart-contracts-4-c-explanation": "Smart contracts are used to define a wide range of NFTs, ranging from digital art to asset ownership certificates.", "smart-contracts-4-d-label": "Decentralized autonomous organizations (DAOs)", "smart-contracts-4-d-explanation": "The governing and voting rules of DAOs are defined within smart contracts for transparency.", From c5bd8366f551e315145c1f10b52442e783b61254 Mon Sep 17 00:00:00 2001 From: Paul Wackerow <54227730+wackerow@users.noreply.github.com> Date: Wed, 23 Jul 2025 13:09:51 -0700 Subject: [PATCH 10/10] chore: apply suggestions from review --- src/data/quizzes/index.ts | 1 - src/data/quizzes/questionBank.ts | 1 - src/intl/en/learn-quizzes.json | 27 +++++++++------------------ 3 files changed, 9 insertions(+), 20 deletions(-) diff --git a/src/data/quizzes/index.ts b/src/data/quizzes/index.ts index eb186e07681..7f61a6d7c08 100644 --- a/src/data/quizzes/index.ts +++ b/src/data/quizzes/index.ts @@ -105,7 +105,6 @@ const quizzes = { "smart-contracts-2", "smart-contracts-3", "smart-contracts-4", - "smart-contracts-5", ], }, } satisfies RawQuizzes diff --git a/src/data/quizzes/questionBank.ts b/src/data/quizzes/questionBank.ts index 565d49f05dd..4d64b8c420a 100644 --- a/src/data/quizzes/questionBank.ts +++ b/src/data/quizzes/questionBank.ts @@ -157,7 +157,6 @@ const questionBankConfig: QuestionBankConfig = { { totalAnswers: 4, correctAnswer: 2 }, { totalAnswers: 4, correctAnswer: 4 }, { totalAnswers: 4, correctAnswer: 2 }, - { totalAnswers: 4, correctAnswer: 1 }, ], } diff --git a/src/intl/en/learn-quizzes.json b/src/intl/en/learn-quizzes.json index 3c59e061aae..c1d4f7ccfdd 100644 --- a/src/intl/en/learn-quizzes.json +++ b/src/intl/en/learn-quizzes.json @@ -615,21 +615,21 @@ "defi-5-d-label": "Traditional financial institutions", "defi-5-d-explanation": "This is incorrect. DeFi apps don’t need traditional financial institutions. They use blockchain programs called smart contracts to handle transactions automatically.", "smart-contracts-1-prompt": "How are smart contracts characterized?", - "smart-contracts-1-a-label": "Smart contracts are just like real (paper) contracts, but stored digitally on the blockchain to save the content securely.", + "smart-contracts-1-a-label": "Smart contracts are just like legal contracts, but stored digitally on the blockchain to save the content securely.", "smart-contracts-1-a-explanation": "Smart contracts use a similar logic to traditional contracts, but otherwise have little in common.", "smart-contracts-1-b-label": "Linked to autonomous AI systems that execute transactions", "smart-contracts-1-b-explanation": "Smart contracts execute transactions predictably according to 'if-this-then-that' logic prescribed in the code—they do not use AI", - "smart-contracts-1-c-label": "They are programs stored on the blockchain that follow an 'if this then that' logic, and are guaranteed to execute according to the rules defined by the code.", - "smart-contracts-1-c-explanation": "A smart contract is a piece of code that can be executed automatically according to an 'if this then that' logic.", + "smart-contracts-1-c-label": "Onchain programs following 'if-this-then-that' logic, guaranteed to execute according to its own rules", + "smart-contracts-1-c-explanation": "A smart contract is an Ethereum account deployed with unchangeable code that determines its functionality.", "smart-contracts-1-d-label": "They are the rules behind the Ethereum Blockchain, developed together with lawyers to ensure legal compliance.", "smart-contracts-1-d-explanation": "Smart contracts are pieces of code that can be created by developers and deployed on a blockchain.", "smart-contracts-2-prompt": "What is a metaphor that most closely characterizes the functioning of smart contracts?", "smart-contracts-2-a-label": "A bank", "smart-contracts-2-a-explanation": "Banks require manual execution and are structured as hierarchical entities, whereas smart contracts are executed predictable by computers with unchangeable rules.", "smart-contracts-2-b-label": "A digital vending machine", - "smart-contracts-2-b-explanation": "The vending machine will only dispense your desired product after all requirements are met - specific inputs guarantee predetermined outputs. This is similar to the logic of smart contracts.", + "smart-contracts-2-b-explanation": "The vending machine will only dispense your desired product after all requirements are met: specific inputs guarantee deterministic outputs. This is similar to the logic of smart contracts.", "smart-contracts-2-c-label": "A calculator", - "smart-contracts-2-c-explanation": "smart contract code can be used for calculations, but is not limited to that. Rather, smart contracts are blockchain-based programs that follow an 'if this then that' logic.", + "smart-contracts-2-c-explanation": "Smart contract code can be used for calculations, but is not limited to that. Rather, smart contracts are blockchain-based programs that follow 'if-this-then-that' logic.", "smart-contracts-2-d-label": "A website", "smart-contracts-2-d-explanation": "A website is the frontend which captures user directions. A smart contract is the backend logic where these directions are executed, and the result may be returned.", "smart-contracts-3-prompt": "Which is NOT a main characteristic of smart contracts?", @@ -642,21 +642,12 @@ "smart-contracts-3-d-label": "Ability to change", "smart-contracts-3-d-explanation": "A smart contract cannot be changed once created—it is guaranteed to execute according to the rules defined by its code.", "smart-contracts-4-prompt": "Which is NOT an application of smart contracts?", - "smart-contracts-4-a-label": "Cryptocurrencies", - "smart-contracts-4-a-explanation": "Cryptocurrencies are token objects which are defined and tracked using smart contracts.", + "smart-contracts-4-a-label": "Stablecoins", + "smart-contracts-4-a-explanation": "Stablecoins are token objects which are defined and tracked using smart contracts.", "smart-contracts-4-b-label": "Protocol changes", "smart-contracts-4-b-explanation": "While protocol changes can sometimes use smart contracts, their creation and definition are proposed through transparent online forums and implemented in client software.", "smart-contracts-4-c-label": "Non-fungible tokens (NFTs)", "smart-contracts-4-c-explanation": "Smart contracts are used to define a wide range of NFTs, ranging from digital art to asset ownership certificates.", - "smart-contracts-4-d-label": "Decentralized autonomous organizations (DAOs)", - "smart-contracts-4-d-explanation": "The governing and voting rules of DAOs are defined within smart contracts for transparency.", - "smart-contracts-5-prompt": "Who coined the term 'smart contract'?", - "smart-contracts-5-a-label": "Nick Szabo", - "smart-contracts-5-a-explanation": "The computer scientist and cryptographer Nick Szabo coined the term 'smart contract' in an essay from 1994. In 1996, he wrote an exploration of what they could do. Smart contracts on Ethereum later put this vision into practice.", - "smart-contracts-5-b-label": "Satoshi Nakamoto", - "smart-contracts-5-b-explanation": "Satoshi is the author of Bitcoin, which already has some basic smart contract functionalities. The term 'smart contract', however, was coined by Nick Szabo in 1994.", - "smart-contracts-5-c-label": "Vitalik Buterin", - "smart-contracts-5-c-explanation": "The Ethereum co-founder has contributed to our understanding of smart contracts today. The term, however, was coined by Nick Szabo in 1994.", - "smart-contracts-5-d-label": "Gavin Wood", - "smart-contracts-5-d-explanation": "Ethereum co-founder Gavin Wood is known for coining the term web3. The term 'smart contract', however, was coined by Nick Szabo in 1994." + "smart-contracts-4-d-label": "Open currency exchange", + "smart-contracts-4-d-explanation": "Decentralized exchanges (DEXs) are build using smart contracts to operate without centralized control." }