Some hostnames in environment
This commit is contained in:
parent
af4bbc9949
commit
b7fc4f9e8e
5 changed files with 8 additions and 31 deletions
|
@ -60,7 +60,7 @@ export class SpendLBCComponent implements OnInit {
|
|||
const toAddress = (<HTMLInputElement>document.getElementById("toAddress")).value;
|
||||
const desiredAmount = Number((<HTMLInputElement>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
|
||||
|
|
|
@ -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/",
|
||||
},
|
||||
};
|
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue