Skip to content

Commit

Permalink
chore: update node and faucet urls for nova testnet (#8514)
Browse files Browse the repository at this point in the history
* chore: Update Node and Faucet URLs

* fix: Update test

* chore: Update getNetworkIdFromNetworkName

* chore: Update getNetworkIdFromNetworkName again

* Update packages/shared/lib/core/network/constants/faucet-urls.constant.ts

Co-authored-by: Begoña Álvarez de la Cruz <[email protected]>

* Update packages/shared/lib/core/network/tests/network.test.ts

Co-authored-by: Begoña Álvarez de la Cruz <[email protected]>

* Update packages/shared/lib/core/network/constants/explorer-urls.constant.ts

Co-authored-by: Begoña Álvarez de la Cruz <[email protected]>

* fix the test.

---------

Co-authored-by: cpl121 <[email protected]>
Co-authored-by: Begoña Álvarez de la Cruz <[email protected]>
  • Loading branch information
3 people authored May 13, 2024
1 parent 78c266f commit 25800c5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ export const EXPLORER_URLS: Readonly<{ [key in NetworkId]?: string }> = {
[NetworkId.Iota]: 'https://explorer.iota.org/mainnet',
[NetworkId.IotaAlphanet]: 'https://explorer.iota-alphanet.iotaledger.net/devnet',
[NetworkId.Shimmer]: 'https://explorer.shimmer.network/shimmer',
[NetworkId.Testnet]: 'https://explorer.shimmer.network/testnet',
[NetworkId.Testnet]: 'https://explorer.iota.works/iota2-testnet',
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { NetworkId } from '../enums'

export const FAUCET_URLS: Readonly<{ [key in NetworkId]?: string }> = {
[NetworkId.IotaAlphanet]: 'https://faucet.iota-alphanet.iotaledger.net/api/enqueue',
[NetworkId.Testnet]: 'https://faucet.testnet.shimmer.network/api/enqueue',
[NetworkId.Testnet]: 'https://faucet.nova-testnet.iotaledger.net/api/enqueue',
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ export const OFFICIAL_NODE_URLS: Readonly<{ [key in NetworkId]?: string[] }> = {
[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', 'https://shimmer-node.tanglebay.com'],
[NetworkId.Testnet]: ['https://api.testnet.shimmer.network'],
[NetworkId.Testnet]: ['https://api.nova-testnet.iotaledger.net/'],
}
2 changes: 1 addition & 1 deletion packages/shared/lib/core/network/tests/network.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('File: network.ts', () => {
[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', 'https://shimmer-node.tanglebay.com'],
[NetworkId.Testnet]: ['https://api.testnet.shimmer.network'],
[NetworkId.Testnet]: ['https://api.nova-testnet.iotaledger.net/'],
}

const EXPECTED_NODES: Readonly<{ [key in NetworkId]: (INode | undefined)[] }> = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { NetworkId } from '../enums'

export function getNetworkIdFromNetworkName(networkName: string): NetworkId {
if (networkName.startsWith('iota2-alphanet')) {
if (networkName.startsWith('nova-testnet')) {
return NetworkId.Testnet
}
switch (networkName) {
Expand Down

0 comments on commit 25800c5

Please sign in to comment.