Commit fe5cf65
authored
Refactor/sempahore abi to utils (#818)
* ci(contracts): a script that moves the abi.json file created to utils folder
A script could be run immediately after compilation to copy the file
artifacts/contracts/Semaphore.sol/Semaphore.json to packages/utils/src/semaphore-abi.json. Then all
packages/apps that need the interface can import it from @semaphore-protocol/utils.
re #817
* refactor(utils): allows packages to import abi from @semaphore-protocol/utils
re #817
* refactor(cli-template-monorepo-ethers): installs ncp and exports Semaphore Abi byte code
re #817
* refactor(contracts): added a script that automates movement of semaphore-abi.json
* chore(cli): changed the dependency and moved to ncp for copying semaphore abi
Changed the importation of abi in utils to _interface and moved the ncp to a dev depency
* chore(utils): changed ab to _interface and update to package.json
* chore(cli): deleted Cli-template file and made a document change
delted some cli-template file, changed yarn commit to git commit and fixed the yarn compile script1 parent ced5f6a commit fe5cf65
File tree
6 files changed
+916
-4
lines changed- packages
- contracts
- data/src
- utils/src
6 files changed
+916
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
316 | | - | |
| 316 | + | |
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | | - | |
22 | | - | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments