File: src/Xcm/v5/WeightLimit/WeightLimit.sol
WeightLimit
Kind: source
Structs
struct WeightLimit
An optional weight limit.
| Field | Type | Description |
|---|---|---|
variant | enum WeightLimitVariant | The type of the weight limit. See `WeightLimitVariant` enum for possible values. |
payload | bytes | The SCALE-encoded `Weight`. Only meaningful when `variant` is `Limited`. |
struct LimitedParams
Parameters for the Limited variant.
| Field | Type | Description |
|---|---|---|
weight | struct Weight | Weight limit value. |
Enums
enum WeightLimitVariant
Discriminant for the WeightLimit enum.
| Variant | Description |
|---|---|
Unlimited | No limit on weight. |
Limited | A specific weight limit. |
Top-Level Functions
function unlimited() internal pure returns (struct WeightLimit)- Creates an
Unlimitedweight limit.
- Creates an
function limited(struct LimitedParams params) internal pure returns (struct WeightLimit)- Creates a
Limitedweight limit with the givenWeight.
- Creates a