@permissionless-technologies/upp-sdk 0.4.2 → 0.4.3
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-Q2E432UK.cjs → chunk-26SZPMEQ.cjs} +12 -12
- package/dist/{chunk-Q2E432UK.cjs.map → chunk-26SZPMEQ.cjs.map} +1 -1
- package/dist/{chunk-UTAJSERA.cjs → chunk-5BLMSTFQ.cjs} +2 -2
- package/dist/chunk-5BLMSTFQ.cjs.map +1 -0
- package/dist/{chunk-ZQ5LLJQC.cjs → chunk-5H2YAPYG.cjs} +2 -2
- package/dist/{chunk-ZQ5LLJQC.cjs.map → chunk-5H2YAPYG.cjs.map} +1 -1
- package/dist/{chunk-OBBSIPEK.js → chunk-FCE42WFF.js} +4 -4
- package/dist/{chunk-OBBSIPEK.js.map → chunk-FCE42WFF.js.map} +1 -1
- package/dist/{chunk-W3HLIKC2.js → chunk-KRLRJ3HN.js} +46 -24
- package/dist/chunk-KRLRJ3HN.js.map +1 -0
- package/dist/{chunk-CEJN5ZE5.js → chunk-O6ALW7DB.js} +2 -2
- package/dist/chunk-O6ALW7DB.js.map +1 -0
- package/dist/{chunk-2G22R7AJ.cjs → chunk-RYEYGGE7.cjs} +46 -24
- package/dist/chunk-RYEYGGE7.cjs.map +1 -0
- package/dist/{chunk-6BHF4HOB.js → chunk-X32ZI7UJ.js} +2 -2
- package/dist/{chunk-6BHF4HOB.js.map → chunk-X32ZI7UJ.js.map} +1 -1
- package/dist/core/index.cjs +29 -29
- package/dist/core/index.d.cts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +5 -5
- package/dist/{index-D6nvfm59.d.ts → index--eNkOLiP.d.ts} +1 -1
- package/dist/{index-CL4vb3ej.d.cts → index-CRaFsQD3.d.cts} +1 -1
- package/dist/{index-CtcXgof_.d.ts → index-Cxm5E-J5.d.ts} +512 -46
- package/dist/{index-BgPdYxFS.d.cts → index-Mm_cz6Ie.d.cts} +512 -46
- package/dist/index.cjs +829 -231
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +646 -48
- package/dist/index.js.map +1 -1
- package/dist/indexer/index.cjs +6 -6
- package/dist/indexer/index.d.cts +5 -5
- package/dist/indexer/index.d.ts +5 -5
- package/dist/indexer/index.js +1 -1
- package/dist/{proof-XR6XE5PJ.cjs → proof-VINVGL4F.cjs} +13 -13
- package/dist/{proof-XR6XE5PJ.cjs.map → proof-VINVGL4F.cjs.map} +1 -1
- package/dist/{proof-JME3IZTX.js → proof-XQG5DN5N.js} +3 -3
- package/dist/{proof-JME3IZTX.js.map → proof-XQG5DN5N.js.map} +1 -1
- package/dist/react/index.cjs +10 -10
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +7 -7
- package/dist/react/index.d.ts +7 -7
- package/dist/react/index.js +10 -10
- package/dist/react/index.js.map +1 -1
- package/dist/{transfer-PB6D5VCW.cjs → transfer-ALSSY3L4.cjs} +11 -11
- package/dist/{transfer-PB6D5VCW.cjs.map → transfer-ALSSY3L4.cjs.map} +1 -1
- package/dist/{transfer-DvIXqHCr.d.ts → transfer-Crvdq4VN.d.ts} +30 -18
- package/dist/{transfer-D111ihqN.d.cts → transfer-CwwsNdGL.d.cts} +30 -18
- package/dist/{transfer-MQMGSXTH.js → transfer-Y24QMHJI.js} +5 -5
- package/dist/{transfer-MQMGSXTH.js.map → transfer-Y24QMHJI.js.map} +1 -1
- package/package.json +1 -1
- package/dist/chunk-2G22R7AJ.cjs.map +0 -1
- package/dist/chunk-CEJN5ZE5.js.map +0 -1
- package/dist/chunk-UTAJSERA.cjs.map +0 -1
- package/dist/chunk-W3HLIKC2.js.map +0 -1
package/dist/indexer/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk5H2YAPYG_cjs = require('../chunk-5H2YAPYG.cjs');
|
|
4
4
|
var chunkERQE57IA_cjs = require('../chunk-ERQE57IA.cjs');
|
|
5
5
|
require('../chunk-G7VZBCD6.cjs');
|
|
6
6
|
|
|
@@ -8,23 +8,23 @@ require('../chunk-G7VZBCD6.cjs');
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "computeSearchTag", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunk5H2YAPYG_cjs.computeSearchTag; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "makeRpcIndexer", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunk5H2YAPYG_cjs.makeRpcIndexer; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "matchesSearchTag", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunk5H2YAPYG_cjs.matchesSearchTag; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "tryDecryptNote", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunk5H2YAPYG_cjs.tryDecryptNote; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "unpackNoteData", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunk5H2YAPYG_cjs.unpackNoteData; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "createAutoAdapter", {
|
|
30
30
|
enumerable: true,
|
package/dist/indexer/index.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { S as StorageAdapter } from '../index-
|
|
2
|
-
export { C as CommitmentInsertedArgs, a as IndexedNote, I as Indexer, f as IndexerState, L as LiveSyncConfig, b as NoteFilters, N as NoteStatus, j as NullifiedArgs, R as RpcIndexerConfig, h as SerializedNote, i as StealthTransactArgs, e as SyncConfig, d as SyncProgress, c as SyncResult, g as SyncState } from '../index-
|
|
3
|
-
import { _ as ___index_js } from '../index-
|
|
4
|
-
export { m as makeRpcIndexer } from '../index-
|
|
1
|
+
import { S as StorageAdapter } from '../index-CRaFsQD3.cjs';
|
|
2
|
+
export { C as CommitmentInsertedArgs, a as IndexedNote, I as Indexer, f as IndexerState, L as LiveSyncConfig, b as NoteFilters, N as NoteStatus, j as NullifiedArgs, R as RpcIndexerConfig, h as SerializedNote, i as StealthTransactArgs, e as SyncConfig, d as SyncProgress, c as SyncResult, g as SyncState } from '../index-CRaFsQD3.cjs';
|
|
3
|
+
import { _ as ___index_js } from '../index-Mm_cz6Ie.cjs';
|
|
4
|
+
export { m as makeRpcIndexer } from '../index-Mm_cz6Ie.cjs';
|
|
5
5
|
import { Hex } from 'viem';
|
|
6
6
|
import { P as Point } from '../merkle-mteVOlDf.cjs';
|
|
7
|
-
import '../transfer-
|
|
7
|
+
import '../transfer-CwwsNdGL.cjs';
|
|
8
8
|
import '../keccak-m31-B_AqBbRF.cjs';
|
|
9
9
|
import '@permissionless-technologies/upc-sdk';
|
|
10
10
|
import 'react/jsx-runtime';
|
package/dist/indexer/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { S as StorageAdapter } from '../index
|
|
2
|
-
export { C as CommitmentInsertedArgs, a as IndexedNote, I as Indexer, f as IndexerState, L as LiveSyncConfig, b as NoteFilters, N as NoteStatus, j as NullifiedArgs, R as RpcIndexerConfig, h as SerializedNote, i as StealthTransactArgs, e as SyncConfig, d as SyncProgress, c as SyncResult, g as SyncState } from '../index
|
|
3
|
-
import { _ as ___index_js } from '../index-
|
|
4
|
-
export { m as makeRpcIndexer } from '../index-
|
|
1
|
+
import { S as StorageAdapter } from '../index--eNkOLiP.js';
|
|
2
|
+
export { C as CommitmentInsertedArgs, a as IndexedNote, I as Indexer, f as IndexerState, L as LiveSyncConfig, b as NoteFilters, N as NoteStatus, j as NullifiedArgs, R as RpcIndexerConfig, h as SerializedNote, i as StealthTransactArgs, e as SyncConfig, d as SyncProgress, c as SyncResult, g as SyncState } from '../index--eNkOLiP.js';
|
|
3
|
+
import { _ as ___index_js } from '../index-Cxm5E-J5.js';
|
|
4
|
+
export { m as makeRpcIndexer } from '../index-Cxm5E-J5.js';
|
|
5
5
|
import { Hex } from 'viem';
|
|
6
6
|
import { P as Point } from '../merkle-mteVOlDf.js';
|
|
7
|
-
import '../transfer-
|
|
7
|
+
import '../transfer-Crvdq4VN.js';
|
|
8
8
|
import '../keccak-m31-B_AqBbRF.js';
|
|
9
9
|
import '@permissionless-technologies/upc-sdk';
|
|
10
10
|
import 'react/jsx-runtime';
|
package/dist/indexer/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { computeSearchTag, makeRpcIndexer, matchesSearchTag, tryDecryptNote, unpackNoteData } from '../chunk-
|
|
1
|
+
export { computeSearchTag, makeRpcIndexer, matchesSearchTag, tryDecryptNote, unpackNoteData } from '../chunk-X32ZI7UJ.js';
|
|
2
2
|
export { createAutoAdapter, createIndexedDBAdapter, createLocalStorageAdapter, createMemoryAdapter, indexedDBAdapter, localStorageAdapter, memoryAdapter } from '../chunk-XV72HNHN.js';
|
|
3
3
|
import '../chunk-Z6ZWNWWR.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkRYEYGGE7_cjs = require('./chunk-RYEYGGE7.cjs');
|
|
4
4
|
require('./chunk-G7VZBCD6.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "ASP_TREE_DEPTH", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkRYEYGGE7_cjs.ASP_TREE_DEPTH; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "STATE_TREE_DEPTH", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkRYEYGGE7_cjs.STATE_TREE_DEPTH; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "formatPlonkProofForContract", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkRYEYGGE7_cjs.formatPlonkProofForContract; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "formatProofForContract", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkRYEYGGE7_cjs.formatProofForContract; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "generateProof", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkRYEYGGE7_cjs.generateProof; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "generateStealthProof", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkRYEYGGE7_cjs.generateStealthProof; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "generateUPPProof", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkRYEYGGE7_cjs.generateUPPProof; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "getStealthCircuitArtifacts", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkRYEYGGE7_cjs.getStealthCircuitArtifacts; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "getUPPCircuitArtifacts", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkRYEYGGE7_cjs.getUPPCircuitArtifacts; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "verifyProof", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkRYEYGGE7_cjs.verifyProof; }
|
|
47
47
|
});
|
|
48
|
-
//# sourceMappingURL=proof-
|
|
49
|
-
//# sourceMappingURL=proof-
|
|
48
|
+
//# sourceMappingURL=proof-VINVGL4F.cjs.map
|
|
49
|
+
//# sourceMappingURL=proof-VINVGL4F.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"proof-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"proof-VINVGL4F.cjs"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ASP_TREE_DEPTH, STATE_TREE_DEPTH, formatPlonkProofForContract, formatProofForContract, generateProof, generateStealthProof, generateUPPProof, getStealthCircuitArtifacts, getUPPCircuitArtifacts, verifyProof } from './chunk-
|
|
1
|
+
export { ASP_TREE_DEPTH, STATE_TREE_DEPTH, formatPlonkProofForContract, formatProofForContract, generateProof, generateStealthProof, generateUPPProof, getStealthCircuitArtifacts, getUPPCircuitArtifacts, verifyProof } from './chunk-KRLRJ3HN.js';
|
|
2
2
|
import './chunk-Z6ZWNWWR.js';
|
|
3
|
-
//# sourceMappingURL=proof-
|
|
4
|
-
//# sourceMappingURL=proof-
|
|
3
|
+
//# sourceMappingURL=proof-XQG5DN5N.js.map
|
|
4
|
+
//# sourceMappingURL=proof-XQG5DN5N.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"proof-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"proof-XQG5DN5N.js"}
|
package/dist/react/index.cjs
CHANGED
|
@@ -1597,8 +1597,8 @@ function usePoolTransfer(config) {
|
|
|
1597
1597
|
const recipientNote = await createNoteForSelf(amount, origin, token);
|
|
1598
1598
|
const changeNote = await createNoteForSelf(changeAmount, origin, token);
|
|
1599
1599
|
const [transferModule, proofModule, aspModule] = await Promise.all([
|
|
1600
|
-
import('../transfer-
|
|
1601
|
-
import('../proof-
|
|
1600
|
+
import('../transfer-ALSSY3L4.cjs'),
|
|
1601
|
+
import('../proof-VINVGL4F.cjs'),
|
|
1602
1602
|
import('../asp-CUE3NMBN.cjs')
|
|
1603
1603
|
]);
|
|
1604
1604
|
const {
|
|
@@ -1746,8 +1746,8 @@ function useWithdraw(config) {
|
|
|
1746
1746
|
const token = BigInt(selectedNote.token);
|
|
1747
1747
|
setStage("creating_outputs");
|
|
1748
1748
|
const [transferModule, proofModule, sdk] = await Promise.all([
|
|
1749
|
-
import('../transfer-
|
|
1750
|
-
import('../proof-
|
|
1749
|
+
import('../transfer-ALSSY3L4.cjs'),
|
|
1750
|
+
import('../proof-VINVGL4F.cjs'),
|
|
1751
1751
|
import('../index.cjs')
|
|
1752
1752
|
]);
|
|
1753
1753
|
const { syncMerkleTree, getMerkleProofsForNotes } = transferModule;
|
|
@@ -2116,8 +2116,8 @@ function useSwap(config) {
|
|
|
2116
2116
|
}
|
|
2117
2117
|
setStage("creating_outputs");
|
|
2118
2118
|
const [transferModule, proofModule, sdk, aspModule] = await Promise.all([
|
|
2119
|
-
import('../transfer-
|
|
2120
|
-
import('../proof-
|
|
2119
|
+
import('../transfer-ALSSY3L4.cjs'),
|
|
2120
|
+
import('../proof-VINVGL4F.cjs'),
|
|
2121
2121
|
import('../index.cjs'),
|
|
2122
2122
|
import('../asp-CUE3NMBN.cjs')
|
|
2123
2123
|
]);
|
|
@@ -2258,8 +2258,8 @@ function useSwap(config) {
|
|
|
2258
2258
|
}
|
|
2259
2259
|
setStage("creating_outputs");
|
|
2260
2260
|
const [transferModule, proofModule, sdk, aspModule] = await Promise.all([
|
|
2261
|
-
import('../transfer-
|
|
2262
|
-
import('../proof-
|
|
2261
|
+
import('../transfer-ALSSY3L4.cjs'),
|
|
2262
|
+
import('../proof-VINVGL4F.cjs'),
|
|
2263
2263
|
import('../index.cjs'),
|
|
2264
2264
|
import('../asp-CUE3NMBN.cjs')
|
|
2265
2265
|
]);
|
|
@@ -2478,8 +2478,8 @@ function useSwap(config) {
|
|
|
2478
2478
|
createNoteForSelf(changeAmount, origin, token)
|
|
2479
2479
|
]);
|
|
2480
2480
|
const [transferModule, proofModule, aspModule] = await Promise.all([
|
|
2481
|
-
import('../transfer-
|
|
2482
|
-
import('../proof-
|
|
2481
|
+
import('../transfer-ALSSY3L4.cjs'),
|
|
2482
|
+
import('../proof-VINVGL4F.cjs'),
|
|
2483
2483
|
import('../asp-CUE3NMBN.cjs')
|
|
2484
2484
|
]);
|
|
2485
2485
|
const { syncMerkleTree, getMerkleProofsForNotes, buildUPPTransferCircuitInputs } = transferModule;
|