@permissionless-technologies/upp-sdk 0.4.6 → 0.4.7

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.
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkCZRCIN6S_cjs = require('../chunk-CZRCIN6S.cjs');
3
+ var chunkIWNEKLAA_cjs = require('../chunk-IWNEKLAA.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 chunkCZRCIN6S_cjs.computeSearchTag; }
11
+ get: function () { return chunkIWNEKLAA_cjs.computeSearchTag; }
12
12
  });
13
13
  Object.defineProperty(exports, "makeRpcIndexer", {
14
14
  enumerable: true,
15
- get: function () { return chunkCZRCIN6S_cjs.makeRpcIndexer; }
15
+ get: function () { return chunkIWNEKLAA_cjs.makeRpcIndexer; }
16
16
  });
17
17
  Object.defineProperty(exports, "matchesSearchTag", {
18
18
  enumerable: true,
19
- get: function () { return chunkCZRCIN6S_cjs.matchesSearchTag; }
19
+ get: function () { return chunkIWNEKLAA_cjs.matchesSearchTag; }
20
20
  });
21
21
  Object.defineProperty(exports, "tryDecryptNote", {
22
22
  enumerable: true,
23
- get: function () { return chunkCZRCIN6S_cjs.tryDecryptNote; }
23
+ get: function () { return chunkIWNEKLAA_cjs.tryDecryptNote; }
24
24
  });
25
25
  Object.defineProperty(exports, "unpackNoteData", {
26
26
  enumerable: true,
27
- get: function () { return chunkCZRCIN6S_cjs.unpackNoteData; }
27
+ get: function () { return chunkIWNEKLAA_cjs.unpackNoteData; }
28
28
  });
29
29
  Object.defineProperty(exports, "createAutoAdapter", {
30
30
  enumerable: true,
@@ -1,4 +1,4 @@
1
- export { computeSearchTag, makeRpcIndexer, matchesSearchTag, tryDecryptNote, unpackNoteData } from '../chunk-VDZSF5GW.js';
1
+ export { computeSearchTag, makeRpcIndexer, matchesSearchTag, tryDecryptNote, unpackNoteData } from '../chunk-R75NKNDC.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
@@ -1597,7 +1597,7 @@ 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-KKFEYGL4.cjs'),
1600
+ import('../transfer-ZDJPVUL2.cjs'),
1601
1601
  import('../proof-VINVGL4F.cjs'),
1602
1602
  import('../asp-CUE3NMBN.cjs')
1603
1603
  ]);
@@ -1746,7 +1746,7 @@ 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-KKFEYGL4.cjs'),
1749
+ import('../transfer-ZDJPVUL2.cjs'),
1750
1750
  import('../proof-VINVGL4F.cjs'),
1751
1751
  import('../index.cjs')
1752
1752
  ]);
@@ -2116,7 +2116,7 @@ function useSwap(config) {
2116
2116
  }
2117
2117
  setStage("creating_outputs");
