create-fhevm-example 1.2.3 → 1.3.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/README.md +74 -148
- package/dist/scripts/add-mode.d.ts +8 -0
- package/dist/scripts/add-mode.d.ts.map +1 -0
- package/dist/{add-mode.js → scripts/add-mode.js} +81 -58
- package/dist/scripts/builders.d.ts +20 -0
- package/dist/scripts/builders.d.ts.map +1 -0
- package/dist/scripts/builders.js +160 -0
- package/dist/{config.d.ts → scripts/config.d.ts} +24 -3
- package/dist/scripts/config.d.ts.map +1 -0
- package/dist/scripts/config.js +465 -0
- package/dist/scripts/doctor.d.ts +3 -0
- package/dist/scripts/doctor.d.ts.map +1 -0
- package/dist/scripts/doctor.js +157 -0
- package/dist/scripts/generate-config.d.ts +9 -0
- package/dist/scripts/generate-config.d.ts.map +1 -0
- package/dist/scripts/generate-config.js +315 -0
- package/dist/scripts/generate-docs.d.ts +9 -0
- package/dist/scripts/generate-docs.d.ts.map +1 -0
- package/dist/scripts/generate-docs.js +189 -0
- package/dist/scripts/index.d.ts +12 -0
- package/dist/scripts/index.d.ts.map +1 -0
- package/dist/scripts/index.js +360 -0
- package/dist/scripts/maintenance.d.ts +12 -0
- package/dist/scripts/maintenance.d.ts.map +1 -0
- package/dist/scripts/maintenance.js +320 -0
- package/dist/{ui.d.ts → scripts/ui.d.ts} +0 -1
- package/dist/scripts/ui.d.ts.map +1 -0
- package/dist/scripts/ui.js +197 -0
- package/dist/scripts/utils.d.ts +79 -0
- package/dist/scripts/utils.d.ts.map +1 -0
- package/dist/scripts/utils.js +504 -0
- package/package.json +24 -13
- package/dist/add-mode.d.ts +0 -21
- package/dist/add-mode.d.ts.map +0 -1
- package/dist/add-mode.js.map +0 -1
- package/dist/builders.d.ts +0 -30
- package/dist/builders.d.ts.map +0 -1
- package/dist/builders.js +0 -195
- package/dist/builders.js.map +0 -1
- package/dist/commands.d.ts +0 -19
- package/dist/commands.d.ts.map +0 -1
- package/dist/commands.js +0 -91
- package/dist/commands.js.map +0 -1
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js +0 -398
- package/dist/config.js.map +0 -1
- package/dist/constants.d.ts +0 -16
- package/dist/constants.d.ts.map +0 -1
- package/dist/constants.js +0 -40
- package/dist/constants.js.map +0 -1
- package/dist/index.d.ts +0 -20
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -337
- package/dist/index.js.map +0 -1
- package/dist/prompts.d.ts +0 -26
- package/dist/prompts.d.ts.map +0 -1
- package/dist/prompts.js +0 -79
- package/dist/prompts.js.map +0 -1
- package/dist/ui.d.ts.map +0 -1
- package/dist/ui.js +0 -155
- package/dist/ui.js.map +0 -1
- package/dist/utils.d.ts +0 -99
- package/dist/utils.d.ts.map +0 -1
- package/dist/utils.js +0 -285
- package/dist/utils.js.map +0 -1
package/dist/config.js
DELETED
|
@@ -1,398 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ⚠️ AUTO-GENERATED FILE - DO NOT EDIT MANUALLY ⚠️
|
|
3
|
-
*
|
|
4
|
-
* This file is auto-generated by scripts/update-config.ts
|
|
5
|
-
* Run 'npm run update:config' to regenerate
|
|
6
|
-
*/
|
|
7
|
-
// =============================================================================
|
|
8
|
-
// GitHub Repository Configuration
|
|
9
|
-
// =============================================================================
|
|
10
|
-
export const REPO_URL = "https://github.com/NecipAkgz/fhevm-example-factory";
|
|
11
|
-
export const REPO_BRANCH = "main";
|
|
12
|
-
export const TEMPLATE_SUBMODULE_PATH = "fhevm-hardhat-template";
|
|
13
|
-
// =============================================================================
|
|
14
|
-
// Example Configurations
|
|
15
|
-
// =============================================================================
|
|
16
|
-
export const EXAMPLES = {
|
|
17
|
-
"blind-auction": {
|
|
18
|
-
"contract": "contracts/advanced/BlindAuction.sol",
|
|
19
|
-
"test": "test/advanced/BlindAuction.ts",
|
|
20
|
-
"description": "Blind Auction with encrypted bids - only the winning price is revealed",
|
|
21
|
-
"category": "Advanced",
|
|
22
|
-
"title": "Blind Auction"
|
|
23
|
-
},
|
|
24
|
-
"encrypted-escrow": {
|
|
25
|
-
"contract": "contracts/advanced/EncryptedEscrow.sol",
|
|
26
|
-
"test": "test/advanced/EncryptedEscrow.ts",
|
|
27
|
-
"description": "Encrypted Escrow service - amounts hidden until release!",
|
|
28
|
-
"category": "Advanced",
|
|
29
|
-
"title": "Encrypted Escrow"
|
|
30
|
-
},
|
|
31
|
-
"hidden-voting": {
|
|
32
|
-
"contract": "contracts/advanced/HiddenVoting.sol",
|
|
33
|
-
"test": "test/advanced/HiddenVoting.ts",
|
|
34
|
-
"description": "Hidden Voting with encrypted ballots and homomorphic tallying",
|
|
35
|
-
"category": "Advanced",
|
|
36
|
-
"title": "Hidden Voting"
|
|
37
|
-
},
|
|
38
|
-
"private-kyc": {
|
|
39
|
-
"contract": "contracts/advanced/PrivateKYC.sol",
|
|
40
|
-
"test": "test/advanced/PrivateKYC.ts",
|
|
41
|
-
"description": "Private KYC - verify identity without revealing personal data!",
|
|
42
|
-
"category": "Advanced",
|
|
43
|
-
"title": "Private KYC"
|
|
44
|
-
},
|
|
45
|
-
"private-payroll": {
|
|
46
|
-
"contract": "contracts/advanced/PrivatePayroll.sol",
|
|
47
|
-
"test": "test/advanced/PrivatePayroll.ts",
|
|
48
|
-
"description": "Private Payroll system - salaries stay encrypted, only employees see their own!",
|
|
49
|
-
"category": "Advanced",
|
|
50
|
-
"title": "Private Payroll"
|
|
51
|
-
},
|
|
52
|
-
"public-decrypt-multiple-values": {
|
|
53
|
-
"contract": "contracts/basic/decryption/PublicDecryptMultipleValues.sol",
|
|
54
|
-
"test": "test/basic/decryption/PublicDecryptMultipleValues.ts",
|
|
55
|
-
"description": "Implements a simple 8-sided Die Roll game demonstrating public, permissionless decryption",
|
|
56
|
-
"category": "Basic - Decryption",
|
|
57
|
-
"title": "Public Decrypt Multiple Values"
|
|
58
|
-
},
|
|
59
|
-
"public-decrypt-single-value": {
|
|
60
|
-
"contract": "contracts/basic/decryption/PublicDecryptSingleValue.sol",
|
|
61
|
-
"test": "test/basic/decryption/PublicDecryptSingleValue.ts",
|
|
62
|
-
"description": "Implements a simple Heads or Tails game demonstrating public, permissionless decryption",
|
|
63
|
-
"category": "Basic - Decryption",
|
|
64
|
-
"title": "Public Decrypt Single Value"
|
|
65
|
-
},
|
|
66
|
-
"user-decrypt-multiple-values": {
|
|
67
|
-
"contract": "contracts/basic/decryption/UserDecryptMultipleValues.sol",
|
|
68
|
-
"test": "test/basic/decryption/UserDecryptMultipleValues.ts",
|
|
69
|
-
"description": "Demonstrates user decryption of multiple encrypted values",
|
|
70
|
-
"category": "Basic - Decryption",
|
|
71
|
-
"title": "User Decrypt Multiple Values"
|
|
72
|
-
},
|
|
73
|
-
"user-decrypt-single-value": {
|
|
74
|
-
"contract": "contracts/basic/decryption/UserDecryptSingleValue.sol",
|
|
75
|
-
"test": "test/basic/decryption/UserDecryptSingleValue.ts",
|
|
76
|
-
"description": "Demonstrates the FHE decryption mechanism and highlights common pitfalls",
|
|
77
|
-
"category": "Basic - Decryption",
|
|
78
|
-
"title": "User Decrypt Single Value"
|
|
79
|
-
},
|
|
80
|
-
"encrypt-multiple-values": {
|
|
81
|
-
"contract": "contracts/basic/encryption/EncryptMultipleValues.sol",
|
|
82
|
-
"test": "test/basic/encryption/EncryptMultipleValues.ts",
|
|
83
|
-
"description": "Encrypting and handling multiple values in a single transaction efficiently.",
|
|
84
|
-
"category": "Basic - Encryption",
|
|
85
|
-
"title": "Encrypt Multiple Values"
|
|
86
|
-
},
|
|
87
|
-
"encrypt-single-value": {
|
|
88
|
-
"contract": "contracts/basic/encryption/EncryptSingleValue.sol",
|
|
89
|
-
"test": "test/basic/encryption/EncryptSingleValue.ts",
|
|
90
|
-
"description": "FHE encryption mechanism with single values, including common pitfalls and best practices for developers.",
|
|
91
|
-
"category": "Basic - Encryption",
|
|
92
|
-
"title": "Encrypt Single Value"
|
|
93
|
-
},
|
|
94
|
-
"fhe-counter": {
|
|
95
|
-
"contract": "contracts/basic/encryption/FHECounter.sol",
|
|
96
|
-
"test": "test/basic/encryption/FHECounter.ts",
|
|
97
|
-
"description": "Confidential counter implementation using FHEVM, compared with a standard counter to highlight encryption benefits.",
|
|
98
|
-
"category": "Basic - Encryption",
|
|
99
|
-
"title": "FHE Counter"
|
|
100
|
-
},
|
|
101
|
-
"fhe-add": {
|
|
102
|
-
"contract": "contracts/basic/fhe-operations/FHEAdd.sol",
|
|
103
|
-
"test": "test/basic/fhe-operations/FHEAdd.ts",
|
|
104
|
-
"description": "Simple example: adding two encrypted values (a + b)",
|
|
105
|
-
"category": "Basic - FHE Operations",
|
|
106
|
-
"title": "FHE Add"
|
|
107
|
-
},
|
|
108
|
-
"fhe-arithmetic": {
|
|
109
|
-
"contract": "contracts/basic/fhe-operations/FHEArithmetic.sol",
|
|
110
|
-
"test": "test/basic/fhe-operations/FHEArithmetic.ts",
|
|
111
|
-
"description": "Demonstrates all FHE arithmetic operations on encrypted integers",
|
|
112
|
-
"category": "Basic - FHE Operations",
|
|
113
|
-
"title": "FHE Arithmetic"
|
|
114
|
-
},
|
|
115
|
-
"fhe-comparison": {
|
|
116
|
-
"contract": "contracts/basic/fhe-operations/FHEComparison.sol",
|
|
117
|
-
"test": "test/basic/fhe-operations/FHEComparison.ts",
|
|
118
|
-
"description": "Demonstrates all FHE comparison operations on encrypted integers",
|
|
119
|
-
"category": "Basic - FHE Operations",
|
|
120
|
-
"title": "FHE Comparison"
|
|
121
|
-
},
|
|
122
|
-
"fhe-if-then-else": {
|
|
123
|
-
"contract": "contracts/basic/fhe-operations/FHEIfThenElse.sol",
|
|
124
|
-
"test": "test/basic/fhe-operations/FHEIfThenElse.ts",
|
|
125
|
-
"description": "Demonstrates conditional logic: max(a, b) using encrypted comparison",
|
|
126
|
-
"category": "Basic - FHE Operations",
|
|
127
|
-
"title": "FHE If Then Else"
|
|
128
|
-
},
|
|
129
|
-
"fhe-access-control": {
|
|
130
|
-
"contract": "contracts/concepts/FHEAccessControl.sol",
|
|
131
|
-
"test": "test/concepts/FHEAccessControl.ts",
|
|
132
|
-
"description": "Critical access control patterns in FHEVM: FHE.allow, FHE.allowThis, FHE.allowTransient. Includes common mistakes and correct implementations.",
|
|
133
|
-
"category": "Concepts",
|
|
134
|
-
"title": "FHE Access Control"
|
|
135
|
-
},
|
|
136
|
-
"fhe-anti-patterns": {
|
|
137
|
-
"contract": "contracts/concepts/FHEAntiPatterns.sol",
|
|
138
|
-
"test": "test/concepts/FHEAntiPatterns.ts",
|
|
139
|
-
"description": "Common FHE mistakes and their correct alternatives. Covers: branching, permissions, require/revert, re-encryption, loops, noise, and deprecated APIs.",
|
|
140
|
-
"category": "Concepts",
|
|
141
|
-
"title": "FHE Anti Patterns"
|
|
142
|
-
},
|
|
143
|
-
"fhe-handles": {
|
|
144
|
-
"contract": "contracts/concepts/FHEHandles.sol",
|
|
145
|
-
"test": "test/concepts/FHEHandles.ts",
|
|
146
|
-
"description": "Understanding FHE handles: creation, computation, immutability, and symbolic execution in mock mode.",
|
|
147
|
-
"category": "Concepts",
|
|
148
|
-
"title": "FHE Handles"
|
|
149
|
-
},
|
|
150
|
-
"fhe-input-proof": {
|
|
151
|
-
"contract": "contracts/concepts/FHEInputProof.sol",
|
|
152
|
-
"test": "test/concepts/FHEInputProof.ts",
|
|
153
|
-
"description": "Explains input proof validation in FHEVM: what proofs are, why they are needed, and how to use them correctly with single and batched inputs.",
|
|
154
|
-
"category": "Concepts",
|
|
155
|
-
"title": "FHE Input Proof"
|
|
156
|
-
},
|
|
157
|
-
"encrypted-lottery": {
|
|
158
|
-
"contract": "contracts/gaming/EncryptedLottery.sol",
|
|
159
|
-
"test": "test/gaming/EncryptedLottery.ts",
|
|
160
|
-
"description": "Encrypted Lottery with private ticket numbers - fair and verifiable!",
|
|
161
|
-
"category": "Gaming",
|
|
162
|
-
"title": "Encrypted Lottery"
|
|
163
|
-
},
|
|
164
|
-
"encrypted-poker": {
|
|
165
|
-
"contract": "contracts/gaming/EncryptedPoker.sol",
|
|
166
|
-
"test": "test/gaming/EncryptedPoker.ts",
|
|
167
|
-
"description": "Encrypted Poker - Texas Hold'em with hidden hole cards!",
|
|
168
|
-
"category": "Gaming",
|
|
169
|
-
"title": "Encrypted Poker"
|
|
170
|
-
},
|
|
171
|
-
"rock-paper-scissors": {
|
|
172
|
-
"contract": "contracts/gaming/RockPaperScissors.sol",
|
|
173
|
-
"test": "test/gaming/RockPaperScissors.ts",
|
|
174
|
-
"description": "Rock-Paper-Scissors game with encrypted moves - fair play guaranteed!",
|
|
175
|
-
"category": "Gaming",
|
|
176
|
-
"title": "Rock Paper Scissors"
|
|
177
|
-
},
|
|
178
|
-
"erc7984": {
|
|
179
|
-
"contract": "contracts/openzeppelin/ERC7984.sol",
|
|
180
|
-
"test": "test/openzeppelin/ERC7984.ts",
|
|
181
|
-
"npmDependencies": {
|
|
182
|
-
"@openzeppelin/contracts": "^5.4.0",
|
|
183
|
-
"@openzeppelin/confidential-contracts": "^0.3.0"
|
|
184
|
-
},
|
|
185
|
-
"description": "Confidential token using OpenZeppelin's ERC7984 standard",
|
|
186
|
-
"category": "Openzeppelin",
|
|
187
|
-
"title": "ERC7984"
|
|
188
|
-
},
|
|
189
|
-
"erc7984-erc20-wrapper": {
|
|
190
|
-
"contract": "contracts/openzeppelin/ERC7984ERC20Wrapper.sol",
|
|
191
|
-
"test": "test/openzeppelin/ERC7984ERC20Wrapper.ts",
|
|
192
|
-
"npmDependencies": {
|
|
193
|
-
"@openzeppelin/contracts": "^5.4.0",
|
|
194
|
-
"@openzeppelin/confidential-contracts": "^0.3.0"
|
|
195
|
-
},
|
|
196
|
-
"dependencies": [
|
|
197
|
-
"contracts/openzeppelin/mocks/ERC20Mock.sol"
|
|
198
|
-
],
|
|
199
|
-
"description": "Wraps ERC20 tokens into confidential ERC7984 tokens",
|
|
200
|
-
"category": "Openzeppelin",
|
|
201
|
-
"title": "ERC7984 ERC20 Wrapper"
|
|
202
|
-
},
|
|
203
|
-
"swap-erc7984-to-erc20": {
|
|
204
|
-
"contract": "contracts/openzeppelin/SwapERC7984ToERC20.sol",
|
|
205
|
-
"test": "test/openzeppelin/SwapERC7984ToERC20.ts",
|
|
206
|
-
"npmDependencies": {
|
|
207
|
-
"@openzeppelin/contracts": "^5.4.0",
|
|
208
|
-
"@openzeppelin/confidential-contracts": "^0.3.0"
|
|
209
|
-
},
|
|
210
|
-
"dependencies": [
|
|
211
|
-
"contracts/openzeppelin/mocks/ERC20Mock.sol",
|
|
212
|
-
"contracts/openzeppelin/ERC7984.sol"
|
|
213
|
-
],
|
|
214
|
-
"description": "Swap confidential ERC7984 tokens to regular ERC20 tokens",
|
|
215
|
-
"category": "Openzeppelin",
|
|
216
|
-
"title": "Swap ERC7984 To ERC20"
|
|
217
|
-
},
|
|
218
|
-
"swap-erc7984-to-erc7984": {
|
|
219
|
-
"contract": "contracts/openzeppelin/SwapERC7984ToERC7984.sol",
|
|
220
|
-
"test": "test/openzeppelin/SwapERC7984ToERC7984.ts",
|
|
221
|
-
"npmDependencies": {
|
|
222
|
-
"@openzeppelin/confidential-contracts": "^0.3.0"
|
|
223
|
-
},
|
|
224
|
-
"dependencies": [
|
|
225
|
-
"contracts/openzeppelin/ERC7984.sol"
|
|
226
|
-
],
|
|
227
|
-
"description": "Fully confidential swap between two ERC7984 tokens",
|
|
228
|
-
"category": "Openzeppelin",
|
|
229
|
-
"title": "Swap ERC7984 To ERC7984"
|
|
230
|
-
},
|
|
231
|
-
"vesting-wallet": {
|
|
232
|
-
"contract": "contracts/openzeppelin/VestingWallet.sol",
|
|
233
|
-
"test": "test/openzeppelin/VestingWallet.ts",
|
|
234
|
-
"npmDependencies": {
|
|
235
|
-
"@openzeppelin/contracts": "^5.4.0",
|
|
236
|
-
"@openzeppelin/confidential-contracts": "^0.3.0"
|
|
237
|
-
},
|
|
238
|
-
"dependencies": [
|
|
239
|
-
"contracts/openzeppelin/ERC7984.sol"
|
|
240
|
-
],
|
|
241
|
-
"description": "Linear vesting wallet for ERC7984 tokens - amounts stay encrypted!",
|
|
242
|
-
"category": "Openzeppelin",
|
|
243
|
-
"title": "Vesting Wallet"
|
|
244
|
-
}
|
|
245
|
-
};
|
|
246
|
-
// =============================================================================
|
|
247
|
-
// Category Configurations
|
|
248
|
-
// =============================================================================
|
|
249
|
-
export const CATEGORIES = {
|
|
250
|
-
"advanced": {
|
|
251
|
-
"name": "Advanced Examples",
|
|
252
|
-
"contracts": [
|
|
253
|
-
{
|
|
254
|
-
"sol": "contracts/advanced/BlindAuction.sol",
|
|
255
|
-
"test": "test/advanced/BlindAuction.ts"
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
"sol": "contracts/advanced/EncryptedEscrow.sol",
|
|
259
|
-
"test": "test/advanced/EncryptedEscrow.ts"
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
"sol": "contracts/advanced/HiddenVoting.sol",
|
|
263
|
-
"test": "test/advanced/HiddenVoting.ts"
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
"sol": "contracts/advanced/PrivateKYC.sol",
|
|
267
|
-
"test": "test/advanced/PrivateKYC.ts"
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
"sol": "contracts/advanced/PrivatePayroll.sol",
|
|
271
|
-
"test": "test/advanced/PrivatePayroll.ts"
|
|
272
|
-
}
|
|
273
|
-
]
|
|
274
|
-
},
|
|
275
|
-
"basicdecryption": {
|
|
276
|
-
"name": "Basic - Decryption Examples",
|
|
277
|
-
"contracts": [
|
|
278
|
-
{
|
|
279
|
-
"sol": "contracts/basic/decryption/PublicDecryptMultipleValues.sol",
|
|
280
|
-
"test": "test/basic/decryption/PublicDecryptMultipleValues.ts"
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
"sol": "contracts/basic/decryption/PublicDecryptSingleValue.sol",
|
|
284
|
-
"test": "test/basic/decryption/PublicDecryptSingleValue.ts"
|
|
285
|
-
},
|
|
286
|
-
{
|
|
287
|
-
"sol": "contracts/basic/decryption/UserDecryptMultipleValues.sol",
|
|
288
|
-
"test": "test/basic/decryption/UserDecryptMultipleValues.ts"
|
|
289
|
-
},
|
|
290
|
-
{
|
|
291
|
-
"sol": "contracts/basic/decryption/UserDecryptSingleValue.sol",
|
|
292
|
-
"test": "test/basic/decryption/UserDecryptSingleValue.ts"
|
|
293
|
-
}
|
|
294
|
-
]
|
|
295
|
-
},
|
|
296
|
-
"basicencryption": {
|
|
297
|
-
"name": "Basic - Encryption Examples",
|
|
298
|
-
"contracts": [
|
|
299
|
-
{
|
|
300
|
-
"sol": "contracts/basic/encryption/EncryptMultipleValues.sol",
|
|
301
|
-
"test": "test/basic/encryption/EncryptMultipleValues.ts"
|
|
302
|
-
},
|
|
303
|
-
{
|
|
304
|
-
"sol": "contracts/basic/encryption/EncryptSingleValue.sol",
|
|
305
|
-
"test": "test/basic/encryption/EncryptSingleValue.ts"
|
|
306
|
-
},
|
|
307
|
-
{
|
|
308
|
-
"sol": "contracts/basic/encryption/FHECounter.sol",
|
|
309
|
-
"test": "test/basic/encryption/FHECounter.ts"
|
|
310
|
-
}
|
|
311
|
-
]
|
|
312
|
-
},
|
|
313
|
-
"basicfheoperations": {
|
|
314
|
-
"name": "Basic - FHE Operations Examples",
|
|
315
|
-
"contracts": [
|
|
316
|
-
{
|
|
317
|
-
"sol": "contracts/basic/fhe-operations/FHEAdd.sol",
|
|
318
|
-
"test": "test/basic/fhe-operations/FHEAdd.ts"
|
|
319
|
-
},
|
|
320
|
-
{
|
|
321
|
-
"sol": "contracts/basic/fhe-operations/FHEArithmetic.sol",
|
|
322
|
-
"test": "test/basic/fhe-operations/FHEArithmetic.ts"
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
"sol": "contracts/basic/fhe-operations/FHEComparison.sol",
|
|
326
|
-
"test": "test/basic/fhe-operations/FHEComparison.ts"
|
|
327
|
-
},
|
|
328
|
-
{
|
|
329
|
-
"sol": "contracts/basic/fhe-operations/FHEIfThenElse.sol",
|
|
330
|
-
"test": "test/basic/fhe-operations/FHEIfThenElse.ts"
|
|
331
|
-
}
|
|
332
|
-
]
|
|
333
|
-
},
|
|
334
|
-
"concepts": {
|
|
335
|
-
"name": "Concepts Examples",
|
|
336
|
-
"contracts": [
|
|
337
|
-
{
|
|
338
|
-
"sol": "contracts/concepts/FHEAccessControl.sol",
|
|
339
|
-
"test": "test/concepts/FHEAccessControl.ts"
|
|
340
|
-
},
|
|
341
|
-
{
|
|
342
|
-
"sol": "contracts/concepts/FHEAntiPatterns.sol",
|
|
343
|
-
"test": "test/concepts/FHEAntiPatterns.ts"
|
|
344
|
-
},
|
|
345
|
-
{
|
|
346
|
-
"sol": "contracts/concepts/FHEHandles.sol",
|
|
347
|
-
"test": "test/concepts/FHEHandles.ts"
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
"sol": "contracts/concepts/FHEInputProof.sol",
|
|
351
|
-
"test": "test/concepts/FHEInputProof.ts"
|
|
352
|
-
}
|
|
353
|
-
]
|
|
354
|
-
},
|
|
355
|
-
"gaming": {
|
|
356
|
-
"name": "Gaming Examples",
|
|
357
|
-
"contracts": [
|
|
358
|
-
{
|
|
359
|
-
"sol": "contracts/gaming/EncryptedLottery.sol",
|
|
360
|
-
"test": "test/gaming/EncryptedLottery.ts"
|
|
361
|
-
},
|
|
362
|
-
{
|
|
363
|
-
"sol": "contracts/gaming/EncryptedPoker.sol",
|
|
364
|
-
"test": "test/gaming/EncryptedPoker.ts"
|
|
365
|
-
},
|
|
366
|
-
{
|
|
367
|
-
"sol": "contracts/gaming/RockPaperScissors.sol",
|
|
368
|
-
"test": "test/gaming/RockPaperScissors.ts"
|
|
369
|
-
}
|
|
370
|
-
]
|
|
371
|
-
},
|
|
372
|
-
"openzeppelin": {
|
|
373
|
-
"name": "Openzeppelin Examples",
|
|
374
|
-
"contracts": [
|
|
375
|
-
{
|
|
376
|
-
"sol": "contracts/openzeppelin/ERC7984.sol",
|
|
377
|
-
"test": "test/openzeppelin/ERC7984.ts"
|
|
378
|
-
},
|
|
379
|
-
{
|
|
380
|
-
"sol": "contracts/openzeppelin/ERC7984ERC20Wrapper.sol",
|
|
381
|
-
"test": "test/openzeppelin/ERC7984ERC20Wrapper.ts"
|
|
382
|
-
},
|
|
383
|
-
{
|
|
384
|
-
"sol": "contracts/openzeppelin/SwapERC7984ToERC20.sol",
|
|
385
|
-
"test": "test/openzeppelin/SwapERC7984ToERC20.ts"
|
|
386
|
-
},
|
|
387
|
-
{
|
|
388
|
-
"sol": "contracts/openzeppelin/SwapERC7984ToERC7984.sol",
|
|
389
|
-
"test": "test/openzeppelin/SwapERC7984ToERC7984.ts"
|
|
390
|
-
},
|
|
391
|
-
{
|
|
392
|
-
"sol": "contracts/openzeppelin/VestingWallet.sol",
|
|
393
|
-
"test": "test/openzeppelin/VestingWallet.ts"
|
|
394
|
-
}
|
|
395
|
-
]
|
|
396
|
-
}
|
|
397
|
-
};
|
|
398
|
-
//# sourceMappingURL=config.js.map
|
package/dist/config.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AA8BH,gFAAgF;AAChF,kCAAkC;AAClC,gFAAgF;AAEhF,MAAM,CAAC,MAAM,QAAQ,GAAG,oDAAoD,CAAC;AAC7E,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC;AAClC,MAAM,CAAC,MAAM,uBAAuB,GAAG,wBAAwB,CAAC;AAEhE,gFAAgF;AAChF,yBAAyB;AACzB,gFAAgF;AAEhF,MAAM,CAAC,MAAM,QAAQ,GAAkC;IACrD,eAAe,EAAE;QACf,UAAU,EAAE,qCAAqC;QACjD,MAAM,EAAE,+BAA+B;QACvC,aAAa,EAAE,wEAAwE;QACvF,UAAU,EAAE,UAAU;QACtB,OAAO,EAAE,eAAe;KACzB;IACD,kBAAkB,EAAE;QAClB,UAAU,EAAE,wCAAwC;QACpD,MAAM,EAAE,kCAAkC;QAC1C,aA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;QACV,MAAM,EAAE,mBAAmB;QAC3B,WAAW,EAAE;YACX;gBACE,KAAK,EAAE,yCAAyC;gBAChD,MAAM,EAAE,mCAAmC;aAC5C;YACD;gBACE,KAAK,EAAE,wCAAwC;gBAC/C,MAAM,EAAE,kCAAkC;aAC3C;YACD;gBACE,KAAK,EAAE,mCAAmC;gBAC1C,MAAM,EAAE,6BAA6B;aACtC;YACD;gBACE,KAAK,EAAE,sCAAsC;gBAC7C,MAAM,EAAE,gCAAgC;aACzC;SACF;KACF;IACD,QAAQ,EAAE;QACR,MAAM,EAAE,iBAAiB;QACzB,WAAW,EAAE;YACX;gBACE,KAAK,EAAE,uCAAuC;gBAC9C,MAAM,EAAE,iCAAiC;aAC1C;YACD;gBACE,KAAK,EAAE,qCAAqC;gBAC5C,MAAM,EAAE,+BAA+B;aACxC;YACD;gBACE,KAAK,EAAE,wCAAwC;gBAC/C,MAAM,EAAE,kCAAkC;aAC3C;SACF;KACF;IACD,cAAc,EAAE;QACd,MAAM,EAAE,uBAAuB;QAC/B,WAAW,EAAE;YACX;gBACE,KAAK,EAAE,oCAAoC;gBAC3C,MAAM,EAAE,8BAA8B;aACvC;YACD;gBACE,KAAK,EAAE,gDAAgD;gBACvD,MAAM,EAAE,0CAA0C;aACnD;YACD;gBACE,KAAK,EAAE,+CAA+C;gBACtD,MAAM,EAAE,yCAAyC;aAClD;YACD;gBACE,KAAK,EAAE,iDAAiD;gBACxD,MAAM,EAAE,2CAA2C;aACpD;YACD;gBACE,KAAK,EAAE,0CAA0C;gBACjD,MAAM,EAAE,oCAAoC;aAC7C;SACF;KACF;CACF,CAAC"}
|
package/dist/constants.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared constants for the CLI
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Simple folder icon for all categories
|
|
6
|
-
*/
|
|
7
|
-
export declare const CATEGORY_ICON = "\uD83D\uDCC1";
|
|
8
|
-
/**
|
|
9
|
-
* Display order for example categories in the interactive prompt
|
|
10
|
-
*/
|
|
11
|
-
export declare const CATEGORY_ORDER: string[];
|
|
12
|
-
/**
|
|
13
|
-
* Content for test/types.ts file
|
|
14
|
-
*/
|
|
15
|
-
export declare const TEST_TYPES_CONTENT = "import type { HardhatEthersSigner } from \"@nomicfoundation/hardhat-ethers/signers\";\n\n/**\n * Common signers interface used across test files\n */\nexport interface Signers {\n owner: HardhatEthersSigner;\n alice: HardhatEthersSigner;\n}\n";
|
|
16
|
-
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AAMH;;GAEG;AACH,eAAO,MAAM,aAAa,iBAAO,CAAC;AAElC;;GAEG;AACH,eAAO,MAAM,cAAc,UAS1B,CAAC;AAMF;;GAEG;AACH,eAAO,MAAM,kBAAkB,yPAS9B,CAAC"}
|
package/dist/constants.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared constants for the CLI
|
|
3
|
-
*/
|
|
4
|
-
// =============================================================================
|
|
5
|
-
// Category Display
|
|
6
|
-
// =============================================================================
|
|
7
|
-
/**
|
|
8
|
-
* Simple folder icon for all categories
|
|
9
|
-
*/
|
|
10
|
-
export const CATEGORY_ICON = "📁";
|
|
11
|
-
/**
|
|
12
|
-
* Display order for example categories in the interactive prompt
|
|
13
|
-
*/
|
|
14
|
-
export const CATEGORY_ORDER = [
|
|
15
|
-
"Basic",
|
|
16
|
-
"Basic - Encryption",
|
|
17
|
-
"Basic - Decryption",
|
|
18
|
-
"Basic - FHE Operations",
|
|
19
|
-
"Concepts",
|
|
20
|
-
"Gaming",
|
|
21
|
-
"Openzeppelin",
|
|
22
|
-
"Advanced",
|
|
23
|
-
];
|
|
24
|
-
// =============================================================================
|
|
25
|
-
// Template Content
|
|
26
|
-
// =============================================================================
|
|
27
|
-
/**
|
|
28
|
-
* Content for test/types.ts file
|
|
29
|
-
*/
|
|
30
|
-
export const TEST_TYPES_CONTENT = `import type { HardhatEthersSigner } from "@nomicfoundation/hardhat-ethers/signers";
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Common signers interface used across test files
|
|
34
|
-
*/
|
|
35
|
-
export interface Signers {
|
|
36
|
-
owner: HardhatEthersSigner;
|
|
37
|
-
alice: HardhatEthersSigner;
|
|
38
|
-
}
|
|
39
|
-
`;
|
|
40
|
-
//# sourceMappingURL=constants.js.map
|
package/dist/constants.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,gFAAgF;AAChF,mBAAmB;AACnB,gFAAgF;AAEhF;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC;AAElC;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,OAAO;IACP,oBAAoB;IACpB,oBAAoB;IACpB,wBAAwB;IACxB,UAAU;IACV,QAAQ;IACR,cAAc;IACd,UAAU;CACX,CAAC;AAEF,gFAAgF;AAChF,mBAAmB;AACnB,gFAAgF;AAEhF;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;;;;;;;;;CASjC,CAAC"}
|
package/dist/index.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* create-fhevm-example - CLI for creating FHEVM example projects
|
|
4
|
-
*
|
|
5
|
-
* Usage:
|
|
6
|
-
* npx create-fhevm-example # Interactive mode
|
|
7
|
-
* npx create-fhevm-example --example <name> # Create single example
|
|
8
|
-
* npx create-fhevm-example --category <name> # Create category project
|
|
9
|
-
* npx create-fhevm-example --add # Add to existing project
|
|
10
|
-
*
|
|
11
|
-
* This is the main entry point - similar to scripts/create.ts in main project.
|
|
12
|
-
* Actual logic is split into:
|
|
13
|
-
* - builders.ts (createSingleExample, createCategoryProject)
|
|
14
|
-
* - ui.ts (prompts + commands)
|
|
15
|
-
* - utils.ts (file operations + constants + utilities)
|
|
16
|
-
* - config.ts (examples & categories)
|
|
17
|
-
* - add-mode.ts (add to existing project)
|
|
18
|
-
*/
|
|
19
|
-
export {};
|
|
20
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA;;;;;;;;;;;;;;;;GAgBG"}
|