Skip to content

Commit 84aa8d0

Browse files
committed
chore(subgraph): v3.0.0-beta.5
Former-commit-id: ca1485b
1 parent 6592a62 commit 84aa8d0

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

packages/subgraph/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
</h4>
4747
</div>
4848

49-
| This library allows you to query the [`Semaphore.sol`](https://github.com/semaphore-protocol/semaphore/blob/main/contracts/Semaphore.sol) contract data (i.e. groups) using the [Semaphore subgraph](https://github.com/semaphore-protocol/subgraph) on Kovan, Goerli, and Arbitrum One. It can be used on Node.js and browsers. |
49+
| This library allows you to query the [`Semaphore.sol`](https://github.com/semaphore-protocol/semaphore/blob/main/contracts/Semaphore.sol) contract data (i.e. groups) using the [Semaphore subgraph](https://github.com/semaphore-protocol/subgraph) on Goerli and Arbitrum One. It can be used on Node.js and browsers. |
5050
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
5151

5252
## 🛠 Install
@@ -83,7 +83,7 @@ or [JSDelivr](https://www.jsdelivr.com/):
8383

8484
## 📜 Usage
8585

86-
\# **new Subgraph**(network: _Network_ = "arbitrum" ): _Subgraph_
86+
\# **new Subgraph**(network: _Network_ = "goerli" ): _Subgraph_
8787

8888
```typescript
8989
import { Subgraph } from "@semaphore-protocol/subgraph"

packages/subgraph/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@semaphore-protocol/subgraph",
3-
"version": "2.6.1",
3+
"version": "3.0.0-beta.5",
44
"description": "A library to query Semaphore contracts.",
55
"license": "MIT",
66
"iife": "dist/index.js",

packages/subgraph/src/getURL.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ export default function getURL(network: Network): string {
99
switch (network) {
1010
case "goerli":
1111
return `https://api.thegraph.com/subgraphs/name/semaphore-protocol/goerli-5259d3`
12-
case "arbitrum":
13-
return `https://api.thegraph.com/subgraphs/name/semaphore-protocol/arbitrum-86337c`
12+
// case "arbitrum":
13+
// return `https://api.thegraph.com/subgraphs/name/semaphore-protocol/arbitrum-86337c`
1414
default:
1515
throw new TypeError(`Network '${network}' is not supported`)
1616
}

packages/subgraph/src/subgraph.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ describe("Subgraph", () => {
1414
describe("# Subgraph", () => {
1515
it("Should instantiate a subgraph object", () => {
1616
subgraph = new Subgraph("goerli")
17-
const subgraph1 = new Subgraph()
17+
// const subgraph1 = new Subgraph()
1818

1919
expect(subgraph.url).toContain("goerli")
20-
expect(subgraph1.url).toContain("arbitrum")
20+
// expect(subgraph1.url).toContain("arbitrum")
2121
})
2222

2323
it("Should throw an error if there is a wrong network", () => {

packages/subgraph/src/subgraph.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default class Subgraph {
1111
* Initializes the subgraph object with one of the supported networks.
1212
* @param network Supported Semaphore network.
1313
*/
14-
constructor(network: Network = "arbitrum") {
14+
constructor(network: Network = "goerli") {
1515
checkParameter(network, "network", "string")
1616

1717
this._url = getURL(network)

packages/subgraph/src/types/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export type Network = "goerli" | "arbitrum"
1+
export type Network = "goerli" // | "arbitrum"
22

33
export type GroupOptions = {
44
members?: boolean

0 commit comments

Comments
 (0)