Skip to content

Commit

Permalink
Merge pull request #1031 from oasisprotocol/rube/1027-add-ports-for-l…
Browse files Browse the repository at this point in the history
…ocalnet-explorer

docs: add ports for local explorer
  • Loading branch information
rube-de authored Nov 29, 2024
2 parents 8740906 + 43a6102 commit 6870acd
Showing 1 changed file with 22 additions and 13 deletions.
35 changes: 22 additions & 13 deletions docs/dapp/tools/localnet.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ To run the image, execute:
<TabItem value="Sapphire">

```sh
docker run -it -p8544-8546:8544-8546 ghcr.io/oasisprotocol/sapphire-localnet
docker run -it -p8544-8548:8544-8548 ghcr.io/oasisprotocol/sapphire-localnet
```

</TabItem>
<TabItem value="Emerald">

```sh
docker run -it -p8544-8546:8544-8546 ghcr.io/oasisprotocol/emerald-localnet
docker run -it -p8544-8548:8544-8548 ghcr.io/oasisprotocol/emerald-localnet
```

</TabItem>
Expand All @@ -51,16 +51,19 @@ docker run -it -p8544-8546:8544-8546 ghcr.io/oasisprotocol/emerald-localnet
After a while, running the `sapphire-localnet` will show you something like:

```console
sapphire-localnet 2024-10-03-gitbad082f (oasis-core: 24.2, sapphire-paratime: 0.8.2, oasis-web3-gateway: 5.1.0)
sapphire-localnet 2024-11-22-git502678f (oasis-core: 24.3, sapphire-paratime: 0.9.0-testnet, oasis-web3-gateway: 5.1.0)

* No ROFLs detected.
* Starting oasis-net-runner with sapphire...
* Waiting for Postgres to start.
* Waiting for Oasis node to start........
* Waiting for Oasis node to start.......
* Waiting for Envoy proxy to start.
* Starting oasis-web3-gateway...
* Bootstrapping network (this might take a minute)...
* Bootstrapping network (this might take a minute)....
* Waiting for key manager......
* Creating database 'nexus'
* Waiting for Nexus to start.
* Waiting for Explorer to start.....
* Populating accounts...

Available Accounts
Expand All @@ -81,14 +84,16 @@ Private Keys

HD Wallet
==================
Mnemonic: test test test test test test test test test test test junk
Base HD Path: m/44'/60'/0'/0/%d
Mnemonic: test test test test test test test test test test test junk
Base HD Path: m/44'/60'/0'/0/%d

WARNING: The chain is running in ephemeral mode. State will be lost after restart!

* GRPC listening on http://localhost:8544.
* Web3 RPC listening on http://localhost:8545 and ws://localhost:8546. Chain ID: 0x5afd.
* Container start-up took 313 seconds, node log level is set to warn.
* Nexus API listening on http://localhost:8547.
* Localnet Explorer available at http://localhost:8548.
* Container start-up took 73 seconds, node log level is set to warn.
```

Those familiar with local dApp environments will find the output above similar
Expand All @@ -100,10 +105,14 @@ available for you to use:
- `http://localhost:8545`
- `ws://localhost:8546`

Additionally, the [Oasis GRPC][oasis-rpc] endpoint is exposed on:
The [Oasis GRPC][oasis-rpc] endpoint is exposed on:

- `http://localhost:8544`

The local explorer you can visit at:

- [http://localhost:8548](http://localhost:8548)

[oasis-rpc]: https://github.com/oasisprotocol/oasis-core/blob/master/docs/oasis-node/rpc.md

By default, the Localnet docker image will populate the first five accounts
Expand All @@ -125,8 +134,8 @@ docker run -it -p8544-8546:8544-8546 ghcr.io/oasisprotocol/sapphire-localnet -to
<TabItem value="Emerald">

```sh
docker run -it -p8544-8546:8544-8546 ghcr.io/oasisprotocol/emerald-localnet -to "bench remain brave curve frozen verify dream margin alarm world repair innocent" -n3
docker run -it -p8544-8546:8544-8546 ghcr.io/oasisprotocol/emerald-localnet -to "0x75eCF0d4496C2f10e4e9aF3D4d174576Ee9010E2,0xbDA5747bFD65F08deb54cb465eB87D40e51B197E"
docker run -it -p8544-8548:8544-8548 ghcr.io/oasisprotocol/emerald-localnet -to "bench remain brave curve frozen verify dream margin alarm world repair innocent" -n3
docker run -it -p8544-8548:8544-8548 ghcr.io/oasisprotocol/emerald-localnet -to "0x75eCF0d4496C2f10e4e9aF3D4d174576Ee9010E2,0xbDA5747bFD65F08deb54cb465eB87D40e51B197E"
```

</TabItem>
Expand All @@ -141,14 +150,14 @@ force the docker image to use the `linux/x86_64` platform, like this:
<TabItem value="Sapphire">

```sh
docker run -it -p8544-8546:8544-8546 --platform linux/x86_64 ghcr.io/oasisprotocol/sapphire-localnet
docker run -it -p8544-8548:8544-8548 --platform linux/x86_64 ghcr.io/oasisprotocol/sapphire-localnet
```

</TabItem>
<TabItem value="Emerald">

```sh
docker run -it -p8544-8546:8544-8546 --platform linux/x86_64 ghcr.io/oasisprotocol/emerald-localnet
docker run -it -p8544-8548:8544-8548 --platform linux/x86_64 ghcr.io/oasisprotocol/emerald-localnet
```

</TabItem>
Expand Down

0 comments on commit 6870acd

Please sign in to comment.