Working tree is now the canonical repo. Off-chain play-money + trustless on-chain (FPMM AMM + CLOB via UMA settlement), AI market factory, creator/social/distribution, mobile shell + push, one-command demo + deploy-kit. Secrets excluded (see ENV-AND-KEYS.md). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
28 lines
555 B
Solidity
28 lines
555 B
Solidity
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.8.0;
|
|
|
|
import "../utils/structs/BitMaps.sol";
|
|
|
|
contract BitMapMock {
|
|
using BitMaps for BitMaps.BitMap;
|
|
|
|
BitMaps.BitMap private _bitmap;
|
|
|
|
function get(uint256 index) public view returns (bool) {
|
|
return _bitmap.get(index);
|
|
}
|
|
|
|
function setTo(uint256 index, bool value) public {
|
|
_bitmap.setTo(index, value);
|
|
}
|
|
|
|
function set(uint256 index) public {
|
|
_bitmap.set(index);
|
|
}
|
|
|
|
function unset(uint256 index) public {
|
|
_bitmap.unset(index);
|
|
}
|
|
}
|