This PR adds full tracking for L1 execution from Starknet spaces, leveraging latest contracts.
L1 execution is tracked by checking status of L2 transaction (if it has status of ACCEPTED_ON_L1) and by using subgraph-api to also track actual execution on L1.
Entire execution is handled by Mana.
How to test
Run VITE_ENABLED_NETWORKS=s,sep,sn-sep yarn dev:full.
Have Safe on Ethereum Sepolia ready.
Deploy new space with your safe added as treasury and EthRelayer strategy (make sure you enter /#/create page with Starknet logged in, otherwise there might be some issues with enabling your space automatically), set it up with shorter voting time.
Write down address of your L1AvatarExecutionStrategy contract on L1 from transaction that was deployed.
Go to Safe app and using Zodiac module enable that contract from step 4 as custom module.
Create new proposal, vote on it, wait (might need extra time to wait as blocks need to be updated on Starknet).
Click Execute transactions.
Refresh, you will see info about that L1 transaction needs to be received, it will take long time (10-12 hours).
Later on, come back, it should see that it was received and give you option to execute queued transactions.
Click that button.
Refresh, it will give you link to L1 transaction where it was executed.
Summary
Closes: https://github.com/snapshot-labs/sx-monorepo/issues/169
This PR adds full tracking for L1 execution from Starknet spaces, leveraging latest contracts. L1 execution is tracked by checking status of L2 transaction (if it has status of
ACCEPTED_ON_L1
) and by usingsubgraph-api
to also track actual execution on L1.Entire execution is handled by Mana.
How to test
VITE_ENABLED_NETWORKS=s,sep,sn-sep yarn dev:full
./#/create
page with Starknet logged in, otherwise there might be some issues with enabling your space automatically), set it up with shorter voting time.