-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🌺 Lens and Hey v3: v25 (#lens-v3)
Summary: Refactored GraphQL mutations to use fragments for transaction requests. Highlights: • Added `SelfFundedTransactionRequestFields` and `SponsoredTransactionRequestFields` fragments. • Replaced inline fields with fragments in multiple mutation files. • Enhanced transaction request handling with detailed field structures. Read more: https://pierre.co/hey/hey/lens-v3
- Loading branch information
Yoginth
authored and
Pierre
committed
Dec 4, 2024
1 parent
8ab700b
commit d4f6b19
Showing
37 changed files
with
374 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
fragment AmountFields on Amount { | ||
asset { | ||
...AssetFields | ||
} | ||
value | ||
} |
4 changes: 4 additions & 0 deletions
4
packages/indexer/documents/fragments/BooleanValueFields copy.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
fragment NetworkAddressFields on NetworkAddress { | ||
address | ||
chainId | ||
} |
15 changes: 15 additions & 0 deletions
15
packages/indexer/documents/fragments/SelfFundedTransactionRequestFields.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
fragment SelfFundedTransactionRequestFields on SelfFundedTransactionRequest { | ||
reason | ||
raw { | ||
chainId | ||
data | ||
from | ||
gasLimit | ||
maxFeePerGas | ||
maxPriorityFeePerGas | ||
nonce | ||
to | ||
type | ||
value | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
packages/indexer/documents/fragments/SponsoredTransactionRequestFields.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
fragment SponsoredTransactionRequestFields on SponsoredTransactionRequest { | ||
reason | ||
raw { | ||
chainId | ||
data | ||
from | ||
gasLimit | ||
gasPrice | ||
nonce | ||
to | ||
type | ||
value | ||
customData { | ||
customSignature | ||
factoryDeps | ||
gasPerPubdata | ||
paymasterParams { | ||
paymaster | ||
paymasterInput | ||
} | ||
} | ||
} | ||
} |
5 changes: 1 addition & 4 deletions
5
packages/indexer/documents/fragments/account/SimplePaymentFollowRuleFields.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
fragment SimplePaymentFollowRuleFields on SimplePaymentFollowRule { | ||
amount { | ||
asset { | ||
...AssetFields | ||
} | ||
value | ||
...AmountFields | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
packages/indexer/documents/fragments/notifications/CommentNotificationFields.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
fragment CommentNotificationFields on CommentNotification { | ||
id | ||
comment { | ||
...PostFields | ||
...AnyPostFields | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
packages/indexer/documents/fragments/notifications/MentionNotificationFields.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
fragment MentionNotificationFields on MentionNotification { | ||
id | ||
post { | ||
...PostFields | ||
...AnyPostFields | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
packages/indexer/documents/fragments/notifications/QuoteNotificationFields.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
fragment QuoteNotificationFields on QuoteNotification { | ||
id | ||
quote { | ||
...PostFields | ||
...AnyPostFields | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
packages/indexer/documents/fragments/notifications/ReactionNotificationFields.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/indexer/documents/fragments/notifications/RepostNotificationFields.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
packages/indexer/documents/fragments/post/AnyPostFields.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
fragment AnyPostFields on AnyPost { | ||
... on Post { | ||
...PostFields | ||
} | ||
... on Repost { | ||
...RepostFields | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
packages/indexer/documents/fragments/post/PostActionFields.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
fragment PostActionFields on PostAction { | ||
... on SimpleCollectActionSettings { | ||
...SimpleCollectActionSettingsFields | ||
} | ||
... on UnknownActionSettings { | ||
...UnknownActionSettingsFields | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
packages/indexer/documents/fragments/post/collect/SimpleCollectActionSettingsFields.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
fragment SimpleCollectActionSettingsFields on SimpleCollectActionSettings { | ||
collectLimit | ||
collectNft | ||
endsAt | ||
followerOnly | ||
recipient | ||
referralFee | ||
amount { | ||
...AmountFields | ||
} | ||
contract { | ||
...NetworkAddressFields | ||
} | ||
recipients { | ||
recipient | ||
split | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
packages/indexer/documents/fragments/post/collect/UnknownActionSettingsFields.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
fragment UnknownActionSettingsFields on UnknownActionSettings { | ||
__typename | ||
} |
4 changes: 2 additions & 2 deletions
4
packages/indexer/documents/mutations/account/AddAccountManager.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/indexer/documents/mutations/account/EnableSignless.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/indexer/documents/mutations/account/RemoveAccountManager.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
query Post($request: PostRequest!) { | ||
post(request: $request) { | ||
...PostFields | ||
...AnyPostFields | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 1 addition & 6 deletions
7
packages/indexer/documents/queries/post/PostReferences.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.