Skip to content

Commit e41e3ce

Browse files
committed
lib/lnc: pull snakeKeysToCamel from lnc-core
1 parent f7da1a1 commit e41e3ce

File tree

2 files changed

+12
-81
lines changed

2 files changed

+12
-81
lines changed

lib/lnc.ts

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
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';
29
import { CredentialStore, LncConfig, WasmGlobal } from './types/lnc';
310
import LncCredentialStore from './util/credentialStore';
411
import { wasmLog as log } from './util/log';
5-
import { snakeKeysToCamel } from './util/objects';
612

713
/** The default values for the LncConfig options */
814
const 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() {

lib/util/objects.ts

Lines changed: 0 additions & 75 deletions
This file was deleted.

0 commit comments

Comments
 (0)