Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add payment-channel example #1248

Merged
merged 11 commits into from Aug 9, 2022
9 changes: 9 additions & 0 deletions examples/payment-channel/.gitignore
@@ -0,0 +1,9 @@
# Ignore build artifacts from the local tests sub-crate.
/target/

# Ignore backup files creates by cargo fmt.
**/*.rs.bk

# Remove Cargo.lock when creating an executable, leave it for libraries
# More information here http://doc.crates.io/guide.html#cargotoml-vs-cargolock
Cargo.lock
38 changes: 38 additions & 0 deletions examples/payment-channel/Cargo.toml
@@ -0,0 +1,38 @@
[package]
name = "payment_channel"
version = "3.0.1"
HCastano marked this conversation as resolved.
Show resolved Hide resolved
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2021"
publish = false

[dependencies]
ink_primitives = { path = "../../crates/primitives", default-features = false }
ink_metadata = { path = "../../crates/metadata", default-features = false, features = ["derive"], optional = true }
ink_env = { path = "../../crates/env", default-features = false }
ink_storage = { path = "../../crates/storage", default-features = false }
ink_lang = { path = "../../crates/lang", default-features = false }

hex-literal = { version = "0.3" }
scale = { package = "parity-scale-codec", version = "3.1.2", default-features = false, features = ["derive"] }
kanishkatn marked this conversation as resolved.
Show resolved Hide resolved
scale-info = { version = "2", default-features = false, features = ["derive"] }

sp-core = { default-features = false }
HCastano marked this conversation as resolved.
Show resolved Hide resolved

[lib]
name = "payment_channel"
path = "lib.rs"
crate-type = ["cdylib"]

[features]
default = ["std"]
std = [
"ink_metadata/std",
"ink_env/std",
"ink_storage/std",
"ink_primitives/std",
"scale/std",
"scale-info/std",
"sp-core/std",
HCastano marked this conversation as resolved.
Show resolved Hide resolved
]

ink-as-dependency = []