Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
0xKurt committed Sep 9, 2024
1 parent d1d8ff4 commit 8acbedd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ DATABASE_URL=postgres://postgres:postgres@localhost:5432/grants_stack_indexer
# METIS_ANDROMEDA_RPC_URL

#COINGECKO_API_KEY=
#IPFS_GATEWAY=
#IPFS_GATEWAYs=[]
#WHITELISTED_ADDRESSES=["0x123..","0x456.."]

# optional, enable the Postgraphile Pro plugin: https://www.npmjs.com/package/@graphile/pro
#GRAPHILE_LICENSE
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type CoingeckoSupportedChainId =
| 42220
| 1088;

const CHAIN_DATA_VERSION = "81";
const CHAIN_DATA_VERSION = "82";
const IPFS_DATA_VERSION = "1";
const PRICE_DATA_VERSION = "1";

Expand Down
7 changes: 0 additions & 7 deletions src/database/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1008,13 +1008,6 @@ export class Database {
.where("chainId", "=", chainId)
.execute();

this.#logger.info("Deleting applications payouts");
await trx
.withSchema(this.chainDataSchemaName)
.deleteFrom("prices")
.where("chainId", "=", chainId)
.execute();

this.#logger.info("Deleting applications payouts");
await trx
.withSchema(this.chainDataSchemaName)
Expand Down
5 changes: 3 additions & 2 deletions src/http/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,9 @@ const recoverEthereumAddress = async ({
if (!address || !timestamp || !signature) {
return false;
}
const whitelistedAddresses =
process.env.WHITELISTED_ADDRESSES?.split(",") || [];
const whitelistedAddresses: string[] = JSON.parse(
process.env.WHITELISTED_ADDRESSES!
);

// Check timestamp validity
const currentTime = Date.now();
Expand Down

0 comments on commit 8acbedd

Please sign in to comment.