Tham gia guild Base Camp

Creat by SnowFlower9x

FFRCYPTO COMMUNITY

FFRCYPTO COMMUNITY

Hướng dẫn tham gia Base Camp, bài khá dài ae thực hiện lần lượt nhé

Yêu cầu:

  1. Truy cập link deploy connect ví

post image
  • Đặt tên cho Workspace

post image
  • Create new folder

post image
  • Sau đó ấn vào mục 2. Owner.sol

post image
  • Chọn tab Solidity Compiler => Ấn Compile 2_Owner.sol

post image
  • Chuyển sang tab Deploy => Connect ví Metamask => Deploy

post image

  1. BasicMath

post image
  • Đặt tên file BasicMath, sau đó qua github copy hết dòng code và paste lại vào bên Remix

post image
  • Sang tiếp mục SOLIDITY COMPILER ấn Compile BasicMath.sol

post image
  • Sang mục Deploy => ấn deploy => Confirm lệnh trên Metamask

post image
  • Copy contract vừa deploy

post imagepost image

  1. Control Structures

  • Truy cập lại remix, sang mục tạo thư mục mới có tên Control Structures

post image
  • Sang github copy code mục Control Structures

post image
  • Thực hiện việc compile và deploy tương tự như với phần guide BaseMath

post imagepost image

  1. Storage

  • Truy cập lại remix, tạo thư mục mới tên Storage, sang github mục Storage copy code và tiến hành deploy

    post image
  • Ở mục Deploy điền lần lượt các thông số sau sau đó ấn Transact

post imagepost image

  1. Arrays

  • Tạo file name Arrays trên remix sau đó copy code ở github

post image

  1. Mapping

  1. Structs

post image

  1. Inheritance

  • Làm tương tự đến bước deploy

  • Ở bước deploy sẽ xuất hiện cảnh báo này:

post image
  • Ấn OK, sau đó chọn vào mục Saleperson -contract/

post image
  • Điền các thông số sau:

    Id number: 55555

    Manager ID: 12345

    Hourly rate: 20

post image
  • Chọn tiếp ở mục Contract sang mục EngineeringManager

post image
  • Điền tiếp các thông số sau:

  • Annualsalary: 200000

  • Id number: 54321

  • Manager Id: 11111

post image
  • Chọn tiếp mục sau InheritanceSubmission

post image
  • Copy lần lượt contract của _SALESPERSON và _ENGINEERINGMANAGER để điền vào mục bên dưới (copy theo contract vừa tạo ở trên)

post imagepost image

  1. SillyStringUtils

  • Tạo file SillyStringUtils

post image
  • Tạo tiếp file Import và deploy

post imagepost image

  1. Errors

post image

  1. AddressBook and Other Contracts

  • Tạo file AddressBook (ko deploy chỉ tạo)

post image
  • Tạo file OtherContracts, bước Compile nếu lỗi thì chọn vào ver 0.8.20

post image

Compile OK => Sang deploy và copy contract

post image
post image

  1. Minimal Token

  • Tạo file name Minimal Token ở remix và copy code ở github, đổi giá trị value thành 123456

post imagepost image
  • Deploy token:

    post image

  1. ERC20

  • Tạo contract name ERC20 ở remix, copy code ở Github thư mục ERC20, sau đó ở dòng code kéo lên trên cùng thay đổi giá trị "value" thành "cthe" (cái này ae có thể tự đặt tên theo ý muốn được nhé)

post imagepost image
  • Tiến hành Compile và Deploy, ở mục Deploy điền các thông số sau

post image
post image

  1. ERC721

  • Tạo tên file contract ERC721 và copy code ở github

  • Compile và deploy

post image

Tham gia guild Base Camp