feat: 添加 YT Asset 合约测试前端
- React + TypeScript + Vite 项目结构 - WalletConnect 钱包连接功能 - WUSD 铸造页面(含边界测试) - Vault 交易页面(买入/卖出 YT,含边界测试) - Factory 管理页面(创建 Vault、更新价格,含权限测试) - 中英文国际化支持 - 显示 Owner/Manager 角色信息 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
135
frontend/src/i18n/locales/en.json
Normal file
135
frontend/src/i18n/locales/en.json
Normal file
@@ -0,0 +1,135 @@
|
||||
{
|
||||
"common": {
|
||||
"connectWallet": "Connect Wallet",
|
||||
"disconnect": "Disconnect",
|
||||
"processing": "Processing...",
|
||||
"confirm": "Confirm",
|
||||
"cancel": "Cancel",
|
||||
"loading": "Loading...",
|
||||
"success": "Success!",
|
||||
"error": "Error",
|
||||
"balance": "Balance",
|
||||
"amount": "Amount",
|
||||
"contract": "Contract",
|
||||
"address": "Address",
|
||||
"network": "Arbitrum Sepolia",
|
||||
"connectFirst": "Please connect wallet first"
|
||||
},
|
||||
"nav": {
|
||||
"wusd": "WUSD",
|
||||
"vaultTrading": "Vault Trading",
|
||||
"factory": "Factory"
|
||||
},
|
||||
"header": {
|
||||
"title": "YT Asset Test"
|
||||
},
|
||||
"footer": {
|
||||
"description": "YT Asset Contract Testing Interface"
|
||||
},
|
||||
"wusd": {
|
||||
"title": "WUSD Token",
|
||||
"mintAmount": "Mint Amount",
|
||||
"enterAmount": "Enter amount to mint",
|
||||
"mint": "Mint WUSD",
|
||||
"minting": "Minting...",
|
||||
"confirming": "Confirming...",
|
||||
"mintSuccess": "Mint successful!"
|
||||
},
|
||||
"vault": {
|
||||
"title": "Vault Trading",
|
||||
"selectVault": "Select Vault",
|
||||
"vaultInfo": "Vault Info",
|
||||
"totalAssets": "Total Assets",
|
||||
"idleAssets": "Idle Assets",
|
||||
"totalSupply": "Total Supply",
|
||||
"hardCap": "Hard Cap",
|
||||
"wusdPrice": "WUSD Price",
|
||||
"ytPrice": "YT Price",
|
||||
"yourWusdBalance": "Your WUSD Balance",
|
||||
"yourYtBalance": "Your YT Balance",
|
||||
"buyYt": "Buy YT",
|
||||
"sellYt": "Sell YT",
|
||||
"wusdAmount": "WUSD Amount",
|
||||
"ytAmount": "YT Amount",
|
||||
"enterWusdAmount": "Enter WUSD amount",
|
||||
"enterYtAmount": "Enter YT amount",
|
||||
"youWillReceive": "You will receive",
|
||||
"approveWusd": "Approve WUSD",
|
||||
"buy": "Buy YT",
|
||||
"sell": "Sell YT"
|
||||
},
|
||||
"factory": {
|
||||
"title": "Factory Management",
|
||||
"factoryContract": "Factory Contract",
|
||||
"owner": "Owner",
|
||||
"defaultHardCap": "Default Hard Cap",
|
||||
"totalVaults": "Total Vaults",
|
||||
"yourRole": "Your Role",
|
||||
"roleOwner": "Owner",
|
||||
"roleUser": "User",
|
||||
"allVaults": "All Vaults",
|
||||
"noVaults": "No vaults created yet",
|
||||
"createVault": "Create New Vault",
|
||||
"name": "Name",
|
||||
"symbol": "Symbol",
|
||||
"managerAddress": "Manager Address",
|
||||
"redemptionTime": "Redemption Time",
|
||||
"initialWusdPrice": "Initial WUSD Price",
|
||||
"initialYtPrice": "Initial YT Price",
|
||||
"create": "Create Vault",
|
||||
"updatePrices": "Update Vault Prices",
|
||||
"vaultAddress": "Vault Address",
|
||||
"selectVault": "Select Vault",
|
||||
"newWusdPrice": "New WUSD Price",
|
||||
"newYtPrice": "New YT Price",
|
||||
"update": "Update Prices"
|
||||
},
|
||||
"language": {
|
||||
"en": "English",
|
||||
"zh": "Chinese"
|
||||
},
|
||||
"test": {
|
||||
"title": "Boundary Test",
|
||||
"currentStatus": "Current Status",
|
||||
"canRedeem": "Can Redeem",
|
||||
"timeToRedeem": "Time to Redeem",
|
||||
"hardCap": "Hard Cap",
|
||||
"role": "Your Role",
|
||||
"yes": "Yes",
|
||||
"no": "No",
|
||||
"customAmount": "Custom Amount",
|
||||
"transferAddress": "Transfer Address",
|
||||
"boundaryTests": "Boundary Tests",
|
||||
"boundaryHint": "These tests are designed to trigger contract errors. Expected errors are shown for each test.",
|
||||
"permissionTests": "Permission Tests",
|
||||
"permissionHint": "Test permission restrictions. Should fail if you're not Owner/Manager.",
|
||||
"managerTests": "Manager Functions",
|
||||
"managerHint": "Manager-only functions. Current Manager: ",
|
||||
"normalTests": "Normal Functions",
|
||||
"quickActions": "Quick Actions",
|
||||
"run": "Run",
|
||||
"running": "Running...",
|
||||
"mint10000": "Mint 10000 WUSD",
|
||||
"maxApprove": "Max Approve WUSD",
|
||||
"buyZero": "Buy Amount 0",
|
||||
"buyZeroDesc": "Test depositYT(0)",
|
||||
"sellZero": "Sell Amount 0",
|
||||
"sellZeroDesc": "Test withdrawYT(0)",
|
||||
"buyExceedBalance": "Buy Exceed Balance",
|
||||
"buyExceedBalanceDesc": "Buy more than WUSD balance",
|
||||
"sellExceedBalance": "Sell Exceed Balance",
|
||||
"sellExceedBalanceDesc": "Sell more than YT balance",
|
||||
"buyExceedHardcap": "Buy Exceed Hardcap",
|
||||
"buyExceedHardcapDesc": "Buy amount exceeds vault hardcap",
|
||||
"sellInLock": "Sell In Lock Period",
|
||||
"sellInLockDesc": "Try to sell during lock period",
|
||||
"mintZero": "Mint Amount 0",
|
||||
"mintZeroDesc": "Test mint(0)",
|
||||
"burnExceed": "Burn Exceed Balance",
|
||||
"burnExceedDesc": "Burn more than balance",
|
||||
"updatePriceNotOwner": "Update Price (Not Owner)",
|
||||
"updatePriceNotOwnerDesc": "Non-owner calls updateVaultPrices",
|
||||
"setManagerNotOwner": "Set Manager (Not Owner)",
|
||||
"setManagerNotOwnerDesc": "Non-owner calls setVaultManager"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user