import { Address } from '@aragon/connect-types' ; import { TransactionData } from '../types' ; export default class Transaction implements TransactionData { readonly id : string ; readonly token : Address ; readonly entity : Address ; readonly isIncoming : boolean ; readonly amount : string ; readonly date : string ; readonly reference : string ; constructor ( data ) { this . id = data . id ; this . token = data . token ; this . entity = data . entity ; this . isIncoming = data . isIncoming ; this . amount = data . amount ; this . date = data . date ; this . reference = data . reference ; } }