일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
- error
- useState
- Interface
- blockchain
- node.js
- bitcoin
- evm
- solidity
- API
- Props
- JavaScript
- hardhat
- Ethereum
- typeScript
- middleware
- built in object
- express.js
- nextJS
- graphQL
- concept
- CSS
- CLASS
- Redux
- 기준
- SSR
- HTML
- tailwindcss
- REACT
- web
- 삶
- Today
- Total
목록전체 글 (369)
ReasonJun
Pure and view functions are special types of functions in Solidity that have different restrictions on how they can interact with the state of the contract. Pure functions do not read or modify the state of the contract. They can only use the parameters that are passed to them and local variables. Pure functions are often used to perform calculations or to validate data. View functions can read ..
Visibility in Solidity is used to control who can access and modify functions and state variables within a contract. There are four visibility levels in Solidity: Public: Public functions and state variables can be accessed by anyone, inside or outside of the contract. Internal: Internal functions and state variables can be accessed by any function within the contract, as well as any function wi..
Operators in Solidity are used to perform various operations on data. There are many different types of operators, each with its own specific function. The most common types of operators in Solidity are: Arithmetic operators: These operators are used to perform basic arithmetic operations, such as addition, subtraction, multiplication, and division. Comparison operators: These operators are used..
A constant in Solidity is a variable whose value cannot be changed once it has been initialized. Constants are defined using the constant keyword. Constants can be used to represent values that should not change, such as the maximum supply of a token or the address of a trusted contract. They can also be used to improve the readability and maintainability of your code. Here is an example of how ..
Solidity has two main types of data types: value types and reference types. Value types are stored directly in the memory of the Ethereum Virtual Machine (EVM). When a value type variable is assigned to another variable, a copy of the value is created. This means that changes to one variable will not affect the other variable. Reference types are stored in a separate memory location and contain ..
Storage Storage is a persistent data store in Solidity that is used to store state variables. State variables are variables that are saved to the blockchain and can be accessed and modified by any user of the contract. Storage is the most expensive type of storage in Solidity, as it requires gas to read and write to. Memory Memory is a temporary data store in Solidity that is used to store data ..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/dpIpwl/btsywt1Hbpf/Z6r9hkekF469Z4mZjxYPa0/img.png)
Variable : The name given to the memory space that can store variable values, or the memory space itself, is called a 'variable'. State Variables : Declared outside of a function. Variable permanently stored in the contract storage. Local Variables : Declared inside a function. Exists only during function execution. Not stored in blockchain contract. Global Variables : (ex. Block info , msg info..
1. SPDX - License - Identifier ex . //SPDX-License-Identifier: MIT : In each file of the project, add a line at the top that matches the license. Determine the License applied to the file License standardization of source code and documents Eliminate error-prone license header parsing 2. Pragma solidity ex. pragma solidity >= 0.7.0 < 0.9.0; : Indicates the solidity compiled version of the curren..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/Zw8NP/btsyktiB71f/bmLNUZhvuEJXKSgRpHkhGk/img.png)
The GHOST protocol (Greedy Heaviest Observed Subtree) is a chain selection rule that is used in the Ethereum blockchain. It is a modification of the longest chain rule, which was the original chain selection rule used in Ethereum. The GHOST protocol was introduced in 2013 as a way to improve the security of the Ethereum blockchain. It does this by making it more difficult for attackers to mine e..
The Contract Application Binary Interface (ABI) in the Ethereum Virtual Machine (EVM) is a standard way to interact with smart contracts. It defines the functions and data types that are available in a smart contract and which we can use to interact with that smart contract. The ABI is a JSON file that contains information about the smart contract, such as the name of the contract, the functions..