@semaphore-protocol/cli 3.7.0 → 3.9.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 +1 -1
- package/dist/index.js +4 -4
- package/package.json +2 -2
- package/src/index.ts +3 -3
package/README.md
CHANGED
|
@@ -79,6 +79,6 @@ Commands:
|
|
|
79
79
|
get-groups [options] Get the list of groups from a supported network (e.g. goerli or arbitrum).
|
|
80
80
|
get-group [options] [group-id] Get the data of a group from a supported network (e.g. goerli or arbitrum).
|
|
81
81
|
get-members [options] [group-id] Get the members of a group from a supported network (e.g. goerli or arbitrum).
|
|
82
|
-
get-proofs [options] [group-id] Get the proofs from a supported network (e.g. goerli or arbitrum).
|
|
82
|
+
get-proofs [options] [group-id] Get the proofs of a group from a supported network (e.g. goerli or arbitrum).
|
|
83
83
|
help [command] Display help for a specific command.
|
|
84
84
|
```
|
package/dist/index.js
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @module @semaphore-protocol/cli
|
|
5
|
-
* @version 3.
|
|
5
|
+
* @version 3.9.0
|
|
6
6
|
* @file A command line tool to set up your Semaphore project and get group data.
|
|
7
7
|
* @copyright Ethereum Foundation 2022
|
|
8
8
|
* @license MIT
|
|
9
9
|
* @see [Github]{@link https://github.com/semaphore-protocol/semaphore/tree/main/packages/cli}
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
import { SemaphoreSubgraph, SemaphoreEthers } from '@semaphore-protocol/data';
|
|
12
|
+
import { SemaphoreSubgraph, SemaphoreEthers, getSupportedNetworks } from '@semaphore-protocol/data';
|
|
13
13
|
import chalk from 'chalk';
|
|
14
14
|
import { program } from 'commander';
|
|
15
15
|
import figlet from 'figlet';
|
|
@@ -148,7 +148,7 @@ async function getGroupId(groupIds) {
|
|
|
148
148
|
|
|
149
149
|
const packagePath = `${dirname(fileURLToPath(import.meta.url))}/..`;
|
|
150
150
|
const { description, version } = JSON.parse(readFileSync(`${packagePath}/package.json`, "utf8"));
|
|
151
|
-
const supportedNetworks =
|
|
151
|
+
const supportedNetworks = getSupportedNetworks();
|
|
152
152
|
const supportedTemplates = [
|
|
153
153
|
{
|
|
154
154
|
value: "monorepo-ethers",
|
|
@@ -342,7 +342,7 @@ program
|
|
|
342
342
|
});
|
|
343
343
|
program
|
|
344
344
|
.command("get-proofs")
|
|
345
|
-
.description("Get the proofs from a supported network (e.g. goerli or arbitrum).")
|
|
345
|
+
.description("Get the proofs of a group from a supported network (e.g. goerli or arbitrum).")
|
|
346
346
|
.argument("[group-id]", "Identifier of the group.")
|
|
347
347
|
.option("-n, --network <network-name>", "Supported Ethereum network.")
|
|
348
348
|
.allowExcessArguments(false)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semaphore-protocol/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.9.0",
|
|
5
5
|
"description": "A command line tool to set up your Semaphore project and get group data.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"bin": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"typedoc": "^0.22.11"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@semaphore-protocol/data": "3.
|
|
46
|
+
"@semaphore-protocol/data": "3.9.0",
|
|
47
47
|
"axios": "^1.3.2",
|
|
48
48
|
"boxen": "^7.0.1",
|
|
49
49
|
"chalk": "^5.1.2",
|
package/src/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GroupResponse, SemaphoreEthers, SemaphoreSubgraph } from "@semaphore-protocol/data"
|
|
1
|
+
import { GroupResponse, SemaphoreEthers, SemaphoreSubgraph, getSupportedNetworks } from "@semaphore-protocol/data"
|
|
2
2
|
import chalk from "chalk"
|
|
3
3
|
import { program } from "commander"
|
|
4
4
|
import figlet from "figlet"
|
|
@@ -16,7 +16,7 @@ import Spinner from "./spinner.js"
|
|
|
16
16
|
const packagePath = `${dirname(fileURLToPath(import.meta.url))}/..`
|
|
17
17
|
const { description, version } = JSON.parse(readFileSync(`${packagePath}/package.json`, "utf8"))
|
|
18
18
|
|
|
19
|
-
const supportedNetworks =
|
|
19
|
+
const supportedNetworks = getSupportedNetworks()
|
|
20
20
|
|
|
21
21
|
const supportedTemplates = [
|
|
22
22
|
{
|
|
@@ -269,7 +269,7 @@ program
|
|
|
269
269
|
|
|
270
270
|
program
|
|
271
271
|
.command("get-proofs")
|
|
272
|
-
.description("Get the proofs from a supported network (e.g. goerli or arbitrum).")
|
|
272
|
+
.description("Get the proofs of a group from a supported network (e.g. goerli or arbitrum).")
|
|
273
273
|
.argument("[group-id]", "Identifier of the group.")
|
|
274
274
|
.option("-n, --network <network-name>", "Supported Ethereum network.")
|
|
275
275
|
.allowExcessArguments(false)
|