@permissionless-technologies/upp-sdk 0.4.2 → 0.4.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-6BHF4HOB.js → chunk-4UKH6LXH.js} +2 -2
- package/dist/{chunk-6BHF4HOB.js.map → chunk-4UKH6LXH.js.map} +1 -1
- package/dist/{chunk-UTAJSERA.cjs → chunk-5BLMSTFQ.cjs} +2 -2
- package/dist/chunk-5BLMSTFQ.cjs.map +1 -0
- package/dist/{chunk-Q2E432UK.cjs → chunk-A7EORZW7.cjs} +24 -24
- package/dist/{chunk-Q2E432UK.cjs.map → chunk-A7EORZW7.cjs.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-ZQ5LLJQC.cjs → chunk-ROV6WWIS.cjs} +2 -2
- package/dist/{chunk-ZQ5LLJQC.cjs.map → chunk-ROV6WWIS.cjs.map} +1 -1
- package/dist/{chunk-2G22R7AJ.cjs → chunk-RYEYGGE7.cjs} +46 -24
- package/dist/chunk-RYEYGGE7.cjs.map +1 -0
- package/dist/{chunk-OBBSIPEK.js → chunk-UC2QMWGS.js} +16 -16
- package/dist/{chunk-OBBSIPEK.js.map → chunk-UC2QMWGS.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-MQMGSXTH.js → transfer-4XBP4DPQ.js} +5 -5
- package/dist/{transfer-MQMGSXTH.js.map → transfer-4XBP4DPQ.js.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-PB6D5VCW.cjs → transfer-Y2RSJS6Y.cjs} +11 -11
- package/dist/{transfer-PB6D5VCW.cjs.map → transfer-Y2RSJS6Y.cjs.map} +1 -1
- package/package.json +1 -1
- package/src/deployments/11155111.json +12 -12
- 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/react/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ax as NoteCreationResult, ay as ShieldedNote, O as TransferStage, I as SwapOrderEvent } from '../transfer-
|
|
2
|
-
export { A as ASPProof,
|
|
1
|
+
import { ax as NoteCreationResult, ay as PlonkProofStruct, az as ShieldedNote, O as TransferStage, I as SwapOrderEvent } from '../transfer-CwwsNdGL.cjs';
|
|
2
|
+
export { A as ASPProof, aG as ASP_TREE_DEPTH, aE as IndexerConfig, aD as ProofSystemType, aF as SignTypedDataFn, aC as UPPAccountContextType, aB as UPPAccountProvider, Y as buildASPTree, a2 as computeMultiOriginASPRoot, a5 as computeSingleOriginASPRoot, ae as generateASPProof, ag as generateMultiOriginASPProof, ai as generateSingleOriginASPProof, aA as useUPPAccount } from '../transfer-CwwsNdGL.cjs';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as react from 'react';
|
|
5
5
|
import { CSSProperties } from 'react';
|
|
@@ -255,7 +255,7 @@ interface PoolTransferBuildData {
|
|
|
255
255
|
circuit: 'transfer';
|
|
256
256
|
/** PLONK proof bytes for contract call */
|
|
257
257
|
proof: {
|
|
258
|
-
|
|
258
|
+
proofStruct: PlonkProofStruct;
|
|
259
259
|
publicSignals: bigint[];
|
|
260
260
|
};
|
|
261
261
|
/** Nullifier */
|
|
@@ -338,7 +338,7 @@ interface WithdrawParams {
|
|
|
338
338
|
interface WithdrawBuildData {
|
|
339
339
|
/** PLONK proof bytes for contract call */
|
|
340
340
|
proof: {
|
|
341
|
-
|
|
341
|
+
proofStruct: PlonkProofStruct;
|
|
342
342
|
publicSignals: bigint[];
|
|
343
343
|
};
|
|
344
344
|
/** Nullifier of the note being spent */
|
|
@@ -547,7 +547,7 @@ interface SwapConfig {
|
|
|
547
547
|
interface PlaceOrderBuildData {
|
|
548
548
|
/** PLONK proof bytes for contract call */
|
|
549
549
|
proof: {
|
|
550
|
-
|
|
550
|
+
proofStruct: PlonkProofStruct;
|
|
551
551
|
publicSignals: bigint[];
|
|
552
552
|
};
|
|
553
553
|
/** Nullifier (= orderId) */
|
|
@@ -583,7 +583,7 @@ interface PlaceOrderBuildData {
|
|
|
583
583
|
interface FillOrderBuildData {
|
|
584
584
|
/** PLONK proof bytes for contract call */
|
|
585
585
|
proof: {
|
|
586
|
-
|
|
586
|
+
proofStruct: PlonkProofStruct;
|
|
587
587
|
publicSignals: bigint[];
|
|
588
588
|
};
|
|
589
589
|
/** Filler's nullifier */
|
|
@@ -656,7 +656,7 @@ interface SplitNoteParams {
|
|
|
656
656
|
interface SplitNoteBuildData {
|
|
657
657
|
/** PLONK proof bytes for contract call */
|
|
658
658
|
proof: {
|
|
659
|
-
|
|
659
|
+
proofStruct: PlonkProofStruct;
|
|
660
660
|
publicSignals: bigint[];
|
|
661
661
|
};
|
|
662
662
|
/** Nullifier */
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ax as NoteCreationResult, ay as ShieldedNote, O as TransferStage, I as SwapOrderEvent } from '../transfer-
|
|
2
|
-
export { A as ASPProof,
|
|
1
|
+
import { ax as NoteCreationResult, ay as PlonkProofStruct, az as ShieldedNote, O as TransferStage, I as SwapOrderEvent } from '../transfer-Crvdq4VN.js';
|
|
2
|
+
export { A as ASPProof, aG as ASP_TREE_DEPTH, aE as IndexerConfig, aD as ProofSystemType, aF as SignTypedDataFn, aC as UPPAccountContextType, aB as UPPAccountProvider, Y as buildASPTree, a2 as computeMultiOriginASPRoot, a5 as computeSingleOriginASPRoot, ae as generateASPProof, ag as generateMultiOriginASPProof, ai as generateSingleOriginASPProof, aA as useUPPAccount } from '../transfer-Crvdq4VN.js';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as react from 'react';
|
|
5
5
|
import { CSSProperties } from 'react';
|
|
@@ -255,7 +255,7 @@ interface PoolTransferBuildData {
|
|
|
255
255
|
circuit: 'transfer';
|
|
256
256
|
/** PLONK proof bytes for contract call */
|
|
257
257
|
proof: {
|
|
258
|
-
|
|
258
|
+
proofStruct: PlonkProofStruct;
|
|
259
259
|
publicSignals: bigint[];
|
|
260
260
|
};
|
|
261
261
|
/** Nullifier */
|
|
@@ -338,7 +338,7 @@ interface WithdrawParams {
|
|
|
338
338
|
interface WithdrawBuildData {
|
|
339
339
|
/** PLONK proof bytes for contract call */
|
|
340
340
|
proof: {
|
|
341
|
-
|
|
341
|
+
proofStruct: PlonkProofStruct;
|
|
342
342
|
publicSignals: bigint[];
|
|
343
343
|
};
|
|
344
344
|
/** Nullifier of the note being spent */
|
|
@@ -547,7 +547,7 @@ interface SwapConfig {
|
|
|
547
547
|
interface PlaceOrderBuildData {
|
|
548
548
|
/** PLONK proof bytes for contract call */
|
|
549
549
|
proof: {
|
|
550
|
-
|
|
550
|
+
proofStruct: PlonkProofStruct;
|
|
551
551
|
publicSignals: bigint[];
|
|
552
552
|
};
|
|
553
553
|
/** Nullifier (= orderId) */
|
|
@@ -583,7 +583,7 @@ interface PlaceOrderBuildData {
|
|
|
583
583
|
interface FillOrderBuildData {
|
|
584
584
|
/** PLONK proof bytes for contract call */
|
|
585
585
|
proof: {
|
|
586
|
-
|
|
586
|
+
proofStruct: PlonkProofStruct;
|
|
587
587
|
publicSignals: bigint[];
|
|
588
588
|
};
|
|
589
589
|
/** Filler's nullifier */
|
|
@@ -656,7 +656,7 @@ interface SplitNoteParams {
|
|
|
656
656
|
interface SplitNoteBuildData {
|
|
657
657
|
/** PLONK proof bytes for contract call */
|
|
658
658
|
proof: {
|
|
659
|
-
|
|
659
|
+
proofStruct: PlonkProofStruct;
|
|
660
660
|
publicSignals: bigint[];
|
|
661
661
|
};
|
|
662
662
|
/** Nullifier */
|
package/dist/react/index.js
CHANGED
|
@@ -1596,8 +1596,8 @@ 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-
|
|
1600
|
-
import('../proof-
|
|
1599
|
+
import('../transfer-4XBP4DPQ.js'),
|
|
1600
|
+
import('../proof-XQG5DN5N.js'),
|
|
1601
1601
|
import('../asp-72WUGTQE.js')
|
|
1602
1602
|
]);
|
|
1603
1603
|
const {
|
|
@@ -1745,8 +1745,8 @@ 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-
|
|
1749
|
-
import('../proof-
|
|
1748
|
+
import('../transfer-4XBP4DPQ.js'),
|
|
1749
|
+
import('../proof-XQG5DN5N.js'),
|
|
1750
1750
|
import('../index.js')
|
|
1751
1751
|
]);
|
|
1752
1752
|
const { syncMerkleTree, getMerkleProofsForNotes } = transferModule;
|
|
@@ -2115,8 +2115,8 @@ function useSwap(config) {
|
|
|
2115
2115
|
}
|
|
2116
2116
|
setStage("creating_outputs");
|
|
2117
2117
|
const [transferModule, proofModule, sdk, aspModule] = await Promise.all([
|
|
2118
|
-
import('../transfer-
|
|
2119
|
-
import('../proof-
|
|
2118
|
+
import('../transfer-4XBP4DPQ.js'),
|
|
2119
|
+
import('../proof-XQG5DN5N.js'),
|
|
2120
2120
|
import('../index.js'),
|
|
2121
2121
|
import('../asp-72WUGTQE.js')
|
|
2122
2122
|
]);
|
|
@@ -2257,8 +2257,8 @@ function useSwap(config) {
|
|
|
2257
2257
|
}
|
|
2258
2258
|
setStage("creating_outputs");
|
|
2259
2259
|
const [transferModule, proofModule, sdk, aspModule] = await Promise.all([
|
|
2260
|
-
import('../transfer-
|
|
2261
|
-
import('../proof-
|
|
2260
|
+
import('../transfer-4XBP4DPQ.js'),
|
|
2261
|
+
import('../proof-XQG5DN5N.js'),
|
|
2262
2262
|
import('../index.js'),
|
|
2263
2263
|
import('../asp-72WUGTQE.js')
|
|
2264
2264
|
]);
|
|
@@ -2477,8 +2477,8 @@ function useSwap(config) {
|
|
|
2477
2477
|
createNoteForSelf(changeAmount, origin, token)
|
|
2478
2478
|
]);
|
|
2479
2479
|
const [transferModule, proofModule, aspModule] = await Promise.all([
|
|
2480
|
-
import('../transfer-
|
|
2481
|
-
import('../proof-
|
|
2480
|
+
import('../transfer-4XBP4DPQ.js'),
|
|
2481
|
+
import('../proof-XQG5DN5N.js'),
|
|
2482
2482
|
import('../asp-72WUGTQE.js')
|
|
2483
2483
|
]);
|
|
2484
2484
|
const { syncMerkleTree, getMerkleProofsForNotes, buildUPPTransferCircuitInputs } = transferModule;
|