Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
adlerjohn committed Feb 12, 2022
1 parent 0754a69 commit 8cdff15
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 0 deletions.
10 changes: 10 additions & 0 deletions contracts/.gitignore
Original file line number Diff line number Diff line change
@@ -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
20 changes: 20 additions & 0 deletions contracts/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
9 changes: 9 additions & 0 deletions contracts/Forc.toml
Original file line number Diff line number Diff line change
@@ -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" }
4 changes: 4 additions & 0 deletions contracts/src/main.sw
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
script;

fn main() {
}
6 changes: 6 additions & 0 deletions contracts/tests/harness.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@


#[tokio::test]
async fn harness() {
assert_eq!(true, true);
}

0 comments on commit 8cdff15

Please sign in to comment.