You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ ape --version
0.7.23
$ ape plugins list
Installed Plugins
alchemy 0.7.3
etherscan 0.7.4
foundry 0.7.5
optimism 0.7.3
safe 0.7.0b2
solidity 0.7.3
Python Version: 3.12
b- OS: osx/linux/win linux
What went wrong?
The safe api changed for fetching transactions, i believe v1/safes/{address}/transactions/ no longer works and is now https://safe-transaction-optimism.safe.global/ /v1/safes/{address}/all-transactions/
the code that caused the failure (see this link for help with formatting code)
full output of the error you received
Traceback (most recent call last):
File "/home/thesis/repos/gnosis_perp_ape/main.py", line 58, in <module>
self.setup_gnosis_perp_parameter_change(args.p)
File "/home/thesis/repos/gnosis_perp_ape/utils/controller.py", line 75, in setup_gnosis_perp_parameter_change
self.post_gnosis_transaction(contractName='perp_settings',functionName=functionName,args=stagedParams)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/thesis/repos/gnosis_perp_ape/utils/gnosis_safe.py", line 24, in wrapper
return func(self,*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/thesis/repos/gnosis_perp_ape/utils/gnosis_safe.py", line 64, in post_gnosis_transaction
nonce = self.get_next_safe_nonce()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/thesis/repos/gnosis_perp_ape/utils/gnosis_safe.py", line 24, in wrapper
return func(self,*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/thesis/repos/gnosis_perp_ape/utils/gnosis_safe.py", line 60, in get_next_safe_nonce
return self.safe.new_nonce
^^^^^^^^^^^^^^^^^^^
File "/home/thesis/miniconda3/envs/gnosis_perp_ape/lib/python3.12/site-packages/ape_safe/accounts.py", line 322, in new_nonce
if latest_tx := next(self.client.get_transactions(confirmed=False), None):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/thesis/miniconda3/envs/gnosis_perp_ape/lib/python3.12/site-packages/ape_safe/client/base.py", line 81, in get_transactions
for txn in self._all_transactions():
File "/home/thesis/miniconda3/envs/gnosis_perp_ape/lib/python3.12/site-packages/ape_safe/client/__init__.py", line 86, in _all_transactions
response = self._get(url)
^^^^^^^^^^^^^^
File "/home/thesis/miniconda3/envs/gnosis_perp_ape/lib/python3.12/site-packages/ape_safe/client/base.py", line 128, in _get
return self._request("GET", url)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/thesis/miniconda3/envs/gnosis_perp_ape/lib/python3.12/site-packages/ape_safe/client/base.py", line 153, in _request
raise ClientResponseError(api_url, response)
ape_safe.exceptions.ClientResponseError: Exception when calling 'https://safe-transaction-optimism.safe.global/api/v1/safes/xxxxxxxxxxxxxxxxxxxxx/transactions/':
<!doctype html>
<html lang="en">
<head>
<title>Not Found</title>
</head>
<body>
<h1>Not Found</h1><p>The requested resource was not found on this server.</p>
</body>
</html>
How can it be fixed?
Need to update the api
The text was updated successfully, but these errors were encountered:
Environment information
ape
and plugin versions:b- OS: osx/linux/win linux
What went wrong?
The safe api changed for fetching transactions, i believe
v1/safes/{address}/transactions/
no longer works and is nowhttps://safe-transaction-optimism.safe.global/
/v1/safes/{address}/all-transactions/
ape-safe/ape_safe/client/__init__.py
Line 84 in eddc804
Please include information like:
Trying to push
How can it be fixed?
Need to update the api
The text was updated successfully, but these errors were encountered: