Skip to content

Commit 5527594

Browse files
authored
rename spent fields (#55)
1 parent 9c8e4da commit 5527594

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@magiceden-oss/runestone-lib",
3-
"version": "0.9.8-alpha",
3+
"version": "0.9.9-alpha",
44
"description": "",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",

src/indexer/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export namespace RuneLocation {
104104
}
105105
}
106106

107-
export type RuneSpentUtxoBalance = RuneUtxoBalance & { mempoolTxid: string };
107+
export type RuneSpentUtxoBalance = RuneUtxoBalance & { spentTxid: string };
108108

109109
export type RuneUtxoBalance = {
110110
txid: string;

src/indexer/updater.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ export class RuneUpdater implements RuneBlockIndex {
460460
runeId: additionalBalance.runeId,
461461
runeTicker: additionalBalance.runeTicker,
462462
amount: additionalBalance.amount,
463-
mempoolTxid: tx.txid,
463+
spentTxid: tx.txid,
464464
});
465465
}
466466
}

test/updater.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ describe('edict', () => {
914914
},
915915
runeTicker: 'TESTRUNE',
916916
amount: 400n,
917-
mempoolTxid: 'txid',
917+
spentTxid: 'txid',
918918
});
919919
expect(runeUpdater.spentBalances[1]).toMatchObject({
920920
txid: 'txid',
@@ -926,7 +926,7 @@ describe('edict', () => {
926926
},
927927
runeTicker: 'TESTRUNE',
928928
amount: 400n,
929-
mempoolTxid: 'childtxid',
929+
spentTxid: 'childtxid',
930930
});
931931
});
932932

0 commit comments

Comments
 (0)