Skip to content

Commit

Permalink
rename spent fields (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
me-rob authored Apr 21, 2024
1 parent 9c8e4da commit 5527594
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@magiceden-oss/runestone-lib",
"version": "0.9.8-alpha",
"version": "0.9.9-alpha",
"description": "",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion 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 RuneSpentUtxoBalance = RuneUtxoBalance & { mempoolTxid: string };
export type RuneSpentUtxoBalance = RuneUtxoBalance & { spentTxid: string };

export type RuneUtxoBalance = {
txid: string;
Expand Down
2 changes: 1 addition & 1 deletion src/indexer/updater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ export class RuneUpdater implements RuneBlockIndex {
runeId: additionalBalance.runeId,
runeTicker: additionalBalance.runeTicker,
amount: additionalBalance.amount,
mempoolTxid: tx.txid,
spentTxid: tx.txid,
});
}
}
Expand Down
4 changes: 2 additions & 2 deletions test/updater.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ describe('edict', () => {
},
runeTicker: 'TESTRUNE',
amount: 400n,
mempoolTxid: 'txid',
spentTxid: 'txid',
});
expect(runeUpdater.spentBalances[1]).toMatchObject({
txid: 'txid',
Expand All @@ -926,7 +926,7 @@ describe('edict', () => {
},
runeTicker: 'TESTRUNE',
amount: 400n,
mempoolTxid: 'childtxid',
spentTxid: 'childtxid',
});
});

Expand Down

0 comments on commit 5527594

Please sign in to comment.