Skip to content

Commit 1d2228a

Browse files
authored
Merge pull request #67 from lightninglabs/main
[Releases] v0.2.0-alpha
2 parents 1ad5a5e + 35b6489 commit 1d2228a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+222
-26133
lines changed

README.md

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -106,31 +106,6 @@ lnd.lightning.subscribeChannelEvents(
106106
);
107107
```
108108

109-
## Updating protos
110-
111-
First, update the service version under the `config` block in `package.json`.
112-
113-
eg.
114-
115-
```
116-
"config": {
117-
"lnd_release_tag": "v0.14.2-beta",
118-
"loop_release_tag": "v0.17.0-beta",
119-
"pool_release_tag": "v0.5.5-alpha",
120-
"faraday_release_tag": "v0.2.5-alpha",
121-
"protoc_version": "3.15.8"
122-
},
123-
```
124-
125-
Then run the following commands:
126-
127-
```
128-
# download schemas
129-
npm run update-protos
130-
# format schemas
131-
npm run generate
132-
```
133-
134109
## Further documentation
135110

136111
- https://docs.lightning.engineering/lightning-network-tools/lightning-terminal/lnc-npm

lib/api/createRpc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import LNC from '../lnc';
2-
import { subscriptionMethods } from '../types/proto/schema';
2+
import { subscriptionMethods } from '@lightninglabs/lnc-core';
33

44
// capitalize the first letter in the string
55
const capitalize = (s: string) => s && s[0].toUpperCase() + s.slice(1);

lib/api/faraday.ts

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

lib/api/index.ts

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

lib/api/lnd.ts

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

lib/api/loop.ts

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

lib/api/pool.ts

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

lib/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,5 @@ if (!WebAssembly.instantiateStreaming) {
1212
}
1313

1414
export type { LncConfig, CredentialStore } from './types/lnc';
15-
export * from './types/proto';
1615

1716
export default LNC;

lib/lnc.ts

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
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 = {
9-
wasmClientCode: 'https://lightning.engineering/lnc-v0.1.12-alpha.wasm',
15+
wasmClientCode: 'https://lightning.engineering/lnc-v0.2.0-alpha.wasm',
1016
namespace: 'default',
1117
serverHost: 'mailbox.terminal.lightning.today:443'
1218
} as Required<LncConfig>;
@@ -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/types/proto/autopilotrpc.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)