There was an error while loading. Please reload this page.
1 parent f455545 commit 834390fCopy full SHA for 834390f
1 file changed
packages/neuron-wallet/src/controllers/skip-data-and-type.ts
@@ -0,0 +1,25 @@
1
+import { CatchControllerError } from 'decorators/errors'
2
+import { ResponseCode } from 'utils/const'
3
+import SkipDataAndType from 'services/skip-data-and-type'
4
+
5
+export default class SkipDataAndTypeController {
6
+ @CatchControllerError
7
+ public static async update(open: boolean): Promise<Controller.Response<boolean>> {
8
+ SkipDataAndType.getInstance().update(open)
9
10
+ return {
11
+ status: ResponseCode.Success,
12
+ result: open,
13
+ }
14
15
16
17
+ public static async get(): Promise<Controller.Response<boolean>> {
18
+ const open = SkipDataAndType.getInstance().get()
19
20
21
22
23
24
25
+}
0 commit comments