From f12fe61185aa4560cc742a93567e424ed7da89ec Mon Sep 17 00:00:00 2001 From: jeremy lee Date: Fri, 14 Jun 2024 18:51:22 -0400 Subject: [PATCH] enable non-cctp deposit and wihtdrawals --- .../state/model/TradingStateMachine+TransferInput.kt | 3 +++ .../processor/router/skip/SkipRouteProcessorTests.kt | 2 +- v4_abacus.podspec | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/commonMain/kotlin/exchange.dydx.abacus/state/model/TradingStateMachine+TransferInput.kt b/src/commonMain/kotlin/exchange.dydx.abacus/state/model/TradingStateMachine+TransferInput.kt index e9391f86e..61e0ec1b1 100644 --- a/src/commonMain/kotlin/exchange.dydx.abacus/state/model/TradingStateMachine+TransferInput.kt +++ b/src/commonMain/kotlin/exchange.dydx.abacus/state/model/TradingStateMachine+TransferInput.kt @@ -5,6 +5,7 @@ import exchange.dydx.abacus.responses.ParsingError import exchange.dydx.abacus.responses.StateResponse import exchange.dydx.abacus.state.changes.Changes import exchange.dydx.abacus.state.changes.StateChanges +import exchange.dydx.abacus.utils.Logger import exchange.dydx.abacus.utils.mutable import exchange.dydx.abacus.utils.mutableMapOf import exchange.dydx.abacus.utils.safeSet @@ -245,7 +246,9 @@ private fun TradingStateMachine.updateTransferToChainType(transfer: MutableMap, exchange: String) { val exchangeDestinationChainId = routerProcessor.exchangeDestinationChainId + Logger.e({ "exchangedestinationchainid:$exchangeDestinationChainId" }) val tokenOptions = routerProcessor.tokenOptions(exchangeDestinationChainId) + Logger.e({ "tokenOptions:$tokenOptions" }) if (transfer["type"] != "TRANSFER_OUT") { internalState.transfer.tokens = tokenOptions transfer.safeSet("token", routerProcessor.defaultTokenAddress(exchangeDestinationChainId)) diff --git a/src/commonTest/kotlin/exchange.dydx.abacus/processor/router/skip/SkipRouteProcessorTests.kt b/src/commonTest/kotlin/exchange.dydx.abacus/processor/router/skip/SkipRouteProcessorTests.kt index edbf014f4..dea40c8a8 100644 --- a/src/commonTest/kotlin/exchange.dydx.abacus/processor/router/skip/SkipRouteProcessorTests.kt +++ b/src/commonTest/kotlin/exchange.dydx.abacus/processor/router/skip/SkipRouteProcessorTests.kt @@ -221,7 +221,7 @@ class SkipRouteProcessorTests { ) assertEquals(expected, result) } - + @Test fun testReceivedError() { val payload = skipRouteMock.payloadError diff --git a/v4_abacus.podspec b/v4_abacus.podspec index 5aafcd256..5429966a6 100644 --- a/v4_abacus.podspec +++ b/v4_abacus.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |spec| spec.name = 'v4_abacus' - spec.version = '1.7.87' + spec.version = '1.7.88' spec.homepage = 'https://github.com/dydxprotocol/v4-abacus' spec.source = { :http=> ''} spec.authors = ''