Open Doanlly opened 2 years ago
https://www.youtube.com/watch?v=vkZVWuioP1M Lập Trình Solidity - xem bản Việt cho dễ hiểu đã nhỉ 👯 🦖
Data types 1 số kiểu dữ liệu cơ bản trong solidity:
boolean (bool):
true hoặc false, toán tử có thể sử dụng ! (not), && (and), || (or), == (equal), != (not equal).
integer (int/uint)uin
Từ int8/uint8 (8 bit) đến int256/uint256 (256 bit) với số bit là bội của 8. Nếu viết uint/int thì trình biên dịch sẽ mặc định hiểu là uint256/int256.
fixed point (fixed/ufixed)
Chưa support hoàn toàn ở thời điểm hiện tại.
address
Kích thước 20 byte, dùng để lưu thông tin ethereum address.
byte array (fixed)
byte1, byte2, byte3 … byte32.
byte array (dynamic)
Dynamic size arrays of bytes, được định nghĩ kiểu bytes hoặc string.
enumstructmapping
Cặp key => value, tương tự std::map trong C++.
time units
seconds, minutes, hours, days, weeks, years. 1 years = 365 days.
ether units
wei, finney, szabo and ether.
https://docs.chain.link/docs/make-a-http-get-request/ data.chain.link https://eth-converter.com/ doi 1 so don vi
auction basic by solidity Deploy ---- sau khi nhập thời gian cho phiên giao dịch (120s) 1 địa chỉ khắc đặt là 200 khi ko ai đặt cao hơn thì auctionendtime để kết thúc auction
Tìm hiểu về Web3 https://coin68.com/web-3-0-web3-foundation-la-gi/ Web 3.0 là thế hệ thứ ba của internet, đó là tầm nhìn về một Internet thông minh không máy chủ bao gồm những web phi tập trung kết nối với nhau. Một Internet nơi mà người dùng được quyền kiểm soát dữ liệu, danh tính và số phận của chính họ. Polkadot – giao thức hàng đầu của Web3 Foundation
Polkadot (DOT) là một công nghệ đa chuỗi (Multi-Chain), không đồng nhất (heterogeneous) và có thể mở rộng. Cho phép các Blockchain kết nối với nhau để chia sẻ dữ liệu để tạo thành một Network phi tập trung. Polkadot tập trung giải quyết hai vấn đề chính của Blockchain đó là khả năng tương tác và khả năng mở rộng của mạng lưới.
Polkadot là một dự án mã nguồn mở và bất cứ ai cũng có thể tự do đóng góp cho sự phát triển của nền tảng. Đối với Polkadot, Web3 Foundation có vai trò đóng góp tài chính lẫn công nghệ.
Blockchain mở ra thế giới Internet mới https://genk.vn/blockchain-web-30-se-mo-ra-the-gioi-internet-moi-20220110113758612.chn
Tính minh bạch, khả năng bảo mật, sự phân quyền là ưu thế của công nghệ Blockchain, tạo nên tính ứng dụng rộng rãi trong vận tải, logistics, dịch vụ công cộng, giáo dục... Những nhân tố như metaverse, gamefi, NFT, web 3.0.
https://remix.ethereum.org/#optimize=false&runs=200&evmVersion=null&version=soljson-v0.8.7+commit.e28d00a7.js trang code trên web nhé mn 🤠🤠