Skip to content

Commit

Permalink
ALL-10482 - Remove BNB
Browse files Browse the repository at this point in the history
  • Loading branch information
Hathoriel committed Feb 5, 2025
1 parent b359b62 commit 5c9b660
Show file tree
Hide file tree
Showing 13 changed files with 9 additions and 347 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
- run: yarn build-all

- name: Upload build artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: build-${{ matrix.nodejs }}
path: dist/
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [4.2.46] - 2025.2.5

### Removed

- Removed BNB support

## [4.2.45] - 2024.12.20

### Fixed
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.45",
"version": "4.2.46",
"description": "Tatum JS SDK",
"author": "Tatum",
"repository": "https://github.com/tatumio/tatum-js",
Expand Down
1 change: 0 additions & 1 deletion src/dto/Currency.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export enum Currency {
FLOW = 'FLOW',
XDC = 'XDC',
XLM = 'XLM',
BNB = 'BNB',
ONE = 'ONE',
EOS = 'EOS',
AVAX = 'AVAX',
Expand Down
10 changes: 0 additions & 10 deletions src/dto/Network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export enum Network {
AVALANCHE_X = 'avax-x-mainnet',
BASE = 'base-mainnet',
BINANCE_SMART_CHAIN = 'bsc-mainnet',
BNB = 'bnb-beacon-chain-mainnet',
BITCOIN = 'bitcoin-mainnet',
BITCOIN_CASH = 'bitcoin-cash-mainnet',
CARDANO_ROSETTA = 'cardano-mainnet',
Expand Down Expand Up @@ -262,7 +261,6 @@ export const EOS_LOAD_BALANCER_NETWORKS = [Network.EOS]
export const XRP_LOAD_BALANCER_NETWORKS = [Network.XRP, Network.XRP_TESTNET]
export const NATIVE_EVM_LOAD_BALANCER_NETWORKS = [Network.KLAYTN, Network.KLAYTN_BAOBAB]
export const SOLANA_NETWORKS = [Network.SOLANA, Network.SOLANA_DEVNET]
export const BNB_LOAD_BALANCER_NETWORKS = [Network.BNB]
export const TEZOS_NETWORKS = [Network.TEZOS, Network.TEZOS_TESTNET]
export const ALGORAND_ALGOD_NETWORKS = [Network.ALGORAND_ALGOD, Network.ALGORAND_ALGOD_TESTNET]
export const ALGORAND_INDEXER_NETWORKS = [Network.ALGORAND_INDEXER, Network.ALGORAND_INDEXER_TESTNET]
Expand Down Expand Up @@ -295,7 +293,6 @@ export const LOAD_BALANCER_NETWORKS = [
...XRP_LOAD_BALANCER_NETWORKS,
...NATIVE_EVM_LOAD_BALANCER_NETWORKS,
...SOLANA_NETWORKS,
...BNB_LOAD_BALANCER_NETWORKS,
...TEZOS_NETWORKS,
...ALGORAND_ALGOD_NETWORKS,
...ALGORAND_INDEXER_NETWORKS,
Expand Down Expand Up @@ -380,8 +377,6 @@ export const isRostrumLoadBalancerNetwork = (network: Network) =>
export const isNativeEvmLoadBalancerNetwork = (network: Network) =>
NATIVE_EVM_LOAD_BALANCER_NETWORKS.includes(network)

export const isBnbLoadBalancerNetwork = (network: Network) => BNB_LOAD_BALANCER_NETWORKS.includes(network)

export const isTezosNetwork = (network: Network) => TEZOS_NETWORKS.includes(network)

export const isAlgorandAlgodNetwork = (network: Network) => ALGORAND_ALGOD_NETWORKS.includes(network)
Expand Down Expand Up @@ -658,11 +653,6 @@ export const NETWORK_METADATA: Record<Network, NetworkMetadata> = {
testnet: true,
defaultTestnet: true,
},
[Network.BNB]: {
currency: Currency.BNB,
testnet: false,
defaultMainnet: true,
},
[Network.DOGECOIN]: {
currency: Currency.DOGE,
testnet: false,
Expand Down
83 changes: 0 additions & 83 deletions src/dto/rpc/BnbRpcSuite.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/e2e/rpc/evm/evm.rpc.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const testNetworks = [
network: Network.ARBITRUM_NOVA_TESTNET,
apiKey: ApiKey.testnet,
},
{ network: Network.HORIZEN_EON },
// { network: Network.HORIZEN_EON },
// { network: Network.HORIZEN_EON_GOBI },
{ network: Network.CHILIZ },
{ network: Network.BINANCE_SMART_CHAIN },
Expand Down
65 changes: 0 additions & 65 deletions src/e2e/rpc/other/tatum.rpc.bnb.spec.ts

This file was deleted.

99 changes: 0 additions & 99 deletions src/service/rpc/other/AbstractBnbRpc.ts

This file was deleted.

40 changes: 0 additions & 40 deletions src/service/rpc/other/BnbLoadBalancerRpc.ts

This file was deleted.

Loading

0 comments on commit 5c9b660

Please sign in to comment.