Skip to content

Commit

Permalink
Support v1.4.1 contracts (#1664)
Browse files Browse the repository at this point in the history
* Refactor tx service for safe-eth-py next version
* Refactor for Safe contracts v1.4.1
* Decode v1.4.1 proxy factory creation
* Support v1.4.1 event indexing (some events changed from v1.3.1)
  • Loading branch information
Uxio0 authored Sep 26, 2023
1 parent b223f18 commit 9ea8067
Show file tree
Hide file tree
Showing 17 changed files with 430 additions and 966 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ psycogreen==1.0.2
psycopg2==2.9.7
redis==5.0.0
requests==2.31.0
safe-eth-py[django]==5.8.0
safe-eth-py[django]==6.0.0b1
web3==6.10.0
2 changes: 2 additions & 0 deletions safe_transaction_service/contracts/tx_decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
get_safe_V1_0_0_contract,
get_safe_V1_1_1_contract,
get_safe_V1_3_0_contract,
get_safe_V1_4_1_contract,
get_uniswap_exchange_contract,
)
from gnosis.safe.multi_send import MultiSend
Expand Down Expand Up @@ -334,6 +335,7 @@ def get_supported_abis(self) -> Iterable[ABIFunction]:
get_safe_V1_0_0_contract(self.dummy_w3).abi,
get_safe_V1_1_1_contract(self.dummy_w3).abi,
get_safe_V1_3_0_contract(self.dummy_w3).abi,
get_safe_V1_4_1_contract(self.dummy_w3).abi,
]

# Order is important. If signature is the same (e.g. renaming of `baseGas`) last elements in the list
Expand Down
Empty file.
Loading

0 comments on commit 9ea8067

Please sign in to comment.