Podcast
Questions and Answers
ERC-20 tokens are non-fungible tokens (NFT)
ERC-20 tokens are non-fungible tokens (NFT)
False (B)
View functions can modify states or call other non-view functions
View functions can modify states or call other non-view functions
False (B)
Payable address can receive Ether
Payable address can receive Ether
True (A)
The fallback function must be external and payable
The fallback function must be external and payable
ERC-721 is an extension of the ERC-20 interface
ERC-721 is an extension of the ERC-20 interface
Decimals are used to specify how many decimal places a token has
Decimals are used to specify how many decimal places a token has
ERC-1155 is a multi-token standard
ERC-1155 is a multi-token standard
The receive function has no function keyword, no arguments, and no return values
The receive function has no function keyword, no arguments, and no return values
Event EVM logging facilities are used for ERC-20 tokens
Event EVM logging facilities are used for ERC-20 tokens
The total token supply is calculated as the displayed amount multiplied by 10^decimals
The total token supply is calculated as the displayed amount multiplied by 10^decimals
Smart contracts were first proposed in the 1990s as a digital form of promises
Smart contracts were first proposed in the 1990s as a digital form of promises
Solidity is designed for Ethereum and also used by Binance Smart Chain, Avalanche, XinFin
Solidity is designed for Ethereum and also used by Binance Smart Chain, Avalanche, XinFin
Solidity is a dynamically-typed language
Solidity is a dynamically-typed language
Smart contract state variables of value types are stored in the stack
Smart contract state variables of value types are stored in the stack
Storage variables are written in the blockchain and stored permanently
Storage variables are written in the blockchain and stored permanently
Local variables of reference types in a function are stored in memory or storage
Local variables of reference types in a function are stored in memory or storage
Solidity is a Turing-complete language
Solidity is a Turing-complete language
The cost of storing data in the memory scales quadratically per operation
The cost of storing data in the memory scales quadratically per operation
Smart contracts can be modified after they are deployed
Smart contracts can be modified after they are deployed
The cost of storing data in the stack is cheaper than in memory or storage
The cost of storing data in the stack is cheaper than in memory or storage
Flashcards
ERC-20 tokens are NFTs
ERC-20 tokens are NFTs
ERC-20 tokens are fungible, not non-fungible.
View functions modify state
View functions modify state
View functions do not modify the contract's state.
Payable address receives Ether
Payable address receives Ether
A payable address can receive Ether.
Fallback function is external, payable?
Fallback function is external, payable?
Signup and view all the flashcards
ERC-721 is an extension of ERC-20
ERC-721 is an extension of ERC-20
Signup and view all the flashcards
Decimals specify token decimals
Decimals specify token decimals
Signup and view all the flashcards
ERC-1155 is a multi-token standard
ERC-1155 is a multi-token standard
Signup and view all the flashcards
Receive function has no keyword
Receive function has no keyword
Signup and view all the flashcards
Event EVM logging for ERC20
Event EVM logging for ERC20
Signup and view all the flashcards
Total supply from decimals
Total supply from decimals
Signup and view all the flashcards
Smart contracts in 1990s
Smart contracts in 1990s
Signup and view all the flashcards
Solidity used by other blockchains?
Solidity used by other blockchains?
Signup and view all the flashcards
Solidity is dynamically typed
Solidity is dynamically typed
Signup and view all the flashcards
Value types stored in stack
Value types stored in stack
Signup and view all the flashcards
Storage variables are permanent
Storage variables are permanent
Signup and view all the flashcards
Local variables (reference types)
Local variables (reference types)
Signup and view all the flashcards
Solidity is Turing complete
Solidity is Turing complete
Signup and view all the flashcards
Memory storage cost
Memory storage cost
Signup and view all the flashcards
Smart contracts modifiable after deployment
Smart contracts modifiable after deployment
Signup and view all the flashcards
Stack storage cost
Stack storage cost
Signup and view all the flashcards
Study Notes
ERC Tokens
- ERC-20 tokens are not non-fungible tokens (NFT), they are a standard for fungible tokens.
- ERC-721 is an extension of the ERC-20 interface.
- ERC-1155 is a multi-token standard.
Function Types
- View functions cannot modify states or call other non-view functions.
- Payable address can receive Ether.
- The fallback function must be external and payable.
- The receive function has no function keyword, no arguments, and no return values.
Token Supply
- Decimals are used to specify how many decimal places a token has.
- The total token supply is calculated as the displayed amount multiplied by 10^decimals.
Smart Contracts
- Smart contracts were first proposed in the 1990s as a digital form of promises.
- Solidity is designed for Ethereum and also used by Binance Smart Chain, Avalanche, XinFin.
- Solidity is a dynamically-typed language.
- Solidity is a Turing-complete language.
Storage and Memory
- Smart contract state variables of value types are stored in the stack.
- Storage variables are written in the blockchain and stored permanently.
- Local variables of reference types in a function are stored in memory or storage.
- The cost of storing data in the stack is cheaper than in memory or storage.
- The cost of storing data in the memory scales quadratically per operation.
- Smart contracts cannot be modified after they are deployed.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.
Description
Test your understanding of smart contracts, Solidity programming, token standards, and smart contract security with this quiz based on the principles of blockchains. Explore the basic structure of smart contracts, token standards like ERC20 and ERC721, and the lifecycle of smart contracts.