We are working on DAO proposal builder, specifically the instructions that are executed if proposal passes.
-
First we input proposal name, description, deadline for voting and upload proposal doc to IPFS and then save url to soroban,
-
Then we set minimum quorum for proposal to be executable.
-
We specify instructions. This step is one that is very unattractive. In the video in 1:27 minute the way instructions are build is to pass the contract address, then the function that we want to execute and the argument the function needs.
This sort of approach is very error prone and quite tedious. I was wondering if there is anything more elegant that would speed up the process.
One "sort of" solution will be to have contract templates that are used the most in DAO proposals, but what about custom contracts?
Is there some way for example to input contract address that will fetch the list of its functions and arguments these functions take?