From ce9248a3270ee6cccd49d595a13ea7a963064744 Mon Sep 17 00:00:00 2001 From: Local Dev Date: Wed, 9 Sep 2026 01:09:05 +0200 Subject: [PATCH] feat(sirius-x): tier-based label pricing; badges on search cards + TLD list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Single source of truth (js/pricing.js) mirrored on landing, tld.html and the mint flow — same label always shows the same price everywhere. Name tiers (label part): 1 char $5.00 premium-1 2 chars $3.00 short-2 3 chars $2.00 short-3 4–5 chars $1.00 standard 6–7 chars $0.50 long 8–16 chars $0.25 extended 17+ chars $0.10 very-long all-digits ×0.5 (less brandable) contains hyphen ×0.7 TLD tiers (label part): 1 char $10.00 premium-1 2 chars $8.00 short-2 3 chars $6.00 short-3 4–8 chars $5.00 standard 9+ chars $4.00 long Rendering: - Landing #search-results: acid-tinted price badge on each available row; grid grew a fourth column so name + badge + price + button all sit on one line - tld.html search result-card: same price badge next to the Register button on available TLDs - tld.html registered-TLDs table: new 'Mint price' column showing the tier price for every registered TLD, so buyers see the pricing ladder next to concrete examples Mint pipe: - startFlow(name)/startTldFlow(label) resolve the label price via window.siriusPricing (default) but honour opts.serviceFeeSats when the caller passes one — leaves the door open for coupons / operator discounts / oracle overrides in a future revision without reshuffling call sites - The overridden service fee is threaded through quoteRegistration AND registerWithBuiltInWallet/registerWithExternalWallet so the confirm screen and the on-chain output agree Chipnet placeholder rate (250,000 sat/USD) stays in pricing.js; mainnet will swap in a live BCH/USD oracle. Operator-side discounts and coupon codes are the next iteration — deliberately not disclosed in this shipping copy. --- index.html | 17 +++++++++-- js/pricing.js | 71 +++++++++++++++++++++++++++++++++++++++++++++ js/register-flow.js | 24 ++++++++++++--- tld.html | 34 +++++++++++++++++----- 4 files changed, 133 insertions(+), 13 deletions(-) create mode 100644 js/pricing.js diff --git a/index.html b/index.html index 8831dee..65c141f 100644 --- a/index.html +++ b/index.html @@ -126,11 +126,15 @@ +