2023-02-06 06:41:38 -08:00
|
|
|
package cash.z.ecc.android.sdk.fixture
|
2022-12-23 02:00:37 -08:00
|
|
|
|
2023-02-06 06:41:38 -08:00
|
|
|
import cash.z.ecc.android.sdk.model.Memo
|
2024-03-14 06:40:40 -07:00
|
|
|
import cash.z.ecc.android.sdk.model.Proposal
|
2023-02-06 06:41:38 -08:00
|
|
|
import cash.z.ecc.android.sdk.model.WalletAddress
|
2022-12-23 02:00:37 -08:00
|
|
|
import cash.z.ecc.android.sdk.model.Zatoshi
|
2023-02-06 06:41:38 -08:00
|
|
|
import cash.z.ecc.android.sdk.model.ZecSend
|
2022-12-23 02:00:37 -08:00
|
|
|
|
|
|
|
object ZecSendFixture {
|
|
|
|
const val ADDRESS: String = WalletAddressFixture.UNIFIED_ADDRESS_STRING
|
|
|
|
|
|
|
|
@Suppress("MagicNumber")
|
|
|
|
val AMOUNT = Zatoshi(123)
|
|
|
|
val MEMO = MemoFixture.new()
|
|
|
|
|
2024-03-14 06:40:40 -07:00
|
|
|
// Null until we figure out how to proper test this
|
|
|
|
val PROPOSAL = null
|
|
|
|
|
2022-12-23 02:00:37 -08:00
|
|
|
suspend fun new(
|
|
|
|
address: String = ADDRESS,
|
|
|
|
amount: Zatoshi = AMOUNT,
|
2024-03-14 06:40:40 -07:00
|
|
|
message: Memo = MEMO,
|
|
|
|
proposal: Proposal? = PROPOSAL
|
|
|
|
) = ZecSend(WalletAddress.Unified.new(address), amount, message, proposal)
|
2022-12-23 02:00:37 -08:00
|
|
|
}
|