pallet_xcm_transactor/relay_indices.rs
1// Copyright 2019-2025 PureStake Inc.
2// This file is part of Moonbeam.
3
4// Moonbeam is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
8
9// Moonbeam is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU General Public License for more details.
13
14// You should have received a copy of the GNU General Public License
15// along with Moonbeam. If not, see <http://www.gnu.org/licenses/>.
16
17use parity_scale_codec::{Decode, Encode};
18use scale_info::TypeInfo;
19use serde::{Deserialize, Serialize};
20
21#[derive(
22 Clone, Copy, Debug, Default, Deserialize, Serialize, Encode, Decode, TypeInfo, PartialEq, Eq,
23)]
24pub struct RelayChainIndices {
25 // Pallet indices
26 pub staking: u8,
27 pub utility: u8,
28 pub hrmp: u8,
29 // Staking indices
30 pub bond: u8,
31 pub bond_extra: u8,
32 pub unbond: u8,
33 pub withdraw_unbonded: u8,
34 pub validate: u8,
35 pub nominate: u8,
36 pub chill: u8,
37 pub set_payee: u8,
38 pub set_controller: u8,
39 pub rebond: u8,
40 // Utility indices
41 pub as_derivative: u8,
42 // Hrmp indices
43 pub init_open_channel: u8,
44 pub accept_open_channel: u8,
45 pub close_channel: u8,
46 pub cancel_open_request: u8,
47}