-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from valory-xyz/chore/public-repo
chore: readme
- Loading branch information
Showing
3 changed files
with
68 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
827bf64c3cabfeb82de205e0914f4c6884ee0eac:packages/valory/skills/trader_abci/skill.yaml:generic-api-key:80 | ||
64ceb66bf1bd9d3872d95dfea998e723fdee297c:packages/valory/skills/decision_maker_abci/skill.yaml:generic-api-key:84 | ||
9c3fa1a89cd918ca1a1c74ad5efd48f9ec106c34:packages/valory/skills/market_manager_abci/skill.yaml:generic-api-key:68 | ||
62f2fabeeb87ccbe9b8a880d832a1028d92ae596:README.md:generic-api-key:60 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,66 @@ | ||
## Trader | ||
## Trader | ||
|
||
Trader is an autonomous service that performs bets on prediction markets on the Gnosis chain. | ||
|
||
## Developers | ||
|
||
- Clone the repository: | ||
|
||
git clone https://github.com/valory-xyz/trader.git | ||
|
||
- System requirements: | ||
|
||
- Python `== 3.10` | ||
- [Tendermint](https://docs.tendermint.com/v0.34/introduction/install.html) `==0.34.19` | ||
- [Poetry](https://python-poetry.org/docs/) `>=1.4.0` | ||
- [Docker Engine](https://docs.docker.com/engine/install/) | ||
- [Docker Compose](https://docs.docker.com/compose/install/) | ||
|
||
- Create development environment: | ||
|
||
poetry install && poetry shell | ||
|
||
- Configure command line: | ||
|
||
autonomy init --reset --author valory --remote --ipfs --ipfs-node "/dns/registry.autonolas.tech/tcp/443/https" | ||
|
||
- Pull packages: | ||
|
||
autonomy packages sync --update-packages | ||
|
||
## Testing the service against Gnosis Mainnet | ||
|
||
* Prepare some environment variables: | ||
``` | ||
export RPC_0=INSERT_YOUR_RPC | ||
export CHAIN_ID=100 | ||
export ALL_PARTICIPANTS='["YOUR_AGENT_ADDRESS"]' | ||
export SAFE_CONTRACT_ADDRESS="YOUR_SAFE_ADDRESS" | ||
``` | ||
|
||
* Fetch the service | ||
``` | ||
autonomy fetch --local --service valory/trader && cd trader | ||
``` | ||
|
||
* Build the image: | ||
``` | ||
autonomy build-image | ||
``` | ||
|
||
* Prepare the agent keys: | ||
``` | ||
cat > keys.json << EOF | ||
[ | ||
{ | ||
"address": "<your_agent_address>", | ||
"private_key": "<your_agent_private_key>" | ||
} | ||
] | ||
EOF | ||
``` | ||
* Build the deployment and run: | ||
``` | ||
autonomy deploy build --n 1 -ltm | ||
autonomy deploy run --build-dir abci_build/ | ||
``` |