import "solidity-scale-codec/src/Xcm/v5/BodyId/BodyId.sol";File-Level Functions
function moniker(struct MonikerParams params) internal pure returns (struct BodyId)function index(struct BodyIndexParams params) internal pure returns (struct BodyId)function legislative() internal pure returns (struct BodyId)function administration() internal pure returns (struct BodyId)
unit()
function unit() internal pure returns (struct BodyId)Creates a `BodyId` representing a `Unit` body.
moniker(struct MonikerParams params)
function moniker(struct MonikerParams params) internal pure returns (struct BodyId)Creates a `BodyId` representing a `Moniker` body with the given 4-byte name.
index(struct BodyIndexParams params)
function index(struct BodyIndexParams params) internal pure returns (struct BodyId)Creates a `BodyId` representing an `Index` body with the given index.
executive()
function executive() internal pure returns (struct BodyId)Creates a `BodyId` representing an `Executive` body.
technical()
function technical() internal pure returns (struct BodyId)Creates a `BodyId` representing a `Technical` body.
legislative()
function legislative() internal pure returns (struct BodyId)Creates a `BodyId` representing a `Legislative` body.
judicial()
function judicial() internal pure returns (struct BodyId)Creates a `BodyId` representing a `Judicial` body.
defense()
function defense() internal pure returns (struct BodyId)Creates a `BodyId` representing a `Defense` body.
administration()
function administration() internal pure returns (struct BodyId)Creates a `BodyId` representing an `Administration` body.
treasury()
function treasury() internal pure returns (struct BodyId)Creates a `BodyId` representing a `Treasury` body.
File-Level Structs
BodyId
struct BodyIdAn identifier of a pluralistic body.
| Field | Type | Description |
|---|---|---|
variant | BodyIdVariant | The type of BodyId, which determines how to interpret the payload |
payload | bytes | For Moniker and Index types, this will hold the relevant data |
MonikerParams
struct MonikerParamsParameters for the `Moniker` variant.
| Field | Type | Description |
|---|---|---|
name | bytes4 | The 4-byte name of the moniker body. |
BodyIndexParams
struct BodyIndexParamsParameters for the `Index` variant.
| Field | Type | Description |
|---|---|---|
index | uint32 | The index of the body. |
File-Level Enums
BodyIdVariant
enum BodyIdVariant| Variant | Description |
|---|---|
Unit | The only body in its context. |
Moniker | A named body. |
Index | An indexed body. |
Executive | The unambiguous executive body (for Polkadot, this would be the Polkadot council). |
Technical | The unambiguous technical body (for Polkadot, this would be the Technical Committee). |
Legislative | The unambiguous legislative body (for Polkadot, this could be considered the opinion of a majority of lock-voters). |
Judicial | The unambiguous judicial body (this doesn’t exist on Polkadot, but if it were to get a “grand oracle”, it may be considered as that). |
Defense | The unambiguous defense body (for Polkadot, an opinion on the topic given via a public referendum on the `staking_admin` track). |
Administration | The unambiguous administration body (for Polkadot, an opinion on the topic given via a public referendum on the `general_admin` track). |
Treasury | The unambiguous treasury body (for Polkadot, an opinion on the topic given via a public referendum on the `treasurer` track). |
BodyId
Kind: source