Skip to content
Closed
13 changes: 9 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,23 @@ jobs:
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2020-05-07
components: rustfmt
components: rustfmt, clippy
target: wasm32-unknown-unknown
override: true
default: true
- name: Show rustc version
run: rustc --version
- name: Show clippy version
run: cargo clippy --version
- name: Install Wasm toolchain
run: rustup target add wasm32-unknown-unknown
- name: Check format
run: make dev-format-check
- name: Install clippy
run: rustup component add clippy
- name: TEMP cargo clean
run: cargo clean
- name: TEMP cargo check
run: cargo check --all
- name: Run clippy
run: cargo clippy -- -D warnings
- name: Update
Expand Down
1 change: 1 addition & 0 deletions Cargo.dev.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ members = [
"traits",
"utilities",
"vesting",
"xtokens",
"rewards",
]
49 changes: 49 additions & 0 deletions xtokens/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
[package]
name = "orml-xtokens"
description = "Crosschain token transfer"
repository = "https://github.com/open-web3-stack/open-runtime-module-library/tree/master/tokens"
license = "Apache-2.0"
version = "0.1.3-dev"
authors = ["Laminar Developers <hello@laminar.one>"]
edition = "2018"

[dependencies]
serde = { version = "1.0.111", optional = true }
codec = { package = "parity-scale-codec", version = "1.3.0", default-features = false }
sp-runtime = { version = "2.0.0-rc6", default-features = false }
sp-io = { version = "2.0.0-rc6", default-features = false }
sp-std = { version = "2.0.0-rc6", default-features = false }

frame-support = { version = "2.0.0-rc6", default-features = false }
frame-system = { version = "2.0.0-rc6", default-features = false }

orml-traits = { path = "../traits", version = "0.1.3-dev", default-features = false }
orml-utilities = { path = "../utilities", version = "0.1.3-dev", default-features = false }

cumulus-primitives = { git = "https://github.com/paritytech/cumulus", default-features = false }
cumulus-upward-message = { git = "https://github.com/paritytech/cumulus", default-features = false }

# TODO: switch to polkadot master branch once ready
polkadot-parachain = { git = "https://github.com/paritytech/polkadot", branch = "rococo-branch", default-features = false }

[dev-dependencies]
sp-core = { version = "2.0.0-rc6", default-features = false }
clear_on_drop = { version = "0.2.4", features = ["no_cc"] } # https://github.com/paritytech/substrate/issues/4179
polkadot-core-primitives = { git = "https://github.com/paritytech/polkadot", branch = "rococo-branch", default-features = false }
orml-tokens = { path = "../tokens", version = "0.1.3-dev" }

[features]
default = ["std"]
std = [
"serde",
"codec/std",
"sp-runtime/std",
"sp-std/std",
"sp-io/std",
"frame-support/std",
"frame-system/std",
"orml-traits/std",
"cumulus-primitives/std",
"cumulus-upward-message/std",
"polkadot-parachain/std",
]
Loading