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
14 changes: 7 additions & 7 deletions builders/build/eth-api/dev-env/thirdweb.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ npx thirdweb install

Wrap your application in the `ThirdwebProvider` component and change the `activeChain` to Moonbeam.

```jsx
```javascript
import { ThirdwebProvider } from '@thirdweb-dev/react';
import { Moonbeam } from '@thirdweb-dev/chains';

Expand All @@ -157,7 +157,7 @@ const App = () => {

To connect to your contract, use the SDK’s [`getContract`](https://portal.thirdweb.com/typescript/sdk.thirdwebsdk.getcontract){target=_blank} method.

```jsx
```javascript
import { useContract } from '@thirdweb-dev/react';

function App() {
Expand All @@ -171,7 +171,7 @@ For extension based functions, use the built-in supported hooks. There are sever

- Use the NFTs extension to access a list of NFTs owned by an address via the [`useOwnedNFTs` hook](https://portal.thirdweb.com/react/react.useownednfts){target=_blank}:

```jsx
```javascript
import { useOwnedNFTs, useContract, useAddress } from '@thirdweb-dev/react';

// Your smart contract address
Expand All @@ -186,7 +186,7 @@ For extension based functions, use the built-in supported hooks. There are sever

- Use the [`useContractRead` hook](https://portal.thirdweb.com/react/react.usecontractread){target=_blank} to call any read functions on your contract by passing in the name of the function you want to use:

```jsx
```javascript
import { useContractRead, useContract } from '@thirdweb-dev/react';

// Your smart contract address
Expand All @@ -201,7 +201,7 @@ For extension based functions, use the built-in supported hooks. There are sever

- Use the [`useContractWrite` hook](https://portal.thirdweb.com/react/react.usecontractwrite){target=_blank} to call any write functions on your contract by passing in the name of the function you want to use:

```jsx
```javascript
import {
useContractWrite,
useContract,
Expand Down Expand Up @@ -237,7 +237,7 @@ There are a couple of ways that you can create a custom [connect wallet](https:/

The following example will show you how to use the `ConnectWallet` component. To go this route, you will need to specify the supported wallets and pass them to your provider.

```jsx
```javascript
import {
ThirdwebProvider,
metamaskWallet,
Expand Down Expand Up @@ -273,7 +273,7 @@ function MyApp() {

Next, you'll need to add in a connect wallet button to prompt end-users to login with any of the above supported wallets.

```jsx
```javascript
import { ConnectWallet } from '@thirdweb-dev/react';

function App() {
Expand Down
10 changes: 5 additions & 5 deletions builders/integrations/wallets/walletconnect.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ const connect = async () => {

Now that you have the `connect` function setup, you can create a **Connect Wallet** button that will call it `onClick`. You can replace the `{/* buttons and network details will go here */}` comment in the [template](https://github.com/papermoonio/moonbeam-walletconnect-template/blob/main/src/App.js#L124){target=_blank} with the following button:

```jsx
```js
<Button onClick={connect}>Connect Wallet</Button>
```

Expand Down Expand Up @@ -202,7 +202,7 @@ const killSession = () => {

Now that you have all of the logic required to handle the disconnection, you will need the **Disconnect** button that `onClick` will call the `killSession` function. Since you only want to display the **Disconnect** button once a user is connected, you can use [conditional renderering](https://reactjs.org/docs/conditional-rendering.html){target=_blank}. Conditional rendering allows you to check against certain variables and if a condition applies you can render one element or another. In this case, if you are not fetching the initial connection and the connector exists, you can render the **Disconnect** button, otherwise render the **Connect Wallet** button. You can replace the existing `<Button>` with the following:

```jsx
```js
{connector && !fetching ? (
<OutlinedButton onClick={killSession}>Disconnect</OutlinedButton>
) : (
Expand Down Expand Up @@ -290,7 +290,7 @@ useEffect(() => {

Then to render these state variables on the page, you can include additional UI elements alongside the **Disconnect** button. Again, you can use conditional rendering to display specific details or an error message if the network is supported or not.

```jsx
```js
{connector && !fetching ? (
<LoadedData>
<Data>
Expand Down Expand Up @@ -401,7 +401,7 @@ if ((!chainId || !account || !balance) && connector.connected) {

Finally, you can display the account balance if the user is connected to a supported network. You can use the `symbol` state variable that was created earlier on in the guide to show the balance in **DEV** for Moonbase Alpha.

```jsx
```js
{supported ? (
<>
<Data>
Expand Down Expand Up @@ -439,7 +439,7 @@ const sendTransaction = async () => {

To initiate the transaction from the DApp, you will need to create a button, that `onClick` calls the `sendTransaction` function. This should only be done if the connected network is a supported network.

```jsx
```js
{supported ? (
<>
<Data>
Expand Down
2 changes: 1 addition & 1 deletion builders/pallets-precompiles/precompiles/proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ There are multiple types of proxy roles that can be delegated to accounts, where

## Interact with the Solidity Interface {: #interact-with-the-solidity-interface }

The following section will cover how to interact with the Proxy Precompile from Remix. Please note that **the Proxy Precompile can only be called from an EOA or by the [Batch Precompile](/builders/pallets-precompiles/precompiles/batch){target=_blank}.**.
The following section will cover how to interact with the Proxy Precompile from Remix. Please note that **the Proxy Precompile can only be called from an EOA or by the [Batch Precompile](/builders/pallets-precompiles/precompiles/batch){target=_blank}**.

### Checking Prerequisites {: #checking-prerequisites }

Expand Down
2 changes: 1 addition & 1 deletion builders/pallets-precompiles/precompiles/registry.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ The Registry Precompile is located at the following address:

??? code "PrecompileRegistry.sol"

```sol
```solidity
--8<-- 'code/precompiles/registry/PrecompileRegistry.sol'
```

Expand Down
2 changes: 1 addition & 1 deletion learn/platform/links.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: If you're new to Moonbeam or the Polkadot network, here are some im

# Links

- **[Substrate.dev](https://substrate.dev/){target=_blank}** - starting point for learning about [Substrate](/learn/platform/glossary/#substrate){target=_blank}, a Rust-based framework for developing blockchains. Moonbeam is developed using Substrate and uses many of the modules that come with it
- **[Substrate Docs](https://docs.substrate.io/){target=_blank}** - starting point for learning about [Substrate](/learn/platform/glossary/#substrate){target=_blank}, a Rust-based framework for developing blockchains. Moonbeam is developed using Substrate and uses many of the modules that come with it
- **[Polkadot.network](https://polkadot.network/){target=_blank}** - learn about Polkadot, including the vision behind the network and how the system works, i.e., staking, governance, etc.
- **[Polkadot-JS Apps](https://polkadot.js.org/apps){target=_blank}** - a web-based interface for interacting with Substrate based nodes, including Moonbeam
- **[Solidity Docs](https://solidity.readthedocs.io/){target=_blank}** - Solidity is the main smart contract programming language supported by Ethereum and Moonbeam. The Solidity docs site is very comprehensive
Expand Down
4 changes: 2 additions & 2 deletions learn/platform/networks/moonbase.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ In order to collect as much feedback as possible and provide fast issue resoluti
Moonbase Alpha has the following configuration:

- Runs as a parachain connected to a relay chain
- Has an active set of {{ networks.moonbase.staking.max_candidates }} collator nodes, including some run by PureStake
- The relay chain hosts validators run by PureStake to finalize relay chain blocks. One of them is selected to finalize each block collated by Moonbeam's collators. This setup provides room to expand to a two-parachain configuration in the future
- Has an active set of {{ networks.moonbase.staking.max_candidates }} collator nodes run by the community
- The relay chain hosts validators to finalize relay chain blocks. One of them is selected to finalize each block collated by Moonbeam's collators. This setup provides room to expand to a two-parachain configuration in the future
- Has infrastructure providers that provide [API endpoints](/builders/get-started/endpoints/){target=_blank} to connect to the network. Projects can also [run their own node](/node-operators/networks/run-a-node/){target=_blank} to have access to their own private endpoints

![TestNet Diagram](/images/learn/platform/networks/moonbase-diagram-v7.png)
Expand Down
2 changes: 1 addition & 1 deletion learn/platform/networks/moonbeam.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,5 @@ The Moonriver network is a fully decentralized Delegated Proof of Stake network

## Limitations {: #limitations }

Some [precompiles](https://docs.klaytn.com/smart-contract/precompiled-contracts){target=_blank} are yet to be included. You can check a list of supported precompiles on the [Canonical Contract page](/builders/pallets-precompiles/precompiles/){target=_blank}. However, all built-in functions are available.
Some [precompiles](https://docs.klaytn.com/smart-contract/precompiled-contracts){target=_blank} are yet to be included. You can check a list of supported precompiles on the [Solidity Precompiles page](/builders/pallets-precompiles/precompiles/overview/){target=_blank}. However, all built-in functions are available.

9 changes: 1 addition & 8 deletions learn/platform/networks/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ An overview of our parachain deployments are as follows:

- Moonbeam: deployment on Polkadot (_December 2021_)
- Moonriver: deployment on Kusama (_June 2021_)
- Moonrock: deployment on the Rococo TestNet (_May 2021_)
- Moonbase Alpha: PureStake hosted parachain TestNet (_September 2020_)
- Moonbase Alpha: Parachain TestNet for Moonbeam and Moonriver (_September 2020_)

This strategy allows us to de-risk software upgrades to Moonbeam on the Polkadot MainNet while still maintaining a reasonable update velocity.

Expand All @@ -32,12 +31,6 @@ Moonriver will offer parachain-related functionalities such as [XCMP](https://wi

[Learn more about Moonriver](/learn/platform/networks/moonriver/).

## Moonrock {: #moonrock }

We decided not to participate in the first parachain deployments to Rococo because we have been running our own parachain/relay chain setup since we launched our TestNet in September 2020.

However, Moonrock was deployed to Rococo for the first time in May 2021.

## Moonbase Alpha {: #moonbase-alpha }

This TestNet is a network hosted by PureStake. It features a parachain/relay chain scheme. The goal is to allow developers to test the Ethereum compatibility features of Moonbeam in a shared parachain environment without needing to run their own nodes or network.
Expand Down
4 changes: 2 additions & 2 deletions learn/platform/tokens.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ This token is central to the design of Moonbeam and cannot be removed without sa

## Glimmer Token {: #glimmer-token }

In the Moonbeam deployment on Polkadot MainNet, this token is called Glimmer, as in, “that smart contract call will cost 3 Glimmer.” The token symbol is GLMR.
In the Moonbeam deployment on Polkadot MainNet, this token is called Glimmer, as in, “that smart contract call will cost 0.3 Glimmer.” The token symbol is GLMR.

You can find more information about Glimmer on the [Moonbeam Foundation](https://moonbeam.foundation/glimmer-token/) website.

## Moonriver Token {: #moonriver-token }

In the Moonbeam deployment on Kusama (called Moonriver), this token is called Moonriver, as in, “that smart contract call will cost 3 Moonriver.” The token symbol will be MOVR.
In the Moonbeam deployment on Kusama (called Moonriver), this token is called Moonriver, as in, “that smart contract call will cost 0.003 Moonriver.” The token symbol will be MOVR.

You can find more information about Moonriver on the [Moonbeam Foundation](https://moonbeam.foundation/moonriver-token/) website.

Expand Down
26 changes: 13 additions & 13 deletions variables.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
networks:
development:
build_tag: v0.32.1
build_tag: v0.32.2
tracing_tag: purestake/moonbeam-tracing:v0.32.1-2401-latest
rpc_url: http://127.0.0.1:9944
wss_url: ws://127.0.0.1:9944
Expand All @@ -16,15 +16,15 @@ networks:
chain_spec: alphanet
block_explorer: https://moonbase.moonscan.io/
spec_version: runtime-2403
parachain_release_tag: v0.32.1 # must be in this exact format for links to work
parachain_sha256sum: c065c2b892d09a19e053b20b168536e213d668ec17daab06ad2e9bfc29bbe97a
parachain_release_tag: v0.32.2 # must be in this exact format for links to work
parachain_sha256sum: 5e9ff749cbee2c2753d9cf35bcf44d17fff9cddfe94966c6551a39ff085cdfb4
tracing_tag: purestake/moonbeam-tracing:v0.32.1-2401-latest
gas_block: 15M
gas_tx: 12.995M
node_directory: /var/lib/alphanet-data
node_db_loc: /chains/moonbase_alpha/db
binary_name: moonbeam
min_gas_price: 1
min_gas_price: 0.125
block_time: 12
website_faucet_amount: 1.1 DEV tokens
chaindrop_faucet_amount: 0.1 DEV tokens
Expand Down Expand Up @@ -282,7 +282,7 @@ networks:
min_can_stk: 500
min_can_stk_wei: 500000000000000000000
collator_map_bond: 100
max_candidates: 37
max_candidates: 36
round_blocks: 600
round_hours: 2
min_del_stake: 1
Expand Down Expand Up @@ -388,14 +388,14 @@ networks:
chain_id: 1285
hex_chain_id: '0x505'
node_directory: /var/lib/moonriver-data
parachain_release_tag: v0.32.1
parachain_sha256sum: c065c2b892d09a19e053b20b168536e213d668ec17daab06ad2e9bfc29bbe97a
parachain_release_tag: v0.32.2
parachain_sha256sum: 5e9ff749cbee2c2753d9cf35bcf44d17fff9cddfe94966c6551a39ff085cdfb4
tracing_tag: purestake/moonbeam-tracing:v0.32.1-2401-latest
chain_spec: moonriver
block_explorer: https://moonriver.moonscan.io/
spec_version: runtime-2403
binary_name: moonbeam
min_gas_price: 1
min_gas_price: 1.25
block_time: 12
gas_block: 15M
gas_tx: 12.995M
Expand Down Expand Up @@ -727,14 +727,14 @@ networks:
chain_id: 1284
hex_chain_id: '0x504'
node_directory: /var/lib/moonbeam-data
parachain_release_tag: v0.32.1
parachain_sha256sum: c065c2b892d09a19e053b20b168536e213d668ec17daab06ad2e9bfc29bbe97a
parachain_release_tag: v0.32.2
parachain_sha256sum: 5e9ff749cbee2c2753d9cf35bcf44d17fff9cddfe94966c6551a39ff085cdfb4
tracing_tag: purestake/moonbeam-tracing:v0.32.1-2401-latest
chain_spec: moonbeam
block_explorer: https://moonscan.io
spec_version: runtime-2403
binary_name: moonbeam
min_gas_price: 100
min_gas_price: 125
block_time: 12
gas_block: 15M
gas_tx: 12.995M
Expand Down Expand Up @@ -932,7 +932,7 @@ networks:
min_can_stk: 2000000
min_can_stk_wei: 2000000000000000000000000
collator_map_bond: 10000
max_candidates: 72
max_candidates: 76
round_blocks: 1800
round_hours: 6
min_del_stake: 50
Expand Down Expand Up @@ -1040,7 +1040,7 @@ networks:
metadata_byte_deposit: .01
orbiter:
max_orbiters_per_collator: 6
max_collators: 4
max_collators: 5
active:
rounds: 1
hours: 6
Expand Down