// 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 } from "../lib/wallet-web.js"; export { connect, checkAvailability, quoteRegistration, registerWithBuiltInWallet, registerWithExternalWallet, setRecordsWithBuiltInWallet, setRecordsWithExternalWallet, findCertificateUtxo, getBalance, } from "../lib/registrar.js"; export { REGISTRAR, priceSummary } from "../registrar-config.js"; export { buildRegistrationTx, buildUpdateTx, buildPrepTx, hasGenesisInput, toWcTransactionObject, normalizeName, displayName, payloadBudget, NoGenesisInputError, InsufficientFundsError, } from "../lib/register-tx.js"; export { signTransaction, txidOf, txidOfHex } from "../lib/sign-tx.js"; export { toTokenAddress, addressToLockingBytecode, addressToScripthash, getUtxos, getUtxosForAddresses, broadcast } from "../lib/chain.js"; export { resolveName, buildIndex } 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.