Skip to content

Commit

Permalink
make error messages more specific. suppress lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
yogurtandjam committed May 28, 2024
1 parent 27fcf3d commit cf6a7fd
Showing 1 changed file with 17 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import exchange.dydx.abacus.processor.router.*
import exchange.dydx.abacus.protocols.ParserProtocol
import exchange.dydx.abacus.utils.safeSet

@Suppress("NotImplementedDeclaration")
internal class SkipProcessor(parser: ParserProtocol) : BaseProcessor(parser), IRouterProcessor {
override var chains: List<Any>? = null
// possibly want to use a different variable so we aren't stuck with this bad type
Expand All @@ -17,47 +18,47 @@ internal class SkipProcessor(parser: ParserProtocol) : BaseProcessor(parser), IR
existing: Map<String, Any>?,
payload: Map<String, Any>
): Map<String, Any>? {
throw Error("Not Implemented!")
throw NotImplementedError("receivedV2SdkInfo is not implemented in SkipProcessor!")
}
override fun receivedChains(
existing: Map<String, Any>?,
payload: Map<String, Any>
): Map<String, Any>? {
throw Error("Not Implemented!")
throw NotImplementedError("receivedChains is not implemented in SkipProcessor!")
}
override fun receivedTokens(
existing: Map<String, Any>?,
payload: Map<String, Any>
): Map<String, Any>? {
throw Error("Not Implemented!")
throw NotImplementedError("receivedTokens is not implemented in SkipProcessor!")
}

override fun receivedRoute(
existing: Map<String, Any>?,
payload: Map<String, Any>,
requestId: String?,
): Map<String, Any>? {
throw Error("Not Implemented!")
throw NotImplementedError("receivedRoute is not implemented in SkipProcessor!")
}

override fun receivedRouteV2(
existing: Map<String, Any>?,
payload: Map<String, Any>,
requestId: String?
): Map<String, Any>? {
throw Error("Not Implemented!")
throw NotImplementedError("receivedRouteV2 is not implemented in SkipProcessor!")
}

override fun usdcAmount(data: Map<String, Any>): Double? {
throw Error("Not Implemented!")
throw NotImplementedError("usdcAmount is not implemented in SkipProcessor!")
}

override fun receivedStatus(
existing: Map<String, Any>?,
payload: Map<String, Any>,
transactionId: String?,
): Map<String, Any>? {
throw Error("Not Implemented!")
throw NotImplementedError("receivedStatus is not implemented in SkipProcessor!")
}

override fun updateTokensDefaults(modified: MutableMap<String, Any>, selectedChainId: String?) {
Expand All @@ -69,38 +70,38 @@ internal class SkipProcessor(parser: ParserProtocol) : BaseProcessor(parser), IR
}

override fun defaultChainId(): String? {
throw Error("Not Implemented!")
throw NotImplementedError("defaultChainId is not implemented in SkipProcessor!")
}

override fun selectedTokenSymbol(tokenAddress: String?): String? {
throw Error("Not Implemented!")
throw NotImplementedError("selectedTokenSymbol is not implemented in SkipProcessor!")
}

override fun selectedTokenDecimals(tokenAddress: String?): String? {
throw Error("Not Implemented!")
throw NotImplementedError("selectedTokenDecimals is not implemented in SkipProcessor!")
}

override fun filteredTokens(chainId: String?): List<Any>? {
throw Error("Not Implemented!")
throw NotImplementedError("filteredTokens is not implemented in SkipProcessor!")
}

override fun defaultTokenAddress(chainId: String?): String? {
throw Error("Not Implemented!")
throw NotImplementedError("defaultTokenAddress is not implemented in SkipProcessor!")
}

override fun chainResources(chainId: String?): Map<String, Any>? {
throw Error("Not Implemented!")
throw NotImplementedError("chainResources is not implemented in SkipProcessor!")
}

override fun tokenResources(chainId: String?): Map<String, Any>? {
throw Error("Not Implemented!")
throw NotImplementedError("tokenResources is not implemented in SkipProcessor!")
}

override fun chainOptions(): List<Any> {
throw Error("Not Implemented!")
throw NotImplementedError("chainOptions is not implemented in SkipProcessor!")
}

override fun tokenOptions(chainId: String?): List<Any> {
throw Error("Not Implemented!")
throw NotImplementedError("tokenOptions is not implemented in SkipProcessor!")
}
}

0 comments on commit cf6a7fd

Please sign in to comment.