diff options
Diffstat (limited to 'impls/monero.ts/README.md')
| -rw-r--r-- | impls/monero.ts/README.md | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/impls/monero.ts/README.md b/impls/monero.ts/README.md index 773e8f6..fe06467 100644 --- a/impls/monero.ts/README.md +++ b/impls/monero.ts/README.md @@ -13,13 +13,14 @@ There are at least two ways to do so: an example of doing so. ```ts import { - loadDylib, + loadMoneroDylib, Wallet, WalletManager, } from "https://raw.githubusercontent.com/MrCyjaneK/monero_c/master/impls/monero.ts/mod.ts"; // Try to load dylib from the default lib/* path - loadDylib(); + // You can also use loadWowneroDylib for Wownero + loadMoneroDylib(); const wm = await WalletManager.new(); const wallet = await Wallet.create(wm, "./my_wallet", "password"); @@ -33,11 +34,11 @@ There are at least two ways to do so: ```ts import { dlopen } from "jsr:@denosaurs/plug"; // It's recommened to put the monero.ts github link into your import_map to reduce the url clutter - import { loadDylib, symbols, Wallet, WalletManager } from "https://raw.githubusercontent.com/MrCyjaneK/monero_c/master/impls/monero.ts/mod.ts"; + import { loadMoneroDylib, symbols, Wallet, WalletManager } from "https://raw.githubusercontent.com/MrCyjaneK/monero_c/master/impls/monero.ts/mod.ts"; // Load dylib loaded by plug const lib = await dlopen(..., symbols); - loadDylib(lib); + loadMoneroDylib(lib); const wm = await WalletManager.new(); const wallet = await Wallet.create(wm, "./my_wallet", "password"); |
