Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/santinofajardo/erc-20-contract
High level implementation of the ERC-20 tokens contract
https://github.com/santinofajardo/erc-20-contract
bitcoin blockchain erc20 erc20-tokens ethereum ethereum-contract evm evm-blockchain solidity solidity-contracts
Last synced: 16 days ago
JSON representation
High level implementation of the ERC-20 tokens contract
- Host: GitHub
- URL: https://github.com/santinofajardo/erc-20-contract
- Owner: SantinoFajardo
- Created: 2024-08-11T20:21:52.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-11T20:40:56.000Z (3 months ago)
- Last Synced: 2024-09-23T07:04:07.061Z (about 2 months ago)
- Topics: bitcoin, blockchain, erc20, erc20-tokens, ethereum, ethereum-contract, evm, evm-blockchain, solidity, solidity-contracts
- Language: Solidity
- Homepage:
- Size: 514 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
`ERC-20` Token interface implementation
What this contract does?
This contract is a high-level implementation of the `ERC-20` protocol.
This contract writes the main functionalities of the protocol to transfer, give allowance to other addresses, mint tokens and give the token a symbol and name.
Go through this code to understand better how the `ERC-20` protocol works and its main features and functions.What is ERC-20?
The `ERC-20` protocol is a technical standard used for creating and managing tokens on the Ethereum blockchain. Essentially, it defines a common set of rules that all Ethereum tokens must follow, enabling different types of tokens to interact with each other, with smart contracts, and with decentralized applications (dApps) in a uniform manner.
Why was created ERC-20?
Before the introduction of `ERC-20`, there was no standard for tokens on the Ethereum blockchain. This led to compatibility issues between different tokens and made it challenging to create smart contracts that could interact with multiple tokens. The `ERC-20` standard was created to standardize how tokens are issued, transferred, and managed on Ethereum, making it easier to develop decentralized applications and ensure interoperability between tokens.
When and Who Created the ERC-20 Protocol?
The `ERC-20` protocol was proposed by Fabian Vogelsteller and Vitalik Buterin in November 2015. Vogelsteller is a developer who has worked extensively in the Ethereum ecosystem, and Vitalik Buterin is the creator of Ethereum. Together, they proposed this standard as a solution to the growing need for uniformity in the creation and management of tokens.
What is an ERC-20 Token?
An `ERC-20` token is a token that follows the rules defined by the `ERC-20` standard. These tokens are essentially smart contracts that operate on the Ethereum blockchain and represent fungible assets, meaning each token has the same value and is interchangeable with any other token of the same type.
What Does the ERC-20 Protocol Do?
The `ERC-20` protocol defines six mandatory and three optional functions that must be implemented in a token contract. These functions include:
- **Total Supply**: Defines the total number of tokens that will exist.
- **Balance Of**: Provides the balance of tokens for a specific address.
- **Transfer**: Allows tokens to be transferred from one address to another.
- **Approve**: Allows an address to approve another address to withdraw tokens.
- **Transfer From**: Allows tokens to be transferred on behalf of another address, provided they have been approved.
- **Allowance**: Returns the remaining number of tokens that an approved spender is allowed to withdraw.