Skip to content

Commit

Permalink
remove some unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
gandlafbtc committed Mar 21, 2024
1 parent 6a2544b commit b2fe1d2
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
3 changes: 1 addition & 2 deletions src/CashuMint.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import {
import type {
CheckStatePayload,
CheckStateResponse,
GetInfoResponse,
MeltPayload,
MeltResponse,
MintKeys,
MintActiveKeys,
MintAllKeysets,
PostRestoreResponse,
Expand Down
3 changes: 1 addition & 2 deletions src/CashuWallet.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { bytesToHex, hexToBytes, randomBytes } from '@noble/hashes/utils';
import { bytesToHex, randomBytes } from '@noble/hashes/utils';
import { CashuMint } from './CashuMint.js';
import * as dhke from './DHKE.js';
import { BlindedMessage } from './model/BlindedMessage.js';
Expand All @@ -17,7 +17,6 @@ import {
RequestMintPayload,
SendResponse,
SerializedBlindedMessage,
SerializedBlindedSignature,
SplitPayload,
CheckStateEnum,
Token,
Expand Down
2 changes: 1 addition & 1 deletion src/secrets.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { HDKey } from '@scure/bip32';
import { generateMnemonic, validateMnemonic, mnemonicToSeedSync } from '@scure/bip39';
import { generateMnemonic, mnemonicToSeedSync } from '@scure/bip39';
import { wordlist } from '@scure/bip39/wordlists/english';
import { encodeBase64toUint8 } from './base64';
import { bytesToNumber } from './utils';
Expand Down
2 changes: 0 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
AmountPreference,
InvoiceData,
Keys,
MintKeys,
Proof,
Token,
TokenEntry,
Expand All @@ -13,7 +12,6 @@ import {
import { TOKEN_PREFIX, TOKEN_VERSION } from './utils/Constants.js';
import { bytesToHex } from '@noble/curves/abstract/utils';
import { sha256 } from '@noble/hashes/sha256';
import { Buffer } from 'buffer/';

function splitAmount(value: number, amountPreference?: Array<AmountPreference>): Array<number> {
const chunks: Array<number> = [];
Expand Down

0 comments on commit b2fe1d2

Please sign in to comment.