@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.
- package/dist/{chunk-6DCMXFSQ.cjs → chunk-4T5DWZBN.cjs} +217 -4
- package/dist/chunk-4T5DWZBN.cjs.map +1 -0
- package/dist/{chunk-MVSBQMRA.js → chunk-4W7BBQ4H.js} +212 -4
- package/dist/chunk-4W7BBQ4H.js.map +1 -0
- package/dist/chunk-ABVALIIG.js +152 -0
- package/dist/chunk-ABVALIIG.js.map +1 -0
- package/dist/chunk-ARH2SJM3.cjs +155 -0
- package/dist/chunk-ARH2SJM3.cjs.map +1 -0
- package/dist/index.cjs +3 -3
- package/dist/index.js +2 -2
- package/dist/indexer/index.cjs +25 -25
- package/dist/indexer/index.d.cts +6 -0
- package/dist/indexer/index.d.ts +6 -0
- package/dist/indexer/index.js +2 -2
- package/dist/react/index.cjs +3 -3
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +3 -3
- package/dist/react/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-6DCMXFSQ.cjs.map +0 -1
- package/dist/chunk-ERQE57IA.cjs +0 -404
- package/dist/chunk-ERQE57IA.cjs.map +0 -1
- package/dist/chunk-MVSBQMRA.js.map +0 -1
- package/dist/chunk-XV72HNHN.js +0 -399
- package/dist/chunk-XV72HNHN.js.map +0 -1
package/dist/react/index.js
CHANGED
|
@@ -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 {
|
|
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 =
|
|
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 =
|
|
152
|
+
const noteStorage = createIndexedDBAdapter(storagePrefix);
|
|
153
153
|
const store = new NoteStore(noteStorage, "notes");
|
|
154
154
|
noteStoreRef.current = store;
|
|
155
155
|
noteStoreUnsub = store.onChange(() => {
|