Skip to content

File: src/Xcm/v5/BodyId/BodyId.sol

BodyId

Kind: source

Structs

struct BodyId

An identifier of a pluralistic body.

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

struct MonikerParams

Parameters for the Moniker variant.

FieldTypeDescription
namebytes4The 4-byte name of the moniker body.

struct IndexParams

Parameters for the Index variant.

FieldTypeDescription
indexuint32The index of the body.

Enums

enum BodyIdVariant

Discriminant for the different types of BodyIds in XCM v5. Each variant corresponds to a specific structure of the payload.

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

Top-Level Functions

  • function unit() internal pure returns (struct BodyId)
    • Creates a BodyId representing a Unit body.
  • function moniker(struct MonikerParams params) internal pure returns (struct BodyId)
    • Creates a BodyId representing a Moniker body with the given 4-byte name.
  • function index(struct IndexParams params) internal pure returns (struct BodyId)
    • Creates a BodyId representing an Index body with the given index.
  • function executive() internal pure returns (struct BodyId)
    • Creates a BodyId representing an Executive body.
  • function technical() internal pure returns (struct BodyId)
    • Creates a BodyId representing a Technical body.
  • function legislative() internal pure returns (struct BodyId)
    • Creates a BodyId representing a Legislative body.
  • function judicial() internal pure returns (struct BodyId)
    • Creates a BodyId representing a Judicial body.
  • function defense() internal pure returns (struct BodyId)
    • Creates a BodyId representing a Defense body.
  • function administration() internal pure returns (struct BodyId)
    • Creates a BodyId representing an Administration body.
  • function treasury() internal pure returns (struct BodyId)
    • Creates a BodyId representing a Treasury body.

Created with solidity-doc-generator