ERC-6372: Contract Clock for Governance
A meta-standard that pairs with ERC-5805. Every governance contract advertises its timekeeping mode via two methods:
clock()returns the current "time" in the contract's chosen unit.CLOCK_MODE()returns a machine-readable string likemode=blocknumber&from=defaultormode=timestamp.
This lets governance frontends and oracles work uniformly across token contracts that use block numbers vs timestamps.
Neo Equivalent
The Neo C# port simply exposes both methods, returning Ledger.CurrentIndex (block number) or Runtime.Time (millisecond timestamp).
Live on Neo TestNet
Both implementations deployed on Neo N3 TestNet.
| Implementation | TestNet Address | Contract Hash |
|---|---|---|
Solidity (neo-solc) | NPrkGGCSZwLTUQxzUQnf4WSKsk2rZPTSKt | 0xe3c55758…df77442b |
Neo C# (nccs) | NQpFbsh7JUys9dYhB86gCVr2hxfYkzKJYw | 0xeb454a6b…1ed6c335 |
Verified: CLOCK_MODE returns "mode=blocknumber&from=default" from both. The Neo C# version uses Ledger.CurrentIndex directly. docs/standards-mirror/deployments/erc-6372/.
