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 4, 2024
1 parent 8ab700b commit f080324
Show file tree
Hide file tree
Showing 18 changed files with 196 additions and 62 deletions.
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
}
}
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
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
mutation AddAccountManager($request: AddAccountManagerRequest!) {
addAccountManager(request: $request) {
... on SelfFundedTransactionRequest {
reason
...SelfFundedTransactionRequestFields
}
... on SponsoredTransactionRequest {
reason
...SponsoredTransactionRequestFields
}
... on TransactionWillFail {
reason
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ mutation AssignUsernameToAccount($request: AssignUsernameToAccountRequest!) {
hash
}
... on SelfFundedTransactionRequest {
reason
...SelfFundedTransactionRequestFields
}
... on SponsoredTransactionRequest {
reason
...SponsoredTransactionRequestFields
}
... on TransactionWillFail {
reason
Expand Down
4 changes: 2 additions & 2 deletions packages/indexer/documents/mutations/account/Block.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ mutation Block($request: BlockRequest!) {
error
}
... on SelfFundedTransactionRequest {
reason
...SelfFundedTransactionRequestFields
}
... on SponsoredTransactionRequest {
reason
...SponsoredTransactionRequestFields
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ mutation CreateAccountWithUsername(
reason
}
... on SelfFundedTransactionRequest {
reason
...SelfFundedTransactionRequestFields
}
... on SponsoredTransactionRequest {
reason
...SponsoredTransactionRequestFields
}
... on TransactionWillFail {
reason
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
mutation EnableSignless {
enableSignless {
... on SelfFundedTransactionRequest {
reason
...SelfFundedTransactionRequestFields
}
... on SponsoredTransactionRequest {
reason
...SponsoredTransactionRequestFields
}
... on TransactionWillFail {
reason
Expand Down
4 changes: 2 additions & 2 deletions packages/indexer/documents/mutations/account/Follow.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ mutation Follow($request: CreateFollowRequest!) {
hash
}
... on SelfFundedTransactionRequest {
reason
...SelfFundedTransactionRequestFields
}
... on SponsoredTransactionRequest {
reason
...SponsoredTransactionRequestFields
}
... on TransactionWillFail {
reason
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
mutation RemoveAccountManager($request: RemoveAccountManagerRequest!) {
removeAccountManager(request: $request) {
... on SelfFundedTransactionRequest {
reason
...SelfFundedTransactionRequestFields
}
... on SponsoredTransactionRequest {
reason
...SponsoredTransactionRequestFields
}
... on TransactionWillFail {
reason
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ mutation SetAccountMetadata($request: SetAccountMetadataRequest!) {
... on SetAccountMetadataResponse {
hash
}
... on SponsoredTransactionRequest {
reason
}
... on SelfFundedTransactionRequest {
reason
...SelfFundedTransactionRequestFields
}
... on SponsoredTransactionRequest {
...SponsoredTransactionRequestFields
}
... on TransactionWillFail {
reason
Expand Down
4 changes: 2 additions & 2 deletions packages/indexer/documents/mutations/account/Unblock.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ mutation Unblock($request: UnblockRequest!) {
error
}
... on SelfFundedTransactionRequest {
reason
...SelfFundedTransactionRequestFields
}
... on SponsoredTransactionRequest {
reason
...SponsoredTransactionRequestFields
}
}
}
4 changes: 2 additions & 2 deletions packages/indexer/documents/mutations/account/Unfollow.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ mutation Unfollow($request: CreateUnfollowRequest!) {
hash
}
... on SelfFundedTransactionRequest {
reason
...SelfFundedTransactionRequestFields
}
... on SponsoredTransactionRequest {
reason
...SponsoredTransactionRequestFields
}
... on TransactionWillFail {
reason
Expand Down
4 changes: 2 additions & 2 deletions packages/indexer/documents/mutations/group/JoinGroup.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ mutation JoinGroup($request: JoinGroupRequest!) {
hash
}
... on SelfFundedTransactionRequest {
reason
...SelfFundedTransactionRequestFields
}
... on SponsoredTransactionRequest {
reason
...SponsoredTransactionRequestFields
}
... on TransactionWillFail {
reason
Expand Down
4 changes: 2 additions & 2 deletions packages/indexer/documents/mutations/group/LeaveGroup.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ mutation LeaveGroup($request: LeaveGroupRequest!) {
hash
}
... on SelfFundedTransactionRequest {
reason
...SelfFundedTransactionRequestFields
}
... on SponsoredTransactionRequest {
reason
...SponsoredTransactionRequestFields
}
... on TransactionWillFail {
reason
Expand Down
4 changes: 2 additions & 2 deletions packages/indexer/documents/mutations/post/CreatePost.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ mutation CreatePost($request: CreatePostRequest!) {
hash
}
... on SelfFundedTransactionRequest {
reason
...SelfFundedTransactionRequestFields
}
... on SponsoredTransactionRequest {
reason
...SponsoredTransactionRequestFields
}
... on TransactionWillFail {
reason
Expand Down
4 changes: 2 additions & 2 deletions packages/indexer/documents/mutations/post/DeletePost.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ mutation DeletePost($request: DeletePostRequest!) {
hash
}
... on SelfFundedTransactionRequest {
reason
...SelfFundedTransactionRequestFields
}
... on SponsoredTransactionRequest {
reason
...SponsoredTransactionRequestFields
}
... on TransactionWillFail {
reason
Expand Down
4 changes: 2 additions & 2 deletions packages/indexer/documents/mutations/post/Repost.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ mutation Repost($request: CreateRepostRequest!) {
hash
}
... on SelfFundedTransactionRequest {
reason
...SelfFundedTransactionRequestFields
}
... on SponsoredTransactionRequest {
reason
...SponsoredTransactionRequestFields
}
... on TransactionWillFail {
reason
Expand Down
Loading

0 comments on commit f080324

Please sign in to comment.