{"version":3,"sources":["Standard/images/MMProLogo.svg","Standard/images/MMProLogoSmall.svg","Standard/LocaleContext.ts","components/SimpleValidatedInput/index.tsx","Standard/hooks/useCommonContracts.js","Standard/utils/getRpcUrl.js","Standard/components/Spinner/index.js","pages/Main/index.tsx","hooks /useEmailCollectorContract.ts","utils/getAddress.js","Standard/components/Footer.js","Standard/components/LocaleSelector/index.tsx","Standard/components/Button.js","Standard/components/MetamaskJazzicon/index.tsx","Standard/components/HidingText/index.tsx","Standard/wallet/connectors.js","Standard/wallet/ethereum.js","Standard/components/WalletConnector/index.tsx","Standard/components/Header/index.tsx","Standard/hooks/useConnectionCheck.js","Standard/StandardAppContainer/index.tsx","Standard/hooks/useLocale.js","App.js","index.js","wallet/connectors.js","wallet/ethereum.js"],"names":["module","exports","LocaleContext","React","createContext","setLocale","newLocale","locale","SimpleValidatedInput","props","placeholder","type","className","shouldValidateOnInput","onValidationChange","errorTooltipText","validationFunction","onBlur","onChange","onFocus","hasDefaultValueButton","defaultValueButtonText","defaultValue","autocomplete","useState","isValid","setIsValid","inputRef","createRef","onChangeInner","e","target","value","onBlurInner","ref","autoComplete","onClick","current","defaultProps","RPC_URL","getRpcUrl","httpProvider","Web3","providers","HttpProvider","timeout","useContract","abi","address","library","useWeb3React","currentProvider","useWeb3","eth","Contract","Spinner","animationDuration","size","color","style","height","width","borderWidth","borderTopColor","borderBottomColor","testEmailRegex","MainContainer","styled","div","Title","MainTitle","Description","Button","button","p","textColor","background","Link","a","Attention","Main","useContext","account","undefined","email","setEmail","emailValid","setEmailValid","isAssociate","setIsAssociate","isLoading","setIsLoading","emailCollectorContract","EmailCollector","useEmailCollectorContract","encryptEmail","requestOptions","method","headers","body","JSON","stringify","fetch","then","response","json","encryptedEmail","methods","associate","send","from","once","isAssociated","call","useEffect","checkAssociate","href","text","test","minWidth","rel","src","alt","version","LocaleSelector","locales","isOpened","setIsOpened","setSelected","map","loc","index","key","top","indexOf","toUpperCase","bgColor","showBorder","children","uppercase","disabled","cx","transition","borderRadius","padding","fontSize","border","fontWeight","MetamaskJazzicon","avatarRef","element","addr","slice","seed","parseInt","icon","jazzicon","firstChild","removeChild","appendChild","HidingText","defaultText","hidingText","peekOut","injected","InjectedConnector","supportedChainIds","walletconnect","WalletConnectConnector","rpc","56","97","qrcode","bridge","walletconnectNoQr","switchNetwork","chainId","window","ethereum","request","params","code","rpcUrls","chainName","nativeCurrency","name","decimals","symbol","blockExplorerUrls","console","error","WalletConnector","str","displayNotification","deactivate","activate","active","connector","isConnectorOpen","setIsConnectorOpen","isDisconnectShowing","setIsDisconnectShowing","initNetwork","onMouseEnter","onMouseLeave","zIndex","walletConnectProvider","length","substr","marginRight","location","reload","Header","pages","logoHref","url","selectedPage","setSelectedPage","pathname","logo","logoSmall","page","to","title","useConnectionCheck","shouldTryWalletConnect","setShouldTryWalletConnect","setTimeout","StandardAppContainer","forcedLocale","isDarkBG","networkError","userLocale","getUserLocale","useCookies","cookies","setCookie","setLocaleState","updateLocale","isUserLocaleJA","includes","useLocale","shouldDysplayNotification","setShouldDysplayNotification","isAuthorized","Provider","viewBox","fill","xmlns","d","Footer","App","baseUrl","isConnected","isMetaMask","document","getElementsByTagName","getAttribute","rootElement","getElementById","ReactDOM","render","basename","getLibrary","provider"],"mappings":"07qBAAAA,EAAOC,QAAU,IAA0B,uC,oBCA3CD,EAAOC,QAAU,IAA0B,4C,wyBCI5BC,EAFOC,IAAMC,cAAc,CAAEC,UAAW,SAACC,KAAwBC,OAAQ,OC8ClFC,G,OAAuB,SAACC,GAC1B,IACIC,EAcAD,EAdAC,YACAC,EAaAF,EAbAE,KACAC,EAYAH,EAZAG,UACAC,EAWAJ,EAXAI,sBACAC,EAUAL,EAVAK,mBACAC,EASAN,EATAM,iBACAC,EAQAP,EARAO,mBACAC,EAOAR,EAPAQ,OACAC,EAMAT,EANAS,SACAC,EAKAV,EALAU,QACAC,EAIAX,EAJAW,sBACAC,EAGAZ,EAHAY,uBACAC,EAEAb,EAFAa,aACAC,EACA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AA4B0N,EAAW,gBAAiB,wBACpE,yBAAK1N,UAAS,uBAAkBsO,EAA4B,QAAS,KACnE,yBAAKtO,UAAW,iBACd,yBAAKiD,MAAM,KAAKD,OAAO,KAAK0L,QAAQ,YAAYC,KAAK,OAAOC,MAAM,8BAChE,0BAAMC,EAAE,80BAA80BF,KAAK,WAE71B,yBAAK3O,UAAW,sBAAhB,4BAIF,yBAAKA,UAAW,qBAAhB,sCAIF,kBAAC,GAAD,CAAQ0M,SAAUA,EAAUrB,oBAvBR,WAC1BkD,GAA6B,GAC7BhB,YAAW,WACTgB,GAA6B,KAC5B,MAmByE9B,MAAOA,EAAOxF,QAASA,IAC7F,yBAAKjH,UAAW,sBACbH,EAAMiI,SACP,kBAACgH,EAAD,CAAQ/H,QAASA,SAO7ByG,GAAqB9L,aA1DA,CACnBuF,QAAS,CAAC,OA2DGuG,UEjEFuB,GAAM,WACjB,OACI,kBAAC,GAAD,CAAsBtB,aAAc,MAChC,kBAAC,EAAD,QCDJuB,ICGkB,IAAIvF,KAAkB,CAC1CC,kBAAmB,CAAC,GAAI,MAGC,IAAIE,KAAuB,CACpDC,IAAK,CACDC,GAAI,oCACJC,GAAI,mDAERC,QAAQ,EACRC,OAAQ,qCAGqB,IAAIL,KAAuB,CACxDC,IAAK,CACDC,GAAI,oCACJC,GAAI,mDAERC,QAAQ,EACRC,OAAQ,uCC7BuBI,OAAOC,UACpCD,OAAOC,SAAS2E,cAEY5E,OAAOC,UACnCD,OAAOC,SAAS4E,WFGNC,SAASC,qBAAqB,QAAQ,GAAGC,aAAa,SAChEC,GAAcH,SAASI,eAAe,QAE5CC,IAASC,OACL,kBAAC,IAAD,CAAeC,SAAUV,IACrB,kBAAC,IAAD,CAAmBW,WCoBD,SAACC,GAAD,OAAc,IAAI9N,IAAK8N,KDnBrC,kBAAC,GAAD,QAGRN,M","file":"static/js/main.8e7af567.chunk.js","sourcesContent":["module.exports = __webpack_public_path__ + \"static/media/MMProLogo.55877753.svg\";","module.exports = __webpack_public_path__ + \"static/media/MMProLogoSmall.e22c4667.svg\";","import React from 'react';\n\nconst LocaleContext = React.createContext({ setLocale: (newLocale: string)=>{}, locale: 'en' });\n\nexport default LocaleContext;\n","import React, {useContext, useState} from \"react\";\nimport texts from './localization'\nimport LocaleContext from \"../../Standard/LocaleContext\";\nimport {localized} from \"../../Standard/utils/localized\";\nimport './index.css'\n\n// CONSTANTS\n\n// DEFAULT FUNCTIONS\n\n// TODO: copy this components directory and add your content to make your page\n\ntype SimpleValidatedInputPropType = {\n // You should declare props like this, delete this if you don't need props\n placeholder?: string\n className?: string\n type?: string\n shouldValidateOnInput?: boolean\n errorTooltipText?: string\n hasDefaultValueButton?: boolean\n defaultValueButtonText?: string\n defaultValue?: string,\n validationFunction?: (text: string) => boolean\n onValidationChange: (isValid: boolean) => void\n onBlur?: (e: React.FocusEvent) => void\n onFocus?: (e: React.FocusEvent) => void\n onChange?: (e: React.ChangeEvent) => void,\n autocomplete?: string\n}\n\n\nconst SimpleValidatedInputDefaultProps = {\n // You should declare default props like this, delete this if you don't need props\n placeholder: '',\n type: 'text',\n errorTooltipText: 'Wrong input',\n hasDefaultValueButton: false,\n defaultValueButtonText: 'Default',\n className: '',\n defaultValue: '',\n shouldValidateOnInput: false,\n onValidationChange: ()=>{},\n validationFunction: ()=>{return true},\n onBlur: ()=>{},\n onFocus: ()=>{},\n onChange: ()=>{},\n}\n\nconst SimpleValidatedInput = (props: SimpleValidatedInputPropType) => {\n const {\n placeholder,\n type,\n className,\n shouldValidateOnInput,\n onValidationChange,\n errorTooltipText,\n validationFunction,\n onBlur,\n onChange,\n onFocus,\n hasDefaultValueButton,\n defaultValueButtonText,\n defaultValue,\n autocomplete\n } = props\n\n const [isValid, setIsValid] = useState(true)\n const inputRef = React.createRef()\n\n const onChangeInner = (e: React.ChangeEvent) => {\n if (onChange) {\n onChange(e)\n }\n if(validationFunction && validationFunction(e.target.value)){\n setIsValid(true)\n onValidationChange(true)\n }\n if(shouldValidateOnInput && validationFunction && !validationFunction(e.target.value)){\n setIsValid(false)\n onValidationChange(false)\n }\n }\n\n const onFocusInner = (e: React.FocusEvent) => {\n if (onFocus) {\n onFocus(e)\n }\n\n }\n\n const onBlurInner = (e: React.FocusEvent) => {\n if (onBlur) {\n onBlur(e)\n }\n if(validationFunction && !validationFunction(e.target.value)){\n setIsValid(false)\n onValidationChange(false)\n }\n }\n\n const setDefaultValue = () => {\n if(inputRef.current && defaultValue){\n inputRef.current.value = defaultValue\n // @ts-ignore\n onChangeInner({target: {value: defaultValue}})\n // @ts-ignore\n onBlurInner({target: {value: defaultValue}})\n setIsValid(true)\n onValidationChange(true)\n }\n }\n\n return (\n
\n \n {hasDefaultValueButton &&\n \n }\n
\n {errorTooltipText}\n
\n \n )\n};\n\nSimpleValidatedInput.defaultProps = SimpleValidatedInputDefaultProps\n\nexport default SimpleValidatedInput","import Web3 from \"web3\";\nimport { useWeb3React } from \"@web3-react/core\";\n\nimport {\n getBUSDAddress,\n getMMProAddress, getPancakeRouterAddress,\n} from \"../utils/getCommonAdress\";\nimport MMPRO from \"../contracts/MMPRO.json\";\nimport BUSD from \"../contracts/Busd.json\";\nimport PancakeRouter from '../contracts/PancakeRouter.json'\nimport getRpcUrl from \"../utils/getRpcUrl\";\n\nconst RPC_URL = getRpcUrl();\nconst httpProvider = new Web3.providers.HttpProvider(RPC_URL, {\n timeout: 10000,\n});\n\nexport const useWeb3 = () => {\n const { library } = useWeb3React();\n let web3;\n if (library) {\n web3 = new Web3(library.currentProvider || httpProvider);\n } else {\n web3 = new Web3(httpProvider);\n }\n return web3;\n};\n\nexport const useContract = (abi, address) => {\n const web3 = useWeb3();\n return new web3.eth.Contract(abi, address);\n};\n\nexport const useBUSDContract = () => {\n const abi = BUSD.abi;\n return useContract(abi, getBUSDAddress());\n};\n\nexport const useMMProContract = () => {\n const abi = MMPRO.abi;\n return useContract(abi, getMMProAddress());\n};\n\nexport const usePancakeRouterContract = () => {\n const abi = PancakeRouter.abi;\n return useContract(abi, getPancakeRouterAddress());\n}\n","const getRpcUrl = () => {\n return \"https://bsc-dataseed.binance.org/\";\n};\n\nexport default getRpcUrl;\n","import React from \"react\";\nimport \"./index.css\";\n\nconst Spinner = ({ animationDuration, size, color }) => {\n return (\n \n \n \n \n );\n};\n\nSpinner.defaultProps = {\n animationDuration: 1000,\n size: 40,\n color: \"#2c6fa5\",\n};\n\nexport default Spinner;\n","import React, {useContext, useEffect, useState} from \"react\";\nimport texts from './localization'\nimport LocaleContext from \"../../Standard/LocaleContext\";\nimport {localized} from \"../../Standard/utils/localized\";\nimport SimpleValidatedInput from \"../../components/SimpleValidatedInput\";\nimport {useEmailCollectorContract} from \"../../hooks /useEmailCollectorContract\";\nimport Spinner from \"../../Standard/components/Spinner\";\n\nimport styled from 'styled-components'\nimport {useWeb3React} from \"@web3-react/core\";\n\ninterface ButtonProps {\n background: string\n textColor: string\n}\n\n\ntype MainPropType = {}\n\nconst MainDefaultProps = {}\n\nconst testEmailRegex = /^[ ]*([^@\\s]+)@((?:[-a-z0-9]+\\.)+[a-z]{2,})[ ]*$/i;\n\nconst MainContainer = styled.div`\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n padding: 40px;\n`\n\nconst Title = styled.div`\n font-size: 24px;\n font-weight: 700;\n margin-bottom: 20px;\n\n @media (max-width: 550px) {\n font-size: 16px;\n }\n`\n\nconst MainTitle = styled.div`\n font-size: 28px;\n font-weight: 700;\n margin-bottom: 20px;\n text-align: center;\n \n @media (max-width: 550px) {\n font-size: 24px;\n }\n`\n\nconst Description = styled.div`\n max-width: 600px;\n width: 100%;\n font-size: 18px;\n text-align: center;\n margin-bottom: 40px;\n\n @media (max-width: 550px) {\n font-size: 14px;\n }\n`\n\nconst Button = styled.button`\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 210px;\n height: 50px;\n background: #33CC66;\n border-radius: 10px;\n font-weight: 700;\n font-size: 16px;\n color: ${p => p.textColor};\n background: ${p => p.background};\n outline: none;\n transition: background 0.3s ease;\n margin-top: 10px;\n\n &:focus,\n &:active {\n outline: none;\n }\n`\n\nconst Link = styled.a`\n text-decoration: underline;\n`\n\nconst Attention = styled.div`\n font-weight: 700;\n font-size: 20px;\n color: red;\n`\n\n\nconst Main = (props: MainPropType) => {\n const {locale} = useContext(LocaleContext)\n const {account} = useWeb3React()\n\n const [email, setEmail] = useState(undefined)\n const [emailValid, setEmailValid] = useState(false)\n const [isModalActive, setIsModalActive] = useState(false)\n const [isAssociate, setIsAssociate] = useState(false)\n const [isLoading, setIsLoading] = useState(false)\n\n const emailCollectorContract = useEmailCollectorContract()\n\n async function encryptEmail(email: string): Promise<{ encryptedEmail: string }> {\n const encryptEmailURL = 'https://encrypted-email-mmpro.herokuapp.com/encryptEmail'\n const requestOptions = {\n method: 'POST',\n headers: {'Content-Type': 'application/json'},\n body: JSON.stringify({email: email})\n };\n return fetch(encryptEmailURL, requestOptions)\n .then(response => response.json())\n }\n\n async function sendEmail() {\n if (emailValid && account && email) {\n setIsLoading(true)\n const {encryptedEmail} = await encryptEmail(email)\n await emailCollectorContract\n .methods\n .associate(encryptedEmail)\n .send({from: account}).once('receipt', () => {\n setEmail('')\n setIsLoading(false)\n setIsAssociate(true)\n });\n }\n }\n\n async function checkAssociate(account: string) {\n const isAssociate = await emailCollectorContract\n .methods\n .isAssociated(account)\n .call()\n setIsAssociate(isAssociate)\n }\n\n useEffect(() => {\n if (account) {\n checkAssociate(account)\n }\n }, [account])\n\n return (\n \n Using this service, you will be able to attach your email to your personal wallet.\n {isAssociate ?\n \n Thanks for attaching your email to your wallet!\n \n Please be patient, our team processing your request, and soon you will be able to see shares from Launchpad\n at your Zimabank account.\n \n \n :\n <>\n {\n account ?\n <>\n \n Attention!\n
\n Please make sure that you are entering SAME email that you are using on Zimabank account.\n If you did not registered yet, please first use that link for registration:\n
\n setEmail(e.target.value)}\n onValidationChange={(isValid) => setEmailValid(isValid)}\n validationFunction={(text) => testEmailRegex.test(text)}\n errorTooltipText={'Please enter a correct email'}\n placeholder=\"Email\"\n type=\"email\"\n autocomplete=\"email\"\n />\n \n {\n isLoading ?\n \n :\n \"Send email\"\n }\n \n \n :\n \n Please connect your wallet to continue.\n
\n
\n Attention!\n
\n Please only connect wallet that you have used for the Launchpad’s projects participation. Connect wrong\n wallet will cause empty shares amount on the Zimabank account.\n
\n }\n \n }\n
\n )\n};\n\nMain.defaultProps = MainDefaultProps\n\nexport default Main\n\n","import EmailCollector from '../contract/LaunchpadEmailsCollectorContract.json'\nimport {useContract} from \"../Standard/hooks/useCommonContracts\";\nimport {getEmailCollectorAddress} from '../utils/getAddress'\n\nexport const useEmailCollectorContract = () => {\n const abi = EmailCollector.abi;\n return useContract(abi, getEmailCollectorAddress())\n}","export const getEmailCollectorAddress = () => {\n return \"0x98380024AD6a0705A535d554DF051Cd2C5912c0c\"\n}","import React from \"react\";\r\n\r\nexport default (props) => {\r\n return (\r\n
\r\n
\r\n \r\n \"\"\r\n \r\n \r\n \"\"\r\n \r\n \r\n v {props.version || \"1.0.0\"}\r\n \r\n
\r\n
\r\n );\r\n};\r\n","import React, {useContext, useState} from \"react\";\nimport './index.css'\nimport {useLocale} from \"../../hooks/useLocale\";\nimport LocaleContext from \"../../LocaleContext\";\n\nexport const LocaleSelector = (props: {locales: string[]}) => {\n const {locales} = props\n const [isOpened, setIsOpened] = useState(false)\n const {setLocale, locale} = useContext(LocaleContext)\n const [selected, setSelected] = useState(locale)\n\n return (\n
\n {locales.map((loc, index) => (\n index ? 0: 50)}: {}}\n onClick={()=>{\n setLocale(loc)\n setSelected(loc)\n setIsOpened(!isOpened)\n }}\n >\n {loc.toUpperCase()}\n \n ))}\n\n {/* {*/}\n {/* setIsOpened(!isOpened)*/}\n {/* }}*/}\n {/*/>*/}\n
\n );\n};","import React from \"react\";\r\nimport cx from \"classnames\";\r\n\r\nexport default ({\r\n color = \"white\",\r\n bgColor = \"primary\",\r\n showBorder = false,\r\n onClick,\r\n className,\r\n children,\r\n uppercase,\r\n disabled,\r\n}) => {\r\n return (\r\n \r\n {children}\r\n \r\n );\r\n};\r\n","import React, {useContext, useEffect, useRef} from \"react\";\nimport './index.css'\nimport {useWeb3React} from \"@web3-react/core\";\n// @ts-ignore\nimport jazzicon from 'jazzicon';\n\n\n// CONSTANTS\n\n// DEFAULT FUNCTIONS\n\n\nconst MetamaskJazzicon = () => {\n const {account} = useWeb3React()\n const avatarRef = React.createRef()\n useEffect(() => {\n const element = avatarRef.current;\n if (element && account) {\n const addr = account.slice(2, 10);\n const seed = parseInt(addr, 16);\n const icon = jazzicon(30, seed);\n if (element.firstChild) {\n element.removeChild(element.firstChild);\n }\n element.appendChild(icon);\n }\n }, [account, avatarRef]);\n\n return
;\n};\n\nexport default MetamaskJazzicon","import React from \"react\";\nimport './index.css'\n\ntype hidingTextProps = {\n defaultText: string,\n hidingText: string,\n peekOut: boolean,\n className?: string\n}\n\nexport const HidingText = ({defaultText, hidingText, peekOut, className}: hidingTextProps) => {\n\n return (\n
\n
\n {defaultText}\n
\n
\n {hidingText}\n
\n
\n );\n};","import { InjectedConnector } from \"@web3-react/injected-connector\";\nimport { WalletConnectConnector } from \"@web3-react/walletconnect-connector\";\nimport Web3 from \"web3\";\n\n// Chain IDs\n// These are the IDs of the Ethereum chains that MetaMask supports by default. Consult chainid.network (opens new window)for more.\n// Hex\tDecimal\tNetwork\n// 0x1\t1\tEthereum Main Network (Mainnet)\n// 0x3\t3\tRopsten Test Network\n// 0x4\t4\tRinkeby Test Network\n// 0x5\t5\tGoerli Test Network\n// 0x2a\t42\tKovan Test Network\nexport const injected = new InjectedConnector({\n supportedChainIds: [56, 97],\n});\n\nexport const walletconnect = new WalletConnectConnector({\n rpc: {\n 56: \"https://bsc-dataseed.binance.org/\",\n 97: \"https://data-seed-prebsc-1-s1.binance.org:8545/\",\n },\n qrcode: true,\n bridge: \"https://bridge.walletconnect.org\",\n});\n\nexport const walletconnectNoQr = new WalletConnectConnector({\n rpc: {\n 56: \"https://bsc-dataseed.binance.org/\",\n 97: \"https://data-seed-prebsc-1-s1.binance.org:8545/\",\n },\n qrcode: false,\n bridge: \"https://bridge.walletconnect.org\",\n});\n\n\nexport const getLibrary = (provider) => new Web3(provider);\n","export const switchNetwork = async (chainId) => {\n try {\n await window.ethereum.request({\n method: \"wallet_switchEthereumChain\",\n params: [{ chainId: \"0x38\" }],\n });\n } catch (switchError) {\n // This error code indicates that the chain has not been added to MetaMask.\n if (switchError.code === 4902) {\n try {\n await window.ethereum.request({\n method: \"wallet_addEthereumChain\",\n params: [\n {\n chainId: \"0x38\",\n rpcUrls: [\"https://bsc-dataseed.binance.org/\"],\n chainName: \"BSC Mainnet\",\n nativeCurrency: { name: \"BNB\", decimals: 18, symbol: \"BNB\" },\n blockExplorerUrls: [\"https://bscscan.com/\"],\n },\n ],\n });\n } catch (error) {\n console.error(error);\n }\n }\n }\n};\n","import React, {useContext, useEffect, useState} from \"react\";\nimport texts from './localization'\nimport LocaleContext from \"../../LocaleContext\";\nimport {localized} from \"../../utils/localized\";\nimport Button from \"../Button\";\nimport MetamaskJazzicon from \"../MetamaskJazzicon\";\nimport {HidingText} from \"../HidingText\";\nimport {useWeb3React} from \"@web3-react/core\";\nimport './index.css'\nimport {injected, switchNetwork, walletconnect} from \"../../wallet\";\n\n// CONSTANTS\n\n// DEFAULT FUNCTIONS\n\n// TODO: copy this components directory and add your content to make your page\n\ntype WalletConnectorPropType = {\n // You should declare props like this, delete this if you don't need props\n displayNotification: ()=>void\n}\n\nconst WalletConnectorDefaultProps = {\n // You should declare default props like this, delete this if you don't need props\n\n}\n\nconst WalletConnector = (props: WalletConnectorPropType) => {\n const {displayNotification} = props\n const {locale} = useContext(LocaleContext)\n const {chainId, account, deactivate, activate, active, connector, error} = useWeb3React();\n\n const [isConnectorOpen, setIsConnectorOpen] = useState(false)\n const [isDisconnectShowing, setIsDisconnectShowing] = useState(false)\n\n function mainButtonClick(){\n if(!active){\n setIsConnectorOpen(!isConnectorOpen)\n }else{\n // @ts-ignore\n if(connector && connector.walletConnectProvider){\n deactivate();\n }else{\n displayNotification()\n }\n }\n }\n\n function truncate(str: string) {\n return str.length > 0\n ? str.substr(2, 3) + \"...\" + str.substr(str.length - 3, str.length - 1)\n : str;\n }\n\n\n useEffect(() => {\n const initNetwork = async () => {\n if (56 !== chainId) {\n await switchNetwork();\n }\n };\n initNetwork();\n }, [active, chainId, error]);\n\n return (\n
\n setIsDisconnectShowing(true)}\n onMouseLeave={() => setIsDisconnectShowing(false)}\n style={{zIndex: 2, width: '100%'}}\n >\n {/* @ts-ignore */}\n \n {active &&\n <>\n \n \n \n }\n {!active &&\n
\n Connect Wallet\n
\n {\n activate(injected);\n }}\n >\n \n

