For the complete documentation index, see llms.txt. This page is also available as Markdown.

Contract Methods Reference

The table below summarizes the contract methods and their operational role.

Contract
Method
Key Role
Trigger
Purpose

DPOS Contract

setFreeze(freeze, validators[])

Admin key

Every 10s (freeze) + Every 1min (freeze or unfreeze)

Freeze or unfreeze validators

DPOS Contract

updateValidator()

Admin key

Every 10s

Rotate validator set

Heartbeat Contract

pushStatus({onlineList[], onlineTimestamp})

Operator key

Every 1 hour

Append online node set for that timestamp slot into contract storage

Heartbeat Contract

getNodeList({rate})

DPOS Contract (internal)

Daily 18:00, inside extract()

Return validators that appeared in ≥rate% of stored hourly slots

Heartbeat Contract

clearRecord()

DPOS Contract (internal)

Daily 18:00, after getNodeList()

Delete all timestamp records

DPOS Contract

extract()

Admin key

Daily 18:00

Query Heartbeat Contract, calculate reward distribution, wipe records

DPOS Contract

extractTransfer(list[])

Admin key

Daily 18:00

Distribute rewards to fund addresses

Contract interaction pattern

The DPOS contract is the decision and settlement contract. The Heartbeat contract is the historical evidence store used to derive online participation.

This separation is useful because it keeps monitoring evidence and reward execution loosely coupled while preserving on-chain verification of eligibility.

Last updated