zink-lang / zink

Rustic programming language that targets the Ethereum Virtual Machine
https://zink-lang.org
GNU General Public License v3.0
139 stars 13 forks source link

Zink tests for foundry projects #264

Open clearloop opened 4 weeks ago

clearloop commented 4 weeks ago

Describe the feature

The goal of this issue is using zink as testing language for foundry projects.

  1. generate testing crate from foundry projects ( foundry.toml )
  2. fetch the compiled solidity contracts, ABIs with EVM bytecode, based on #263
  3. a command that runs the testing crate, the inner logic is as below
fn command_cargo_zint() {
   // 1. deploy source contract to EVM
   // 2. deploy testing contract to EVM
   // 3. call all methods of the testing contract
}

Solution

No response