@semaphore-protocol/hardhat 3.11.1 → 3.12.1
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/index.mjs +4 -4
- package/dist/index.node.js +3 -3
- package/package.json +2 -2
- package/src/tasks/deploy-semaphore.ts +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module @semaphore-protocol/hardhat
|
|
3
|
-
* @version 3.
|
|
3
|
+
* @version 3.12.1
|
|
4
4
|
* @file A Semaphore Hardhat plugin to deploy verifiers and Semaphore contract.
|
|
5
5
|
* @copyright Ethereum Foundation 2022
|
|
6
6
|
* @license MIT
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import { task, types, extendConfig } from 'hardhat/config';
|
|
10
10
|
import 'hardhat-dependency-compiler';
|
|
11
11
|
import '@nomiclabs/hardhat-ethers';
|
|
12
|
-
import {
|
|
12
|
+
import { poseidonContract } from 'circomlibjs';
|
|
13
13
|
|
|
14
14
|
/******************************************************************************
|
|
15
15
|
Copyright (c) Microsoft Corporation.
|
|
@@ -125,8 +125,8 @@ task("deploy:semaphore", "Deploy a Semaphore contract")
|
|
|
125
125
|
case 8:
|
|
126
126
|
if (!!incrementalBinaryTreeAddress) return [3 /*break*/, 16];
|
|
127
127
|
if (!!poseidonAddress) return [3 /*break*/, 12];
|
|
128
|
-
poseidonABI =
|
|
129
|
-
poseidonBytecode =
|
|
128
|
+
poseidonABI = poseidonContract.generateABI(2);
|
|
129
|
+
poseidonBytecode = poseidonContract.createCode(2);
|
|
130
130
|
return [4 /*yield*/, ethers.getSigners()];
|
|
131
131
|
case 9:
|
|
132
132
|
signer = (_c.sent())[0];
|
package/dist/index.node.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module @semaphore-protocol/hardhat
|
|
3
|
-
* @version 3.
|
|
3
|
+
* @version 3.12.1
|
|
4
4
|
* @file A Semaphore Hardhat plugin to deploy verifiers and Semaphore contract.
|
|
5
5
|
* @copyright Ethereum Foundation 2022
|
|
6
6
|
* @license MIT
|
|
@@ -127,8 +127,8 @@ config.task("deploy:semaphore", "Deploy a Semaphore contract")
|
|
|
127
127
|
case 8:
|
|
128
128
|
if (!!incrementalBinaryTreeAddress) return [3 /*break*/, 16];
|
|
129
129
|
if (!!poseidonAddress) return [3 /*break*/, 12];
|
|
130
|
-
poseidonABI = circomlibjs.
|
|
131
|
-
poseidonBytecode = circomlibjs.
|
|
130
|
+
poseidonABI = circomlibjs.poseidonContract.generateABI(2);
|
|
131
|
+
poseidonBytecode = circomlibjs.poseidonContract.createCode(2);
|
|
132
132
|
return [4 /*yield*/, ethers.getSigners()];
|
|
133
133
|
case 9:
|
|
134
134
|
signer = (_c.sent())[0];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semaphore-protocol/hardhat",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.12.1",
|
|
4
4
|
"description": "A Semaphore Hardhat plugin to deploy verifiers and Semaphore contract.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.node.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@nomiclabs/hardhat-ethers": "^2.1.1",
|
|
41
|
-
"@semaphore-protocol/contracts": "3.
|
|
41
|
+
"@semaphore-protocol/contracts": "3.12.1",
|
|
42
42
|
"circomlibjs": "^0.0.8",
|
|
43
43
|
"ethers": "^5.7.1",
|
|
44
44
|
"hardhat-dependency-compiler": "^1.1.3"
|