filter out tokens without logo on tokens list

This commit is contained in:
2026-05-11 16:31:48 +08:00
parent 45402098b8
commit d2c2a46e54
4 changed files with 324 additions and 356 deletions
+14 -5
View File
@@ -6,10 +6,7 @@ export type TxEntry = {
from: string
to: string
value: string
input?: string
isError?: string
tokenSymbol?: string
tokenName?: string
tokenDecimal?: string
contractAddress?: string
pairedValue?: string
@@ -17,6 +14,13 @@ export type TxEntry = {
pairedDecimals?: string
}
export type TokenBalanceResult = {
symbol: string
balance: string
contractAddress: string
logo?: string
}
type RPC = {
bun: {
requests: {
@@ -39,11 +43,16 @@ type RPC = {
params: {
address: string
chainid: string
page?: number
offset?: number
}
response: Promise<TxEntry[]>
}
fetchTokenBalances: {
params: {
address: string
chainid: string
}
response: Promise<TokenBalanceResult[]>
}
openExternal: {
params: {
url: string