From 35746ef008266bbf6ee97fbc37833811dab43bdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matev=C5=BE=20Jekovec?= Date: Thu, 16 Nov 2023 11:15:24 +0100 Subject: [PATCH] docs: Make serverdir/node path consistent with other docs --- docs/network.md | 4 +++- examples/network-set-rpc/00-list.out | 10 +++++----- examples/network-set-rpc/02-list.out | 10 +++++----- examples/network-set-rpc/config/cli.toml | 2 +- examples/network/00-list.out | 10 +++++----- examples/network/02-list.out | 8 ++++---- examples/network/04-list.out | 8 ++++---- examples/network/add-unix.in.static | 2 +- examples/network/config/cli.toml | 2 +- 9 files changed, 29 insertions(+), 27 deletions(-) diff --git a/docs/network.md b/docs/network.md index 19345b05..dc90aafa 100644 --- a/docs/network.md +++ b/docs/network.md @@ -34,6 +34,8 @@ the current Mainnet and Testnet endpoints. Invoke `network add ` to add a new endpoint with a specific chain domain separation context and a gRPC address. +This command is useful, if you want to connect to your own instance of the Oasis +node instead of relying on the public gRPC endpoints. For TCP/IP endpoints, run: @@ -50,7 +52,7 @@ For Unix sockets, use: ## Add a Local Network {#add-local} `network add-local ` command can be used if you are -running a local instance of `oasis-node`. In this case, Oasis CLI will +running `oasis-node` on your local machine. In this case, Oasis CLI will autodetect the native token symbol and decimal places, the chain domain separation context and registered ParaTimes. diff --git a/examples/network-set-rpc/00-list.out b/examples/network-set-rpc/00-list.out index 7ce325a7..90c3c23c 100644 --- a/examples/network-set-rpc/00-list.out +++ b/examples/network-set-rpc/00-list.out @@ -1,5 +1,5 @@ -NAME CHAIN CONTEXT RPC -mainnet (*) b11b369e0da5bb230b220127f5e7b242d385ef8c6f54906243f30af63c815535 grpc.oasis.dev:443 -mainnet_local b11b369e0da5bb230b220127f5e7b242d385ef8c6f54906243f30af63c815535 unix:/serverdir_mainnet/internal.sock -testnet 0b91b8e4e44b2003a7c5e23ddadb5e14ef5345c0ebcb3ddcae07fa2f244cab76 testnet.grpc.oasis.dev:443 -testnet_alt 50304f98ddb656620ea817cc1446c401752a05a249b36c9b90dba4616829977a testnet2.grpc.oasis.dev:443 +NAME CHAIN CONTEXT RPC +mainnet (*) b11b369e0da5bb230b220127f5e7b242d385ef8c6f54906243f30af63c815535 grpc.oasis.dev:443 +mainnet_local b11b369e0da5bb230b220127f5e7b242d385ef8c6f54906243f30af63c815535 unix:/serverdir_mainnet/node/internal.sock +testnet 0b91b8e4e44b2003a7c5e23ddadb5e14ef5345c0ebcb3ddcae07fa2f244cab76 testnet.grpc.oasis.dev:443 +testnet_alt 50304f98ddb656620ea817cc1446c401752a05a249b36c9b90dba4616829977a testnet2.grpc.oasis.dev:443 diff --git a/examples/network-set-rpc/02-list.out b/examples/network-set-rpc/02-list.out index f26ea960..f3b45b7c 100644 --- a/examples/network-set-rpc/02-list.out +++ b/examples/network-set-rpc/02-list.out @@ -1,5 +1,5 @@ -NAME CHAIN CONTEXT RPC -mainnet (*) b11b369e0da5bb230b220127f5e7b242d385ef8c6f54906243f30af63c815535 grpc.oasis.dev:443 -mainnet_local b11b369e0da5bb230b220127f5e7b242d385ef8c6f54906243f30af63c815535 unix:/serverdir_mainnet/internal.sock -testnet 0b91b8e4e44b2003a7c5e23ddadb5e14ef5345c0ebcb3ddcae07fa2f244cab76 testnet.grpc.oasis.dev:443 -testnet_alt 50304f98ddb656620ea817cc1446c401752a05a249b36c9b90dba4616829977a testnet3.grpc.oasis.dev:443 +NAME CHAIN CONTEXT RPC +mainnet (*) b11b369e0da5bb230b220127f5e7b242d385ef8c6f54906243f30af63c815535 grpc.oasis.dev:443 +mainnet_local b11b369e0da5bb230b220127f5e7b242d385ef8c6f54906243f30af63c815535 unix:/serverdir_mainnet/node/internal.sock +testnet 0b91b8e4e44b2003a7c5e23ddadb5e14ef5345c0ebcb3ddcae07fa2f244cab76 testnet.grpc.oasis.dev:443 +testnet_alt 50304f98ddb656620ea817cc1446c401752a05a249b36c9b90dba4616829977a testnet3.grpc.oasis.dev:443 diff --git a/examples/network-set-rpc/config/cli.toml b/examples/network-set-rpc/config/cli.toml index e310c073..e8b878fb 100644 --- a/examples/network-set-rpc/config/cli.toml +++ b/examples/network-set-rpc/config/cli.toml @@ -94,7 +94,7 @@ default = '' [networks.mainnet_local] chain_context = 'b11b369e0da5bb230b220127f5e7b242d385ef8c6f54906243f30af63c815535' description = '' -rpc = 'unix:/serverdir_mainnet/internal.sock' +rpc = 'unix:/serverdir_mainnet/node/internal.sock' [networks.mainnet_local.denomination] decimals = 9 diff --git a/examples/network/00-list.out b/examples/network/00-list.out index 7ce325a7..90c3c23c 100644 --- a/examples/network/00-list.out +++ b/examples/network/00-list.out @@ -1,5 +1,5 @@ -NAME CHAIN CONTEXT RPC -mainnet (*) b11b369e0da5bb230b220127f5e7b242d385ef8c6f54906243f30af63c815535 grpc.oasis.dev:443 -mainnet_local b11b369e0da5bb230b220127f5e7b242d385ef8c6f54906243f30af63c815535 unix:/serverdir_mainnet/internal.sock -testnet 0b91b8e4e44b2003a7c5e23ddadb5e14ef5345c0ebcb3ddcae07fa2f244cab76 testnet.grpc.oasis.dev:443 -testnet_alt 50304f98ddb656620ea817cc1446c401752a05a249b36c9b90dba4616829977a testnet2.grpc.oasis.dev:443 +NAME CHAIN CONTEXT RPC +mainnet (*) b11b369e0da5bb230b220127f5e7b242d385ef8c6f54906243f30af63c815535 grpc.oasis.dev:443 +mainnet_local b11b369e0da5bb230b220127f5e7b242d385ef8c6f54906243f30af63c815535 unix:/serverdir_mainnet/node/internal.sock +testnet 0b91b8e4e44b2003a7c5e23ddadb5e14ef5345c0ebcb3ddcae07fa2f244cab76 testnet.grpc.oasis.dev:443 +testnet_alt 50304f98ddb656620ea817cc1446c401752a05a249b36c9b90dba4616829977a testnet2.grpc.oasis.dev:443 diff --git a/examples/network/02-list.out b/examples/network/02-list.out index b99574d6..f308c804 100644 --- a/examples/network/02-list.out +++ b/examples/network/02-list.out @@ -1,4 +1,4 @@ -NAME CHAIN CONTEXT RPC -mainnet (*) b11b369e0da5bb230b220127f5e7b242d385ef8c6f54906243f30af63c815535 grpc.oasis.dev:443 -mainnet_local b11b369e0da5bb230b220127f5e7b242d385ef8c6f54906243f30af63c815535 unix:/serverdir_mainnet/internal.sock -testnet 0b91b8e4e44b2003a7c5e23ddadb5e14ef5345c0ebcb3ddcae07fa2f244cab76 testnet.grpc.oasis.dev:443 +NAME CHAIN CONTEXT RPC +mainnet (*) b11b369e0da5bb230b220127f5e7b242d385ef8c6f54906243f30af63c815535 grpc.oasis.dev:443 +mainnet_local b11b369e0da5bb230b220127f5e7b242d385ef8c6f54906243f30af63c815535 unix:/serverdir_mainnet/node/internal.sock +testnet 0b91b8e4e44b2003a7c5e23ddadb5e14ef5345c0ebcb3ddcae07fa2f244cab76 testnet.grpc.oasis.dev:443 diff --git a/examples/network/04-list.out b/examples/network/04-list.out index b476082a..e14a2f3b 100644 --- a/examples/network/04-list.out +++ b/examples/network/04-list.out @@ -1,4 +1,4 @@ -NAME CHAIN CONTEXT RPC -mainnet b11b369e0da5bb230b220127f5e7b242d385ef8c6f54906243f30af63c815535 grpc.oasis.dev:443 -mainnet_local (*) b11b369e0da5bb230b220127f5e7b242d385ef8c6f54906243f30af63c815535 unix:/serverdir_mainnet/internal.sock -testnet 0b91b8e4e44b2003a7c5e23ddadb5e14ef5345c0ebcb3ddcae07fa2f244cab76 testnet.grpc.oasis.dev:443 +NAME CHAIN CONTEXT RPC +mainnet b11b369e0da5bb230b220127f5e7b242d385ef8c6f54906243f30af63c815535 grpc.oasis.dev:443 +mainnet_local (*) b11b369e0da5bb230b220127f5e7b242d385ef8c6f54906243f30af63c815535 unix:/serverdir_mainnet/node/internal.sock +testnet 0b91b8e4e44b2003a7c5e23ddadb5e14ef5345c0ebcb3ddcae07fa2f244cab76 testnet.grpc.oasis.dev:443 diff --git a/examples/network/add-unix.in.static b/examples/network/add-unix.in.static index 09c11216..09c43ab8 100644 --- a/examples/network/add-unix.in.static +++ b/examples/network/add-unix.in.static @@ -1 +1 @@ -oasis network add testnet_local 0b91b8e4e44b2003a7c5e23ddadb5e14ef5345c0ebcb3ddcae07fa2f244cab76 unix:/serverdir_testnet/internal.sock +oasis network add testnet_local 0b91b8e4e44b2003a7c5e23ddadb5e14ef5345c0ebcb3ddcae07fa2f244cab76 unix:/serverdir_testnet/node/internal.sock diff --git a/examples/network/config/cli.toml b/examples/network/config/cli.toml index e310c073..e8b878fb 100644 --- a/examples/network/config/cli.toml +++ b/examples/network/config/cli.toml @@ -94,7 +94,7 @@ default = '' [networks.mainnet_local] chain_context = 'b11b369e0da5bb230b220127f5e7b242d385ef8c6f54906243f30af63c815535' description = '' -rpc = 'unix:/serverdir_mainnet/internal.sock' +rpc = 'unix:/serverdir_mainnet/node/internal.sock' [networks.mainnet_local.denomination] decimals = 9