Chromia
Start Building

05 / 16Module 2: The blockchain dappIntermediate

Part 1: Set up the blockchain dapp

  1. Your chromia.yml file declares the FT4 library as a dependency. Replace its contents with the configuration below:
chromia.yml
blockchains:  asset_management:    module: main    moduleArgs:      main:        basic: 5      lib.ft4.core.admin:        admin_pubkey: x"023BEE5A479CE5AF31F6F64EDE7BEAD394E92E4D973E1727782DB577A55E878563"compile:  rellVersion: 0.14.9  source: rell/srcdatabase:  schema: schema_asset_managementtest:  modules:    - test  moduleArgs:    lib.ft4.core.admin:      admin_pubkey: x"023BEE5A479CE5AF31F6F64EDE7BEAD394E92E4D973E1727782DB577A55E878563"libs:  ft4:    registry: https://gitlab.com/chromaway/ft4-lib.git    path: rell/src/lib/ft4    tagOrBranch: v1.2.0r    rid: x"E96915FD7C9A5DD4E183D86F4A5B4BB5083A7CC1EDEB1465EDFFC926E67C93F6"    insecure: false  iccf:    registry: https://gitlab.com/chromaway/core/directory-chain    path: src/lib/iccf    tagOrBranch: 1.87.0    rid: x"9C359787B75927733034EA1CEE74EEC8829D2907E4FC94790B5E9ABE4396575D"    insecure: false
  1. Download the FT4 library by running chr install.

With this configuration in place, your project has the FT4 library and the other dependencies required to build the asset management system.

Written for this site from Chromia’s public course. Code samples are the course’s own.