@funded-labs/plug-controller
Version:
Internet Computer Plug wallet's controller
37 lines (36 loc) • 809 B
TypeScript
export interface InferredTransaction {
hash: string;
timestamp: bigint;
type: string;
details?: {
[key: string]: any;
};
caller: string;
}
export declare type Nullable<T> = T | null;
export interface FormattedTransaction {
type: string;
to: string;
from: string;
hash: string;
amount: Nullable<number | typeof NaN>;
value?: Nullable<number>;
decimal?: number;
status: number;
date: bigint;
symbol: string;
logo: string;
canisterId: string;
details?: {
[key: string]: any;
};
canisterInfo?: Object;
}
export interface GetTransactionsResponse {
total: number;
transactions: InferredTransaction[];
}
export interface FormattedTransactions {
total: number;
transactions: FormattedTransaction[];
}