Skip to content

Commit

Permalink
update package
Browse files Browse the repository at this point in the history
  • Loading branch information
codenamejason committed May 24, 2024
1 parent 9a7e231 commit 8c79d10
Show file tree
Hide file tree
Showing 13 changed files with 30 additions and 30 deletions.
34 changes: 17 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"@grants-labs/gitcoin-chain-data": "github:gitcoinco/gitcoin-chain-data#main",
"@gitcoin/gitcoin-chain-data": "^1.0.1",
"@graphile-contrib/pg-simplify-inflector": "^6.1.0",
"@graphile/pro": "^1.0.4",
"@isaacs/ttlcache": "^1.4.1",
Expand Down
2 changes: 1 addition & 1 deletion src/calculator/calculateMatches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
DeprecatedRound,
DeprecatedVote,
} from "../deprecatedJsonDatabase.js";
import { TChain } from "@grants-labs/gitcoin-chain-data";
import { TChain } from "@gitcoin/gitcoin-chain-data";

export type CalculateMatchesConfig = {
roundId: string;
Expand Down
2 changes: 1 addition & 1 deletion src/calculator/calculateMatchingEstimates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
DeprecatedVote,
} from "../deprecatedJsonDatabase.js";
import { parseAddress } from "../address.js";
import { TChain } from "@grants-labs/gitcoin-chain-data";
import { TChain } from "@gitcoin/gitcoin-chain-data";

export const potentialVoteSchema = z.object({
projectId: z.string(),
Expand Down
2 changes: 1 addition & 1 deletion src/calculator/votes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import type {
import { ProportionalMatchOptions } from "./options.js";
import { defaultProportionalMatchOptions } from "./options.js";
import { CoefficientOverrides } from "./coefficientOverrides.js";
import { TChain } from "@grants-labs/gitcoin-chain-data";
import { TChain } from "@gitcoin/gitcoin-chain-data";

export type VoteWithCoefficient = DeprecatedVote & {
coefficient: number;
Expand Down
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
TChain,
getChainById,
getChains,
} from "@grants-labs/gitcoin-chain-data";
} from "@gitcoin/gitcoin-chain-data";

const CHAIN_DATA_VERSION = "66";
const CHAINS: TChain[] = getChains();
Expand Down
2 changes: 1 addition & 1 deletion src/http/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { PriceProvider } from "../prices/provider.js";
import { PassportProvider } from "../passport/index.js";
import { DataProvider } from "../calculator/dataProvider/index.js";
import { Database } from "../database/index.js";
import { TChain } from "@grants-labs/gitcoin-chain-data";
import { TChain } from "@gitcoin/gitcoin-chain-data";

type AsyncRequestHandler = (
req: express.Request,
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { createResourceMonitor } from "./resourceMonitor.js";
import diskstats from "diskstats";

import { getConfig, Config, chainById } from "./config.js";
import { TChain } from "@grants-labs/gitcoin-chain-data";
import { TChain } from "@gitcoin/gitcoin-chain-data";
import { createPriceProvider, PriceProvider } from "./prices/provider.js";
import { createHttpApi } from "./http/app.js";
import { DatabaseDataProvider } from "./calculator/dataProvider/databaseDataProvider.js";
Expand Down
2 changes: 1 addition & 1 deletion src/indexer/allo/v2/handleEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import { RoundMetadataSchema } from "../roundMetadata.js";
import { ethers } from "ethers";
import { UnknownTokenError } from "../../../prices/common.js";
import { ApplicationMetadataSchema } from "../../applicationMetadata.js";
import { getTokenByChainIdAndAddress } from "@grants-labs/gitcoin-chain-data";
import { getTokenByChainIdAndAddress } from "@gitcoin/gitcoin-chain-data";

const ALLO_NATIVE_TOKEN = parseAddress(
"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"
Expand Down
4 changes: 2 additions & 2 deletions src/prices/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Address, ChainId, FetchInterface } from "../types.js";
import { LRUCache } from "lru-cache";
import { fetchPricesForRange } from "./coinGecko.js";
import { parseAddress } from "../address.js";
import { TToken, getChainById } from "@grants-labs/gitcoin-chain-data";
import { TToken, getChainById } from "@gitcoin/gitcoin-chain-data";
import { chainById } from "../config.js";

export type PriceWithDecimals = Omit<Price, "id"> & { tokenDecimals: number };
Expand Down Expand Up @@ -183,7 +183,7 @@ export function createPriceProvider(
const twoHoursInMs = 2 * 60 * 60 * 1000;

const prices = await fetchPricesForRange({
chainId: token.priceSource?.chainId ?? token.chainId,
chainId: token.priceSource?.chainId!,
tokenAddress: parseAddress(token.priceSource?.address ?? token.address),
startTimestampInMs: blockTimestampInMs - twoHoursInMs,
endTimestampInMs: blockTimestampInMs,
Expand Down
2 changes: 1 addition & 1 deletion src/test/calculator/proportionalMatch.test.fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type {
DeprecatedApplication,
} from "../../deprecatedJsonDatabase.js";
import { test as baseTest } from "vitest";
import { TChain } from "@grants-labs/gitcoin-chain-data";
import { TChain } from "@gitcoin/gitcoin-chain-data";
import type { PassportScore } from "../../passport/index.js";
import type { PassportProvider } from "../../passport/index.js";
import { AddressToPassportScoreMap } from "../../passport/index.js";
Expand Down
2 changes: 1 addition & 1 deletion src/test/calculator/votes.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type {
} from "../../deprecatedJsonDatabase.js";
import { describe, test, expect } from "vitest";
import { getVotesWithCoefficients } from "../../calculator/votes.js";
import { TChain } from "@grants-labs/gitcoin-chain-data";
import { TChain } from "@gitcoin/gitcoin-chain-data";

const round: DeprecatedRound = {
id: "0x1234",
Expand Down
2 changes: 1 addition & 1 deletion src/test/http/app.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { AugmentedResult } from "../../calculator/calculateMatches.js";
import { PriceProvider } from "../../prices/provider.js";
import { pino } from "pino";
import { PotentialVote } from "../../calculator/calculateMatchingEstimates.js";
import { TChain } from "@grants-labs/gitcoin-chain-data";
import { TChain } from "@gitcoin/gitcoin-chain-data";
import { constants } from "ethers";
import {
TestPriceProvider,
Expand Down

0 comments on commit 8c79d10

Please sign in to comment.