Skip to content

Commit

Permalink
wip create mock for arthera network (#729)
Browse files Browse the repository at this point in the history
  • Loading branch information
hichri-louay authored Apr 15, 2024
1 parent 7dced51 commit 0507888
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,7 @@ let dateInSeconds = Math.floor(date.getTime() / 1000);
if(campaign_info.currency === 'AA') {
campaign_info.tokenAddress = faucetTokenBBArthera;
}

// Determine which campaign method to call based on the 'createCampaign' flag
const campaignObservable = createCampaign
&& this.campaignService.createCompaign(campaign_info)
Expand Down
2 changes: 1 addition & 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 faucetTokenBBArthera = env.addresses.smartContracts.ARTHERA_TOKEN;
const campaignSmartContractERC20 = env.addresses.smartContracts.campaignERC20;

const campaignSmartContractARTHERA = env.addresses.smartContracts.campaignARTHERA;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export class DropdownCryptoNetworkComponent
.getBalanceByToken({
network: this.selectedNetworkValue.toLowerCase(),
walletAddress: this.selectedNetworkValue === 'TRON' ? window.localStorage.getItem('tron-wallet') : window.localStorage.getItem('wallet_id'),
smartContract: (this.selectedNetworkValue === 'ERC20' && crypto.key === 'SATT') ? env.addresses.smartContracts.SATT_TOKENERC20 : ( (this.selectedNetworkValue === 'BEP20' && crypto.key === 'SATT') ? env.addresses.smartContracts.SATT_TOKENBEP20 :crypto.contract),
smartContract: (this.selectedNetworkValue === 'ERC20' && crypto.key === 'SATT') ? env.addresses.smartContracts.SATT_TOKENERC20 : ( (this.selectedNetworkValue === 'BEP20' && crypto.key === 'SATT') ? env.addresses.smartContracts.SATT_TOKENBEP20 : (this.selectedNetworkValue === 'ARTHERA' ? env.addresses.smartContracts.ARTHERA_TOKEN : crypto.contract)),
isNative:
((crypto.key === 'ETH' && this.selectedNetworkValue === 'ERC20') || (crypto.key === 'BNB' && this.selectedNetworkValue === 'BEP20') || (crypto.key === 'BTT' && this.selectedNetworkValue === 'BTTC') || (crypto.key === 'TRX' && this.selectedNetworkValue === 'TRON') || (crypto.key === 'MATIC' && this.selectedNetworkValue === 'POLYGON') )
? true
Expand All @@ -192,7 +192,7 @@ export class DropdownCryptoNetworkComponent
{
AddedToken: !!crypto.value.AddedToken ? crypto.AddedToken : true,
balance: 0,
contract: (this.selectedNetworkValue === 'ERC20' && crypto.key === 'SATT') ? env.addresses.smartContracts.SATT_TOKENERC20 : ( (this.selectedNetworkValue === 'BEP20' && crypto.key === 'SATT') ? env.addresses.smartContracts.SATT_TOKENBEP20 :crypto.contract),
contract: (this.selectedNetworkValue === 'ERC20' && crypto.key === 'SATT') ? env.addresses.smartContracts.SATT_TOKENERC20 : ( (this.selectedNetworkValue === 'BEP20' && crypto.key === 'SATT') ? env.addresses.smartContracts.SATT_TOKENBEP20 :( (this.selectedNetworkValue === 'ARTHERA' ? env.addresses.smartContracts.ARTHERA_TOKEN : crypto.contract))),
contrat: '',
decimal: 18,
key: crypto.key,
Expand Down Expand Up @@ -229,7 +229,7 @@ export class DropdownCryptoNetworkComponent
{
AddedToken: !!crypto.value.AddedToken ? crypto.AddedToken : true,
balance: 0,
contract: (this.selectedNetworkValue === 'ERC20' && crypto.key === 'SATT') ? env.addresses.smartContracts.SATT_TOKENERC20 : ( (this.selectedNetworkValue === 'BEP20' && crypto.key === 'SATT') ? env.addresses.smartContracts.SATT_TOKENBEP20 :crypto.contract),
contract: (this.selectedNetworkValue === 'ERC20' && crypto.key === 'SATT') ? env.addresses.smartContracts.SATT_TOKENERC20 : ( (this.selectedNetworkValue === 'BEP20' && crypto.key === 'SATT') ? env.addresses.smartContracts.SATT_TOKENBEP20 : (this.selectedNetworkValue === 'ARTHERA' ? env.addresses.smartContracts.ARTHERA_TOKEN : crypto.contract)),
contrat: '',
decimal: 18,
key: crypto.key,
Expand Down
3 changes: 2 additions & 1 deletion src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ export const environment = {
faucetTokenBBArthera: '0xb631FaDC449CAAB1665bAC746A257797118b51e4',
addresses: {
smartContracts: {
ARTHERA_TOKEN: '0xf38420F38De1e72610395603568BBDab35E40789',
campaignERC20: '0xf961c85517fe86244cb60889afc4a928068d49ef',
campaignBEP20: '0x60c761e810b86fa3876ae065bdee62b8f2e29f86',
campaignPOLYGON: '0xa01f80042512Cdf9355a66CBB1266240c0456513',
campaignBTT: '0xa01f80042512Cdf9355a66CBB1266240c0456513',
campaignTRON: 'TPeLf9WLzUD8tUoc7dtfGVqPUrnKGip2PN',
campaignARTHERA: '0x21F27868d2E3Bbc2E3cced9c5233BA68439C03cf',
campaignARTHERA: '0xa5855eE935bbdeE7C95474ce905756F5d6A8785E',
SATT_TOKENERC20: '0xdf49c9f599a0a9049d97cff34d0c30e468987389',
SATT_TOKENBEP20: '0x448bee2d93be708b54ee6353a7cc35c4933f1156',
SATT_TOKEN_TRON: 'TZ9mUjmxCtowj9h68NJq626qaGWiv61KWo', // testnet
Expand Down
3 changes: 2 additions & 1 deletion src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ export const environment = {
campaignPOLYGON: '0xD6Cb96a00b312D5930FC2E8084A98ff2Daa5aD2e',
campaignBTT: '0x261491739e36090FC80fF1569B7E5FFe26070d77',
campaignTRON: 'THUD3VAxyTEmMCBEjd2AcSujzbgPSu39p9',
campaignARTHERA: '0x21F27868d2E3Bbc2E3cced9c5233BA68439C03cf',
campaignARTHERA: '0xa5855eE935bbdeE7C95474ce905756F5d6A8785E',
SATT_TOKENERC20: '0x3e233F049DAfB2ed8aaf324F67Dd98bc8FDdF6dA',
ARTHERA_TOKEN: '0xf38420F38De1e72610395603568BBDab35E40789',
//SATT_TOKENERC20: '0x2bef0d7531f0aae08adc26a0442ba8d0516590d0',

SATT_TOKENBEP20: '0x6fAc729f346A46fC0093126f237b4A520c40eb89',
Expand Down

0 comments on commit 0507888

Please sign in to comment.