Skip to content

Commit

Permalink
fix: move ln to providers
Browse files Browse the repository at this point in the history
  • Loading branch information
reneaaron committed Apr 10, 2023
1 parent ceb2774 commit cac4e1e
Show file tree
Hide file tree
Showing 12 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/app/screens/Nostr/ConfirmSignMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import ScreenHeader from "~/app/components/ScreenHeader";
import { useNavigationState } from "~/app/hooks/useNavigationState";
import { USER_REJECTED_ERROR } from "~/common/constants";
import msg from "~/common/lib/msg";
import { Event } from "~/extension/ln/nostr/types";
import { Event } from "~/extension/providers/nostr/types";
import type { OriginData } from "~/types";

function ConfirmSignMessage() {
Expand Down
2 changes: 1 addition & 1 deletion src/extension/background-script/actions/nostr/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Hex from "crypto-js/enc-hex";
import sha256 from "crypto-js/sha256";
import db from "~/extension/background-script/db";
import state from "~/extension/background-script/state";
import { Event } from "~/extension/ln/nostr/types";
import { Event } from "~/extension/providers/nostr/types";

export async function hasPermissionFor(method: string, host: string) {
if (!host) {
Expand Down
2 changes: 1 addition & 1 deletion src/extension/background-script/nostr/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { AES } from "crypto-js";
import Base64 from "crypto-js/enc-base64";
import Hex from "crypto-js/enc-hex";
import Utf8 from "crypto-js/enc-utf8";
import { Event } from "~/extension/ln/nostr/types";
import { Event } from "~/extension/providers/nostr/types";

import { getEventHash, signEvent } from "../actions/nostr/helpers";

Expand Down
2 changes: 1 addition & 1 deletion src/extension/inpage-script/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ABORT_PROMPT_ERROR, USER_REJECTED_ERROR } from "~/common/constants";

import WebLNProvider from "../ln/webln";
import WebLNProvider from "../providers/webln";

if (document) {
// window.webln is normally loaded onstart (see onstart.js)
Expand Down
2 changes: 1 addition & 1 deletion src/extension/inpage-script/nostr.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import NostrProvider from "../ln/nostr";
import NostrProvider from "../providers/nostr";

if (document) {
window.nostr = new NostrProvider();
Expand Down
4 changes: 2 additions & 2 deletions src/extension/inpage-script/webln.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import WebBTCProvider from "../ln/webbtc";
import WebLNProvider from "../ln/webln";
import WebBTCProvider from "../providers/webbtc";
import WebLNProvider from "../providers/webln";

if (document) {
window.webln = new WebLNProvider();
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
WebLNNode,
} from "~/extension/background-script/connectors/connector.interface";

import { Event } from "./extension/ln/nostr/types";
import { Event } from "./extension/providers/nostr/types";

export type ConnectorType = keyof typeof connectors;

Expand Down

0 comments on commit cac4e1e

Please sign in to comment.