Skip to content

Commit

Permalink
fix export types
Browse files Browse the repository at this point in the history
  • Loading branch information
me-rob committed Apr 21, 2024
1 parent ecd3c7b commit 1c44d16
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { Etching } from './src/etching';
import { RuneEtchingSpec } from './src/indexer';
import { u128, u32, u64, u8 } from './src/integer';
import { None, Option, Some } from './src/monads';
import { Rune } from './src/rune';
import { RuneId } from './src/runeid';
import { Runestone, RunestoneTx } from './src/runestone';
import { SpacedRune } from './src/spacedrune';
Expand All @@ -19,7 +18,7 @@ export {
RuneEtchingSpec,
RuneLocation,
RuneMintCount,
RuneOutput,
RuneSpentUtxoBalance,
RuneUpdater,
RuneUtxoBalance,
RunestoneIndexer,
Expand All @@ -32,8 +31,8 @@ export { Network } from './src/network';
export {
BitcoinRpcClient,
GetBlockParams,
GetBlockhashParams,
GetBlockReturn,
GetBlockhashParams,
GetRawTransactionParams,
GetRawTransactionReturn,
RpcResponse,
Expand Down
4 changes: 2 additions & 2 deletions src/indexer/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export namespace RuneLocation {
}
}

export type SpentRuneUtxoBalance = RuneUtxoBalance & { mempoolTxid: string };
export type RuneSpentUtxoBalance = RuneUtxoBalance & { mempoolTxid: string };

export type RuneUtxoBalance = {
txid: string;
Expand Down Expand Up @@ -153,6 +153,6 @@ export type RuneBlockIndex = {
etchings: RuneEtching[];
mintCounts: RuneMintCount[];
utxoBalances: RuneUtxoBalance[];
spentBalances: SpentRuneUtxoBalance[];
spentBalances: RuneSpentUtxoBalance[];
burnedBalances: RuneBalance[];
};
4 changes: 2 additions & 2 deletions src/indexer/updater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
RuneMintCount,
RuneUtxoBalance,
RunestoneStorage,
SpentRuneUtxoBalance,
RuneSpentUtxoBalance,
} from './types';

function isScriptPubKeyHexOpReturn(scriptPubKeyHex: string) {
Expand All @@ -39,7 +39,7 @@ export class RuneUpdater implements RuneBlockIndex {
block: BlockInfo;
etchings: RuneEtching[] = [];
utxoBalances: RuneUtxoBalance[] = [];
spentBalances: SpentRuneUtxoBalance[] = [];
spentBalances: RuneSpentUtxoBalance[] = [];

private _minimum: Rune;
private _mintCountsByRuneLocation: Map<string, RuneMintCount> = new Map();
Expand Down

0 comments on commit 1c44d16

Please sign in to comment.