@@ -27,9 +27,9 @@ use xcm::latest::prelude::*;
27
27
// │ │
28
28
// ┌─────┴─────┐ ┌──────┴─────┐
29
29
// │ Asset │ │ Smart │
30
- // │ wBTC │ │ Contract │
30
+ // │ USDT │ │ Contract │
31
31
// │ │ │ │
32
- // │ Id 21 │ │ 0x55555... │
32
+ // │ Id 1984 │ │ 0x55555... │
33
33
// └───────────┘ └────────────┘
34
34
35
35
/// All these locations are relative to the Polkadot Relay Chain.
@@ -47,8 +47,8 @@ pub mod relative_to_polkadot_relay {
47
47
pub AliceBytes : [ u8 ; 32 ] = ALICE . into( ) ;
48
48
pub PolkadotPara1000Alice : Location = Location :: new( 0 , [ Parachain ( 1000 ) , AliceBytes :: get( ) . into( ) ] ) ;
49
49
// The location of the `Assets` pallet on the relay chain.
50
- pub PolkadotRelayBalancesPallet : Location = PalletInstance ( 5 ) . into( ) ;
51
- // The asset with index `21 ` of the Assets pallet on parachain A with id 1000.
50
+ pub PolkadotPara1000AssetsPallet : Location = [ Parachain ( 1000 ) , PalletInstance ( 50 ) ] . into( ) ;
51
+ // The asset with index `1984 ` of the Assets pallet on polkadot parachain with id 1000.
52
52
pub PolkadotPara1000Asset1984 : Location = ( Parachain ( 1000 ) , PalletInstance ( 50 ) , GeneralIndex ( 1984 ) ) . into( ) ;
53
53
// The Kusama parachain with id 1000.
54
54
pub KusamaPara1000 : Location = ( Parent , GlobalConsensus ( Kusama ) , Parachain ( 1000 ) ) . into( ) ;
@@ -68,9 +68,9 @@ pub mod relative_to_polkadot_para_1000 {
68
68
pub PolkadotRelay : Location = Parent . into( ) ;
69
69
// A 32 byte account on para 1000.
70
70
pub AliceBytes : [ u8 ; 32 ] = ALICE . into( ) ;
71
- pub PolkadotPara1000Alice : Location = Location :: new( 1 , [ Parachain ( 1000 ) , AliceBytes :: get( ) . into( ) ] ) ;
71
+ pub PolkadotPara1000Alice : Location = Location :: new( 0 , [ AliceBytes :: get( ) . into( ) ] ) ;
72
72
// The location of the `Balances` pallet on the relay chain.
73
- pub PolkadotRelayBalancesPallet : Location = ( Parent , PalletInstance ( 5 ) ) . into( ) ;
73
+ pub PolkadotPara1000AssetsPallet : Location = ( PalletInstance ( 50 ) ) . into( ) ;
74
74
// The asset with index `1984` of the Assets pallet on the Polkadot parachain with id 1000.
75
75
pub PolkadotPara1000Asset1984 : Location = ( PalletInstance ( 50 ) , GeneralIndex ( 1984 ) ) . into( ) ;
76
76
// The Kusama parachain with id 1000.
@@ -111,7 +111,7 @@ pub mod relative_to_polkadot_para_2000_sc {
111
111
// │ NFT │
112
112
// │ Kitties │
113
113
// │ │
114
- // │ Id 21 │
114
+ // │ Id 1984 │
115
115
// └───────────┘
116
116
117
117
/// All these locations are relative to the Kusama Relay Chain.
@@ -155,18 +155,18 @@ pub mod absolute {
155
155
parameter_types ! {
156
156
// The Polkadot parachain with id 1000.
157
157
pub PolkadotPara1000 : Location = [ GlobalConsensus ( Polkadot ) , Parachain ( 1000 ) ] . into( ) ;
158
- // The Polkadot parachain with id 1337 .
158
+ // The Polkadot parachain with id 2004 .
159
159
pub PolkadotPara2004 : Location = [ GlobalConsensus ( Polkadot ) , Parachain ( 2004 ) ] . into( ) ;
160
160
// The Polkadot relay chain.
161
161
pub PolkadotRelay : Location = [ GlobalConsensus ( Polkadot ) ] . into( ) ;
162
162
// A 32 byte account on para 1000.
163
163
pub AliceBytes : [ u8 ; 32 ] = ALICE . into( ) ;
164
164
pub PolkadotPara1000Alice : Location = [ GlobalConsensus ( Polkadot ) , Parachain ( 1000 ) , AliceBytes :: get( ) . into( ) ] . into( ) ;
165
165
// The location of the `Balances` pallet on the relay chain.
166
- pub PolkadotRelayBalancesPallet : Location = [ GlobalConsensus ( Polkadot ) , PalletInstance ( 5 ) ] . into( ) ;
166
+ pub PolkadotPara1000AssetsPallet : Location = [ GlobalConsensus ( Polkadot ) , Parachain ( 1000 ) , PalletInstance ( 50 ) ] . into( ) ;
167
167
// The asset with index `1984` of the Assets pallet on the Polkadot parachain with id 1000.
168
168
pub PolkadotPara1000Asset1984 : Location = [ GlobalConsensus ( Polkadot ) , Parachain ( 1000 ) , PalletInstance ( 50 ) , GeneralIndex ( 1984 ) ] . into( ) ;
169
- // The Kusama parachain with id 69 .
169
+ // The Kusama parachain with id 1000 .
170
170
pub KusamaPara1000 : Location = [ GlobalConsensus ( Kusama ) , Parachain ( 1000 ) ] . into( ) ;
171
171
}
172
172
}
0 commit comments