2023-12-11 01:20:32 -08:00
|
|
|
@file:Suppress("ktlint:standard:filename")
|
2022-06-22 02:48:19 -07:00
|
|
|
|
2023-10-04 05:04:08 -07:00
|
|
|
package cash.z.ecc.sdk.extension
|
2022-03-01 05:11:23 -08:00
|
|
|
|
|
|
|
import cash.z.ecc.android.sdk.Synchronizer
|
2022-11-25 00:30:27 -08:00
|
|
|
import cash.z.ecc.android.sdk.model.UnifiedSpendingKey
|
2023-02-17 03:05:23 -08:00
|
|
|
import cash.z.ecc.android.sdk.model.ZecSend
|
2022-03-01 05:11:23 -08:00
|
|
|
|
2023-12-11 01:20:32 -08:00
|
|
|
suspend fun Synchronizer.send(
|
|
|
|
spendingKey: UnifiedSpendingKey,
|
|
|
|
send: ZecSend
|
|
|
|
) = sendToAddress(
|
2022-03-01 05:11:23 -08:00
|
|
|
spendingKey,
|
2022-06-23 04:31:16 -07:00
|
|
|
send.amount,
|
2022-03-01 05:11:23 -08:00
|
|
|
send.destination.address,
|
|
|
|
send.memo.value
|
|
|
|
)
|