Skip to content

Commit

Permalink
ALL-5085 - Add Rostrum Rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
Hathoriel committed Apr 2, 2024
1 parent 4d730d2 commit d6b23b1
Show file tree
Hide file tree
Showing 10 changed files with 1,455 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/dto/Network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export enum Network {
PALM = 'palm-mainnet',
POLYGON = 'polygon-mainnet',
POLKADOT = 'dot-mainnet',
ROSTRUM = 'rostrum-mainnet',
RSK = 'rsk-mainnet',
SOLANA = 'solana-mainnet',
STELLAR = 'stellar-mainnet',
Expand Down Expand Up @@ -246,6 +247,7 @@ export const ALGORAND_INDEXER_NETWORKS = [Network.ALGORAND_INDEXER, Network.ALGO
export const CARDANO_NETWORKS = [Network.CARDANO_ROSETTA, Network.CARDANO_ROSETTA_PREPROD]
export const STELLAR_LOAD_BALANCER_NETWORKS = [Network.STELLAR]
export const KADENA_LOAD_BALANCER_NETWORKS = [Network.KADENA, Network.KADENA_TESTNET]
export const ROSTRUM_LOAD_BALANCER_NETWORKS = [Network.ROSTRUM]

export const LOAD_BALANCER_NETWORKS = [
...UTXO_LOAD_BALANCER_NETWORKS,
Expand All @@ -263,6 +265,7 @@ export const LOAD_BALANCER_NETWORKS = [
...CARDANO_NETWORKS,
...STELLAR_LOAD_BALANCER_NETWORKS,
...KADENA_LOAD_BALANCER_NETWORKS,
...ROSTRUM_LOAD_BALANCER_NETWORKS,
]

export const EVM_ARCHIVE_NON_ARCHIVE_LOAD_BALANCER_NETWORKS = [
Expand Down Expand Up @@ -331,6 +334,9 @@ export const isXrpLoadBalancerNetwork = (network: Network) => XRP_LOAD_BALANCER_
export const isKadenaLoadBalancerNetwork = (network: Network) =>
KADENA_LOAD_BALANCER_NETWORKS.includes(network)

export const isRostrumLoadBalancerNetwork = (network: Network) =>
ROSTRUM_LOAD_BALANCER_NETWORKS.includes(network)

export const isNativeEvmLoadBalancerNetwork = (network: Network) =>
NATIVE_EVM_LOAD_BALANCER_NETWORKS.includes(network)

Expand Down Expand Up @@ -888,4 +894,8 @@ export const NETWORK_METADATA: Record<Network, NetworkMetadata> = {
testnet: true,
chainId: 84532,
},
[Network.ROSTRUM]: {
currency: Currency.BCH,
testnet: false,
},
}
Loading

0 comments on commit d6b23b1

Please sign in to comment.