Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

890 B
Raw Blame
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.20;

import {EnumerableSet} from "../patched/utils/structs/EnumerableSet.sol";

contract EnumerableSetHarness {
    using EnumerableSet for EnumerableSet.Bytes32Set;

    EnumerableSet.Bytes32Set private _set;

    function add(bytes32 value) public returns (bool) {
        return _set.add(value);
    }

    function remove(bytes32 value) public returns (bool) {
        return _set.remove(value);
    }

    function contains(bytes32 value) public view returns (bool) {
        return _set.contains(value);
    }

    function length() public view returns (uint256) {
        return _set.length();
    }

    function at_(uint256 index) public view returns (bytes32) {
        return _set.at(index);
    }

    function _positionOf(bytes32 value) public view returns (uint256) {
        return _set._inner._positions[value];
    }
}