@mojito-inc/secondary-market
Version:
Mojito secondary market is the platform to purchase NFT.
2 lines (1 loc) • 1.51 kB
JavaScript
const t=(t,e)=>{switch(t){case 1:default:return`https://etherscan.io/tx/${e}`;case 4:return`https://rinkeby.etherscan.io/tx/${e}`;case 137:return`https://polygonscan.com/tx/${e}`;case 80001:return`https://mumbai.polygonscan.com/tx/${e}`;case 5:return`https://goerli.etherscan.io/tx/${e}`;case 11155111:return`https://sepolia.etherscan.io/tx/${e}`;case 84532:return`https://sepolia.basescan.org/tx/${e}`;case 8453:return`https://basescan.org/tx/${e}`;case 900:return`https://solscan.io/tx/${e}`;case 901:return`https://solscan.io/tx/${e}?cluster=devnet`;case 902:return`https://solscan.io/tx/${e}?cluster=testnet`}},e=(t,e,s)=>{switch(t){case 1:default:return`https://etherscan.io/token/${e}?a=${s}`;case 4:return`https://rinkeby.etherscan.io/token/${e}?a=${s}`;case 137:return`https://polygonscan.com/token/${e}?a=${s}`;case 80001:return`https://mumbai.polygonscan.com/token/${e}?a=${s}`;case 5:return`https://goerli.etherscan.io/token/${e}?a=${s}`;case 11155111:return`https://sepolia.etherscan.io/token/${e}?a=${s}`;case 84532:return`https://sepolia.basescan.org/token/${e}?a=${s}`;case 8453:return`https://basescan.org/token/${e}?a=${s}`;case 900:return`https://solscan.io/address/${e}`;case 901:return`https://solscan.io/address/${e}?cluster=devnet`;case 902:return`https://solscan.io/address/${e}?cluster=testnet`}},s=t=>{switch(t){case 900:return"mainnet-beta";case 901:default:return"devnet";case 902:return"testnet"}};export{e as getChainExplorerURL,t as getEtherScanURL,s as getSolanaEnvByChainId};