From a626c50822662d308f98ad6ee5ff6fa64c021a6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bego=C3=B1a=20=C3=81lvarez=20de=20la=20Cruz?= Date: Wed, 4 Oct 2023 09:46:55 +0200 Subject: [PATCH] chore: update shimmer and iota nodes (#7526) * chore: update shimmer and iota nodes * chore: add tanglebay node * fix tests --------- Co-authored-by: cpl121 --- .../network/constants/official-node-urls.constant.ts | 4 ++-- packages/shared/lib/core/network/tests/network.test.ts | 9 ++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/packages/shared/lib/core/network/constants/official-node-urls.constant.ts b/packages/shared/lib/core/network/constants/official-node-urls.constant.ts index cc6829b1e6a..f4674b99460 100644 --- a/packages/shared/lib/core/network/constants/official-node-urls.constant.ts +++ b/packages/shared/lib/core/network/constants/official-node-urls.constant.ts @@ -1,8 +1,8 @@ import { NetworkId } from '../enums' export const OFFICIAL_NODE_URLS: Readonly<{ [key in NetworkId]?: string[] }> = { - [NetworkId.Iota]: ['https://api.stardust-mainnet.iotaledger.net:8443'], + [NetworkId.Iota]: ['https://api.stardust-mainnet.iotaledger.net', 'https://iota-node.tanglebay.com'], [NetworkId.IotaAlphanet]: ['https://api.iota-alphanet.iotaledger.net'], - [NetworkId.Shimmer]: ['https://api.shimmer.network'], + [NetworkId.Shimmer]: ['https://api.shimmer.network', 'https://shimmer-node.tanglebay.com'], [NetworkId.Testnet]: ['https://api.testnet.shimmer.network'], } diff --git a/packages/shared/lib/core/network/tests/network.test.ts b/packages/shared/lib/core/network/tests/network.test.ts index c6af132289c..920e6416a4c 100644 --- a/packages/shared/lib/core/network/tests/network.test.ts +++ b/packages/shared/lib/core/network/tests/network.test.ts @@ -21,9 +21,9 @@ describe('File: network.ts', () => { } const EXPECTED_NODE_URLS: Readonly<{ [key in NetworkId]?: string[] }> = { - [NetworkId.Iota]: ['https://api.stardust-mainnet.iotaledger.net:8443'], + [NetworkId.Iota]: ['https://api.stardust-mainnet.iotaledger.net', 'https://iota-node.tanglebay.com'], [NetworkId.IotaAlphanet]: ['https://api.iota-alphanet.iotaledger.net'], - [NetworkId.Shimmer]: ['https://api.shimmer.network'], + [NetworkId.Shimmer]: ['https://api.shimmer.network', 'https://shimmer-node.tanglebay.com'], [NetworkId.Testnet]: ['https://api.testnet.shimmer.network'], } @@ -39,7 +39,10 @@ describe('File: network.ts', () => { it('should return the client options of the active profile if present', () => { const clientOptions = getDefaultClientOptions(NetworkId.Iota) expect(clientOptions).toEqual({ - nodes: [_buildNode(EXPECTED_NODE_URLS?.[NetworkId.Iota]?.[0])], + nodes: [ + _buildNode(EXPECTED_NODE_URLS?.[NetworkId.Iota]?.[0]), + _buildNode(EXPECTED_NODE_URLS?.[NetworkId.Iota]?.[1]), + ], maxParallelApiRequests: DEFAULT_MAX_PARALLEL_API_REQUESTS, }) })