mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2025-12-17 06:14:21 +01:00
update to mutiny-wasm
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "mws",
|
||||
"version": "0.1.0",
|
||||
"scripts": {
|
||||
"dev": "solid-start dev",
|
||||
"build": "solid-start build",
|
||||
@@ -31,7 +32,7 @@
|
||||
"@kobalte/core": "^0.8.2",
|
||||
"@kobalte/tailwindcss": "^0.5.0",
|
||||
"@motionone/solid": "^10.16.0",
|
||||
"@mutinywallet/node-manager": "^0.2.4",
|
||||
"@mutinywallet/mutiny-wasm": "^0.2.4",
|
||||
"@nostr-dev-kit/ndk": "^0.0.13",
|
||||
"@solidjs/meta": "^0.28.4",
|
||||
"@solidjs/router": "^0.8.2",
|
||||
|
||||
6
pnpm-lock.yaml
generated
6
pnpm-lock.yaml
generated
@@ -10,7 +10,7 @@ dependencies:
|
||||
'@motionone/solid':
|
||||
specifier: ^10.16.0
|
||||
version: 10.16.0(solid-js@1.7.3)
|
||||
'@mutinywallet/node-manager':
|
||||
'@mutinywallet/mutiny-wasm':
|
||||
specifier: ^0.2.4
|
||||
version: 0.2.4
|
||||
'@nostr-dev-kit/ndk':
|
||||
@@ -1621,8 +1621,8 @@ packages:
|
||||
tslib: 2.5.0
|
||||
dev: false
|
||||
|
||||
/@mutinywallet/node-manager@0.2.4:
|
||||
resolution: {integrity: sha512-Zl8Xw5WzlFiKr7mCNT/gqUp4GUPk3ZdS2l/3/zS8V9jwJAly9C0WjMoOmrg0ahO2vZ035DHzH4uQRbkWjUCFzQ==}
|
||||
/@mutinywallet/mutiny-wasm@0.2.4:
|
||||
resolution: {integrity: sha512-b7m0KH1KwSQiKHiCQb9vQk/a1e7b+I56GQxTbLA3JOfAf5WFGBE3V4zKFQemoO5BCGEp10IU6BbMyp9yXILs2Q==}
|
||||
dev: false
|
||||
|
||||
/@noble/hashes@1.2.0:
|
||||
|
||||
@@ -2,7 +2,7 @@ import { useMegaStore } from "~/state/megaStore";
|
||||
import { Card, Hr, SmallHeader, Button, InnerCard } from "~/components/layout";
|
||||
import PeerConnectModal from "~/components/PeerConnectModal";
|
||||
import { For, Show, Suspense, createResource, createSignal } from "solid-js";
|
||||
import { MutinyChannel, MutinyPeer } from "@mutinywallet/node-manager";
|
||||
import { MutinyChannel, MutinyPeer } from "@mutinywallet/mutiny-wasm";
|
||||
import { TextField } from "@kobalte/core";
|
||||
import mempoolTxUrl from "~/utils/mempoolTxUrl";
|
||||
import eify from "~/utils/eify";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
import init, { NodeManager } from '@mutinywallet/node-manager';
|
||||
import init, { NodeManager } from '@mutinywallet/mutiny-wasm';
|
||||
|
||||
export type NodeManagerSettingStrings = {
|
||||
network?: string, proxy?: string, esplora?: string, rgs?: string, lsp?: string,
|
||||
|
||||
@@ -6,7 +6,7 @@ import { Button, ButtonLink, DefaultMain, LargeHeader, SafeArea, SmallHeader } f
|
||||
import { Paste } from "~/assets/svg/Paste";
|
||||
import { Scan } from "~/assets/svg/Scan";
|
||||
import { useMegaStore } from "~/state/megaStore";
|
||||
import { MutinyInvoice, NodeManager } from "@mutinywallet/node-manager";
|
||||
import { MutinyInvoice, NodeManager } from "@mutinywallet/mutiny-wasm";
|
||||
import { bip21decode } from "~/utils/TEMPbip21";
|
||||
import { AmountEditable } from "~/components/AmountEditable";
|
||||
import { useLocation } from "solid-start";
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
import { ParentComponent, createContext, createEffect, onMount, useContext } from "solid-js";
|
||||
import { createStore } from "solid-js/store";
|
||||
import { setupNodeManager } from "~/logic/nodeManagerSetup";
|
||||
import { MutinyBalance, NodeManager } from "@mutinywallet/node-manager";
|
||||
import { MutinyBalance, NodeManager } from "@mutinywallet/mutiny-wasm";
|
||||
|
||||
const MegaStoreContext = createContext<MegaStore>();
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { NodeManager } from "@mutinywallet/node-manager";
|
||||
import { NodeManager } from "@mutinywallet/mutiny-wasm";
|
||||
|
||||
export function satsToUsd(amount: number | undefined, price: number, formatted: boolean): string {
|
||||
if (typeof amount !== "number" || isNaN(amount)) {
|
||||
|
||||
@@ -48,6 +48,6 @@ export default defineConfig({
|
||||
},
|
||||
optimizeDeps: {
|
||||
// This is necessary because otherwise `vite dev` can't find the wasm
|
||||
exclude: ["@mutinywallet/node-manager"],
|
||||
exclude: ["@mutinywallet/mutiny-wasm"],
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user