File tree Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -31,19 +31,19 @@ dependencies = [
31
31
" aiohttp>=3.8.3" ,
32
32
" aioresponses>=0.7.6" ,
33
33
" aleph-message>=1" ,
34
- " aleph-superfluid>=0.2.1 " ,
35
- " base58==2.1.1" , # Needed now as default with _load_account changement
36
- " coincurve; python_version< '3.11 '" ,
37
- " coincurve>=19; python_version>='3.11 '" ,
38
- " eth-abi>=4 ; python_version>='3.11 '" ,
39
- " eth-typing==4.3 .1" ,
34
+ " aleph-superfluid @ git+https://github.com/aleph-im/superfluid.py " ,
35
+ " base58==2.1.1" , # Needed now as default with _load_account changement
36
+ " coincurve; python_version>= '3.9 '" ,
37
+ " coincurve>=19; python_version>='3.9 '" ,
38
+ " eth-abi>=5.0.1 ; python_version>='3.9 '" ,
39
+ " eth-typing>=5.0 .1" ,
40
40
" jwcrypto==1.5.6" ,
41
41
" pydantic>=2,<3" ,
42
42
" pydantic-settings>=2" ,
43
- " pynacl==1.5" , # Needed now as default with _load_account changement
43
+ " pynacl==1.5" , # Needed now as default with _load_account changement
44
44
" python-magic" ,
45
45
" typing-extensions" ,
46
- " web3==6.3 " ,
46
+ " web3>=7.10 " ,
47
47
]
48
48
49
49
optional-dependencies.all = [
Original file line number Diff line number Diff line change 11
11
from eth_keys .exceptions import BadSignature as EthBadSignatureError
12
12
from superfluid import Web3FlowInfo
13
13
from web3 import Web3
14
- from web3 .middleware import geth_poa_middleware
14
+ from web3 .middleware import ExtraDataToPOAMiddleware
15
15
from web3 .types import TxParams , TxReceipt
16
16
17
17
from aleph .sdk .exceptions import InsufficientFundsError
@@ -104,7 +104,7 @@ def connect_chain(self, chain: Optional[Chain] = None):
104
104
self ._provider = Web3 (Web3 .HTTPProvider (self .rpc ))
105
105
if chain == Chain .BSC :
106
106
self ._provider .middleware_onion .inject (
107
- geth_poa_middleware , "geth_poa" , layer = 0
107
+ ExtraDataToPOAMiddleware , "geth_poa" , layer = 0
108
108
)
109
109
else :
110
110
self .chain_id = None
@@ -144,7 +144,7 @@ def sign_and_send() -> TxReceipt:
144
144
signed_tx = self ._provider .eth .account .sign_transaction (
145
145
tx_params , self ._account .key
146
146
)
147
- tx_hash = self ._provider .eth .send_raw_transaction (signed_tx .rawTransaction )
147
+ tx_hash = self ._provider .eth .send_raw_transaction (signed_tx .raw_transaction )
148
148
tx_receipt = self ._provider .eth .wait_for_transaction_receipt (
149
149
tx_hash , settings .TX_TIMEOUT
150
150
)
Original file line number Diff line number Diff line change 9
9
10
10
from .conf import settings
11
11
12
- MIN_ETH_BALANCE : float = 0.005
12
+ MIN_ETH_BALANCE : float = 0.001
13
13
MIN_ETH_BALANCE_WEI = Decimal (to_wei (MIN_ETH_BALANCE , "ether" ))
14
14
BALANCEOF_ABI = """[{
15
15
"name": "balanceOf",
You can’t perform that action at this time.
0 commit comments