@semaphore-protocol/cli 3.8.0 → 3.10.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/dist/index.js CHANGED
@@ -2,14 +2,14 @@
2
2
 
3
3
  /**
4
4
  * @module @semaphore-protocol/cli
5
- * @version 3.8.0
5
+ * @version 3.10.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 = ["sepolia", "goerli", "mumbai", "optimism-goerli", "arbitrum", "arbitrum-goerli"];
151
+ const supportedNetworks = getSupportedNetworks();
152
152
  const supportedTemplates = [
153
153
  {
154
154
  value: "monorepo-ethers",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semaphore-protocol/cli",
3
3
  "type": "module",
4
- "version": "3.8.0",
4
+ "version": "3.10.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.8.0",
46
+ "@semaphore-protocol/data": "3.10.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 = ["sepolia", "goerli", "mumbai", "optimism-goerli", "arbitrum", "arbitrum-goerli"]
19
+ const supportedNetworks = getSupportedNetworks()
20
20
 
21
21
  const supportedTemplates = [
22
22
  {