@permissionless-technologies/upp-sdk 0.4.11 → 0.4.13
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-L3PVYAH2.js → chunk-3I6ERQO3.js} +14 -14
- package/dist/{chunk-L3PVYAH2.js.map → chunk-3I6ERQO3.js.map} +1 -1
- package/dist/{chunk-43GNVMVL.cjs → chunk-4MWEJDTR.cjs} +14 -14
- package/dist/{chunk-43GNVMVL.cjs.map → chunk-4MWEJDTR.cjs.map} +1 -1
- package/dist/{chunk-R75NKNDC.js → chunk-DUBWGEB5.js} +2 -2
- package/dist/{chunk-R75NKNDC.js.map → chunk-DUBWGEB5.js.map} +1 -1
- package/dist/{chunk-IWNEKLAA.cjs → chunk-KZ7PY2PR.cjs} +2 -2
- package/dist/{chunk-IWNEKLAA.cjs.map → chunk-KZ7PY2PR.cjs.map} +1 -1
- package/dist/core/index.cjs +7 -7
- package/dist/core/index.js +1 -1
- package/dist/{index-Mm_cz6Ie.d.cts → index-CKCDqv2e.d.cts} +40 -0
- package/dist/{index-Cxm5E-J5.d.ts → index-DLczKlnM.d.ts} +40 -0
- package/dist/index.cjs +63 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +50 -2
- package/dist/index.js.map +1 -1
- package/dist/indexer/index.cjs +6 -6
- package/dist/indexer/index.d.cts +2 -2
- package/dist/indexer/index.d.ts +2 -2
- package/dist/indexer/index.js +1 -1
- package/dist/react/index.cjs +111 -5
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +111 -5
- package/dist/react/index.js.map +1 -1
- package/dist/{transfer-WYG6422Y.js → transfer-LGR44CER.js} +3 -3
- package/dist/{transfer-WYG6422Y.js.map → transfer-LGR44CER.js.map} +1 -1
- package/dist/{transfer-ZDJPVUL2.cjs → transfer-UZBU47HC.cjs} +9 -9
- package/dist/{transfer-ZDJPVUL2.cjs.map → transfer-UZBU47HC.cjs.map} +1 -1
- package/package.json +1 -1
- package/src/contracts/interfaces/IUniversalPrivatePool.sol +11 -3
- package/src/deployments/11155111.json +12 -12
package/dist/index.d.cts
CHANGED
|
@@ -6,7 +6,7 @@ export { BABYJUBJUB_SUBORDER, FIELD_PRIME, addressToField, bigintToBytes, bytesT
|
|
|
6
6
|
export { M as MAX_TREE_DEPTH, a as MerkleProof, b as MerkleTree, P as Point, c as addPoints, d as buildMerkleTree, e as computeSharedSecret, f as deriveDecryptionViewingKey, g as deriveEncryptionViewingKey, h as getBasePoint, i as getMerkleProof, j as getSubOrder, k as isOnCurve, m as mulPointScalar, p as packPoint, l as pointToTuple, n as privateToPublic, t as tupleToPoint, v as verifyMerkleProof } from './merkle-mteVOlDf.cjs';
|
|
7
7
|
export { S as STARK_AMOUNT_SCALE, a as STARK_ASP_TREE_DEPTH, b as STARK_STATE_TREE_DEPTH, c as StarkTransferWitness, d as StarkWithdrawWitness, e as addressToM31, f as buildStarkTransferWitness, g as buildStarkWithdrawWitness, h as computeTransferPublicInputsSeed, i as computeWithdrawPublicInputsSeed, j as isStarkAligned, p as packM31Digest, s as scaleAmountForStark, k as splitSecretToM31Limbs, t as truncateToM31 } from './stark-BcTD1OaJ.cjs';
|
|
8
8
|
export { D as DIGEST_SIZE, a as M31Digest, M as M31Secret, b as M31_P, S as SECRET_LIMBS, c as computeStarkCommitment, d as computeStarkNullifier, e as computeStarkOwnerHash, k as keccakHashTwo, f as keccakM31, s as splitToM31Limbs } from './keccak-m31-B_AqBbRF.cjs';
|
|
9
|
-
export { D as DeploymentConfig, a as TEST_STABLE_TOKEN_2_ABI, T as TEST_STABLE_TOKEN_ABI, U as UNIVERSAL_PRIVATE_POOL_ABI, V as VerifierAddresses, g as getDeployment, b as getDeploymentOrThrow, c as getSupportedChainIds, d as getTokenAddress, h as hasDeployment, m as makeRpcIndexer, r as registerDeployment } from './index-
|
|
9
|
+
export { D as DeploymentConfig, a as TEST_STABLE_TOKEN_2_ABI, T as TEST_STABLE_TOKEN_ABI, U as UNIVERSAL_PRIVATE_POOL_ABI, V as VerifierAddresses, g as getDeployment, b as getDeploymentOrThrow, c as getSupportedChainIds, d as getTokenAddress, h as hasDeployment, m as makeRpcIndexer, r as registerDeployment } from './index-CKCDqv2e.cjs';
|
|
10
10
|
export { ASP_REGISTRY_HUB_ABI } from '@permissionless-technologies/upc-sdk';
|
|
11
11
|
import 'viem';
|
|
12
12
|
import 'react/jsx-runtime';
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export { BABYJUBJUB_SUBORDER, FIELD_PRIME, addressToField, bigintToBytes, bytesT
|
|
|
6
6
|
export { M as MAX_TREE_DEPTH, a as MerkleProof, b as MerkleTree, P as Point, c as addPoints, d as buildMerkleTree, e as computeSharedSecret, f as deriveDecryptionViewingKey, g as deriveEncryptionViewingKey, h as getBasePoint, i as getMerkleProof, j as getSubOrder, k as isOnCurve, m as mulPointScalar, p as packPoint, l as pointToTuple, n as privateToPublic, t as tupleToPoint, v as verifyMerkleProof } from './merkle-mteVOlDf.js';
|
|
7
7
|
export { S as STARK_AMOUNT_SCALE, a as STARK_ASP_TREE_DEPTH, b as STARK_STATE_TREE_DEPTH, c as StarkTransferWitness, d as StarkWithdrawWitness, e as addressToM31, f as buildStarkTransferWitness, g as buildStarkWithdrawWitness, h as computeTransferPublicInputsSeed, i as computeWithdrawPublicInputsSeed, j as isStarkAligned, p as packM31Digest, s as scaleAmountForStark, k as splitSecretToM31Limbs, t as truncateToM31 } from './stark-BcTD1OaJ.js';
|
|
8
8
|
export { D as DIGEST_SIZE, a as M31Digest, M as M31Secret, b as M31_P, S as SECRET_LIMBS, c as computeStarkCommitment, d as computeStarkNullifier, e as computeStarkOwnerHash, k as keccakHashTwo, f as keccakM31, s as splitToM31Limbs } from './keccak-m31-B_AqBbRF.js';
|
|
9
|
-
export { D as DeploymentConfig, a as TEST_STABLE_TOKEN_2_ABI, T as TEST_STABLE_TOKEN_ABI, U as UNIVERSAL_PRIVATE_POOL_ABI, V as VerifierAddresses, g as getDeployment, b as getDeploymentOrThrow, c as getSupportedChainIds, d as getTokenAddress, h as hasDeployment, m as makeRpcIndexer, r as registerDeployment } from './index-
|
|
9
|
+
export { D as DeploymentConfig, a as TEST_STABLE_TOKEN_2_ABI, T as TEST_STABLE_TOKEN_ABI, U as UNIVERSAL_PRIVATE_POOL_ABI, V as VerifierAddresses, g as getDeployment, b as getDeploymentOrThrow, c as getSupportedChainIds, d as getTokenAddress, h as hasDeployment, m as makeRpcIndexer, r as registerDeployment } from './index-DLczKlnM.js';
|
|
10
10
|
export { ASP_REGISTRY_HUB_ABI } from '@permissionless-technologies/upc-sdk';
|
|
11
11
|
import 'viem';
|
|
12
12
|
import 'react/jsx-runtime';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { NOTE_VERSION, createNote, createUPPClient, decryptNote, encryptNote } from './chunk-O6ALW7DB.js';
|
|
2
|
-
export { buildTransfer, buildUPPTransferCircuitInputs, computeNullifier, formatOutputForContract, getDeployment, getDeploymentOrThrow, getMerkleProofsForNotes, getSupportedChainIds, getTokenAddress, hasDeployment, registerDeployment, syncMerkleTree } from './chunk-
|
|
3
|
-
export { makeRpcIndexer } from './chunk-
|
|
2
|
+
export { buildTransfer, buildUPPTransferCircuitInputs, computeNullifier, formatOutputForContract, getDeployment, getDeploymentOrThrow, getMerkleProofsForNotes, getSupportedChainIds, getTokenAddress, hasDeployment, registerDeployment, syncMerkleTree } from './chunk-3I6ERQO3.js';
|
|
3
|
+
export { makeRpcIndexer } from './chunk-DUBWGEB5.js';
|
|
4
4
|
export { DEFAULT_KEY_DERIVATION_CONFIG, deriveDualKeysFromSignature, deriveKeysFromSignature, deriveNullifierKey, derivePerNoteKey, derivePerNoteKeyFromKeys, deriveStarkKeysFromSignature, deriveStarkPerNoteKey, deriveStarkPerNoteKeyFromKeys, exportViewingKeysForAudit, getKeyDerivationMessage, getViewingKeyFromExport, validateAuditKeyExport, verifyKeysMatchSignature } from './chunk-DTEAFJG7.js';
|
|
5
5
|
export { ADDRESS_VERSION, DirectAccountAdapter, NoteStore, RATE_PRECISION, STARK_ADDRESS_VERSION, STARK_STEALTH_ADDRESS_PREFIX, STEALTH_ADDRESS_PREFIX, SWAP_EVENTS_ABI, SWAP_ORDER_CANCELLED_EVENT, SWAP_ORDER_CLAIMED_EVENT, SWAP_ORDER_FILLED_EVENT, SWAP_ORDER_PLACED_EVENT, StorableAccountAdapter, computeCancelKeyHash, computeFillPercentage, computeGiveAmount, computeNoteEncryptionKey, computeRate, computeTakeAmount, computeTotalBuyAmount, createOneTimeKeys, decodeStarkStealthAddress, decodeStealthAddress, detectAddressType, encodeStarkStealthAddress, encodeStealthAddress, filterOrdersByASP, filterOrdersByTokenPair, formatRate, generateCancelSecret, generateStarkStealthAddress, generateStealthAddress, getCancelSecret, getOwnOrderIds, isFillerASPAccepted, isOrderActive, isValidStarkStealthAddress, isValidStealthAddress, removeCancelSecret, storeCancelSecret, verifyOwnership } from './chunk-RNUG3EFC.js';
|
|
6
6
|
export { DEMO_ASP_ID, DEMO_ASP_NAME, buildASPTree, computeMultiOriginASPRoot, computeSingleOriginASPRoot, createDemoASPRoot, generateASPProof, generateMultiOriginASPProof, generateSingleOriginASPProof, verifyASPProof } from './chunk-6IEYWJVS.js';
|
|
@@ -2206,6 +2206,18 @@ var UNIVERSAL_PRIVATE_POOL_ABI = [
|
|
|
2206
2206
|
"type": "uint256",
|
|
2207
2207
|
"indexed": false,
|
|
2208
2208
|
"internalType": "uint256"
|
|
2209
|
+
},
|
|
2210
|
+
{
|
|
2211
|
+
"name": "refundCommitment",
|
|
2212
|
+
"type": "bytes32",
|
|
2213
|
+
"indexed": false,
|
|
2214
|
+
"internalType": "bytes32"
|
|
2215
|
+
},
|
|
2216
|
+
{
|
|
2217
|
+
"name": "encryptedRefundNote",
|
|
2218
|
+
"type": "bytes",
|
|
2219
|
+
"indexed": false,
|
|
2220
|
+
"internalType": "bytes"
|
|
2209
2221
|
}
|
|
2210
2222
|
],
|
|
2211
2223
|
"anonymous": false
|
|
@@ -2231,6 +2243,30 @@ var UNIVERSAL_PRIVATE_POOL_ABI = [
|
|
|
2231
2243
|
"type": "uint256",
|
|
2232
2244
|
"indexed": false,
|
|
2233
2245
|
"internalType": "uint256"
|
|
2246
|
+
},
|
|
2247
|
+
{
|
|
2248
|
+
"name": "buyOutputCommitment",
|
|
2249
|
+
"type": "bytes32",
|
|
2250
|
+
"indexed": false,
|
|
2251
|
+
"internalType": "bytes32"
|
|
2252
|
+
},
|
|
2253
|
+
{
|
|
2254
|
+
"name": "encryptedBuyNote",
|
|
2255
|
+
"type": "bytes",
|
|
2256
|
+
"indexed": false,
|
|
2257
|
+
"internalType": "bytes"
|
|
2258
|
+
},
|
|
2259
|
+
{
|
|
2260
|
+
"name": "refundCommitment",
|
|
2261
|
+
"type": "bytes32",
|
|
2262
|
+
"indexed": false,
|
|
2263
|
+
"internalType": "bytes32"
|
|
2264
|
+
},
|
|
2265
|
+
{
|
|
2266
|
+
"name": "encryptedRefundNote",
|
|
2267
|
+
"type": "bytes",
|
|
2268
|
+
"indexed": false,
|
|
2269
|
+
"internalType": "bytes"
|
|
2234
2270
|
}
|
|
2235
2271
|
],
|
|
2236
2272
|
"anonymous": false
|
|
@@ -2251,6 +2287,12 @@ var UNIVERSAL_PRIVATE_POOL_ABI = [
|
|
|
2251
2287
|
"indexed": true,
|
|
2252
2288
|
"internalType": "bytes32"
|
|
2253
2289
|
},
|
|
2290
|
+
{
|
|
2291
|
+
"name": "fillerOutputCommitment",
|
|
2292
|
+
"type": "bytes32",
|
|
2293
|
+
"indexed": true,
|
|
2294
|
+
"internalType": "bytes32"
|
|
2295
|
+
},
|
|
2254
2296
|
{
|
|
2255
2297
|
"name": "takeAmount",
|
|
2256
2298
|
"type": "uint256",
|
|
@@ -2268,6 +2310,12 @@ var UNIVERSAL_PRIVATE_POOL_ABI = [
|
|
|
2268
2310
|
"type": "uint256",
|
|
2269
2311
|
"indexed": false,
|
|
2270
2312
|
"internalType": "uint256"
|
|
2313
|
+
},
|
|
2314
|
+
{
|
|
2315
|
+
"name": "encryptedFillerNote",
|
|
2316
|
+
"type": "bytes",
|
|
2317
|
+
"indexed": false,
|
|
2318
|
+
"internalType": "bytes"
|
|
2271
2319
|
}
|
|
2272
2320
|
],
|
|
2273
2321
|
"anonymous": false
|