Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
347 changes: 0 additions & 347 deletions .firebase/hosting.ZGlzdC9tb29uc2hvdC13ZWI.cache

This file was deleted.

41,497 changes: 22,950 additions & 18,547 deletions package-lock.json

Large diffs are not rendered by default.

34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,39 +13,39 @@
"dependencies": {
"-": "^0.0.1",
"@angular/animations": "~13.0.2",
"@angular/cdk": "^11.2.13",
"@angular/cdk": "^13.3.9",
"@angular/common": "~13.0.2",
"@angular/compiler": "~13.0.2",
"@angular/core": "~13.0.2",
"@angular/forms": "~13.0.2",
"@angular/material": "^11.2.13",
"@angular/material": "^13.3.9",
"@angular/platform-browser": "~13.0.2",
"@angular/platform-browser-dynamic": "~13.0.2",
"@angular/router": "~13.0.2",
"@fortawesome/angular-fontawesome": "^0.9.0",
"@fortawesome/fontawesome-svg-core": "^1.2.36",
"@fortawesome/free-brands-svg-icons": "^5.15.4",
"@fortawesome/free-solid-svg-icons": "^5.15.4",
"@siddomains/sidjs": "^0.1.17",
"@types/hammerjs": "^2.0.39",
"@walletconnect/web3-provider": "^1.5.2",
"@siddomains/sidjs": "^0.1.29",
"@types/hammerjs": "^2.0.45",
"@walletconnect/web3-provider": "^1.8.0",
"angular-countdown-date-time": "^0.1.0",
"angular-gtag": "^1.0.4",
"angular-socialshare": "^2.3.11",
"assert": "^2.0.0",
"assert": "^2.1.0",
"class-transformer": "^0.4.0",
"crypto-browserify": "^3.12.0",
"ethers": "^5.4.2",
"ethers": "^5.7.2",
"g": "^2.0.1",
"hammerjs": "^2.0.8",
"https-browserify": "^1.0.0",
"jquery": "^3.6.0",
"ng-carousel-cdk": "^1.7.0",
"jquery": "^3.7.1",
"ng-carousel-cdk": "^1.10.2",
"ngx-countdown": "^11.0.3",
"ngx-pagination": "^5.1.1",
"ngx-sharebuttons": "^9.0.0",
"ngx-toastr": "^14.0.0",
"ngx-ui-switch": "^12.0.0",
"ngx-ui-switch": "^13.0.2",
"os-browserify": "^0.3.0",
"particles.js": "^2.0.0",
"process": "^0.11.10",
Expand All @@ -55,24 +55,24 @@
"stream-browserify": "^3.0.0",
"stream-http": "^3.2.0",
"swiper": "^7.0.3",
"tslib": "^2.0.0",
"url": "^0.11.0",
"web3": "^1.7.5",
"tslib": "^2.6.2",
"url": "^0.11.3",
"web3": "^1.10.3",
"web3modal": "^1.9.8",
"zone.js": "~0.11.4"
},
"devDependencies": {
"@angular-devkit/build-angular": "^13.0.3",
"@angular/cli": "^13.3.8",
"@angular-devkit/build-angular": "^13.3.11",
"@angular/cli": "^13.3.11",
"@angular/compiler-cli": "~13.0.2",
"@types/jasmine": "~3.6.0",
"@types/node": "^12.11.1",
"@types/node": "^12.20.55",
"@types/react": "~16.7.3",
"@types/react-dom": "~16.0.9",
"codelyzer": "^6.0.0",
"jasmine-core": "~3.6.0",
"jasmine-spec-reporter": "~5.0.0",
"karma": "~6.3.4",
"karma": "^6.3.20",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage": "~2.0.3",
"karma-jasmine": "~4.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,17 @@ export class ItemOverviewComponent implements OnInit {

// console.log(this.link);

// debugger
//

if (environment.chainId.indexOf(this.chainId) == -1) {
this.moonseaChainId=1;
//debugger
//
}
else
{
let index = environment.chainId.indexOf(this.chainId);
this.moonseaChainId=environment.moonSeaChinIds[index];
//debugger
//
}
});
}
Expand Down
4 changes: 2 additions & 2 deletions src/app/components/base/sidebar/sidebar.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class SidebarComponent implements OnInit {
});


