EccConfig.abi.json

Overview

The EccConfig.abi.json file defines the Application Binary Interface (ABI) for a smart contract that manages token configuration data. It specifies the contract's version, header fields, functions, data fields, and their types, enabling interaction with the contract by external applications or other smart contracts.

This ABI supports:

The contract internally maintains a mapping of token data indexed by a unique key and includes metadata such as timestamps and ownership.

File Structure and Components

ABI Metadata

Fields

The contract defines several persistent fields used to store state:

Field Name

Type

Description

Initialization

_pubkey

uint256

Public key of the contract owner or deployer

Initialized

_timestamp

uint64

Timestamp of the last state change

Not initialized

_constructorFlag

bool

Boolean flag indicating constructor execution status

Not initialized

_data

map(uint32, tuple)

Mapping from token key to token data and timestamp

Not initialized

_owner

address

Address of the owner of the contract

Not initialized

The _data map stores complex tuples representing token configurations; each token entry includes:

Functions

constructor

setNewToken

getDetails

Implementation Details and Algorithms

Interaction with Other Parts of the System


Visual Diagram

classDiagram
class EccConfig {
-_pubkey: uint256
-_timestamp: uint64
-_constructorFlag: bool
-_data: map(uint32, tuple)
-_owner: address
+constructor()
+setNewToken()
+getDetails()
}
class TokenData {
+key: uint32
+name: string
+decimals: uint64
+baseMinted: uint64
+description: string
+time: uint32
}
EccConfig "1" o-- "*" TokenData : _data