Skip to content

Commit

Permalink
move to other package
Browse files Browse the repository at this point in the history
  • Loading branch information
akibabu committed Mar 29, 2019
1 parent 4665d31 commit 577b63b
Show file tree
Hide file tree
Showing 72 changed files with 177 additions and 177 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.bitcoin.wallet
package com.bitcoin.slpwallet

import com.bitcoin.wallet.bitcoinj.NetworkInstance
import com.bitcoin.slpwallet.bitcoinj.NetworkInstance

/**
* @author akibabu
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.bitcoin.wallet
package com.bitcoin.slpwallet

import android.content.Context
import androidx.lifecycle.LiveData
import com.bitcoin.securepreferences.SecurePreferences
import com.bitcoin.wallet.bitcoinj.Mnemonic
import com.bitcoin.wallet.persistence.WalletDatabaseImpl
import com.bitcoin.wallet.presentation.BalanceInfo
import com.bitcoin.wallet.presentation.ProgressTask
import com.bitcoin.wallet.slp.SLPWalletImpl
import com.bitcoin.slpwallet.bitcoinj.Mnemonic
import com.bitcoin.slpwallet.persistence.WalletDatabaseImpl
import com.bitcoin.slpwallet.presentation.BalanceInfo
import com.bitcoin.slpwallet.presentation.ProgressTask
import com.bitcoin.slpwallet.slp.SLPWalletImpl
import io.reactivex.Single
import timber.log.Timber
import java.math.BigDecimal
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.bitcoin.wallet
package com.bitcoin.slpwallet

object SLPWalletConfig {
var restAPIKey: String? = null
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.bitcoin.wallet
package com.bitcoin.slpwallet

/*
* Copyright 2018 Google LLC
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.bitcoin.wallet
package com.bitcoin.slpwallet

import com.bitcoin.wallet.slp.SlpTokenDetails
import com.bitcoin.slpwallet.slp.SlpTokenDetails
import java.math.BigDecimal

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.bitcoin.wallet
package com.bitcoin.slpwallet

import com.bitcoin.wallet.slp.SlpTokenId
import com.bitcoin.slpwallet.slp.SlpTokenId
import io.reactivex.Single
import java.math.BigDecimal

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.bitcoin.wallet

import com.bitcoin.wallet.address.AddressSLP
import com.bitcoin.wallet.persistence.WalletDatabase
import com.bitcoin.wallet.rest.BitcoinRestClient
import com.bitcoin.wallet.slp.*
import com.bitcoin.wallet.tx.TxBuilder
import com.bitcoin.wallet.tx.Utxo
import com.bitcoin.wallet.tx.UtxoFacade
package com.bitcoin.slpwallet

import com.bitcoin.slpwallet.address.AddressSLP
import com.bitcoin.slpwallet.persistence.WalletDatabase
import com.bitcoin.slpwallet.rest.BitcoinRestClient
import com.bitcoin.slpwallet.slp.*
import com.bitcoin.slpwallet.tx.TxBuilder
import com.bitcoin.slpwallet.tx.Utxo
import com.bitcoin.slpwallet.tx.UtxoFacade
import com.google.gson.JsonParser
import io.reactivex.Single
import timber.log.Timber
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.bitcoin.wallet.address
package com.bitcoin.slpwallet.address


import com.bitcoin.wallet.Network
import com.bitcoin.wallet.encoding.Base58CheckEncoding
import com.bitcoin.slpwallet.Network
import com.bitcoin.slpwallet.encoding.Base58CheckEncoding

/**
* @author akibabu
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.bitcoin.wallet.address
package com.bitcoin.slpwallet.address

import com.bitcoin.wallet.Network
import com.bitcoin.wallet.bitcoinj.AddressCashUtil
import com.bitcoin.slpwallet.Network
import com.bitcoin.slpwallet.bitcoinj.AddressCashUtil

/**
* @author akibabu
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.bitcoin.wallet.address
package com.bitcoin.slpwallet.address

/**
* @author akibabu
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.bitcoin.wallet.address
package com.bitcoin.slpwallet.address

import com.bitcoin.wallet.Network
import com.bitcoin.slpwallet.Network

/**
* @author akibabu
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.bitcoin.wallet.address
package com.bitcoin.slpwallet.address

import com.bitcoin.wallet.Network
import com.bitcoin.wallet.bitcoinj.AddressCashUtil
import com.bitcoin.slpwallet.Network
import com.bitcoin.slpwallet.bitcoinj.AddressCashUtil

/**
* @author akibabu
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.bitcoin.wallet.address;
package com.bitcoin.slpwallet.address;

/**
* @author akibabu
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.bitcoin.wallet.address
package com.bitcoin.slpwallet.address

import java.math.BigInteger

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.bitcoin.wallet.bitcoinj;
package com.bitcoin.slpwallet.bitcoinj;

import org.bitcoinj.core.AddressFormatException;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.bitcoin.wallet.bitcoinj;
package com.bitcoin.slpwallet.bitcoinj;

import com.bitcoin.wallet.address.AddressFormatException;
import com.bitcoin.slpwallet.address.AddressFormatException;

/**
* From BitcoinJ
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.bitcoin.wallet.bitcoinj
package com.bitcoin.slpwallet.bitcoinj

import com.bitcoin.wallet.Network
import com.bitcoin.wallet.address.Address
import com.bitcoin.wallet.address.KeyAddressPair
import com.bitcoin.slpwallet.Network
import com.bitcoin.slpwallet.address.Address
import com.bitcoin.slpwallet.address.KeyAddressPair
import org.bitcoinj.crypto.ChildNumber
import org.bitcoinj.crypto.HDKeyDerivation
import org.bitcoinj.crypto.MnemonicCode
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.bitcoin.wallet.bitcoinj
package com.bitcoin.slpwallet.bitcoinj

import com.bitcoin.wallet.Network
import com.bitcoin.slpwallet.Network
import org.bitcoinj.core.NetworkParameters
import org.bitcoinj.params.MainNetParams
import org.bitcoinj.params.TestNet3Params
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.bitcoin.wallet.encoding
package com.bitcoin.slpwallet.encoding

/**
* https://github.com/bitcoinbook/bitcoinbook/blob/develop/images/mbc2_0406.png
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.bitcoin.wallet.encoding
package com.bitcoin.slpwallet.encoding

import org.spongycastle.util.encoders.DecoderException
import java.nio.ByteBuffer
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.bitcoin.wallet.encoding
package com.bitcoin.slpwallet.encoding

import java.security.MessageDigest
import java.security.NoSuchAlgorithmException
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.bitcoin.wallet.persistence
package com.bitcoin.slpwallet.persistence

import androidx.room.Insert
import androidx.room.OnConflictStrategy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.bitcoin.wallet.persistence
package com.bitcoin.slpwallet.persistence

import androidx.room.ColumnInfo
import androidx.room.Entity
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.bitcoin.wallet.persistence
package com.bitcoin.slpwallet.persistence

import androidx.lifecycle.LiveData
import androidx.room.Dao
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.bitcoin.wallet.persistence
package com.bitcoin.slpwallet.persistence

import androidx.room.TypeConverter
import com.bitcoin.wallet.slp.SlpTokenId
import com.bitcoin.slpwallet.slp.SlpTokenId
import java.math.BigDecimal

class TypeConverters {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.bitcoin.wallet.persistence
package com.bitcoin.slpwallet.persistence

import com.bitcoin.wallet.slp.SlpTokenDetailsDao
import com.bitcoin.wallet.slp.SlpUtxoDao
import com.bitcoin.wallet.slp.SlpValidTxDao
import com.bitcoin.wallet.tx.UtxoDao
import com.bitcoin.slpwallet.slp.SlpTokenDetailsDao
import com.bitcoin.slpwallet.slp.SlpUtxoDao
import com.bitcoin.slpwallet.slp.SlpValidTxDao
import com.bitcoin.slpwallet.tx.UtxoDao

/**
* @author akibabu
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
package com.bitcoin.wallet.persistence
package com.bitcoin.slpwallet.persistence

import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import com.bitcoin.wallet.slp.*
import com.bitcoin.wallet.tx.Utxo
import com.bitcoin.wallet.tx.UtxoDao
import com.bitcoin.wallet.util.SingletonHolder
import com.bitcoin.slpwallet.slp.*
import com.bitcoin.slpwallet.tx.Utxo
import com.bitcoin.slpwallet.tx.UtxoDao
import com.bitcoin.slpwallet.util.SingletonHolder
import io.reactivex.schedulers.Schedulers
import timber.log.Timber
import java.util.concurrent.atomic.AtomicBoolean

@Database(entities = [SlpTokenBalance::class, Utxo::class, SlpUtxo::class, SlpTokenDetails::class, SlpValidTx::class],
version = 5)
@TypeConverters(com.bitcoin.wallet.persistence.TypeConverters::class)
@TypeConverters(com.bitcoin.slpwallet.persistence.TypeConverters::class)
internal abstract class WalletDatabaseImpl : RoomDatabase(), WalletDatabase {

private var initialized = AtomicBoolean(true)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.bitcoin.wallet.presentation
package com.bitcoin.slpwallet.presentation

import java.math.BigDecimal

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.bitcoin.wallet.presentation
package com.bitcoin.slpwallet.presentation

import com.bitcoin.wallet.persistence.SlpTokenBalance
import com.bitcoin.slpwallet.persistence.SlpTokenBalance
import java.math.BigDecimal

data class BalanceInfoImpl(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.bitcoin.wallet.presentation
package com.bitcoin.slpwallet.presentation

/**
* Because of bug in Badger Wallet expecting the token ID to be an address prefixed with "bitcoincash:"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.bitcoin.wallet.presentation
package com.bitcoin.slpwallet.presentation

enum class TaskStatus {
IDLE,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.bitcoin.wallet.presentation
package com.bitcoin.slpwallet.presentation

import java.text.DecimalFormat
import java.text.DecimalFormatSymbols
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.bitcoin.wallet.rest
package com.bitcoin.slpwallet.rest

import com.bitcoin.wallet.address.AddressCash
import com.bitcoin.slpwallet.address.AddressCash

/**
* https://rest.bitcoin.com/#/address/utxoBulk
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.bitcoin.wallet.rest
package com.bitcoin.slpwallet.rest

/**
* https://rest.bitcoin.com/#/address/utxoBulk
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.bitcoin.wallet.rest
package com.bitcoin.slpwallet.rest

import com.bitcoin.wallet.Network
import com.bitcoin.slpwallet.Network
import io.reactivex.Single
import retrofit2.http.Body
import retrofit2.http.GET
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.bitcoin.wallet.rest
package com.bitcoin.slpwallet.rest

import com.bitcoin.wallet.Network
import com.bitcoin.wallet.SLPWalletConfig
import com.bitcoin.slpwallet.Network
import com.bitcoin.slpwallet.SLPWalletConfig
import okhttp3.OkHttpClient
import retrofit2.Retrofit
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.bitcoin.wallet.rest
package com.bitcoin.slpwallet.rest

/**
* https://rest.bitcoin.com/#/slp/validateTxidBulk
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.bitcoin.wallet.rest
package com.bitcoin.slpwallet.rest

/**
* https://rest.bitcoin.com/#/slp/validateTxidBulk
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.bitcoin.wallet.rest
package com.bitcoin.slpwallet.rest

/**
* https://rest.bitcoin.com/v2/transaction/details
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.bitcoin.wallet.rest
package com.bitcoin.slpwallet.rest

/**
* https://rest.bitcoin.com/v2/transaction/details
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package com.bitcoin.wallet.slp
package com.bitcoin.slpwallet.slp

import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Transformations
import com.bitcoin.wallet.*
import com.bitcoin.wallet.bitcoinj.Mnemonic
import com.bitcoin.wallet.persistence.SlpTokenBalance
import com.bitcoin.wallet.persistence.WalletDatabase
import com.bitcoin.wallet.presentation.BalanceInfo
import com.bitcoin.wallet.presentation.BalanceInfoImpl
import com.bitcoin.wallet.presentation.ProgressTask
import com.bitcoin.slpwallet.*
import com.bitcoin.slpwallet.bitcoinj.Mnemonic
import com.bitcoin.slpwallet.persistence.SlpTokenBalance
import com.bitcoin.slpwallet.persistence.WalletDatabase
import com.bitcoin.slpwallet.presentation.BalanceInfo
import com.bitcoin.slpwallet.presentation.BalanceInfoImpl
import com.bitcoin.slpwallet.presentation.ProgressTask
import io.reactivex.Single
import io.reactivex.schedulers.Schedulers
import timber.log.Timber
Expand Down
Loading

0 comments on commit 577b63b

Please sign in to comment.