File tree Expand file tree Collapse file tree 7 files changed +17
-2
lines changed
src/commonMain/kotlin/exchange.dydx.abacus Expand file tree Collapse file tree 7 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ allprojects {
5252}
5353
5454group = " exchange.dydx.abacus"
55- version = " 1.13.58 "
55+ version = " 1.13.59 "
5656
5757repositories {
5858 google()
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package exchange.dydx.abacus.output
33import com.ionspin.kotlin.bignum.decimal.BigDecimal
44import exchange.dydx.abacus.protocols.LocalizerProtocol
55import exchange.dydx.abacus.protocols.ParserProtocol
6+ import exchange.dydx.abacus.state.manager.ChainRpcMap
67import exchange.dydx.abacus.utils.IList
78import exchange.dydx.abacus.utils.Logger
89import kollections.JsExport
@@ -447,6 +448,7 @@ data class Configs(
447448 val equityTiers : EquityTiers ? ,
448449 val withdrawalGating : WithdrawalGating ? ,
449450 val withdrawalCapacity : WithdrawalCapacity ? ,
451+ val rpcMap : ChainRpcMap ?
450452) {
451453 companion object {
452454 internal fun create (
@@ -505,6 +507,7 @@ data class Configs(
505507 equityTiers = equityTiers,
506508 withdrawalGating = withdrawalGating,
507509 withdrawalCapacity = withdrawalCapacity,
510+ rpcMap = null ,
508511 )
509512 } else {
510513 existing ? : Configs (
@@ -514,6 +517,7 @@ data class Configs(
514517 equityTiers = null ,
515518 withdrawalGating = null ,
516519 withdrawalCapacity = null ,
520+ rpcMap = null ,
517521 )
518522 }
519523 }
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ import exchange.dydx.abacus.output.input.TradeInputSize
4343import exchange.dydx.abacus.output.input.TriggerOrderInputSummary
4444import exchange.dydx.abacus.output.input.TriggerPrice
4545import exchange.dydx.abacus.output.input.ValidationError
46+ import exchange.dydx.abacus.state.manager.ChainRpcMap
4647import exchange.dydx.abacus.state.manager.HistoricalTradingRewardsPeriod
4748import exchange.dydx.abacus.utils.NUM_PARENT_SUBACCOUNTS
4849import indexer.codegen.IndexerHistoricalBlockTradingReward
@@ -226,6 +227,7 @@ internal data class InternalConfigsState(
226227 var feeTiers : List <FeeTier >? = null ,
227228 var withdrawalGating : WithdrawalGating ? = null ,
228229 var withdrawalCapacity : InternalWithdrawalCapacityState ? = null ,
230+ var rpcMap : ChainRpcMap ? = null ,
229231)
230232
231233internal data class InternalWithdrawalCapacityState (
Original file line number Diff line number Diff line change 11package exchange.dydx.abacus.state.manager
22
3+ import kollections.JsExport
4+ import kotlinx.serialization.Serializable
5+
6+ @JsExport
7+ @Serializable
38data class RpcInfo (
49 val rpcUrl : String ,
510 val name : String ,
Original file line number Diff line number Diff line change @@ -1121,6 +1121,7 @@ open class TradingStateMachine(
11211121 withdrawalCapacity = WithdrawalCapacity (
11221122 capacity = internalState.configs.withdrawalCapacity?.capacity,
11231123 ),
1124+ rpcMap = internalState.configs.rpcMap,
11241125 )
11251126 } else {
11261127 this .configs?.let {
Original file line number Diff line number Diff line change @@ -144,6 +144,9 @@ internal class OnboardingSupervisor(
144144 helper.getAsync(url).response?.let { response ->
145145 RpcConfigsProcessor (helper.parser, configs.alchemyApiKey).received(response).let { rpcMap ->
146146 RpcConfigs .chainRpcMap = rpcMap
147+ stateMachine.internalState.configs.rpcMap = rpcMap
148+ val oldState = stateMachine.state
149+ update(StateChanges (iListOf(Changes .configs)), oldState)
147150 }
148151 }
149152 }
Original file line number Diff line number Diff line change 11Pod ::Spec . new do |spec |
22 spec . name = 'v4_abacus'
3- spec . version = '1.13.58 '
3+ spec . version = '1.13.59 '
44 spec . homepage = 'https://github.com/dydxprotocol/v4-abacus'
55 spec . source = { :http => '' }
66 spec . authors = ''
You can’t perform that action at this time.
0 commit comments