import { IAssetSignature } from 'shared/model/transaction' ; import { IAssetRepository } from 'shared/repository/transaction' ; import { RawAsset } from 'shared/model/types' ; class TransactionSignatureRepo implements IAssetRepository < IAssetSignature > { serialize ( asset ) { return { publicKey : asset . publicKey } ; } deserialize ( rawAsset ) { return { publicKey : rawAsset . publicKey } ; } } export default new TransactionSignatureRepo ( ) ;