Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yogurtandjam committed May 28, 2024
1 parent 335473f commit 50944b8
Showing 1 changed file with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
package exchange.dydx.abacus.processor.router.skip
import exchange.dydx.abacus.processor.router.skip.SkipProcessor
import exchange.dydx.abacus.utils.Logger
import exchange.dydx.abacus.utils.Parser
import kotlinx.serialization.json.Json
import kotlinx.serialization.json.jsonObject
Expand All @@ -21,8 +19,9 @@ class SkipProcessorTests {
fun testReceivedChains() {
val skipProcessor = getSkipProcessor()
val modified = skipProcessor.receivedChains(
existing=mapOf(),
payload= templateToJson("""{
existing = mapOf(),
payload = templateToJson(
"""{
"chains": [
{
"chain_name": "kujira",
Expand Down Expand Up @@ -183,31 +182,32 @@ class SkipProcessorTests {
"is_testnet": false
}
]
}""")
}""",
),
)

val expected = mapOf(
"transfer" to mapOf(
"depositOptions" to mapOf (
"depositOptions" to mapOf(
"chains" to listOf(
mapOf("stringKey" to "aura", "type" to "xstaxy-1", "iconUrl" to "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/xstaxy/chain.png"),
mapOf("stringKey" to "cheqd", "type" to "cheqd-mainnet-1", "iconUrl" to "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/cheqd-mainnet/chain.png"),
mapOf("stringKey" to "kujira", "type" to "kaiyo-1", "iconUrl" to "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/kaiyo/chain.png"),
mapOf("stringKey" to "osmosis", "type" to "osmosis-1", "iconUrl" to "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/osmosis/chain.png"),
mapOf("stringKey" to "stride", "type" to "stride-1", "iconUrl" to "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/stride/chain.png"),
)
),
),
"withdrawalOptions" to mapOf (
"withdrawalOptions" to mapOf(
"chains" to listOf(
mapOf("stringKey" to "aura", "type" to "xstaxy-1", "iconUrl" to "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/xstaxy/chain.png"),
mapOf("stringKey" to "cheqd", "type" to "cheqd-mainnet-1", "iconUrl" to "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/cheqd-mainnet/chain.png"),
mapOf("stringKey" to "kujira", "type" to "kaiyo-1", "iconUrl" to "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/kaiyo/chain.png"),
mapOf("stringKey" to "osmosis", "type" to "osmosis-1", "iconUrl" to "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/osmosis/chain.png"),
mapOf("stringKey" to "stride", "type" to "stride-1", "iconUrl" to "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/stride/chain.png")
)
)
)
mapOf("stringKey" to "stride", "type" to "stride-1", "iconUrl" to "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/stride/chain.png"),
),
),
),
)
assertEquals(modified, expected)
}
}
}

0 comments on commit 50944b8

Please sign in to comment.