Updated on 2026-08-14
This commit is contained in:
parent
0eae1c84fa
commit
066ab573b3
19 changed files with 784 additions and 113 deletions
|
|
@ -0,0 +1,15 @@
|
|||
package com.tangem.data.common.txhistory
|
||||
|
||||
import com.tangem.datasource.api.express.models.response.ExchangeItemResponse
|
||||
import com.tangem.datasource.api.onramp.models.response.OnrampItemResponse
|
||||
|
||||
/**
|
||||
* Persists express (exchange/onramp) transactions into the local tx-history database and fetches any missing token
|
||||
* metadata for the referenced assets.
|
||||
*/
|
||||
interface ExpressHistoryRepository {
|
||||
|
||||
suspend fun storeExchanges(ownerAddress: String, items: List<ExchangeItemResponse>)
|
||||
|
||||
suspend fun storeOnramps(ownerAddress: String, items: List<OnrampItemResponse>)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue