Skip to content

Commit 643ebb4

Browse files
committed
More patches.
1 parent d9a903a commit 643ebb4

File tree

2 files changed

+26
-7
lines changed

2 files changed

+26
-7
lines changed

Cargo.dev.toml

+19
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,29 @@ frame-support-procedural-tools = { git = "https://github.com/paritytech//substra
7777
frame-support-procedural = { git = "https://github.com/paritytech//substrate", rev = "f884296f7436916909025f8b43c4bbf3e60e4c60" }
7878
sp-tracing = { git = "https://github.com/paritytech//substrate", rev = "f884296f7436916909025f8b43c4bbf3e60e4c60" }
7979
sp-storage = { git = "https://github.com/paritytech//substrate", rev = "f884296f7436916909025f8b43c4bbf3e60e4c60" }
80+
sp-block-builder = { git = "https://github.com/paritytech//substrate", rev = "f884296f7436916909025f8b43c4bbf3e60e4c60" }
81+
sp-timestamp = { git = "https://github.com/paritytech//substrate", rev = "f884296f7436916909025f8b43c4bbf3e60e4c60" }
82+
sp-finality-grandpa = { git = "https://github.com/paritytech//substrate", rev = "f884296f7436916909025f8b43c4bbf3e60e4c60" }
83+
sp-authority-discovery = { git = "https://github.com/paritytech//substrate", rev = "f884296f7436916909025f8b43c4bbf3e60e4c60" }
84+
sp-blockchain = { git = "https://github.com/paritytech//substrate", rev = "f884296f7436916909025f8b43c4bbf3e60e4c60" }
85+
sp-consensus-babe = { git = "https://github.com/paritytech//substrate", rev = "f884296f7436916909025f8b43c4bbf3e60e4c60" }
86+
sp-transaction-pool = { git = "https://github.com/paritytech//substrate", rev = "f884296f7436916909025f8b43c4bbf3e60e4c60" }
87+
sc-client-api = { git = "https://github.com/paritytech//substrate", rev = "f884296f7436916909025f8b43c4bbf3e60e4c60" }
88+
sc-block-builder = { git = "https://github.com/paritytech//substrate", rev = "f884296f7436916909025f8b43c4bbf3e60e4c60" }
89+
sc-network = { git = "https://github.com/paritytech//substrate", rev = "f884296f7436916909025f8b43c4bbf3e60e4c60" }
90+
sc-network-gossip = { git = "https://github.com/paritytech//substrate", rev = "f884296f7436916909025f8b43c4bbf3e60e4c60" }
91+
sc-finality-grandpa = { git = "https://github.com/paritytech//substrate", rev = "f884296f7436916909025f8b43c4bbf3e60e4c60" }
92+
sc-consensus-epochs = { git = "https://github.com/paritytech//substrate", rev = "f884296f7436916909025f8b43c4bbf3e60e4c60" }
93+
sc-consensus = { git = "https://github.com/paritytech//substrate", rev = "f884296f7436916909025f8b43c4bbf3e60e4c60" }
94+
sc-consensus-uncles = { git = "https://github.com/paritytech//substrate", rev = "f884296f7436916909025f8b43c4bbf3e60e4c60" }
95+
sc-consensus-slots = { git = "https://github.com/paritytech//substrate", rev = "f884296f7436916909025f8b43c4bbf3e60e4c60" }
96+
sc-consensus-babe = { git = "https://github.com/paritytech//substrate", rev = "f884296f7436916909025f8b43c4bbf3e60e4c60" }
97+
sc-chain-spec = { git = "https://github.com/paritytech//substrate", rev = "f884296f7436916909025f8b43c4bbf3e60e4c60" }
8098

8199
[patch."https://github.com/paritytech/polkadot"]
82100
xcm = { git = "https://github.com/paritytech//polkadot", rev = "550d84a8fccb491130160bd16a6b6a4657b7090a" }
83101
xcm-executor = { git = "https://github.com/paritytech//polkadot", rev = "550d84a8fccb491130160bd16a6b6a4657b7090a" }
102+
polkadot-parachain = { git = "https://github.com/paritytech//polkadot", rev = "550d84a8fccb491130160bd16a6b6a4657b7090a" }
84103

85104
[patch."https://github.com/paritytech/cumulus"]
86105
cumulus-primitives = { git = "https://github.com/paritytech//cumulus", rev = "05bcb211330ee51d097bebaecb45bd7848807f88" }

xtokens/src/lib.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ impl Into<MultiLocation> for XCurrencyId {
4848
}
4949
}
5050

51-
pub trait Trait: frame_system::Trait {
52-
type Event: From<Event<Self>> + Into<<Self as frame_system::Trait>::Event>;
51+
pub trait Config: frame_system::Config {
52+
type Event: From<Event<Self>> + Into<<Self as frame_system::Config>::Event>;
5353

5454
type Balance: Parameter + Member + AtLeast32BitUnsigned + Default + Copy + MaybeSerializeDeserialize + Into<u128>;
5555

@@ -67,13 +67,13 @@ pub trait Trait: frame_system::Trait {
6767
}
6868

6969
decl_storage! {
70-
trait Store for Module<T: Trait> as XTokens {}
70+
trait Store for Module<T: Config> as XTokens {}
7171
}
7272

7373
decl_event! {
7474
pub enum Event<T> where
75-
<T as frame_system::Trait>::AccountId,
76-
<T as Trait>::Balance,
75+
<T as frame_system::Config>::AccountId,
76+
<T as Config>::Balance,
7777
XCurrencyId = XCurrencyId,
7878
NetworkId = NetworkId,
7979
{
@@ -86,7 +86,7 @@ decl_event! {
8686
}
8787

8888
decl_module! {
89-
pub struct Module<T: Trait> for enum Call where origin: T::Origin {
89+
pub struct Module<T: Config> for enum Call where origin: T::Origin {
9090
fn deposit_event() = default;
9191

9292
/// Transfer relay chain tokens to relay chain.
@@ -140,7 +140,7 @@ decl_module! {
140140
}
141141
}
142142

143-
impl<T: Trait> Module<T> {
143+
impl<T: Config> Module<T> {
144144
fn do_transfer_to_relay_chain(dest: &T::AccountId, amount: T::Balance) -> Xcm {
145145
Xcm::WithdrawAsset {
146146
assets: vec![MultiAsset::ConcreteFungible {

0 commit comments

Comments
 (0)