Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions FAUCETS.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ Phala PoC 5:

- https://wiki.phala.network/en-us/build/getting-started/deploy-contract/#claim-test-tokens

Pop Network:

- https://onboard.popnetwork.xyz/

T3RN t0rn:

- https://faucet.t0rn.io/
12 changes: 5 additions & 7 deletions cypress/e2e/extension.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,17 @@ interface Window {

describe('Signer extension flow on live networks', () => {
before(() => {
cy.visit(`/instantiate/?rpc=wss://rpc1.paseo.popnetwork.xyz`);
cy.visit(`/instantiate/?rpc=wss://testnet-passet-hub.polkadot.io`);
});

it('connects to Rococo', () => {
cy.contains('Connecting to wss://rpc1.paseo.popnetwork.xyz').should('not.exist', {
it('connects to PassetHub', () => {
cy.contains('Connecting to wss://testnet-passet-hub.polkadot.io').should('not.exist', {
timeout: 25000,
});
});

it('Rococo is selected in the network connection dropdown', () => {
cy.get('.dropdown.chain')
.find('.dropdown__single-value')
.should('contain', 'Pop Network Testnet');
it('PassetHub is selected in the network connection dropdown', () => {
cy.get('.dropdown.chain').find('.dropdown__single-value').should('contain', 'Passet Hub');
});

it('Displays help text for no extension installed', () => {
Expand Down
11 changes: 1 addition & 10 deletions src/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ export const LOCAL = {
rpc: CUSTOM_ENDPOINT ? (JSON.parse(CUSTOM_ENDPOINT) as string) : 'ws://127.0.0.1:9944',
};

export const POP_NETWORK_TESTNET = {
relay: 'Paseo',
name: 'Pop Network Testnet',
rpc: 'wss://rpc1.paseo.popnetwork.xyz',
};

export const PASSET_HUB_TESTNET = {
relay: 'Paseo',
name: 'Passet Hub',
Expand Down Expand Up @@ -97,9 +91,7 @@ const ZEITGEIST_BATTERY_STATION = {
};

export const TESTNETS_V6 = [
...[PASSET_HUB_TESTNET, POP_NETWORK_TESTNET, WESTEND_ASSET_HUB].sort((a, b) =>
a.name.localeCompare(b.name),
),
...[PASSET_HUB_TESTNET, WESTEND_ASSET_HUB].sort((a, b) => a.name.localeCompare(b.name)),
LOCAL,
];

Expand All @@ -109,7 +101,6 @@ export const TESTNETS_V5 = [
ASTAR_SHIBUYA,
ALEPH_ZERO_TESTNET,
PENDULUM_TESTNET,
POP_NETWORK_TESTNET,
ZEITGEIST_BATTERY_STATION,
].sort((a, b) => a.name.localeCompare(b.name)),
LOCAL,
Expand Down
4 changes: 2 additions & 2 deletions src/ui/contexts/ApiContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useSearchParams } from 'react-router-dom';
import { web3Accounts, web3Enable, web3EnablePromise } from '@polkadot/extension-dapp';
import { WsProvider } from '@polkadot/api';
import { keyring } from '@polkadot/ui-keyring';
import { LOCAL_STORAGE_KEY, POP_NETWORK_TESTNET } from '../../constants';
import { LOCAL_STORAGE_KEY, PASSET_HUB_TESTNET } from '../../constants';
import { ApiPromise, ApiState, ChainProperties, Account, Status, WeightV2 } from 'types';
import { isValidWsUrl, isKeyringLoaded } from 'lib/util';
import { useLocalStorage } from 'ui/hooks/useLocalStorage';
Expand All @@ -30,7 +30,7 @@ export const ApiContextProvider = ({ children }: React.PropsWithChildren<Partial
const rpcUrl = searchParams.get('rpc');
const [preferredEndpoint, setPreferredEndpoint] = useLocalStorage<string>(
LOCAL_STORAGE_KEY.PREFERRED_ENDPOINT,
POP_NETWORK_TESTNET.rpc,
PASSET_HUB_TESTNET.rpc,
);
const [api, setApi] = useState({} as ApiPromise);
const [endpoint, setEndpoint] = useState(preferredEndpoint);
Expand Down