Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ object Configuration {
Erc20Token("USDT", "USDT", Address("0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9"), 6),
Erc20Token("Uniswap", "UNI", Address("0xFa7F8980b0f1E64A2062791cc3b0871572f1F7f0"), 18),
)
Chain.Rootstock -> listOf(
Erc20Token("RIF", "RIF", Address("0x2acc95758f8b5f583470ba265eb685a8f45fc9d5"), 18),
)
Chain.BinanceSmartChain -> listOf(
Erc20Token("Beefy.Finance", "BIFI", Address("0xCa3F508B8e4Dd382eE878A314789373D80A5190A"), 18),
Erc20Token("PancakeSwap", "CAKE", Address("0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82"), 18),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ class AddressWatchViewModel : ViewModel() {
transactionSource = TransactionSource.bscscan(Configuration.bscScanKey)
rpcSource = RpcSource.binanceSmartChainHttp()
}
Chain.Rootstock -> {
transactionSource = TransactionSource.rootstock()
rpcSource = RpcSource.rootstockRpcHttp()
}
Chain.Ethereum -> {
transactionSource = TransactionSource.ethereumEtherscan(Configuration.etherscanKey)
rpcSource = if (Configuration.webSocket)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ enum class Chain(
Avalanche(43114, 60, 10_000_000, 15, true),
Gnosis(100, 60, 10_000_000, 15, true),
Fantom(250, 60, 10_000_000, 15, false),
Rootstock(30, 137, 10_000_000, 15, false),
EthereumGoerli(5, 1, 10_000_000, 15, true);

val isMainNet = coinType != 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,9 @@ sealed class RpcSource() {
return Http(listOf(URI("https://rpc.fantom.network")), null)
}

fun rootstockRpcHttp(): Http {
return Http(listOf(URL("https://public-node.rsk.co")), null)
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ class TransactionSource(val name: String, val type: SourceType) {
)
}

fun rootstock(): TransactionSource {
return TransactionSource(
"blockscout.com",
SourceType.Etherscan("https://rootstock.blockscout.com", "https://rootstock.blockscout.com/api", "")
)
}

}

}