f
This commit is contained in:
@@ -41,30 +41,20 @@ export interface WalletAddress {
|
||||
derivationPath: string
|
||||
}
|
||||
|
||||
export interface PortfolioToken {
|
||||
symbol: string
|
||||
amountFormatted: string
|
||||
usd: number
|
||||
}
|
||||
|
||||
export interface PortfolioNative {
|
||||
amount: string
|
||||
amountFormatted: string
|
||||
usd: number
|
||||
}
|
||||
|
||||
export interface PortfolioChain {
|
||||
chain: Chain
|
||||
address: string
|
||||
stale: boolean
|
||||
native: PortfolioNative
|
||||
tokens: PortfolioToken[]
|
||||
native: FormattedAmount
|
||||
tokens: Record<string, FormattedAmount>
|
||||
totalUsd: number
|
||||
stale: boolean
|
||||
lastUpdated: number
|
||||
}
|
||||
|
||||
export interface PortfolioData {
|
||||
totalUsd: number
|
||||
asOfMs: number
|
||||
chains: Record<Chain, PortfolioChain>
|
||||
hasErrors: boolean
|
||||
perChain: Record<Chain, PortfolioChain>
|
||||
}
|
||||
|
||||
export const CHAINS: Chain[] = ['ETH', 'BSC', 'BTC', 'TRX', 'SOL']
|
||||
|
||||
Reference in New Issue
Block a user