@arkade-os/sdk 0.5.5 → 0.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/dist/adapters/expo.cjs +6 -6
  2. package/dist/adapters/expo.d.cts +2 -2
  3. package/dist/adapters/expo.d.ts +2 -2
  4. package/dist/adapters/expo.js +3 -3
  5. package/dist/{asyncStorageTaskQueue-BbH-THYJ.d.cts → asyncStorageTaskQueue-Bh2n0msM.d.cts} +2 -2
  6. package/dist/{asyncStorageTaskQueue-BlvkJyTa.d.ts → asyncStorageTaskQueue-CpkstKZ5.d.ts} +2 -2
  7. package/dist/{chunk-BCA6D255.js → chunk-47Z4LEIW.js} +3 -3
  8. package/dist/{chunk-BCA6D255.js.map → chunk-47Z4LEIW.js.map} +1 -1
  9. package/dist/{chunk-HQQ4NRXI.cjs → chunk-4X67IB2V.cjs} +15 -15
  10. package/dist/{chunk-HQQ4NRXI.cjs.map → chunk-4X67IB2V.cjs.map} +1 -1
  11. package/dist/{chunk-7GIKLFHC.js → chunk-C7NY6WSA.js} +3 -3
  12. package/dist/{chunk-7GIKLFHC.js.map → chunk-C7NY6WSA.js.map} +1 -1
  13. package/dist/{chunk-CE46RS6L.js → chunk-DJYX73W2.js} +4 -4
  14. package/dist/{chunk-CE46RS6L.js.map → chunk-DJYX73W2.js.map} +1 -1
  15. package/dist/{chunk-XWUCNMPN.cjs → chunk-HKEPJBTY.cjs} +16 -16
  16. package/dist/{chunk-XWUCNMPN.cjs.map → chunk-HKEPJBTY.cjs.map} +1 -1
  17. package/dist/{chunk-KCL5AVML.cjs → chunk-LZAINCGU.cjs} +3 -3
  18. package/dist/{chunk-KCL5AVML.cjs.map → chunk-LZAINCGU.cjs.map} +1 -1
  19. package/dist/{chunk-AMH7Q3DF.cjs → chunk-NDQ4LB4X.cjs} +8 -8
  20. package/dist/{chunk-AMH7Q3DF.cjs.map → chunk-NDQ4LB4X.cjs.map} +1 -1
  21. package/dist/{chunk-4I53THL6.js → chunk-QTMK34TP.js} +3 -3
  22. package/dist/{chunk-4I53THL6.js.map → chunk-QTMK34TP.js.map} +1 -1
  23. package/dist/{chunk-FVVXCDNE.js → chunk-VWW2ZBPI.js} +4 -4
  24. package/dist/{chunk-FVVXCDNE.js.map → chunk-VWW2ZBPI.js.map} +1 -1
  25. package/dist/{chunk-T254PXSN.cjs → chunk-Y3CDDPWI.cjs} +454 -443
  26. package/dist/chunk-Y3CDDPWI.cjs.map +1 -0
  27. package/dist/{chunk-OO2KEK64.js → chunk-YKT4NAQG.js} +45 -34
  28. package/dist/chunk-YKT4NAQG.js.map +1 -0
  29. package/dist/{chunk-5SYUEVJH.cjs → chunk-YS76JSGP.cjs} +10 -10
  30. package/dist/{chunk-5SYUEVJH.cjs.map → chunk-YS76JSGP.cjs.map} +1 -1
  31. package/dist/contracts/handlers/index.cjs +9 -9
  32. package/dist/contracts/handlers/index.d.cts +2 -2
  33. package/dist/contracts/handlers/index.d.ts +2 -2
  34. package/dist/contracts/handlers/index.js +2 -2
  35. package/dist/{index-Bx-iArDs.d.ts → index-2wKMrT0a.d.ts} +1 -1
  36. package/dist/{index-BWwVnJhU.d.cts → index-46g577Ka.d.cts} +1 -1
  37. package/dist/{index-DCml4QJn.d.ts → index-C66rjxz2.d.ts} +25 -25
  38. package/dist/{index-DkyzIzKL.d.cts → index-Dqk07NwJ.d.cts} +25 -25
  39. package/dist/index.cjs +311 -311
  40. package/dist/index.d.cts +23 -23
  41. package/dist/index.d.ts +23 -23
  42. package/dist/index.js +4 -4
  43. package/dist/{keyringDescriptorProvider-CS4w4PWd.d.ts → keyringDescriptorProvider-DiBM4GmB.d.ts} +9 -9
  44. package/dist/{keyringDescriptorProvider-CmHXrIXd.d.cts → keyringDescriptorProvider-DnaLUC7v.d.cts} +9 -9
  45. package/dist/repositories/realm/index.cjs +37 -37
  46. package/dist/repositories/realm/index.cjs.map +1 -1
  47. package/dist/repositories/realm/index.d.cts +6 -6
  48. package/dist/repositories/realm/index.d.ts +6 -6
  49. package/dist/repositories/realm/index.js +6 -6
  50. package/dist/repositories/realm/index.js.map +1 -1
  51. package/dist/repositories/sqlite/index.cjs +35 -35
  52. package/dist/repositories/sqlite/index.cjs.map +1 -1
  53. package/dist/repositories/sqlite/index.d.cts +6 -6
  54. package/dist/repositories/sqlite/index.d.ts +6 -6
  55. package/dist/repositories/sqlite/index.js +5 -5
  56. package/dist/repositories/sqlite/index.js.map +1 -1
  57. package/dist/{taskRunner-DgMLSk_O.d.ts → taskRunner-BM6IAKlS.d.ts} +2 -2
  58. package/dist/{taskRunner-buh6aFpG.d.cts → taskRunner-BmDIZiSl.d.cts} +2 -2
  59. package/dist/wallet/expo/background.cjs +14 -14
  60. package/dist/wallet/expo/background.d.cts +3 -3
  61. package/dist/wallet/expo/background.d.ts +3 -3
  62. package/dist/wallet/expo/background.js +6 -6
  63. package/dist/wallet/expo/index.cjs +15 -15
  64. package/dist/wallet/expo/index.cjs.map +1 -1
  65. package/dist/wallet/expo/index.d.cts +6 -6
  66. package/dist/wallet/expo/index.d.ts +6 -6
  67. package/dist/wallet/expo/index.js +5 -5
  68. package/dist/wallet/expo/index.js.map +1 -1
  69. package/dist/worker/expo/index.cjs +9 -9
  70. package/dist/worker/expo/index.d.cts +4 -4
  71. package/dist/worker/expo/index.d.ts +4 -4
  72. package/dist/worker/expo/index.js +5 -5
  73. package/package.json +1 -1
  74. package/dist/chunk-OO2KEK64.js.map +0 -1
  75. package/dist/chunk-T254PXSN.cjs.map +0 -1
