Skip to content

Commit 9f55670

Browse files
committed
v0.3.1 SubSquid now makes requests through our proxy by default. Can be disabled by setting SUBSQUID_USE_IP_PROXY env to "false"
1 parent 8abaa1e commit 9f55670

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

IceCreamSwapWeb3/Subsquid.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ def get_filter(
110110
else:
111111
worker_url = get_text(f'{gateway_url}/{from_block}/worker')
112112

113+
if os.getenv("SUBSQUID_USE_IP_PROXY", "true").lower() == "true":
114+
assert worker_url.startswith("https://")
115+
worker_url = "https://rpc-internal.icecreamswap.com/proxy/" + worker_url[8:]
116+
113117
query['fromBlock'] = from_block
114118
res = requests.post(worker_url, json=query)
115119
res.raise_for_status()

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from setuptools import setup, find_packages
22

3-
VERSION = '0.3.0'
3+
VERSION = '0.3.1'
44
DESCRIPTION = 'IceCreamSwap Web3.py wrapper'
55
LONG_DESCRIPTION = 'IceCreamSwap Web3.py wrapper with automatic retries, multicall and other advanced functionality'
66

0 commit comments

Comments
 (0)