Skip to content

Commit 420aeb2

Browse files
author
pseudozach
committed
production server updates
1 parent 6d77576 commit 420aeb2

File tree

7 files changed

+32
-19
lines changed

7 files changed

+32
-19
lines changed

.env

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
SKIP_PREFLIGHT_CHECK=true
22

3+
# production
4+
HTTPS=true
5+
PORT=443
6+
SSL_CRT_FILE=fullchain.pem
7+
SSL_KEY_FILE=privkey.pem
8+
39
# Onion URL
410
REACT_APP_BOLTZ_ONION=http://random.onion
511

612
# API endpoint
713
# REACT_APP_BOLTZ_API=http://127.0.0.1:9001
8-
REACT_APP_BOLTZ_API=http://139.177.203.101:9001
14+
# REACT_APP_BOLTZ_API=http://139.177.203.101:9001
15+
REACT_APP_BOLTZ_API=https://ss.pseudozach.com:9001
916
REACT_APP_BOLTZ_API_ONION=http://random.onion/api
1017

1118
# LND node URIs
@@ -36,4 +43,4 @@ REACT_APP_RBTCSWAP_ADDRESS=0x4efc8b4323e532db6cd78d70a97f83bc7559cef3
3643
REACT_APP_ERC20SWAP_ADDRESS=0x3b15af794d4e39589a31089ce0b53a9e1994930f
3744
REACT_APP_ERC20TOKEN_ADDRESS=0x9f84F92d952f90027618089F6F2a3481f1a3fa0F
3845
REACT_APP_BOLTZ_ADDRESS=ST30VXWG00R13WK8RDXBSTHXNWGNKCAQTRYEMA9FK
39-
REACT_APP_STXSWAP_ADDRESS=STR187KT73T0A8M0DEWDX06TJR2B8WM0WP9VGZY3.stxswap_v3
46+
REACT_APP_STXSWAP_ADDRESS=STR187KT73T0A8M0DEWDX06TJR2B8WM0WP9VGZY3.stxswap_v3

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
22

3+
*.pem
4+
35
# dependencies
46
/node_modules
57
/.pnp

package-lock.json

+14-14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/swaptab/swaptabwrapper.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ const mainnet = new StacksMainnet();
5757
// const regtest = new StacksRegtest();
5858
// regtest.coreApiUrl = 'http://localhost:3999';
5959
let activeNetwork = mocknet
60+
activeNetwork = testnet
6061

6162
const appConfig = new AppConfig(['store_write', 'publish_data']);
6263
const userSession = new UserSession({ appConfig });
@@ -85,7 +86,7 @@ class SwapTabWrapper extends React.Component {
8586
disabled: false,
8687
error: false,
8788
inputError: false,
88-
base: 'SOV',
89+
base: 'STX',
8990
quote: 'BTC ⚡',
9091
minAmount: new BigNumber('0'),
9192
maxAmount: new BigNumber('0'),
@@ -212,7 +213,7 @@ class SwapTabWrapper extends React.Component {
212213
// this.$emit('exit', true);
213214
},
214215
};
215-
console.log("options: ", options);
216+
console.log("2options: ", options);
216217
await openContractCall(options);
217218

218219
// const onFinish = useCallback((data) => {
@@ -474,7 +475,7 @@ class SwapTabWrapper extends React.Component {
474475
componentDidMount = () => {
475476
const symbol = this.getSymbol();
476477
const limits = this.props.limits[symbol];
477-
// console.log("symbol, limits ", symbol, limits);
478+
console.log("symbol, limits ", symbol, limits);
478479
// console.log("swaptabwrapper.229 TODO revert")
479480
this.setState(
480481
{

src/views/refund/steps/InputDestinationAddress.js

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ let mocknet = new StacksMocknet();
3030
const testnet = new StacksTestnet();
3131
const mainnet = new StacksMainnet();
3232
let activeNetwork = mocknet
33+
activeNetwork = testnet
3334

3435

3536
const InputDestinationAddressStyles = theme => ({

src/views/reverse/steps/lockingFunds.js

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ let mocknet = new StacksMocknet();
3131
const testnet = new StacksTestnet();
3232
const mainnet = new StacksMainnet();
3333
let network = mocknet
34+
network = testnet
3435

3536
const styles = () => ({
3637
wrapper: {

src/views/swap/steps/sendTransaction.js

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ let mocknet = new StacksMocknet();
4545
const testnet = new StacksTestnet();
4646
const mainnet = new StacksMainnet();
4747
let activeNetwork = mocknet
48+
activeNetwork = testnet
4849

4950
const appConfig = new AppConfig(['store_write', 'publish_data']);
5051
const userSession = new UserSession({ appConfig });

0 commit comments

Comments
 (0)