MetaMask

\n
\n {\n activate(walletconnect).then(()=>{\n window.location.reload()\n });\n }}\n >\n \n

Wallet connect

\n
\n
\n
\n }\n \n \n \n )\n};\n\nWalletConnector.defaultProps = WalletConnectorDefaultProps\n\nexport default WalletConnector","import React, {useEffect, useState} from \"react\";\nimport Button from \"../Button.js\";\nimport ConnectModal from \"../ConnectModal\";\nimport {useWeb3React} from \"@web3-react/core\";\nimport './index.css'\n// @ts-ignore\nimport {HidingText} from \"../HidingText\";\nimport logo from '../../images/MMProLogo.svg'\nimport logoSmall from '../../images/MMProLogoSmall.svg'\nimport arrowUp from '../../images/arrowUpWhite.svg'\nimport {LocaleSelector} from \"../LocaleSelector\";\nimport MetamaskJazzicon from \"../MetamaskJazzicon\";\nimport {Link} from \"react-router-dom\";\nimport WalletConnector from \"../WalletConnector\";\n\nconst HeaderDefaultProps = {\n logoHref: 'https://marketmaking.pro/'\n}\n\nconst Header = (props: {logoHref?: string, displayNotification: ()=>void, locales: string[], pages?: {title: string, url: string}[]}) => {\n const {locales, pages, displayNotification, logoHref} = props\n const [selectedPage, setSelectedPage] = useState(pages ? pages[0].url: '')\n\n useEffect(()=>{\n setSelectedPage(window.location.pathname)\n }, [])\n\n return (\n <>\n
\n
\n
\n \n \n \n \n
\n
\n {(pages !== undefined && pages.length > 0) &&\n <>\n {pages.map(page => (\n {\n setSelectedPage(page.url)\n }}\n to={page.url}\n >\n {page.title}\n
\n \n ))}\n \n }\n
\n
\n\n
\n {locales.length > 1 &&\n \n }\n \n
\n
\n
\n \n );\n};\n\nHeader.defaultProps = HeaderDefaultProps\n\nexport default Header","import {useEffect, useState} from \"react\";\nimport {useWeb3React} from \"@web3-react/core\";\nimport {walletconnectNoQr} from \"../wallet/connectors\";\n\nexport const useConnectionCheck = () => {\n const {active, activate} = useWeb3React();\n\n const [shouldTryWalletConnect, setShouldTryWalletConnect] = useState(false)\n\n function tryWalletConnect() {\n if(!active && shouldTryWalletConnect){\n activate(walletconnectNoQr)\n setShouldTryWalletConnect(false)\n }\n }\n\n useEffect(() => {\n if(active && shouldTryWalletConnect){\n setShouldTryWalletConnect(false)\n } else {\n tryWalletConnect()\n }\n }, [active, shouldTryWalletConnect])\n\n useEffect(()=>{\n setTimeout(()=>{\n setShouldTryWalletConnect(true)\n }, 1000)\n }, [])\n};","/* eslint-disable react-hooks/exhaustive-deps */\n/* eslint-disable no-undef */\nimport React, {useEffect, useState} from \"react\";\nimport Footer from \"../components/Footer\";\nimport Header from \"../components/Header\";\nimport {useConnectionCheck} from \"../hooks/useConnectionCheck\";\nimport {injected} from \"../wallet\";\nimport {useWeb3React} from \"@web3-react/core\";\nimport {useLocale} from \"../hooks/useLocale\";\nimport LocaleContext from \"../LocaleContext\";\nimport './index.css'\n\nconst defaultProps = {\n locales: ['en']\n}\n\nconst StandardAppContainer = (props: {logoHref?: string, children: any, locales: string[], isDarkBG?: boolean, version: string, pages?: {title: string, url: string}[] }) => {\n const {locales, isDarkBG, version, pages, logoHref} = props\n\n let forcedLocale\n if(locales.length === 1){\n forcedLocale = locales[0]\n }\n // @ts-ignore\n const {active, activate, networkError} = useWeb3React();\n const {setLocale, locale} = useLocale(forcedLocale)\n const [shouldDysplayNotification, setShouldDysplayNotification] = useState(false)\n useConnectionCheck()\n\n useEffect(() => {\n injected.isAuthorized().then((isAuthorized) => {\n if (isAuthorized && !active && !networkError) {\n activate(injected);\n }\n });\n }, [activate, networkError]);\n\n const displayNotification = () => {\n setShouldDysplayNotification(true)\n setTimeout(()=>{\n setShouldDysplayNotification(false)\n }, 2000)\n }\n\n return (\n \n
\n
\n
\n \n \n \n
\n Wallet not disconnected\n
\n
\n
\n Please use Metamask to disconnect\n
\n
\n
\n
\n {props.children}\n
\n
\n
\n
\n );\n};\n\nStandardAppContainer.defaultProps = defaultProps\n\nexport default StandardAppContainer;\n","import getUserLocale from \"get-user-locale\";\nimport {useCookies} from \"react-cookie/cjs\";\nimport {useEffect, useState} from \"react\";\n\nexport const useLocale = (forcedLocale) => {\n const userLocale = getUserLocale();\n const [cookies, setCookie, removeCookie] = useCookies(['cookie-name']);\n const [locale, setLocaleState] = useState('')\n\n useEffect(()=>{\n setLocaleState(updateLocale())\n }, [])\n\n function updateLocale(){\n let newLocale = forcedLocale || cookies[\"locale\"] || ''\n\n const isUserLocaleJA = userLocale.includes(\"ja\") || userLocale.includes(\"JA\") || userLocale[0].includes(\"ja\") || userLocale[0].includes(\"JA\")\n if(newLocale === '' && isUserLocaleJA){\n newLocale = 'ja'\n }\n // @ts-ignore\n if (newLocale === '') {\n newLocale = \"en\"\n }\n return newLocale\n }\n\n const setLocale = (newLocale) => {\n setCookie(\"locale\", newLocale)\n setLocaleState(newLocale)\n }\n\n return {\n setLocale,\n locale,\n updateLocale\n }\n}","/* eslint-disable react-hooks/exhaustive-deps */\n/* eslint-disable no-undef */\nimport React from \"react\";\nimport Main from \"./pages/Main\";\n\nimport StandardAppContainer from \"./Standard/StandardAppContainer\";\n\nexport const App = () => {\n return (\n \n
\n \n );\n};\n","import \"./styles/tailwind.css\";\nimport \"./styles/index.css\";\nimport React from \"react\";\nimport ReactDOM from \"react-dom\";\nimport {BrowserRouter} from \"react-router-dom\";\nimport {Web3ReactProvider} from \"@web3-react/core\";\nimport {App} from \"./App\";\nimport {getLibrary} from \"./wallet\";\n\nconst baseUrl = document.getElementsByTagName(\"base\")[0].getAttribute(\"href\");\nconst rootElement = document.getElementById(\"root\");\n\nReactDOM.render(\n \n \n \n \n ,\n rootElement\n);\n","import {InjectedConnector} from \"@web3-react/injected-connector\";\nimport {WalletConnectConnector} from \"@web3-react/walletconnect-connector\";\nimport Web3 from \"web3\";\n\n// Chain IDs\n// These are the IDs of the Ethereum chains that MetaMask supports by default. Consult chainid.network (opens new window)for more.\n// Hex\tDecimal\tNetwork\n// 0x1\t1\tEthereum Main Network (Mainnet)\n// 0x3\t3\tRopsten Test Network\n// 0x4\t4\tRinkeby Test Network\n// 0x5\t5\tGoerli Test Network\n// 0x2a\t42\tKovan Test Network\nexport const injected = new InjectedConnector({\n supportedChainIds: [56, 97],\n});\n\nexport const walletconnect = new WalletConnectConnector({\n rpc: {\n 56: \"https://bsc-dataseed.binance.org/\",\n 97: \"https://data-seed-prebsc-1-s1.binance.org:8545/\",\n },\n qrcode: true,\n bridge: \"https://bridge.walletconnect.org\",\n});\n\nexport const walletconnectNoQr = new WalletConnectConnector({\n rpc: {\n 56: \"https://bsc-dataseed.binance.org/\",\n 97: \"https://data-seed-prebsc-1-s1.binance.org:8545/\",\n },\n qrcode: false,\n bridge: \"https://bridge.walletconnect.org\",\n});\n\nexport const getLibrary = (provider) => new Web3(provider);\n","export const ethereumConnect = () =>\n window.ethereum.request({method: \"eth_requestAccounts\"});\nexport const isEthereumConnected = window.ethereum\n ? window.ethereum.isConnected()\n : false;\nexport const isEthereumMetaMask = window.ethereum\n ? window.ethereum.isMetaMask\n : null;\nexport const ethereumSendTransaction = (params) =>\n window.ethereum.request({\n method: \"eth_sendTransaction\",\n params,\n });\n\nexport const switchNetwork = async (chainId) => {\n try {\n await window.ethereum.request({\n method: \"wallet_switchEthereumChain\",\n params: [{chainId: \"0x61\"}],\n });\n } catch (switchError) {\n // This error code indicates that the chain has not been added to MetaMask.\n if (switchError.code === 4902) {\n try {\n await window.ethereum.request({\n method: \"wallet_addEthereumChain\",\n params: [\n {\n chainId: \"0x61\",\n rpcUrls: [\"https://data-seed-prebsc-1-s1.binance.org:8545\"],\n chainName: \"BSC Mainnet\",\n nativeCurrency: {name: \"BNB\", decimals: 18, symbol: \"BNB\"},\n blockExplorerUrls: [\"https://testnet.bscscan.com\"],\n },\n ],\n });\n } catch (error) {\n console.error(error);\n }\n }\n }\n};\n"],"sourceRoot":""}