@@ -2,28 +2,28 @@ package io.horizontalsystems.bankwallet.modules.multiswap.sendtransaction
2
2
3
3
import io.horizontalsystems.bankwallet.core.UnsupportedException
4
4
import io.horizontalsystems.marketkit.models.BlockchainType
5
- import io.horizontalsystems.marketkit.models.Token
6
5
7
6
object SendTransactionServiceFactory {
8
- fun create (tokenIn : Token ): ISendTransactionService = when (val blockchainType = tokenIn.blockchainType) {
9
- BlockchainType .Bitcoin -> TODO ()
10
- BlockchainType .BitcoinCash -> TODO ()
11
- BlockchainType .ECash -> TODO ()
12
- BlockchainType .Litecoin -> TODO ()
13
- BlockchainType .Dash -> TODO ()
14
- BlockchainType .Zcash -> TODO ()
7
+ fun create (blockchainType : BlockchainType ): ISendTransactionService = when (blockchainType) {
15
8
BlockchainType .Ethereum ,
16
- BlockchainType .BinanceSmartChain -> SendTransactionServiceEvm (blockchainType)
17
- BlockchainType .BinanceChain -> TODO ()
18
- BlockchainType .Polygon -> TODO ()
19
- BlockchainType .Avalanche -> TODO ()
20
- BlockchainType .Optimism -> TODO ()
21
- BlockchainType .ArbitrumOne -> TODO ()
22
- BlockchainType .Solana -> TODO ()
23
- BlockchainType .Gnosis -> TODO ()
24
- BlockchainType .Fantom -> TODO ()
25
- BlockchainType .Tron -> TODO ()
26
- BlockchainType .Ton -> TODO ()
9
+ BlockchainType .BinanceSmartChain ,
10
+ BlockchainType .Polygon ,
11
+ BlockchainType .Avalanche ,
12
+ BlockchainType .Optimism ,
13
+ BlockchainType .ArbitrumOne ,
14
+ BlockchainType .Gnosis ,
15
+ BlockchainType .Fantom -> SendTransactionServiceEvm (blockchainType)
16
+
17
+ BlockchainType .Bitcoin ,
18
+ BlockchainType .BitcoinCash ,
19
+ BlockchainType .ECash ,
20
+ BlockchainType .Litecoin ,
21
+ BlockchainType .Dash ,
22
+ BlockchainType .Zcash ,
23
+ BlockchainType .BinanceChain ,
24
+ BlockchainType .Solana ,
25
+ BlockchainType .Tron ,
26
+ BlockchainType .Ton ,
27
27
is BlockchainType .Unsupported -> throw UnsupportedException (" " )
28
28
}
29
29
}
0 commit comments