You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
822 B
36 lines
822 B
pragma solidity ^0.6.0;
|
|
|
|
import "../utils/SafeCast.sol";
|
|
|
|
contract SafeCastMock {
|
|
using SafeCast for uint;
|
|
using SafeCast for int;
|
|
|
|
function toUint256(int a) public pure returns (uint256) {
|
|
return a.toUint256();
|
|
}
|
|
|
|
function toInt256(uint a) public pure returns (int256) {
|
|
return a.toInt256();
|
|
}
|
|
|
|
function toUint128(uint a) public pure returns (uint128) {
|
|
return a.toUint128();
|
|
}
|
|
|
|
function toUint64(uint a) public pure returns (uint64) {
|
|
return a.toUint64();
|
|
}
|
|
|
|
function toUint32(uint a) public pure returns (uint32) {
|
|
return a.toUint32();
|
|
}
|
|
|
|
function toUint16(uint a) public pure returns (uint16) {
|
|
return a.toUint16();
|
|
}
|
|
|
|
function toUint8(uint a) public pure returns (uint8) {
|
|
return a.toUint8();
|
|
}
|
|
}
|
|
|