From f4fddfa8fb3516d017b8365c7bc18ef9613a748a Mon Sep 17 00:00:00 2001 From: Fluid <90795031+fluiderson@users.noreply.github.com> Date: Tue, 5 Mar 2024 16:53:05 +0200 Subject: [PATCH] Add more info --- README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/README.md b/README.md index 963e8ac..a056b36 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ +To compile the daemon, the latest stable Rust compiler version is required. Then run the following command: +```bash +cargo b -r --workspace +``` +Compiled binaries may be found in the `target/release` path. + The daemon for Kalatori consists of 2 variants: - `kalatori` may be used for the Polkadot chain and DOT, its native currency. - `kalatori-ah` may be used for the Polkadot Asset Hub chain and the USDT (1984) asset. @@ -10,3 +16,25 @@ Both variants have almost the same startup environment variables: - KALATORI_OVERRIDE_RPC: add this variable to allow changing RPC server address in the database. - KALATORI_DECIMALS: set decimals for the chain native currency (presents only in `kalatori`). - KALATORI_DESTINATION: a hexadecimal address of the account that the daemon will send all payments to. + +For example, a tipical command to run `kalatori` may look like this: +```bash +KALATORI_HOST="127.0.0.1:16726" \ +KALATORI_SEED="bottom drive obey lake curtain smoke basket hold race lonely fit walk" \ +KALATORI_DATABASE="database.redb" \ +KALATORI_RPC="wss://rpc.polkadot.io" \ +KALATORI_DECIMALS="12" \ +KALATORI_DESTINATION="0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d" \ +kalatori +``` + +And a command to run `kalatori-ah` may look like this: + +```bash +KALATORI_HOST="127.0.0.1:16726" \ +KALATORI_SEED="bottom drive obey lake curtain smoke basket hold race lonely fit walk" \ +KALATORI_DATABASE="database.redb" \ +KALATORI_RPC="wss://polkadot-asset-hub-rpc.polkadot.io" \ +KALATORI_DESTINATION="0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d" \ +kalatori-ah +```