Skip to content

Commit

Permalink
Merge pull request #11 from valory-xyz/chore/public-repo
Browse files Browse the repository at this point in the history
chore: readme
  • Loading branch information
Adamantios authored Jul 12, 2023
2 parents 6bbbf34 + 140ed62 commit 8ddd043
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/common_checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
- name: Check dependencies
run: tox -e check-dependencies
- name: Check doc links
run: tomte check-doc-links
run: tomte check-doc-links --url-skips https://github.com/valory-xyz/trader.git
- name: Check doc IPFS hashes
run: tox -e check-doc-hashes

Expand Down
1 change: 1 addition & 0 deletions .gitleaksignore
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
67 changes: 66 additions & 1 deletion README.md
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/
```

0 comments on commit 8ddd043

Please sign in to comment.