PopCoinRoot.abi.json

Overview

This file defines the Application Binary Interface (ABI) of the PopCoinRoot smart contract version 2.4. It specifies the contract's functions, their inputs and outputs, persistent fields, and constructor parameters. The contract appears to manage a collection of "Popits"—digital entities with associated media and metadata—and handles operations such as creation, activation, destruction, and reward minting related to these Popits. It also manages access control via public/private state and maintains supply information.

The ABI allows interaction with the contract's methods programmatically, enabling other system components or external clients to invoke functions, retrieve contract state, and respond to events.


Detailed Descriptions

Contract Functions

constructor

constructor(
  PopCoinWalletCode,
  popitgamehash,
  maxPopitIndex,
  popits_media,
  description,
  root_pubkey,
  isPublic,
  index,
  popitGameOwner
)

setIsPublic


setPopitMedia


addNewPopit / addNewPopitPublic


activate


activatePopit


deleteCandidate


getTapReward


destroy / destroyNode


mintValue / mintValuePopit / mintValueOld


isReady / isReadyPopit


getDetails


getVersion


Persistent Fields


Implementation Details and Algorithms


Interactions with Other System Components


Visual Diagram: Structure of PopCoinRoot Contract ABI

classDiagram
class PopCoinRoot {
<<contract>>
+constructor()
+setIsPublic()
+setPopitMedia()
+addNewPopit()
+addNewPopitPublic()
+activate()
+activatePopit()
+deleteCandidate()
+getTapReward()
+destroy()
+mintValue()
+mintValuePopit()
+mintValueOld()
+isReady()
+isReadyPopit()
+destroyNode()
+getDetails()
+getVersion()
-_pubkey
-_timestamp
-_constructorFlag
-_code
-_isReady
-_popitgamehash
-_root
-_name
-_isPublic
-_totalSupply
-_maxPopitIndex
-_popits_value
-_popits_media
-_popits_candidate
-_root_pubkey
-_description
-_rewards
-_basicRewards
-_popitGameOwner
-_MBNLst
-_TAPLst
-_BCLst
-_deployed
}