Skip to content

Commit c2d1c5d

Browse files
committed
feat: eModeToggle action
1 parent 697ede4 commit c2d1c5d

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

packages/graphql/src/transactions.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { TransactionFragment } from './fragments';
1+
import { TransactionFragment, TransactionRequestFragment } from './fragments';
22
import { graphql, type RequestOf } from './graphql';
33

44
/**
@@ -52,3 +52,16 @@ export const WithdrawQuery = graphql(
5252
[TransactionFragment],
5353
);
5454
export type WithdrawRequest = RequestOf<typeof WithdrawQuery>;
55+
56+
/**
57+
* @internal
58+
*/
59+
export const EModeToggleQuery = graphql(
60+
`query EModeToggle($request: EmodeToggleRequest!) {
61+
value: eModeToggle(request: $request) {
62+
...TransactionRequest
63+
}
64+
}`,
65+
[TransactionRequestFragment],
66+
);
67+
export type EModeToggleRequest = RequestOf<typeof EModeToggleQuery>;

0 commit comments

Comments
 (0)