Feature: Use napi-rs instead of neon

This commit is contained in:
junderw
2023-06-24 11:21:58 -07:00
committed by Mononaut
parent 20dbcf14c9
commit 35764a29a7
11 changed files with 489 additions and 166 deletions

13
backend/rust-gbt/index.d.ts vendored Normal file
View File

@@ -0,0 +1,13 @@
/* tslint:disable */
/* eslint-disable */
/* auto-generated by NAPI-RS */
export function make(mempoolBuffer: Uint8Array, callback: (arg0: GbtResult) => void): void
export function update(newTxs: Uint8Array, removeTxs: Uint8Array, callback: (arg0: GbtResult) => void): void
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>>)
}