-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigs.js
33 lines (31 loc) · 984 Bytes
/
configs.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
* Filename: /Users/naviocean/Working/HAWKING/ssc/configs.js
* Path: /Users/naviocean/Working/HAWKING/ssc
* Created Date: Tuesday, September 11th 2018, 9:56:52 am
* Author: Navi Ocean
*
* Copyright (c) 2018 Hawking LLC
*/
require('dotenv').config();
const StellarSdk = require('stellar-sdk');
const isProduction = process.env.NODE_ENV === 'development' ? false : true;
let server;
if (isProduction) {
console.log('production');
server = new StellarSdk.Server('https://horizon.stellar.org');
StellarSdk.Network.usePublicNetwork();
} else {
console.log('development');
server = new StellarSdk.Server('https://horizon-testnet.stellar.org');
StellarSdk.Network.useTestNetwork();
}
module.exports = {
issueAccount: {
public: 'GB3GXQSSXC3T7UTLHQXXZTA34SCWCJN6ZDNFA2VWH6IU3OXGNQYJPMRG'
},
hawkingAccount: {
public: 'GAGZP2FTOJC5NBF5NCPWSUPLFXQL256GKCWIBLX7ZKFKHOL2TECUR6OE',
secret: 'SAZP2XLTJA7VVRX3TVTCC3E73U3AR2QKB75L3YOGZNCSRYLOY7GKLMOU'
},
server: server
};