root_contracts.rs

Overview

This file defines constants representing the root addresses and ABI (Application Binary Interface) JSON strings for two key smart contracts within the system: the BlockKeeperContractRoot and the BlockManagerContractRoot. These constants are used to facilitate interaction with these contracts by providing their unique blockchain addresses and their interface descriptions.

Constants

BK_CONTRACT_ROOT_ADDR

BK_CONTRACT_ROOT_ABI

BM_CONTRACT_ROOT_ADDR

BM_CONTRACT_ROOT_ABI

Implementation Details

Interaction with Other System Components

Visual Diagram

flowchart TD
BK_ADDR["BK_CONTRACT_ROOT_ADDR"]
BK_ABI["BK_CONTRACT_ROOT_ABI"]
BM_ADDR["BM_CONTRACT_ROOT_ADDR"]
BM_ABI["BM_CONTRACT_ROOT_ABI"]
BK_ADDR ---|used by| ContractClients
BK_ABI ---|used by| ContractClients
BM_ADDR ---|used by| ContractClients
BM_ABI ---|used by| ContractClients

This flowchart depicts the four constants as key contract identifiers and interfaces, all of which are consumed by contract client modules that handle blockchain interaction workflows.