Skip to content

Aggregate Tables and The Global Snapshot

Ebrahim Gomaa edited this page May 3, 2023 · 2 revisions

Global Snapshot table

Total Circulating ZCN Coin supply: zcn_supply

  • Increased by amount on the event: TagAddMint where amount = (event.Data as state.Mint).Amount, which is emitted in the following situations
  • Decreased by amount on the event: TagBurn where amount = (event.Data as state.Mint).Amount, which is emitted in the following situations
    • Transfer from non-minter to a minter (smart contract), which happens in the following situations:
      • TxnTypeData and TxnTypeSend
      • Burning Txn Fees
      • Token Refill: FaucetSC.refill()
      • Lock stake for miner/sharder
      • Lock stake for blobber
      • Lock stake for ZCNSC (authorizers)
      • Lock read pool
      • Lock write pool
      • Creating new allocation with --tokens flag. The amount is the value of the flag.
      • Extending the allocation with --tokens flag. The amount is the value of the flag.
      • Reducing the allocation with --tokens flag. The amount is the value of the flag.

Locked data are no more circulating, thus removed from "ZCN Supply" and will return back when unlocked.

Providers' Count: blobber_count, miner_count, sharder_count, validator_count, authorizer_count

  • Simply the count of active providers (i.e. not killed nor shutdown)