Skip to content

Commit

Permalink
feat: router interface [OTE-344] (#386)
Browse files Browse the repository at this point in the history
Co-authored-by: mobile-build-bot-git <[email protected]>
  • Loading branch information
yogurtandjam and mobile-build-bot committed May 31, 2024
1 parent 2b8834c commit 15c0b1b
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ allprojects {
}

group = "exchange.dydx.abacus"
version = "1.7.39"
version = "1.7.40"

repositories {
google()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
package exchange.dydx.abacus.processor.router

interface IRouterProcessor {
var tokens: List<Any>?
var chains: List<Any>?
var exchangeDestinationChainId: String?
fun receivedChains(
existing: Map<String, Any>?,
payload: Map<String, Any>
): Map<String, Any>?

fun receivedTokens(
existing: Map<String, Any>?,
payload: Map<String, Any>
): Map<String, Any>?

fun receivedV2SdkInfo(
existing: Map<String, Any>?,
payload: Map<String, Any>
): Map<String, Any>?

fun receivedRoute(
existing: Map<String, Any>?,
payload: Map<String, Any>,
requestId: String?,
): Map<String, Any>?

fun receivedRouteV2(
existing: Map<String, Any>?,
payload: Map<String, Any>,
requestId: String?
): Map<String, Any>?

fun usdcAmount(data: Map<String, Any>): Double?
fun receivedStatus(
existing: Map<String, Any>?,
payload: Map<String, Any>,
transactionId: String?,
): Map<String, Any>?

fun updateTokensDefaults(modified: MutableMap<String, Any>, selectedChainId: String?)
fun defaultChainId(): String?
fun selectedTokenSymbol(tokenAddress: String?): String?
fun selectedTokenDecimals(tokenAddress: String?): String?
fun filteredTokens(chainId: String?): List<Any>?
fun defaultTokenAddress(chainId: String?): String?
fun chainResources(chainId: String?): Map<String, Any>?
fun tokenResources(chainId: String?): Map<String, Any>?
fun chainOptions(): List<Any>
fun tokenOptions(chainId: String?): List<Any>
}

0 comments on commit 15c0b1b

Please sign in to comment.