@@ -1,9 +1,9 @@
1
1
  import { programFromArtifact, isContractArtifact } from './chunk-V3ZLL5VY.js';
2
- import { Packet, AssetId, AssetGroup, AssetInput, AssetOutput, Metadata, RestIndexerProvider, BufferReader, BufferWriter, IndexerUtxosUnsupportedError, AssetRef } from './chunk-7GIKLFHC.js';
3
- import { contractHandlers, speculativeReceiveMetadata, isMainnetDescriptor, descriptorIsOurs, deriveDescriptorLeafPubKey, deriveDescriptorLeafCompressedPubKey, normalizeToDescriptor, extractPubKey, parseHDDescriptor, identityDescriptor, DefaultVtxo, DelegateVtxo, WALLET_RECEIVE_SOURCE, BoardingContractHandler, DefaultContractHandler, exitSequence } from './chunk-BCA6D255.js';
2
+ import { Packet, AssetId, AssetGroup, AssetInput, AssetOutput, Metadata, RestIndexerProvider, BufferReader, BufferWriter, IndexerUtxosUnsupportedError, AssetRef } from './chunk-C7NY6WSA.js';
3
+ import { contractHandlers, speculativeReceiveMetadata, isMainnetDescriptor, descriptorIsOurs, deriveDescriptorLeafPubKey, deriveDescriptorLeafCompressedPubKey, normalizeToDescriptor, extractPubKey, parseHDDescriptor, identityDescriptor, DefaultVtxo, DelegateVtxo, WALLET_RECEIVE_SOURCE, BoardingContractHandler, DefaultContractHandler, exitSequence } from './chunk-47Z4LEIW.js';
4
4
  import { witnessRefToBytes, validateProgram, toASM, stringifyArtifact, serializeArkadeContractParams, resolveAsm, parseArtifact, getOpcodeValue, getOpcodeName, fromASM, deserializeArkadeContractParams, computeArkadeScriptPublicKey, bytesToASM, asmToBytes, arkadeWitnessHash, arkadeScriptHash, UnsupportedProgramVersionError, SUPPORTED_PROGRAM_VERSION, OPCODE_VALUES, OPCODE_NAMES, bignum_exports, ArkadeScript, ArkadeProgramScript, ARKADE_OPS, ARKADE_OPCODE_VALUES, ARKADE_OPCODE_NAMES, ARKADE_OPCODES, ARKADE_OP, toXOnly, staticWitness, validateParamValue } from './chunk-DNFTHG73.js';
