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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Contracts Docs

This is the documentation for smart contracts on Asset Hub. It is built using Docusaurus. Master is deployed to: https://contracts.polkadot.io.
This is the documentation for smart contracts on Polkadot. It is built using Docusaurus. Master is deployed to: https://contracts.polkadot.io.

## Local Development

Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sidebar_position: 1

:::warning

**The feature is a work in progress**. A preview version is deployed to the [Westend Asset Hub Parachain](https://wiki.polkadot.network/docs/maintain-networks#westend-asset-hub)
**The feature is a work in progress**. A preview version is deployed to the [Westend Network](https://docs.polkadot.com/develop/networks/#westend)
to gather feedback during development. **This documentation is also temporary and will be moved to [docs.polkadot.com](https://docs.polkadot.com/) in 2025 once the feature is in production.**

:::
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
sidebar_position: 1
slug: /connect-to-asset-hub
slug: /connect-to-westend
---

import {WalletConnectButton} from '@site/src/components/WalletConnect'

# Connect to Asset Hub
# Connect to Westend

- Install an Ethereum wallet of your choice, such as [Talisman] or [MetaMask] browser extension.
- Create a new Ethereum account (if you don’t already have one).
Expand All @@ -16,16 +16,16 @@ MetaMask enforces Ethereum contract size limits. If you want to deploy larger co

:::

# Connect to Asset Hub Westend Testnet (Applicable to MetaMask only)
# Connect to Westend (Applicable to MetaMask only)

Connect your MetaMask wallet to Asset Hub using the following link:
Connect your MetaMask wallet to Westend using the following link:

<WalletConnectButton />
<br /><sub><sup>(Try reloading the page if the link does not work)</sup></sub>

<details>
<summary>Or add it manually</summary>
- Network name: Asset-Hub Westend Testnet
- Network name: Westend
- RPC URL URL: `https://westend-asset-hub-eth-rpc.polkadot.io`
- Chain ID: `420420421`
- Currency Symbol: `WND`
Expand Down
4 changes: 2 additions & 2 deletions docs/tutorial/2-deploy-your-first-contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ This guide will walk you through deploying and interacting with contracts in REM
1. Using Talisman wallet

Select the **Injected Provider - Talisman** environment in the **Deploy & Run** tab. When prompted, allow Remix to connect to Talisman.
Switch to the **Westend Asset Hub** network in Talisman. Make sure **Enable Testnets** is checked in Talisman to see the network.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is not such network like Westend in Talisman, there is only Westend Asset Hub. Do we want to rename it in substrate based Wallets? The same here: https://chainlist.org/?search=westend

Switch to the **Westend** network in Talisman. Make sure **Enable Testnets** is checked in Talisman to see the network.
Your account address and balance will appear under the **ACCOUNT** section. Remix will automatically use the network selected in Talisman.

![Deploy contract](img/dapp_deploy_with_talisman.png)
Expand All @@ -31,7 +31,7 @@ This guide will walk you through deploying and interacting with contracts in REM

Select **Injected Provider - MetaMask** environment in the **Deploy & Run** tab.
When prompted, allow REMIX to connect to MetaMask. Your account address and balance will be displayed under the **ACCOUNT** section.
Ensure you are connected to the **Asset-Hub Westend** network in MetaMask. If you are not already connected, switch to the correct network. Remix will automatically use the network selected in MetaMask.
Ensure you are connected to the **Westend** network in MetaMask. If you are not already connected, switch to the correct network. Remix will automatically use the network selected in MetaMask.

![Deploy contract](img/dapp_deploy.png)

Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/try.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ extrinsics. We’re using the `1_Storage.sol` example contract here, which you c

When registering, you will sign the transaction with a Polkadot native wallet and signature scheme, likely even a pre-existing
account. To use a Polkadot native wallet, you need to register (or "map") your account with `pallet_revive`. This is a one-time
action and is necessary to enable mapping between the Asset Hub-native and Ethereum addresses. Ethereum wallets don't require any registration.
action and is necessary to enable mapping between the Polkadot and Ethereum addresses. Ethereum wallets don't require any registration.

1. Go to Polkadot.js Apps, connect to Westend AssetHub, and go to the `Developer -> Extrinsics` tab.
[Here](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fwestend-asset-hub-rpc.polkadot.io#/extrinsics) is a direct link.
Expand Down
4 changes: 2 additions & 2 deletions src/components/WalletConnect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const projectId = 'c1455e18050fa3e0857a79ac38187ba5'

const metadata = {
name: 'contracts-doc',
description: 'Asset Hub Westend - Contracts Documentation',
description: 'Westend - Contracts Documentation',
url: 'https://reown.com/appkit', // origin must match your domain & subdomain
icons: ['https://assets.reown.com/reown-profile-pic.png'],
}
Expand All @@ -16,7 +16,7 @@ const Westend = {
chainNamespace: 'eip155',
chainId: 420420421,
caipNetworkId: 'eip155:420420421',
name: 'Westend Asset Hub',
name: 'Westend',
nativeCurrency: {
name: 'Westie',
symbol: 'WND',
Expand Down