24 lines
737 B
Kotlin
24 lines
737 B
Kotlin
package cash.z.wallet.sdk.sample.demoapp.fixture
|
|
|
|
import cash.z.ecc.android.sdk.demoapp.model.PersistableWallet
|
|
import cash.z.ecc.android.sdk.demoapp.model.SeedPhrase
|
|
import cash.z.ecc.android.sdk.model.BlockHeight
|
|
import cash.z.ecc.android.sdk.model.ZcashNetwork
|
|
|
|
object PersistableWalletFixture {
|
|
|
|
val NETWORK = ZcashNetwork.Testnet
|
|
|
|
// These came from the mainnet 1500000.json file
|
|
@Suppress("MagicNumber")
|
|
val BIRTHDAY = BlockHeight.new(ZcashNetwork.Mainnet, 1500000L)
|
|
|
|
val SEED_PHRASE = SeedPhraseFixture.new()
|
|
|
|
fun new(
|
|
network: ZcashNetwork = NETWORK,
|
|
birthday: BlockHeight = BIRTHDAY,
|
|
seedPhrase: SeedPhrase = SEED_PHRASE
|
|
) = PersistableWallet(network, birthday, seedPhrase)
|
|
}
|