5
- import { Transaction, requiresForfeit, setArkPsbtField, ConditionWitness, toOffchainInputFeeParams, normalizeVtxo, Proof, isVtxoSpent, getNormalizedVtxos, PrevArkTxField, craftToSpendTx, RestOperatorProvider, isVirtualCoin, getArkPsbtFields, CosignerPublicKey, ServerResponseMismatchError, isArkError, ArkErrorName, assertNonNegativeMs, isRetryableProviderError, OUTPOINT_QUERY_CHUNK_SIZE, getAllNormalizedVtxos, DEFAULT_PAGE_SIZE, VtxoTaprootTree, PrevoutTxField, OnchainCosignUnsupportedError, assertAllowedSighashTypes, OP_RETURN_EMPTY_PKSCRIPT, canSweepOnchain, baseFetch, assertTimerMs, isEventSourceError, isEventSourceUnavailableError, isPastExpiry, formatSighash, rateGate, OnchainCosignRejectedError, maybeArkError, canRecoverOnchain, READ_TIMEOUT_MS, OnchainCosignAmbiguousError, ArkError, resolveTimeHeight, canSpendOffchain, INFO_FETCH_TIMEOUT_MS, fetchVtxoCreatedAtByTxid, EXPIRY_MIN_PLAUSIBLE_MS, ProviderUnavailableError, ONCHAIN_COSIGN_REJECTED_PREFIX, ONCHAIN_COSIGN_AMBIGUOUS_PREFIX, ONCHAIN_COSIGN_UNSUPPORTED_PREFIX } from './chunk-4I53THL6.js';
6
- import { VtxoScript, __export, CSVMultisigTapscript, networks, getNetwork, DEFAULT_NETWORK, resolveEmulatorPubkey, timelockToSequence, decodeTapscript, CLTVMultisigTapscript, ConditionCSVMultisigTapscript, ArkAddress, sequenceToTimelock, DEFAULT_ARKADE_SERVER_URL, DEFAULT_NETWORK_NAME, scriptFromTapLeafScript, proofTapLeafScriptOf, getSequence, MultisigTapscript, DEFAULT_ARKADE_EMULATOR_URL, networkFromArkadeInfo, toBIP371TapTree } from './chunk-FDJ734CH.js';
5
+ import { Transaction, requiresForfeit, setArkPsbtField, ConditionWitness, toOffchainInputFeeParams, normalizeVtxo, Proof, isVtxoSpent, getNormalizedVtxos, PrevArkTxField, craftToSpendTx, RestOperatorProvider, isVirtualCoin, getArkPsbtFields, CosignerPublicKey, ServerResponseMismatchError, isArkError, ArkErrorName, assertNonNegativeMs, isRetryableProviderError, OUTPOINT_QUERY_CHUNK_SIZE, getAllNormalizedVtxos, DEFAULT_PAGE_SIZE, VtxoTaprootTree, PrevoutTxField, OnchainCosignUnsupportedError, assertAllowedSighashTypes, OP_RETURN_EMPTY_PKSCRIPT, canSweepOnchain, baseFetch, assertTimerMs, isEventSourceError, isEventSourceUnavailableError, isPastExpiry, formatSighash, rateGate, OnchainCosignRejectedError, maybeArkError, canRecoverOnchain, READ_TIMEOUT_MS, OnchainCosignAmbiguousError, ArkError, resolveTimeHeight, canSpendOffchain, INFO_FETCH_TIMEOUT_MS, fetchVtxoCreatedAtByTxid, EXPIRY_MIN_PLAUSIBLE_MS, ProviderUnavailableError, ONCHAIN_COSIGN_REJECTED_PREFIX, ONCHAIN_COSIGN_AMBIGUOUS_PREFIX, ONCHAIN_COSIGN_UNSUPPORTED_PREFIX } from './chunk-QTMK34TP.js';
6
+ import { VtxoScript, __export, CSVMultisigTapscript, networks, getNetwork, DEFAULT_NETWORK, resolveEmulatorPubkey, timelockToSequence, decodeTapscript, CLTVMultisigTapscript, ConditionCSVMultisigTapscript, ArkAddress, sequenceToTimelock, DEFAULT_ARKADE_SERVER_URL, DEFAULT_NETWORK_NAME, scriptFromTapLeafScript, proofTapLeafScriptOf, getSequence, MultisigTapscript, DEFAULT_ARKADE_EMULATOR_URL, networkFromOperatorInfo, toBIP371TapTree } from './chunk-FDJ734CH.js';
7
7
  import { entropyToMnemonic, mnemonicToSeedSync, validateMnemonic } from '@scure/bip39';
8
8
  import { wordlist } from '@scure/bip39/wordlists/english.js';
9
9
  import * as musig2 from '@scure/btc-signer/musig2.js';
@@ -1871,7 +1871,7 @@ async function collectPages(read) {
1871
1871
  }
1872
1872
 
1873
1873
  // src/repositories/intentRepository.ts
1874
- var ALL_INTENT_STATES = [
1874
+ var ALL_BATCH_REGISTRATION_STATES = [
1875
1875
  "waiting_to_submit",
1876
1876
  "waiting_for_batch",
1877
1877
  "batch_in_progress",
@@ -1887,7 +1887,7 @@ var BATCH_REGISTRATION_TERMINAL_STATES = /* @__PURE__ */ new Set([
1887
1887
  function isTerminalBatchRegistrationState(s) {
1888
1888
  return BATCH_REGISTRATION_TERMINAL_STATES.has(s);
1889
1889
  }
1890
- var collectIntents = (repository, filter) => collectPages((page) => repository.getBatchRegistrationsPage(filter, page));
1890
+ var collectBatchRegistrations = (repository, filter) => collectPages((page) => repository.getBatchRegistrationsPage(filter, page));
1891
1891
  function assertIntentIdUnique(intent, existing) {
1892
1892
  if (intent.registrationId === void 0) return;
1893
1893
  for (const e of existing) {
@@ -1919,7 +1919,7 @@ function intentMatchesFilter(i, f) {
1919
1919
  }
1920
1920
  var isTerminalIntentState = isTerminalBatchRegistrationState;
1921
1921
  var INTENT_TERMINAL_STATES = BATCH_REGISTRATION_TERMINAL_STATES;
1922
- var collectBatchRegistrations = collectIntents;
1922
+ var collectIntents = collectBatchRegistrations;
1923
1923
 
1924
1924
  // src/repositories/contractRepository.ts
1925
1925
  function contractFilterMatchesNothing(filter) {
@@ -7088,14 +7088,12 @@ var ArkadeCash = class _ArkadeCash {
7088
7088
  };
7089
7089
 
7090
7090
  // src/wallet/intentReconciliation.ts
7091
- var NON_TERMINAL_INTENT_STATES = ALL_INTENT_STATES.filter(
7092
- (s) => !isTerminalIntentState(s)
7093
- );
7091
+ var NON_TERMINAL_INTENT_STATES = ALL_BATCH_REGISTRATION_STATES.filter((s) => !isTerminalBatchRegistrationState(s));
7094
7092
  function isConsumed(vtxo) {
7095
7093
  return vtxo !== void 0 && isVtxoSpent(vtxo);
7096
7094
  }
7097
7095
  async function classifyIntent(intent, vtxosByOutpoint, now) {
7098
- if (isTerminalIntentState(intent.state)) return void 0;
7096
+ if (isTerminalBatchRegistrationState(intent.state)) return void 0;
7099
7097
  const inputs = intent.proofInputs;
7100
7098
  const consumed = inputs.map((o) => vtxosByOutpoint.get(outpointKey(o)));
7101
7099
  if (inputs.length > 0 && consumed.every(isConsumed)) {
@@ -7118,7 +7116,7 @@ async function reconcileIntents(deps) {
7118
7116
  const now = deps.now ?? Date.now;
7119
7117
  let intents;
7120
7118
  try {
7121
- intents = await collectIntents(deps.intentRepository, {
7119
+ intents = await collectBatchRegistrations(deps.intentRepository, {
7122
7120
  states: [...NON_TERMINAL_INTENT_STATES]
7123
7121
  });
7124
7122
  } catch (e) {
@@ -7143,7 +7141,7 @@ async function reconcileIntents(deps) {
7143
7141
  if (isInFlight(intent, deps)) continue;
7144
7142
  const next = await classifyIntent(intent, vtxosByOutpoint, nowMs) ?? await releaseFromServer(intent, deps, nowMs);
7145
7143
  if (!next) continue;
7146
- const [fresh] = await collectIntents(deps.intentRepository, {
7144
+ const [fresh] = await collectBatchRegistrations(deps.intentRepository, {
7147
7145
  proofTxIds: [intent.proofTxId]
7148
7146
  });
7149
7147
  if (!fresh || fresh.state !== intent.state) continue;
@@ -7156,7 +7154,7 @@ async function reconcileIntents(deps) {
7156
7154
  async function releaseIntents(deps) {
7157
7155
  let intents;
7158
7156
  try {
7159
- intents = await collectIntents(deps.intentRepository, {
7157
+ intents = await collectBatchRegistrations(deps.intentRepository, {
7160
7158
  states: [...NON_TERMINAL_INTENT_STATES]
7161
7159
  });
7162
7160
  } catch (e) {
@@ -7212,7 +7210,7 @@ function dedupeOutpoints(outpoints) {
7212
7210
 
7213
7211
  // src/wallet/intentStateReducer.ts
7214
7212
  function reduceIntentState(current, event) {
7215
- if (isTerminalIntentState(current)) return current;
7213
+ if (isTerminalBatchRegistrationState(current)) return current;
7216
7214
  switch (event.type) {
7217
7215
  case "batch_started" /* BatchStarted */:
7218
7216
  return "batch_in_progress";
@@ -7245,7 +7243,7 @@ async function persistTransition(deps, event) {
7245
7243
  const repo = deps.intentRepository;
7246
7244
  if (!repo) return;
7247
7245
  try {
7248
- const cur = (await collectIntents(repo, { proofTxIds: [deps.intentTxId] }))[0];
7246
+ const cur = (await collectBatchRegistrations(repo, { proofTxIds: [deps.intentTxId] }))[0];
7249
7247
  if (!cur) return;
7250
7248
  const next = applySettlementEventToIntent(cur, event);
7251
7249
  if (next) await repo.saveBatchRegistration(next);
@@ -8997,7 +8995,8 @@ var InMemoryBatchRegistrationRepository = class {
8997
8995
  async getLockedVtxoOutpoints() {
8998
8996
  const out = [];
8999
8997
  for (const i of this.byId.values())
9000
- if (!isTerminalIntentState(i.state)) for (const o of i.proofInputs) out.push({ ...o });
8998
+ if (!isTerminalBatchRegistrationState(i.state))
8999
+ for (const o of i.proofInputs) out.push({ ...o });
9001
9000
  return out;
9002
9001
  }
9003
9002
  /** @deprecated Use {@link saveBatchRegistration}. */
@@ -9490,7 +9489,8 @@ var IndexedDBBatchRegistrationRepository = class {
9490
9489
  const all = await promisifyRequest(store.getAll());
9491
9490
  const out = [];
9492
9491
  for (const i of all)
9493
- if (!isTerminalIntentState(i.state)) for (const o of i.intentVtxos) out.push(o);
9492
+ if (!isTerminalBatchRegistrationState(i.state))
9493
+ for (const o of i.intentVtxos) out.push(o);
9494
9494
  return out;
9495
9495
  }
9496
9496
  /** @deprecated Use {@link saveBatchRegistration}. */
@@ -14520,7 +14520,7 @@ var ReadonlyWallet = class _ReadonlyWallet {
14520
14520
  * before binding the answer into a covenant to fail closed instead of getting the snapshot.
14521
14521
  *
14522
14522
  * @returns The operator's info
14523
- * @see ArkadeInfo
14523
+ * @see OperatorInfo
14524
14524
  */
14525
14525
  async getOperatorInfo(opts) {
14526
14526
  const { info, source, lastOnlineAt } = await resolveArkInfo(
@@ -14623,7 +14623,7 @@ var ReadonlyWallet = class _ReadonlyWallet {
14623
14623
  if (!resolvedService) throw new Error("indexerProvider is unresolved");
14624
14624
  indexerProvider = resolvedService.indexerProvider;
14625
14625
  }
14626
- const network = networkFromArkadeInfo(info);
14626
+ const network = networkFromOperatorInfo(info);
14627
14627
  if ("descriptor" in config.identity) {
14628
14628
  const descriptor = config.identity.descriptor;
14629
14629
  const identityIsMainnet = !descriptor.includes("tpub");
@@ -15935,7 +15935,7 @@ var Wallet2 = class extends ReadonlyWallet {
15935
15935
  }
15936
15936
  /**
15937
15937
  * @internal Sole write path for `serverUnrollScript`; called by
15938
- * {@link Wallet._doRotateServerSigner} with the rotating `ArkadeInfo`'s checkpoint script.
15938
+ * {@link Wallet._doRotateServerSigner} with the rotating `OperatorInfo`'s checkpoint script.
15939
15939
  */
15940
15940
  setServerUnrollScriptForRotation(script) {
15941
15941
  this._serverUnrollScript = script;
@@ -17300,7 +17300,7 @@ var Wallet2 = class extends ReadonlyWallet {
17300
17300
  if (!repo) return;
17301
17301
  try {
17302
17302
  const now = Date.now();
17303
- const existing = (await collectIntents(repo, { proofTxIds: [intentTxId] }))[0];
17303
+ const existing = (await collectBatchRegistrations(repo, { proofTxIds: [intentTxId] }))[0];
17304
17304
  if (existing && isTerminalBatchRegistrationState(existing.state)) {
17305
17305
  return;
17306
17306
  }
@@ -19004,13 +19004,20 @@ async function waitForIncomingFunds(wallet, options) {
19004
19004
  let settled = false;
19005
19005
  let timeoutId;
19006
19006
  let onAbort;
19007
+ const stopSafely = (stop) => {
19008
+ try {
19009
+ stop();
19010
+ } catch (e) {
19011
+ console.warn("waitForIncomingFunds teardown failed", e);
19012
+ }
19013
+ };
19007
19014
  return new Promise((resolve, reject) => {
19008
19015
  const settle = (deliver) => {
19009
19016
  if (settled) return;
19010
19017
  settled = true;
19011
19018
  if (timeoutId !== void 0) clearTimeout(timeoutId);
19012
19019
  if (onAbort) signal?.removeEventListener("abort", onAbort);
19013
- stopFunc?.();
19020
+ if (stopFunc) stopSafely(stopFunc);
19014
19021
  deliver();
19015
19022
  };
19016
19023
  const cancel = (reason) => settle(() => reject(reason));
@@ -19024,16 +19031,20 @@ async function waitForIncomingFunds(wallet, options) {
19024
19031
  timeoutMs
19025
19032
  );
19026
19033
  }
19027
- wallet.notifyIncomingFunds((funds) => {
19028
- const hasFunds = funds.type === "utxo" ? funds.coins.length > 0 : funds.newVtxos.length > 0;
19029
- if (settled || !hasFunds) return;
19030
- settle(() => resolve(funds));
19031
- }).then((stop) => {
19032
- stopFunc = stop;
19033
- if (settled) stop();
19034
- }).catch((error) => {
19034
+ try {
19035
+ wallet.notifyIncomingFunds((funds) => {
19036
+ const hasFunds = funds.type === "utxo" ? funds.coins.length > 0 : funds.newVtxos.length > 0;
19037
+ if (settled || !hasFunds) return;
19038
+ settle(() => resolve(funds));
19039
+ }).then((stop) => {
19040
+ stopFunc = stop;
19041
+ if (settled) stopSafely(stop);
19042
+ }).catch((error) => {
19043
+ cancel(error);
19044
+ });
19045
+ } catch (error) {
19035
19046
  cancel(error);
19036
- });
19047
+ }
19037
19048
  });
19038
19049
  }
19039
19050
 
@@ -27529,5 +27540,5 @@ function createDefaultPaymentRouter(wallet) {
27529
27540
  }
27530
27541
 
27531
27542
  export { ARKADE_MAGIC, ARKADE_SALTED_PREIMAGE_TAG, ARKADE_SWAP_PREIMAGE_TAG, ASSET_CARRIER_SATS, AbortError, ActivityRegistry, AmbiguousRouteError, ArkNote, Arkade, ArkadeCash, ArkadeCashCreateError, ArkadeCashOperatorMismatchError, AssetManager, BATCH_REGISTRATION_TERMINAL_STATES, BIP21, BIP21Error, BIP322, BLOCKED_UPGRADE_TIMEOUT_MS, Batch, CachingArkProvider, CachingOperatorProvider, ChainedTxType, ConnectionDisposedError, ContractManager, ContractWatcher, DEFAULT_MESSAGE_TIMEOUTS, DEFAULT_MIN_BATCH_EXPIRY_SECONDS, DEFAULT_PASSKEY_LABEL, DatabaseUpgradeBlockedError, DelegateManagerImpl, DelegateNotConfiguredError, DescriptorIdentity, DescriptorSigningProviderMissingError, DustChangeError, ELECTRUM_TCP_HOST, ELECTRUM_WS_URL, ESPLORA_URL, ElectrumOnchainProvider, EmulatorPacket, EsploraProvider, Estimator, Extension, ExtensionNotFoundError, ForeignDescriptorError, HDDescriptorProvider, INTENT_TERMINAL_STATES, InMemoryBatchRegistrationRepository, InMemoryContractRepository, InMemoryIntentRepository, InMemoryVirtualTxRepository, InMemoryWalletRepository, IndexedDBBatchRegistrationRepository, IndexedDBContractRepository, IndexedDBIntentRepository, IndexedDBVirtualTxRepository, IndexedDBWalletRepository, KeyringDescriptorProvider, MAX_PAGE_SIZE, MAX_USED_SIGNING_DESCRIPTORS_LOOK_AHEAD, MESSAGE_BUS_INITIALIZING, MESSAGE_BUS_NOT_INITIALIZED, MessageBus, MessageBusInitializingError, MessageBusNotInitializedError, MissingSigningDescriptorError, MnemonicIdentity, OnchainCosignPreflightError, OnchainWallet, OversizedChangeError, P2A, PasskeyCancelled, PasskeyUnconfirmed, PaymentRouter, PrevTxUnavailableError, PrfUnavailable, REGTEST_MIN_BATCH_EXPIRY_SECONDS, Ramps, ReadonlyAssetManager, ReadonlyDescriptorIdentity, ReadonlySingleKey, ReadonlyWallet, ReadonlyWalletError, RestDelegateProvider, RestEmulatorProvider, SeedIdentity, SendDeadlineExceededError, ServiceWorkerReadonlyWallet, ServiceWorkerTimeoutError, ServiceWorkerWallet, SingleKey, StaticDescriptorProvider, TreeSignerSession, TxTree, TxType, TxWeightEstimator, UnannotatableInputError, UnilateralExit, UnknownPacket, Unroll, VtxoManager, VtxoReservedError, Wallet2 as Wallet, WalletCannotAllocateAddressError, WalletCannotSignError, WalletMessageHandler, WalletNotInitializedError, WsElectrumChainSource, adoptContractDescriptor, applyWalletStateUpdate, arkAssetRail, arkRail, arkTarget, arkade_exports, assertFinalCommitmentMatchesValidated, assertHistoryPageFilter, assertIntentIdUnique, assertNoAssets, assertNoSelection, assertPageRequest, assertRecipientArkadeAddress, assertSendDeadline, assertSendableAmount, assertSubmittedArkTxid, assertValidBatchExpiry, assertValidServerUnrollScript, assetMintResolver, assetsOf, attachPrevArkTxs, attachPrevoutTxs, awaitTransaction, boardingResolver, btcTarget, buildForfeitTx, buildOffchainTx, buildPreimageMessage, buildSaltedPreimageMessage, captureSendDeadline, checkSaveVtxosForScript, claimWithPreimageIdentity, classifyAgainstSignerSet, classifyContractSigner, closeDatabase, collabExitResolver, collectBatchRegistrations, collectContracts, collectIntents, collectPages, collectScriptVtxos, collectTransactionHistory, collectUtxos, collectVtxos, combineTapscriptSigs, compareHistoryCursors, contractFilterMatchesNothing, contractFromArkContract, contractFromArkContractWithAddress, contractPreimage, contractSigner, createAssetPacket, createDefaultActivityRegistry, createDefaultPaymentRouter, createExitChainResolver, createManagedConnection, createPrfPasskey, createdAtToIso, decodeArkContract, defaultBatchExpiryPolicy, deleteByIndex, deserializeAssets, deserializeExitPackage, deserializeUtxo, deserializeVtxo, encodeArkContract, evaluatePrf, exitObserverFor, extendVirtualCoinForContract, extractOperatorProviderUrl, gateExclusion, gatedContracts, getAllByIndexValues, getRandomId, hasBoardingTxExpired, hasCandidates, intentMatchesFilter, invoiceTarget, isAddressAllocationCapable, isArkContract, isBatchSignable, isBtcAddress, isContractGenericallySpendable, isContractVtxoEvent, isCooperativelyMigratable, isCosignFallback, isDeterministicSigner, isDiscoverable, isHDAllocationCapable, isHDDeterministicSignCapable, isHDWalletCapable, isLightningInvoice, isLnurl, isMessageBusInitializingError, isMessageBusNotInitializedError, isPerArtifactDescriptor, isSigningIdentity, isSubdust, isTerminalBatchRegistrationState, isTerminalIntentState, isValidArkAddress, isVtxoExpiringSoon, iteratePages, legacyVtxoFacts, logExcludedVtxos, makeHandle, matchServerCheckpoints, mergeChainedTxType, mnemonicFromPrf, notifyExitObserved, onchainRail, openDatabase, outpointExclusion, outpointReasons, pageResult, prfSupport, promisifyRequest, provisionClaimSecret, provisionRefundKey, registerWalletRestoreHook, resolveAssetAmount, resolveBatchExpiryPolicy, resolveDescriptorSigner, resolvePrevTxs, resolveSendAmount, saveVtxosForContract, scopeOf, scriptFromArkAddress, selectCoinsWithAsset, selectVirtualCoins, selectionOf, serializeAssets, serializeExitPackage, serializeUtxo, serializeVtxo, setupServiceWorker, signAndSubmitOffchainTx, signerSetFromInfo, signingDescriptorIndex, strictSigningDescriptorIndex, submitViaEmulator, toXOnlySignerHex, tryResolveSendAmount, utxoEntries, validateBatchRecipients, validateConnectorsTxGraph, validateVtxoTxGraph, verifyTapscriptSignatures, waitForIncomingFunds, walletFeeSource, warnAndFilterVtxosForScript, withPrevTxs };
27532
- //# sourceMappingURL=chunk-OO2KEK64.js.map
27533
- //# sourceMappingURL=chunk-OO2KEK64.js.map
27543
+ //# sourceMappingURL=chunk-YKT4NAQG.js.map
27544
+ //# sourceMappingURL=chunk-YKT4NAQG.js.map