This lays a foundation for using Foundry bindings for scripting tasks for the contracts we generate using Rust.
Created a directory contract-scripts to manage the usage of bindings.
contract-scripts/bindings is the Foundry directory that the generated contract bindings get written to.
contract-scripts/contract-functions is the rust crate to manage rust scripts using the generated bindings.
The contract-functions crate has an evolving utils file that has functionality needed for contract interaction task. Right now the default activity is to deploy a factory contract using cargo run. This will change once we scope out more usage.
I ran cargo clippy on the Rust code. The Foundry generated bindings had some errors but assuming we will just ignore those as it is not code we manage.
Changes:
This lays a foundation for using Foundry bindings for scripting tasks for the contracts we generate using Rust.
contract-scripts
to manage the usage of bindings.contract-scripts/bindings
is the Foundry directory that the generated contract bindings get written to.contract-scripts/contract-functions
is the rust crate to manage rust scripts using the generated bindings.contract-functions
crate has an evolvingutils
file that has functionality needed for contract interaction task. Right now the default activity is to deploy a factory contract usingcargo run
. This will change once we scope out more usage.I ran
cargo clippy
on the Rust code. The Foundry generated bindings had some errors but assuming we will just ignore those as it is not code we manage.