Should have a way to let protocol generate the eligible function in just a few clicks.
The solution could be:
- Have an interface to let user generate the code when creating a campaign, where the input for auto-generating the config should be:
- The endpoint
- The document of the API / GraphQL (depends on what they want to use)
- A description of what the user wants to achieve, for example, the user who has minted the nft / has swapped some tokens, etc.
And the GPT interface should be able to:
- Generate configs by the information that the user provides
- Test the function (maybe we'll need to handle it ourselves), to make sure the output are correct, where it should be
address[]