Skip to content

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

Junctions

Kind: source

Structs

struct Junctions

The Junctions struct represents a sequence of up to 8 Junction items, prefixed by a count.

FieldTypeDescription
countuint8Represents the enum discriminant, 0 = Here, 1 = X1, ..., 8 = X8
itemsstruct Junction\[\]The actual junction data

Top-Level Functions

  • function here() internal pure returns (struct Junctions)
    • Creates a Here junctions struct.
  • function fromJunction(struct Junction junction) internal pure returns (struct Junctions)
    • Creates a Junctions struct from a single Junction, representing the X1 variant.
  • function fromJunctionArr(struct Junction\[\] junctions) internal pure returns (struct Junctions)
    • Creates a Junctions struct with the given junctions.

Created with solidity-doc-generator