Velvet SocietyTHE HANDBOOK
Handbook / 03 / CONTRACTS & REFERENCEReviewed 2 Nov 2026

03 / CONTRACTS & REFERENCE

The rules beneath the velvet.

A fixed testnet board, a burnable test token and a funded faucet. Read the addresses, exact state machine and public source release before signing.

DogeOS 6281971Test HRBGHighNoonBoard V2
01 / CONTRACTS & REFERENCE

The deployed contracts.

Velvet Society V2 starts a fresh token, fresh HighNoonBoard and fresh faucet on DogeOS Chikyū testnet. The nightclub experience still uses temporary space control, an executable posted price and 1% rent per game day. It is not an ERC-721 or permanent property.

V2 contractAddressExplorer
HighNoonBoard0x44D6FAFa9B595f1Be4282d73923140ceD98f71E8Inspect this deployment ↗
TestHRBG0xAd43d4c027a1F21a19104261dfEE85bBe677940EInspect this deployment ↗
HRBGFaucet0xdCA24f560b4F4C7E6C5c4DD954b795BbE6d85fa4Inspect this deployment ↗

Network: DogeOS Chikyū testnet, chain 6281971. RPC: https://rpc.testnet.dogeos.com/. HRBG uses 18 decimals; gas uses test DOGE. Recorded board deployment block: 9132412.

V1 token balances, deposits, credits and scores are not copied to V2. Eligible V1 unused deposits and credits remain on the original V1 board. Use V1 withdrawals, verify the V1 token and board, and collect through the original contracts. A website update does not cancel those balances.

02 / CONTRACTS & REFERENCE

A selected public source release.

This selected public package contains the current three MIT protocol sources, ABIs, public deployment data and source hashes. The development repository and backend remain private. The dated V1 source release is preserved separately.

Build recordV2
CompilerSolidity 0.8.38+commit.1835d247
DependencyOpenZeppelin Contracts 5.4.0, retaining its MIT license.
SettingsOptimizer enabled, 200 runs; viaIR true; Prague EVM target.
Runtime sizesBoard 10,232 bytes; token 1,857; faucet 3,565. See the matching release manifest.
Validation scopeLocal regression and invariant checks and source/runtime comparison are engineering evidence, not an independent audit or guarantee. Use the dated release record for actual completed checks.

The SHA-256 hashes identify downloaded files. Exact deployed-runtime verification additionally needs the compiler/settings and constructor immutables. The source package must match the addresses shown above; V1 compiler, size and test-count records do not describe V2.

03 / CONTRACTS & REFERENCE

Seven contract states.

Value / stateMeaningHolder actions / buyer behavior
0 / LockedThe space’s floor has not opened.Inspect only; no purchase.
1 / VacantNo current holder; floor open.Purchase at 1,000 HRBG, choose new ask and fund a new buffer.
2 / ActiveHolder has funded control.Top up, reprice, choose scoring position or withdraw excess while keeping the minimum. Anyone can buy at the current ask.
3 / CureFunding depleted; six-game-hour cure window.Scoring has stopped. Top up enough to cover debt and a day of funding before cure ends. Repricing is blocked; others can still buy at the ask.
4 / AuctionCure ended; six-game-hour recovery sale.No top-up or repricing. The purchase price descends for five hours, then stays at the 100 HRBG floor for one hour. Rent no longer accrues.
5 / ExpiredThe recovery window ended without a purchase.An active-round purchase reopens at 1,000 HRBG and is treated as a primary burn.
6 / EndedThe game clock reached round end.No purchases, funding or scoring. Existing holders recover unused buffers; account credits remain withdrawable.

getPlot calculates the view at the current game time, including lazy rent accrual. Reading does not itself submit a settlement transaction. The visible state can change because time passes even if no new trade was recorded.

Implementation: HighNoonBoard.sol · getPlot, _state and _price. Explorer verification identifies source; it is not a security audit.

04 / CONTRACTS & REFERENCE

The recovery timeline.

Funding reaches zero

Whole-second funded scoring stops at depletion. A capped obligation begins; the saved fractional rent remainder is carried.

Six game hours to cure

Pay the accumulated debt and restore at least ceil(askingPriceWei / 100) as deposit. The obligation is capped at six hours of upkeep.

Five game hours of descent

The price descends linearly from the previous ask toward 100 HRBG. The contract quote, not a floating-point approximation, is executable.

One game hour at the floor

The minimum purchase price stays at 100 HRBG. A buyer still supplies its own new ask and at least a day of deposit.

Expired at twelve hours after depletion

If there was no takeover, the next active-round purchase costs 1,000 HRBG. The previous holder receives no automatic payout for losing the space.

In any takeover with a nonexpired seller, debt payment is the lesser of the outstanding capped obligation (including the applicable fractional settlement) and the purchase price. That payment burns; the seller receives the remaining price as credits, plus unused deposit. Surrender is different: it clears unpaid cure debt but pays no sale proceeds.

Implementation: HighNoonBoard.sol · CURE_PERIOD, AUCTION_DESCENT, AUCTION_FLOOR, buy, topUp and release. Explorer verification identifies source; it is not a security audit.

