Skip to content

Commit

Permalink
expose runtime types (#244)
Browse files Browse the repository at this point in the history
* add missing std enablements

* expose important types for use in worker
  • Loading branch information
brenzi authored Dec 21, 2023
1 parent b89c651 commit 27c7f0e
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 57 deletions.
3 changes: 3 additions & 0 deletions Cargo.lock

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

20 changes: 10 additions & 10 deletions polkadot-parachains/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,28 +37,28 @@ polkadot-runtime-common = { default-features = false, git = "https://github.com/
xcm = { default-features = false, git = "https://github.com/paritytech/polkadot", branch = "release-v0.9.42" }
xcm-executor = { default-features = false, git = "https://github.com/paritytech/polkadot", branch = "release-v0.9.42" }

[dev-dependencies]
sp-io = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }
pallet-authorship = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }

[build-dependencies]
substrate-wasm-builder = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }

[features]
default = ["std"]
std = [
"codec/std",
"scale-info/std",
"sp-consensus-aura/std",
"sp-std/std",
"sp-io/std",
"frame-support/std",
"frame-executive/std",
"frame-support/std",
"frame-system/std",
"pallet-assets/std",
"pallet-authorship/std",
"pallet-balances/std",
"polkadot-core-primitives/std",
"polkadot-runtime-common/std",
"polkadot-primitives/std",
"polkadot-runtime-common/std",
"scale-info/std",
"sp-consensus-aura/std",
"sp-core/std",
"sp-io/std",
"sp-runtime/std",
"sp-std/std",
"xcm-executor/std",
"xcm/std",
]
89 changes: 46 additions & 43 deletions polkadot-parachains/integritee-runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ hex-literal = { version = "0.3.4", optional = true }
[dev-dependencies]
hex-literal = "0.3.4"
hex = "0.4.3"
cumulus-primitives-parachain-inherent = { git = 'https://github.com/paritytech/cumulus', branch = "polkadot-v0.9.42" }
polkadot-primitives = { git = "https://github.com/paritytech/polkadot", branch = "release-v0.9.42" }
polkadot-runtime-parachains = { git = "https://github.com/paritytech/polkadot", branch = "release-v0.9.42" }


[build-dependencies]
substrate-wasm-builder = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" }
Expand All @@ -104,68 +108,67 @@ substrate-wasm-builder = { git = "https://github.com/paritytech/substrate", bran
default = ["std"]
std = [
"codec/std",
"log/std",
"scale-info/std",
"sp-api/std",
"sp-std/std",
"sp-io/std",
"sp-core/std",
"sp-runtime/std",
"sp-version/std",
"sp-offchain/std",
"sp-session/std",
"sp-block-builder/std",
"sp-transaction-pool/std",
"sp-inherents/std",
"frame-support/std",
"cumulus-pallet-aura-ext/std",
"cumulus-pallet-dmp-queue/std",
"cumulus-pallet-parachain-system/std",
"cumulus-pallet-xcm/std",
"cumulus-pallet-xcmp-queue/std",
"cumulus-primitives-core/std",
"cumulus-primitives-timestamp/std",
"cumulus-primitives-utility/std",
"frame-executive/std",
"frame-system/std",
"frame-support/std",
"frame-system-rpc-runtime-api/std",
"frame-system/std",
"frame-try-runtime/std",
"log/std",
"orml-traits/std",
"orml-xcm-support/std",
"orml-xcm/std",
"orml-xtokens/std",
"pallet-aura/std",
"pallet-balances/std",
"pallet-bounties/std",
"pallet-child-bounties/std",
"pallet-claims/std",
"pallet-collective/std",
"pallet-democracy/std",
"pallet-timestamp/std",
"pallet-treasury/std",
"pallet-transaction-payment/std",
"pallet-transaction-payment-rpc-runtime-api/std",
"pallet-vesting/std",
"pallet-enclave-bridge/std",
"pallet-multisig/std",
"pallet-proxy/std",
"pallet-preimage/std",
"pallet-proxy/std",
"pallet-scheduler/std",
"pallet-sidechain/std",
"pallet-teeracle/std",
"pallet-teerex/std",
"pallet-timestamp/std",
"pallet-transaction-payment-rpc-runtime-api/std",
"pallet-transaction-payment/std",
"pallet-treasury/std",
"pallet-utility/std",
"pallet-xcm/std",
"pallet-vesting/std",
"pallet-xcm-transactor/std",
"pallet-xcm/std",
"parachain-info/std",
"parachains-common/std",
"cumulus-pallet-aura-ext/std",
"cumulus-pallet-dmp-queue/std",
"cumulus-pallet-parachain-system/std",
"cumulus-pallet-xcmp-queue/std",
"cumulus-pallet-xcm/std",
"cumulus-primitives-core/std",
"cumulus-primitives-timestamp/std",
"cumulus-primitives-utility/std",
"xcm/std",
"polkadot-parachain/std",
"scale-info/std",
"sp-api/std",
"sp-block-builder/std",
"sp-consensus-aura/std",
"sp-core/std",
"sp-inherents/std",
"sp-io/std",
"sp-offchain/std",
"sp-runtime/std",
"sp-session/std",
"sp-std/std",
"sp-transaction-pool/std",
"sp-version/std",
"xcm-builder/std",
"xcm-executor/std",
"xcm-transactor-primitives/std",
"sp-consensus-aura/std",
# orml
"orml-xtokens/std",
"orml-traits/std",
"orml-xcm-support/std",
"orml-xcm/std",
# Integritee
"pallet-claims/std",
"pallet-sidechain/std",
"pallet-teeracle/std",
"pallet-teerex/std",
"pallet-enclave-bridge/std",
"xcm/std",
]
runtime-benchmarks = [
# support stuff
Expand Down
9 changes: 5 additions & 4 deletions polkadot-parachains/integritee-runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,12 @@ use frame_system::{
};

pub use parachains_common as common;
pub use parachains_common::MILLISECS_PER_BLOCK;
use parachains_common::{
opaque, AccountId, AuraId, Balance, BlockNumber, Hash, Header, Index, Signature,
AVERAGE_ON_INITIALIZE_RATIO, DAYS, HOURS, MAXIMUM_BLOCK_WEIGHT, MINUTES, NORMAL_DISPATCH_RATIO,
SLOT_DURATION,
opaque, AuraId, AVERAGE_ON_INITIALIZE_RATIO, DAYS, HOURS, MAXIMUM_BLOCK_WEIGHT, MINUTES,
NORMAL_DISPATCH_RATIO, SLOT_DURATION,
};
pub use parachains_common::{
AccountId, Balance, BlockNumber, Hash, Header, Index, Signature, MILLISECS_PER_BLOCK,
};

pub use pallet_balances::Call as BalancesCall;
Expand Down

0 comments on commit 27c7f0e

Please sign in to comment.