import { Contract, ContractMethod, ethers } from "ethers"; import { OmitIndexSignature } from "./shared.types"; export interface TokenBalance { balance: string; chain_id: number | string | null; chain_name?: string; coin_type: string; contract?: string; decimals: number; id: `${string}__${string}`; symbol: string; ticker?: string; zrc20?: string; } export interface Token { chain_id: number | string | null; chain_name?: string; coin_type: string; contract?: string; decimals: number; symbol: string; ticker?: string; zrc20?: string; } export type TokenContract = ethers.Contract & { balanceOf: (address: string) => Promise; }; interface TokenAccountByOwner { account: { data: { parsed: { info: { tokenAmount: { amount: string; decimals: number; }; }; }; }; }; } export interface RpcSolTokenByAccountResponse { result: { value: TokenAccountByOwner[]; }; } export declare const MULTICALL3_ABI: { inputs: { components: { internalType: string; name: string; type: string; }[]; internalType: string; name: string; type: string; }[]; name: string; outputs: { internalType: string; name: string; type: string; }[]; stateMutability: string; type: string; }[]; export interface Call { callData: ethers.BytesLike; target: string; } type AggregateResult = [blockNumber: bigint, returnData: string[]]; export interface MulticallContract extends OmitIndexSignature { aggregate?: ContractMethod<[calls: Call[]], AggregateResult, AggregateResult>; } export interface GetBalancesOptions { btcAddress?: string; evmAddress?: string; solanaAddress?: string; suiAddress?: string; } export {};