Skip to content

Commit

Permalink
Merge branch 'master' into fix-privacy-check
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaituVR authored Jan 4, 2025
2 parents ff07b9f + 1738133 commit 71b1fa4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@snapshot-labs/pineapple": "^1.1.0",
"@snapshot-labs/snapshot-metrics": "^1.4.1",
"@snapshot-labs/snapshot-sentry": "^1.5.5",
"@snapshot-labs/snapshot.js": "^0.12.36",
"@snapshot-labs/snapshot.js": "^0.12.41",
"bluebird": "^3.7.2",
"connection-string": "^1.0.1",
"cors": "^2.8.5",
Expand Down
1 change: 1 addition & 0 deletions src/helpers/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export async function sxSpaceExists(network: string, spaceId: string): Promise<b
matic: 'https://api.studio.thegraph.com/query/23545/sx-polygon/version/latest',
arb1: 'https://api.studio.thegraph.com/query/23545/sx-arbitrum/version/latest',
oeth: 'https://api.studio.thegraph.com/query/23545/sx-optimism/version/latest',
base: 'https://api.studio.thegraph.com/query/23545/sx-base/version/latest',
sn: 'https://api.snapshot.box',
'sn-sep': 'https://testnet-api.snapshot.box',
'linea-testnet':
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import snapshot from '@snapshot-labs/snapshot.js';
import { Response } from 'express';
import fetch from 'node-fetch';

const MAINNET_NETWORK_ID_WHITELIST = ['s', 'eth', 'matic', 'arb1', 'oeth', 'sn'];
const MAINNET_NETWORK_ID_WHITELIST = ['s', 'eth', 'matic', 'arb1', 'oeth', 'sn', 'base'];
const TESTNET_NETWORK_ID_WHITELIST = ['s-tn', 'sep', 'linea-testnet', 'sn-sep'];
const broviderUrl = process.env.BROVIDER_URL ?? 'https://rpc.snapshot.org';

Expand Down
2 changes: 1 addition & 1 deletion src/ingestor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default async function ingestor(req) {
const formattedSignature = castArray(body.sig).join(',');
const ts = Date.now() / 1e3;
const over = 300;
const under = 60 * 60 * 24 * 3; // 3 days
const under = 60 * 60 * 24 * 6; // 6 days
const overTs = (ts + over).toFixed();
const underTs = (ts - under).toFixed();
const { domain, message, types } = body.data;
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1350,10 +1350,10 @@
dependencies:
"@sentry/node" "^7.81.1"

"@snapshot-labs/snapshot.js@^0.12.36":
version "0.12.36"
resolved "https://registry.yarnpkg.com/@snapshot-labs/snapshot.js/-/snapshot.js-0.12.36.tgz#89ff38be1b2ab2b239ab5caf0b20c5c4e65eed4e"
integrity sha512-cCwX8mLattshjMLzb731DWDQ8/D0uHINBjTNyFhdyxwW/7B1Dr4wAIQHR+iXwJDA3aiqDJPIP6llD1HRRllvBQ==
"@snapshot-labs/snapshot.js@^0.12.41":
version "0.12.41"
resolved "https://registry.yarnpkg.com/@snapshot-labs/snapshot.js/-/snapshot.js-0.12.41.tgz#3a0a2866a78f14368eb0648ef2e22a8e66422b26"
integrity sha512-Deikl21gUzeY/2TE8xTNsHbwTNcSqvxDnrzA1LcLwyqAzA6tigwNBlqaS5E35v7t5z7Iz62j+CPEFzxv1ta6cA==
dependencies:
"@ensdomains/eth-ens-namehash" "^2.0.15"
"@ethersproject/abi" "^5.6.4"
Expand Down

0 comments on commit 71b1fa4

Please sign in to comment.