Skip to content

Commit

Permalink
Revert "refactor: add unclaimed project owner field"
Browse files Browse the repository at this point in the history
This reverts commit ee2bf59.
  • Loading branch information
efstajas committed Oct 30, 2024
1 parent ddeafb7 commit 4ccd2a5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
3 changes: 0 additions & 3 deletions src/project/projectResolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -469,9 +469,6 @@ const projectResolvers = {
parentProjectInfo: { projectId, projectChain },
}: ResolverUnClaimedProjectData) =>
getWithdrawableBalancesOnChain(projectId, projectChain),
owner: (
projectData: ResolverClaimedProjectData,
): AddressDriverAccount | null => projectData.owner,
},
Avatar: {
__resolveType(parent: { cid: string } | { emoji: string }) {
Expand Down
1 change: 0 additions & 1 deletion src/project/projectTypeDef.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ const projectTypeDef = gql`
verificationStatus: ProjectVerificationStatus!
support: [SupportItem!]!
withdrawableBalances: [WithdrawableBalance!]!
owner: AddressDriverAccount!
}
input ProjectWhereInput {
Expand Down
8 changes: 0 additions & 8 deletions src/project/projectUtils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { ZeroAddress } from 'ethers';
import type {
DbSchema,
Forge,
Expand Down Expand Up @@ -126,8 +125,6 @@ export async function toProjectRepresentation(
project.verificationStatus ?? ProjectVerificationStatus.Unclaimed,
isValid: true,
chain: project.chain,
ownerAddress: project.ownerAddress || ZeroAddress,
ownerAccountId: project.ownerAccountId || '0',
} as ProjectDataValues;
}

Expand Down Expand Up @@ -193,11 +190,6 @@ function mapUnClaimedProjectChainData(
support: [], // Will be populated by the resolver.
totalEarned: [], // Will be populated by the resolver.
withdrawableBalances: [], // Will be populated by the resolver.
owner: {
driver: Driver.ADDRESS,
accountId: fakeUnclaimedProject.ownerAccountId,
address: fakeUnclaimedProject.ownerAddress as string,
},
} as ResolverUnClaimedProjectData;
}

Expand Down

0 comments on commit 4ccd2a5

Please sign in to comment.