From 31e9145b0c467c17885c6f63ff2dd56ce4e98882 Mon Sep 17 00:00:00 2001 From: guilherme-barbosa-funttastic Date: Wed, 21 Aug 2024 14:02:55 -0300 Subject: [PATCH] readjusting kujira home page and adding clipboard. --- partners/kujira/bot/index.html | 377 +++++++++++++++++++++------------ 1 file changed, 239 insertions(+), 138 deletions(-) diff --git a/partners/kujira/bot/index.html b/partners/kujira/bot/index.html index 9513d6f..a3a72a7 100644 --- a/partners/kujira/bot/index.html +++ b/partners/kujira/bot/index.html @@ -66,7 +66,6 @@

Prerequisites:

-

Installation

@@ -98,28 +97,26 @@

-
    - -
    -                      IMAGE_NAME="funttastic/kujira:latest"
    -                      CONTAINER_NAME="fun-kuji-hb"
    -                      NETWORK="bridge"
    -                      ADMIN_USERNAME="your_username"
    -                        ADMIN_PASSWORD="your_password"
    -                          HTTP_PORT="30080"
    -                          HTTPS_PORT="30443"
    -
    -                          docker run -dt \
    -                          --name $CONTAINER_NAME \
    -                          --network $NETWORK \
    -                          -e ADMIN_USERNAME="$ADMIN_USERNAME" \
    -                          -e ADMIN_PASSWORD="$ADMIN_PASSWORD" \
    -                          -p $HTTP_PORT:80 \
    -                          -p $HTTPS_PORT:443 \
    -                          "$IMAGE_NAME"
    -                    
    -
    -
+
+

+IMAGE_NAME="funttastic/kujira:latest"
+CONTAINER_NAME="fun-kuji-hb"
+NETWORK="bridge"
+ADMIN_USERNAME="your_username"
+ADMIN_PASSWORD="your_password"
+HTTP_PORT="30080"
+HTTPS_PORT="30443"
+
+docker run -dt \
+  --name $CONTAINER_NAME \
+  --network $NETWORK \
+  -e ADMIN_USERNAME="$ADMIN_USERNAME" \
+  -e ADMIN_PASSWORD="$ADMIN_PASSWORD" \
+  -p $HTTP_PORT:80 \
+  -p $HTTPS_PORT:443 \
+  "$IMAGE_NAME"
+ +

@@ -137,36 +134,36 @@

-

    If you have pre-generated valid SSL certificates with certbot, you can use them as follows:

    - -
    -                          IMAGE_NAME="funttastic/kujira:latest"
    -                          CONTAINER_NAME="fun-kuji-hb"
    -                          NETWORK="bridge"
    -                          ADMIN_USERNAME="your_username"
    -                          ADMIN_PASSWORD="your_password"
    -                          ADMIN_EMAIL="your_email"
    -                          DOMAIN="your_domain"
    -                          CERTIFICATES_FOLDER="/path/to/your/certificates/folder"
    -                          HTTP_PORT="30080"
    -                          HTTPS_PORT="30443"
    -
    -                          docker run -dt \
    -                              --name $CONTAINER_NAME \
    -                              --network $NETWORK \
    -                              -e ADMIN_USERNAME="$ADMIN_USERNAME" \
    -                              -e ADMIN_PASSWORD="$ADMIN_PASSWORD" \
    -                              -e ADMIN_EMAIL="$ADMIN_EMAIL" \
    -                              -e DOMAIN="$DOMAIN" \
    -                              -v "$CERTIFICATES_FOLDER":"/etc/letsencrypt/archive/$DOMAIN" \
    -                              -p $HTTP_PORT:80 \
    -                              -p $HTTPS_PORT:443 \
    -                              "$IMAGE_NAME"
    -
    -                      
    -
    -
+
+

+
+IMAGE_NAME="funttastic/kujira:latest"
+CONTAINER_NAME="fun-kuji-hb"
+NETWORK="bridge"
+ADMIN_USERNAME="your_username"
+ADMIN_PASSWORD="your_password"
+ADMIN_EMAIL="your_email"
+DOMAIN="your_domain"
+CERTIFICATES_FOLDER="/path/to/your/certificates/folder"
+HTTP_PORT="30080"
+HTTPS_PORT="30443"
+
+docker run -dt \
+    --name $CONTAINER_NAME \
+    --network $NETWORK \
+    -e ADMIN_USERNAME="$ADMIN_USERNAME" \
+    -e ADMIN_PASSWORD="$ADMIN_PASSWORD" \
+    -e ADMIN_EMAIL="$ADMIN_EMAIL" \
+    -e DOMAIN="$DOMAIN" \
+    -v "$CERTIFICATES_FOLDER":"/etc/letsencrypt/archive/$DOMAIN" \
+    -p $HTTP_PORT:80 \
+    -p $HTTPS_PORT:443 \
+    "$IMAGE_NAME"
+
+                      
+ +

@@ -184,7 +181,7 @@

-
    +

    If you want to generate a valid SSL certificate with certbot automatically, you can use the following script. But first you need to configure your DNS settings to point to the server where you will run the @@ -192,35 +189,32 @@

    Maybe it would be better to use bridge network or use host network and use the ports 80 and 443 directly.

    - - -
    -                         IMAGE_NAME="funttastic/kujira:latest"
    -                          CONTAINER_NAME="fun-kuji-hb"
    -                          NETWORK="bridge"
    -                          ADMIN_USERNAME="your_username"
    -                          ADMIN_PASSWORD="your_password"
    -                          ADMIN_EMAIL="your_email"
    -                          DOMAIN="your_domain"
    -                          CERTIFICATES_FOLDER="/path/to/your/certificates/folder"
    -                          HTTP_PORT="80"
    -                          HTTPS_PORT="443"
    -
    -                          docker run -dt \
    -                              --name $CONTAINER_NAME \
    -                              --network $NETWORK \
    -                              -e ADMIN_USERNAME="$ADMIN_USERNAME" \
    -                              -e ADMIN_PASSWORD="$ADMIN_PASSWORD" \
    -                              -e ADMIN_EMAIL="$ADMIN_EMAIL" \
    -                              -e DOMAIN="$DOMAIN" \
    -                              -p $HTTP_PORT:80 \
    -                              -p $HTTPS_PORT:443 \
    -                              "$IMAGE_NAME"
    -                      
    -
    - - -

