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

File-Level Functions

here()

solidity
function here() internal pure returns (struct Junctions)

Creates a `Here` junctions struct.

fromJunction(struct Junction junction)

solidity
function fromJunction(struct Junction junction) internal pure returns (struct Junctions)

Creates a `Junctions` struct from a single `Junction`, representing the `X1` variant.

fromJunctionArr(struct Junction[] junctions)

solidity
function fromJunctionArr(struct Junction[] junctions) internal pure returns (struct Junctions)

Creates a `Junctions` struct with the given junctions.

File-Level Structs

Junctions

solidity
struct Junctions
FieldTypeDescription
countuint8Represents the enum discriminant, 0 = Here, 1 = X1, ..., 8 = X8
itemsJunction[]The actual junction data

Junctions

Kind: source