diff --git a/docs/fassets/guides/1-deploy-fassets-agent.mdx b/docs/fassets/guides/1-deploy-fassets-agent.mdx index 1da11b42..450eb230 100644 --- a/docs/fassets/guides/1-deploy-fassets-agent.mdx +++ b/docs/fassets/guides/1-deploy-fassets-agent.mdx @@ -209,7 +209,7 @@ To execute agent bot commands, use the `cli` profile with the `agent-bot` Docker For example, to get the FAssets system running agents, use this command: ```bash -docker-compose --profile cli run agent-bot listAgents --fasset FASSET +docker compose --profile cli run agent-bot listAgents --fasset FASSET ``` Full reference for the agent bot commands can be found in the [Agent Bot CLI Reference](/fassets/reference/agent-bot). @@ -220,7 +220,7 @@ To execute user bot commands, use the `cli` profile and the `user-bot` Docker co For example, to retrieve FAsset system info, use this command: ```bash -docker-compose --profile cli run user-bot info --fasset FASSET +docker compose --profile cli run user-bot info --fasset FASSET ``` ### Update the FAssets Agent @@ -231,7 +231,7 @@ To restart and update the FAssets agent, run the following commands: docker compose down git pull docker compose pull -docker-compose --profile cli run agent-bot listAgents --fasset FXRP +docker compose --profile cli run agent-bot listAgents --fasset FXRP docker compose up -d ``` diff --git a/docs/fassets/guides/3-create-fasset-agent-cli.mdx b/docs/fassets/guides/3-create-fasset-agent-cli.mdx index 6a3e7864..6a33ad03 100644 --- a/docs/fassets/guides/3-create-fasset-agent-cli.mdx +++ b/docs/fassets/guides/3-create-fasset-agent-cli.mdx @@ -25,7 +25,7 @@ You need to set up your agent's parameters like name, collateral, and fund with 1. Prepare the agent settings `tmp.agent-settings.json` exchanging `FASSET` with `FXRP`, `FBTC` or `FDOGE` according to which underlying network you want to work on: ```bash - docker-compose --profile cli run agent-bot --fasset FASSET create --prepare + docker compose --profile cli run agent-bot --fasset FASSET create --prepare ``` 2. Choose a suffix for your agent's collateral pool and fill in the `poolTokenSuffix` field in the `tmp.agent-settings.json`. @@ -41,7 +41,7 @@ You need to set up your agent's parameters like name, collateral, and fund with Exchange `FASSET` with `FXRP`, `FBTC` or `FDOGE` according to which underlying network you are creating the agent. ```bash - docker-compose --profile cli run agent-bot --fasset FASSET create tmp.agent-settings.json + docker compose --profile cli run agent-bot --fasset FASSET create tmp.agent-settings.json ``` ### Deposit Collateral @@ -56,7 +56,7 @@ You have two options: either deposit the vault collateral and buy pool collatera To deposit both vault and pool collateral together and let the tool calculate the minimum required collateral to back the lots, you can use the `depositCollateral` function to the agent, specifying your created agent address in the `AGENT_ADDRESS` and lot size in the `LOTS`, as well exchange `FASSET` with `FXRP`, `FBTC` or `FDOGE` according to which underlying network you are creating the agent: ```bash -docker-compose --profile cli run agent-bot depositCollaterals AGENT_ADDRESS LOTS --fasset FASSET +docker compose --profile cli run agent-bot depositCollaterals AGENT_ADDRESS LOTS --fasset FASSET ``` #### Deposit Collateral Separately @@ -64,13 +64,13 @@ docker-compose --profile cli run agent-bot depositCollaterals AGENT_ADDRESS LOTS 1. Deposit enough vault collateral to the agent specifying your created agent address in the `AGENT_ADDRESS` and the amount of the stablecoin or wrapped ETH in the `AMOUNT` field, as well exchange `FASSET` with `FXRP`, `FBTC` or `FDOGE` according to which underlying network you are creating the agent. ```bash - docker-compose --profile cli run agent-bot depositVaultCollateral AGENT_ADDRESS AMOUNT --fasset FASSET + docker compose --profile cli run agent-bot depositVaultCollateral AGENT_ADDRESS AMOUNT --fasset FASSET ``` 2. Buy enough pool collateral for the agent specifying your agent's address in the `AGENT_ADDRESS` and the amount of the CFLR in the `CFLR_AMOUNT` field, as well exchange `FASSET` with `FXRP`, `FBTC` or `FDOGE` according to which underlying network you are creating the agent. ```bash - docker-compose --profile cli run agent-bot buyPoolCollateral AGENT_ADDRESS CFLR_AMOUNT --fasset FASSET + docker compose --profile cli run agent-bot buyPoolCollateral AGENT_ADDRESS CFLR_AMOUNT --fasset FASSET ``` ### Register the Agent as Available @@ -80,13 +80,13 @@ You need to make your agent available to mint and redeem FAssets. 1. Register your agent as available to the network by executing this command replacing the `AGENT_ADDRESS` with your agent address, as well exchange `FASSET` with `FXRP`, `FBTC` or `FDOGE` according to which underlying network you are entering the agent: ```bash - docker-compose --profile cli run agent-bot enter AGENT_ADDRESS --fasset FASSET + docker compose --profile cli run agent-bot enter AGENT_ADDRESS --fasset FASSET ``` 2. If you deposited enough collateral, you should see that your agent has at least one lot available by running the command replacing `FASSET` with `FXRP`, `FBTC` or `FDOGE` according to which underlying network you are running the agent. ```bash - docker-compose --profile cli run user-bot agents --fasset FASSET + docker compose --profile cli run user-bot agents --fasset FASSET ``` If you don't have available lots, check if the vault and pool collaterals are enough. diff --git a/docs/fassets/reference/agent-bot.mdx b/docs/fassets/reference/agent-bot.mdx index c1776fa2..44d271b9 100644 --- a/docs/fassets/reference/agent-bot.mdx +++ b/docs/fassets/reference/agent-bot.mdx @@ -26,10 +26,10 @@ To list all available commands: yarn agent-bot help ``` -To execute a specific command using the [Docker container](/fassets/guides/deploy-fassets-agent#execute-fasset-bot-commands) change `yarn agent-bot` with `docker-compose --profile cli run agent-bot`: +To execute a specific command using the [Docker container](/fassets/guides/deploy-fassets-agent#execute-fasset-bot-commands) change `yarn agent-bot` with `docker compose --profile cli run agent-bot`: ```bash -docker-compose --profile cli run agent-bot [command] --fasset [fAssetSymbol] +docker compose --profile cli run agent-bot [command] --fasset [fAssetSymbol] ``` ## Owner and Agent Management