Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nomoixyz/vulcan-ai-experiment
Experiment that uses AI to perform actions in Foundry scripts
https://github.com/nomoixyz/vulcan-ai-experiment
Last synced: about 1 month ago
JSON representation
Experiment that uses AI to perform actions in Foundry scripts
- Host: GitHub
- URL: https://github.com/nomoixyz/vulcan-ai-experiment
- Owner: nomoixyz
- License: mit
- Created: 2023-04-04T17:43:40.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-04-04T18:08:09.000Z (over 1 year ago)
- Last Synced: 2024-04-13T03:01:43.775Z (9 months ago)
- Language: Solidity
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vulcan AI Experiment
The implementation could roughly look as follows:
1. When calling magic("Do something") (ignore the function names), this will use ffi to run a script that uses an AI to generate a Solidity smart contract, it will compile it and return its bytecode. Then, the function will also deploy the bytecode and perform a delegatecall to it so that everything is done in the context of the caller.
2. The contract generated by the AI needs to have a fallback function where everything happens (the delegatecall will use empty data). We can also have a template contract with a bunch of stuff that would be available to the generated contract, such as hevm opcodes, common interfaces, etc, and we would inform this to the model.