Skip to content
solidity
import "solidity-scale-codec/src/Xcm/v5/BodyId/BodyId.sol";

File-Level Functions

unit()

solidity
function unit() internal pure returns (struct BodyId)

Creates a `BodyId` representing a `Unit` body.

moniker(struct MonikerParams params)

solidity
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)

solidity
function index(struct BodyIndexParams params) internal pure returns (struct BodyId)

Creates a `BodyId` representing an `Index` body with the given index.

executive()

solidity
function executive() internal pure returns (struct BodyId)

Creates a `BodyId` representing an `Executive` body.

technical()

solidity
function technical() internal pure returns (struct BodyId)

Creates a `BodyId` representing a `Technical` body.

legislative()

solidity
function legislative() internal pure returns (struct BodyId)

Creates a `BodyId` representing a `Legislative` body.

judicial()

solidity
function judicial() internal pure returns (struct BodyId)

Creates a `BodyId` representing a `Judicial` body.

defense()

solidity
function defense() internal pure returns (struct BodyId)

Creates a `BodyId` representing a `Defense` body.

administration()

solidity
function administration() internal pure returns (struct BodyId)

Creates a `BodyId` representing an `Administration` body.

treasury()

solidity
function treasury() internal pure returns (struct BodyId)

Creates a `BodyId` representing a `Treasury` body.

File-Level Structs

BodyId

solidity
struct BodyId

An identifier of a pluralistic body.

FieldTypeDescription
variantBodyIdVariantThe type of BodyId, which determines how to interpret the payload
payloadbytesFor Moniker and Index types, this will hold the relevant data

MonikerParams

solidity
struct MonikerParams

Parameters for the `Moniker` variant.

FieldTypeDescription
namebytes4The 4-byte name of the moniker body.

BodyIndexParams

solidity
struct BodyIndexParams

Parameters for the `Index` variant.

FieldTypeDescription
indexuint32The index of the body.

File-Level Enums

BodyIdVariant

solidity
enum BodyIdVariant
VariantDescription
UnitThe only body in its context.
MonikerA named body.
IndexAn indexed body.
ExecutiveThe unambiguous executive body (for Polkadot, this would be the Polkadot council).
TechnicalThe unambiguous technical body (for Polkadot, this would be the Technical Committee).
LegislativeThe unambiguous legislative body (for Polkadot, this could be considered the opinion of a majority of lock-voters).
JudicialThe unambiguous judicial body (this doesn’t exist on Polkadot, but if it were to get a “grand oracle”, it may be considered as that).
DefenseThe unambiguous defense body (for Polkadot, an opinion on the topic given via a public referendum on the `staking_admin` track).
AdministrationThe unambiguous administration body (for Polkadot, an opinion on the topic given via a public referendum on the `general_admin` track).
TreasuryThe unambiguous treasury body (for Polkadot, an opinion on the topic given via a public referendum on the `treasurer` track).

BodyId

Kind: source