2118
2118
  const [transferModule, proofModule, sdk, aspModule] = await Promise.all([
2119
- import('../transfer-KKFEYGL4.cjs'),
2119
+ import('../transfer-ZDJPVUL2.cjs'),
2120
2120
  import('../proof-VINVGL4F.cjs'),
2121
2121
  import('../index.cjs'),
2122
2122
  import('../asp-CUE3NMBN.cjs')
@@ -2258,7 +2258,7 @@ function useSwap(config) {
2258
2258
  }
2259
2259
  setStage("creating_outputs");
2260
2260
  const [transferModule, proofModule, sdk, aspModule] = await Promise.all([
2261
- import('../transfer-KKFEYGL4.cjs'),
2261
+ import('../transfer-ZDJPVUL2.cjs'),
2262
2262
  import('../proof-VINVGL4F.cjs'),
2263
2263
  import('../index.cjs'),
2264
2264
  import('../asp-CUE3NMBN.cjs')
@@ -2478,7 +2478,7 @@ function useSwap(config) {
2478
2478
  createNoteForSelf(changeAmount, origin, token)
2479
2479
  ]);
2480
2480
  const [transferModule, proofModule, aspModule] = await Promise.all([
2481
- import('../transfer-KKFEYGL4.cjs'),
2481
+ import('../transfer-ZDJPVUL2.cjs'),
2482
2482
  import('../proof-VINVGL4F.cjs'),
2483
2483
  import('../asp-CUE3NMBN.cjs')
2484
2484
  ]);
@@ -1596,7 +1596,7 @@ function usePoolTransfer(config) {
1596
1596
  const recipientNote = await createNoteForSelf(amount, origin, token);
1597
1597
  const changeNote = await createNoteForSelf(changeAmount, origin, token);
1598
1598
  const [transferModule, proofModule, aspModule] = await Promise.all([
1599
- import('../transfer-SGPJB6AK.js'),
1599
+ import('../transfer-WYG6422Y.js'),
1600
1600
  import('../proof-XQG5DN5N.js'),
1601
1601
  import('../asp-72WUGTQE.js')
1602
1602
  ]);
@@ -1745,7 +1745,7 @@ function useWithdraw(config) {
1745
1745
  const token = BigInt(selectedNote.token);
1746
1746
  setStage("creating_outputs");
1747
1747
  const [transferModule, proofModule, sdk] = await Promise.all([
1748
- import('../transfer-SGPJB6AK.js'),
1748
+ import('../transfer-WYG6422Y.js'),
1749
1749
  import('../proof-XQG5DN5N.js'),
1750
1750
  import('../index.js')
1751
1751
  ]);
@@ -2115,7 +2115,7 @@ function useSwap(config) {
2115
2115
  }
2116
2116
  setStage("creating_outputs");
2117
2117
  const [transferModule, proofModule, sdk, aspModule] = await Promise.all([
2118
- import('../transfer-SGPJB6AK.js'),
2118
+ import('../transfer-WYG6422Y.js'),
2119
2119
  import('../proof-XQG5DN5N.js'),
2120
2120
  import('../index.js'),
2121
2121
  import('../asp-72WUGTQE.js')
@@ -2257,7 +2257,7 @@ function useSwap(config) {
2257
2257
  }
2258
2258
  setStage("creating_outputs");
2259
2259
  const [transferModule, proofModule, sdk, aspModule] = await Promise.all([
2260
- import('../transfer-SGPJB6AK.js'),
2260
+ import('../transfer-WYG6422Y.js'),
2261
2261
  import('../proof-XQG5DN5N.js'),
2262
2262
  import('../index.js'),
2263
2263
  import('../asp-72WUGTQE.js')
@@ -2477,7 +2477,7 @@ function useSwap(config) {
2477
2477
  createNoteForSelf(changeAmount, origin, token)
2478
2478
  ]);
2479
2479
  const [transferModule, proofModule, aspModule] = await Promise.all([
2480
- import('../transfer-SGPJB6AK.js'),
2480
+ import('../transfer-WYG6422Y.js'),
2481
2481
  import('../proof-XQG5DN5N.js'),
2482
2482
  import('../asp-72WUGTQE.js')
2483
2483
  ]);
@@ -1,8 +1,8 @@
1
- export { buildTransfer, buildUPPTransferCircuitInputs, computeNullifier, formatOutputForContract, getMerkleProofsForNotes, syncMerkleTree } from './chunk-746OK22E.js';
1
+ export { buildTransfer, buildUPPTransferCircuitInputs, computeNullifier, formatOutputForContract, getMerkleProofsForNotes, syncMerkleTree } from './chunk-L3PVYAH2.js';
2
2
  import './chunk-6IEYWJVS.js';
3
3
  import './chunk-GPF72JFR.js';
4
4
  import './chunk-5QSSX3KR.js';
5
5
  import './chunk-KRLRJ3HN.js';
6
6
  import './chunk-Z6ZWNWWR.js';
7
- //# sourceMappingURL=transfer-SGPJB6AK.js.map
8
- //# sourceMappingURL=transfer-SGPJB6AK.js.map
7
+ //# sourceMappingURL=transfer-WYG6422Y.js.map
8
+ //# sourceMappingURL=transfer-WYG6422Y.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"transfer-SGPJB6AK.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"transfer-WYG6422Y.js"}
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkVIBIC5L7_cjs = require('./chunk-VIBIC5L7.cjs');
3
+ var chunk43GNVMVL_cjs = require('./chunk-43GNVMVL.cjs');
4
4
  require('./chunk-XVIICZKW.cjs');
5
5
  require('./chunk-IIUKM5VE.cjs');
6
6
  require('./chunk-HEHXSV47.cjs');
@@ -11,27 +11,27 @@ require('./chunk-G7VZBCD6.cjs');
11
11
 
12
12
  Object.defineProperty(exports, "buildTransfer", {
13
13
  enumerable: true,
14
- get: function () { return chunkVIBIC5L7_cjs.buildTransfer; }
14
+ get: function () { return chunk43GNVMVL_cjs.buildTransfer; }
15
15
  });
16
16
  Object.defineProperty(exports, "buildUPPTransferCircuitInputs", {
17
17
  enumerable: true,
18
- get: function () { return chunkVIBIC5L7_cjs.buildUPPTransferCircuitInputs; }
18
+ get: function () { return chunk43GNVMVL_cjs.buildUPPTransferCircuitInputs; }
19
19
  });
20
20
  Object.defineProperty(exports, "computeNullifier", {
21
21
  enumerable: true,
22
- get: function () { return chunkVIBIC5L7_cjs.computeNullifier; }
22
+ get: function () { return chunk43GNVMVL_cjs.computeNullifier; }
23
23
  });
24
24
  Object.defineProperty(exports, "formatOutputForContract", {
25
25
  enumerable: true,
26
- get: function () { return chunkVIBIC5L7_cjs.formatOutputForContract; }
26
+ get: function () { return chunk43GNVMVL_cjs.formatOutputForContract; }
27
27
  });
28
28
  Object.defineProperty(exports, "getMerkleProofsForNotes", {
29
29
  enumerable: true,
30
- get: function () { return chunkVIBIC5L7_cjs.getMerkleProofsForNotes; }
30
+ get: function () { return chunk43GNVMVL_cjs.getMerkleProofsForNotes; }
31
31
  });
32
32
  Object.defineProperty(exports, "syncMerkleTree", {
33
33
  enumerable: true,
34
- get: function () { return chunkVIBIC5L7_cjs.syncMerkleTree; }
34
+ get: function () { return chunk43GNVMVL_cjs.syncMerkleTree; }
35
35
  });
36
- //# sourceMappingURL=transfer-KKFEYGL4.cjs.map
37
- //# sourceMappingURL=transfer-KKFEYGL4.cjs.map
36
+ //# sourceMappingURL=transfer-ZDJPVUL2.cjs.map
37
+ //# sourceMappingURL=transfer-ZDJPVUL2.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"transfer-KKFEYGL4.cjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"transfer-ZDJPVUL2.cjs"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@permissionless-technologies/upp-sdk",
3
- "version": "0.4.6",
3
+ "version": "0.4.7",
4
4
  "description": "Universal Private Pool SDK - Privacy-preserving token operations for any ERC20",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -1,21 +1,21 @@
1
1
  {
2
- "UniversalPrivatePool": "0x8d7bddfb66bed215dd73525af3c7a0b596d37544",
2
+ "UniversalPrivatePool": "0x3b5ed60adbd5dd57f47ec54179e4b1c06636285b",
3
3
  "ASPRegistryHub": "0xfd11c56a23314aa88dfbcc36254f33e5e8b010df",
4
- "TestToken": "0x67ef1d13bbc7e0de9ea2c4e531024f66845234e8",
5
- "TestToken2": "0xab36c0e6eb7edff36ec2e955eb490616051dc442",
4
+ "TestToken": "0xf8e913b4b5d8a215678476a3e5a86a6d085e1757",
5
+ "TestToken2": "0x665ce9859262d8f70d7e66c8a4b9a27bcacf7c6b",
6
6
  "verifiers": {
7
- "TransferVerifier": "0xd64739cbb7dbd5ed35fd6842972cbb9c7bae6c12",
8
- "MergeVerifier": "0x37a15c5c12c7843c77270a61c3c62fdc027ffb04",
9
- "WithdrawVerifier": "0x18d4345dce5513a6c5fc57863dcf8c063c910e47",
10
- "JoinSplitVerifier": "0x284018c3e4092a8e5a4ff3315ad58de116493e93",
11
- "MergeTransfer2x2Verifier": "0xd9f1d970fa7c94ee68d7eecdbc12676b0e2836b6",
12
- "MergeTransfer4x2Verifier": "0x597e97154a2dd8cf44939290299bc3586a1f894f"
7
+ "TransferVerifier": "0x6d7b8029314a075cf7e3e1b98a05b57696148db6",
8
+ "MergeVerifier": "0x80ece0bb1089df714355f84225cf6ab715483d27",
9
+ "WithdrawVerifier": "0x60038e953b23ac7c991bc4927818c919849d78ee",
10
+ "JoinSplitVerifier": "0x92e7d95df171a22b3e67b420405fdbb0f83a74a4",
11
+ "MergeTransfer2x2Verifier": "0xb6cd911261c758fc4ba6fe753eed27942643eab3",
12
+ "MergeTransfer4x2Verifier": "0x0effe9e2aaff64c3f634aa1dc57f4024273d18d1"
13
13
  },
14
14
  "starkVerifiers": {
15
- "CircleStarkVerifier": "0xda3380ab901c474fd8a44646eebb03fae0e601ce"
15
+ "CircleStarkVerifier": "0xe6002cb4217f83fdffd7c809fa2d23e39251ceff"
16
16
  },
17
- "deployBlock": 10548447,
18
- "deployTimestamp": 1774810176621,
17
+ "deployBlock": 10552069,
18
+ "deployTimestamp": 1774854985657,
19
19
  "proofSystem": "PLONK",
20
20
  "curve": "BLS12-381",
21
21
  "verifierType": "PlonkVerifierBLS12381"