mirror of
https://github.com/mempool/mempool.git
synced 2025-02-23 22:46:54 +01:00
21 lines
889 B
TypeScript
21 lines
889 B
TypeScript
/* tslint:disable */
|
|
/* eslint-disable */
|
|
|
|
/* auto-generated by NAPI-RS */
|
|
|
|
export function make(mempoolBuffer: Uint8Array, callback: (result: GbtResult) => void): void
|
|
export function update(newTxs: Uint8Array, removeTxs: Uint8Array, callback: (result: GbtResult) => void): void
|
|
/**
|
|
* The result from calling the gbt function.
|
|
*
|
|
* This tuple contains the following:
|
|
* blocks: A 2D Vector of transaction IDs (u32), the inner Vecs each represent a block.
|
|
* clusters: A 2D Vector of transaction IDs representing clusters of dependent mempool transactions
|
|
* rates: A Vector of tuples containing transaction IDs (u32) and effective fee per vsize (f64)
|
|
*/
|
|
export class GbtResult {
|
|
blocks: Array<Array<number>>
|
|
clusters: Array<Array<number>>
|
|
rates: Array<Array<number>>
|
|
constructor(blocks: Array<Array<number>>, clusters: Array<Array<number>>, rates: Array<Array<number>>)
|
|
}
|