Files

Bios Boot Tutorial

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

Prerequisites

  1. Python 3.x
  2. CMake
  3. git
  4. curl
  5. libcurl4-gnutls-dev

Steps

  1. Install the latest Spring binaries by following the steps provided in the README.

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

  3. Compile the latest System Contracts. Replaces release/*latest* with the latest release branch.

$ cd ~
$ git clone https://github.com/VaultaFoundation/system-contracts
$ cd ./system-contracts/
$ git checkout release/*latest*
$ 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 CORE_CONTRACTS_DIRECTORY.

  2. Compile the latest Vaulta Contracts. Run off the latest from branch main

$ cd ~
$ git clone https://github.com/VaultaFoundation/vaulta-system-contract
$ cd ./vaulta-system-contract/
$ git checkout main
$ mkdir build
$ cd ./build
$ export SYSTEM_CONTRACTS_PATH=${CORE_CONTRACTS_DIRECTORY}
$ cmake -DCMAKE_BUILD_TYPE=Release ..
$ make -j $(nproc)
$ cd ./contracts/
$ pwd
  1. Make note of the path where the vaulta contracts were compiled The last command in the previous step printed the vaulta contracts directory. Make note of it; we will reference it from now on as the environment variable VAULTA_CONTRACTS_DIRECTOR .

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

$ pip install numpy
$ cd ~
$ git clone -b release/*latest* https://github.com/AntelopeIO/spring
$ cd ./spring/tutorials/bios-boot-tutorial/
$ python3 bios-boot-tutorial.py --cleos=cleos --nodeos=nodeos --keosd=keosd --core-contracts-dir="${CORE_CONTRACTS_DIRECTORY}" --vaulta-contracts-dir="${VAULTA_CONTRACTS_DIRECTOR}" --symbol="EOS" -w -a