diff --git a/package.json b/package.json index 626c988..a557878 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "@kobalte/core": "^0.9.6", "@kobalte/tailwindcss": "^0.5.0", "@modular-forms/solid": "^0.13.2", - "@mutinywallet/mutiny-wasm": "0.3.8", + "@mutinywallet/mutiny-wasm": "0.3.9", "@mutinywallet/waila-wasm": "^0.2.0", "@solid-primitives/upload": "^0.0.111", "@solidjs/meta": "^0.28.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 00dbbff..651a51e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,8 +11,8 @@ dependencies: specifier: ^0.13.2 version: 0.13.2(solid-js@1.7.5) '@mutinywallet/mutiny-wasm': - specifier: 0.3.8 - version: 0.3.8 + specifier: 0.3.9 + version: 0.3.9 '@mutinywallet/waila-wasm': specifier: ^0.2.0 version: 0.2.0 @@ -1688,8 +1688,8 @@ packages: solid-js: 1.7.5 dev: false - /@mutinywallet/mutiny-wasm@0.3.8: - resolution: {integrity: sha512-LM7CR3mL4vi2w1M2iUFuPyyorNVtoVMx5I7b8AjxJtNCINmid9W19A7xich0j0gegGi9o3D3VI5rflEc5BSzKg==} + /@mutinywallet/mutiny-wasm@0.3.9: + resolution: {integrity: sha512-BvjBSJsCu3htLoXNZTp68J3n6wvsPbzzJkqQ5Vq3zn+iqt2WbcvcCQ7P8/W28jLCvaQFqfL/vZrA7nULGO+KqA==} dev: false /@mutinywallet/waila-wasm@0.2.0: diff --git a/src/components/KitchenSink.tsx b/src/components/KitchenSink.tsx index 63a37b3..cd9f6a7 100644 --- a/src/components/KitchenSink.tsx +++ b/src/components/KitchenSink.tsx @@ -13,6 +13,7 @@ import { Network } from "~/logic/mutinyWalletSetup"; import { ExternalLink } from "./layout/ExternalLink"; import { Logs } from "./Logs"; import { Restart } from "./Restart"; +import { ResyncOnchain } from "./ResyncOnchain"; import { MiniStringShower } from "./DetailsModal"; // TODO: hopefully I don't have to maintain this type forever but I don't know how to pass it around otherwise @@ -437,6 +438,8 @@ export default function KitchenSink() {

+ +

diff --git a/src/components/ResyncOnchain.tsx b/src/components/ResyncOnchain.tsx new file mode 100644 index 0000000..e05a140 --- /dev/null +++ b/src/components/ResyncOnchain.tsx @@ -0,0 +1,27 @@ +import {Button, InnerCard, NiceP, VStack} from "~/components/layout"; +import {useMegaStore} from "~/state/megaStore"; + +export function ResyncOnchain() { + const [state, _] = useMegaStore(); + + async function reset() { + try { + await state.mutiny_wallet?.reset_onchain_tracker(); + } catch (e) { + console.error(e); + } + } + + return ( + + + + On-chain balance seems incorrect? Try re-syncing the on-chain wallet. + + + + + ); +}