Added bch-dex-lib and Nostr libraries

This commit is contained in:
Chris Troutner
2025-03-05 19:03:14 -08:00
parent 1b16f62b99
commit 77d83349c1
10 changed files with 252 additions and 4 deletions
+10
View File
@@ -71,6 +71,16 @@ function App (props) {
addToModal('Getting BCH spot price in USD', appData)
await asyncLoad.getUSDExchangeRate(walletTemp, appData.updateBchWalletState, appData)
// Load the DEX library.
addToModal('Loading DEX Library', appData)
const dexLib = await asyncLoad.getDexLib({bchWallet: walletTemp})
appData.setDexLib(dexLib)
// Load the Nostr library.
addToModal('Loading Nostr Library', appData)
const nostrLib = await asyncLoad.getNostrLib({bchWallet: walletTemp})
appData.setNostr(nostrLib)
// Update state
appData.setShowStartModal(false)
appData.setDenyClose(false)