Skip to content

Commit

Permalink
change config beta
Browse files Browse the repository at this point in the history
  • Loading branch information
a-novi committed Oct 19, 2023
1 parent 1bd58b4 commit 0fb7a6d
Showing 1 changed file with 40 additions and 12 deletions.
52 changes: 40 additions & 12 deletions src/config/config-beta.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
import { IAppConfig } from './config-interface';
import { firebaseConfig } from './firebase-web-beta';
import { firebaseConfig } from './firebase-web-release';

const extSyncBaseUrl = 'https://fire.moonlet.dev/functions/extensionSync';
const extSyncBaseUrl = 'https://fire.moonlet.io/functions/extensionSync';

export const CONFIG_BETA: IAppConfig = {
walletApiBaseUrl: 'https://api.moonlet.dev',
// walletApiBaseUrl: 'http://127.0.0.1:8080',

supportUrl: 'https://fire.moonlet.dev/static/support/webview.html',
walletApiBaseUrl: 'https://api.moonlet.app',
supportUrl: 'https://fire.moonlet.io/static/support/webview.html',
env: process.env.MOONLET_SOME_KEY,
tokensUrl: 'https://fire.moonlet.dev/static/tokens/',
tokensUrl: 'https://fire.moonlet.io/static/tokens/',
termsAndConditionsUrl:
'https://fire.moonlet.dev/static/terms/terms-of-service.html?v=' + Date.now(),
privacyPolicyUrl: 'https://fire.moonlet.dev/static/terms/privacy-policy.html?v=' + Date.now(),
troubleshootingUrl: 'https://fire.moonlet.dev/static/ledger/troubleshooting.html',
firebaseConfigFetchInterval: 0,
'https://fire.moonlet.io/static/terms/terms-of-service.html?v=' + Date.now(),
privacyPolicyUrl: 'https://fire.moonlet.io/static/terms/privacy-policy.html?v=' + Date.now(),
troubleshootingUrl: 'https://fire.moonlet.io/static/ledger/troubleshooting.html',
firebaseConfigFetchInterval: 15 * 60, // 15 mins
ntpServer: 'pool.ntp.org',
ntpPort: 123,
extSync: {
bucket: 'gs://moonlet-extension-sync',
bucket: 'gs://moonlet-extension-sync-live',
updateStateUrl: extSyncBaseUrl + '/updateState',
disconnectUrl: extSyncBaseUrl + '/disconnect',
sendRequestUrl: extSyncBaseUrl + '/sendRequest',
Expand All @@ -27,3 +25,33 @@ export const CONFIG_BETA: IAppConfig = {
},
firebaseWebConfig: firebaseConfig
};

// import { IAppConfig } from './config-interface';
// import { firebaseConfig } from './firebase-web-beta';

// const extSyncBaseUrl = 'https://fire.moonlet.dev/functions/extensionSync';

// export const CONFIG_BETA: IAppConfig = {
// walletApiBaseUrl: 'https://api.moonlet.dev',
// // walletApiBaseUrl: 'http://127.0.0.1:8080',

// supportUrl: 'https://fire.moonlet.dev/static/support/webview.html',
// env: process.env.MOONLET_SOME_KEY,
// tokensUrl: 'https://fire.moonlet.dev/static/tokens/',
// termsAndConditionsUrl:
// 'https://fire.moonlet.dev/static/terms/terms-of-service.html?v=' + Date.now(),
// privacyPolicyUrl: 'https://fire.moonlet.dev/static/terms/privacy-policy.html?v=' + Date.now(),
// troubleshootingUrl: 'https://fire.moonlet.dev/static/ledger/troubleshooting.html',
// firebaseConfigFetchInterval: 0,
// ntpServer: 'pool.ntp.org',
// ntpPort: 123,
// extSync: {
// bucket: 'gs://moonlet-extension-sync',
// updateStateUrl: extSyncBaseUrl + '/updateState',
// disconnectUrl: extSyncBaseUrl + '/disconnect',
// sendRequestUrl: extSyncBaseUrl + '/sendRequest',
// sendResponseUrl: extSyncBaseUrl + '/sendResponse',
// deleteRequestUrl: extSyncBaseUrl + '/deleteRequest'
// },
// firebaseWebConfig: firebaseConfig
// };

0 comments on commit 0fb7a6d

Please sign in to comment.