UNPKG

@funded-labs/plug-controller

Version:

Internet Computer Plug wallet's controller

29 lines (28 loc) 705 B
import { HttpAgent } from '@dfinity/agent'; import { Principal } from '@dfinity/principal'; import { InferredTransaction } from './transactions'; export interface LastEvaluatedKey { pk: string; sk: string; userId: string; } export interface GetUserTransactionResponse { total: number; transactions: InferredTransaction[]; lastEvaluatedKey?: LastEvaluatedKey; } export interface GetCapTransactionsParams { principalId: string; lastEvaluatedKey?: LastEvaluatedKey; agent?: HttpAgent; } export interface KyashuItem { contractId: string; event: any; pk: string; sk: string; userId: string; gs1sk: string; gs1pk: string; caller: Principal; }