Skip to content

Commit

Permalink
feat: Add Pop Network Testnet (#554)
Browse files Browse the repository at this point in the history
Co-authored-by: peetzweg/ <phil.czek@gmail.com>
  • Loading branch information
al3mart and peetzweg committed Apr 16, 2024
1 parent ae90c4e commit b9e6335
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 3 deletions.
8 changes: 8 additions & 0 deletions FAUCETS.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ Rococo:

- https://app.element.io/#/room/#rococo-faucet:matrix.org

Paseo:

- https://faucet.polkadot.io/paseo

Aleph Zero Testnet:

- https://faucet.test.azero.dev/
Expand All @@ -26,6 +30,10 @@ 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/
3 changes: 3 additions & 0 deletions snapshots.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2022-2024 @paritytech/contracts-ui authors & contributors
// SPDX-License-Identifier: GPL-3.0-only

module.exports = {
__version: '12.17.2',
'Storage Types Contract': {
Expand Down
7 changes: 7 additions & 0 deletions src/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ export const LOCAL = {
// rpc: 'wss://wss.agung.peaq.network',
// };

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

const PHALA_TESTNET = {
relay: undefined,
name: 'Phala PoC-6',
Expand Down Expand Up @@ -106,6 +112,7 @@ export const TESTNETS = [
T3RN_T0RN,
TERNOA_ALPHANET,
PENDULUM_TESTNET,
POP_NETWORK_TESTNET,
ZEITGEIST_BATTERY_STATION,
].sort((a, b) => a.name.localeCompare(b.name)),
LOCAL,
Expand Down
2 changes: 1 addition & 1 deletion src/ui/components/contract/DryRunResult.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
// SPDX-License-Identifier: GPL-3.0-only

import { AbiMessage } from '@polkadot/api-contract/types';
import { formatProofSize, formatRefTime } from '../../../lib/formatWeight';
import { DryRunError } from './DryRunError';
import { OutcomeItem } from './OutcomeItem';
import { classes } from 'lib/util';
import { ContractExecResult, Registry } from 'types';
import { useApi } from 'ui/contexts';
import { getDecodedOutput } from 'lib/output';
import { decodeStorageDeposit } from 'lib/callOptions';
import { formatProofSize, formatRefTime } from '../../../lib/formatWeight';

interface Props {
outcome: ContractExecResult;
Expand Down
4 changes: 2 additions & 2 deletions src/ui/styles/dropdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@
}

.dropdown.chain .dropdown__single-value {
@apply flex flex-grow items-center text-sm font-medium;
@apply flex w-full flex-grow items-center text-sm font-medium;
}

.dropdown.chain .dropdown__single-value:before {
content: '';
@apply ml-1 mr-2 block h-1.5 w-1.5 rounded-full;
@apply mr-2 block h-1.5 w-1.5 rounded-full;
}

.dropdown.chain.isConnected .dropdown__single-value:before {
Expand Down

0 comments on commit b9e6335

Please sign in to comment.