Skip to content

Commit

Permalink
urls
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenmarcus committed Feb 19, 2024
1 parent 8d37338 commit 2154231
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions minter/src/config/setup.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@

export const proxyAddress = process?.env?.NEXT_PUBLIC_PROXY_CONTRACT_ADDRESS || "0.minsta.proxy.mintbase.testnet";
const contractAddress = process?.env?.NEXT_PUBLIC_MINT_CONTRACT_ADDRESS || "aiminter.mintspace2.testnet";
export const proxyAddress =
process?.env?.NEXT_PUBLIC_PROXY_CONTRACT_ADDRESS ||
"0.minsta.proxy.mintbase.testnet";
const contractAddress =
process?.env?.NEXT_PUBLIC_MINT_CONTRACT_ADDRESS ||
"aiminter.mintspace2.testnet";
const network = process?.env?.NEXT_PUBLIC_NETWORK || "testnet";


const isTestnet = network === "testnet"
const callbackUrl = isTestnet ? `https://testnet.mintbase.xyz/contract/${contractAddress}/nfts/all/0` : `https://mintbase.xyz/contract/${contractAddress}/nfts/all/0`;
export const mbUrl = !isTestnet ?'https://www.mintbase.xyz' : 'https://testnet.mintbase.xyz'
export const nearblocksUrl = !isTestnet ?'https://nearblocks.io' : 'https://testnet.nearblocks.io'

const isTestnet = network === "testnet";
const callbackUrl = !isTestnet
? `https://mintbase.xyz/contract/${contractAddress}/nfts/all/0`
: `https://testnet.mintbase.xyz/contract/${contractAddress}/nfts/all/0`;
export const mbUrl = !isTestnet
? "https://www.mintbase.xyz"
: "https://testnet.mintbase.xyz";
export const nearblocksUrl = !isTestnet
? "https://nearblocks.io"
: "https://testnet.nearblocks.io";

export const MintbaseWalletSetup = {
contractAddress,
network,
callbackUrl
};
callbackUrl,
};

0 comments on commit 2154231

Please sign in to comment.