diff --git a/contracts/.gitignore b/contracts/.gitignore new file mode 100644 index 00000000..088ba6ba --- /dev/null +++ b/contracts/.gitignore @@ -0,0 +1,10 @@ +# Generated by Cargo +# will have compiled files and executables +/target/ + +# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries +# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html +Cargo.lock + +# These are backup files generated by rustfmt +**/*.rs.bk diff --git a/contracts/Cargo.toml b/contracts/Cargo.toml new file mode 100644 index 00000000..1e66e1b8 --- /dev/null +++ b/contracts/Cargo.toml @@ -0,0 +1,20 @@ +[package] +authors = ["devel"] +edition = "2021" +license = "Apache-2.0" +name = "swayswap" +version = "0.0.0" + +[dependencies] +fuel-gql-client = { version = "0.2", default-features = false } +fuel-tx = "0.3" +fuels-abigen-macro = "0.3" +fuels-contract = "0.3" +fuels-core = "0.3" +rand = "0.8" +tokio = { version = "1.12", features = ["rt", "macros"] } + +[[test]] +harness = true +name = "integration_tests" +path = "tests/harness.rs" diff --git a/contracts/Forc.toml b/contracts/Forc.toml new file mode 100644 index 00000000..94fad639 --- /dev/null +++ b/contracts/Forc.toml @@ -0,0 +1,9 @@ +[project] +author = "devel" +entry = "main.sw" +license = "Apache-2.0" +name = "swayswap" + +[dependencies] +core = { git = "http://github.com/FuelLabs/sway-lib-core" } +std = { git = "http://github.com/FuelLabs/sway-lib-std" } diff --git a/contracts/src/main.sw b/contracts/src/main.sw new file mode 100644 index 00000000..d8b8bc64 --- /dev/null +++ b/contracts/src/main.sw @@ -0,0 +1,4 @@ +script; + +fn main() { +} diff --git a/contracts/tests/harness.rs b/contracts/tests/harness.rs new file mode 100644 index 00000000..bd0d9c56 --- /dev/null +++ b/contracts/tests/harness.rs @@ -0,0 +1,6 @@ + + +#[tokio::test] +async fn harness() { + assert_eq!(true, true); +}