@@ -62,10 +62,48 @@ jobs:
6262 - name : Setup Python
6363 uses : actions/setup-python@v2
6464 with :
65- python-version : " 3.9 "
65+ python-version : " 3.10 "
6666
6767 - name : Install python dependencies
68- run : pip install -r requirements.txt && brownie pm install OpenZeppelin/openzeppelin-contracts@4.9.5
68+ run : |
69+ pip install --upgrade pip
70+ pip install -r requirements.txt && brownie pm install OpenZeppelin/openzeppelin-contracts@4.9.5
71+
72+ - name : Patch py-solc-x to use GitHub releases
73+ run : |
74+ python3 << 'EOF'
75+ import os
76+ import site
77+
78+ # Find py-solc-x install location
79+ site_packages = site.getsitepackages()[0]
80+ install_file = os.path.join(site_packages, "solcx", "install.py")
81+
82+ # Read the file
83+ with open(install_file, 'r') as f:
84+ content = f.read()
85+
86+ # Replace the blocked URL with GitHub releases
87+ # Old py-solc-x 1.1.1 uses solc-bin.ethereum.org
88+ content = content.replace(
89+ 'SOLC_BASE_URL = "https://solc-bin.ethereum.org/"',
90+ 'SOLC_BASE_URL = "https://binaries.soliditylang.org/"'
91+ )
92+ content = content.replace(
93+ '"https://solc-bin.ethereum.org/"',
94+ '"https://binaries.soliditylang.org/"'
95+ )
96+ content = content.replace(
97+ 'solc-bin.ethereum.org',
98+ 'binaries.soliditylang.org'
99+ )
100+
101+ # Write back
102+ with open(install_file, 'w') as f:
103+ f.write(content)
104+
105+ print("✓ Patched py-solc-x to use binaries.soliditylang.org")
106+ EOF
69107
70108 - name : Withdraw Fees
71109 run : echo $REWARDS_CRON && brownie networks import network-config.yaml true && brownie run scripts/contractInteraction/rewards_cron_amm.py --network=rsk-mainnet
0 commit comments