Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update node and faucet urls for nova testnet #8514

Merged
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/'],
marc2332 marked this conversation as resolved.
Show resolved Hide resolved
}

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
Loading