-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move zkp snap connector to store (#44)
* move mm zkp snap to identity store
- Loading branch information
Showing
22 changed files
with
596 additions
and
757 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
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,6 +1,14 @@ | ||
import { config } from '@config' | ||
import { JsonApiClient } from '@distributedlab/jac' | ||
import { enableSnap, SnapConnector } from '@rarimo/rarime-connector' | ||
|
||
export const api = new JsonApiClient({ | ||
baseUrl: config.API_URL, | ||
}) | ||
|
||
export let zkpSnap: SnapConnector | ||
|
||
export const initZkpSnap = async () => { | ||
const snap = await enableSnap() | ||
zkpSnap = await snap.getConnector() | ||
} |
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,3 +1,2 @@ | ||
export * from './metamask-zkp-snap' | ||
export { default as ToastsManager } from './toasts-manager' | ||
export * from './web3' |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.