Skip to content

Commit

Permalink
Remove all references to WASM
Browse files Browse the repository at this point in the history
  • Loading branch information
kaloudis committed Feb 25, 2023
1 parent c368cb6 commit 2970bf7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ import LNC from ‘@lightninglabs/lnc-rn’;
const pairingPhrase = ‘artefact morning piano photo consider light’;
// default connection using WASM from CDN
// WASM loaded on object creation
// default connection
// default host: mailbox.terminal.lightning.today:443
const lnc = new LNC({
pairingPhrase
Expand Down
4 changes: 2 additions & 2 deletions lib/api/createRpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { subscriptionMethods } from '@lightninglabs/lnc-core';
const capitalize = (s: string) => s && s[0].toUpperCase() + s.slice(1);

/**
* Creates a typed Proxy object which calls the WASM request or
* subscribe methods depending on which function is called on the object
* Creates a typed Proxy object which calls the request or subscribe
* methods depending on which function is called on the object
*/
export function createRpc<T extends object>(packageName: string, lnc: LNC): T {
const rpc = {};
Expand Down
4 changes: 2 additions & 2 deletions lib/lnc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
import { createRpc } from './api/createRpc';
import { CredentialStore, LncConfig } from './types/lnc';
import LncCredentialStore from './util/credentialStore';
import { wasmLog as log } from './util/log';
import { log } from './util/log';

/** The default values for the LncConfig options */
const DEFAULT_CONFIG = {
Expand Down Expand Up @@ -138,7 +138,7 @@ export default class LNC {
}

/**
* Emulates a GRPC request but uses the WASM client instead to communicate with the LND node
* Emulates a GRPC request but uses the mobile client instead to communicate with the LND node
* @param method the GRPC method to call on the service
* @param request The GRPC request message to send
*/
Expand Down
5 changes: 0 additions & 5 deletions lib/util/log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,6 @@ export const log = Logger.fromEnv('main');
*/
export const grpcLog = Logger.fromEnv('grpc');

/**
* the logger for WASM requests and responses
*/
export const wasmLog = Logger.fromEnv('wasm');

/**
* the logger for state updates via mobx actions
*/
Expand Down

0 comments on commit 2970bf7

Please sign in to comment.