+
+

+IMAGE_NAME="funttastic/kujira:latest"
+CONTAINER_NAME="fun-kuji-hb"
+NETWORK="bridge"
+ADMIN_USERNAME="your_username"
+ADMIN_PASSWORD="your_password"
+ADMIN_EMAIL="your_email"
+DOMAIN="your_domain"
+CERTIFICATES_FOLDER="/path/to/your/certificates/folder"
+HTTP_PORT="80"
+HTTPS_PORT="443"
+
+docker run -dt \
+    --name $CONTAINER_NAME \
+    --network $NETWORK \
+    -e ADMIN_USERNAME="$ADMIN_USERNAME" \
+    -e ADMIN_PASSWORD="$ADMIN_PASSWORD" \
+    -e ADMIN_EMAIL="$ADMIN_EMAIL" \
+    -e DOMAIN="$DOMAIN" \
+    -p $HTTP_PORT:80 \
+    -p $HTTPS_PORT:443 \
+    "$IMAGE_NAME"
+                    
+ +
@@ -229,6 +223,38 @@

+ + @@ -821,6 +847,14 @@

Extra Step - New Configuration Files From Template

+ + + + + + + +

@@ -833,68 +867,135 @@

-

Adding a Kujira wallet

-

The easiest way is to use our helper script:

-
-

./configure

-
-

and go to the "Actions", then "Add Wallet".

-

You will need to inform your mnemonic, then your wallet will be encrypted and saved in this folder:

-
-

hummingbot/gateway/conf/wallets/kujira

-
-

You can also do that using the Hummingbot Client terminal or calling the Hummingbot Gateway or Funttastic - Hummingbot Client API directly (for example using curl or Postman).

- -

Configuring your strategy and workers

-

You need to navigate to

-
-

funttastic/client/resources/strategies/pure_market_making/1.0.0

-
-

There you can configure your Supervisor (supervisor.yml) and your workers - (workers/01.yml, etc.).

-

You can use the workers/common.yml file if you want a configuration to be replicated to all your - workers. If a specific worker has a different configuration, the worker configuration will then apply.

- -

Extra (optional)

-

More tutorial videos

-

You can access our playlist explaining how to configure several aspects for the bot:

- More tutorial - videos - -

Configuring a telegram integration

-

Open the following configuration file:

-
funttastic/client/resources/configuration/production.yml
-

To enable telegram, we recommend setting the following to `true`:

-
+
+
+        
+
+

+ +

+
+
+

The easiest way is to use our helper script:

+
+

./configure

+
+

and go to the "Actions", then "Add Wallet".

+

You will need to inform your mnemonic, then your wallet will be encrypted and saved in this folder:

+
+

hummingbot/gateway/conf/wallets/kujira

+
+

You can also do that using the Hummingbot Client terminal or calling the Hummingbot Gateway or Funttastic + Hummingbot Client API directly (for example using curl or Postman).

+
+
+
+
+ + +
+
+

+ +

+
+
+

You need to navigate to

+
+

funttastic/client/resources/strategies/pure_market_making/1.0.0

+
+

There you can configure your Supervisor (supervisor.yml) and your workers + (workers/01.yml, etc.).

+

You can use the workers/common.yml file if you want a configuration to be replicated to all your + workers. If a specific worker has a different configuration, the worker configuration will then apply.

+ +
+
+
+
+ + +
+
+

+ +

+
+
+

More tutorial videos

+

You can access our playlist explaining how to configure several aspects for the bot:

+ More tutorial + videos + +
+
+
+
+ + +
+
+

+ +

+
+
+

Open the following configuration file:

+
funttastic/client/resources/configuration/production.yml
+

To enable telegram, we recommend setting the following to `true`:

+
         logging.use_telegram
         telegram.enabled
         telegram.listen_commands
-
-

Add your telegram token to:

-
telegram.token
-

and your telegram channel chat id to:

-
telegram.chat_id
- -

Adding funds to a testnet wallet

-

In order to add funds to your wallet, you can use a faucet inside the Kujira Discord.

-

To join their discord you can use this link:

- https://discord.gg/teamkujira -

After joining and completing their verification process, you can look for this channel:

-

#public-testnet-faucet

-

Or try this link:

- https://discord.com/channels/970650215801569330 -

Then you can use the following command there:

-
!faucet <change to your Kujira wallet address here>
- -

How to contact us

-

If you need more info, you can contact us here:

- https://funttastic.com/discord +
+

Add your telegram token to:

+
telegram.token
+

and your telegram channel chat id to:

+
telegram.chat_id
+ +

Adding funds to a testnet wallet

+

In order to add funds to your wallet, you can use a faucet inside the Kujira Discord.

+

To join their discord you can use this link:

+ https://discord.gg/teamkujira +

After joining and completing their verification process, you can look for this channel:

+

#public-testnet-faucet

+

Or try this link:

+ https://discord.com/channels/970650215801569330 +

Then you can use the following command there:

+
!faucet <change to your Kujira wallet address here>
+ +

How to contact us

+

If you need more info, you can contact us here:

+ https://funttastic.com/discord + +
+
+

+
+ - -