2026-07-29 13:54:34 +02:00
|
|
|
// 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:
|
|
|
|
|
// <script type="module"> import * as BNS from './js/bns-register.js' </script>
|
|
|
|
|
|
|
|
|
|
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";
|
2026-08-31 05:40:47 +02:00
|
|
|
export { toTokenAddress, addressToLockingBytecode, addressToScripthash, getUtxos, getUtxosForAddresses, broadcast } from "../lib/chain.js";
|
2026-07-29 13:54:34 +02:00
|
|
|
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.
|