Use tokio async/await instead of callbacks

This commit is contained in:
junderw
2023-06-24 19:28:19 -07:00
committed by Mononaut
parent 99101ddc4f
commit 46fb6a68eb
6 changed files with 148 additions and 67 deletions

View File

@@ -3,8 +3,8 @@
/* 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
export function make(mempoolBuffer: Uint8Array): Promise<GbtResult>
export function update(newTxs: Uint8Array, removeTxs: Uint8Array): Promise<GbtResult>
/**
* The result from calling the gbt function.
*