Skip to content

Commit

Permalink
tangle-subxt: Fixup features (#757)
Browse files Browse the repository at this point in the history
  • Loading branch information
Serial-ATA authored Sep 6, 2024
1 parent d8cecdf commit a6dc491
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ mmr-rpc = { git = "https://github.com/paritytech/polkadot-sdk", branch = "releas
sc-rpc-spec-v2 = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.7.0", default-features = false }
substrate-state-trie-migration-rpc = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.7.0", default-features = false }
sc-sync-state-rpc = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.7.0", default-features = false }
subxt = { version = "0.37.0", default-features = false }
subxt-core = { version = "0.37.0", default-features = false }
subxt-signer = { version = "0.37.0", default-features = false }

pallet-babe = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.7.0", default-features = false }
pallet-bags-list = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.7.0", default-features = false }
Expand Down
4 changes: 2 additions & 2 deletions precompiles/multi-asset-delegation/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,8 @@ fn test_execute_withdraw_before_due() {
.prepare_test(TestAccount::Alex, H160::from_low_u64_be(1), PCall::execute_withdraw {})
.execute_returns(()); // should not fail

assert_eq!(Assets::balance(1, delegator_account), 500 - 200); // not expired so should not change
// balance
// not expired so should not change balance
assert_eq!(Assets::balance(1, delegator_account), 500 - 200);
});
}

Expand Down
12 changes: 7 additions & 5 deletions tangle-subxt/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tangle-subxt"
version = "0.2.0"
version = "0.3.0"
description = "Rust bindings and interface to interact with Tangle Network using subxt"
authors = { workspace = true }
edition = { workspace = true }
Expand All @@ -15,16 +15,18 @@ readme = "README.md"
[dependencies]
parity-scale-codec = { workspace = true }
scale-info = { workspace = true }
subxt = { version = "0.37.0", default-features = false, features = ["jsonrpsee"], optional = true }
subxt-signer = { version = "0.37.0", default-features = false, features = ["subxt", "sr25519", "ecdsa"] }
subxt = { workspace = true, features = ["jsonrpsee"], optional = true }
subxt-signer = { workspace = true, features = ["subxt", "sr25519", "ecdsa"] }
serde = { workspace = true, features = ["derive"] }
subxt-core = "0.37.0"
subxt-core = { workspace = true }

[features]
default = ["std", "subxt/native"]
default = ["std"]
std = [
"dep:subxt",
"subxt/native",
"subxt/jsonrpsee",
"subxt-core/std",
"subxt-signer/std"
]
web = [
Expand Down
8 changes: 6 additions & 2 deletions tangle-subxt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
clippy::exhaustive_enums
)]
#![allow(clippy::all, clippy::exhaustive_enums)]
// pub mod tangle_mainnet_runtime;
pub mod tangle_testnet_runtime;

pub use parity_scale_codec;
pub use scale_info;
#[cfg(any(feature = "std", feature = "web"))]
Expand All @@ -18,3 +17,8 @@ pub use subxt_signer;
// `subxt` already re-exports `subxt-core`
#[cfg(not(any(feature = "std", feature = "web")))]
pub use subxt_core;

// #[cfg_attr(rustfmt, rustfmt::skip)]
// pub mod tangle_mainnet_runtime;
#[cfg_attr(rustfmt, rustfmt::skip)]
pub mod tangle_testnet_runtime;

0 comments on commit a6dc491

Please sign in to comment.