@@ -11,6 +11,13 @@ const policy = require('../protocol/policy');
1111const util = require ( '../utils/util' ) ;
1212const TX = require ( '../primitives/tx' ) ;
1313
14+ /** @typedef {import('../types').Hash } Hash */
15+ /** @typedef {import('../types').HexHash } HexHash */
16+ /** @typedef {import('../types').Amount } AmountValue */
17+ /** @typedef {import('../types').Rate } Rate */
18+ /** @typedef {import('../types').BufioWriter } BufioWriter */
19+ /** @typedef {import('../coins/coinview') } CoinView */
20+
1421/**
1522 * Mempool Entry
1623 * Represents a mempool entry.
@@ -26,12 +33,12 @@ class MempoolEntry extends bio.Struct {
2633 /**
2734 * Create a mempool entry.
2835 * @constructor
29- * @param {Object } options
36+ * @param {Object } [ options]
3037 * @param {TX } options.tx - Transaction in mempool.
3138 * @param {Number } options.height - Entry height.
3239 * @param {Number } options.priority - Entry priority.
3340 * @param {Number } options.time - Entry time.
34- * @param {Amount } options.value - Value of on-chain coins.
41+ * @param {AmountValue } options.value - Value of on-chain coins.
3542 */
3643
3744 constructor ( options ) {
@@ -57,7 +64,6 @@ class MempoolEntry extends bio.Struct {
5764
5865 /**
5966 * Inject properties from options object.
60- * @private
6167 * @param {Object } options
6268 */
6369
@@ -80,8 +86,8 @@ class MempoolEntry extends bio.Struct {
8086
8187 /**
8288 * Inject properties from transaction.
83- * @private
8489 * @param {TX } tx
90+ * @param {CoinView } view
8591 * @param {Number } height
8692 */
8793
@@ -123,6 +129,7 @@ class MempoolEntry extends bio.Struct {
123129 /**
124130 * Create a mempool entry from a TX.
125131 * @param {TX } tx
132+ * @param {CoinView } view
126133 * @param {Number } height - Entry height.
127134 * @returns {MempoolEntry }
128135 */
@@ -171,7 +178,7 @@ class MempoolEntry extends bio.Struct {
171178
172179 /**
173180 * Get fee.
174- * @returns {Amount }
181+ * @returns {AmountValue }
175182 */
176183
177184 getFee ( ) {
@@ -180,7 +187,7 @@ class MempoolEntry extends bio.Struct {
180187
181188 /**
182189 * Get delta fee.
183- * @returns {Amount }
190+ * @returns {AmountValue }
184191 */
185192
186193 getDeltaFee ( ) {
@@ -284,7 +291,8 @@ class MempoolEntry extends bio.Struct {
284291
285292 /**
286293 * Serialize entry to a buffer.
287- * @returns {Buffer }
294+ * @param {BufioWriter } bw
295+ * @returns {BufioWriter }
288296 */
289297
290298 write ( bw ) {
@@ -303,9 +311,8 @@ class MempoolEntry extends bio.Struct {
303311
304312 /**
305313 * Inject properties from serialized data.
306- * @private
307- * @param {Buffer } data
308- * @returns {MempoolEntry }
314+ * @param {bio.BufferReader } br
315+ * @returns {this }
309316 */
310317
311318 read ( br ) {
0 commit comments