0

I'm using the instruction from https://github.com/gnosis/safe-infrastructure to setup a local test environment (using local Docker) for connecting Gnosis Safe to my EVM-Compatible side-chain. I did deploy safe-contracts to the chain, updated the RPC endpoint in the .env, started docker compose and follow all the steps to setup the chainInfo. The log from tkx-worker seems to be ok as below.

enter image description here

I cloned safe-react, make necessary changes to make it start and can create a new safe. Unfortunately, once the safe is created, there's an ajax call to retrieve the safe info from the Client Gateway (http://localhost:8000/api/v1/safes/0xEaD3904076de4d7d56AA02e3e9C6B58d91Aa2b0E) but this request returns 404. My understanding is that transaction service is listening to the event from the Safe L2 contract and capture the new created safe in the datastore, maybe I'm wrong about this assumption. Could you please point me where to check to see why the GET url above returns 404.

1 Answer 1

0

The services are indeed monitoring the events from the L2 Safe contracts. To properly monitor this it is required to setup the service with the correct contract addresses.

The easiest is if you deploy the contracts to your local network using the tagged version of the safe-contracts repo. This should result in the same contract addresses as on mainnet.

Then you need to add the proxy factory in the django admin. enter image description here

After this you also need to add the master copy of your network.

enter image description here

For the block numbers you should be able to use 0 or if you want to do it more correctly use the block number of the deployment of the Safe contracts.

2
  • Thank you @Richard for the answer. I'm currently trying to find the menu to setup the proxy address but no luck. From the Django admin, I can only see Auth, Chain, Safe Apps menus. Even with the superuser access with all permissions granted, still see only those 3. Could you point me how to access the screen?
    – Panit
    Dec 20, 2021 at 13:36
  • 1
    Ahhh I found it, it's the admin of the txs service. Thanks again for the answer.
    – Panit
    Dec 20, 2021 at 13:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.