Skip to content

Commit

Permalink
Migrate to Lens v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoginth committed Dec 7, 2024
1 parent a54ae5a commit 21a9851
Show file tree
Hide file tree
Showing 7 changed files with 81 additions and 92 deletions.
2 changes: 1 addition & 1 deletion apps/web/src/store/persisted/useTransactionStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ export const addOptimisticTransaction = store.getState().addTransaction;
export const addSimpleOptimisticTransaction = (
hash: string,
type: OptmisticTransactionType
) => addTransaction({ txHash: hash, type });
) => store.getState().addTransaction({ txHash: hash, type });
export const useTransactionStore = store;
32 changes: 2 additions & 30 deletions packages/indexer/documents/fragments/account/AccountFields.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -3,40 +3,12 @@ fragment AccountFields on Account {
address
score
metadata {
name
bio
picture
coverPicture
attributes {
...MetadataAttributeFields
}
...AccountMetadata
}
username {
...UsernameFields
}
operations {
id
isFollowedByMe
isFollowingMe
canFollow
canUnfollow
isMutedByMe
isBlockedByMe
hasBlockedMe
canBlock
canUnblock
hasReported
}
rules {
anyOf {
... on SimplePaymentFollowRule {
...SimplePaymentFollowRuleFields
}
}
required {
... on SimplePaymentFollowRule {
...SimplePaymentFollowRuleFields
}
}
...LoggedInAccountOperationsFields
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
fragment AccountMetadata on AccountMetadata {
id
name
bio
picture
coverPicture
attributes {
...MetadataAttributeFields
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
fragment LoggedInAccountOperationsFields on LoggedInAccountOperations {
id
isFollowedByMe
isFollowingMe
canFollow
canUnfollow
isMutedByMe
isBlockedByMe
hasBlockedMe
canBlock
canUnblock
hasReported
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
fragment PostBaseFields on Post {
id
isDeleted
isEdited
stats {
...PostStatsFields
}
Expand Down
110 changes: 55 additions & 55 deletions packages/indexer/generated.ts

Large diffs are not rendered by default.

0 comments on commit 21a9851

Please sign in to comment.