kin-android / org.kin.sdk.base.storage / Storage
interface Storage
Name | Summary |
---|---|
addAccount | abstract fun addAccount(account: KinAccount ): Boolean |
advanceSequence | abstract fun advanceSequence(id: Id): KinAccount ? |
deductFromAccountBalance | abstract fun deductFromAccountBalance(accountId: Id, amount: KinAmount ): Promise < Optional < KinAccount >> |
deleteAllStorage | abstract fun deleteAllStorage(accountId: Id): Promise < Boolean > |
getAccount | abstract fun getAccount(accountId: Id): KinAccount ? |
getAllAccountIds | abstract fun getAllAccountIds(): List <Id> |
getMinFee | abstract fun getMinFee(): Promise < Optional < QuarkAmount >> |
getStoredAccount | abstract fun getStoredAccount(accountId: Id): Promise < Optional < KinAccount >> |
getStoredTransactions | abstract fun getStoredTransactions(accountId: Id): Promise < KinTransactions ?> |
getTransactions | abstract fun getTransactions(key: Id): KinTransactions ? |
insertNewTransactionInStorage | abstract fun insertNewTransactionInStorage(accountId: Id, newTransaction: KinTransaction ): Promise < List < KinTransaction >> |
putTransactions | abstract fun putTransactions(key: Id, transactions: KinTransactions ): Unit |
removeAccount | abstract fun removeAccount(accountId: Id): Boolean |
removeAllTransactions | abstract fun removeAllTransactions(key: Id): Boolean |
setMinFee | abstract fun setMinFee(it: QuarkAmount ): Promise < Optional < QuarkAmount >> |
storeTransactions | abstract fun storeTransactions(accountId: Id, transactions: List < KinTransaction >): Promise < List < KinTransaction >> |
updateAccount | abstract fun updateAccount(account: KinAccount ): Boolean |
updateAccountInStorage | abstract fun updateAccountInStorage(account: KinAccount ): Promise < KinAccount > |
upsertNewTransactionsInStorage | abstract fun upsertNewTransactionsInStorage(accountId: Id, newTransactions: List < KinTransaction >): Promise < List < KinTransaction >> |
upsertOldTransactionsInStorage | abstract fun upsertOldTransactionsInStorage(accountId: Id, oldTransactions: List < KinTransaction >): Promise < List < KinTransaction >> |
Name | Summary |
---|---|
KinFileStorage | class KinFileStorage : Storage |