NguyenHaDoanh / se07-24.1

Tìm hiểu về blockchain
1 stars 0 forks source link

Triển khai & thực hành Solidity #12

Open Doanlly opened 2 years ago

Doanlly commented 2 years ago

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 🤠🤠

Doanlly commented 2 years ago

https://ethereum.org/en/ Ethereum https://docs.soliditylang.org/en/v0.8.10/ solidity https://inseclab.uit.edu.vn/blockchain-tren-ethereum-cach-tao-mot-ung-dung-hello-world-don-gian/ ide Remix

Doanlly commented 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ỉ 👯 🦖

Doanlly commented 2 years ago

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.

Doanlly commented 2 years ago

Simplestorage - Copy.txt

Doanlly commented 2 years ago

https://github.com/NguyenHaDoanh/se07-24.1/blob/main/contract/firstcontracbasicrules/Simplestorage.sol

Doanlly commented 2 years ago

https://github.com/NguyenHaDoanh/se07-24.1/blob/main/contract/firstcontracbasicrules/StorageFactory.sol image image

Doanlly commented 2 years ago

https://docs.chain.link/docs/make-a-http-get-request/ data.chain.link https://eth-converter.com/ doi 1 so don vi

Doanlly commented 2 years ago

https://remix.ethereum.org/#url=https://docs.chain.link/samples/PriceFeeds/PriceConsumerV3.sol&optimize=false&runs=200&evmVersion=null&version=soljson-v0.8.7+commit.e28d00a7.js mạng thử nghiệm Kovan---- 2:36-2:40

Doanlly commented 2 years ago

auction basic by solidity Deploy ---- sau khi nhập thời gian cho phiên giao dịch (120s) image image image image 1 địa chỉ khắc đặt là 200 khi ko ai đặt cao hơn thì auctionendtime để kết thúc auction image image

Doanlly commented 2 years ago

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ệ.

Doanlly commented 2 years ago

Blockchain mở ra thế giới Internet mới https://genk.vn/blockchain-web-30-se-mo-ra-the-gioi-internet-moi-20220110113758612.chn

Doanlly commented 2 years ago

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.