跳到主要内容

Bios Boot Tutorial

The bios-boot-tutorial.py script simulates the bios boot sequence.

Prerequisites

  1. Python 3.x
  2. CMake
  3. git
  4. g++
  5. build-essentials
  6. pip3
  7. openssl
  8. curl
  9. jq
  10. psmisc

Steps

  1. Install Leap 3.1 binaries by following the steps provided in the Leap README.

  2. Install CDT 3.0 binaries by following the steps provided in the CDT README.

  3. Compile EOS System Contracts 3.1:

$ cd ~
$ git clone https://github.com/eosnetworkfoundation/eos-system-contracts system-contracts-3.1
$ cd ./system-contracts-3.1/
$ git checkout release/3.1
$ mkdir build
$ cd ./build
$ cmake -DCMAKE_BUILD_TYPE=Release ..
$ make -j $(nproc)
$ cd ./contracts/
$ pwd
  1. Make note of the path where the contracts were compiled The last command in the previous step printed the contracts directory. Make note of it; we will reference it from now on as the environment variable CONTRACTS_DIRECTORY.

  2. Launch the bios-boot-tutorial.py script:

$ cd ~
$ git clone https://github.com/AntelopeIO/leap
$ cd ./leap/tutorials/bios-boot-tutorial/
$ python3 bios-boot-tutorial.py --cleos=cleos --nodeos=nodeos --keosd=keosd --contracts-dir="${CONTRACTS_DIRECTORY}" -w -a