Skip to content

Commit

Permalink
added BCC
Browse files Browse the repository at this point in the history
  • Loading branch information
keninqiu committed Nov 28, 2023
1 parent 02eeda3 commit 2ee0c05
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
<div class="col-sm-2 text-muted">To</div>
<div class="col-sm-10">{{showContractName(item.to)}}</div>
</div>
<div class="row d-none">
<div class="row">
<div class="col-sm-2 text-muted">Value</div>
<div class="col-sm-10">{{item.value}}</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,9 @@ export class WalletconnectComponent implements OnInit {
}

showData(data:string) {
if(!data) {
return '';
}
const method = data.substring(0, 10);
const body = data.substring(10);
switch(method) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ export class WalletDashboardComponent implements OnInit {
for (let i = 0; i < this.wallet.mycoins.length; i++) {
const coin = this.wallet.mycoins[i];

if(((coin.name == 'MWM') && (coin.tokenType == 'BNB'))) {
if(((coin.name == 'BCC') && (coin.tokenType == 'BNB'))) {
this.walletUpdateToDate = true;
}

Expand Down
10 changes: 10 additions & 0 deletions src/app/services/coin.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,10 @@ export class CoinService {
this.fillUpAddress(getBNBCoin, seed, 1, 0);
myCoins.push(getBNBCoin);

const bccBNBCoin = this.initToken('BNB', 'BCC', 2, environment.addresses.smartContract.BCC.BNB, bnbCoin);
this.fillUpAddress(bccBNBCoin, seed, 1, 0);
myCoins.push(bccBNBCoin);

const mwmBNBCoin = this.initToken('BNB', 'MWM', 18, environment.addresses.smartContract.MWM.BNB, bnbCoin);
this.fillUpAddress(mwmBNBCoin, seed, 1, 0);
myCoins.push(mwmBNBCoin);
Expand Down Expand Up @@ -313,6 +317,12 @@ export class CoinService {
myCoins.push(getCoin);


const bccCoin = this.initToken('FAB', 'BCC', 2, environment.addresses.smartContract.BCC.FAB, fabCoin);

this.fillUpAddress(bccCoin, seed, 1, 0);

myCoins.push(bccCoin);

/*
const vftCoin = this.initToken('FAB', 'VFT', 0, environment.addresses.smartContract.VFT.FAB, fabCoin);
Expand Down
6 changes: 5 additions & 1 deletion src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const environment = {
baseUrl: 'https://exchangily.com',
// url: 'https://api.exchangily.com/',
url: 'https://api.dscmap.com/',
version: '2.3.13',
version: '2.3.14',
campaignId: 1,
PUBLIC_KEY: '8aff99f9727143fccd28e62df14e4e67305faa70d19b4cb0b9d4cde18ea3cd23c8e58bda3c26e10813aaa6020f3d07a3d9f83a9062cfe662a600949325378b99',
OTC_COMMISSION_RATE: 0,
Expand Down Expand Up @@ -236,6 +236,10 @@ export const environment = {
FAB: '0xda0f76ec006246654fd2eed060f9f9025c6b3d58',
BNB: '0x5599f29555eae55535241c7ef661c23ed2871db3'
},
BCC: {
FAB: '0xbee5b17d790af6eceb66ee441397ad5fc345ee8a',
BNB: '0x48b08071a55486a312cde3c3576371e4e77919ff'
},
/*
VFT: {
FAB: '0x54dba352968e6ed8217dbeba450ed4accb1bf662',
Expand Down
6 changes: 5 additions & 1 deletion src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as Btc from 'bitcoinjs-lib';

export const environment = {
production: false,
version: '2.3.13',
version: '2.3.14',
IssueTokenReceipt: 'mxU2i997YxYv75E6YNVNwkN5qJ68WC5sZN',
SQUARE_APP_ID: {
CAD: 'sandbox-sq0idb-UUMNZpqOLdU5yOO9Y6AKyg', // ccount kenin
Expand Down Expand Up @@ -246,6 +246,10 @@ export const environment = {
FAB: '0xf0cbab2b17349dc03be7528f2152d24778725924',
BNB: '0xb3Dcd26FBFCC3aeA2aa0ac833c2B38421d4b1905'
},
BCC: {
FAB: '0xf0cbab2b17349dc03be7528f2152d24778725924',
BNB: '0xb3Dcd26FBFCC3aeA2aa0ac833c2B38421d4b1905'
},
/*
VFT: {
FAB: '0xf0cbab2b17349dc03be7528f2152d24778725924',
Expand Down

0 comments on commit 2ee0c05

Please sign in to comment.