Skip to content

docs(agents): mainnet live + mobile rate ticker#141

Merged
anderdc merged 4 commits into
testfrom
docs/agent-mainnet-live
Jul 13, 2026
Merged

docs(agents): mainnet live + mobile rate ticker#141
anderdc merged 4 commits into
testfrom
docs/agent-mainnet-live

Conversation

@anderdc

@anderdc anderdc commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Reframes the agents page around the live network (mainnet, netuid 7) instead of "internal bring-up", so it reads as what a user agent actually does to interact with allways for real.

  • Wallet callout leads with mainnet as the live network (real SOL/BTC/TAO); testnet is a free mirror for dry-runs.
  • CLI-config section leads with the mainnet block; testnet becomes the dry-run block.
  • Testnet section reframed as "rehearse a flow before spending real assets."
  • BTC swap example uses a mainnet bc1q… source by default.

public/llms.txt kept byte-for-byte in sync with AgentMarkdown.ts.


Also in this PR — mobile rate ticker + refresh-note cleanup (UI)

Small dashboard/miners UI change folded in:

  • Mobile rate strip → auto-scrolling ticker. The current-crown rate strip stacked into a tall column on mobile; it's now an auto-scrolling marquee — tap to pause, and prefers-reduced-motion falls back to a static, hand-swipeable row. Desktop (sm+) is unchanged. New shared Ticker component, used by both RatesTicker (dashboard) and StickyNetworkHeader (miners page) so both strips scroll identically.
  • Miner-page header: dropped a duplicate "X ago" note. The header showed both last event (chain liveness, BlockIndicator) and last refresh (validator scoring flush) — two similar notes that read as duplicate refreshes. Removed the last event line from that header; it now carries only the validator last refresh. (The dashboard keeps its last event indicator — it never had the doubling.)

Files: src/components/Ticker.tsx (new), src/components/dashboard/RatesTicker.tsx, src/components/miners/StickyNetworkHeader.tsx. tsc -b / eslint / prettier all clean.

anderdc added 3 commits July 13, 2026 11:24
Reframe the agent quickstart around the live network (mainnet, netuid 7) instead
of "internal bring-up". It now reads as what a user agent actually does to
interact with allways for real:

- Wallet callout leads with mainnet as the live network (real SOL/BTC/TAO);
  testnet is presented as a free mirror for dry-runs.
- CLI-config section leads with the mainnet block; testnet is the dry-run block.
- Testnet section framed as "rehearse before spending real assets".
- BTC swap example uses a mainnet `bc1q…` source by default.

public/llms.txt kept in sync with AgentMarkdown.ts.
…ands

Final scan against the actual CLI (test branch, what pipx installs) turned up two
commands the doc presented as working that print "not yet available from the CLI":

- `alw claim` — the TimedOut 1.1× SOL payout is automatic; reframed as such, with
  the manual claim noted as coming to the CLI (removed the "run alw claim" steps).
- `alw swap resume-reservation` — reframed interrupted-flow recovery to the real
  path: check `alw view reservation`, finish it if live, else re-run `alw swap now`.
- Cheat-sheet rows for both annotated as not-yet-wired.

Everything else verified accurate: all `alw view` subcommands + `--watch` exist,
SwapStatus enum (Active/Fulfilled/Completed/TimedOut) matches, 1.1× collateral =
COLLATERAL_REQUIREMENT_BPS 11_000, and both mainnet and testnet APIs return 200.

llms.txt kept in sync.
…resh note

On mobile the rate strip stacked into a tall column. Wrap the direction
segments in a shared Ticker: an auto-scrolling marquee on xs (tap to pause,
prefers-reduced-motion -> static swipeable row), unchanged wrapping row on sm+.
Used by both RatesTicker (dashboard) and StickyNetworkHeader (miners).

Also drop the BlockIndicator 'last event' line from the miner-page header so it
carries only the validator 'last refresh' (scoring flush) age -- the two
similar 'X ago' notes read as duplicate refreshes.
@anderdc anderdc changed the title docs(agents): treat mainnet as the live network docs(agents): mainnet live + mobile rate ticker Jul 13, 2026
Duration was a fixed 20s, but the animation travels one content-width (-50%)
per cycle — so the wider dashboard strip (EMA suffix) scrolled faster than the
narrower miners strip. Derive duration from measured copy width at a constant
~22 px/s so both match. Also composite on the GPU (will-change + translate3d)
so the miner header's per-second 'last refresh' re-render can't stutter it.
@anderdc anderdc merged commit c230bce into test Jul 13, 2026
2 checks passed
@anderdc anderdc deleted the docs/agent-mainnet-live branch July 13, 2026 17:00
anderdc added a commit that referenced this pull request Jul 13, 2026
Nudge the shared Ticker scroll speed up a hair from 22 to 25 px/s. Follow-up to
the marquee landed in #141.

Co-authored-by: anderdc <me@alexanderdc.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant