Add Monero transaction details page and chain icons on EVM dashboard
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -8,6 +8,7 @@ export type {
|
||||
MoneroSubaddressEntry,
|
||||
MoneroAccountEntry,
|
||||
MoneroSendResult,
|
||||
MoneroTransferDetails,
|
||||
TxEntry,
|
||||
TransactionDetails,
|
||||
TokenBalanceResult,
|
||||
|
||||
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user