Skip to content
This repository has been archived by the owner on Apr 28, 2023. It is now read-only.

Commit

Permalink
feat: move LND node URIs to environment file (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael1011 authored Feb 18, 2019
1 parent f019200 commit 7d096d9
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 19 deletions.
4 changes: 4 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ SKIP_PREFLIGHT_CHECK=true
# API endpoint
REACT_APP_BOLTZ_API=http://localhost:9001

# LND node URIs
REACT_APP_BITCOIN_LND=027d947995af79c33de8efcbb9ba02a2a425d40c8e7380bbdd5025c0068fc13d86@testnet.boltz.exchange:9735
REACT_APP_LITECOIN_LND=022a73335e9511ee093ab0a741ade3244f7fb98bbf18a4cf17bb7a4f217ab58c48@testnet.boltz.exchange:10735

# Network configurations
REACT_APP_BITCOIN_NETWORK=bitcoinSimnet
REACT_APP_LITECOIN_NETWORK=litecoinSimnet
Expand Down
4 changes: 0 additions & 4 deletions src/constants/fees/index.js

This file was deleted.

4 changes: 4 additions & 0 deletions src/constants/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ import { Networks } from 'boltz-core';
// API endpoint
export const boltzApi = process.env.REACT_APP_BOLTZ_API;

// LND node URIs
export const bitcoinLnd = process.env.REACT_APP_BITCOIN_LND;
export const litecoinLnd = process.env.REACT_APP_LITECOIN_LND;

// Network configurations
export const bitcoinNetwork = Networks[process.env.REACT_APP_BITCOIN_NETWORK];
export const litecoinNetwork = Networks[process.env.REACT_APP_LITECOIN_NETWORK];
Expand Down
16 changes: 3 additions & 13 deletions src/views/faq/faq.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import View from '../../components/view';
import TaskBar from '../../components/taskbar';
import NodeInfo from '../../components/nodeinfo';
import BackGround from '../../components/background';
import { bitcoinLnd, litecoinLnd } from '../../constants';

const twitterLink = 'https://twitter.com/boltzhq';

Expand Down Expand Up @@ -69,19 +70,8 @@ class Faq extends React.Component {
<a href={twitterLink}>on request</a> we will also open one to you:
</p>

<NodeInfo
name={'Bitcoin LND node'}
uri={
'026165850492521f4ac8abd9bd8088123446d126f648ca35e60f88177dc149ceb2@104.196.200.39:9735'
}
/>

<NodeInfo
name={'Litecoin LND node'}
uri={
'02a4cb9d9c40ab508be3641a3b42be249e7cacfc7fea600485f9e37e46382aaa49@104.196.200.39:10735'
}
/>
<NodeInfo name={'Bitcoin LND node'} uri={bitcoinLnd} />
<NodeInfo name={'Litecoin LND node'} uri={litecoinLnd} />

<h2 className={classes.questionTitle}>
Why should one use a non custodial exchange?
Expand Down
3 changes: 1 addition & 2 deletions src/views/swap/swap.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React from 'react';
import PropTypes from 'prop-types';
import injectSheet from 'react-jss';
import View from '../../components/view';
import { FEE } from '../../constants/fees';
import Prompt from '../../components/prompt';
import Loading from '../../components/loading';
import Controls from '../../components/controls';
Expand Down Expand Up @@ -85,7 +84,7 @@ const Swap = ({
render={props => (
<Controls
loading={swapStatus.error}
text={`Fee: ${FEE} ${swapInfo.base}`}
text={`Fee: 0 ${swapInfo.base}`}
loadingText={'Invalid invoice'}
onPress={() => {
startSwap(swapInfo, props.nextStage);
Expand Down

0 comments on commit 7d096d9

Please sign in to comment.