diff --git a/.env b/.env index 2698e33..c045bde 100644 --- a/.env +++ b/.env @@ -1,25 +1,22 @@ SECRET_WORDS="test test test test test test test test test test test junk" PASSWORD=TestMetaMask -NETWORK_NAME=MXC -GRAPH_URL=http://mxc-graph-node.mxc.com:8000/subgraphs/name/mnsdomains/mns +NETWORK_NAME=Moonchain Geneva Testnet +GRAPH_URL=https://geneva-graph-node.moonchain.com/subgraphs/name/mnsdomains/mns DATA_FOLDER=./data NEXT_PUBLIC_ALCHEMY_KEY=sSpYuHmhlpuU7RVXq-IIdCdz4IuKF-gM BLOCK_HEIGHT=17952336 -SUBGRAPH_ID=QmXxAE7Urtv6TPa8o8XmPwLVQNbH6r35hRKHP63udTxTNa -LOCAL_SUBGRAPH_ID=QmSUnR4AUTQ8CuGH2fK7tFTSSfYGe8BUz6EeBRNavXbE1H +SUBGRAPH_ID=Qmb2tRDc3LbfbNC1RhgNkY1ZiKCZD5qXXscqDSnJZMY8LJ +LOCAL_SUBGRAPH_ID=Qmb2tRDc3LbfbNC1RhgNkY1ZiKCZD5qXXscqDSnJZMY8LJ EPOCH_TIME=1660180306 -NETWORK=mxc_wannsee -NEXT_PUBLIC_NETWORK_CHAINID=5167003 +NETWORK=mxc_geneva ARCHIVE_URL=https://storage.googleapis.com/ens-manager-build-data TRANSACTION_WAIT_TIME=5000 STABLE_MODE=500 -NEXT_PUBLIC_PROVIDER=https://wannsee-rpc.mxc.com -NEXT_PUBLIC_DEPLOYMENT_ADDRESSES={"ENSRegistry":"0x4E7984fF74569a270765EE67792386cBA77D1b01","PublicResolver":"0x438b261bEb8D3C500153DD17588E6feC36535312","BaseRegistrarImplementation":"0x39c47d083364b4A23d085c7945Fac9d42457d8C7","NameWrapper":"0x2246EdAd0bc9212Bae82D43974619480A9D1f387","ETHRegistrarController":"0xD9EeC15002fF7467a6841EDF6ea2D1048BaBc7c4","BulkRenewal":"0xD879004149706a6156De08e9a571Bfa5Ac6eDa84","DNSRegister":"0xaCFb160C4356a89c0096aAd292c7300D5949F384","ReverseRegistrar":"0x3453c56D41A18147dcb4a92b0B08210F90740a87","UniversalResolver":"0x4dc508720f701882c0bBB2fa67aA5c6bfBcC9c3e","Multicall":"0x98b114269C2635ff2cB03F0526feb246d1082B4C"} -NEXT_PUBLIC_GRAPH_URI=https://mxc-graph-node.mxc.com/subgraphs/name/mnsdomains/mns - -NEXT_PUBLIC_PINATA_SECRET_API_KEY = "e2888715c2e00be5b87664db8a797d11720db7f6014d51e15bfb6b62a922fe61" -NEXT_PUBLIC_PINATA_API_KEY = "52f5dffaa392c58db33d" \ No newline at end of file +NEXT_PUBLIC_PROVIDER=https://geneva-rpc.moonchain.com +NEXT_PUBLIC_DEPLOYMENT_ADDRESSES={"ENSRegistry":"0x9691E2eFb8C7f6d714A7b35da3184b8cB927a415","PublicResolver":"0xd241E9681B22Ae47e94c523d25CDdC1a4960cDC3","BaseRegistrarImplementation":"0xcf83cFaB3E0755557136d5f43860C304d24ccac1","NameWrapper":"0xCE5e3c318BFC7c2dee486cF7c62Ba95feFd6d2bD","ETHRegistrarController":"0x231cFEAE98514F825740707Fb0C95BBf8C526AB1","BulkRenewal":"0x7cA72a22d34C4A1236E087218430E9D6c4360386","DNSRegister":"0x8Ac21Cc278B67BbBc079CA1987F83c21F271734F","ReverseRegistrar":"0x8Ac21Cc278B67BbBc079CA1987F83c21F271734F","UniversalResolver":"0x207CD63fbf5717e8ae0b311102a99601757D840F","Multicall":"0xa7AE33E9aEFc8d4abC8e0E6898a00C8C88BeAC94"} +NEXT_PUBLIC_GRAPH_URI=https://geneva-graph-node.moonchain.com/subgraphs/name/mnsdomains/mns +MEP1002_ADDR=0x181eC6Bc420FAEce0228c91936938F438F2a33df \ No newline at end of file diff --git a/.env.testnet b/.env.testnet index 2698e33..c045bde 100644 --- a/.env.testnet +++ b/.env.testnet @@ -1,25 +1,22 @@ SECRET_WORDS="test test test test test test test test test test test junk" PASSWORD=TestMetaMask -NETWORK_NAME=MXC -GRAPH_URL=http://mxc-graph-node.mxc.com:8000/subgraphs/name/mnsdomains/mns +NETWORK_NAME=Moonchain Geneva Testnet +GRAPH_URL=https://geneva-graph-node.moonchain.com/subgraphs/name/mnsdomains/mns DATA_FOLDER=./data NEXT_PUBLIC_ALCHEMY_KEY=sSpYuHmhlpuU7RVXq-IIdCdz4IuKF-gM BLOCK_HEIGHT=17952336 -SUBGRAPH_ID=QmXxAE7Urtv6TPa8o8XmPwLVQNbH6r35hRKHP63udTxTNa -LOCAL_SUBGRAPH_ID=QmSUnR4AUTQ8CuGH2fK7tFTSSfYGe8BUz6EeBRNavXbE1H +SUBGRAPH_ID=Qmb2tRDc3LbfbNC1RhgNkY1ZiKCZD5qXXscqDSnJZMY8LJ +LOCAL_SUBGRAPH_ID=Qmb2tRDc3LbfbNC1RhgNkY1ZiKCZD5qXXscqDSnJZMY8LJ EPOCH_TIME=1660180306 -NETWORK=mxc_wannsee -NEXT_PUBLIC_NETWORK_CHAINID=5167003 +NETWORK=mxc_geneva ARCHIVE_URL=https://storage.googleapis.com/ens-manager-build-data TRANSACTION_WAIT_TIME=5000 STABLE_MODE=500 -NEXT_PUBLIC_PROVIDER=https://wannsee-rpc.mxc.com -NEXT_PUBLIC_DEPLOYMENT_ADDRESSES={"ENSRegistry":"0x4E7984fF74569a270765EE67792386cBA77D1b01","PublicResolver":"0x438b261bEb8D3C500153DD17588E6feC36535312","BaseRegistrarImplementation":"0x39c47d083364b4A23d085c7945Fac9d42457d8C7","NameWrapper":"0x2246EdAd0bc9212Bae82D43974619480A9D1f387","ETHRegistrarController":"0xD9EeC15002fF7467a6841EDF6ea2D1048BaBc7c4","BulkRenewal":"0xD879004149706a6156De08e9a571Bfa5Ac6eDa84","DNSRegister":"0xaCFb160C4356a89c0096aAd292c7300D5949F384","ReverseRegistrar":"0x3453c56D41A18147dcb4a92b0B08210F90740a87","UniversalResolver":"0x4dc508720f701882c0bBB2fa67aA5c6bfBcC9c3e","Multicall":"0x98b114269C2635ff2cB03F0526feb246d1082B4C"} -NEXT_PUBLIC_GRAPH_URI=https://mxc-graph-node.mxc.com/subgraphs/name/mnsdomains/mns - -NEXT_PUBLIC_PINATA_SECRET_API_KEY = "e2888715c2e00be5b87664db8a797d11720db7f6014d51e15bfb6b62a922fe61" -NEXT_PUBLIC_PINATA_API_KEY = "52f5dffaa392c58db33d" \ No newline at end of file +NEXT_PUBLIC_PROVIDER=https://geneva-rpc.moonchain.com +NEXT_PUBLIC_DEPLOYMENT_ADDRESSES={"ENSRegistry":"0x9691E2eFb8C7f6d714A7b35da3184b8cB927a415","PublicResolver":"0xd241E9681B22Ae47e94c523d25CDdC1a4960cDC3","BaseRegistrarImplementation":"0xcf83cFaB3E0755557136d5f43860C304d24ccac1","NameWrapper":"0xCE5e3c318BFC7c2dee486cF7c62Ba95feFd6d2bD","ETHRegistrarController":"0x231cFEAE98514F825740707Fb0C95BBf8C526AB1","BulkRenewal":"0x7cA72a22d34C4A1236E087218430E9D6c4360386","DNSRegister":"0x8Ac21Cc278B67BbBc079CA1987F83c21F271734F","ReverseRegistrar":"0x8Ac21Cc278B67BbBc079CA1987F83c21F271734F","UniversalResolver":"0x207CD63fbf5717e8ae0b311102a99601757D840F","Multicall":"0xa7AE33E9aEFc8d4abC8e0E6898a00C8C88BeAC94"} +NEXT_PUBLIC_GRAPH_URI=https://geneva-graph-node.moonchain.com/subgraphs/name/mnsdomains/mns +MEP1002_ADDR=0x181eC6Bc420FAEce0228c91936938F438F2a33df \ No newline at end of file diff --git a/hardhat.config.ts b/hardhat.config.ts index 802197d..9105987 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -23,16 +23,16 @@ const config: HardhatUserConfig = { }, ], }, - defaultNetwork: 'mxc_testnet', + defaultNetwork: 'mxc_geneva', networks: { // eslint-disable-next-line @typescript-eslint/naming-convention - mxc_wannsee: { - chainId: 5167003, + mxc_geneva: { + chainId: 5167004, tags: ['use_root'], accounts: { mnemonic: process.env.SECRET_WORDS!, }, - url: 'https://wannsee-rpc.mxc.com', + url: 'https://geneva-rpc.moonchain.com', }, hardhat: { saveDeployments: false, diff --git a/src/constants/Network.ts b/src/constants/Network.ts index 6b026a3..c2c2108 100644 --- a/src/constants/Network.ts +++ b/src/constants/Network.ts @@ -6,27 +6,27 @@ const chain_id: string = process.env.NEXT_PUBLIC_NETWORK_CHAINID || "18686" const networks: any = { 5167003: { - id: 5167003, - name: 'MXC Wannsee', + id: 5167004, + name: 'MXC zkEVM Moonchain Geneva Testnet', nativeCurrency: { decimals: 18, name: 'MXC', symbol: 'MXC' }, - network: 'MXC Wannsee', + network: 'MXC zkEVM Moonchain Geneva Testnet', rpcUrls: { default: { - http: ['https://wannsee-rpc.mxc.com'], - webSocket: ['wss://wannsee-rpc.mxc.com'], + http: ['https://geneva-rpc.moonchain.com'], + webSocket: ['wss://geneva-rpc.moonchain.com/ws'], }, - public: { http: ['https://wannsee-rpc.mxc.com'] }, + public: { http: ['https://geneva-rpc.moonchain.com'] }, }, blockExplorers: { default: { - name: 'Wannsee Block Explorer', - url: 'https://wannsee-explorer.mxc.com/', + name: 'MoonChain Geneva Block Explorer', + url: 'https://geneva-explorer.moonchain.com/', }, }, contracts: { multicall3: { - address: '0x87A3645647cabb016705eddfD0f7787fEe9324BF', - blockCreated: 383161, + address: '0x3f2AB51385EF323cb1B411579D7DDf221fFe9EaA', + blockCreated: 5860, }, }, }, diff --git a/src/constants/addressConfig.ts b/src/constants/addressConfig.ts index 5a32147..01dbbc6 100644 --- a/src/constants/addressConfig.ts +++ b/src/constants/addressConfig.ts @@ -3,8 +3,8 @@ const chain_id: string = process.env.NEXT_PUBLIC_NETWORK_CHAINID || "18686" const contracts: any = { - 5167003: { - MEP1002: "0xFf3159E5779C61f5d2965305DC1b9E8a1E16a39c", + 5167004: { + MEP1002: "0x181eC6Bc420FAEce0228c91936938F438F2a33df", }, 18686: { MEP1002: "0x068234de9429FaeF2585A6eD9A52695cDa78aFE1", diff --git a/src/hooks/useChainName.ts b/src/hooks/useChainName.ts index ccfd742..20b946c 100755 --- a/src/hooks/useChainName.ts +++ b/src/hooks/useChainName.ts @@ -7,5 +7,5 @@ export const useChainName = () => { const name = chain.network.toLowerCase() return name === 'homestead' ? 'mainnet' : name } - return 'MXC Mainnet' + return 'Moonchain' } diff --git a/src/utils/utils.ts b/src/utils/utils.ts index 8bce239..ce409fd 100755 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -62,7 +62,7 @@ export const formatFullExpiry = (expiryDate?: Date) => expiryDate ? `${formatExpiry(expiryDate)}, ${formatDateTime(expiryDate)}` : '' export const makeEtherscanLink = (data: string, network?: string, route: string = 'tx') => - `https://explorer.mxc.com/${route}/${data}` + `https://geneva-explorer.moonchain.com/${route}/${data}` export const isBrowser = !!( typeof window !== 'undefined' &&