feat: wownero typescript bindings, regression tests (#71)

* regression tests
* ci: move regression_check to full_check workflow, reuse artifact build
* feat: support wownero in monero.ts bindings
* ci: test wownero regressions as well
* extract wownero-cli as wownero
* actually load wownero when specified
* fix: commitUR not being a symbol in wownero
This commit is contained in:
Mateusz Franik
2024-10-16 07:55:11 +02:00
committed by GitHub
parent 44fd5e17bb
commit fd7bb6ae1c
17 changed files with 1072 additions and 628 deletions

View File

@@ -1,5 +1,4 @@
import { dylib } from "./bindings.ts";
import { Sanitizer } from "./utils.ts";
import { getSymbol, Sanitizer } from "./utils.ts";
export type WalletManagerPtr = Deno.PointerObject<"walletManager">;
@@ -17,7 +16,7 @@ export class WalletManager {
}
static async new(sanitizer?: Sanitizer) {
const ptr = await dylib.symbols.MONERO_WalletManagerFactory_getWalletManager();
const ptr = await getSymbol("WalletManagerFactory_getWalletManager")();
if (!ptr) {
sanitizer?.();
throw new Error("Failed retrieving wallet manager");