Skip to content

Rename Asset Hub to Polkadot / Westend Hub #572

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

Merged
merged 9 commits into from
May 13, 2025
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
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ const wallet = new ethers.Wallet('INSERT_PRIVATE_KEY', provider);
const ContractFactory = new ethers.ContractFactory(
contractABI,
contractBytecode,
wallet
wallet,
);
const contract = await ContractFactory.deploy(...constructorArgs);
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ async function main() {

console.log(`Token: ${name} (${symbol})`);
console.log(
`Total Supply: ${hre.ethers.formatUnits(totalSupply, 18)} tokens`
`Total Supply: ${hre.ethers.formatUnits(totalSupply, 18)} tokens`,
);
console.log(
`Deployer Balance: ${hre.ethers.formatUnits(balance, 18)} tokens`
`Deployer Balance: ${hre.ethers.formatUnits(balance, 18)} tokens`,
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const main = async () => {
const latestBlock = await provider.getBlockNumber();
console.log(`Latest block: ${latestBlock}`);
} catch (error) {
console.error('Error connecting to Asset Hub: ' + error.message);
console.error('Error connecting to Westend Hub: ' + error.message);
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const main = async () => {
const latestBlock = await web3.eth.getBlockNumber();
console.log('Last block: ' + latestBlock);
} catch (error) {
console.error('Error connecting to Asset Hub: ' + error.message);
console.error('Error connecting to Westend Hub: ' + error.message);
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { http } from 'viem';

export const TRANSPORT = http('INSERT_RPC_URL');

// Configure the Asset Hub chain
export const ASSET_HUB = {
// Configure the Polkadot Hub chain
export const POLKADOT_HUB = {
id: INSERT_CHAIN_ID,
name: 'INSERT_CHAIN_NAME',
network: 'INSERT_NETWORK_NAME',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createPublicClient, createWalletClient, http } from 'viem';

const transport = http('INSERT_RPC_URL');

// Configure the Asset Hub chain
// Configure the Polkadot Hub chain
const assetHub = {
id: INSERT_CHAIN_ID,
name: 'INSERT_CHAIN_NAME',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { createWalletClient, http } from 'viem';

const transport = http('INSERT_RPC_URL');

// Configure the Asset Hub chain
// Configure the Polkadot Hub chain
const assetHub = {
id: INSERT_CHAIN_ID,
name: 'INSERT_CHAIN_NAME',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createPublicClient, http } from 'viem';

const transport = http('https://westend-asset-hub-eth-rpc.polkadot.io');

// Configure the Asset Hub chain
// Configure the Polkadot Hub chain
const assetHub = {
id: 420420421,
name: 'Westend Asset Hub',
Expand Down Expand Up @@ -30,7 +30,7 @@ const main = async () => {
const block = await publicClient.getBlock();
console.log('Last block: ' + block.number.toString());
} catch (error: unknown) {
console.error('Error connecting to Asset Hub: ' + error);
console.error('Error connecting to Westend Hub: ' + error);
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function Home() {

return (
<main>
<h1>Wagmi - Asset Hub Smart Contracts</h1>
<h1>Wagmi - Polkadot Hub Smart Contracts</h1>
<ConnectWallet />
{isConnected ? <BlockchainInfo /> : <span>Connect your wallet</span>}
{isConnected ? <StorageContract /> : <span>Connect your wallet</span>}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { http, createConfig } from 'wagmi';

// Configure the Asset Hub chain
// Configure the Polkadot Hub chain
const assetHub = {
id: 420420421,
name: 'westend-asset-hub',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { http, createConfig } from 'wagmi'

// Configure the Asset Hub chain
// Configure the Polkadot Hub chain
const assetHub = {
id: INSERT_CHAIN_ID,
name: 'INSERT_CHAIN_NAME',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def main():
latest_block = web3.eth.block_number
print('Last block: ' + str(latest_block))
except Exception as error:
print('Error connecting to Asset Hub: ' + str(error))
print('Error connecting to Westend Hub: ' + str(error))

if __name__ == "__main__":
main()
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[
{
"title": "Choose a Smart Contract Platform",
"content": "Select the platform that best fits your project requirements and development expertise: <br><br> - [**PolkaVM (Asset Hub)**](/develop/smart-contracts/overview#native-smart-contracts){target=_blank} - Native smart contracts on Polkadot's system parachain <br> - [**EVM (Parachain-based)**](/develop/smart-contracts/overview#parachain-contracts){target=_blank} - Ethereum Virtual Machine compatibility on parachains <br> - [**Wasm (ink!)**](/develop/smart-contracts/overview#wasm-ink){target=_blank} - WebAssembly contracts using Rust and ink!",
"content": "Select the platform that best fits your project requirements and development expertise: <br><br> - [**PolkaVM**](/develop/smart-contracts/overview#native-smart-contracts){target=_blank} - Native smart contracts on Polkadot Hub <br> - [**EVM (Parachain-based)**](/develop/smart-contracts/overview#parachain-contracts){target=_blank} - Ethereum Virtual Machine compatibility on parachains <br> - [**Wasm (ink!)**](/develop/smart-contracts/overview#wasm-ink){target=_blank} - WebAssembly contracts using Rust and ink!",
"icon": ":fontawesome-solid-1:"
},
{
"title": "Get Network Configuration Details",
"content": "Configure your development environment with the appropriate network settings for your chosen platform: <br><br> - **PolkaVM** - [Connect to Asset Hub](/develop/smart-contracts/connect-to-asset-hub/){target=_blank} <br> - **EVM** - [Moonbeam Documentation](https://docs.moonbeam.network/){target=_blank}, [Astar Documentation](https://docs.astar.network/){target=_blank}, [Acala Documentation](https://wiki.acala.network/){target=_blank} <br> - **Wasm (ink!)** - depends on those parachains that implement `pallet-contracts`, for more information check the [ink! documentation](https://use.ink/how-it-works#why-include-pallet-contracts-on-a-parachain){target=_blank}",
"content": "Configure your development environment with the appropriate network settings for your chosen platform: <br><br> - **PolkaVM** - [Connect to Polkadot](/develop/smart-contracts/connect-to-polkadot/){target=_blank} <br> - **EVM** - [Moonbeam Documentation](https://docs.moonbeam.network/){target=_blank}, [Astar Documentation](https://docs.astar.network/){target=_blank}, [Acala Documentation](https://wiki.acala.network/){target=_blank} <br> - **Wasm (ink!)** - depends on those parachains that implement `pallet-contracts`, for more information check the [ink! documentation](https://use.ink/how-it-works#why-include-pallet-contracts-on-a-parachain){target=_blank}",
"icon": ":fontawesome-solid-2:"
},
{
Expand Down
13 changes: 7 additions & 6 deletions develop/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ template: index-page.html
This guide is a starting point for developers who wish to build in the Polkadot ecosystem. To get the most from this section:

1. Identify your development pathway:
- [**Parachain Developers**](#parachain-developers) - build, deploy, and maintain custom parachains with the Polkadot SDK
- [**Smart Contract Developers**](#smart-contract-developers) - leverage smart contracts and execute custom logic over existing chains to streamline your development process
- [**Application Developers**](#application-developers) - leverage Polkadot's underlying protocol features to create solutions for your users to interact with the ecosystem
- [**Parachain developers**](#parachain-developers) - build, deploy, and maintain custom parachains with the Polkadot SDK
- [**Smart contract developers**](#smart-contract-developers) - leverage smart contracts and execute custom logic over existing chains to streamline your development process
- [**Application developers**](#application-developers) - leverage Polkadot's underlying protocol features to create solutions for your users to interact with the ecosystem
2. Use the sections under your pathway as follows:
- **Learn** - content to deepen your knowledge and understanding
- **Build** - connect to goal-oriented guides and step-by-step tutorials
Expand Down Expand Up @@ -81,12 +81,13 @@ The Polkadot smart contract ecosystem is in active development. Please expect fr
- <h3>:octicons-book-16:{ .lg .middle } Learn</h3>
<hr>
- [Overview - Smart Contracts on Polkadot](/develop/smart-contracts/overview/){target=\_blank}
- [EVM-Compatible Parachains](/develop/smart-contracts/evm/parachain-contracts/#evm-compatible-parachains){target=\_blank}
- [Smart Contract Basics](/polkadot-protocol/smart-contract-basics/){target=\_blank}

- <h3>:octicons-rocket-16:{.lg .middle} Build</h3>
<hr>
- [Deploy a Smart Contract to Asset Hub](/develop/smart-contracts/evm/native-evm-contracts/#deploy-a-smart-contract-to-asset-hub){target=\_blank}
- [Deploy a Wasm Smart Contract](/develop/smart-contracts/wasm-ink/){target=\_blank}
- [Launch Your First Smart Contract Project](/tutorials/smart-contracts/launch-your-first-project/){target=\_blank}
- [Deploy an NFT](/tutorials/smart-contracts/deploy-nft/){target=\_blank}
- [Deploy an ERC-20](/tutorials/smart-contracts/deploy-erc20/){target=\_blank}

- <h3>:octicons-tools-16:{.lg .middle} Tools</h3>
<hr>
Expand Down
2 changes: 1 addition & 1 deletion develop/smart-contracts/.pages
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ title: Smart Contracts
nav:
- index.md
- 'Overview': overview.md
- 'Connect to Asset Hub': connect-to-asset-hub.md
- 'Connect to Polkadot': connect-to-polkadot.md
- 'Block Explorers': block-explorers.md
- dev-environments
- libraries
Expand Down
Original file line number Diff line number Diff line change
@@ -1,64 +1,64 @@
---
title: Connect to Asset Hub
description: Explore how to connect to different Asset Hub networks, configure your wallet, and obtain test tokens for developing and testing smart contracts.
title: Connect to Polkadot
description: Explore how to connect to Polkadot Hub, configure your wallet, and obtain test tokens for developing and testing smart contracts.
---

# Connect to Asset Hub
# Connect to Polkadot

<div class="button-wrapper">
<a href="#" class="md-button connectMetaMask" value="westendAssetHub">Connect to Westend Asset Hub</a>
<a href="#" class="md-button connectMetaMask" value="westendAssetHub">Connect to Westend Hub</a>
</div>

## Networks
## Networks Details

Developers can leverage Asset Hub across diverse networks, from TestNets to MainNet. This section outlines the network specifications and connection details for each environment.
Developers can leverage smart contracts across diverse networks, from TestNets to MainNet. This section outlines the network specifications and connection details for each environment.

=== "Westend Asset Hub"
=== "Westend Hub"

Network name
```
Asset-Hub Westend TestNet
```text
Westend Asset Hub
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not sure what sparked this change, but if making this change here we should probably be consistent, like do we need to also make this change in the MetaMask section of this page where it still uses Asset-Hub Westend TestNet?

Copy link
Collaborator

Choose a reason for hiding this comment

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

This naming situation should probably be double-checked

```

---

Currency symbol
```
```text
WND
```

---

Chain ID
```
```text
420420421
```

---

RPC URL
```
https://westend-asset-hub-eth-rpc.polkadot.io
```text
https://westend-asset-hub-rpc.polkadot.io
```

---

Block explorer URL
```
```text
https://assethub-westend.subscan.io
```

## Connect your Wallet
## Connect Your Wallet

### Metamask
### MetaMask

[MetaMask](https://metamask.io/){target=\_blank} is a popular wallet for interacting with Ethereum-compatible chains. It allows users to connect to test networks that support Ethereum-based smart contracts. However, it's important to emphasize that MetaMask primarily facilitates interactions with smart contracts, giving users access to various chain functionalities.

To get started with MetaMask, you need to install the [MetaMask extension](https://metamask.io/download/){target=\_blank} and add it to the browser. Once you install MetaMask, you can set up a new wallet and securely store your seed phrase. This phrase is crucial for recovery in case you lose access.

For example, to connect to the Westend Asset Hub TestNet via MetaMask, you need to follow these steps:
For example, to connect to the Westend Hub TestNet via MetaMask, you need to follow these steps:

1. Open the MetaMask extension and click on the network icon to switch to the Asset Hub Westend TestNet
1. Open the MetaMask extension and click on the network icon to switch to the Westend Hub TestNet

![](/images/develop/smart-contracts/connect-to-asset-hub/connect-to-asset-hub-1.webp){: .browser-extension}

Expand All @@ -74,11 +74,11 @@ For example, to connect to the Westend Asset Hub TestNet via MetaMask, you need

![](/images/develop/smart-contracts/connect-to-asset-hub/connect-to-asset-hub-4.webp){: .browser-extension}

The steps in the preceding section can be used to connect to any Asset Hub chain by modifying the network specification and endpoint parameters.
The steps in the preceding section can be used to connect to any chain by modifying the network specification and endpoint parameters.

### Talisman

[Talisman](https://talisman.xyz/){target=\_blank} is a specialized wallet for the Polkadot ecosystem that supports both Substrate and EVM accounts, making it an excellent choice for Asset Hub interactions. Talisman offers a more integrated experience for Polkadot-based chains while still providing Ethereum compatibility.
[Talisman](https://talisman.xyz/){target=\_blank} is a specialized wallet for the Polkadot ecosystem that supports both Substrate and EVM accounts, making it an excellent choice for Polkadot Hub interactions. Talisman offers a more integrated experience for Polkadot-based chains while still providing Ethereum compatibility.

To use Talisman with Polkadot Hub:

Expand All @@ -95,19 +95,19 @@ After selecting the network, Talisman will automatically configure the necessary

## Test Tokens

You will need testnet tokens to perform transactions and engage with smart contracts on any Asset Hub chain. Here's how to obtain Westend Asset Hub (WND) tokens for testing purposes:
You will need testnet tokens to perform transactions and engage with smart contracts on any chain. Here's how to obtain Westend (WND) tokens for testing purposes:

1. Navigate to the [Polkadot Faucet](https://faucet.polkadot.io){target=\_blank}. If the desired network is not already selected, choose it from the Network drop-down

2. Copy your MetaMask address linked to Westend Asset Hub and paste it into the designated field
2. Copy your MetaMask address linked to Westend and paste it into the designated field

![](/images/develop/smart-contracts/connect-to-asset-hub/connect-to-asset-hub-5.webp)

3. Click the **Get Some WND** button to request free test WND tokens. These tokens will be sent to your MetaMask wallet shortly

![](/images/develop/smart-contracts/connect-to-asset-hub/connect-to-asset-hub-6.webp)

Now that you have obtained WND tokens in your MetaMask wallet, you’re ready to deploy and interact with smart contracts on the Westend Asset Hub! These tokens will allow you to pay for gas fees when executing transactions, deploying contracts, and testing your dApp functionality in a secure testnet environment.
Now that you have obtained WND tokens in your MetaMask wallet, you’re ready to deploy and interact with smart contracts on Westend Hub! These tokens will allow you to pay for gas fees when executing transactions, deploying contracts, and testing your dApp functionality in a secure testnet environment.

## Where to Go Next

Expand All @@ -119,15 +119,15 @@ For your next steps, explore the various smart contract guides demonstrating how

---

Explore the smart contract development and deployment process on Asset Hub using the Remix IDE.
Explore the smart contract development and deployment process on Polkadot Hub using the Remix IDE.

[:octicons-arrow-right-24: Build with Remix IDE](/develop/smart-contracts/dev-environments/remix/)

- <span class="badge guide">Guide</span> __Interact with the blockchain with viem__

---

Use viem for interacting with Ethereum-compatible chains, to deploy and interact with smart contracts on Asset Hub.
Use viem for interacting with Ethereum-compatible chains, to deploy and interact with smart contracts on Polkadot Hub.

[:octicons-arrow-right-24: Build with viem](/develop/smart-contracts/libraries/viem/)

Expand Down
Loading