chore: Update translations
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
8137317bfe
commit
27a111466a
@ -20,14 +20,12 @@ const ConnectCashu = () => {
|
|||||||
throw new Error("Mint URL is required");
|
throw new Error("Mint URL is required");
|
||||||
}
|
}
|
||||||
|
|
||||||
const connection = new CashuWallet(
|
const connection = new CashuWallet({
|
||||||
{
|
|
||||||
url: config,
|
url: config,
|
||||||
keys: {},
|
keys: {},
|
||||||
proofs: [],
|
proofs: [],
|
||||||
keysets: [],
|
keysets: [],
|
||||||
},
|
});
|
||||||
);
|
|
||||||
await connection.login();
|
await connection.login();
|
||||||
const info = await connection.getInfo();
|
const info = await connection.getInfo();
|
||||||
const newWallet = {
|
const newWallet = {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* eslint-disable max-lines */
|
/* eslint-disable max-lines */
|
||||||
import { LNWallet,Sats, WalletInvoice } from "@snort/wallet";
|
import { LNWallet, Sats, WalletInvoice } from "@snort/wallet";
|
||||||
import classNames from "classnames";
|
import classNames from "classnames";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { FormattedMessage, FormattedNumber, useIntl } from "react-intl";
|
import { FormattedMessage, FormattedNumber, useIntl } from "react-intl";
|
||||||
|
@ -155,7 +155,6 @@ export function useWallet() {
|
|||||||
return wallet;
|
return wallet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds a wallet config for WebLN if detected
|
* Adds a wallet config for WebLN if detected
|
||||||
*/
|
*/
|
||||||
|
@ -104,7 +104,7 @@ export type Sats = number;
|
|||||||
export type MilliSats = number;
|
export type MilliSats = number;
|
||||||
|
|
||||||
export interface WalletEvents {
|
export interface WalletEvents {
|
||||||
change: (data?: string) => void
|
change: (data?: string) => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LNWallet = EventEmitter<WalletEvents> & {
|
export type LNWallet = EventEmitter<WalletEvents> & {
|
||||||
@ -122,7 +122,7 @@ export type LNWallet = EventEmitter<WalletEvents> & {
|
|||||||
canGetBalance: () => boolean;
|
canGetBalance: () => boolean;
|
||||||
canCreateInvoice: () => boolean;
|
canCreateInvoice: () => boolean;
|
||||||
canPayInvoice: () => boolean;
|
canPayInvoice: () => boolean;
|
||||||
}
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load wallet by kind
|
* Load wallet by kind
|
||||||
@ -152,4 +152,4 @@ export function loadWallet(kind: WalletKind, data: string | undefined) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export { LNCWallet, WebLNWallet, LNDHubWallet, NostrConnectWallet, AlbyWallet, CashuWallet }
|
export { LNCWallet, WebLNWallet, LNDHubWallet, NostrConnectWallet, AlbyWallet, CashuWallet };
|
||||||
|
Loading…
Reference in New Issue
Block a user