import { Address , SubscriptionCallback , SubscriptionHandler , } from '@aragon/connect-types' ; import Transaction from './models/Transaction' ; import TokenBalance from './models/TokenBalance' ; export interface TransactionData { id : string ; token : Address ; entity : Address ; isIncoming : boolean ; amount : string ; date : string ; reference : string ; } export interface TokenBalanceData { id : string ; token : Address ; balance : string ; } export interface IFinanceConnector { disconnect ( ) : Promise < void > ; transactionsForApp ( appAddress , first , skip ) : Promise < Transaction [ ] > ; onTransactionsForApp ( appAddress , first , skip , callback ) : SubscriptionHandler ; balanceForToken ( appAddress , tokenAddress , first , skip ) : Promise < TokenBalance > ; onBalanceForToken ( appAddress , tokenAddress , first , skip , callback ) : SubscriptionHandler ; }