Skip to content

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

WeightLimit

Kind: source

Structs

struct WeightLimit

An optional weight limit.

FieldTypeDescription
variantenum WeightLimitVariantThe type of the weight limit. See `WeightLimitVariant` enum for possible values.
payloadbytesThe SCALE-encoded `Weight`. Only meaningful when `variant` is `Limited`.

struct LimitedParams

Parameters for the Limited variant.

FieldTypeDescription
weightstruct WeightWeight limit value.

Enums

enum WeightLimitVariant

Discriminant for the WeightLimit enum.

VariantDescription
UnlimitedNo limit on weight.
LimitedA specific weight limit.

Top-Level Functions

  • function unlimited() internal pure returns (struct WeightLimit)
    • Creates an Unlimited weight limit.
  • function limited(struct LimitedParams params) internal pure returns (struct WeightLimit)
    • Creates a Limited weight limit with the given Weight.

Created with solidity-doc-generator