From b7fc4f9e8e0c27bb0d13ba82ca5481fb8bdbbd28 Mon Sep 17 00:00:00 2001 From: Daniel Krol Date: Sat, 9 Apr 2022 14:51:29 -0400 Subject: [PATCH] Some hostnames in environment --- .../src/app/spend-lbc/spend-lbc.component.ts | 6 ++--- .../src/environments/environment.bitclout.ts | 24 ------------------- .../frontend/src/environments/environment.ts | 1 + src/environments/environment.prod.ts | 4 ++-- src/environments/environment.ts | 4 ++-- 5 files changed, 8 insertions(+), 31 deletions(-) delete mode 100644 example/frontend/src/environments/environment.bitclout.ts diff --git a/example/frontend/src/app/spend-lbc/spend-lbc.component.ts b/example/frontend/src/app/spend-lbc/spend-lbc.component.ts index a3ff2e3..3457cc4 100644 --- a/example/frontend/src/app/spend-lbc/spend-lbc.component.ts +++ b/example/frontend/src/app/spend-lbc/spend-lbc.component.ts @@ -60,7 +60,7 @@ export class SpendLBCComponent implements OnInit { const toAddress = (document.getElementById("toAddress")).value; const desiredAmount = Number((document.getElementById("desiredAmount")).value); - this.backendApi.GetPsbt("localhost:8090", this.fromAddress, toAddress, desiredAmount).subscribe({ + this.backendApi.GetPsbt(environment.backendHostname, this.fromAddress, toAddress, desiredAmount).subscribe({ next: res => { this.psbtHex = res.psbtHex this.nonWitnessUtxoHexes = res.nonWitnessUtxoHex @@ -99,14 +99,14 @@ export class SpendLBCComponent implements OnInit { this.globalVars.testSignTransactionLBRY(this.psbtHex, this.nonWitnessUtxoHexes, this.fromAddress).subscribe({ next: (signedTransactionHex) => { this.signedTransactionHex = signedTransactionHex - this.backendApi.DecodeTransaction("localhost:8090", signedTransactionHex).subscribe({ + this.backendApi.DecodeTransaction(environment.backendHostname, signedTransactionHex).subscribe({ next: res => { this.decodedTransaction = res.decodedTransaction console.log(res.decodedTransaction) }, error: err => { this.setError(err) } }) - this.backendApi.BroadcastTransaction("localhost:8090", signedTransactionHex).subscribe({ + this.backendApi.BroadcastTransaction(environment.backendHostname, signedTransactionHex).subscribe({ next: res => { this.setError(null) this.success = res.txid diff --git a/example/frontend/src/environments/environment.bitclout.ts b/example/frontend/src/environments/environment.bitclout.ts deleted file mode 100644 index cfda5a3..0000000 --- a/example/frontend/src/environments/environment.bitclout.ts +++ /dev/null @@ -1,24 +0,0 @@ -export const environment = { - production: true, - uploadImageHostname: "node.deso.org", - verificationEndpointHostname: "https://node.deso.org", - uploadVideoHostname: "node.deso.org", - identityURL: "https://identity.deso.org", - supportEmail: "node.admin@bitclout.com", - dd: { - apiKey: "DCEB26AC8BF47F1D7B4D87440EDCA6", - jsPath: "https://bitclout.com/tags.js", - ajaxListenerPath: "bitclout.com/api", - endpoint: "https://bitclout.com/js/", - }, - amplitude: { - key: "23345b239094949bc7f3402cebe9e5d2", - domain: "amp.bitclout.com", - }, - node: { - id: 2, - name: "BitClout", - url: "https://bitclout.com", - logoAssetDir: "/assets/bitclout/", - }, -}; diff --git a/example/frontend/src/environments/environment.ts b/example/frontend/src/environments/environment.ts index 67ff7bf..768025b 100644 --- a/example/frontend/src/environments/environment.ts +++ b/example/frontend/src/environments/environment.ts @@ -4,6 +4,7 @@ export const environment = { production: false, + backendHostname: 'localhost:8090', uploadImageHostname: "node.deso.org", verificationEndpointHostname: "https://node.deso.org", uploadVideoHostname: "node.deso.org", diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts index 3dff737..6f45eec 100644 --- a/src/environments/environment.prod.ts +++ b/src/environments/environment.prod.ts @@ -1,5 +1,5 @@ export const environment = { production: true, - hostname: 'identity.deso.org', - nodeHostname: 'node.deso.org', + hostname: 'localhost:4201', + nodeHostname: 'node.deso.org', // TODO deleteme }; diff --git a/src/environments/environment.ts b/src/environments/environment.ts index 2396ed2..1be5e3b 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -4,8 +4,8 @@ export const environment = { production: false, - hostname: 'identity.deso.org', - nodeHostname: 'node.deso.org', + hostname: 'localhost:4201', + nodeHostname: 'node.deso.org', // TODO deleteme }; /*