BlockKeeperPreEpochContract.abi.json

Overview

BlockKeeperPreEpochContract.abi.json defines the Application Binary Interface (ABI) for the BlockKeeper Pre-Epoch smart contract. This contract is designed to manage the state and lifecycle of a "pre-epoch" phase in a blockchain consensus or staking system. It facilitates initialization, state maintenance, and controlled destruction of the contract instance, while also exposing functions to retrieve contract metadata such as public keys, version info, and ownership details.

The ABI specification includes definitions for the contract's constructor, state-changing functions, query functions, and storage fields. This file serves as a crucial interface layer, enabling interaction with the contract on-chain and integration with other components of the consensus or staking protocol ecosystem.

Contract Functions

constructor

destroy

touch

touchIn

cancelPreEpoch

getDetails

getVersion

Storage Fields

The contract maintains several internal state fields, which include:

Implementation Details

Interaction with System Components

Mermaid Diagram

classDiagram
class BlockKeeperPreEpochContract {
+constructor()
+destroy()
+touch()
+touchIn()
+cancelPreEpoch()
+getDetails()
+getVersion()
-_pubkey
-_timestamp
-_constructorFlag
-_code
-_owner_pubkey
-_root
-_seqNoStart
-_seqNoDestruct
-_epochDuration
-_waitStep
-_bls_pubkey
-_stake
-_signerIndex
-_sumReputationCoef
-_licenses
-_wallet
-_virtualStake
-_reward_sum
-_myIp
-isDestroy
-_nodeVersion
}

This diagram depicts the contract as a class with its public functions and private fields, illustrating the encapsulated structure of the contract ABI.