-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 script
- Loading branch information
Showing
6 changed files
with
916 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
import _interface from "./semaphore-interface.json" | ||
|
||
// Minimum supported tree depth. | ||
export const MIN_DEPTH = 1 | ||
|
||
// Maximum supported tree depth. | ||
export const MAX_DEPTH = 32 | ||
|
||
export const SemaphoreABI = _interface.abi | ||
export const SemaphoreBytecode = _interface.bytecode |
Oops, something went wrong.