@permissionless-technologies/upp-sdk 0.5.2 → 0.5.4

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.
@@ -4,7 +4,7 @@ import { computeSingleOriginASPRoot } from '../chunk-6IEYWJVS.js';
4
4
  export { ASP_TREE_DEPTH, buildASPTree, computeMultiOriginASPRoot, computeSingleOriginASPRoot, generateASPProof, generateMultiOriginASPProof, generateSingleOriginASPProof } from '../chunk-6IEYWJVS.js';
5
5
  import { CircuitArtifactCache, CIRCUIT_VERSION } from '../chunk-2BSIUEPO.js';
6
6
  export { CIRCUIT_CDN_BASE, CIRCUIT_VERSION, CircuitArtifactCache } from '../chunk-2BSIUEPO.js';
7
- import { createAutoAdapter } from '../chunk-XV72HNHN.js';
7
+ import { createIndexedDBAdapter } from '../chunk-ABVALIIG.js';
8
8
  import '../chunk-UQIM2KT3.js';
9
9
  import { init_poseidon, computeOwnerHash } from '../chunk-5QSSX3KR.js';
10
10
  import { __toCommonJS } from '../chunk-Z6ZWNWWR.js';
@@ -108,7 +108,7 @@ function UPPAccountProvider({
108
108
  accountAdapterRef.current = null;
109
109
  return;
110
110
  }
111
- const accountStorage = createAutoAdapter(`upp_account`);
111
+ const accountStorage = createIndexedDBAdapter(`upp_account`);
112
112
  const adapter = new StorableAccountAdapter(accountStorage, ethAddress);
113
113
  accountAdapterRef.current = adapter;
114
114
  const legacyKey = getStorageKey(ethAddress);
@@ -149,7 +149,7 @@ function UPPAccountProvider({
149
149
  if (account.starkKeys) setStarkMasterKeys(account.starkKeys);
150
150
  const ownerHashHex2 = toHex(account.keys.ownerHash, { size: 32 });
151
151
  const storagePrefix = `upp_${chainId}_${ownerHashHex2.slice(0, 12)}`;
152
- const noteStorage = createAutoAdapter(storagePrefix);
152
+ const noteStorage = createIndexedDBAdapter(storagePrefix);
153
153
  const store = new NoteStore(noteStorage, "notes");
154
154
  noteStoreRef.current = store;
155
155
  noteStoreUnsub = store.onChange(() => {