abi.rs

Overview

The abi.rs file provides static references to essential contract data used in the system's decentralized application (DApp) configuration and root components. Specifically, it exposes the contract addresses, Application Binary Interfaces (ABIs), and compiled contract code (tvc) as static string or byte slices. These constants enable other parts of the application to interact programmatically with the smart contracts by providing the necessary metadata and bytecode.


Constants

DAPP_ROOT_ADDR

DAPP_CONFIG_ABI

DAPP_ROOT_ABI

DAPP_CONFIG_TVC


Implementation Details


Interaction with the System


File Structure Diagram

flowchart TD
A[abi.rs] --> B[DAPP_ROOT_ADDR]
A --> C[DAPP_CONFIG_ABI]
A --> D[DAPP_ROOT_ABI]
A --> E[DAPP_CONFIG_TVC]
B[Address String]
C[ABI JSON String]
D[ABI JSON String]
E[Bytecode TVC]

This diagram illustrates abi.rs as a container of four static constants: two ABI JSON strings (DAPP_CONFIG_ABI, DAPP_ROOT_ABI), one address string (DAPP_ROOT_ADDR), and one byte slice representing compiled contract code (DAPP_CONFIG_TVC).