What are the fundamental concepts to understand as a Developer?
Let's see them in 2 minutes.
↓
Table of Contents
Definition
Term's Origin
Goals
An analogy
Legal status
Smart legal contracts
Smart contracts as programs
Smart contracts a stored procedures
Workings
On Ethereum
Randomness on Blockchain
Security issues
The DAO (June 2016)
Issues in Ethereum
💯Days of Web3
↓
Definition
A smart contract is a contract with additional blockchain features.
It's a computer program or a transaction protocol to automatically execute, control, or document legally relevant actions/events according to some contract terms.
Term's Origin
Nick Szabo coined this term in 1990, referring to it as:
"a set of promises, specified in digital form, including protocols within which the parties perform on these promises".
Goals
The goals of smart contracts are the reduction of:
- arbitrations and enforcement costs.
- need in trusted intermediates.
- accidental exceptions.
- malicious attacks.
- fraud losses.
Vending machine analogy
To understand the basic concept of what is a smart contract, we can make an analogy with a vending machine:
By just inserting the coin and selecting what you need, it reduces the need for an intermediate to get your snack.
Ethereum whitepaper
in 2014, the Ethereum Whitepaper describes the Bitcoin protocol as a "weak version" of the smart contract concept.
Nowadays, there are many blockchain technologies that allow you to create smart contracts: Ethereum is one of them.
"Solana is a public blockchain platform with smart contract functionality. Its native cryptocurrency is SOL. Solana works to one up Ethereum by providing faster transaction times and cheaper fees."
Storing data on the blockchain has its advantages, but also disadvantages.
The Graph can be a solution for indexing and querying data on the blockchain efficiently.
Let's introduce The Graph with this thread.
↓
Table of Contents
Definition
Examples
Bored Ape Yacht Club basic ops
BAYC advanced ops
Getting data is not easy
Home-made solution
Home-made solution problems
Indexing blockchain data is hard
The Graph solution
GitHub
How The Graph Works
Flow
Conclusion
💯 days of Web3
Support
Definition
"The Graph" is a decentralized protocol for blockchains, starting with Ethereum.
The Graph core functionalities are:
- indexing data
- querying data
It makes it let you query data that it would be difficult to query directly.