Add Monero transaction details page and chain icons on EVM dashboard

This commit is contained in:
2026-05-24 20:24:07 +08:00
parent a91fdb6d56
commit 04179805f9
7 changed files with 226 additions and 2 deletions
@@ -261,6 +261,12 @@
? 'bg-primary text-primary-foreground'
: 'bg-muted text-muted-foreground hover:bg-muted/80'}"
onclick={() => navigate(navTarget(net.id))}>
<img
src={nativeIcon(net.id)}
alt=""
class="-ml-0.5 mr-1 inline-block size-3.5 rounded-full align-middle"
onerror={(e) =>
((e.target as HTMLElement).style.display = 'none')} />
{net.name}
</button>
{/each}
+1
View File
@@ -8,6 +8,7 @@ export type {
MoneroSubaddressEntry,
MoneroAccountEntry,
MoneroSendResult,
MoneroTransferDetails,
TxEntry,
TransactionDetails,
TokenBalanceResult,
+18
View File
@@ -46,6 +46,23 @@ export type MoneroSendResult = {
amount: string
}
export type MoneroTransferDetails = {
hash: string
direction: 'in' | 'out'
amount: string
fee: string
height: number
timestamp: string
confirmations: number
unlockTime: number
locked: boolean
doubleSpend: boolean
note?: string
paymentId: string
destinations: { address: string; amount: string }[]
subaddrIndices: { major: number; minor: number }[]
}
export type MoneroAccountEntry = {
index: number
primaryAddress: string
@@ -137,6 +154,7 @@ export type RPC = {
moneroGetAccounts: { params: {}; response: MoneroAccountEntry[] }
moneroListWallets: { params: {}; response: string[] }
moneroTransfer: { params: { address: string; amount: string; priority?: number; accountIndex?: number }; response: MoneroSendResult }
moneroGetTransferDetails: { params: { txid: string }; response: MoneroTransferDetails | null }
evmCreateWallet: { params: { name: string; phrase: string; passwordHash?: string }; response: { id: string; name: string; createdAt: string } }
evmListWallets: { params: {}; response: EvmWalletInfo[] }
evmGetSeed: { params: { vaultKey: string }; response: string }