mirror of
https://github.com/zama-ai/fhevm-solidity.git
synced 2026-04-17 03:00:47 -04:00
* feat(tfhe): add support for `ebool` type * fix(auction): use `ebool` adequately * fix(cmux): fix CMUX example * fix(lib): rename variables to be consistent * fix(lib): fix comments
17 lines
425 B
Solidity
17 lines
425 B
Solidity
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
|
|
pragma solidity >=0.8.13 <0.8.20;
|
|
|
|
type ebool is uint256;
|
|
type euint8 is uint256;
|
|
type euint16 is uint256;
|
|
type euint32 is uint256;
|
|
|
|
library Common {
|
|
// Values used to communicate types to the runtime.
|
|
uint8 internal constant ebool_t = 0;
|
|
uint8 internal constant euint8_t = 0;
|
|
uint8 internal constant euint16_t = 1;
|
|
uint8 internal constant euint32_t = 2;
|
|
}
|