// Browser entry point for the registration flow. Everything the register page // needs, and nothing that touches the filesystem or a private key we hold. // // Bundled by build-web.mjs to site/js/bns-register.js as a plain ES module: // export { BuiltInWallet, CHIPNET_PREFIX, MAINNET_PREFIX, DEFAULT_PREFIX } from "../lib/wallet-web.js"; export { connect, checkAvailability, quoteRegistration, registerWithBuiltInWallet, registerWithExternalWallet, registerTldWithBuiltInWallet, registerTldWithExternalWallet, findTldOwnerAddress, splitServiceFee, setRecordsWithBuiltInWallet, setRecordsWithExternalWallet, setTldRecordsWithBuiltInWallet, signRecordsManifest, findCertificateUtxo, getBalance, } from "../lib/registrar.js"; export { REGISTRAR, priceSummary } from "../registrar-config.js"; export { buildRegistrationTx, buildTldRegistrationTx, buildUpdateTx, buildPrepTx, hasGenesisInput, toWcTransactionObject, normalizeName, normalizeTld, displayName, payloadBudget, TLD_BEACON, NoGenesisInputError, InsufficientFundsError, } from "../lib/register-tx.js"; export { signTransaction, txidOf, txidOfHex } from "../lib/sign-tx.js"; export { buildListing, completeSale, verifyListing, signInputs, sourceOutputToJson, sourceOutputFromJson } from "../lib/market-tx.js"; export { findTldCertificateUtxo, buildCosignRequest, signCosignRequest } from "../lib/registrar.js"; export { usdListingRedeem, usdListingAddress, payoutSats, parseOracleMessage, verifyOracleMessage, buildUsdListingTx, buildUsdBuyTx, buildUsdCancelTx, verifyUsdListing, DEFAULT_MAX_AGE_SECS } from "../lib/market-usd.js"; export { toTokenAddress, addressToLockingBytecode, addressToScripthash, getUtxos, getUtxosForAddresses, broadcast } from "../lib/chain.js"; export { resolveName, buildIndex, NETWORK, NETWORKS, getNetwork, requireBeacons, DEFAULT_NETWORK_ID } from "../lib/resolver-web.js"; export { describeGenesisRequirement, pubkeyToAddress, pubkeyToLockingBytecode, } from "../lib/connect/wallet-session.js"; export { binToHex, hexToBin } from "@bitauth/libauth"; export { stringify } from "@bitauth/libauth"; // NOT re-exported here on purpose: the WizardConnect and WalletConnect adapters. // They are separate bundles (site/js/wizardconnect.js, site/js/walletconnect2.js) // that the page dynamic-imports only when the buyer picks that option. // - WizardConnect: LGPL-3.0-or-later, must stay separate + unminified (ยง4d1). // - WalletConnect: ~590 kB nobody using the built-in wallet should download.