import { IAssetRegister } from 'shared/model/transaction' ; import { IAssetRepository } from 'shared/repository/transaction' ; import { RawAsset } from 'shared/model/types' ; class TransactionRegisterRepo implements IAssetRepository < IAssetRegister > { serialize ( asset ) { return { referral : asset . referral . toString ( ) } ; } deserialize ( rawAsset ) { return { referral : BigInt ( rawAsset . referral ) } ; } } export default new TransactionRegisterRepo ( ) ;