-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unused functionality and disable modification to tables that should only be written by librustzcash
- Loading branch information
Showing
9 changed files
with
10 additions
and
343 deletions.
There are no files selected for viewing
55 changes: 0 additions & 55 deletions
55
src/androidTest/java/cash/z/wallet/sdk/dao/ComplactBlockDaoTest.kt
This file was deleted.
Oops, something went wrong.
57 changes: 0 additions & 57 deletions
57
src/androidTest/java/cash/z/wallet/sdk/dao/TransactionDaoTest.kt
This file was deleted.
Oops, something went wrong.
153 changes: 0 additions & 153 deletions
153
src/androidTest/java/cash/z/wallet/sdk/data/PollingTransactionRepositoryTest.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,16 @@ | ||
package cash.z.wallet.sdk.dao | ||
|
||
import androidx.room.* | ||
import androidx.room.Dao | ||
import androidx.room.Insert | ||
import androidx.room.OnConflictStrategy | ||
import androidx.room.Query | ||
import cash.z.wallet.sdk.entity.CompactBlock | ||
|
||
@Dao | ||
interface CompactBlockDao { | ||
|
||
@Query("SELECT COUNT(height) FROM compactblocks") | ||
fun count(): Int | ||
|
||
@Insert(onConflict = OnConflictStrategy.IGNORE) | ||
fun insert(block: CompactBlock) | ||
|
||
@Query("SELECT * FROM compactblocks WHERE height = :height") | ||
fun findById(height: Int): CompactBlock? | ||
|
||
@Query("DELETE FROM compactblocks WHERE height = :height") | ||
fun deleteById(height: Int) | ||
|
||
@Delete | ||
fun delete(block: CompactBlock) | ||
|
||
@Query("SELECT MAX(height) FROM compactblocks") | ||
fun latestBlockHeight(): Int | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.