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
6 changes: 3 additions & 3 deletions docs/sovereign/distributed-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ Before proceeding, ensure that a **SSH key** for GitHub is configured on your ma
git clone git@github.com:multiversx/mx-chain-sovereign-go.git
```

2. Navigate to testnet directory:
2. Navigate to project directory:
```bash
cd mx-chain-sovereign-go/scripts/testnet
cd mx-chain-sovereign-go
```

### Step 2: Seeder Build
Expand Down Expand Up @@ -206,7 +206,7 @@ Adjust the flags as needed. You can find all the available flags in `/mx-chain-s

#### # observer
```
./sovereignnode --profile-mode --log-save --log-level *:INFO --log-logger-name --log-correlation --use-health-service --rest-api-interface :8080 --working-directory ~/my_observer_node
./sovereignnode --profile-mode --log-save --log-level *:INFO --log-logger-name --log-correlation --use-health-service --destination-shard-as-observer 0 --rest-api-interface :8080 --operation-mode db-lookup-extension --working-directory ~/my_observer_node
```

### Staking transaction
Expand Down
11 changes: 11 additions & 0 deletions docs/sovereign/local-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,17 @@ Before proceeding, ensure that a **SSH key** for GitHub is configured on your ma

### Step 2: Deploy Sovereign setup

#### Sovereign chain with no main chain connection

1. Update chain parameters in `variables.sh` file

2. Start the chain with local scripts:
```bash
./config.sh && ./sovereignStart.sh
```

#### Sovereign chain with main chain connection

Navigate to the `sovereignBridge` folder:
```bash
cd sovereignBridge
Expand Down
47 changes: 47 additions & 0 deletions docs/sovereign/sovereign-api.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,50 @@
# API service

## Deploy Sovereign Proxy service

:::info
Proxy service is automatically deployed if the sovereign chain was started with [local setup](/sovereign/local-setup)
:::

### Step 1: Get the `mx-chain-proxy-sovereign-go` Repository

Before proceeding, ensure that a **SSH key** for GitHub is configured on your machine.

1. Clone the GitHub repository:
```bash
git clone git@github.com:multiversx/mx-chain-proxy-sovereign-go.git
```

2. Navigate to proxy directory:
```bash
cd mx-chain-proxy-sovereign-go/cmd/proxy
```

### Step 2: Edit Proxy `config.toml` file

Example:
```
[[Observers]]
ShardId = 0
Address = "http://127.0.0.1:10000"

[[Observers]]
ShardId = 4294967295
Address = "http://127.0.0.1:10000"
```

:::note
For sovereign proxy there are 2 Observers required for `ShardId` 0 and 4294967295. The `Address` should be the same for both.
:::

### Step 3: Start Sovereign Proxy service

Build and run the proxy
```bash
go build
./proxy --sovereign
```

## Deploy Sovereign API service

### Step 1: Get the `mx-api-service` Repository
Expand Down Expand Up @@ -28,6 +73,8 @@
### Step 3: Start Sovereign API service

```bash
npm install
npm run init
npm run start:testnet
```

Expand Down
18 changes: 18 additions & 0 deletions docs/sovereign/sovereign-explorer.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,24 @@ git clone https://github.com/multiversx/mx-explorer-dapp.git

2. Update the parameters and URLs with your own configuration in `config.testnet.ts` file

Example configuration:
```
{
default: true,
id: 'sovereign',
name: 'Sovereign',
chainId: 'S',
adapter: 'api',
theme: 'default',
egldLabel: 'SOV',
walletAddress: 'https://localhost:3000',
explorerAddress: 'https://localhost:3003',
apiAddress: 'https://localhost:3002',
hrp: 'erd',
isSovereign: true
}
```

### Step 3: Start Sovereign Explorer

```bash
Expand Down
4 changes: 2 additions & 2 deletions docs/sovereign/sovereign-wallet.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ git clone https://github.com/multiversx/mx-lite-wallet-dapp.git
cd src/config
```

2. Update the `config.sovereign.ts` file:
2. Update the `sharedNetworks.ts` file:
- for `sovereign` item
- update the URLs with your own
- update `sovereignContractAddress` with contract address from `sovereignConfig.toml` -> `SubscribedEvents` from `OutgoingSubscribedEvents`
Expand All @@ -26,7 +26,7 @@ git clone https://github.com/multiversx/mx-lite-wallet-dapp.git

```bash
yarn install
yarn start:sovereign
yarn start-sovereign
```

Read more about deploying lite wallet in [GitHub](https://github.com/multiversx/mx-lite-wallet-dapp/tree/main#multiversx-lite-wallet-dapp).
Loading