Skip to content

Commit

Permalink
fix/update for gh username
Browse files Browse the repository at this point in the history
  • Loading branch information
codenamejason committed Jan 30, 2024
1 parent d492b8d commit 3257697
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 12 deletions.
3 changes: 3 additions & 0 deletions packages/builder/src/actions/grantsMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ export const fetchGrantData =
credentials: project.metadata.credentials,
protocol: 1,
pointer: project.metadataCid,
userGithub: project.metadata.userGithub,
projectGithub: project.metadata.projectGithub,
projectTwitter: project.metadata.projectTwitter,
};

const ownerAddresses = project.roles
Expand Down
4 changes: 2 additions & 2 deletions packages/builder/src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { VerifiableCredential } from "@gitcoinco/passport-sdk-types";
import { ChainId } from "common";
import { ReactNode } from "react";
import { RoundApplicationMetadata } from "./roundApplication";
import { Application } from "../reducers/projects";
import { RoundApplicationMetadata } from "./roundApplication";

export type Images = {
bannerImg?: Blob;
Expand Down Expand Up @@ -237,7 +237,7 @@ export enum CredentialProvider {
}

export type {
ProjectRequirements,
RoundApplicationMetadata,
RoundApplicationQuestion,
ProjectRequirements,
} from "./roundApplication";
6 changes: 3 additions & 3 deletions packages/common/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -399,9 +399,9 @@ export type { Allo, AlloError, AlloOperation } from "./allo/allo";
export { AlloV1 } from "./allo/backends/allo-v1";
export { AlloV2 } from "./allo/backends/allo-v2";
export {
getCurrentSubgraphBlockNumber,
waitForSubgraphSyncTo,
createWaitForIndexerSyncTo,
getCurrentSubgraphBlockNumber,
waitForSubgraphSyncTo
} from "./allo/indexer";
export type { WaitUntilIndexerSynced } from "./allo/indexer";
export { createPinataIpfsUploader } from "./allo/ipfs";
Expand All @@ -412,7 +412,7 @@ export {
createViemTransactionSender,
decodeEventFromReceipt,
sendRawTransaction,
sendTransaction,
sendTransaction
} from "./allo/transaction-sender";

export type AnyJson = boolean | number | string | null | JsonArray | JsonMap;
Expand Down
6 changes: 6 additions & 0 deletions packages/data-layer/src/data-layer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ const mockProjects: v2Project[] = [
id: "0x8a79249b63395c25bd121ba6ff280198c399d4fb3f951fc3c42197b54a6db6a6",
chainId: 11155111,
metadata: {
protocol: 1,
pointer: "QmS9XiFsCq2Ng6buJmBLvNWNpcsHs4uYBhVmBfSK2DFpsm",
id: "0x8a79249b63395c25bd121ba6ff280198c399d4fb3f951fc3c42197b54a6db6a6",
title: "Jax v2 test 4",
logoImg: "",
website: "https://test.com",
Expand All @@ -21,6 +24,9 @@ const mockProjects: v2Project[] = [
"Sint laborum minus debitis nulla nesciunt perferendis officia delectus. Explicabo saepe similique excepturi dolores architecto. Nesciunt perspiciatis praesentium porro facere aliquam voluptate quasi iusto.",
logoImgData: new Blob(),
bannerImgData: new Blob(),
userGithub: "",
projectGithub: "",
projectTwitter: "",
},
metadataCid: "bafkreie4ra5mdxumvxhsjpvawhvtdovlgjk4v74zsgvpqrs2ehdk5srtl4",
name: "Jax v2 test 4",
Expand Down
21 changes: 14 additions & 7 deletions packages/data-layer/src/data.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,22 @@ export type v2Project = {
* The metadata of the project
*/
metadata: {
protocol: number;
pointer: string;
id: string;
title: string;
logoImg: string;
website: string;
bannerImg: string;
createdAt: number;
credentials: ProjectCredentials;
description: string;
logoImgData: Blob;
bannerImgData: Blob;
logoImg?: string;
website: string;
bannerImg?: string;
logoImgData?: Blob;
bannerImgData?: Blob;
userGithub?: string;
projectGithub?: string;
projectTwitter?: string;
credentials?: ProjectCredentials;
createdAt?: number;
updatedAt?: number;
};
/**
* The metadata CID of the project
Expand Down

0 comments on commit 3257697

Please sign in to comment.