@permissionless-technologies/upp-sdk 0.3.6 → 0.4.0
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/{asp-ZA3RGN7G.js → asp-72WUGTQE.js} +3 -3
- package/dist/asp-72WUGTQE.js.map +1 -0
- package/dist/{asp-TXSAFFD3.cjs → asp-CUE3NMBN.cjs} +14 -14
- package/dist/asp-CUE3NMBN.cjs.map +1 -0
- package/dist/{chunk-KXPZUBPI.cjs → chunk-23B5XSS4.cjs} +12 -12
- package/dist/{chunk-KXPZUBPI.cjs.map → chunk-23B5XSS4.cjs.map} +1 -1
- package/dist/{chunk-SQKBT2SH.cjs → chunk-2G22R7AJ.cjs} +18 -7
- package/dist/chunk-2G22R7AJ.cjs.map +1 -0
- package/dist/chunk-5QSSX3KR.js +64 -0
- package/dist/chunk-5QSSX3KR.js.map +1 -0
- package/dist/{chunk-P37MRZ73.js → chunk-6IEYWJVS.js} +8 -8
- package/dist/chunk-6IEYWJVS.js.map +1 -0
- package/dist/{chunk-5V5HSN6Y.js → chunk-6TFDBBAQ.js} +3 -3
- package/dist/{chunk-5V5HSN6Y.js.map → chunk-6TFDBBAQ.js.map} +1 -1
- package/dist/{chunk-ZKZV6OI3.cjs → chunk-7BNJV2ZS.cjs} +21 -21
- package/dist/{chunk-ZKZV6OI3.cjs.map → chunk-7BNJV2ZS.cjs.map} +1 -1
- package/dist/{chunk-XBNYAAMU.js → chunk-7T4CUE6E.js} +3 -3
- package/dist/{chunk-XBNYAAMU.js.map → chunk-7T4CUE6E.js.map} +1 -1
- package/dist/{chunk-OD2SDC4L.js → chunk-CEJN5ZE5.js} +3 -3
- package/dist/{chunk-OD2SDC4L.js.map → chunk-CEJN5ZE5.js.map} +1 -1
- package/dist/{chunk-2JQISXBD.js → chunk-DTEAFJG7.js} +8 -8
- package/dist/{chunk-2JQISXBD.js.map → chunk-DTEAFJG7.js.map} +1 -1
- package/dist/chunk-EHGH6TAW.js +100 -0
- package/dist/chunk-EHGH6TAW.js.map +1 -0
- package/dist/{chunk-ZU6J7KMY.js → chunk-GPF72JFR.js} +3 -3
- package/dist/{chunk-ZU6J7KMY.js.map → chunk-GPF72JFR.js.map} +1 -1
- package/dist/chunk-HEHXSV47.cjs +77 -0
- package/dist/chunk-HEHXSV47.cjs.map +1 -0
- package/dist/chunk-I5EKGD4P.cjs +113 -0
- package/dist/chunk-I5EKGD4P.cjs.map +1 -0
- package/dist/{chunk-EUP7MBAH.cjs → chunk-IIUKM5VE.cjs} +7 -7
- package/dist/{chunk-EUP7MBAH.cjs.map → chunk-IIUKM5VE.cjs.map} +1 -1
- package/dist/{chunk-CWSUBAV3.js → chunk-OBBSIPEK.js} +30 -35
- package/dist/chunk-OBBSIPEK.js.map +1 -0
- package/dist/{chunk-FVT2XRRL.cjs → chunk-Q2E432UK.cjs} +41 -46
- package/dist/chunk-Q2E432UK.cjs.map +1 -0
- package/dist/{chunk-QKI4QWLT.js → chunk-RNUG3EFC.js} +6 -6
- package/dist/{chunk-QKI4QWLT.js.map → chunk-RNUG3EFC.js.map} +1 -1
- package/dist/{chunk-3YZSIYJC.cjs → chunk-SWTNJPK5.cjs} +11 -11
- package/dist/{chunk-3YZSIYJC.cjs.map → chunk-SWTNJPK5.cjs.map} +1 -1
- package/dist/{chunk-BH24DZ5S.cjs → chunk-U3YFYMWF.cjs} +5 -5
- package/dist/{chunk-BH24DZ5S.cjs.map → chunk-U3YFYMWF.cjs.map} +1 -1
- package/dist/{chunk-3HQ7A6ZM.cjs → chunk-UFEDJJSH.cjs} +5 -5
- package/dist/{chunk-3HQ7A6ZM.cjs.map → chunk-UFEDJJSH.cjs.map} +1 -1
- package/dist/{chunk-W77GRBO4.js → chunk-UQIM2KT3.js} +3 -3
- package/dist/{chunk-W77GRBO4.js.map → chunk-UQIM2KT3.js.map} +1 -1
- package/dist/{chunk-SJDPDHSD.cjs → chunk-UTAJSERA.cjs} +4 -4
- package/dist/{chunk-SJDPDHSD.cjs.map → chunk-UTAJSERA.cjs.map} +1 -1
- package/dist/{chunk-NI62M3W3.cjs → chunk-UYE2JASE.cjs} +2 -2
- package/dist/{chunk-NI62M3W3.cjs.map → chunk-UYE2JASE.cjs.map} +1 -1
- package/dist/{chunk-S4B7GYLN.js → chunk-W3HLIKC2.js} +18 -8
- package/dist/chunk-W3HLIKC2.js.map +1 -0
- package/dist/{chunk-NDM5EJEV.cjs → chunk-XVIICZKW.cjs} +7 -7
- package/dist/chunk-XVIICZKW.cjs.map +1 -0
- package/dist/{chunk-7Q4RSSHM.js → chunk-ZTVXII74.js} +2 -2
- package/dist/{chunk-7Q4RSSHM.js.map → chunk-ZTVXII74.js.map} +1 -1
- package/dist/core/index.cjs +85 -85
- package/dist/core/index.d.cts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +10 -10
- package/dist/{index-B45-okum.d.cts → index-BgPdYxFS.d.cts} +18 -18
- package/dist/{index-o-Ds3YAq.d.cts → index-CL4vb3ej.d.cts} +1 -1
- package/dist/{index-BIcvNMPt.d.ts → index-CtcXgof_.d.ts} +18 -18
- package/dist/{index-DwAJBoU7.d.ts → index-D6nvfm59.d.ts} +1 -1
- package/dist/index.cjs +265 -266
- 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 +29 -30
- 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/keys/index.cjs +18 -18
- package/dist/keys/index.js +4 -4
- package/dist/merkle-DZHEOPH3.cjs +30 -0
- package/dist/{merkle-HGDC6OB4.cjs.map → merkle-DZHEOPH3.cjs.map} +1 -1
- package/dist/merkle-IF2RMWCF.js +5 -0
- package/dist/{merkle-7KS2EHRF.js.map → merkle-IF2RMWCF.js.map} +1 -1
- package/dist/poseidon-ACM7E2OH.js +7 -0
- package/dist/{poseidon-UHTJLWQM.js.map → poseidon-ACM7E2OH.js.map} +1 -1
- package/dist/poseidon-PUSGUIVZ.cjs +61 -0
- package/dist/{poseidon-WHJSZSNP.cjs.map → poseidon-PUSGUIVZ.cjs.map} +1 -1
- package/dist/proof-JME3IZTX.js +4 -0
- package/dist/{proof-C4YBP6RY.js.map → proof-JME3IZTX.js.map} +1 -1
- package/dist/proof-XR6XE5PJ.cjs +49 -0
- package/dist/{proof-5OECB3RQ.cjs.map → proof-XR6XE5PJ.cjs.map} +1 -1
- package/dist/react/index.cjs +47 -51
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +2 -2
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.js +20 -24
- package/dist/react/index.js.map +1 -1
- package/dist/{transfer-BzyernBd.d.cts → transfer-D111ihqN.d.cts} +108 -56
- package/dist/{transfer-sqS6mJko.d.ts → transfer-DvIXqHCr.d.ts} +108 -56
- package/dist/transfer-MQMGSXTH.js +8 -0
- package/dist/{transfer-F6YOQTUL.js.map → transfer-MQMGSXTH.js.map} +1 -1
- package/dist/transfer-PB6D5VCW.cjs +37 -0
- package/dist/{transfer-42C4DXYA.cjs.map → transfer-PB6D5VCW.cjs.map} +1 -1
- package/dist/utils/index.cjs +60 -61
- package/dist/utils/index.d.cts +37 -14
- package/dist/utils/index.d.ts +37 -14
- package/dist/utils/index.js +6 -7
- package/package.json +4 -2
- package/src/contracts/interfaces/IUniversalPrivatePool.sol +10 -8
- package/src/contracts/interfaces/IVerifiers.sol +16 -52
- package/src/deployments/11155111.json +15 -12
- package/dist/asp-TXSAFFD3.cjs.map +0 -1
- package/dist/asp-ZA3RGN7G.js.map +0 -1
- package/dist/babyjubjub-2MGQVCKB.js +0 -5
- package/dist/babyjubjub-2MGQVCKB.js.map +0 -1
- package/dist/babyjubjub-MWZLJOVZ.cjs +0 -66
- package/dist/babyjubjub-MWZLJOVZ.cjs.map +0 -1
- package/dist/chunk-CWSUBAV3.js.map +0 -1
- package/dist/chunk-FVT2XRRL.cjs.map +0 -1
- package/dist/chunk-JWNXBALH.cjs +0 -57
- package/dist/chunk-JWNXBALH.cjs.map +0 -1
- package/dist/chunk-NDM5EJEV.cjs.map +0 -1
- package/dist/chunk-P37MRZ73.js.map +0 -1
- package/dist/chunk-PTDVGWHU.cjs +0 -10
- package/dist/chunk-PTDVGWHU.cjs.map +0 -1
- package/dist/chunk-S4B7GYLN.js.map +0 -1
- package/dist/chunk-SQKBT2SH.cjs.map +0 -1
- package/dist/chunk-TSF6HEVS.cjs +0 -201
- package/dist/chunk-TSF6HEVS.cjs.map +0 -1
- package/dist/chunk-UAVWYXDN.js +0 -8
- package/dist/chunk-UAVWYXDN.js.map +0 -1
- package/dist/chunk-V23OSL25.js +0 -48
- package/dist/chunk-V23OSL25.js.map +0 -1
- package/dist/chunk-YOWDERVC.js +0 -186
- package/dist/chunk-YOWDERVC.js.map +0 -1
- package/dist/merkle-7KS2EHRF.js +0 -5
- package/dist/merkle-HGDC6OB4.cjs +0 -30
- package/dist/poseidon-UHTJLWQM.js +0 -7
- package/dist/poseidon-WHJSZSNP.cjs +0 -45
- package/dist/proof-5OECB3RQ.cjs +0 -45
- package/dist/proof-C4YBP6RY.js +0 -4
- package/dist/transfer-42C4DXYA.cjs +0 -37
- package/dist/transfer-F6YOQTUL.js +0 -8
package/dist/core/index.cjs
CHANGED
|
@@ -1,306 +1,306 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
require('../chunk-
|
|
9
|
-
require('../chunk-
|
|
10
|
-
require('../chunk-
|
|
11
|
-
require('../chunk-
|
|
12
|
-
var
|
|
3
|
+
var chunkUTAJSERA_cjs = require('../chunk-UTAJSERA.cjs');
|
|
4
|
+
var chunkQ2E432UK_cjs = require('../chunk-Q2E432UK.cjs');
|
|
5
|
+
var chunkSWTNJPK5_cjs = require('../chunk-SWTNJPK5.cjs');
|
|
6
|
+
require('../chunk-IIUKM5VE.cjs');
|
|
7
|
+
require('../chunk-U3YFYMWF.cjs');
|
|
8
|
+
var chunk23B5XSS4_cjs = require('../chunk-23B5XSS4.cjs');
|
|
9
|
+
var chunkXVIICZKW_cjs = require('../chunk-XVIICZKW.cjs');
|
|
10
|
+
require('../chunk-UFEDJJSH.cjs');
|
|
11
|
+
require('../chunk-HEHXSV47.cjs');
|
|
12
|
+
var chunk2G22R7AJ_cjs = require('../chunk-2G22R7AJ.cjs');
|
|
13
13
|
require('../chunk-G7VZBCD6.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
Object.defineProperty(exports, "NOTE_VERSION", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkUTAJSERA_cjs.NOTE_VERSION; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "createNote", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkUTAJSERA_cjs.createNote; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "createUPPClient", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkUTAJSERA_cjs.createUPPClient; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "decryptNote", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkUTAJSERA_cjs.decryptNote; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "encryptNote", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkUTAJSERA_cjs.encryptNote; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "buildTransfer", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkQ2E432UK_cjs.buildTransfer; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "buildUPPTransferCircuitInputs", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkQ2E432UK_cjs.buildUPPTransferCircuitInputs; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "computeNullifier", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkQ2E432UK_cjs.computeNullifier; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "formatOutputForContract", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkQ2E432UK_cjs.formatOutputForContract; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "getMerkleProofsForNotes", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkQ2E432UK_cjs.getMerkleProofsForNotes; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "syncMerkleTree", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkQ2E432UK_cjs.syncMerkleTree; }
|
|
60
|
+
});
|
|
61
|
+
Object.defineProperty(exports, "STARK_AMOUNT_SCALE", {
|
|
62
|
+
enumerable: true,
|
|
63
|
+
get: function () { return chunkSWTNJPK5_cjs.STARK_AMOUNT_SCALE; }
|
|
60
64
|
});
|
|
61
65
|
Object.defineProperty(exports, "ADDRESS_VERSION", {
|
|
62
66
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunk23B5XSS4_cjs.ADDRESS_VERSION; }
|
|
64
68
|
});
|
|
65
69
|
Object.defineProperty(exports, "DirectAccountAdapter", {
|
|
66
70
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunk23B5XSS4_cjs.DirectAccountAdapter; }
|
|
68
72
|
});
|
|
69
73
|
Object.defineProperty(exports, "NoteStore", {
|
|
70
74
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunk23B5XSS4_cjs.NoteStore; }
|
|
72
76
|
});
|
|
73
77
|
Object.defineProperty(exports, "RATE_PRECISION", {
|
|
74
78
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunk23B5XSS4_cjs.RATE_PRECISION; }
|
|
76
80
|
});
|
|
77
81
|
Object.defineProperty(exports, "STARK_ADDRESS_VERSION", {
|
|
78
82
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunk23B5XSS4_cjs.STARK_ADDRESS_VERSION; }
|
|
80
84
|
});
|
|
81
85
|
Object.defineProperty(exports, "STARK_STEALTH_ADDRESS_PREFIX", {
|
|
82
86
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunk23B5XSS4_cjs.STARK_STEALTH_ADDRESS_PREFIX; }
|
|
84
88
|
});
|
|
85
89
|
Object.defineProperty(exports, "STEALTH_ADDRESS_PREFIX", {
|
|
86
90
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunk23B5XSS4_cjs.STEALTH_ADDRESS_PREFIX; }
|
|
88
92
|
});
|
|
89
93
|
Object.defineProperty(exports, "SWAP_EVENTS_ABI", {
|
|
90
94
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunk23B5XSS4_cjs.SWAP_EVENTS_ABI; }
|
|
92
96
|
});
|
|
93
97
|
Object.defineProperty(exports, "SWAP_ORDER_CANCELLED_EVENT", {
|
|
94
98
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunk23B5XSS4_cjs.SWAP_ORDER_CANCELLED_EVENT; }
|
|
96
100
|
});
|
|
97
101
|
Object.defineProperty(exports, "SWAP_ORDER_CLAIMED_EVENT", {
|
|
98
102
|
enumerable: true,
|
|
99
|
-
get: function () { return
|
|
103
|
+
get: function () { return chunk23B5XSS4_cjs.SWAP_ORDER_CLAIMED_EVENT; }
|
|
100
104
|
});
|
|
101
105
|
Object.defineProperty(exports, "SWAP_ORDER_FILLED_EVENT", {
|
|
102
106
|
enumerable: true,
|
|
103
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunk23B5XSS4_cjs.SWAP_ORDER_FILLED_EVENT; }
|
|
104
108
|
});
|
|
105
109
|
Object.defineProperty(exports, "SWAP_ORDER_PLACED_EVENT", {
|
|
106
110
|
enumerable: true,
|
|
107
|
-
get: function () { return
|
|
111
|
+
get: function () { return chunk23B5XSS4_cjs.SWAP_ORDER_PLACED_EVENT; }
|
|
108
112
|
});
|
|
109
113
|
Object.defineProperty(exports, "StorableAccountAdapter", {
|
|
110
114
|
enumerable: true,
|
|
111
|
-
get: function () { return
|
|
115
|
+
get: function () { return chunk23B5XSS4_cjs.StorableAccountAdapter; }
|
|
112
116
|
});
|
|
113
117
|
Object.defineProperty(exports, "computeCancelKeyHash", {
|
|
114
118
|
enumerable: true,
|
|
115
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunk23B5XSS4_cjs.computeCancelKeyHash; }
|
|
116
120
|
});
|
|
117
121
|
Object.defineProperty(exports, "computeFillPercentage", {
|
|
118
122
|
enumerable: true,
|
|
119
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunk23B5XSS4_cjs.computeFillPercentage; }
|
|
120
124
|
});
|
|
121
125
|
Object.defineProperty(exports, "computeGiveAmount", {
|
|
122
126
|
enumerable: true,
|
|
123
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunk23B5XSS4_cjs.computeGiveAmount; }
|
|
124
128
|
});
|
|
125
129
|
Object.defineProperty(exports, "computeNoteEncryptionKey", {
|
|
126
130
|
enumerable: true,
|
|
127
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunk23B5XSS4_cjs.computeNoteEncryptionKey; }
|
|
128
132
|
});
|
|
129
133
|
Object.defineProperty(exports, "computeRate", {
|
|
130
134
|
enumerable: true,
|
|
131
|
-
get: function () { return
|
|
135
|
+
get: function () { return chunk23B5XSS4_cjs.computeRate; }
|
|
132
136
|
});
|
|
133
137
|
Object.defineProperty(exports, "computeTakeAmount", {
|
|
134
138
|
enumerable: true,
|
|
135
|
-
get: function () { return
|
|
139
|
+
get: function () { return chunk23B5XSS4_cjs.computeTakeAmount; }
|
|
136
140
|
});
|
|
137
141
|
Object.defineProperty(exports, "computeTotalBuyAmount", {
|
|
138
142
|
enumerable: true,
|
|
139
|
-
get: function () { return
|
|
143
|
+
get: function () { return chunk23B5XSS4_cjs.computeTotalBuyAmount; }
|
|
140
144
|
});
|
|
141
145
|
Object.defineProperty(exports, "createOneTimeKeys", {
|
|
142
146
|
enumerable: true,
|
|
143
|
-
get: function () { return
|
|
147
|
+
get: function () { return chunk23B5XSS4_cjs.createOneTimeKeys; }
|
|
144
148
|
});
|
|
145
149
|
Object.defineProperty(exports, "decodeStarkStealthAddress", {
|
|
146
150
|
enumerable: true,
|
|
147
|
-
get: function () { return
|
|
151
|
+
get: function () { return chunk23B5XSS4_cjs.decodeStarkStealthAddress; }
|
|
148
152
|
});
|
|
149
153
|
Object.defineProperty(exports, "decodeStealthAddress", {
|
|
150
154
|
enumerable: true,
|
|
151
|
-
get: function () { return
|
|
155
|
+
get: function () { return chunk23B5XSS4_cjs.decodeStealthAddress; }
|
|
152
156
|
});
|
|
153
157
|
Object.defineProperty(exports, "detectAddressType", {
|
|
154
158
|
enumerable: true,
|
|
155
|
-
get: function () { return
|
|
159
|
+
get: function () { return chunk23B5XSS4_cjs.detectAddressType; }
|
|
156
160
|
});
|
|
157
161
|
Object.defineProperty(exports, "encodeStarkStealthAddress", {
|
|
158
162
|
enumerable: true,
|
|
159
|
-
get: function () { return
|
|
163
|
+
get: function () { return chunk23B5XSS4_cjs.encodeStarkStealthAddress; }
|
|
160
164
|
});
|
|
161
165
|
Object.defineProperty(exports, "encodeStealthAddress", {
|
|
162
166
|
enumerable: true,
|
|
163
|
-
get: function () { return
|
|
167
|
+
get: function () { return chunk23B5XSS4_cjs.encodeStealthAddress; }
|
|
164
168
|
});
|
|
165
169
|
Object.defineProperty(exports, "filterOrdersByASP", {
|
|
166
170
|
enumerable: true,
|
|
167
|
-
get: function () { return
|
|
171
|
+
get: function () { return chunk23B5XSS4_cjs.filterOrdersByASP; }
|
|
168
172
|
});
|
|
169
173
|
Object.defineProperty(exports, "filterOrdersByTokenPair", {
|
|
170
174
|
enumerable: true,
|
|
171
|
-
get: function () { return
|
|
175
|
+
get: function () { return chunk23B5XSS4_cjs.filterOrdersByTokenPair; }
|
|
172
176
|
});
|
|
173
177
|
Object.defineProperty(exports, "formatRate", {
|
|
174
178
|
enumerable: true,
|
|
175
|
-
get: function () { return
|
|
179
|
+
get: function () { return chunk23B5XSS4_cjs.formatRate; }
|
|
176
180
|
});
|
|
177
181
|
Object.defineProperty(exports, "generateCancelSecret", {
|
|
178
182
|
enumerable: true,
|
|
179
|
-
get: function () { return
|
|
183
|
+
get: function () { return chunk23B5XSS4_cjs.generateCancelSecret; }
|
|
180
184
|
});
|
|
181
185
|
Object.defineProperty(exports, "generateStarkStealthAddress", {
|
|
182
186
|
enumerable: true,
|
|
183
|
-
get: function () { return
|
|
187
|
+
get: function () { return chunk23B5XSS4_cjs.generateStarkStealthAddress; }
|
|
184
188
|
});
|
|
185
189
|
Object.defineProperty(exports, "generateStealthAddress", {
|
|
186
190
|
enumerable: true,
|
|
187
|
-
get: function () { return
|
|
191
|
+
get: function () { return chunk23B5XSS4_cjs.generateStealthAddress; }
|
|
188
192
|
});
|
|
189
193
|
Object.defineProperty(exports, "getCancelSecret", {
|
|
190
194
|
enumerable: true,
|
|
191
|
-
get: function () { return
|
|
195
|
+
get: function () { return chunk23B5XSS4_cjs.getCancelSecret; }
|
|
192
196
|
});
|
|
193
197
|
Object.defineProperty(exports, "getOwnOrderIds", {
|
|
194
198
|
enumerable: true,
|
|
195
|
-
get: function () { return
|
|
199
|
+
get: function () { return chunk23B5XSS4_cjs.getOwnOrderIds; }
|
|
196
200
|
});
|
|
197
201
|
Object.defineProperty(exports, "isFillerASPAccepted", {
|
|
198
202
|
enumerable: true,
|
|
199
|
-
get: function () { return
|
|
203
|
+
get: function () { return chunk23B5XSS4_cjs.isFillerASPAccepted; }
|
|
200
204
|
});
|
|
201
205
|
Object.defineProperty(exports, "isOrderActive", {
|
|
202
206
|
enumerable: true,
|
|
203
|
-
get: function () { return
|
|
207
|
+
get: function () { return chunk23B5XSS4_cjs.isOrderActive; }
|
|
204
208
|
});
|
|
205
209
|
Object.defineProperty(exports, "isValidStarkStealthAddress", {
|
|
206
210
|
enumerable: true,
|
|
207
|
-
get: function () { return
|
|
211
|
+
get: function () { return chunk23B5XSS4_cjs.isValidStarkStealthAddress; }
|
|
208
212
|
});
|
|
209
213
|
Object.defineProperty(exports, "isValidStealthAddress", {
|
|
210
214
|
enumerable: true,
|
|
211
|
-
get: function () { return
|
|
215
|
+
get: function () { return chunk23B5XSS4_cjs.isValidStealthAddress; }
|
|
212
216
|
});
|
|
213
217
|
Object.defineProperty(exports, "removeCancelSecret", {
|
|
214
218
|
enumerable: true,
|
|
215
|
-
get: function () { return
|
|
219
|
+
get: function () { return chunk23B5XSS4_cjs.removeCancelSecret; }
|
|
216
220
|
});
|
|
217
221
|
Object.defineProperty(exports, "storeCancelSecret", {
|
|
218
222
|
enumerable: true,
|
|
219
|
-
get: function () { return
|
|
223
|
+
get: function () { return chunk23B5XSS4_cjs.storeCancelSecret; }
|
|
220
224
|
});
|
|
221
225
|
Object.defineProperty(exports, "verifyOwnership", {
|
|
222
226
|
enumerable: true,
|
|
223
|
-
get: function () { return
|
|
227
|
+
get: function () { return chunk23B5XSS4_cjs.verifyOwnership; }
|
|
224
228
|
});
|
|
225
229
|
Object.defineProperty(exports, "DEMO_ASP_ID", {
|
|
226
230
|
enumerable: true,
|
|
227
|
-
get: function () { return
|
|
231
|
+
get: function () { return chunkXVIICZKW_cjs.DEMO_ASP_ID; }
|
|
228
232
|
});
|
|
229
233
|
Object.defineProperty(exports, "DEMO_ASP_NAME", {
|
|
230
234
|
enumerable: true,
|
|
231
|
-
get: function () { return
|
|
235
|
+
get: function () { return chunkXVIICZKW_cjs.DEMO_ASP_NAME; }
|
|
232
236
|
});
|
|
233
237
|
Object.defineProperty(exports, "buildASPTree", {
|
|
234
238
|
enumerable: true,
|
|
235
|
-
get: function () { return
|
|
239
|
+
get: function () { return chunkXVIICZKW_cjs.buildASPTree; }
|
|
236
240
|
});
|
|
237
241
|
Object.defineProperty(exports, "computeMultiOriginASPRoot", {
|
|
238
242
|
enumerable: true,
|
|
239
|
-
get: function () { return
|
|
243
|
+
get: function () { return chunkXVIICZKW_cjs.computeMultiOriginASPRoot; }
|
|
240
244
|
});
|
|
241
245
|
Object.defineProperty(exports, "computeSingleOriginASPRoot", {
|
|
242
246
|
enumerable: true,
|
|
243
|
-
get: function () { return
|
|
247
|
+
get: function () { return chunkXVIICZKW_cjs.computeSingleOriginASPRoot; }
|
|
244
248
|
});
|
|
245
249
|
Object.defineProperty(exports, "createDemoASPRoot", {
|
|
246
250
|
enumerable: true,
|
|
247
|
-
get: function () { return
|
|
251
|
+
get: function () { return chunkXVIICZKW_cjs.createDemoASPRoot; }
|
|
248
252
|
});
|
|
249
253
|
Object.defineProperty(exports, "generateASPProof", {
|
|
250
254
|
enumerable: true,
|
|
251
|
-
get: function () { return
|
|
255
|
+
get: function () { return chunkXVIICZKW_cjs.generateASPProof; }
|
|
252
256
|
});
|
|
253
257
|
Object.defineProperty(exports, "generateMultiOriginASPProof", {
|
|
254
258
|
enumerable: true,
|
|
255
|
-
get: function () { return
|
|
259
|
+
get: function () { return chunkXVIICZKW_cjs.generateMultiOriginASPProof; }
|
|
256
260
|
});
|
|
257
261
|
Object.defineProperty(exports, "generateSingleOriginASPProof", {
|
|
258
262
|
enumerable: true,
|
|
259
|
-
get: function () { return
|
|
263
|
+
get: function () { return chunkXVIICZKW_cjs.generateSingleOriginASPProof; }
|
|
260
264
|
});
|
|
261
265
|
Object.defineProperty(exports, "verifyASPProof", {
|
|
262
266
|
enumerable: true,
|
|
263
|
-
get: function () { return
|
|
264
|
-
});
|
|
265
|
-
Object.defineProperty(exports, "STARK_AMOUNT_SCALE", {
|
|
266
|
-
enumerable: true,
|
|
267
|
-
get: function () { return chunk3YZSIYJC_cjs.STARK_AMOUNT_SCALE; }
|
|
267
|
+
get: function () { return chunkXVIICZKW_cjs.verifyASPProof; }
|
|
268
268
|
});
|
|
269
269
|
Object.defineProperty(exports, "ASP_TREE_DEPTH", {
|
|
270
270
|
enumerable: true,
|
|
271
|
-
get: function () { return
|
|
271
|
+
get: function () { return chunk2G22R7AJ_cjs.ASP_TREE_DEPTH; }
|
|
272
272
|
});
|
|
273
273
|
Object.defineProperty(exports, "STATE_TREE_DEPTH", {
|
|
274
274
|
enumerable: true,
|
|
275
|
-
get: function () { return
|
|
275
|
+
get: function () { return chunk2G22R7AJ_cjs.STATE_TREE_DEPTH; }
|
|
276
276
|
});
|
|
277
277
|
Object.defineProperty(exports, "formatProofForContract", {
|
|
278
278
|
enumerable: true,
|
|
279
|
-
get: function () { return
|
|
279
|
+
get: function () { return chunk2G22R7AJ_cjs.formatProofForContract; }
|
|
280
280
|
});
|
|
281
281
|
Object.defineProperty(exports, "generateProof", {
|
|
282
282
|
enumerable: true,
|
|
283
|
-
get: function () { return
|
|
283
|
+
get: function () { return chunk2G22R7AJ_cjs.generateProof; }
|
|
284
284
|
});
|
|
285
285
|
Object.defineProperty(exports, "generateStealthProof", {
|
|
286
286
|
enumerable: true,
|
|
287
|
-
get: function () { return
|
|
287
|
+
get: function () { return chunk2G22R7AJ_cjs.generateStealthProof; }
|
|
288
288
|
});
|
|
289
289
|
Object.defineProperty(exports, "generateUPPProof", {
|
|
290
290
|
enumerable: true,
|
|
291
|
-
get: function () { return
|
|
291
|
+
get: function () { return chunk2G22R7AJ_cjs.generateUPPProof; }
|
|
292
292
|
});
|
|
293
293
|
Object.defineProperty(exports, "getStealthCircuitArtifacts", {
|
|
294
294
|
enumerable: true,
|
|
295
|
-
get: function () { return
|
|
295
|
+
get: function () { return chunk2G22R7AJ_cjs.getStealthCircuitArtifacts; }
|
|
296
296
|
});
|
|
297
297
|
Object.defineProperty(exports, "getUPPCircuitArtifacts", {
|
|
298
298
|
enumerable: true,
|
|
299
|
-
get: function () { return
|
|
299
|
+
get: function () { return chunk2G22R7AJ_cjs.getUPPCircuitArtifacts; }
|
|
300
300
|
});
|
|
301
301
|
Object.defineProperty(exports, "verifyProof", {
|
|
302
302
|
enumerable: true,
|
|
303
|
-
get: function () { return
|
|
303
|
+
get: function () { return chunk2G22R7AJ_cjs.verifyProof; }
|
|
304
304
|
});
|
|
305
305
|
//# sourceMappingURL=index.cjs.map
|
|
306
306
|
//# sourceMappingURL=index.cjs.map
|
package/dist/core/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { A as ADDRESS_VERSION, k as ASPMembershipProof, D as DirectAccountAdapter, l as IASPProvider, m as IAccountAdapter, n as INoteStore, V as NoteStatus, o as NoteStore, P as ProofSystem, p as STARK_ADDRESS_VERSION, q as STARK_STEALTH_ADDRESS_PREFIX, r as STEALTH_ADDRESS_PREFIX, s as ShieldedNote, t as StorableAccountAdapter, 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 Proof, k as ProofResult, R as RATE_PRECISION, S as STATE_TREE_DEPTH, l as SWAP_EVENTS_ABI, m as SWAP_ORDER_CANCELLED_EVENT, n as SWAP_ORDER_CLAIMED_EVENT, o as SWAP_ORDER_FILLED_EVENT, p as SWAP_ORDER_PLACED_EVENT, q as ShieldParams, r as SpendableNote, s as StarkNote, t as StarkProof, u as StarkStealthMetaAddress, v as Stealth1x2CircuitInputs, w as Stealth2x2CircuitInputs, x as StealthAddress, y as StealthCircuitInputs, z as StealthCircuitType, B as StealthMetaAddress, F as SwapFillEvent, G as SwapFillParams, H as SwapOrder, I as SwapOrderEvent, J as SwapOrderParams, T as TransferBuildResult, K as TransferContext, L as TransferParams, O as TransferStage, U as UPPCircuitInputs, Q as UPPCircuitType, V as UPPTransferCircuitInputs, W as UPPWithdrawCircuitInputs, X as WithdrawParams, Y as buildASPTree, Z as buildTransfer, _ as buildUPPTransferCircuitInputs, $ as computeCancelKeyHash, a0 as computeFillPercentage, a1 as computeGiveAmount, a2 as computeMultiOriginASPRoot, a3 as computeNullifier, a4 as computeRate, a5 as computeSingleOriginASPRoot, a6 as computeTakeAmount, a7 as computeTotalBuyAmount, a8 as createDemoASPRoot, a9 as filterOrdersByASP, aa as filterOrdersByTokenPair, ab as formatOutputForContract, ac as formatProofForContract, ad as formatRate, ae as generateASPProof, af as generateCancelSecret, ag as generateMultiOriginASPProof, ah as generateProof, ai as generateSingleOriginASPProof, aj as generateStealthProof, ak as generateUPPProof, al as getCancelSecret, am as getMerkleProofsForNotes, an as getOwnOrderIds, ao as getStealthCircuitArtifacts, ap as getUPPCircuitArtifacts, aq as isFillerASPAccepted, ar as isOrderActive, as as removeCancelSecret, at as storeCancelSecret, au as syncMerkleTree, av as verifyASPProof, aw as verifyProof } from '../transfer-
|
|
1
|
+
export { A as ADDRESS_VERSION, k as ASPMembershipProof, D as DirectAccountAdapter, l as IASPProvider, m as IAccountAdapter, n as INoteStore, V as NoteStatus, o as NoteStore, P as ProofSystem, p as STARK_ADDRESS_VERSION, q as STARK_STEALTH_ADDRESS_PREFIX, r as STEALTH_ADDRESS_PREFIX, s as ShieldedNote, t as StorableAccountAdapter, 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-CL4vb3ej.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 Proof, k as ProofResult, R as RATE_PRECISION, S as STATE_TREE_DEPTH, l as SWAP_EVENTS_ABI, m as SWAP_ORDER_CANCELLED_EVENT, n as SWAP_ORDER_CLAIMED_EVENT, o as SWAP_ORDER_FILLED_EVENT, p as SWAP_ORDER_PLACED_EVENT, q as ShieldParams, r as SpendableNote, s as StarkNote, t as StarkProof, u as StarkStealthMetaAddress, v as Stealth1x2CircuitInputs, w as Stealth2x2CircuitInputs, x as StealthAddress, y as StealthCircuitInputs, z as StealthCircuitType, B as StealthMetaAddress, F as SwapFillEvent, G as SwapFillParams, H as SwapOrder, I as SwapOrderEvent, J as SwapOrderParams, T as TransferBuildResult, K as TransferContext, L as TransferParams, O as TransferStage, U as UPPCircuitInputs, Q as UPPCircuitType, V as UPPTransferCircuitInputs, W as UPPWithdrawCircuitInputs, X as WithdrawParams, Y as buildASPTree, Z as buildTransfer, _ as buildUPPTransferCircuitInputs, $ as computeCancelKeyHash, a0 as computeFillPercentage, a1 as computeGiveAmount, a2 as computeMultiOriginASPRoot, a3 as computeNullifier, a4 as computeRate, a5 as computeSingleOriginASPRoot, a6 as computeTakeAmount, a7 as computeTotalBuyAmount, a8 as createDemoASPRoot, a9 as filterOrdersByASP, aa as filterOrdersByTokenPair, ab as formatOutputForContract, ac as formatProofForContract, ad as formatRate, ae as generateASPProof, af as generateCancelSecret, ag as generateMultiOriginASPProof, ah as generateProof, ai as generateSingleOriginASPProof, aj as generateStealthProof, ak as generateUPPProof, al as getCancelSecret, am as getMerkleProofsForNotes, an as getOwnOrderIds, ao as getStealthCircuitArtifacts, ap as getUPPCircuitArtifacts, aq as isFillerASPAccepted, ar as isOrderActive, as as removeCancelSecret, at as storeCancelSecret, au as syncMerkleTree, av as verifyASPProof, aw as verifyProof } from '../transfer-D111ihqN.cjs';
|
|
3
3
|
export { S as STARK_AMOUNT_SCALE } from '../stark-BcTD1OaJ.cjs';
|
|
4
4
|
import 'viem';
|
|
5
5
|
import '../types-CJSbxv4q.cjs';
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { A as ADDRESS_VERSION, k as ASPMembershipProof, D as DirectAccountAdapter, l as IASPProvider, m as IAccountAdapter, n as INoteStore, V as NoteStatus, o as NoteStore, P as ProofSystem, p as STARK_ADDRESS_VERSION, q as STARK_STEALTH_ADDRESS_PREFIX, r as STEALTH_ADDRESS_PREFIX, s as ShieldedNote, t as StorableAccountAdapter, 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 Proof, k as ProofResult, R as RATE_PRECISION, S as STATE_TREE_DEPTH, l as SWAP_EVENTS_ABI, m as SWAP_ORDER_CANCELLED_EVENT, n as SWAP_ORDER_CLAIMED_EVENT, o as SWAP_ORDER_FILLED_EVENT, p as SWAP_ORDER_PLACED_EVENT, q as ShieldParams, r as SpendableNote, s as StarkNote, t as StarkProof, u as StarkStealthMetaAddress, v as Stealth1x2CircuitInputs, w as Stealth2x2CircuitInputs, x as StealthAddress, y as StealthCircuitInputs, z as StealthCircuitType, B as StealthMetaAddress, F as SwapFillEvent, G as SwapFillParams, H as SwapOrder, I as SwapOrderEvent, J as SwapOrderParams, T as TransferBuildResult, K as TransferContext, L as TransferParams, O as TransferStage, U as UPPCircuitInputs, Q as UPPCircuitType, V as UPPTransferCircuitInputs, W as UPPWithdrawCircuitInputs, X as WithdrawParams, Y as buildASPTree, Z as buildTransfer, _ as buildUPPTransferCircuitInputs, $ as computeCancelKeyHash, a0 as computeFillPercentage, a1 as computeGiveAmount, a2 as computeMultiOriginASPRoot, a3 as computeNullifier, a4 as computeRate, a5 as computeSingleOriginASPRoot, a6 as computeTakeAmount, a7 as computeTotalBuyAmount, a8 as createDemoASPRoot, a9 as filterOrdersByASP, aa as filterOrdersByTokenPair, ab as formatOutputForContract, ac as formatProofForContract, ad as formatRate, ae as generateASPProof, af as generateCancelSecret, ag as generateMultiOriginASPProof, ah as generateProof, ai as generateSingleOriginASPProof, aj as generateStealthProof, ak as generateUPPProof, al as getCancelSecret, am as getMerkleProofsForNotes, an as getOwnOrderIds, ao as getStealthCircuitArtifacts, ap as getUPPCircuitArtifacts, aq as isFillerASPAccepted, ar as isOrderActive, as as removeCancelSecret, at as storeCancelSecret, au as syncMerkleTree, av as verifyASPProof, aw as verifyProof } from '../transfer-
|
|
1
|
+
export { A as ADDRESS_VERSION, k as ASPMembershipProof, D as DirectAccountAdapter, l as IASPProvider, m as IAccountAdapter, n as INoteStore, V as NoteStatus, o as NoteStore, P as ProofSystem, p as STARK_ADDRESS_VERSION, q as STARK_STEALTH_ADDRESS_PREFIX, r as STEALTH_ADDRESS_PREFIX, s as ShieldedNote, t as StorableAccountAdapter, 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-D6nvfm59.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 Proof, k as ProofResult, R as RATE_PRECISION, S as STATE_TREE_DEPTH, l as SWAP_EVENTS_ABI, m as SWAP_ORDER_CANCELLED_EVENT, n as SWAP_ORDER_CLAIMED_EVENT, o as SWAP_ORDER_FILLED_EVENT, p as SWAP_ORDER_PLACED_EVENT, q as ShieldParams, r as SpendableNote, s as StarkNote, t as StarkProof, u as StarkStealthMetaAddress, v as Stealth1x2CircuitInputs, w as Stealth2x2CircuitInputs, x as StealthAddress, y as StealthCircuitInputs, z as StealthCircuitType, B as StealthMetaAddress, F as SwapFillEvent, G as SwapFillParams, H as SwapOrder, I as SwapOrderEvent, J as SwapOrderParams, T as TransferBuildResult, K as TransferContext, L as TransferParams, O as TransferStage, U as UPPCircuitInputs, Q as UPPCircuitType, V as UPPTransferCircuitInputs, W as UPPWithdrawCircuitInputs, X as WithdrawParams, Y as buildASPTree, Z as buildTransfer, _ as buildUPPTransferCircuitInputs, $ as computeCancelKeyHash, a0 as computeFillPercentage, a1 as computeGiveAmount, a2 as computeMultiOriginASPRoot, a3 as computeNullifier, a4 as computeRate, a5 as computeSingleOriginASPRoot, a6 as computeTakeAmount, a7 as computeTotalBuyAmount, a8 as createDemoASPRoot, a9 as filterOrdersByASP, aa as filterOrdersByTokenPair, ab as formatOutputForContract, ac as formatProofForContract, ad as formatRate, ae as generateASPProof, af as generateCancelSecret, ag as generateMultiOriginASPProof, ah as generateProof, ai as generateSingleOriginASPProof, aj as generateStealthProof, ak as generateUPPProof, al as getCancelSecret, am as getMerkleProofsForNotes, an as getOwnOrderIds, ao as getStealthCircuitArtifacts, ap as getUPPCircuitArtifacts, aq as isFillerASPAccepted, ar as isOrderActive, as as removeCancelSecret, at as storeCancelSecret, au as syncMerkleTree, av as verifyASPProof, aw as verifyProof } from '../transfer-DvIXqHCr.js';
|
|
3
3
|
export { S as STARK_AMOUNT_SCALE } from '../stark-BcTD1OaJ.js';
|
|
4
4
|
import 'viem';
|
|
5
5
|
import '../types-mLybMxNR.js';
|
package/dist/core/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { NOTE_VERSION, createNote, createUPPClient, decryptNote, encryptNote } from '../chunk-
|
|
2
|
-
export { buildTransfer, buildUPPTransferCircuitInputs, computeNullifier, formatOutputForContract, getMerkleProofsForNotes, syncMerkleTree } from '../chunk-
|
|
3
|
-
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import '../chunk-
|
|
10
|
-
export { ASP_TREE_DEPTH, STATE_TREE_DEPTH, formatProofForContract, generateProof, generateStealthProof, generateUPPProof, getStealthCircuitArtifacts, getUPPCircuitArtifacts, verifyProof } from '../chunk-
|
|
1
|
+
export { NOTE_VERSION, createNote, createUPPClient, decryptNote, encryptNote } from '../chunk-CEJN5ZE5.js';
|
|
2
|
+
export { buildTransfer, buildUPPTransferCircuitInputs, computeNullifier, formatOutputForContract, getMerkleProofsForNotes, syncMerkleTree } from '../chunk-OBBSIPEK.js';
|
|
3
|
+
export { STARK_AMOUNT_SCALE } from '../chunk-7T4CUE6E.js';
|
|
4
|
+
import '../chunk-GPF72JFR.js';
|
|
5
|
+
import '../chunk-6TFDBBAQ.js';
|
|
6
|
+
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';
|
|
7
|
+
export { DEMO_ASP_ID, DEMO_ASP_NAME, buildASPTree, computeMultiOriginASPRoot, computeSingleOriginASPRoot, createDemoASPRoot, generateASPProof, generateMultiOriginASPProof, generateSingleOriginASPProof, verifyASPProof } from '../chunk-6IEYWJVS.js';
|
|
8
|
+
import '../chunk-UQIM2KT3.js';
|
|
9
|
+
import '../chunk-5QSSX3KR.js';
|
|
10
|
+
export { ASP_TREE_DEPTH, STATE_TREE_DEPTH, formatProofForContract, generateProof, generateStealthProof, generateUPPProof, getStealthCircuitArtifacts, getUPPCircuitArtifacts, verifyProof } from '../chunk-W3HLIKC2.js';
|
|
11
11
|
import '../chunk-Z6ZWNWWR.js';
|
|
12
12
|
//# sourceMappingURL=index.js.map
|
|
13
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RpcIndexerConfig, I as Indexer, A as ADDRESS_VERSION, k as ASPMembershipProof, D as DirectAccountAdapter, l as IASPProvider, m as IAccountAdapter, n as INoteStore, a as IndexedNote, N as NoteStatus, o as NoteStore, P as ProofSystem, 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
|
-
import { 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 Proof, k as ProofResult, R as RATE_PRECISION, S as STATE_TREE_DEPTH, l as SWAP_EVENTS_ABI, m as SWAP_ORDER_CANCELLED_EVENT, n as SWAP_ORDER_CLAIMED_EVENT, o as SWAP_ORDER_FILLED_EVENT, p as SWAP_ORDER_PLACED_EVENT, q as ShieldParams, r as SpendableNote, s as StarkNote, t as StarkProof, u as StarkStealthMetaAddress, v as Stealth1x2CircuitInputs, w as Stealth2x2CircuitInputs, x as StealthAddress, y as StealthCircuitInputs, z as StealthCircuitType, B as StealthMetaAddress, F as SwapFillEvent, G as SwapFillParams, H as SwapOrder, I as SwapOrderEvent, J as SwapOrderParams, T as TransferBuildResult, K as TransferContext, L as TransferParams, O as TransferStage, U as UPPCircuitInputs, Q as UPPCircuitType, V as UPPTransferCircuitInputs, W as UPPWithdrawCircuitInputs, X as WithdrawParams, Y as buildASPTree, Z as buildTransfer, _ as buildUPPTransferCircuitInputs, $ as computeCancelKeyHash, a0 as computeFillPercentage, a1 as computeGiveAmount, a2 as computeMultiOriginASPRoot, a3 as computeNullifier, a4 as computeRate, a5 as computeSingleOriginASPRoot, a6 as computeTakeAmount, a7 as computeTotalBuyAmount, a8 as createDemoASPRoot, a9 as filterOrdersByASP, aa as filterOrdersByTokenPair, ab as formatOutputForContract, ac as formatProofForContract, ad as formatRate, ae as generateASPProof, af as generateCancelSecret, ag as generateMultiOriginASPProof, ah as generateProof, ai as generateSingleOriginASPProof, aj as generateStealthProof, ak as generateUPPProof, al as getCancelSecret, am as getMerkleProofsForNotes, an as getOwnOrderIds, ao as getStealthCircuitArtifacts, ap as getUPPCircuitArtifacts, aq as isFillerASPAccepted, ar as isOrderActive, as as removeCancelSecret, at as storeCancelSecret, au as syncMerkleTree, av as verifyASPProof, aw as verifyProof } from './transfer-
|
|
1
|
+
import { R as RpcIndexerConfig, I as Indexer, A as ADDRESS_VERSION, k as ASPMembershipProof, D as DirectAccountAdapter, l as IASPProvider, m as IAccountAdapter, n as INoteStore, a as IndexedNote, N as NoteStatus, o as NoteStore, P as ProofSystem, 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-CL4vb3ej.cjs';
|
|
2
|
+
import { 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 Proof, k as ProofResult, R as RATE_PRECISION, S as STATE_TREE_DEPTH, l as SWAP_EVENTS_ABI, m as SWAP_ORDER_CANCELLED_EVENT, n as SWAP_ORDER_CLAIMED_EVENT, o as SWAP_ORDER_FILLED_EVENT, p as SWAP_ORDER_PLACED_EVENT, q as ShieldParams, r as SpendableNote, s as StarkNote, t as StarkProof, u as StarkStealthMetaAddress, v as Stealth1x2CircuitInputs, w as Stealth2x2CircuitInputs, x as StealthAddress, y as StealthCircuitInputs, z as StealthCircuitType, B as StealthMetaAddress, F as SwapFillEvent, G as SwapFillParams, H as SwapOrder, I as SwapOrderEvent, J as SwapOrderParams, T as TransferBuildResult, K as TransferContext, L as TransferParams, O as TransferStage, U as UPPCircuitInputs, Q as UPPCircuitType, V as UPPTransferCircuitInputs, W as UPPWithdrawCircuitInputs, X as WithdrawParams, Y as buildASPTree, Z as buildTransfer, _ as buildUPPTransferCircuitInputs, $ as computeCancelKeyHash, a0 as computeFillPercentage, a1 as computeGiveAmount, a2 as computeMultiOriginASPRoot, a3 as computeNullifier, a4 as computeRate, a5 as computeSingleOriginASPRoot, a6 as computeTakeAmount, a7 as computeTotalBuyAmount, a8 as createDemoASPRoot, a9 as filterOrdersByASP, aa as filterOrdersByTokenPair, ab as formatOutputForContract, ac as formatProofForContract, ad as formatRate, ae as generateASPProof, af as generateCancelSecret, ag as generateMultiOriginASPProof, ah as generateProof, ai as generateSingleOriginASPProof, aj as generateStealthProof, ak as generateUPPProof, al as getCancelSecret, am as getMerkleProofsForNotes, an as getOwnOrderIds, ao as getStealthCircuitArtifacts, ap as getUPPCircuitArtifacts, aq as isFillerASPAccepted, ar as isOrderActive, as as removeCancelSecret, at as storeCancelSecret, au as syncMerkleTree, av as verifyASPProof, aw as verifyProof } from './transfer-D111ihqN.cjs';
|
|
3
3
|
import { 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
|
import { NoteReference, deriveDualKeysFromSignature, deriveKeysFromSignature, deriveNullifierKey, derivePerNoteKey, derivePerNoteKeyFromKeys, deriveStarkKeysFromSignature, deriveStarkPerNoteKey, deriveStarkPerNoteKeyFromKeys, exportViewingKeysForAudit, getKeyDerivationMessage, getViewingKeyFromExport, validateAuditKeyExport, verifyKeysMatchSignature } from './keys/index.cjs';
|
|
5
5
|
import { BABYJUBJUB_SUBORDER, FIELD_PRIME, addressToField, bigintToBytes, bytesToBigint, bytesToHex, fieldToAddress, hexToBytes, isValidFieldElement, poseidon, poseidonHash, poseidonScalar, randomBytes, randomFieldElement, toFieldElement } from './utils/index.cjs';
|
|
@@ -261,8 +261,8 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
|
|
|
261
261
|
readonly name: "joinSplit";
|
|
262
262
|
readonly inputs: readonly [{
|
|
263
263
|
readonly name: "proof";
|
|
264
|
-
readonly type: "
|
|
265
|
-
readonly internalType: "
|
|
264
|
+
readonly type: "bytes";
|
|
265
|
+
readonly internalType: "bytes";
|
|
266
266
|
}, {
|
|
267
267
|
readonly name: "nullifiers";
|
|
268
268
|
readonly type: "bytes32[4]";
|
|
@@ -317,8 +317,8 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
|
|
|
317
317
|
readonly name: "merge";
|
|
318
318
|
readonly inputs: readonly [{
|
|
319
319
|
readonly name: "proof";
|
|
320
|
-
readonly type: "
|
|
321
|
-
readonly internalType: "
|
|
320
|
+
readonly type: "bytes";
|
|
321
|
+
readonly internalType: "bytes";
|
|
322
322
|
}, {
|
|
323
323
|
readonly name: "nullifier1";
|
|
324
324
|
readonly type: "bytes32";
|
|
@@ -385,8 +385,8 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
|
|
|
385
385
|
readonly name: "mergeTransfer2x2";
|
|
386
386
|
readonly inputs: readonly [{
|
|
387
387
|
readonly name: "proof";
|
|
388
|
-
readonly type: "
|
|
389
|
-
readonly internalType: "
|
|
388
|
+
readonly type: "bytes";
|
|
389
|
+
readonly internalType: "bytes";
|
|
390
390
|
}, {
|
|
391
391
|
readonly name: "nullifier1";
|
|
392
392
|
readonly type: "bytes32";
|
|
@@ -437,8 +437,8 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
|
|
|
437
437
|
readonly name: "mergeTransfer4x2";
|
|
438
438
|
readonly inputs: readonly [{
|
|
439
439
|
readonly name: "proof";
|
|
440
|
-
readonly type: "
|
|
441
|
-
readonly internalType: "
|
|
440
|
+
readonly type: "bytes";
|
|
441
|
+
readonly internalType: "bytes";
|
|
442
442
|
}, {
|
|
443
443
|
readonly name: "nullifiers";
|
|
444
444
|
readonly type: "bytes32[4]";
|
|
@@ -795,8 +795,8 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
|
|
|
795
795
|
readonly internalType: "bytes32";
|
|
796
796
|
}, {
|
|
797
797
|
readonly name: "proof";
|
|
798
|
-
readonly type: "
|
|
799
|
-
readonly internalType: "
|
|
798
|
+
readonly type: "bytes";
|
|
799
|
+
readonly internalType: "bytes";
|
|
800
800
|
}, {
|
|
801
801
|
readonly name: "nullifier";
|
|
802
802
|
readonly type: "bytes32";
|
|
@@ -833,8 +833,8 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
|
|
|
833
833
|
readonly name: "swapOrder";
|
|
834
834
|
readonly inputs: readonly [{
|
|
835
835
|
readonly name: "proof";
|
|
836
|
-
readonly type: "
|
|
837
|
-
readonly internalType: "
|
|
836
|
+
readonly type: "bytes";
|
|
837
|
+
readonly internalType: "bytes";
|
|
838
838
|
}, {
|
|
839
839
|
readonly name: "nullifier";
|
|
840
840
|
readonly type: "bytes32";
|
|
@@ -945,8 +945,8 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
|
|
|
945
945
|
readonly name: "transfer";
|
|
946
946
|
readonly inputs: readonly [{
|
|
947
947
|
readonly name: "proof";
|
|
948
|
-
readonly type: "
|
|
949
|
-
readonly internalType: "
|
|
948
|
+
readonly type: "bytes";
|
|
949
|
+
readonly internalType: "bytes";
|
|
950
950
|
}, {
|
|
951
951
|
readonly name: "nullifier";
|
|
952
952
|
readonly type: "bytes32";
|
|
@@ -1039,8 +1039,8 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
|
|
|
1039
1039
|
readonly name: "withdraw";
|
|
1040
1040
|
readonly inputs: readonly [{
|
|
1041
1041
|
readonly name: "proof";
|
|
1042
|
-
readonly type: "
|
|
1043
|
-
readonly internalType: "
|
|
1042
|
+
readonly type: "bytes";
|
|
1043
|
+
readonly internalType: "bytes";
|
|
1044
1044
|
}, {
|
|
1045
1045
|
readonly name: "nullifier";
|
|
1046
1046
|
readonly type: "bytes32";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PublicClient, WalletClient, Address, Hex } from 'viem';
|
|
2
|
-
import { q as ShieldParams, h as Note, L as TransferParams, M as MergeParams, X as WithdrawParams, E as EncryptedNote } from './transfer-
|
|
2
|
+
import { q as ShieldParams, h as Note, L as TransferParams, M as MergeParams, X as WithdrawParams, E as EncryptedNote } from './transfer-D111ihqN.cjs';
|
|
3
3
|
import { M as MasterKeys, O as OneTimeKeys, b as StarkMasterKeys } from './types-CJSbxv4q.cjs';
|
|
4
4
|
import { a as M31Digest } from './keccak-m31-B_AqBbRF.cjs';
|
|
5
5
|
import { P as Point } from './merkle-mteVOlDf.cjs';
|