From cc1cd3aa3accb442a1c515e4e3073e297568ee1d Mon Sep 17 00:00:00 2001 From: Louuuuuuuuuuuuu <124356992+hichri-louay@users.noreply.github.com> Date: Fri, 1 Mar 2024 14:55:42 +0100 Subject: [PATCH] create faucet token for arthera mainnet (#705) --- .../components/remuneration/remuneration.component.ts | 6 +++--- src/app/config/atn.config.ts | 3 ++- .../dropdown-crypto-network.component.ts | 4 ++-- src/environments/environment.prod.ts | 2 +- src/environments/environment.ts | 2 ++ 5 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/app/campaigns/components/remuneration/remuneration.component.ts b/src/app/campaigns/components/remuneration/remuneration.component.ts index fc4447f7..70d7bfeb 100755 --- a/src/app/campaigns/components/remuneration/remuneration.component.ts +++ b/src/app/campaigns/components/remuneration/remuneration.component.ts @@ -37,7 +37,7 @@ import { takeUntil, tap } from 'rxjs/operators'; -import { GazConsumedByCampaign } from '@app/config/atn.config'; +import { GazConsumedByCampaign, faucetTokenBBArthera } from '@app/config/atn.config'; import { checkIfEnoughBalance } from '@helpers/form-validators'; import { Campaign } from '@app/models/campaign.model'; import { ConvertFromWei } from '@shared/pipes/wei-to-sa-tt.pipe'; @@ -706,7 +706,7 @@ export class RemunerationComponent implements OnInit, OnDestroy { campaignCryptoSet.add({ key, value: this.res[key], - contract: null + contract: faucetTokenBBArthera }) } else { if(typeof cryptoData.networkSupported !== 'string') { @@ -760,7 +760,7 @@ export class RemunerationComponent implements OnInit, OnDestroy { network: this.selectedNetworkValue.toLowerCase(), walletAddress: this.selectedNetworkValue === 'TRON' ? window.localStorage.getItem('tron-wallet') : window.localStorage.getItem('wallet_id'), isNative: - ((value.key === 'ETH' && this.selectedNetworkValue === 'ERC20') || (value.key === 'BNB' && this.selectedNetworkValue === 'BEP20') || (value.key === 'BTT' && this.selectedNetworkValue === 'BTTC') || (value.key === 'TRX' && this.selectedNetworkValue === 'TRON') || (value.key === 'MATIC' && this.selectedNetworkValue === 'POLYGON') || (value.key === 'AA' && this.selectedNetworkValue === 'ARTHERA')) + ((value.key === 'ETH' && this.selectedNetworkValue === 'ERC20') || (value.key === 'BNB' && this.selectedNetworkValue === 'BEP20') || (value.key === 'BTT' && this.selectedNetworkValue === 'BTTC') || (value.key === 'TRX' && this.selectedNetworkValue === 'TRON') || (value.key === 'MATIC' && this.selectedNetworkValue === 'POLYGON') ) ? true : false, smartContract: (this.selectedNetworkValue === 'ERC20' && value.key === 'SATT') ? environment.addresses.smartContracts.SATT_TOKENERC20 : ( (this.selectedNetworkValue === 'BEP20' && value.key === 'SATT') ? environment.addresses.smartContracts.SATT_TOKENBEP20 :value.contract) //value.contract diff --git a/src/app/config/atn.config.ts b/src/app/config/atn.config.ts index c603b0d3..eee73a25 100755 --- a/src/app/config/atn.config.ts +++ b/src/app/config/atn.config.ts @@ -13,7 +13,7 @@ const bttscanAddr = env.bttscanAddr; const tronscanAddr = env.tronScanAddr; const tronScan = env.tronScan; const artheraScan = env.artheraScan; - +const faucetTokenBBArthera = env.faucetTokenBBArthera const campaignSmartContractERC20 = env.addresses.smartContracts.campaignERC20; const campaignSmartContractARTHERA = env.addresses.smartContracts.campaignARTHERA; @@ -891,6 +891,7 @@ export { socialMedia, cryptoNetwork, sattUrl, + faucetTokenBBArthera, ipfsURL, walletUrl, arrayCountries, diff --git a/src/app/wallet/components/dropdown-crypto-network/dropdown-crypto-network.component.ts b/src/app/wallet/components/dropdown-crypto-network/dropdown-crypto-network.component.ts index 92fa7dc6..89bb9004 100755 --- a/src/app/wallet/components/dropdown-crypto-network/dropdown-crypto-network.component.ts +++ b/src/app/wallet/components/dropdown-crypto-network/dropdown-crypto-network.component.ts @@ -13,7 +13,7 @@ import { } from '@angular/core'; import { FormControl } from '@angular/forms'; import { ActivatedRoute, Router } from '@angular/router'; -import { ListTokens } from '@app/config/atn.config'; +import { ListTokens, faucetTokenBBArthera } from '@app/config/atn.config'; import { WalletFacadeService } from '@app/core/facades/wallet-facade.service'; import { CryptofetchServiceService } from '@app/core/services/wallet/cryptofetch-service.service'; import { NgbModal } from '@ng-bootstrap/ng-bootstrap'; @@ -631,7 +631,7 @@ export class DropdownCryptoNetworkComponent campaignCryptoSet.add({ key: 'AA', value: crypto, - contract: null + contract: faucetTokenBBArthera }); } }) diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts index f9c4511d..3b8eb7d1 100755 --- a/src/environments/environment.prod.ts +++ b/src/environments/environment.prod.ts @@ -8,7 +8,7 @@ export const environment = { 'https://api.thegraph.com/subgraphs/name/atayen/satt--bsc-mainnet', url_subgraph_ether: 'https://api.thegraph.com/subgraphs/name/atayen/satt-ether-mainnet', - + faucetTokenBBArthera: '0xb631FaDC449CAAB1665bAC746A257797118b51e4', addresses: { smartContracts: { campaignERC20: '0xf961c85517fe86244cb60889afc4a928068d49ef', diff --git a/src/environments/environment.ts b/src/environments/environment.ts index 81c584e5..b32a6b5b 100755 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -4,6 +4,7 @@ export const environment = { production: false, + //API_URL: 'https://localhost:3015', //url:"http://localhost:4200/", url: 'https://testnet.satt.atayen.us/', @@ -19,6 +20,7 @@ export const environment = { //API_URL: 'https://localhost:3015', // 'https://api-preprod.satt-token.com:3014', + faucetTokenBBArthera: '0xd1120E67A2bf245B62C0aF804fFa112fd28D8e56', addresses: { smartContracts: { campaignERC20: '0x0A40CEbd090Aedeb912903D8fDbEeb8d066807A4',