05 / CONTRACTS & REFERENCE

Two clocks to keep separate.

gameTime() excludes protocol pause time and caps at the immutable round end. A round lasts 1,209,600 game seconds (14 days), with floors opening at start, day 3 and day 7.

In V2, each pause is bounded by MAX_PAUSE_DURATION = 86400 seconds. paused() automatically becomes false at the deadline, even if the owner never submits an unpause transaction. pauseEndsAt() exposes the stored deadline; a past nonzero deadline does not mean the board is still paused. The game clock resumes automatically after that bounded interval.

The owner can later start another bounded pause, so this is a per-pause availability safeguard, not a lifetime 24-hour cap on all administrator pauses. Ownership remains transferable through Ownable2Step; ownership renunciation is disabled. A separately controlled production multisig remains a future governance gate.

A cure or recovery window uses game time. Faucet cooldowns and global daily budgets use wall-clock block timestamps; UTC days are floor(block.timestamp / 86400). Crew jobs, offchain DUST days and notification quiet hours use real-time service timestamps. Never promise a fixed calendar end while protocol pauses can happen.

06 / CONTRACTS & REFERENCE

The transaction surface.

FunctionInputs / effectAvailability
buy(id,newAsk,newDeposit,maxPrice,expectedVersion,deadline)Pays current executable price plus new rent buffer, settles the outgoing position and advances its ownership epoch.Active unpaused round; epoch matches; price within ceiling; wall-clock deadline valid.
reprice(id,newAsk,expectedVersion)Settles old rent and changes the future ask; the same ownership epoch is retained.Current funded holder, matching epoch and at least one day of buffer at the new ask.
topUp(id,amount)Pays capped debt first, then adds remaining tokens to deposit. Does not advance the ownership epoch.Current holder; active unpaused round; before recovery auction begins.
withdrawDeposit(id,amount)Moves unused deposit into credits and emits DepositWithdrawn; epoch stays unchanged.Holder only; keep a day of buffer before round end. After end, unused deposit may be fully credited.
release(id)Settles and credits unused buffer, ends control, advances the ownership epoch and reopens at the opening price.Current holder; independent of trading pause.
withdrawCredits()Transfers caller credits to that same caller.Positive credits, including during a pause or after round end.
selectScoringClaim(id)Settles previous selected score and selects one funded held space.Current holder; active unpaused round.
settle(id)Permissionless lazy rent/score accounting; no caller reward.Valid space.
setPaused(bool) / setNpc(address,bool)Bounded pause control and NPC labelling.Owner only. renounceOwnership() always reverts.

V2 version means ownership epoch, not every mutation. Buy and release advance it. A holder’s reprice, top-up, deposit withdrawal or public settlement does not invalidate that epoch. A seller cannot cause stale-epoch reverts merely by maintaining the position.

It is still not a reservation: asking price, funding, recovery state and executable price can change within the same epoch. Always refresh and enforce the maximum purchase price plus a short wall-clock deadline. A takeover and same-wallet reacquisition create a new epoch.

07 / CONTRACTS & REFERENCE

Exact amounts and nonobvious edge cases.

  • Use base-unit integer strings or BigInt for HRBG. One token is 10^18 units. Floating-point JavaScript numbers cannot represent all valid token amounts.
  • minimumDeposit(ask) rounds up by at most one wei relative to dividing by 100. A newly quoted exact minimum can become insufficient after elapsed rent on an existing position; leave a funding margin.
  • A self-purchase does not erase owed upkeep. The contract settles prior rent and can round the outgoing fractional amount up by at most one wei.
  • selectedClaim[wallet] stores spaceId + 1. Zero means no selected space; it does not mean space zero. UI VS01 corresponds to contract ID zero.
  • Only the selected funded position contributes score. Scores already earned remain after a sale. Holding several other spaces does not multiply pending time.
  • Credit withdrawal is a separate pull action. Receiving sale credits is not the same as receiving tokens in the wallet.
  • The admin can pause the board and label NPC addresses, and can transfer the admin role through Ownable2Step. The contract has no admin function to set an owner’s ask, seize escrow or mint HRBG.
08 / CONTRACTS & REFERENCE

Receipts, counters and what they do not prove.

Board events include ClaimPurchased, AskingPriceChanged, UpkeepFunded, UpkeepSettled, ClaimReleased, CreditWithdrawn, ScoringClaimSelected and the V2 DepositWithdrawn(uint256 indexed id,address indexed holder,uint256 amount). The last event records movement from rent deposit into credits; a later credit withdrawal is a separate transfer.

Faucet FaucetClaimed records an actual grant. FundsRecovered(address indexed treasury,uint256 amount) records a post-end transfer to the immutable treasury. Read transaction status and intended chain rather than treating a requested action as confirmed.

The activity feed excludes approvals, faucet grants and background settlements from gameplay purchase counts. Registered NPCs remain labelled. Unlabelled-wallet purchases do not prove unique humans. Token balances held by the board include deposit and credit liabilities; burns are not operator revenue. Lazy view accrual can be newer than persistent counters.