Skip to content

Commit

Permalink
create faucet token for arthera mainnet (#705)
Browse files Browse the repository at this point in the history
  • Loading branch information
hichri-louay authored Mar 1, 2024
1 parent 7a13a23 commit cc1cd3a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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') {
Expand Down Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/app/config/atn.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -891,6 +891,7 @@ export {
socialMedia,
cryptoNetwork,
sattUrl,
faucetTokenBBArthera,
ipfsURL,
walletUrl,
arrayCountries,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -631,7 +631,7 @@ export class DropdownCryptoNetworkComponent
campaignCryptoSet.add({
key: 'AA',
value: crypto,
contract: null
contract: faucetTokenBBArthera
});
}
})
Expand Down
2 changes: 1 addition & 1 deletion src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 2 additions & 0 deletions src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

export const environment = {
production: false,

//API_URL: 'https://localhost:3015',
//url:"http://localhost:4200/",
url: 'https://testnet.satt.atayen.us/',
Expand All @@ -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',
Expand Down

0 comments on commit cc1cd3a

Please sign in to comment.