diff --git a/infra/rooch-portal/.env.development b/infra/rooch-portal/.env.development index a72448bc15..2558a6e4de 100644 --- a/infra/rooch-portal/.env.development +++ b/infra/rooch-portal/.env.development @@ -1 +1 @@ -VITE_ROOCH_OPERATING_ADDRESS=0xb7ac336861ff431cf867400a1eaa9708b5666954b5268486e6bd2e948aab1a42 +VITE_ROOCH_OPERATING_ADDRESS=0xf2a1a62242eaa7551a5af8f55e8f91c3285f4bd7d03d8b69944a2fb468b73f20 diff --git a/infra/rooch-portal/.env.production b/infra/rooch-portal/.env.production index a72448bc15..2558a6e4de 100644 --- a/infra/rooch-portal/.env.production +++ b/infra/rooch-portal/.env.production @@ -1 +1 @@ -VITE_ROOCH_OPERATING_ADDRESS=0xb7ac336861ff431cf867400a1eaa9708b5666954b5268486e6bd2e948aab1a42 +VITE_ROOCH_OPERATING_ADDRESS=0xf2a1a62242eaa7551a5af8f55e8f91c3285f4bd7d03d8b69944a2fb468b73f20 diff --git a/infra/rooch-portal/package.json b/infra/rooch-portal/package.json index fd44095ac9..8d6f8455a9 100644 --- a/infra/rooch-portal/package.json +++ b/infra/rooch-portal/package.json @@ -30,8 +30,8 @@ "@radix-ui/react-tabs": "^1.0.4", "@radix-ui/react-toast": "^1.1.5", "@radix-ui/react-tooltip": "^1.0.7", - "@roochnetwork/rooch-sdk": "0.1.5", - "@roochnetwork/rooch-sdk-kit": "0.1.5", + "@roochnetwork/rooch-sdk": "0.1.8", + "@roochnetwork/rooch-sdk-kit": "0.1.8", "@tanstack/react-query": "^5.0.0", "@tanstack/react-table": "^8.11.8", "class-variance-authority": "^0.7.0", diff --git a/infra/rooch-portal/src/components/banner.tsx b/infra/rooch-portal/src/components/banner.tsx index d6c1a52594..5a11799679 100644 --- a/infra/rooch-portal/src/components/banner.tsx +++ b/infra/rooch-portal/src/components/banner.tsx @@ -18,12 +18,12 @@ export const Banner: React.FC = ({ onClose }) => { Rooch - Learn more about{' '} + Rooch Portal is at the beta testing version. Learn More about {' '} - Rooch + Rooch Portal . diff --git a/infra/rooch-portal/src/locales/en.json b/infra/rooch-portal/src/locales/en.json index d0dc11d782..14d7e3cac8 100644 --- a/infra/rooch-portal/src/locales/en.json +++ b/infra/rooch-portal/src/locales/en.json @@ -17,5 +17,31 @@ "connectWallet": "Connect Wallet", "connectWalletOnMobile": "Connect", "connectWalletTip": "Connect to your Rooch wallet" + }, + "Mint": { + "title": "Mint", + "subTitle": "Deploy and mint Bitcoin assets." + }, + "Trade": { + "title": "Trade", + "subTitle": "Trade your Bitcoin assets with ease." + }, + "Leap": { + "title": "Leap", + "subTitle": "Leap your assets on/off the Bitcoin network." + }, + "Transactions": { + "title": "Transactions", + "subTitle": "Browse your account activity history." + }, + "Apps": { + "title": "Apps", + "subTitle": "Explore Bitcoin applications powered by Rooch." + }, + "Settings": { + "address": "Rooch Address", + "addressSubTitle": "Use Rooch address in the application and smart contract development.", + "session": "Session Keys", + "sessionSubTitle": "Manage the site that your account has authorized session keys." } } diff --git a/infra/rooch-portal/src/locales/zh.json b/infra/rooch-portal/src/locales/zh.json index 455a6c2629..cb328c5b01 100644 --- a/infra/rooch-portal/src/locales/zh.json +++ b/infra/rooch-portal/src/locales/zh.json @@ -1,12 +1,12 @@ { "Sidebar": { - "assets": "投资组合", + "assets": "资产", "staking": "质押", "mint": "铸造", "trade": "交易", "leap": "跃迁", "apps": "应用", - "transactions": "交易", + "transactions": "历史", "settings": "设置" }, "Theme": { @@ -18,5 +18,31 @@ "connectWallet": "连接钱包", "connectWalletOnMobile": "连接钱包", "connectWalletTip": "连接您的 Rooch 钱包" + }, + "Mint": { + "title": "铸造", + "subTitle": "部署和铸造比特币资产。" + }, + "Trade": { + "title": "交易", + "subTitle": "交易你的比特币资产。" + }, + "Leap": { + "title": "跃迁", + "subTitle": "将你的资产转移到或转移出比特币网络。" + }, + "Transactions": { + "title": "历史", + "subTitle": "查看你账户的历史活动。" + }, + "Apps": { + "title": "应用", + "subTitle": "探索基于 Rooch 实现的比特币应用。" + }, + "Settings": { + "address": "Rooch 地址", + "addressSubTitle": "在应用和合约开发中将使用到该 Rooch 地址。", + "session": "会话密钥", + "sessionSubTitle": "管理您账户授权过会话密钥的网站。" } } diff --git a/infra/rooch-portal/src/navigation/index.tsx b/infra/rooch-portal/src/navigation/index.tsx index d8b458c3dc..8d9fbe927d 100644 --- a/infra/rooch-portal/src/navigation/index.tsx +++ b/infra/rooch-portal/src/navigation/index.tsx @@ -36,7 +36,7 @@ export type NavItemsType = NavLink[] export const navItems = (): NavItemsType => { return [ - { icon: Bitcoin, label: 'Sidebar.assets', path: '/', auth: true, element: }, + { icon: Bitcoin, label: 'Sidebar.assets', path: '/', auth: true, element: }, { icon: Scroll, label: 'Sidebar.mint', path: '/mint', auth: true, element: }, { icon: CandlestickChart, diff --git a/infra/rooch-portal/src/pages/apps/apps-layout.tsx b/infra/rooch-portal/src/pages/apps/apps-layout.tsx index 3564cb5529..bd2841bf74 100644 --- a/infra/rooch-portal/src/pages/apps/apps-layout.tsx +++ b/infra/rooch-portal/src/pages/apps/apps-layout.tsx @@ -3,6 +3,7 @@ import { useState } from 'react' import { AppsItem } from './components/apps-item' import { ComingSoon } from '@/components/coming-soon' +import {useTranslation} from 'react-i18next'; interface App { id: number @@ -72,6 +73,7 @@ const mockApps: App[] = [ export const AppsLayout = () => { const [apps] = useState(mockApps) + const { t } = useTranslation() const renderContent = () => { if (apps.length === 0) { @@ -98,9 +100,9 @@ export const AppsLayout = () => {
-

Apps

+

{t('Apps.title')}

- Explore a variety of apps supported by Rooch, enhancing your Bitcoin Layer-2 experience. + {t('Apps.subTitle')}

diff --git a/infra/rooch-portal/src/pages/assets/assets-details/tabs/coin/assets-coin.tsx b/infra/rooch-portal/src/pages/assets/assets-details/tabs/coin/assets-coin.tsx index b903a087f3..334b280e29 100644 --- a/infra/rooch-portal/src/pages/assets/assets-details/tabs/coin/assets-coin.tsx +++ b/infra/rooch-portal/src/pages/assets/assets-details/tabs/coin/assets-coin.tsx @@ -234,7 +234,7 @@ export const AssetsCoin = () => { {data?.data.map((coin) => ( {coin.name} - {formatCoin(Number(coin.balance), coin.decimals)} + {formatCoin(Number(coin.balance), coin.decimals, coin.decimals)}