From a3bda707e38268356992986200a7d102f6ad7844 Mon Sep 17 00:00:00 2001
From: "Mr.Mao" <951416545@qq.com>
Date: Fri, 29 Mar 2024 16:23:46 +0800
Subject: [PATCH 1/5] chore: update moonchain view
---
package.json | 1 +
pnpm-lock.yaml | 7 +++++++
src/components/Header.tsx | 2 +-
src/pages/_app.tsx | 3 ++-
4 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/package.json b/package.json
index 4bdb701..e1275d0 100644
--- a/package.json
+++ b/package.json
@@ -78,6 +78,7 @@
"@ethersproject/units": "^5.7.0",
"@ethersproject/web": "^5.7.1",
"@hairy/browser-utils": "^0.2.5",
+ "@moonchain/metadata": "^0.0.5",
"@rainbow-me/rainbowkit": "0.12.7",
"@svgr/webpack": "^6.3.1",
"@tanstack/query-persist-client-core": "4.14.5",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 5f33d3e..0540b1d 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -112,6 +112,9 @@ importers:
'@hairy/browser-utils':
specifier: ^0.2.5
version: 0.2.5
+ '@moonchain/metadata':
+ specifier: ^0.0.5
+ version: 0.0.5
'@rainbow-me/rainbowkit':
specifier: 0.12.7
version: 0.12.7(patch_hash=f2ny37ockjryajfu6zcn2nezee)(@types/react@17.0.30)(ethers@5.7.2)(react-dom@17.0.2)(react@17.0.2)(wagmi@0.12.1)
@@ -3528,6 +3531,10 @@ packages:
- utf-8-validate
dev: true
+ /@moonchain/metadata@0.0.5:
+ resolution: {integrity: sha512-EilE0o+pb0iv/cCMpngDDYedsf7KnQmts/B9CsYYCUMx1AVhpiOUxeJVhTb10jD0xIdLvDkDjh28lPumGNUfPQ==}
+ dev: false
+
/@multiformats/base-x@4.0.1:
resolution: {integrity: sha512-eMk0b9ReBbV23xXU693TAIrLyeO5iTgBZGSJfpqriG8UkYvr/hC9u9pyMlAakDNHWmbhMZCDs6KQO0jzKD8OTw==}
dev: false
diff --git a/src/components/Header.tsx b/src/components/Header.tsx
index 46277d4..a27af2d 100755
--- a/src/components/Header.tsx
+++ b/src/components/Header.tsx
@@ -195,7 +195,7 @@ export const Header = () => {
)}
>
-
+ MOONCHAIN
{router.asPath !== '/' && breakpoints.sm && (
<>
diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx
index e89fa27..e85324e 100755
--- a/src/pages/_app.tsx
+++ b/src/pages/_app.tsx
@@ -21,6 +21,7 @@ import { chains, wagmiClient } from '@app/utils/query'
import i18n from '../i18n'
import '../styles.css'
+import "@moonchain/metadata/style.css"
const rainbowKitTheme: Theme = {
...lightTheme({
@@ -73,7 +74,7 @@ const GlobalStyle = createGlobalStyle`
body {
// background: radial-gradient(50% 50% at 50% 50%, rgba(82, 152, 255, 0.062) 0%, rgba(255, 255, 255, 0) 100%), #F7F7F7;
- background: #2a0f69;
+ background: #101010;
}
body, .min-safe {
From 6960f003fde0610c0e53ce0ec15f4f8437a9c9c9 Mon Sep 17 00:00:00 2001
From: "Mr.Mao" <951416545@qq.com>
Date: Tue, 2 Apr 2024 19:17:07 +0800
Subject: [PATCH 2/5] chore: update view
---
.env | 14 +++++++-------
.../@atoms/PlusMinusControl/PlusMinusControl.tsx | 2 +-
.../RegistrationTimeComparisonBanner.tsx | 4 ++--
src/pages/_app.tsx | 10 +++++-----
src/pages/index.tsx | 4 ++--
src/styles.css | 2 +-
6 files changed, 18 insertions(+), 18 deletions(-)
diff --git a/.env b/.env
index 2698e33..bc4eadd 100644
--- a/.env
+++ b/.env
@@ -1,25 +1,25 @@
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
+GRAPH_URL=http://mxc-graph.mxc.com:8000/subgraphs/name/mnsdomains/mns
DATA_FOLDER=./data
NEXT_PUBLIC_ALCHEMY_KEY=sSpYuHmhlpuU7RVXq-IIdCdz4IuKF-gM
BLOCK_HEIGHT=17952336
-SUBGRAPH_ID=QmXxAE7Urtv6TPa8o8XmPwLVQNbH6r35hRKHP63udTxTNa
+SUBGRAPH_ID=QmQ8PKwc5a4Zv86TPPLvN9n7y3VAASiH5ptkffJHZm2pU1
LOCAL_SUBGRAPH_ID=QmSUnR4AUTQ8CuGH2fK7tFTSSfYGe8BUz6EeBRNavXbE1H
EPOCH_TIME=1660180306
-NETWORK=mxc_wannsee
-NEXT_PUBLIC_NETWORK_CHAINID=5167003
+NETWORK=mxc
+NEXT_PUBLIC_NETWORK_CHAINID=18686
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_PROVIDER=https://rpc.mxc.com
+NEXT_PUBLIC_DEPLOYMENT_ADDRESSES={"ENSRegistry":"0xd241E9681B22Ae47e94c523d25CDdC1a4960cDC3","PublicResolver":"0x5325640Cc17A06a409d4f4b6af02A0120528c67E","BaseRegistrarImplementation":"0xCDFd5D9cEf780f751e5C653bFC9dFf0A4E55c39C","NameWrapper":"0xD1B70f92b310c3Fa95b83dB436E00a53e1f1f5d5","ETHRegistrarController":"0x8cFa2b92fcD0AEB6bD4EA056425C64f8638474d7","BulkRenewal":"0x032379fd3C71Fc100722CC98BC97803B7E01eAE6","DNSRegister":"0x74BF2E1290e24B99fCD244c34Da665Fd7FE17E08","ReverseRegistrar":"0x18c02bA5D8391b3CB49586C94454E44102252cFA","UniversalResolver":"0x7F0ca8F3bBC08eb712108Ae47D5A2c7D47075d6B","Multicall":"0xfA9eBcEd32BaB3EA062f9853ACA66cC9B666fBB9"}
+NEXT_PUBLIC_GRAPH_URI=https://mxc-graph.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
diff --git a/src/components/@atoms/PlusMinusControl/PlusMinusControl.tsx b/src/components/@atoms/PlusMinusControl/PlusMinusControl.tsx
index 8d2f25b..dec165f 100755
--- a/src/components/@atoms/PlusMinusControl/PlusMinusControl.tsx
+++ b/src/components/@atoms/PlusMinusControl/PlusMinusControl.tsx
@@ -95,7 +95,7 @@ const Label = styled.label<{ $highlighted?: boolean }>(
font-size: ${$highlighted ? theme.fontSizes.headingTwo : theme.fontSizes.large};
line-height: ${theme.space['11']};
text-align: center;
- color: #6300ff;
+ color: #2196F3;
pointer-events: none;
opacity: 1;
transition: opacity 150ms ease-in-out;
diff --git a/src/components/@atoms/RegistrationTimeComparisonBanner/RegistrationTimeComparisonBanner.tsx b/src/components/@atoms/RegistrationTimeComparisonBanner/RegistrationTimeComparisonBanner.tsx
index d999dbb..2bb943c 100755
--- a/src/components/@atoms/RegistrationTimeComparisonBanner/RegistrationTimeComparisonBanner.tsx
+++ b/src/components/@atoms/RegistrationTimeComparisonBanner/RegistrationTimeComparisonBanner.tsx
@@ -32,7 +32,7 @@ const calcPercent = (percent: number, order: number) => {
const Bar = styled.div<{ $highlightPercent: number }>(
({ theme, $highlightPercent }) => css`
--bar-width: calc(${$highlightPercent}% - ${theme.space['1']});
- background: linear-gradient(90deg, #6300ff var(--bar-width), #b63d29 var(--bar-width));
+ background: linear-gradient(90deg, #2196F3 var(--bar-width), #b63d29 var(--bar-width));
width: 100%;
height: ${theme.space['4']};
border-radius: ${theme.radii.medium};
@@ -62,7 +62,7 @@ const Marker = styled.div<{ $percent: number }>(
border-radius: ${theme.radii.medium};
background-color: ${theme.colors.background};
&:last-of-type {
- background-color: #6300ff;
+ background-color: #2196F3;
color: ${theme.colors.background};
}
diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx
index e85324e..579aafd 100755
--- a/src/pages/_app.tsx
+++ b/src/pages/_app.tsx
@@ -87,19 +87,19 @@ const GlobalStyle = createGlobalStyle`
}
button.connect-button {
- background-color: #f43178;
+ background-color: #2196F3;
&:hover {
- background: #f43178;
+ background: #2196F3;
}
}
button.action-button {
- background: #6300ff;
+ background: #2196F3;
&:hover {
- background: #6300ff;
+ background: #2196F3;
}
}
.theme-text {
- color: #6300ff;
+ color: #2196F3;
}
a {
diff --git a/src/pages/index.tsx b/src/pages/index.tsx
index 751250a..3238f9b 100755
--- a/src/pages/index.tsx
+++ b/src/pages/index.tsx
@@ -102,10 +102,10 @@ export default function Page() {
{/* This script will check all MXC operations and if the system experiences any downtime It will notify with a small notification */}
-
+ {/* */}
-
+ MOONCHAIN
diff --git a/src/styles.css b/src/styles.css
index 11c61a0..a70903f 100755
--- a/src/styles.css
+++ b/src/styles.css
@@ -2,6 +2,6 @@
.helpbox {
- border: 1px solid #f43178 !important;
+ border: 1px solid #2196F3 !important;
background-color: rgba(244,49,120,.08) !important;
}
\ No newline at end of file
From 897588ebb8bb3e66cd51954fee5e8201df6fad3e Mon Sep 17 00:00:00 2001
From: "Mr.Mao" <951416545@qq.com>
Date: Tue, 2 Apr 2024 19:20:02 +0800
Subject: [PATCH 3/5] chore: update link icon
---
src/pages/_document.tsx | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)
diff --git a/src/pages/_document.tsx b/src/pages/_document.tsx
index 03b894c..c17e296 100755
--- a/src/pages/_document.tsx
+++ b/src/pages/_document.tsx
@@ -59,18 +59,7 @@ export default class MyDocument extends Document {
>
)}
-
-
+
From ab90fea4b4d617913014a6eefa060f24f70b9227 Mon Sep 17 00:00:00 2001
From: "Mr.Mao" <951416545@qq.com>
Date: Wed, 3 Apr 2024 15:42:13 +0800
Subject: [PATCH 4/5] chore: update change
---
.env | 1 +
1 file changed, 1 insertion(+)
diff --git a/.env b/.env
index a0cf298..81e9e53 100644
--- a/.env
+++ b/.env
@@ -12,6 +12,7 @@ SUBGRAPH_ID=Qmb2tRDc3LbfbNC1RhgNkY1ZiKCZD5qXXscqDSnJZMY8LJ
LOCAL_SUBGRAPH_ID=Qmb2tRDc3LbfbNC1RhgNkY1ZiKCZD5qXXscqDSnJZMY8LJ
EPOCH_TIME=1660180306
NETWORK=mxc_geneva
+NEXT_PUBLIC_NETWORK_CHAINID=5167003
ARCHIVE_URL=https://storage.googleapis.com/ens-manager-build-data
TRANSACTION_WAIT_TIME=5000
From 0af5c6dc80d94c65be4d568222da90402277ec3b Mon Sep 17 00:00:00 2001
From: "Mr.Mao" <951416545@qq.com>
Date: Tue, 9 Apr 2024 14:40:16 +0800
Subject: [PATCH 5/5] chore: change view
---
src/pages/_app.tsx | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx
index 579aafd..cbd9ded 100755
--- a/src/pages/_app.tsx
+++ b/src/pages/_app.tsx
@@ -96,6 +96,7 @@ const GlobalStyle = createGlobalStyle`
background: #2196F3;
&:hover {
background: #2196F3;
+ color: #fff;
}
}
.theme-text {