Skip to content

Commit

Permalink
Adds info how to bypass error with testBTC in secrets.json
Browse files Browse the repository at this point in the history
  • Loading branch information
fassko committed Oct 29, 2024
1 parent 9e81460 commit 89a9341
Showing 1 changed file with 38 additions and 2 deletions.
40 changes: 38 additions & 2 deletions docs/infra/fassets/deploying-agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,45 @@ yarn run-agent

When you want to stop the server, press Ctrl + C.

!!! info
To run the `run-agent` as a service to maximize uptime for production use, follow instructions for running the agent as a `system` service for [running the bot as a daemon](https://github.com/flare-labs-ltd/fasset-bots/blob/main/docs/systemd/systemd-service.md).

Run the run-agent as a service to maximize uptime for production use. Here, you have instructions to run the agent as a `systemd` service for [running the bot as a daemon](https://github.com/flare-labs-ltd/fasset-bots/blob/main/docs/systemd/systemd-service.md).
!!! warning

If you upgraded your agent code and see an error stating that `owner.testBTC.address` isn't defined when running the agent, you need to generate it using this command:
```bash
yarn key-gen createAccount testBTC
```

This command generates a test BTC account and displays the address and private key as follows:

```text
Address: tb1qtu86wueft8zafn3ppejsrq3c8z0rd2h9a8n6sa
Private key: cQ9tgyod95qw88LxwgAYXxnkJY9UWBauB1ejEHcJJsy3hHbchFbF
```

Then, add this object under the `owner` and `user` sections in the `secrets.json` file, filling it out with the address and private key obtained when generating the test BTC account.

```json
"owner": {
...

"testBTC": {
"address": "tb1qtu86wueft8zafn3ppejsrq3c8z0rd2h9a8n6sa",
"private_key": "cQ9tgyod95qw88LxwgAYXxnkJY9UWBauB1ejEHcJJsy3hHbchFbF"
}
},
...
"user" : {
...

"testBTC": {
"address": "tb1qtu86wueft8zafn3ppejsrq3c8z0rd2h9a8n6sa",
"private_key": "cQ9tgyod95qw88LxwgAYXxnkJY9UWBauB1ejEHcJJsy3hHbchFbF"
}
}
```

## Verifying Collateral Pool Smart Contracts

Expand Down

0 comments on commit 89a9341

Please sign in to comment.