Skip to content

Commit

Permalink
ALL-1234 Fix LoadBalancer imports (#1054)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hathoriel authored Jan 25, 2024
1 parent 5a50ff8 commit 32c22dd
Show file tree
Hide file tree
Showing 14 changed files with 24 additions and 9 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [4.2.4] - 2024.1.25

### Fixed

- Fix import of LoadBalancer to keep it working in browser

## [4.2.3] - 2024.1.23

### Updated
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tatumio/tatum",
"version": "4.2.3",
"version": "4.2.4",
"description": "Tatum JS SDK",
"author": "Tatum",
"repository": "https://github.com/tatumio/tatum-js",
Expand Down
2 changes: 1 addition & 1 deletion src/service/rpc/evm/BeaconV1EvmRpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { Container, Service } from 'typedi'
// Need to import like this to keep browser working
import { GetI } from '../../../dto/GetI'
import { LoadBalancer } from '../generic'
import { LoadBalancer } from '../generic/LoadBalancer'
import { AbstractBeaconV1EvmRpc } from './AbstractBeaconV1EvmRpc'

@Service({
Expand Down
1 change: 1 addition & 0 deletions src/service/rpc/evm/EvmArchiveLoadBalancerRpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Container, Service } from 'typedi'
import { EvmBasedRpcSuite, JsonRpcCall, JsonRpcResponse } from '../../../dto'
import { Logger } from '../../../service/logger/logger.types'
import { LOGGER, Utils } from '../../../util'
// Need to import like this to keep browser working
import { LoadBalancer } from '../generic/LoadBalancer'
import { AbstractEvmRpc } from './AbstractEvmRpc'
import { EvmUtils } from './EvmUtils'
Expand Down
2 changes: 1 addition & 1 deletion src/service/rpc/evm/EvmBeaconArchiveLoadBalancerRpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { Container, Service } from 'typedi'
import { EvmBasedBeaconRpcSuite } from '../../../dto'
// Need to import like this to keep browser working
import { LoadBalancer } from '../generic'
import { LoadBalancer } from '../generic/LoadBalancer'
import { BeaconV1EvmRpc } from './BeaconV1EvmRpc'
import { EvmArchiveLoadBalancerRpc } from './EvmArchiveLoadBalancerRpc'

Expand Down
1 change: 1 addition & 0 deletions src/service/rpc/evm/EvmLoadBalancerRpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Container, Service } from 'typedi'
import { EvmBasedRpcSuite, JsonRpcCall, JsonRpcResponse } from '../../../dto'
import { Logger } from '../../../service/logger/logger.types'
import { LOGGER, Utils } from '../../../util'
// Need to import like this to keep browser working
import { LoadBalancer } from '../generic/LoadBalancer'
import { AbstractEvmRpc } from './AbstractEvmRpc'

Expand Down
1 change: 1 addition & 0 deletions src/service/rpc/evm/NativeEvmArchiveLoadBalancerRpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { JsonRpcCall, JsonRpcResponse, NATIVE_PREFIX_MAPPING, Network } from '..
import { NativeEvmBasedRpcSuite } from '../../../dto/rpc/NativeEvmBasedRpcInterface'
import { Logger } from '../../../service/logger/logger.types'
import { CONFIG, LOGGER, Utils } from '../../../util'
// Need to import like this to keep browser working
import { LoadBalancer } from '../generic/LoadBalancer'
import { AbstractNativeEvmRpc } from './AbstractNativeEvmRpc'
import { EvmUtils } from './EvmUtils'
Expand Down
1 change: 1 addition & 0 deletions src/service/rpc/evm/TronLoadBalancerRpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { EvmBasedRpcSuite, JsonRpcCall, JsonRpcResponse } from '../../../dto'
import { PostI } from '../../../dto/PostI'
import { Logger } from '../../../service/logger/logger.types'
import { LOGGER, Utils } from '../../../util'
// Need to import like this to keep browser working
import { LoadBalancer } from '../generic/LoadBalancer'
import { AbstractTronRpc } from './AbstractTronRpc'

Expand Down
3 changes: 2 additions & 1 deletion src/service/rpc/other/AlgorandAlgodLoadBalancerRpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
import { Container, Service } from 'typedi'
import { GetI } from '../../../dto/GetI'
import { PostI } from '../../../dto/PostI'
import { LoadBalancer } from '../generic'
// Need to import like this to keep browser working
import { LoadBalancer } from '../generic/LoadBalancer'
import { AbstractAlgorandAlgodRpc } from './AbstractAlgorandAlgodRpc'

@Service({
Expand Down
3 changes: 2 additions & 1 deletion src/service/rpc/other/AlgorandIndexerLoadBalancerRpc.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import { Container, Service } from 'typedi'
import { GetI } from '../../../dto/GetI'
import { LoadBalancer } from '../generic'
// Need to import like this to keep browser working
import { LoadBalancer } from '../generic/LoadBalancer'
import { AbstractAlgorandIndexerRpc } from './AbstractAlgorandIndexerRpc'

@Service({
Expand Down
3 changes: 2 additions & 1 deletion src/service/rpc/other/BnbLoadBalancerRpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import { Container, Service } from 'typedi'
import { JsonRpcResponse } from '../../../dto'
import { PostI } from '../../../dto/PostI'
import { BnbRpcSuite, JsonBnbRpcCall } from '../../../dto/rpc/BnbRpcSuite'
import { LoadBalancer } from '../generic'
// Need to import like this to keep browser working
import { LoadBalancer } from '../generic/LoadBalancer'
import { AbstractBnbRpc } from './AbstractBnbRpc'

@Service({
Expand Down
3 changes: 2 additions & 1 deletion src/service/rpc/other/StellarLoadBalancerRpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
import { Container, Service } from 'typedi'
import { GetI } from '../../../dto/GetI'
import { PostI } from '../../../dto/PostI'
import { LoadBalancer } from '../generic'
// Need to import like this to keep browser working
import { LoadBalancer } from '../generic/LoadBalancer'
import { AbstractStellarRpc } from './AbstractStellarRpc'

@Service({
Expand Down
3 changes: 2 additions & 1 deletion src/service/rpc/other/TezosLoadBalancerRpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import { JsonRpcCall, JsonRpcResponse } from '../../../dto'
import { GetI } from '../../../dto/GetI'
import { PostI } from '../../../dto/PostI'
import { Utils } from '../../../util'
import { LoadBalancer } from '../generic'
// Need to import like this to keep browser working
import { LoadBalancer } from '../generic/LoadBalancer'
import { AbstractTezosRpc } from './AbstractTezosRpc'

@Service({
Expand Down
2 changes: 1 addition & 1 deletion src/service/rpc/utxo/UtxoLoadBalancerRpcEstimateFee.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Container, Service } from 'typedi'
import { JsonRpcCall, JsonRpcResponse, UtxoBasedRpcSuiteEstimateFee } from '../../../dto'
import { Utils } from '../../../util'
// Need to import like this to keep browser working
import { LoadBalancer } from '../generic'
import { LoadBalancer } from '../generic/LoadBalancer'
import { AbstractUtxoRpcEstimateFee } from './AbstractUtxoRpcEstimateFee'

@Service({
Expand Down

0 comments on commit 32c22dd

Please sign in to comment.