1c0e57d984
This commit systematically rebrands various references from Parity Technologies' Polkadot/Substrate ecosystem to PezkuwiChain within the kurdistan-sdk. Key changes include: - Updated external repository URLs (zombienet-sdk, parity-db, parity-scale-codec, wasm-instrument) to point to pezkuwichain forks. - Modified internal documentation and code comments to reflect PezkuwiChain naming and structure. - Replaced direct references to with or specific paths within the for XCM, Pezkuwi, and other modules. - Cleaned up deprecated issue and PR references in various and files, particularly in and modules. - Adjusted image and logo URLs in documentation to point to PezkuwiChain assets. - Removed or rephrased comments related to external Polkadot/Substrate PRs and issues. This is a significant step towards fully customizing the SDK for the PezkuwiChain ecosystem.
31 lines
986 B
Solidity
31 lines
986 B
Solidity
// SPDX-License-Identifier: MIT
|
|
pragma solidity ^0.8.20;
|
|
|
|
contract Bitwise {
|
|
function testBitwise() public pure {
|
|
require(5 < 10, "LT basic");
|
|
require(type(uint256).max - 1 < type(uint256).max, "LT max");
|
|
|
|
require(10 > 5, "GT basic");
|
|
require(type(uint256).max > type(uint256).max - 1, "GT max");
|
|
|
|
require(5 != 10, "NEQ basic");
|
|
require(10 == 10, "EQ basic");
|
|
require(type(uint256).max == type(uint256).max, "EQ max");
|
|
|
|
require(int256(-5) < int256(10), "SLT basic");
|
|
require(type(int256).min < 0, "SLT min");
|
|
|
|
require(int256(5) > int256(-10), "SGT basic");
|
|
require(0 > type(int256).min, "SGT min");
|
|
|
|
require((5 & 3) == 1, "AND basic");
|
|
require((5 | 3) == 7, "OR basic");
|
|
require((5 ^ 3) == 6, "XOR basic");
|
|
require(~uint256(0) == type(uint256).max, "NOT basic");
|
|
|
|
require((1 << 3) == 8, "SHL basic");
|
|
require((8 >> 3) == 1, "SHR basic");
|
|
}
|
|
}
|