import { getAssetByUUID } from '@services/Store/Asset' ; import { ITokenMigrationConfig , ITxConfig , ITxObject , StoreAccount } from '@types' ; export const makeTokenMigrationTxConfig = ( rawTransaction , account , amount ) => ( tokenMigrationConfig ) : ITxConfig => { const { address , network } = account ; const baseAsset = getAssetByUUID ( account . assets ) ( network . baseAsset ) ! ; const asset = getAssetByUUID ( account . assets ) ( tokenMigrationConfig . fromAssetUuid ) ! ; const txConfig = { from : address , receiverAddress : account . address , senderAccount : account , networkId : network . id , asset , baseAsset , amount , rawTransaction } ; return txConfig ; } ;