//debugger
//

}
openDialogDisconnected(): void {
Expand All @@ -62,7 +62,7 @@ export class SidebarComponent implements OnInit {
});


//debugger
//

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export const CHAIN_CONFIGS: any = {
symbol: 'MATIC',
decimals: 18,
},
rpcUrls: ['https://rpc-mainnet.matic.network'],
rpcUrls: ['https://polygon.llamarpc.com'],
blockExplorerUrls: ['https://polygonscan.com/'],
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,12 +253,12 @@ export class ArtistMoonboxComponent implements OnInit {

}
this.supply.push(item.hasSupply() ? 1 : 0);
debugger


});
debugger

if (this.removeitemIndex.length > 0) {
debugger

if (!this.isgetMaxSupplyCall) {
this.removeitem(this.removeitemIndex);
}
Expand All @@ -273,7 +273,7 @@ export class ArtistMoonboxComponent implements OnInit {


removeitem(removeValFromIndex: any) {
debugger

for (var i = removeValFromIndex.length - 1; i >= 0; i--) {
this.boxTypes.splice(removeValFromIndex[i], 1);
this.supplyDetails.splice(removeValFromIndex[i], 1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export class NftMigrationComponent implements OnInit {
isNftMigratedFunction() {
let url = "userDataCount?userAddress=" + this.userAddress;
this.httpApi.getRequest(url).subscribe(async (res: any) => {
debugger
if (res.status == 200) {
this.IsNftMigrated = res.IsNftMigrated;
if (!this.IsNftMigrated) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export class InventoryComponent implements OnInit {


openNftMigrationDialog() {

debugger
this.nftMigrationDialogRef = this.dialog.open(NftMigrationComponent, {
width: '800px',
data: { data: this.tabs, swapCount: this.SwapNftCount, nftCountToSwap: this.nftCountToSwap },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ export class ModalForTransactionComponent implements OnInit {
var price: any = await this.walletConnectService.getDetailsMoonboxPrice();
this.btn1Text = "Waiting for transaction";
var transactionDetails: any;
//debugger
//
try {
transactionDetails = await this.walletConnectService.redeemBulkTransaction(this.data.index, price, this.data.inputNumber, this.data.data.address)
}
catch (e) {
//debugger
//
console.log(e);
this.closeDialog()
if (e.hash.code == 4001)
Expand Down Expand Up @@ -104,7 +104,7 @@ export class ModalForTransactionComponent implements OnInit {
});
}
else {
//debugger
//
this.closeDialog()
if (transactionDetails.error.code == 4001)
this.httpApi.showToastr(transactionDetails.error.message, false);
Expand Down Expand Up @@ -186,7 +186,7 @@ export class ModalForTransactionComponent implements OnInit {
})
}
else {
//debugger
//
this.closeDialog();
if (txStatus.hash.code == 4001)
this.httpApi.showToastr(txStatus.hash.message, false);
Expand Down Expand Up @@ -224,7 +224,7 @@ export class ModalForTransactionComponent implements OnInit {
);
}
catch (e) {
//debugger
//
console.log(e);
this.closeDialog()
if (e.hash?.code == 4001)
Expand Down Expand Up @@ -260,7 +260,7 @@ export class ModalForTransactionComponent implements OnInit {
});
}
else {
//debugger
//
this.closeDialog()
if (transactionDetails.error.code == 4001)
this.httpApi.showToastr(transactionDetails.error.message, false);
Expand Down
4 changes: 2 additions & 2 deletions src/app/services/deploy-contract.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ export class DeployContractService {
let abi = require('./../../assets/abis/lazy minting/bsc.json');
let bytecode = require('./../../assets/contractBytecode/bsc.json');
const factory = new ethers.ContractFactory(abi, bytecode, cs.signer)
//debugger
//
const contract = await factory.deploy(walletAddress, this.nftArtistContract, this.ArtistMoonBoxNftSwap, collectionName, symbol);
var deployAddress = await contract.deployed();
}
else {
let abi = require('./../../assets/abis/lazy minting/other.json');
let bytecode = require('./../../assets/contractBytecode/other.json');
const factory = new ethers.ContractFactory(abi, bytecode, cs.signer)
//debugger
//
const contract = await factory.deploy(walletAddress, this.nftArtistContract, collectionName, symbol);
var deployAddress = await contract.deployed();
}
Expand Down
4 changes: 2 additions & 2 deletions src/app/services/http-api.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class HttpApiService {
private httpClient: HttpClient,
private toastrService: ToastrService
) {
// //debugger
// //
this.chainId = localStorage.getItem('manual_chainId') ?? "56";

this.headers = new HttpHeaders()
Expand Down Expand Up @@ -146,7 +146,7 @@ export class HttpApiService {

getRandomCollectionImageListFromArtist(artistAddress: string): Promise<any> {
const params = { artistAddress: artistAddress };
// debugger
//
const url = `${baseURL}randCollectionImageListArtist`;

return this.httpClient.get(url, { headers: this.headers, params }).toPromise();
Expand Down
15 changes: 7 additions & 8 deletions src/app/services/wallet-connect.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ export class WalletConnectService {
rpc: {
1: "https://eth-mainnet.public.blastapi.io",
56: "https://bsc-dataseed.binance.org",
137: "https://rpc-mainnet.matic.network",
137: "https://polygon.llamarpc.com",
1285: "https://rpc.api.moonriver.moonbeam.network",
},
})
Expand Down Expand Up @@ -306,7 +306,7 @@ export class WalletConnectService {
this.artistLootBoxContract = new ethers.Contract(config[environment.configFile][index].artistLootBoxAddress, ArtistNFTAbi, this.signer);
this.registorContractAddressObj = new ethers.Contract(config[environment.configFile][index].RegisterMoonboxAddress,registorAbi,this.signer)

//debugger
//
}


Expand Down Expand Up @@ -337,7 +337,6 @@ export class WalletConnectService {
let rpc = this.chainConfigs[chainId].config.params[0].rpcUrls[0];
const provider = new Web3.providers.HttpProvider(rpc)
this.sid = new SID({ provider, sidAddress: SIDfunctions.getSidAddress(chainId) })
debugger
return await this.sid.getName(address);

}
Expand Down Expand Up @@ -467,10 +466,10 @@ export class WalletConnectService {
}

async redeemBulkTransaction(lootBoxId: any, price: any, noOfBets: number, userAddress: string) {
//debugger
//

try {
//debugger
//
let txn: any = await this.LootboxContract.submitBet(lootBoxId, price, noOfBets, { value: (price * noOfBets).toString(),gasLimit:1000000000000000,gasPrice:110 });
return { hash: txn.hash, status: true };

Expand All @@ -486,7 +485,7 @@ export class WalletConnectService {
const spliSign = ethers.utils.splitSignature(signature);
if (isArtist) {
try {
//debugger
//
let txn: any = await this.artistLootBoxContract.redeemBulk(nftAddress, id, nftAmount, artistAddress, bet, spliSign.v, spliSign.r, spliSign.s)
await txn.wait(1)
return { hash: txn.hash, status: true };
Expand Down Expand Up @@ -530,7 +529,7 @@ export class WalletConnectService {
params = ((10 ** decimals) * price).toString();
}
try {
//debugger
//
gas = await this.artistLootBoxContract.estimateGas.submitBet(lootBoxId, params, artistAddress, noOfBets, betlimit, tokenAddress, spliSign.v, spliSign.r, spliSign.s, {
value: callValue
}
Expand All @@ -540,7 +539,7 @@ export class WalletConnectService {
}

try {
//debugger
//
let txn: any = await this.artistLootBoxContract.submitBet(lootBoxId, params, artistAddress, noOfBets, betlimit, tokenAddress, spliSign.v, spliSign.r, spliSign.s, {
value: callValue,
// gasPrice: 100,
Expand Down