@permissionless-technologies/upp-sdk 0.4.13 → 0.4.15
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-O6ALW7DB.js → chunk-5WLAZA3M.js} +3 -3
- package/dist/{chunk-O6ALW7DB.js.map → chunk-5WLAZA3M.js.map} +1 -1
- package/dist/{chunk-4MWEJDTR.cjs → chunk-7Y6O4P2P.cjs} +3 -3
- package/dist/{chunk-4MWEJDTR.cjs.map → chunk-7Y6O4P2P.cjs.map} +1 -1
- package/dist/{chunk-KZ7PY2PR.cjs → chunk-CTBLNYYB.cjs} +2 -2
- package/dist/{chunk-KZ7PY2PR.cjs.map → chunk-CTBLNYYB.cjs.map} +1 -1
- package/dist/{chunk-23B5XSS4.cjs → chunk-CZLMCMYE.cjs} +90 -2
- package/dist/chunk-CZLMCMYE.cjs.map +1 -0
- package/dist/{chunk-3I6ERQO3.js → chunk-GQ6JMNJI.js} +3 -3
- package/dist/{chunk-3I6ERQO3.js.map → chunk-GQ6JMNJI.js.map} +1 -1
- package/dist/{chunk-RNUG3EFC.js → chunk-NIGEAKQP.js} +89 -3
- package/dist/chunk-NIGEAKQP.js.map +1 -0
- package/dist/{chunk-5BLMSTFQ.cjs → chunk-TBGDQM33.cjs} +4 -4
- package/dist/{chunk-5BLMSTFQ.cjs.map → chunk-TBGDQM33.cjs.map} +1 -1
- package/dist/{chunk-DUBWGEB5.js → chunk-YMZM2ABJ.js} +2 -2
- package/dist/{chunk-DUBWGEB5.js.map → chunk-YMZM2ABJ.js.map} +1 -1
- package/dist/core/index.cjs +100 -92
- package/dist/core/index.d.cts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +4 -4
- package/dist/core/proof-worker-entry.cjs +60 -0
- package/dist/core/proof-worker-entry.cjs.map +1 -0
- package/dist/core/proof-worker-entry.d.cts +2 -0
- package/dist/core/proof-worker-entry.d.ts +2 -0
- package/dist/core/proof-worker-entry.js +58 -0
- package/dist/core/proof-worker-entry.js.map +1 -0
- package/dist/{index-CKCDqv2e.d.cts → index-DKFupAA8.d.cts} +8 -3
- package/dist/{index-DLczKlnM.d.ts → index-M91G-og3.d.ts} +8 -3
- package/dist/{index--eNkOLiP.d.ts → index-S2fzWmLW.d.ts} +1 -1
- package/dist/{index-CRaFsQD3.d.cts → index-qTwnREeK.d.cts} +1 -1
- package/dist/index.cjs +108 -100
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +5 -5
- 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/react/index.cjs +94 -31
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +26 -3
- package/dist/react/index.d.ts +26 -3
- package/dist/react/index.js +77 -22
- package/dist/react/index.js.map +1 -1
- package/dist/{transfer-CwwsNdGL.d.cts → transfer-BDYID3Hn.d.cts} +75 -1
- package/dist/{transfer-Crvdq4VN.d.ts → transfer-DLukr6ed.d.ts} +75 -1
- package/dist/{transfer-LGR44CER.js → transfer-LT2VGGPZ.js} +4 -4
- package/dist/{transfer-LGR44CER.js.map → transfer-LT2VGGPZ.js.map} +1 -1
- package/dist/{transfer-UZBU47HC.cjs → transfer-OPGKWWX2.cjs} +10 -10
- package/dist/{transfer-UZBU47HC.cjs.map → transfer-OPGKWWX2.cjs.map} +1 -1
- package/package.json +5 -1
- package/dist/chunk-23B5XSS4.cjs.map +0 -1
- package/dist/chunk-RNUG3EFC.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkTBGDQM33_cjs = require('./chunk-TBGDQM33.cjs');
|
|
4
|
+
var chunk7Y6O4P2P_cjs = require('./chunk-7Y6O4P2P.cjs');
|
|
5
|
+
var chunkRYEYGGE7_cjs = require('./chunk-RYEYGGE7.cjs');
|
|
6
|
+
var chunkCTBLNYYB_cjs = require('./chunk-CTBLNYYB.cjs');
|
|
6
7
|
var chunk7BNJV2ZS_cjs = require('./chunk-7BNJV2ZS.cjs');
|
|
7
|
-
var
|
|
8
|
+
var chunkCZLMCMYE_cjs = require('./chunk-CZLMCMYE.cjs');
|
|
8
9
|
var chunkXVIICZKW_cjs = require('./chunk-XVIICZKW.cjs');
|
|
9
10
|
require('./chunk-ERQE57IA.cjs');
|
|
10
11
|
var chunkI5EKGD4P_cjs = require('./chunk-I5EKGD4P.cjs');
|
|
@@ -13,7 +14,6 @@ var chunkIIUKM5VE_cjs = require('./chunk-IIUKM5VE.cjs');
|
|
|
13
14
|
var chunkU3YFYMWF_cjs = require('./chunk-U3YFYMWF.cjs');
|
|
14
15
|
var chunkUFEDJJSH_cjs = require('./chunk-UFEDJJSH.cjs');
|
|
15
16
|
var chunkHEHXSV47_cjs = require('./chunk-HEHXSV47.cjs');
|
|
16
|
-
var chunkRYEYGGE7_cjs = require('./chunk-RYEYGGE7.cjs');
|
|
17
17
|
require('./chunk-G7VZBCD6.cjs');
|
|
18
18
|
var upcSdk = require('@permissionless-technologies/upc-sdk');
|
|
19
19
|
|
|
@@ -3757,75 +3757,111 @@ var TEST_STABLE_TOKEN_2_ABI = [
|
|
|
3757
3757
|
|
|
3758
3758
|
Object.defineProperty(exports, "NOTE_VERSION", {
|
|
3759
3759
|
enumerable: true,
|
|
3760
|
-
get: function () { return
|
|
3760
|
+
get: function () { return chunkTBGDQM33_cjs.NOTE_VERSION; }
|
|
3761
3761
|
});
|
|
3762
3762
|
Object.defineProperty(exports, "createNote", {
|
|
3763
3763
|
enumerable: true,
|
|
3764
|
-
get: function () { return
|
|
3764
|
+
get: function () { return chunkTBGDQM33_cjs.createNote; }
|
|
3765
3765
|
});
|
|
3766
3766
|
Object.defineProperty(exports, "createUPPClient", {
|
|
3767
3767
|
enumerable: true,
|
|
3768
|
-
get: function () { return
|
|
3768
|
+
get: function () { return chunkTBGDQM33_cjs.createUPPClient; }
|
|
3769
3769
|
});
|
|
3770
3770
|
Object.defineProperty(exports, "decryptNote", {
|
|
3771
3771
|
enumerable: true,
|
|
3772
|
-
get: function () { return
|
|
3772
|
+
get: function () { return chunkTBGDQM33_cjs.decryptNote; }
|
|
3773
3773
|
});
|
|
3774
3774
|
Object.defineProperty(exports, "encryptNote", {
|
|
3775
3775
|
enumerable: true,
|
|
3776
|
-
get: function () { return
|
|
3776
|
+
get: function () { return chunkTBGDQM33_cjs.encryptNote; }
|
|
3777
3777
|
});
|
|
3778
3778
|
Object.defineProperty(exports, "buildTransfer", {
|
|
3779
3779
|
enumerable: true,
|
|
3780
|
-
get: function () { return
|
|
3780
|
+
get: function () { return chunk7Y6O4P2P_cjs.buildTransfer; }
|
|
3781
3781
|
});
|
|
3782
3782
|
Object.defineProperty(exports, "buildUPPTransferCircuitInputs", {
|
|
3783
3783
|
enumerable: true,
|
|
3784
|
-
get: function () { return
|
|
3784
|
+
get: function () { return chunk7Y6O4P2P_cjs.buildUPPTransferCircuitInputs; }
|
|
3785
3785
|
});
|
|
3786
3786
|
Object.defineProperty(exports, "computeNullifier", {
|
|
3787
3787
|
enumerable: true,
|
|
3788
|
-
get: function () { return
|
|
3788
|
+
get: function () { return chunk7Y6O4P2P_cjs.computeNullifier; }
|
|
3789
3789
|
});
|
|
3790
3790
|
Object.defineProperty(exports, "formatOutputForContract", {
|
|
3791
3791
|
enumerable: true,
|
|
3792
|
-
get: function () { return
|
|
3792
|
+
get: function () { return chunk7Y6O4P2P_cjs.formatOutputForContract; }
|
|
3793
3793
|
});
|
|
3794
3794
|
Object.defineProperty(exports, "getDeployment", {
|
|
3795
3795
|
enumerable: true,
|
|
3796
|
-
get: function () { return
|
|
3796
|
+
get: function () { return chunk7Y6O4P2P_cjs.getDeployment; }
|
|
3797
3797
|
});
|
|
3798
3798
|
Object.defineProperty(exports, "getDeploymentOrThrow", {
|
|
3799
3799
|
enumerable: true,
|
|
3800
|
-
get: function () { return
|
|
3800
|
+
get: function () { return chunk7Y6O4P2P_cjs.getDeploymentOrThrow; }
|
|
3801
3801
|
});
|
|
3802
3802
|
Object.defineProperty(exports, "getMerkleProofsForNotes", {
|
|
3803
3803
|
enumerable: true,
|
|
3804
|
-
get: function () { return
|
|
3804
|
+
get: function () { return chunk7Y6O4P2P_cjs.getMerkleProofsForNotes; }
|
|
3805
3805
|
});
|
|
3806
3806
|
Object.defineProperty(exports, "getSupportedChainIds", {
|
|
3807
3807
|
enumerable: true,
|
|
3808
|
-
get: function () { return
|
|
3808
|
+
get: function () { return chunk7Y6O4P2P_cjs.getSupportedChainIds; }
|
|
3809
3809
|
});
|
|
3810
3810
|
Object.defineProperty(exports, "getTokenAddress", {
|
|
3811
3811
|
enumerable: true,
|
|
3812
|
-
get: function () { return
|
|
3812
|
+
get: function () { return chunk7Y6O4P2P_cjs.getTokenAddress; }
|
|
3813
3813
|
});
|
|
3814
3814
|
Object.defineProperty(exports, "hasDeployment", {
|
|
3815
3815
|
enumerable: true,
|
|
3816
|
-
get: function () { return
|
|
3816
|
+
get: function () { return chunk7Y6O4P2P_cjs.hasDeployment; }
|
|
3817
3817
|
});
|
|
3818
3818
|
Object.defineProperty(exports, "registerDeployment", {
|
|
3819
3819
|
enumerable: true,
|
|
3820
|
-
get: function () { return
|
|
3820
|
+
get: function () { return chunk7Y6O4P2P_cjs.registerDeployment; }
|
|
3821
3821
|
});
|
|
3822
3822
|
Object.defineProperty(exports, "syncMerkleTree", {
|
|
3823
3823
|
enumerable: true,
|
|
3824
|
-
get: function () { return
|
|
3824
|
+
get: function () { return chunk7Y6O4P2P_cjs.syncMerkleTree; }
|
|
3825
|
+
});
|
|
3826
|
+
Object.defineProperty(exports, "ASP_TREE_DEPTH", {
|
|
3827
|
+
enumerable: true,
|
|
3828
|
+
get: function () { return chunkRYEYGGE7_cjs.ASP_TREE_DEPTH; }
|
|
3829
|
+
});
|
|
3830
|
+
Object.defineProperty(exports, "STATE_TREE_DEPTH", {
|
|
3831
|
+
enumerable: true,
|
|
3832
|
+
get: function () { return chunkRYEYGGE7_cjs.STATE_TREE_DEPTH; }
|
|
3833
|
+
});
|
|
3834
|
+
Object.defineProperty(exports, "formatProofForContract", {
|
|
3835
|
+
enumerable: true,
|
|
3836
|
+
get: function () { return chunkRYEYGGE7_cjs.formatProofForContract; }
|
|
3837
|
+
});
|
|
3838
|
+
Object.defineProperty(exports, "generateProof", {
|
|
3839
|
+
enumerable: true,
|
|
3840
|
+
get: function () { return chunkRYEYGGE7_cjs.generateProof; }
|
|
3841
|
+
});
|
|
3842
|
+
Object.defineProperty(exports, "generateStealthProof", {
|
|
3843
|
+
enumerable: true,
|
|
3844
|
+
get: function () { return chunkRYEYGGE7_cjs.generateStealthProof; }
|
|
3845
|
+
});
|
|
3846
|
+
Object.defineProperty(exports, "generateUPPProof", {
|
|
3847
|
+
enumerable: true,
|
|
3848
|
+
get: function () { return chunkRYEYGGE7_cjs.generateUPPProof; }
|
|
3849
|
+
});
|
|
3850
|
+
Object.defineProperty(exports, "getStealthCircuitArtifacts", {
|
|
3851
|
+
enumerable: true,
|
|
3852
|
+
get: function () { return chunkRYEYGGE7_cjs.getStealthCircuitArtifacts; }
|
|
3853
|
+
});
|
|
3854
|
+
Object.defineProperty(exports, "getUPPCircuitArtifacts", {
|
|
3855
|
+
enumerable: true,
|
|
3856
|
+
get: function () { return chunkRYEYGGE7_cjs.getUPPCircuitArtifacts; }
|
|
3857
|
+
});
|
|
3858
|
+
Object.defineProperty(exports, "verifyProof", {
|
|
3859
|
+
enumerable: true,
|
|
3860
|
+
get: function () { return chunkRYEYGGE7_cjs.verifyProof; }
|
|
3825
3861
|
});
|
|
3826
3862
|
Object.defineProperty(exports, "makeRpcIndexer", {
|
|
3827
3863
|
enumerable: true,
|
|
3828
|
-
get: function () { return
|
|
3864
|
+
get: function () { return chunkCTBLNYYB_cjs.makeRpcIndexer; }
|
|
3829
3865
|
});
|
|
3830
3866
|
Object.defineProperty(exports, "DEFAULT_KEY_DERIVATION_CONFIG", {
|
|
3831
3867
|
enumerable: true,
|
|
@@ -3885,167 +3921,175 @@ Object.defineProperty(exports, "verifyKeysMatchSignature", {
|
|
|
3885
3921
|
});
|
|
3886
3922
|
Object.defineProperty(exports, "ADDRESS_VERSION", {
|
|
3887
3923
|
enumerable: true,
|
|
3888
|
-
get: function () { return
|
|
3924
|
+
get: function () { return chunkCZLMCMYE_cjs.ADDRESS_VERSION; }
|
|
3889
3925
|
});
|
|
3890
3926
|
Object.defineProperty(exports, "DirectAccountAdapter", {
|
|
3891
3927
|
enumerable: true,
|
|
3892
|
-
get: function () { return
|
|
3928
|
+
get: function () { return chunkCZLMCMYE_cjs.DirectAccountAdapter; }
|
|
3893
3929
|
});
|
|
3894
3930
|
Object.defineProperty(exports, "NoteStore", {
|
|
3895
3931
|
enumerable: true,
|
|
3896
|
-
get: function () { return
|
|
3932
|
+
get: function () { return chunkCZLMCMYE_cjs.NoteStore; }
|
|
3933
|
+
});
|
|
3934
|
+
Object.defineProperty(exports, "ProofWorkerManager", {
|
|
3935
|
+
enumerable: true,
|
|
3936
|
+
get: function () { return chunkCZLMCMYE_cjs.ProofWorkerManager; }
|
|
3897
3937
|
});
|
|
3898
3938
|
Object.defineProperty(exports, "RATE_PRECISION", {
|
|
3899
3939
|
enumerable: true,
|
|
3900
|
-
get: function () { return
|
|
3940
|
+
get: function () { return chunkCZLMCMYE_cjs.RATE_PRECISION; }
|
|
3901
3941
|
});
|
|
3902
3942
|
Object.defineProperty(exports, "STARK_ADDRESS_VERSION", {
|
|
3903
3943
|
enumerable: true,
|
|
3904
|
-
get: function () { return
|
|
3944
|
+
get: function () { return chunkCZLMCMYE_cjs.STARK_ADDRESS_VERSION; }
|
|
3905
3945
|
});
|
|
3906
3946
|
Object.defineProperty(exports, "STARK_STEALTH_ADDRESS_PREFIX", {
|
|
3907
3947
|
enumerable: true,
|
|
3908
|
-
get: function () { return
|
|
3948
|
+
get: function () { return chunkCZLMCMYE_cjs.STARK_STEALTH_ADDRESS_PREFIX; }
|
|
3909
3949
|
});
|
|
3910
3950
|
Object.defineProperty(exports, "STEALTH_ADDRESS_PREFIX", {
|
|
3911
3951
|
enumerable: true,
|
|
3912
|
-
get: function () { return
|
|
3952
|
+
get: function () { return chunkCZLMCMYE_cjs.STEALTH_ADDRESS_PREFIX; }
|
|
3913
3953
|
});
|
|
3914
3954
|
Object.defineProperty(exports, "SWAP_EVENTS_ABI", {
|
|
3915
3955
|
enumerable: true,
|
|
3916
|
-
get: function () { return
|
|
3956
|
+
get: function () { return chunkCZLMCMYE_cjs.SWAP_EVENTS_ABI; }
|
|
3917
3957
|
});
|
|
3918
3958
|
Object.defineProperty(exports, "SWAP_ORDER_CANCELLED_EVENT", {
|
|
3919
3959
|
enumerable: true,
|
|
3920
|
-
get: function () { return
|
|
3960
|
+
get: function () { return chunkCZLMCMYE_cjs.SWAP_ORDER_CANCELLED_EVENT; }
|
|
3921
3961
|
});
|
|
3922
3962
|
Object.defineProperty(exports, "SWAP_ORDER_CLAIMED_EVENT", {
|
|
3923
3963
|
enumerable: true,
|
|
3924
|
-
get: function () { return
|
|
3964
|
+
get: function () { return chunkCZLMCMYE_cjs.SWAP_ORDER_CLAIMED_EVENT; }
|
|
3925
3965
|
});
|
|
3926
3966
|
Object.defineProperty(exports, "SWAP_ORDER_FILLED_EVENT", {
|
|
3927
3967
|
enumerable: true,
|
|
3928
|
-
get: function () { return
|
|
3968
|
+
get: function () { return chunkCZLMCMYE_cjs.SWAP_ORDER_FILLED_EVENT; }
|
|
3929
3969
|
});
|
|
3930
3970
|
Object.defineProperty(exports, "SWAP_ORDER_PLACED_EVENT", {
|
|
3931
3971
|
enumerable: true,
|
|
3932
|
-
get: function () { return
|
|
3972
|
+
get: function () { return chunkCZLMCMYE_cjs.SWAP_ORDER_PLACED_EVENT; }
|
|
3933
3973
|
});
|
|
3934
3974
|
Object.defineProperty(exports, "StorableAccountAdapter", {
|
|
3935
3975
|
enumerable: true,
|
|
3936
|
-
get: function () { return
|
|
3976
|
+
get: function () { return chunkCZLMCMYE_cjs.StorableAccountAdapter; }
|
|
3937
3977
|
});
|
|
3938
3978
|
Object.defineProperty(exports, "computeCancelKeyHash", {
|
|
3939
3979
|
enumerable: true,
|
|
3940
|
-
get: function () { return
|
|
3980
|
+
get: function () { return chunkCZLMCMYE_cjs.computeCancelKeyHash; }
|
|
3941
3981
|
});
|
|
3942
3982
|
Object.defineProperty(exports, "computeFillPercentage", {
|
|
3943
3983
|
enumerable: true,
|
|
3944
|
-
get: function () { return
|
|
3984
|
+
get: function () { return chunkCZLMCMYE_cjs.computeFillPercentage; }
|
|
3945
3985
|
});
|
|
3946
3986
|
Object.defineProperty(exports, "computeGiveAmount", {
|
|
3947
3987
|
enumerable: true,
|
|
3948
|
-
get: function () { return
|
|
3988
|
+
get: function () { return chunkCZLMCMYE_cjs.computeGiveAmount; }
|
|
3949
3989
|
});
|
|
3950
3990
|
Object.defineProperty(exports, "computeNoteEncryptionKey", {
|
|
3951
3991
|
enumerable: true,
|
|
3952
|
-
get: function () { return
|
|
3992
|
+
get: function () { return chunkCZLMCMYE_cjs.computeNoteEncryptionKey; }
|
|
3953
3993
|
});
|
|
3954
3994
|
Object.defineProperty(exports, "computeRate", {
|
|
3955
3995
|
enumerable: true,
|
|
3956
|
-
get: function () { return
|
|
3996
|
+
get: function () { return chunkCZLMCMYE_cjs.computeRate; }
|
|
3957
3997
|
});
|
|
3958
3998
|
Object.defineProperty(exports, "computeTakeAmount", {
|
|
3959
3999
|
enumerable: true,
|
|
3960
|
-
get: function () { return
|
|
4000
|
+
get: function () { return chunkCZLMCMYE_cjs.computeTakeAmount; }
|
|
3961
4001
|
});
|
|
3962
4002
|
Object.defineProperty(exports, "computeTotalBuyAmount", {
|
|
3963
4003
|
enumerable: true,
|
|
3964
|
-
get: function () { return
|
|
4004
|
+
get: function () { return chunkCZLMCMYE_cjs.computeTotalBuyAmount; }
|
|
3965
4005
|
});
|
|
3966
4006
|
Object.defineProperty(exports, "createOneTimeKeys", {
|
|
3967
4007
|
enumerable: true,
|
|
3968
|
-
get: function () { return
|
|
4008
|
+
get: function () { return chunkCZLMCMYE_cjs.createOneTimeKeys; }
|
|
3969
4009
|
});
|
|
3970
4010
|
Object.defineProperty(exports, "decodeStarkStealthAddress", {
|
|
3971
4011
|
enumerable: true,
|
|
3972
|
-
get: function () { return
|
|
4012
|
+
get: function () { return chunkCZLMCMYE_cjs.decodeStarkStealthAddress; }
|
|
3973
4013
|
});
|
|
3974
4014
|
Object.defineProperty(exports, "decodeStealthAddress", {
|
|
3975
4015
|
enumerable: true,
|
|
3976
|
-
get: function () { return
|
|
4016
|
+
get: function () { return chunkCZLMCMYE_cjs.decodeStealthAddress; }
|
|
3977
4017
|
});
|
|
3978
4018
|
Object.defineProperty(exports, "detectAddressType", {
|
|
3979
4019
|
enumerable: true,
|
|
3980
|
-
get: function () { return
|
|
4020
|
+
get: function () { return chunkCZLMCMYE_cjs.detectAddressType; }
|
|
3981
4021
|
});
|
|
3982
4022
|
Object.defineProperty(exports, "encodeStarkStealthAddress", {
|
|
3983
4023
|
enumerable: true,
|
|
3984
|
-
get: function () { return
|
|
4024
|
+
get: function () { return chunkCZLMCMYE_cjs.encodeStarkStealthAddress; }
|
|
3985
4025
|
});
|
|
3986
4026
|
Object.defineProperty(exports, "encodeStealthAddress", {
|
|
3987
4027
|
enumerable: true,
|
|
3988
|
-
get: function () { return
|
|
4028
|
+
get: function () { return chunkCZLMCMYE_cjs.encodeStealthAddress; }
|
|
3989
4029
|
});
|
|
3990
4030
|
Object.defineProperty(exports, "filterOrdersByASP", {
|
|
3991
4031
|
enumerable: true,
|
|
3992
|
-
get: function () { return
|
|
4032
|
+
get: function () { return chunkCZLMCMYE_cjs.filterOrdersByASP; }
|
|
3993
4033
|
});
|
|
3994
4034
|
Object.defineProperty(exports, "filterOrdersByTokenPair", {
|
|
3995
4035
|
enumerable: true,
|
|
3996
|
-
get: function () { return
|
|
4036
|
+
get: function () { return chunkCZLMCMYE_cjs.filterOrdersByTokenPair; }
|
|
3997
4037
|
});
|
|
3998
4038
|
Object.defineProperty(exports, "formatRate", {
|
|
3999
4039
|
enumerable: true,
|
|
4000
|
-
get: function () { return
|
|
4040
|
+
get: function () { return chunkCZLMCMYE_cjs.formatRate; }
|
|
4001
4041
|
});
|
|
4002
4042
|
Object.defineProperty(exports, "generateCancelSecret", {
|
|
4003
4043
|
enumerable: true,
|
|
4004
|
-
get: function () { return
|
|
4044
|
+
get: function () { return chunkCZLMCMYE_cjs.generateCancelSecret; }
|
|
4005
4045
|
});
|
|
4006
4046
|
Object.defineProperty(exports, "generateStarkStealthAddress", {
|
|
4007
4047
|
enumerable: true,
|
|
4008
|
-
get: function () { return
|
|
4048
|
+
get: function () { return chunkCZLMCMYE_cjs.generateStarkStealthAddress; }
|
|
4009
4049
|
});
|
|
4010
4050
|
Object.defineProperty(exports, "generateStealthAddress", {
|
|
4011
4051
|
enumerable: true,
|
|
4012
|
-
get: function () { return
|
|
4052
|
+
get: function () { return chunkCZLMCMYE_cjs.generateStealthAddress; }
|
|
4053
|
+
});
|
|
4054
|
+
Object.defineProperty(exports, "generateUPPProofAsync", {
|
|
4055
|
+
enumerable: true,
|
|
4056
|
+
get: function () { return chunkCZLMCMYE_cjs.generateUPPProofAsync; }
|
|
4013
4057
|
});
|
|
4014
4058
|
Object.defineProperty(exports, "getCancelSecret", {
|
|
4015
4059
|
enumerable: true,
|
|
4016
|
-
get: function () { return
|
|
4060
|
+
get: function () { return chunkCZLMCMYE_cjs.getCancelSecret; }
|
|
4017
4061
|
});
|
|
4018
4062
|
Object.defineProperty(exports, "getOwnOrderIds", {
|
|
4019
4063
|
enumerable: true,
|
|
4020
|
-
get: function () { return
|
|
4064
|
+
get: function () { return chunkCZLMCMYE_cjs.getOwnOrderIds; }
|
|
4021
4065
|
});
|
|
4022
4066
|
Object.defineProperty(exports, "isFillerASPAccepted", {
|
|
4023
4067
|
enumerable: true,
|
|
4024
|
-
get: function () { return
|
|
4068
|
+
get: function () { return chunkCZLMCMYE_cjs.isFillerASPAccepted; }
|
|
4025
4069
|
});
|
|
4026
4070
|
Object.defineProperty(exports, "isOrderActive", {
|
|
4027
4071
|
enumerable: true,
|
|
4028
|
-
get: function () { return
|
|
4072
|
+
get: function () { return chunkCZLMCMYE_cjs.isOrderActive; }
|
|
4029
4073
|
});
|
|
4030
4074
|
Object.defineProperty(exports, "isValidStarkStealthAddress", {
|
|
4031
4075
|
enumerable: true,
|
|
4032
|
-
get: function () { return
|
|
4076
|
+
get: function () { return chunkCZLMCMYE_cjs.isValidStarkStealthAddress; }
|
|
4033
4077
|
});
|
|
4034
4078
|
Object.defineProperty(exports, "isValidStealthAddress", {
|
|
4035
4079
|
enumerable: true,
|
|
4036
|
-
get: function () { return
|
|
4080
|
+
get: function () { return chunkCZLMCMYE_cjs.isValidStealthAddress; }
|
|
4037
4081
|
});
|
|
4038
4082
|
Object.defineProperty(exports, "removeCancelSecret", {
|
|
4039
4083
|
enumerable: true,
|
|
4040
|
-
get: function () { return
|
|
4084
|
+
get: function () { return chunkCZLMCMYE_cjs.removeCancelSecret; }
|
|
4041
4085
|
});
|
|
4042
4086
|
Object.defineProperty(exports, "storeCancelSecret", {
|
|
4043
4087
|
enumerable: true,
|
|
4044
|
-
get: function () { return
|
|
4088
|
+
get: function () { return chunkCZLMCMYE_cjs.storeCancelSecret; }
|
|
4045
4089
|
});
|
|
4046
4090
|
Object.defineProperty(exports, "verifyOwnership", {
|
|
4047
4091
|
enumerable: true,
|
|
4048
|
-
get: function () { return
|
|
4092
|
+
get: function () { return chunkCZLMCMYE_cjs.verifyOwnership; }
|
|
4049
4093
|
});
|
|
4050
4094
|
Object.defineProperty(exports, "DEMO_ASP_ID", {
|
|
4051
4095
|
enumerable: true,
|
|
@@ -4303,42 +4347,6 @@ Object.defineProperty(exports, "toFieldElement", {
|
|
|
4303
4347
|
enumerable: true,
|
|
4304
4348
|
get: function () { return chunkHEHXSV47_cjs.toFieldElement; }
|
|
4305
4349
|
});
|
|
4306
|
-
Object.defineProperty(exports, "ASP_TREE_DEPTH", {
|
|
4307
|
-
enumerable: true,
|
|
4308
|
-
get: function () { return chunkRYEYGGE7_cjs.ASP_TREE_DEPTH; }
|
|
4309
|
-
});
|
|
4310
|
-
Object.defineProperty(exports, "STATE_TREE_DEPTH", {
|
|
4311
|
-
enumerable: true,
|
|
4312
|
-
get: function () { return chunkRYEYGGE7_cjs.STATE_TREE_DEPTH; }
|
|
4313
|
-
});
|
|
4314
|
-
Object.defineProperty(exports, "formatProofForContract", {
|
|
4315
|
-
enumerable: true,
|
|
4316
|
-
get: function () { return chunkRYEYGGE7_cjs.formatProofForContract; }
|
|
4317
|
-
});
|
|
4318
|
-
Object.defineProperty(exports, "generateProof", {
|
|
4319
|
-
enumerable: true,
|
|
4320
|
-
get: function () { return chunkRYEYGGE7_cjs.generateProof; }
|
|
4321
|
-
});
|
|
4322
|
-
Object.defineProperty(exports, "generateStealthProof", {
|
|
4323
|
-
enumerable: true,
|
|
4324
|
-
get: function () { return chunkRYEYGGE7_cjs.generateStealthProof; }
|
|
4325
|
-
});
|
|
4326
|
-
Object.defineProperty(exports, "generateUPPProof", {
|
|
4327
|
-
enumerable: true,
|
|
4328
|
-
get: function () { return chunkRYEYGGE7_cjs.generateUPPProof; }
|
|
4329
|
-
});
|
|
4330
|
-
Object.defineProperty(exports, "getStealthCircuitArtifacts", {
|
|
4331
|
-
enumerable: true,
|
|
4332
|
-
get: function () { return chunkRYEYGGE7_cjs.getStealthCircuitArtifacts; }
|
|
4333
|
-
});
|
|
4334
|
-
Object.defineProperty(exports, "getUPPCircuitArtifacts", {
|
|
4335
|
-
enumerable: true,
|
|
4336
|
-
get: function () { return chunkRYEYGGE7_cjs.getUPPCircuitArtifacts; }
|
|
4337
|
-
});
|
|
4338
|
-
Object.defineProperty(exports, "verifyProof", {
|
|
4339
|
-
enumerable: true,
|
|
4340
|
-
get: function () { return chunkRYEYGGE7_cjs.verifyProof; }
|
|
4341
|
-
});
|
|
4342
4350
|
Object.defineProperty(exports, "ASP_REGISTRY_HUB_ABI", {
|
|
4343
4351
|
enumerable: true,
|
|
4344
4352
|
get: function () { return upcSdk.ASP_REGISTRY_HUB_ABI; }
|
package/dist/index.d.cts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { A as ADDRESS_VERSION, k as ASPMembershipProof, D as DirectAccountAdapter, l as IASPProvider, m as IAccountAdapter, n as INoteStore, a as IndexedNote, I as Indexer, N as NoteStatus, o as NoteStore, P as ProofSystem, R as RpcIndexerConfig, p as STARK_ADDRESS_VERSION, q as STARK_STEALTH_ADDRESS_PREFIX, r as STEALTH_ADDRESS_PREFIX, s as ShieldedNote, t as StorableAccountAdapter, S as StorageAdapter, c as SyncResult, U as UPPClient, u as UPPClientConfig, v as computeNoteEncryptionKey, w as createNote, x as createOneTimeKeys, y as createUPPClient, z as decodeStarkStealthAddress, B as decodeStealthAddress, E as decryptNote, F as detectAddressType, G as encodeStarkStealthAddress, H as encodeStealthAddress, J as encryptNote, K as generateStarkStealthAddress, M as generateStealthAddress, O as isValidStarkStealthAddress, Q as isValidStealthAddress, T as verifyOwnership } from './index-
|
|
2
|
-
export { A as ASPProof, a as ASPRoot, b as ASP_TREE_DEPTH, C as CircuitArtifacts, c as CircuitType, d as Commitment, D as DEMO_ASP_ID, e as DEMO_ASP_NAME, E as EncryptedNote, M as MergeParams, f as MergeRecord, g as MerkleProofWithNote, N as NOTE_VERSION, h as Note, i as NoteWithAmount, j as Nullifier, P as
|
|
1
|
+
export { A as ADDRESS_VERSION, k as ASPMembershipProof, D as DirectAccountAdapter, l as IASPProvider, m as IAccountAdapter, n as INoteStore, a as IndexedNote, I as Indexer, N as NoteStatus, o as NoteStore, P as ProofSystem, R as RpcIndexerConfig, p as STARK_ADDRESS_VERSION, q as STARK_STEALTH_ADDRESS_PREFIX, r as STEALTH_ADDRESS_PREFIX, s as ShieldedNote, t as StorableAccountAdapter, S as StorageAdapter, c as SyncResult, U as UPPClient, u as UPPClientConfig, v as computeNoteEncryptionKey, w as createNote, x as createOneTimeKeys, y as createUPPClient, z as decodeStarkStealthAddress, B as decodeStealthAddress, E as decryptNote, F as detectAddressType, G as encodeStarkStealthAddress, H as encodeStealthAddress, J as encryptNote, K as generateStarkStealthAddress, M as generateStealthAddress, O as isValidStarkStealthAddress, Q as isValidStealthAddress, T as verifyOwnership } from './index-qTwnREeK.cjs';
|
|
2
|
+
export { A as ASPProof, a as ASPRoot, b as ASP_TREE_DEPTH, C as CircuitArtifacts, c as CircuitType, d as Commitment, D as DEMO_ASP_ID, e as DEMO_ASP_NAME, E as EncryptedNote, M as MergeParams, f as MergeRecord, g as MerkleProofWithNote, N as NOTE_VERSION, h as Note, i as NoteWithAmount, j as Nullifier, P as PlonkProvingStage, k as Proof, l as ProofResult, m as ProofWorkerManager, n as ProofWorkerRequest, o as ProofWorkerResponse, R as RATE_PRECISION, S as STATE_TREE_DEPTH, p as SWAP_EVENTS_ABI, q as SWAP_ORDER_CANCELLED_EVENT, r as SWAP_ORDER_CLAIMED_EVENT, s as SWAP_ORDER_FILLED_EVENT, t as SWAP_ORDER_PLACED_EVENT, u as ShieldParams, v as SpendableNote, w as StarkNote, x as StarkProof, y as StarkStealthMetaAddress, z as Stealth1x2CircuitInputs, B as Stealth2x2CircuitInputs, F as StealthAddress, G as StealthCircuitInputs, H as StealthCircuitType, I as StealthMetaAddress, J as SwapFillEvent, K as SwapFillParams, L as SwapOrder, O as SwapOrderEvent, Q as SwapOrderParams, T as TransferBuildResult, U as TransferContext, V as TransferParams, W as TransferStage, X as UPPCircuitInputs, Y as UPPCircuitType, Z as UPPTransferCircuitInputs, _ as UPPWithdrawCircuitInputs, $ as WithdrawParams, a0 as buildASPTree, a1 as buildTransfer, a2 as buildUPPTransferCircuitInputs, a3 as computeCancelKeyHash, a4 as computeFillPercentage, a5 as computeGiveAmount, a6 as computeMultiOriginASPRoot, a7 as computeNullifier, a8 as computeRate, a9 as computeSingleOriginASPRoot, aa as computeTakeAmount, ab as computeTotalBuyAmount, ac as createDemoASPRoot, ad as filterOrdersByASP, ae as filterOrdersByTokenPair, af as formatOutputForContract, ag as formatProofForContract, ah as formatRate, ai as generateASPProof, aj as generateCancelSecret, ak as generateMultiOriginASPProof, al as generateProof, am as generateSingleOriginASPProof, an as generateStealthProof, ao as generateUPPProof, ap as generateUPPProofAsync, aq as getCancelSecret, ar as getMerkleProofsForNotes, as as getOwnOrderIds, at as getStealthCircuitArtifacts, au as getUPPCircuitArtifacts, av as isFillerASPAccepted, aw as isOrderActive, ax as removeCancelSecret, ay as storeCancelSecret, az as syncMerkleTree, aA as verifyASPProof, aB as verifyProof } from './transfer-BDYID3Hn.cjs';
|
|
3
3
|
export { A as AuditKeyExport, D as DEFAULT_KEY_DERIVATION_CONFIG, a as DualMasterKeys, K as KeyDerivationConfig, M as MasterKeys, O as OneTimeKeys, P as ProvingSystem, S as SerializedKeys, b as StarkMasterKeys, c as StealthAddressComponents, T as TransactionViewingKey } from './types-CJSbxv4q.cjs';
|
|
4
4
|
export { NoteReference, deriveDualKeysFromSignature, deriveKeysFromSignature, deriveNullifierKey, derivePerNoteKey, derivePerNoteKeyFromKeys, deriveStarkKeysFromSignature, deriveStarkPerNoteKey, deriveStarkPerNoteKeyFromKeys, exportViewingKeysForAudit, getKeyDerivationMessage, getViewingKeyFromExport, validateAuditKeyExport, verifyKeysMatchSignature } from './keys/index.cjs';
|
|
5
5
|
export { BABYJUBJUB_SUBORDER, FIELD_PRIME, addressToField, bigintToBytes, bytesToBigint, bytesToHex, fieldToAddress, hexToBytes, isValidFieldElement, poseidon, poseidonHash, poseidonScalar, randomBytes, randomFieldElement, toFieldElement } from './utils/index.cjs';
|
|
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-DKFupAA8.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
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { A as ADDRESS_VERSION, k as ASPMembershipProof, D as DirectAccountAdapter, l as IASPProvider, m as IAccountAdapter, n as INoteStore, a as IndexedNote, I as Indexer, N as NoteStatus, o as NoteStore, P as ProofSystem, R as RpcIndexerConfig, p as STARK_ADDRESS_VERSION, q as STARK_STEALTH_ADDRESS_PREFIX, r as STEALTH_ADDRESS_PREFIX, s as ShieldedNote, t as StorableAccountAdapter, S as StorageAdapter, c as SyncResult, U as UPPClient, u as UPPClientConfig, v as computeNoteEncryptionKey, w as createNote, x as createOneTimeKeys, y as createUPPClient, z as decodeStarkStealthAddress, B as decodeStealthAddress, E as decryptNote, F as detectAddressType, G as encodeStarkStealthAddress, H as encodeStealthAddress, J as encryptNote, K as generateStarkStealthAddress, M as generateStealthAddress, O as isValidStarkStealthAddress, Q as isValidStealthAddress, T as verifyOwnership } from './index
|
|
2
|
-
export { A as ASPProof, a as ASPRoot, b as ASP_TREE_DEPTH, C as CircuitArtifacts, c as CircuitType, d as Commitment, D as DEMO_ASP_ID, e as DEMO_ASP_NAME, E as EncryptedNote, M as MergeParams, f as MergeRecord, g as MerkleProofWithNote, N as NOTE_VERSION, h as Note, i as NoteWithAmount, j as Nullifier, P as
|
|
1
|
+
export { A as ADDRESS_VERSION, k as ASPMembershipProof, D as DirectAccountAdapter, l as IASPProvider, m as IAccountAdapter, n as INoteStore, a as IndexedNote, I as Indexer, N as NoteStatus, o as NoteStore, P as ProofSystem, R as RpcIndexerConfig, p as STARK_ADDRESS_VERSION, q as STARK_STEALTH_ADDRESS_PREFIX, r as STEALTH_ADDRESS_PREFIX, s as ShieldedNote, t as StorableAccountAdapter, S as StorageAdapter, c as SyncResult, U as UPPClient, u as UPPClientConfig, v as computeNoteEncryptionKey, w as createNote, x as createOneTimeKeys, y as createUPPClient, z as decodeStarkStealthAddress, B as decodeStealthAddress, E as decryptNote, F as detectAddressType, G as encodeStarkStealthAddress, H as encodeStealthAddress, J as encryptNote, K as generateStarkStealthAddress, M as generateStealthAddress, O as isValidStarkStealthAddress, Q as isValidStealthAddress, T as verifyOwnership } from './index-S2fzWmLW.js';
|
|
2
|
+
export { A as ASPProof, a as ASPRoot, b as ASP_TREE_DEPTH, C as CircuitArtifacts, c as CircuitType, d as Commitment, D as DEMO_ASP_ID, e as DEMO_ASP_NAME, E as EncryptedNote, M as MergeParams, f as MergeRecord, g as MerkleProofWithNote, N as NOTE_VERSION, h as Note, i as NoteWithAmount, j as Nullifier, P as PlonkProvingStage, k as Proof, l as ProofResult, m as ProofWorkerManager, n as ProofWorkerRequest, o as ProofWorkerResponse, R as RATE_PRECISION, S as STATE_TREE_DEPTH, p as SWAP_EVENTS_ABI, q as SWAP_ORDER_CANCELLED_EVENT, r as SWAP_ORDER_CLAIMED_EVENT, s as SWAP_ORDER_FILLED_EVENT, t as SWAP_ORDER_PLACED_EVENT, u as ShieldParams, v as SpendableNote, w as StarkNote, x as StarkProof, y as StarkStealthMetaAddress, z as Stealth1x2CircuitInputs, B as Stealth2x2CircuitInputs, F as StealthAddress, G as StealthCircuitInputs, H as StealthCircuitType, I as StealthMetaAddress, J as SwapFillEvent, K as SwapFillParams, L as SwapOrder, O as SwapOrderEvent, Q as SwapOrderParams, T as TransferBuildResult, U as TransferContext, V as TransferParams, W as TransferStage, X as UPPCircuitInputs, Y as UPPCircuitType, Z as UPPTransferCircuitInputs, _ as UPPWithdrawCircuitInputs, $ as WithdrawParams, a0 as buildASPTree, a1 as buildTransfer, a2 as buildUPPTransferCircuitInputs, a3 as computeCancelKeyHash, a4 as computeFillPercentage, a5 as computeGiveAmount, a6 as computeMultiOriginASPRoot, a7 as computeNullifier, a8 as computeRate, a9 as computeSingleOriginASPRoot, aa as computeTakeAmount, ab as computeTotalBuyAmount, ac as createDemoASPRoot, ad as filterOrdersByASP, ae as filterOrdersByTokenPair, af as formatOutputForContract, ag as formatProofForContract, ah as formatRate, ai as generateASPProof, aj as generateCancelSecret, ak as generateMultiOriginASPProof, al as generateProof, am as generateSingleOriginASPProof, an as generateStealthProof, ao as generateUPPProof, ap as generateUPPProofAsync, aq as getCancelSecret, ar as getMerkleProofsForNotes, as as getOwnOrderIds, at as getStealthCircuitArtifacts, au as getUPPCircuitArtifacts, av as isFillerASPAccepted, aw as isOrderActive, ax as removeCancelSecret, ay as storeCancelSecret, az as syncMerkleTree, aA as verifyASPProof, aB as verifyProof } from './transfer-DLukr6ed.js';
|
|
3
3
|
export { A as AuditKeyExport, D as DEFAULT_KEY_DERIVATION_CONFIG, a as DualMasterKeys, K as KeyDerivationConfig, M as MasterKeys, O as OneTimeKeys, P as ProvingSystem, S as SerializedKeys, b as StarkMasterKeys, c as StealthAddressComponents, T as TransactionViewingKey } from './types-mLybMxNR.js';
|
|
4
4
|
export { NoteReference, deriveDualKeysFromSignature, deriveKeysFromSignature, deriveNullifierKey, derivePerNoteKey, derivePerNoteKeyFromKeys, deriveStarkKeysFromSignature, deriveStarkPerNoteKey, deriveStarkPerNoteKeyFromKeys, exportViewingKeysForAudit, getKeyDerivationMessage, getViewingKeyFromExport, validateAuditKeyExport, verifyKeysMatchSignature } from './keys/index.js';
|
|
5
5
|
export { BABYJUBJUB_SUBORDER, FIELD_PRIME, addressToField, bigintToBytes, bytesToBigint, bytesToHex, fieldToAddress, hexToBytes, isValidFieldElement, poseidon, poseidonHash, poseidonScalar, randomBytes, randomFieldElement, toFieldElement } from './utils/index.js';
|
|
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-M91G-og3.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,8 +1,9 @@
|
|
|
1
|
-
export { NOTE_VERSION, createNote, createUPPClient, decryptNote, encryptNote } from './chunk-
|
|
2
|
-
export { buildTransfer, buildUPPTransferCircuitInputs, computeNullifier, formatOutputForContract, getDeployment, getDeploymentOrThrow, getMerkleProofsForNotes, getSupportedChainIds, getTokenAddress, hasDeployment, registerDeployment, syncMerkleTree } from './chunk-
|
|
3
|
-
export {
|
|
1
|
+
export { NOTE_VERSION, createNote, createUPPClient, decryptNote, encryptNote } from './chunk-5WLAZA3M.js';
|
|
2
|
+
export { buildTransfer, buildUPPTransferCircuitInputs, computeNullifier, formatOutputForContract, getDeployment, getDeploymentOrThrow, getMerkleProofsForNotes, getSupportedChainIds, getTokenAddress, hasDeployment, registerDeployment, syncMerkleTree } from './chunk-GQ6JMNJI.js';
|
|
3
|
+
export { ASP_TREE_DEPTH, STATE_TREE_DEPTH, formatProofForContract, generateProof, generateStealthProof, generateUPPProof, getStealthCircuitArtifacts, getUPPCircuitArtifacts, verifyProof } from './chunk-KRLRJ3HN.js';
|
|
4
|
+
export { makeRpcIndexer } from './chunk-YMZM2ABJ.js';
|
|
4
5
|
export { DEFAULT_KEY_DERIVATION_CONFIG, deriveDualKeysFromSignature, deriveKeysFromSignature, deriveNullifierKey, derivePerNoteKey, derivePerNoteKeyFromKeys, deriveStarkKeysFromSignature, deriveStarkPerNoteKey, deriveStarkPerNoteKeyFromKeys, exportViewingKeysForAudit, getKeyDerivationMessage, getViewingKeyFromExport, validateAuditKeyExport, verifyKeysMatchSignature } from './chunk-DTEAFJG7.js';
|
|
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-
|
|
6
|
+
export { ADDRESS_VERSION, DirectAccountAdapter, NoteStore, ProofWorkerManager, 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, generateUPPProofAsync, getCancelSecret, getOwnOrderIds, isFillerASPAccepted, isOrderActive, isValidStarkStealthAddress, isValidStealthAddress, removeCancelSecret, storeCancelSecret, verifyOwnership } from './chunk-NIGEAKQP.js';
|
|
6
7
|
export { DEMO_ASP_ID, DEMO_ASP_NAME, buildASPTree, computeMultiOriginASPRoot, computeSingleOriginASPRoot, createDemoASPRoot, generateASPProof, generateMultiOriginASPProof, generateSingleOriginASPProof, verifyASPProof } from './chunk-6IEYWJVS.js';
|
|
7
8
|
import './chunk-XV72HNHN.js';
|
|
8
9
|
export { addPoints, computeSharedSecret, deriveDecryptionViewingKey, deriveEncryptionViewingKey, getBasePoint, getSubOrder, isOnCurve, mulPointScalar, packPoint, pointToTuple, privateToPublic, tupleToPoint } from './chunk-EHGH6TAW.js';
|
|
@@ -11,7 +12,6 @@ export { MAX_TREE_DEPTH, MerkleTree, buildMerkleTree, getMerkleProof, verifyMerk
|
|
|
11
12
|
export { DIGEST_SIZE, M31_P, SECRET_LIMBS, computeStarkCommitment, computeStarkNullifier, computeStarkOwnerHash, keccakHashTwo, keccakM31, splitToM31Limbs } from './chunk-6TFDBBAQ.js';
|
|
12
13
|
export { bigintToBytes, bytesToBigint, bytesToHex, hexToBytes, randomBytes, randomFieldElement } from './chunk-UQIM2KT3.js';
|
|
13
14
|
export { BABYJUBJUB_SUBORDER, FIELD_PRIME, addressToField, fieldToAddress, isValidFieldElement, poseidon, poseidonHash, poseidonScalar, toFieldElement } from './chunk-5QSSX3KR.js';
|
|
14
|
-
export { ASP_TREE_DEPTH, STATE_TREE_DEPTH, formatProofForContract, generateProof, generateStealthProof, generateUPPProof, getStealthCircuitArtifacts, getUPPCircuitArtifacts, verifyProof } from './chunk-KRLRJ3HN.js';
|
|
15
15
|
import './chunk-Z6ZWNWWR.js';
|
|
16
16
|
export { ASP_REGISTRY_HUB_ABI } from '@permissionless-technologies/upc-sdk';
|
|
17
17
|
|
package/dist/indexer/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkCTBLNYYB_cjs = require('../chunk-CTBLNYYB.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 chunkCTBLNYYB_cjs.computeSearchTag; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "makeRpcIndexer", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkCTBLNYYB_cjs.makeRpcIndexer; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "matchesSearchTag", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkCTBLNYYB_cjs.matchesSearchTag; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "tryDecryptNote", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkCTBLNYYB_cjs.tryDecryptNote; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "unpackNoteData", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkCTBLNYYB_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-qTwnREeK.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-qTwnREeK.cjs';
|
|
3
|
+
import { _ as ___index_js } from '../index-DKFupAA8.cjs';
|
|
4
|
+
export { m as makeRpcIndexer } from '../index-DKFupAA8.cjs';
|
|
5
5
|
import { Hex } from 'viem';
|
|
6
6
|
import { P as Point } from '../merkle-mteVOlDf.cjs';
|
|
7
|
-
import '../transfer-
|
|
7
|
+
import '../transfer-BDYID3Hn.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-S2fzWmLW.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-S2fzWmLW.js';
|
|
3
|
+
import { _ as ___index_js } from '../index-M91G-og3.js';
|
|
4
|
+
export { m as makeRpcIndexer } from '../index-M91G-og3.js';
|
|
5
5
|
import { Hex } from 'viem';
|
|
6
6
|
import { P as Point } from '../merkle-mteVOlDf.js';
|
|
7
|
-
import '../transfer-
|
|
7
|
+
import '../transfer-DLukr6ed.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-YMZM2ABJ.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
|