Copyright 2024 M^0 Foundation
Author: M^0 Labs
Casts a given uint256 value to a uint16, ensuring that it is less than or equal to the maximum uint16 value.
Parameters
Name | Type | Description |
---|---|---|
Returns
Name | Type | Description |
---|---|---|
Casts a given uint256 value to a uint40, ensuring that it is less than or equal to the maximum uint40 value.
Parameters
Name | Type | Description |
---|---|---|
Returns
Casts a given uint256 value to a uint48, ensuring that it is less than or equal to the maximum uint48 value.
Parameters
Returns
Casts a given uint256 value to a uint112, ensuring that it is less than or equal to the maximum uint112 value.
Parameters
Returns
Casts a given uint256 value to a uint128, ensuring that it is less than or equal to the maximum uint128 value.
Parameters
Returns
Casts a given uint256 value to a uint240, ensuring that it is less than or equal to the maximum uint240 value.
Parameters
Returns
Limits a given uint256 value to the maximum uint32 value.
Parameters
Returns
Limits a given uint256 value to the maximum uint112 value.
Parameters
Returns
Limits a given uint256 value to the maximum uint128 value.
Parameters
Returns
Limits a given uint256 value to the maximum uint240 value.
Parameters
Returns
Compares two uint32 values and returns the larger one.
Parameters
Returns
Compares two uint40 values and returns the larger one.
Parameters
Returns
Compares two uint32 values and returns the lesser one.
Parameters
Returns
Compares two uint40 values and returns the lesser one.
Parameters
Returns
Compares two uint240 values and returns the lesser one.
Parameters
Returns
Compares two uint112 values and returns the lesser one.
Parameters
Returns
Compares two uint256 values and returns the lesser one.
Parameters
Returns
Emitted when a passed value is greater than the maximum value of uint16.
Emitted when a passed value is greater than the maximum value of uint40.
Emitted when a passed value is greater than the maximum value of uint48.
Emitted when a passed value is greater than the maximum value of uint112.
Emitted when a passed value is greater than the maximum value of uint128.
Emitted when a passed value is greater than the maximum value of uint240.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|