-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: move SessionKVStore into extension, so we can reuse other stora…
…ge types in Namadillo
- Loading branch information
Showing
11 changed files
with
55 additions
and
21 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
4 changes: 2 additions & 2 deletions
4
packages/storage/src/store/SessionKVStore.ts → ...extension/src/extension/SessionKVStore.ts
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,7 +1,8 @@ | ||
export * from "./ExtensionBroadcaster"; | ||
export * from "./ExtensionRequester"; | ||
export * from "./ExtensionMessenger"; | ||
export * from "./ExtensionMessengerMock"; | ||
export * from "./ExtensionRequester"; | ||
export * from "./ExtensionRouter"; | ||
export * from "./guards"; | ||
export * from "./SessionKVStore"; | ||
export * from "./utils"; |
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,3 +1,12 @@ | ||
// TODO | ||
import { atomWithAsyncStorage } from "atoms/utils"; | ||
import { MaspParam, MaspParamStorage } from "types"; | ||
|
||
// Masp Params Atom | ||
export const MASP_PARAMS_KEY = "masp-params"; | ||
export const maspParamAtom = atomWithAsyncStorage<MaspParamStorage>( | ||
MASP_PARAMS_KEY, | ||
{ | ||
[MaspParam.Output]: null, | ||
[MaspParam.Spend]: null, | ||
[MaspParam.Convert]: null, | ||
} | ||
); |
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,7 +1,6 @@ | ||
export * from "./ExtensionKVStore"; | ||
export * from "./IndexedDBKVStore"; | ||
export * from "./LocalKVStore"; | ||
export * from "./SessionKVStore"; | ||
export * from "./MemoryKVStore"; | ||
export * from "./Store"; | ||
export * from "./types"; |
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