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
49 changes: 0 additions & 49 deletions docs/michelson/network-information.md

This file was deleted.

95 changes: 95 additions & 0 deletions docs/michelson/network-information.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
---
title: Network information (Michelson)
---

import InlineCopy from '@site/src/components/InlineCopy';
import Link from '@docusaurus/Link';

This page contains information for connecting to the public Etherlink<!--TX--> networks via the Michelson interface.
For using the networks via the EVM interface, see [EVM network information](/evm/get-started/network-information).

:::caution[Experimental]
The public Michelson endpoints below are experimental and in the process of being rolled out; they may not be reachable yet.
:::

For current and historical status information for Etherlink<!--TX-->, see https://status.etherlink.com.

:::note

Instead of the public Michelson endpoints below serving [Michelson RPCs](/michelson/developing/rpc-reference) for Mainnet or Shadownet,
you may also [run your own EVM node](/network/evm-nodes), to get rid of any possible rate limitation.
In that case, the URL of your endpoint is `<your-evm-node-url>/tezlink` (the path prefix is a legacy name and may be renamed to `/michelson` in a future version).

:::

## Etherlink<!--TX--> Mainnet

<table class="customTableContainer">
<thead>
<tr>
<th>Network parameter</th>
<th style={{ width: '100%' }}>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>Network identifier</td>
<td><code>NetXohUVN5QWR4f</code></td>
</tr>
<tr>
<td>Endpoint</td>
<td><InlineCopy code="https://michelson.etherlink.mainnet.octez.io" /></td>
</tr>
<tr>
<td>Indexer</td>
<td>Not yet available</td>
</tr>
<tr>
<td>Bridge</td>
<td>Native tez only (see <Link to="/michelson/bridging">Bridging</Link>); for FA tokens, <Link to="/evm/bridging">bridge to the EVM interface</Link> and use them via <Link to="/michelson/nac-usage">NAC</Link></td>
</tr>
</tbody>
</table>

## Etherlink<!--TX--> Shadownet Testnet

<table class="customTableContainer">
<thead>
<tr>
<th>Network parameter</th>
<th style={{ width: '100%' }}>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>Network identifier</td>
<td><code>NetXtLrzvQDobza</code></td>
</tr>
<tr>
<td>Endpoint</td>
<td><InlineCopy code="https://michelson.etherlink.shadownet.octez.io" /></td>
</tr>
<tr>
<td>Indexer</td>
<td>Not yet available</td>
</tr>
<tr>
<td>Faucet</td>
<td>Not yet available; in the meantime, <Link to="/evm/get-started/getting-testnet-tokens">get EVM test tokens</Link></td>
</tr>
<tr>
<td>Bridge</td>
<td>Native tez only (see <Link to="/michelson/bridging">Bridging</Link>); for FA tokens, <Link to="/evm/bridging">bridge to the EVM interface</Link> and use them via <Link to="/michelson/nac-usage">NAC</Link></td>
</tr>
</tbody>
</table>

## Tezos X Previewnet Testnet

See [Previewnet](/testing/previewnet) page.

## Quick connectivity check

``` bash
curl -s <ENDPOINT>/chains/main/chain_id
```
1 change: 1 addition & 0 deletions src/components/InlineCopy/styles.module.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.container {
display: inline;
position: unset;
overflow-wrap: anywhere;
}

.link:hover {
Expand Down
8 changes: 7 additions & 1 deletion test/external-link-check.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,13 @@ const regexesToIgnore = [
const getAst = async (filePath) => {
const fileContents = await fs.promises.readFile(filePath, 'utf8');
if (path.extname(filePath) === '.mdx') {
return fromMarkdown(fileContents, {
// The raw micromark MDX parser rejects HTML comments (`<!-- ... -->`),
// which we use as invisible rebranding markers in .mdx files. Docusaurus's
// build pipeline strips them; the standalone parser does not, so strip them
// here before parsing. They never contain links to check.
// See https://github.com/micromark/micromark-extension-mdx-jsx#unexpected-character-at-expected-expect
const withoutHtmlComments = fileContents.replace(/<!--[\s\S]*?-->/g, '');
return fromMarkdown(withoutHtmlComments, {
extensions: [mdxjs()],
mdastExtensions: [mdxFromMarkdown()]
});
Expand Down
16 changes: 12 additions & 4 deletions test/playwright/site.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ test('has title', async ({ page }) => {

test('navigation', async ({ page }) => {
await page.goto('https://docs.etherlink.com/');
await page.getByRole('button', { name: 'Developing' }).click();
// "Developing" is nested under "EVM Interface", so expand that first.
await page.getByRole('button', { name: 'EVM Interface' }).click();
await page.getByRole('button', { name: 'Developing' }).first().click();
await expect(page.getByText('Ethereum endpoint support')).toBeVisible();
await page.getByRole('button', { name: 'Governance' }).click();
await expect(page.getByText('How is Etherlink governed?')).toBeVisible();
Expand All @@ -25,7 +27,13 @@ test('search', async ({ page }) => {

test('feedback form', async ({ page }) => {
await page.goto('https://docs.etherlink.com/');
await expect(page.locator('feedback-button#default a')).toBeVisible();
await page.locator('feedback-button#default a').click();
await expect(page.getByText('Share your feedback')).toBeVisible();
// The PushFeedback widget renders a <feedback-button> web component (no inner
// <a>) that hydrates asynchronously; a click only opens the modal once its
// handler is attached, so retry the click until the modal appears.
const button = page.locator('feedback-button#default');
await button.waitFor({ state: 'attached' });
await expect(async () => {
await button.click({ force: true });
await expect(page.getByText('Share your feedback')).toBeVisible({ timeout: 2000 });
}).toPass({ timeout: 20000 });
});
Loading