File tree Expand file tree Collapse file tree 2 files changed +12
-81
lines changed Expand file tree Collapse file tree 2 files changed +12
-81
lines changed Original file line number Diff line number Diff line change 1- import { FaradayApi , LndApi , LoopApi , PoolApi } from './api' ;
1+ import {
2+ FaradayApi ,
3+ LndApi ,
4+ LoopApi ,
5+ PoolApi ,
6+ snakeKeysToCamel
7+ } from '@lightninglabs/lnc-core' ;
8+ import { createRpc } from './api/createRpc' ;
29import { CredentialStore , LncConfig , WasmGlobal } from './types/lnc' ;
310import LncCredentialStore from './util/credentialStore' ;
411import { wasmLog as log } from './util/log' ;
5- import { snakeKeysToCamel } from './util/objects' ;
612
713/** The default values for the LncConfig options */
814const DEFAULT_CONFIG = {
@@ -52,10 +58,10 @@ export default class LNC {
5258 const g = global || window || self ;
5359 this . go = new g . Go ( ) ;
5460
55- this . lnd = new LndApi ( this ) ;
56- this . loop = new LoopApi ( this ) ;
57- this . pool = new PoolApi ( this ) ;
58- this . faraday = new FaradayApi ( this ) ;
61+ this . lnd = new LndApi ( createRpc , this ) ;
62+ this . loop = new LoopApi ( createRpc , this ) ;
63+ this . pool = new PoolApi ( createRpc , this ) ;
64+ this . faraday = new FaradayApi ( createRpc , this ) ;
5965 }
6066
6167 private get wasm ( ) {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments