Skip to content
This repository was archived by the owner on May 29, 2025. It is now read-only.

Commit a5fc37a

Browse files
Merge pull request #22 from valory-xyz/chore/update_version
Update scripts
2 parents 48c4a9e + e972e0f commit a5fc37a

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

run_service.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ fi
193193
directory="trader"
194194
# This is a tested version that works well.
195195
# Feel free to replace this with a different version of the repo, but be careful as there might be breaking changes
196-
service_version="v0.6.0"
196+
service_version="v0.6.0.post1"
197197
service_repo=https://github.com/valory-xyz/$directory.git
198198
if [ -d $directory ]
199199
then

trades.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
QUERY_BATCH_SIZE = 1000
3333
DUST_THRESHOLD = 10000000000000
3434
INVALID_ANSWER = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
35+
FPMM_CREATOR = "0x89c5cc945dd550bcffb72fe42bff002429f46fec"
3536

3637
headers = {
3738
"Accept": "application/json, multipart/mixed",
@@ -43,7 +44,7 @@
4344
"""
4445
{
4546
fpmmTrades(
46-
where: {type: Buy, creator: "${creator}"}
47+
where: {type: Buy, creator: "${creator}" fpmm_: {creator: "${fpmm_creator}"} }
4748
first: ${first}
4849
skip: ${skip}
4950
orderBy: creationTimestamp
@@ -168,7 +169,10 @@ def _query_omen_xdai_subgraph() -> dict[str, Any]:
168169
skip = 0
169170
while True:
170171
query = omen_xdai_trades_query.substitute(
171-
creator=creator.lower(), first=QUERY_BATCH_SIZE, skip=skip
172+
creator=creator.lower(),
173+
fpmm_creator=FPMM_CREATOR.lower(),
174+
first=QUERY_BATCH_SIZE,
175+
skip=skip
172176
)
173177
content_json = _to_content(query)
174178
res = requests.post(url, headers=headers, json=content_json)

0 commit comments

Comments
 (0)